:root {
  --ink: #12231c;
  --ink-soft: #2a4036;
  --paper: #f4efe4;
  --card: #fffdf8;
  --line: #d9d0bf;
  --accent: #e8ff6a;
  --accent-ink: #1a2a12;
  --wa: #128c7e;
  --wa-hover: #0e7368;
  --danger: #9b2c2c;
  --mute: #5c6b63;
  --shadow: 0 18px 50px rgba(18, 35, 28, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e8ff6a33, transparent 50%),
    radial-gradient(900px 400px at 100% 0%, #128c7e22, transparent 45%),
    var(--paper);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 8px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-family: "Fraunces", Georgia, serif;
}

nav.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
nav.links a { text-decoration: none; }
nav.links a:hover { text-decoration: underline; }

.hero {
  padding: 28px 0 8px;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  max-width: 16ch;
}
.hero p.lead {
  margin: 0 0 18px;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}
.pills li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.86rem;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 40px;
}

@media (min-width: 980px) {
  .layout:has(.ad-slot.is-live) {
    grid-template-columns: 88px minmax(0, 1fr) 88px;
  }
}

.ad-slot { display: none; }
.ad-slot.is-live {
  display: grid;
  place-items: center;
  min-height: 90px;
  border-radius: 12px;
  padding: 10px;
}
.ad-slot--side.is-live { min-height: 280px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 22px;
  min-width: 0;
  overflow: hidden;
}

form.cobranca {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}
label span.hint {
  font-weight: 400;
  color: var(--mute);
  font-size: 0.8rem;
}

input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfc6b4;
  border-radius: 12px;
  padding: 12px 12px;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid #e8ff6a;
  border-color: var(--ink);
}

.row-2 {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
}

.valor-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  padding-bottom: 4px;
}
.check input { width: auto; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary {
  background: var(--ink);
  color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: #efe8d8;
  color: var(--ink);
}
.btn-wa {
  background: var(--wa);
  color: #fff;
  width: 100%;
}
.btn-wa:hover { background: var(--wa-hover); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.err {
  color: var(--danger);
  font-size: 0.9rem;
  min-height: 1.2em;
}

.result {
  display: none;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.result.is-on { display: block; }

.qr-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.qr-box canvas, .qr-box img {
  width: min(220px, 100%);
  height: auto;
  aspect-ratio: 1;
  max-width: 100%;
}
.payload {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #f7f3ea;
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}
.result { min-width: 0; }

.actions {
  display: grid;
  gap: 10px;
}
@media (min-width: 520px) {
  .actions.two { grid-template-columns: 1fr 1fr; }
}

.fine {
  color: var(--mute);
  font-size: 0.82rem;
}

article.faq, article.prose {
  padding: 8px 0 48px;
}
article.prose h2, article.faq h2 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.03em;
}
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0;
}
details summary { cursor: pointer; font-weight: 600; }

.use-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  padding-bottom: 48px;
}
@media (min-width: 700px) {
  .use-grid { grid-template-columns: 1fr 1fr; }
}
.use-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none;
  display: block;
}
.use-card strong {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 4px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--mute);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
}
footer a { color: var(--ink-soft); }
