/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --border: #e1e5ee;
  --border-soft: #ebeef5;
  --text: #161a24;
  --ink: #0b0e1a;
  --text-mu: #5b6472;
  --text-faint: #8891a0;
  --accent: #3457d5;
  --accent-2: #6f8dff;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;
  --accent-line: #c7d5fb;
  --ok: #16875a;
  --ok-soft: #e5f8ef;
  --warn: #a8670a;
  --warn-soft: #fdf1dd;
  --danger: #c23838;
  --danger-soft: #fceaea;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 20, 35, .04), 0 1px 1px rgba(16, 20, 35, .03);
  --shadow: 0 2px 5px rgba(16, 20, 35, .05), 0 10px 30px rgba(16, 20, 35, .07);
  --shadow-lg: 0 8px 20px rgba(16, 20, 35, .07), 0 24px 60px rgba(16, 20, 35, .12);
  --shadow-glow: 0 10px 30px rgba(52, 87, 213, .25);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.35, 0.64, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --dur: .5s;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e14; --bg-soft: #11141c; --surface: #161a24; --surface-2: #1c212c; --border: #2a3040; --border-soft: #232838;
    --text: #eef0f4; --ink: #ffffff; --text-mu: #98a1b3; --text-faint: #6b7284;
    --accent: #7c96ff; --accent-2: #a6b8ff; --accent-ink: #0b0e1a;
    --accent-soft: #1a2340; --accent-line: #33437a;
    --ok: #52d69b; --ok-soft: #0f2a20; --warn: #f0b854; --warn-soft: #2c2210;
    --danger: #ff8a8a; --danger-soft: #2c1414;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow: 0 2px 6px rgba(0,0,0,.35), 0 12px 30px rgba(0,0,0,.35);
    --shadow-lg: 0 10px 24px rgba(0,0,0,.4), 0 30px 70px rgba(0,0,0,.45);
    --shadow-glow: 0 10px 34px rgba(124, 150, 255, .28);
  }
}
:root[data-theme="dark"] {
  --bg: #0c0e14; --bg-soft: #11141c; --surface: #161a24; --surface-2: #1c212c; --border: #2a3040; --border-soft: #232838;
  --text: #eef0f4; --ink: #ffffff; --text-mu: #98a1b3; --text-faint: #6b7284;
  --accent: #7c96ff; --accent-2: #a6b8ff; --accent-ink: #0b0e1a;
  --accent-soft: #1a2340; --accent-line: #33437a;
  --ok: #52d69b; --ok-soft: #0f2a20; --warn: #f0b854; --warn-soft: #2c2210;
  --danger: #ff8a8a; --danger-soft: #2c1414;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: clip; overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
svg.icon { display: inline-block; flex-shrink: 0; width: 1.15em; height: 1.15em; vertical-align: -0.15em; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; color: var(--ink); }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--text); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.container { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 760px; margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-xs { gap: .4rem; } .gap-sm { gap: .75rem; } .gap-md { gap: 1.25rem; } .gap-lg { gap: 2rem; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.muted { color: var(--text-mu); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }

/* Scroll reveal (JS toggles .is-visible; instant + no-op if reduced motion) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow-dot { display: inline-flex; align-items: center; gap: .5rem; }
.eyebrow-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.h-display { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 3.9rem); letter-spacing: -0.015em; max-width: 22ch; color: var(--ink); }
.h-section { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 2.7vw, 2.35rem); color: var(--ink); }
.lede { font-size: 1.18rem; line-height: 1.65; color: var(--text-mu); max-width: 60ch; }
.text-gradient { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =============================================================
   5. Components
   ============================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .22s var(--ease-spring), background .2s, box-shadow .25s, border-color .2s, color .2s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, var(--accent-2))); color: var(--accent-ink); box-shadow: 0 1px 1px rgba(255,255,255,.15) inset, 0 6px 16px rgba(52,87,213,.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 1px rgba(255,255,255,.15) inset, var(--shadow-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--border-soft); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); transform: translateY(-1px); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: .55rem .95rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-link { font-weight: 600; color: var(--accent); }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out), border-color .3s;
}
.card-flat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-soft); }

.icon-badge {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); flex-shrink: 0;
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge.ok { background: var(--ok-soft); color: var(--ok); }
.icon-badge.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-badge.sm svg { width: 18px; height: 18px; }

.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.15rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .82rem; color: var(--text-faint); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], select, textarea {
  font: inherit; padding: .78rem .95rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.check-row { display: flex; align-items: flex-start; gap: .65rem; padding: .55rem 0; cursor: pointer; }
.check-row input { width: auto; margin-top: .25rem; accent-color: var(--accent); }
.check-row .label-txt { font-size: .92rem; }
.check-row .label-txt .hint { display: block; }

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .75rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge svg { width: 13px; height: 13px; }
.badge-demo { background: var(--warn-soft); color: var(--warn); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-muted { background: var(--surface-2); color: var(--text-mu); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }

.demo-banner { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: var(--radius-sm); padding: .8rem 1.1rem; font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.demo-banner svg { flex-shrink: 0; }

.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; animation: dropIn .25s var(--ease-out); }
.cookie-banner p { margin: 0; font-size: .85rem; color: var(--text-mu); flex: 1 1 260px; }
.cookie-banner p a { color: var(--accent); }
.cookie-banner-acciones { display: flex; gap: .5rem; flex-shrink: 0; }

.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 500; display: flex; flex-direction: column; gap: .6rem; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; align-items: center; gap: .6rem; background: var(--ink); color: var(--bg); padding: .9rem 1.15rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500; animation: toastIn .4s var(--ease-spring); }
.toast svg { flex-shrink: 0; width: 18px; height: 18px; }
.toast.error { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* Nav / app shell */
.topbar { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-soft); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; color: var(--ink); display: inline-flex; align-items: center; gap: .5rem; }
.logo .logo-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm); }
.logo .logo-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 1.7rem; align-items: center; }
.nav-links a:not(.btn) { font-size: .92rem; font-weight: 500; color: var(--text-mu); position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--accent); transition: right .25s var(--ease-out); border-radius: 2px; }
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--text); }
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn).active::after { right: 0; }
.credits-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--accent-soft); color: var(--accent); padding: .45rem .9rem; border-radius: 999px; font-weight: 700; font-size: .85rem; transition: transform .2s; border: 1px solid var(--accent-line); }
.credits-pill svg { width: 15px; height: 15px; }
.credits-pill.bump { animation: pillBump .4s var(--ease-spring); }
@keyframes pillBump { 0% { transform: scale(1); } 45% { transform: scale(1.15); } 100% { transform: scale(1); } }
.account-menu { position: relative; }
.account-btn { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-spring); }
.account-btn:hover { transform: scale(1.06); }
.account-dropdown { position: absolute; right: 0; top: 50px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 210px; padding: .45rem; display: none; animation: dropIn .18s var(--ease-out); }
.account-dropdown.open { display: block; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.account-dropdown a, .account-dropdown button { display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; padding: .65rem .75rem; border-radius: 8px; font-size: .9rem; }
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--surface-2); }
.account-dropdown svg { width: 16px; height: 16px; color: var(--text-mu); }
.hamburger { display: none; }

