:root {
  --bg: #f7f6f1;
  --bg-alt: #efede4;
  --card: #ffffff;
  --ink: #10221a;
  --muted: #5b6a62;
  --line: #e2dfd4;
  --brand: #127a4b;
  --brand-ink: #0b4d30;
  --brand-soft: #e3f1e9;
  --accent: #d8f36b;
  --bubble-in: #ffffff;
  --bubble-out: #dcf6c8;
  --chat-bg: #ece5dc;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(16, 34, 26, 0.06), 0 8px 24px rgba(16, 34, 26, 0.08);
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1511;
    --bg-alt: #111c17;
    --card: #15221c;
    --ink: #e9f0ec;
    --muted: #9aaba2;
    --line: #24352c;
    --brand: #3fbf7f;
    --brand-ink: #9be3bd;
    --brand-soft: #173326;
    --accent: #d8f36b;
    --bubble-in: #1f2c26;
    --bubble-out: #1f4a33;
    --chat-bg: #0f1a15;
    --danger: #f97066;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { background: var(--brand-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #06140d; } :root:not([data-theme="light"]) .btn-primary:hover { background: #6fd9a2; } }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 9px 16px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 32px; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 0.85rem; margin-bottom: 18px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--accent) 62%); padding: 0 4px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl { background: linear-gradient(transparent 62%, #3d5a1a 62%); } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.9rem; }
.trust span::before { content: "✓ "; color: var(--brand); font-weight: 800; }

/* Phone mock */
.phone {
  width: 100%; max-width: 360px; margin: 0 auto; border-radius: 36px; padding: 10px;
  background: #111; box-shadow: 0 30px 60px rgba(16, 34, 26, 0.25);
}
.phone-screen { border-radius: 28px; overflow: hidden; background: var(--chat-bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #075e54; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chat-head { background: #1f2c34; } }
.chat-head img { width: 34px; height: 34px; border-radius: 50%; }
.chat-head b { display: block; font-size: 0.98rem; }
.chat-head small { opacity: 0.8; font-size: 0.78rem; }
.chat { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 420px; }
.msg { max-width: 82%; padding: 8px 11px 6px; border-radius: 12px; font-size: 0.92rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,0.08); white-space: pre-line; opacity: 0; transform: translateY(6px); animation: pop 0.35s ease forwards; }
.msg time { display: block; text-align: right; font-size: 0.68rem; color: var(--muted); margin-top: 2px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.msg.in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 4px; }
.msg.ticket { padding: 6px; }
.msg.ticket .t { background: repeating-linear-gradient(180deg, #fff 0 14px, #f3f3f3 14px 15px); color: #333; border-radius: 6px; padding: 10px 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.msg:nth-child(1) { animation-delay: 0.1s; } .msg:nth-child(2) { animation-delay: 0.6s; } .msg:nth-child(3) { animation-delay: 1.3s; }
.msg:nth-child(4) { animation-delay: 1.8s; } .msg:nth-child(5) { animation-delay: 2.5s; } .msg:nth-child(6) { animation-delay: 3s; }
@keyframes pop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #10221a; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.feature .ex { display: inline-block; margin-top: 12px; font-size: 0.85rem; background: var(--bg-alt); border-radius: 8px; padding: 4px 10px; color: var(--ink); }

.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0 0 16px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.chips span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 0.93rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan.featured .badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan.featured .badge { color: #06140d; } }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 800; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

.final { text-align: center; }
.final .box { background: var(--brand); color: #fff; border-radius: 28px; padding: 52px 24px; }
.final .box p { opacity: 0.9; font-size: 1.1rem; }
.final .btn { background: var(--accent); color: #10221a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .final .box { background: #134d31; } }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 18px; }

/* Forms (registro) */
.onboard { min-height: 100vh; display: flex; flex-direction: column; }
.onboard main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 64px; }
.card { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 480px) { .card { padding: 22px 18px; } }
.progress { display: flex; gap: 6px; margin-bottom: 24px; }
.progress i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: background 0.2s; }
.progress i.on { background: var(--brand); }
.step-label { font-size: 0.82rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 7px; }
.field .hint { font-size: 0.86rem; color: var(--muted); margin-top: 6px; }
.input, select.input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: inherit; font-size: 1.02rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.input.invalid { border-color: var(--danger); }
.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.money .input { padding-left: 30px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .options { grid-template-columns: 1fr; } }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; }
.option span { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; font-size: 0.95rem; background: var(--bg); transition: border-color 0.15s, background 0.15s; }
.option span em { display: block; font-style: normal; font-size: 1.3rem; margin-bottom: 4px; }
.option input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.option input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.actions { display: flex; gap: 10px; margin-top: 24px; }
.actions .btn { flex: 1; }
.error { color: var(--danger); font-size: 0.92rem; margin-top: 8px; min-height: 1.2em; }
.hidden { display: none !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; }
.done .big { font-size: 3rem; margin-bottom: 6px; }
.code-pill { display: inline-block; font: 700 1.25rem ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--brand-soft); color: var(--brand-ink); padding: 8px 16px; border-radius: 12px; letter-spacing: 0.04em; margin: 6px 0 14px; }
.qr { margin: 18px auto 6px; width: 200px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.qr img { display: block; width: 100%; height: auto; }
.tips { text-align: left; background: var(--bg-alt); border-radius: 16px; padding: 16px 18px; margin-top: 22px; }
.tips p { margin: 0 0 6px; font-size: 0.95rem; }
.tips ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 16px 72px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--muted); }
.step-panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.notice { background: color-mix(in srgb, var(--accent) 45%, var(--card)); color: var(--ink); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-weight: 600; font-size: 0.95rem; }