.mini-dropdown { position: relative; display: inline-block; }
.mini-dropdown-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 180px; padding: .4rem; display: none; animation: dropIn .18s var(--ease-out); }
.mini-dropdown-menu.open { display: block; }
.mini-dropdown-menu a, .mini-dropdown-menu button { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; padding: .55rem .65rem; border-radius: 8px; font-size: .85rem; }
.mini-dropdown-menu a:hover, .mini-dropdown-menu button:hover { background: var(--surface-2); }
.mini-dropdown-menu svg { width: 15px; height: 15px; color: var(--text-mu); }

footer.site-footer { border-top: 1px solid var(--border-soft); padding-block: 3.5rem 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h3 { font-size: .85rem; margin-bottom: .9rem; color: var(--text); }
.footer-grid a, .footer-grid p { font-size: .88rem; color: var(--text-mu); display: block; margin-bottom: .55rem; transition: color .2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); font-size: .8rem; color: var(--text-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Pricing */
.ciclo-switch { display: inline-flex; align-items: center; gap: 0; padding: .3rem; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--border); }
.ciclo-switch button { padding: .5rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--text-mu); transition: background .2s, color .2s; }
.ciclo-switch button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.ciclo-switch .badge-ahorro { margin-left: .4rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
.recarga-nota { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; padding: 1rem 1.2rem; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: .88rem; color: var(--accent); }
.plan-card { display: flex; flex-direction: column; gap: 1.1rem; position: relative; }
.plan-card.destacado { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--accent), var(--accent-2)) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); }
.plan-tag { position: absolute; top: -13px; left: 1.5rem; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.plan-price { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--ink); }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-mu); font-family: var(--sans); }
.plan-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.plan-features li { display: flex; gap: .55rem; align-items: flex-start; }
.plan-features svg { color: var(--ok); flex-shrink: 0; margin-top: .1rem; width: 16px; height: 16px; }

/* Steps / wizard */
.steps-nav { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.step-pill { padding: .45rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--surface-2); color: var(--text-mu); transition: background .2s, color .2s, transform .2s; border: 1px solid transparent; }
.step-pill:hover { transform: translateY(-1px); }
.step-pill.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.step-pill.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.form-fade { animation: formFade .35s var(--ease-out); }
@keyframes formFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form-fade { animation: none; } }

/* Document tool cards */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.doc-card { display: flex; flex-direction: column; gap: .7rem; }
.doc-card .estado { font-size: .8rem; }
.doc-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.doc-coste { align-self: flex-start; }
.paquetes-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 620px; margin: 0 auto; }

.ficha-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; font-size: .85rem; border: 1px solid var(--border-soft); }
.ficha-box dt { font-weight: 700; margin-top: .7rem; color: var(--text); display: flex; align-items: center; gap: .4rem; }
.ficha-box dt:first-child { margin-top: 0; }
.ficha-box dt svg { width: 14px; height: 14px; color: var(--accent); }
.ficha-box dd { margin: .15rem 0 .3rem; color: var(--text-mu); }
.ficha-box ul { margin: .2rem 0; padding-left: 1.1rem; }

.alerta { border-radius: var(--radius-sm); padding: .85rem 1.05rem; font-size: .88rem; display: flex; gap: .65rem; align-items: flex-start; }
.alerta svg { flex-shrink: 0; margin-top: .1rem; width: 18px; height: 18px; }
.alerta.warn { background: var(--warn-soft); color: var(--warn); }
.alerta.danger { background: var(--danger-soft); color: var(--danger); }
.alerta.info { background: var(--accent-soft); color: var(--accent); }

.doc-preview { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.6rem; background: var(--surface); font-family: Georgia, serif; line-height: 1.75; max-width: 72ch; }
.doc-preview h2 { font-size: 1.05rem; margin-top: 1.4rem; color: var(--ink); }
.doc-preview h2:first-child { margin-top: 0; }
.doc-preview[contenteditable="true"] { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: 6px; }

dialog { border: none; border-radius: var(--radius); padding: 0; max-width: 480px; width: calc(100% - 40px); box-shadow: var(--shadow-lg); background: var(--surface); color: var(--text); }
dialog[open] { animation: modalIn .28s var(--ease-spring); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: rgba(8, 10, 18, .55); backdrop-filter: blur(2px); animation: backdropIn .28s var(--ease-out); }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog[open], dialog::backdrop { animation: none; } }
.modal-body { padding: 1.85rem; }
.modal-actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1.5rem; }

table.simple { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.simple th, table.simple td { text-align: left; padding: .6rem .45rem; border-bottom: 1px solid var(--border-soft); }
table.simple th { color: var(--text-faint); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

.hero-mock { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 0; font-size: .85rem; overflow: hidden; }
.hero-mock-bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--border-soft); background: var(--surface-2); }
.hero-mock-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.hero-mock-bar .label { margin-left: auto; font-size: .72rem; color: var(--text-faint); display: flex; align-items: center; gap: .35rem; font-weight: 600; }
.hero-mock-bar .label svg { width: 13px; height: 13px; color: var(--accent); }
.hero-mock-body { padding: 1.5rem; }
.hero-mock .before { color: var(--text-faint); font-style: italic; }
.hero-mock .arrow { display: flex; align-items: center; gap: .5rem; color: var(--accent); margin: .9rem 0; font-weight: 700; font-size: .8rem; }
.hero-mock .arrow svg { width: 16px; height: 16px; }
.hero-mock .resultado { padding: .9rem 1rem; background: var(--accent-soft); border-radius: var(--radius-sm); border: 1px solid var(--accent-line); }
.hero-float { position: absolute; z-index: 2; }

/* =============================================================
   6. Sections
   ============================================================= */
body { position: relative; }
.bg-dots {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(ellipse 70% 45% at 50% 0%, #000 40%, transparent 100%);
  opacity: .5;
}
.hero { padding-block: 5rem 3.5rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.section { padding-block: 4rem; }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feature-card { display: flex; flex-direction: column; gap: .9rem; }
.country-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.country-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.05rem; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid var(--border); transition: transform .2s; }
.country-chip svg { width: 14px; height: 14px; }
.country-chip.disponible { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.country-chip.proximamente { color: var(--text-faint); }
.faq-grupo { margin-top: 1.8rem; }
.faq-grupo:first-child { margin-top: 0; }
.faq-grupo-titulo { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: .3rem; }
.faq-item { border-bottom: 1px solid var(--border-soft); padding-block: 1.1rem; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex-shrink: 0; width: 20px; height: 20px; color: var(--text-faint); transition: transform .3s var(--ease-out), color .2s; }
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-item p { margin-top: .7rem; color: var(--text-mu); max-width: 68ch; animation: formFade .3s var(--ease-out); }

.cta-panel {
  text-align: center; padding: 3.5rem 2rem; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 85%, var(--accent)) 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-panel::before {
  content: ""; position: absolute; inset: -40%; z-index: 0;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%);
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel .h-section { color: #fff; }
.cta-panel .lede { color: rgba(255,255,255,.72); margin-inline: auto; }

.auth-shell { min-height: 100svh; display: grid; place-items: center; padding: 24px; position: relative; }
.auth-card { width: 100%; max-width: 420px; }

.empty-state { text-align: center; padding: 4rem 1.5rem; color: var(--text-mu); }
.empty-state .icon-badge { margin-inline: auto; margin-bottom: 1rem; width: 56px; height: 56px; border-radius: 16px; }
.empty-state .icon-badge svg { width: 26px; height: 26px; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 1180px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
}
@media (max-width: 539px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* backdrop-filter en .topbar convierte el menú fixed en relativo a la
     barra (no al viewport) — por eso la altura va en vh explícito y no con
     "bottom:0", que se mediría desde el fondo de la barra, no de la pantalla. */
  .topbar-inner .nav-links.mobile-open { display: flex; position: fixed; top: 64px; left: 0; right: 0; height: 100svh; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 1.5rem; z-index: 90; gap: 1.2rem; overflow-y: auto; }
}
