/* =========================================================
   Dent Pocket — sitio público: landing, login, páginas legales y 404.
   Móvil primero. Usa los tokens de /assets/css/tokens.css (los mismos de la app).
   ========================================================= */

:root {
  --wrap: 1180px;
  --gutter: 20px;
  --hero-glow: radial-gradient(900px 520px at 78% 8%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 62%),
               radial-gradient(700px 420px at 0% 30%, color-mix(in srgb, #F2B8B5 22%, transparent) 0%, transparent 60%);
  --band: #0B3B3C;
  --band-ink: #EAF4F2;
  --band-ink-2: #A8C9C4;
  --red: #E5484D;
  --ink-3: #5E6A6A; /* más oscuro que en la app: texto pequeño con contraste AA sobre porcelana */
  --blue: #3E7BFA;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hero-glow: radial-gradient(900px 520px at 78% 8%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 62%),
                 radial-gradient(700px 420px at 0% 30%, rgba(199, 126, 124, .12) 0%, transparent 60%);
    --band: #0F2A2D;
    --ink-3: #869C9B;
  }
}
:root[data-theme="dark"] {
  --hero-glow: radial-gradient(900px 520px at 78% 8%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 62%),
               radial-gradient(700px 420px at 0% 30%, rgba(199, 126, 124, .12) 0%, transparent 60%);
  --band: #0F2A2D;
  --ink-3: #869C9B;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
main { overflow-x: clip; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------------- Marca ---------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.brand-mark { width: 34px; height: 34px; color: var(--brand); }
.brand-name { font-weight: 500; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.brand-name b { font-weight: 800; color: var(--brand); }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 750; font-size: 15.5px; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--brand) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--brand) 90%, transparent); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.btn-light { background: #fff; color: #0B3B3C; }
.btn-light:hover { transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255,255,255,.28); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: rgba(255,255,255,.6); }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 11px; font-size: 14px; }
.btn-block { width: 100%; }
:root[data-theme="dark"] .btn-primary { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: var(--accent-ink); } }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 3px rgba(37,211,102,.25); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* ---------------- Encabezado ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.nav { display: none; gap: 4px; margin-left: 28px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 650; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--surface-3); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .login-link { display: none; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); background: var(--surface-3); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; } :root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sun { display: block; } :root:not([data-theme="light"]) .theme-moon { display: none; } }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 56px; background: var(--hero-glow); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(700px 420px at 70% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 420px at 70% 20%, #000 0%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 750; letter-spacing: .01em;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.eyebrow .dot svg { width: 12px; height: 12px; }
.hero h1 {
  margin: 18px 0 16px; font-size: clamp(38px, 9.6vw, 68px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .16em; border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 28%, transparent); z-index: -1;
}
.lede { font-size: clamp(17px, 2.2vw, 19.5px); color: var(--ink-2); max-width: 560px; margin: 0 0 26px; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .btn { flex: 1 1 200px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--accent); }

/* Tarjeta de producto (el odontograma real) */
.product { position: relative; }
.device {
  position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), 0 0 0 8px color-mix(in srgb, var(--surface) 55%, transparent);
  overflow: hidden;
}
.device-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.device-bar .dots { display: flex; gap: 6px; }
.device-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.pchip { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 3px 12px 3px 3px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; }
.pchip .av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 11px; }
.pchip b { font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchip small { color: var(--ink-3); white-space: nowrap; }
.device-bar .export-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; padding: 5px 10px; border-radius: 9px; background: var(--brand); color: #fff; }
:root[data-theme="dark"] .device-bar .export-pill { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .device-bar .export-pill { color: var(--accent-ink); } }
.device-bar .export-pill svg { width: 14px; height: 14px; }
.device-stage { background: var(--stage-bg); padding: 14px; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.device-stage img { width: 100%; height: 100%; object-fit: contain; }
.art-dark { display: none; }
:root[data-theme="dark"] .art-light { display: none; } :root[data-theme="dark"] .art-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .art-light { display: none; } :root:not([data-theme="light"]) .art-dark { display: block; } }
.device-foot { display: flex; justify-content: center; padding: 10px 12px 14px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  font-size: 13px; line-height: 1.25; animation: float-in .7s cubic-bezier(.2,.8,.2,1) both;
}
.float b { display: block; font-weight: 800; font-size: 13.5px; }
.float small { color: var(--ink-3); font-size: 12px; }
.float .sw { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; font-family: var(--mono); font-weight: 700; font-size: 11.5px; }
.float .sw svg { width: 16px; height: 16px; }
.f1 { left: -10px; bottom: 22%; animation-delay: 1.1s; }
.f2 { right: -8px; top: 16%; animation-delay: 1.5s; }
.f3 { right: 18px; bottom: 6%; animation-delay: 1.9s; }
.f2, .f3 { display: none; }
@keyframes float-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------------- Secciones ---------------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section h2 { font-size: clamp(30px, 6.2vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { font-size: 18px; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.center { text-align: center; margin-inline: auto; }

/* Problema */
.cards { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -.015em; line-height: 1.25; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.card-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.card-icon svg { width: 22px; height: 22px; }
.problem .card-icon { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.punch { margin: 30px auto 0; max-width: 760px; text-align: center; font-size: clamp(19px, 3vw, 23px); font-weight: 700; letter-spacing: -.015em; line-height: 1.4; }
.punch em { font-style: normal; color: var(--accent); }

/* Pilares */
.pillar { display: grid; gap: 26px; align-items: center; padding: 26px 0; }
.pillar + .pillar { border-top: 1px dashed var(--line); padding-top: 48px; margin-top: 22px; }
.pillar .num { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 8px; }
.pillar h3 { font-size: clamp(25px, 4.6vw, 34px); line-height: 1.12; letter-spacing: -.03em; margin: 14px 0 12px; text-wrap: balance; }
.pillar p { color: var(--ink-2); font-size: 17px; margin: 0 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15.5px; }
.ticks svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.shot img { width: 100%; height: auto; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; }
.fmt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 750; color: var(--ink-2); }
.fmt i { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 700; color: #fff; padding: 3px 7px; border-radius: 6px; }
.fmt-arrow { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.fmt-arrow svg { width: 20px; height: 20px; color: var(--accent); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.fmt-result { grid-column: 1 / -1; border-radius: 12px; background: var(--stage-bg); border: 1px solid var(--line); padding: 8px; }

/* Pasos */
.steps { display: grid; gap: 14px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 14px;
}
:root[data-theme="dark"] .step::before { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step::before { color: var(--accent-ink); } }
.step h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.015em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Pruébalo */
.try { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.try::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 85% 0%, rgba(61,214,195,.18), transparent 60%); pointer-events: none; }
.try .wrap { position: relative; }
.try .kicker { color: #7FE3D6; }
.try h2 { color: #fff; }
.try .section-head p { color: var(--band-ink-2); }
.try-grid { display: grid; gap: 18px; }
.try-board { border-radius: 20px; background: var(--surface); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); overflow: hidden; color: var(--ink); }
.try-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.swatch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 11px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.swatch i { width: 16px; height: 16px; border-radius: 5px; }
.swatch[aria-checked="true"] { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-sm); }
.try-stage { background: var(--stage-bg); padding: 8px; min-height: 240px; display: grid; place-items: center; touch-action: manipulation; }
.try-stage svg { width: 100%; height: auto; max-height: 560px; }
.try-stage .surf { cursor: pointer; transition: fill-opacity .15s; }
.try-stage .surf:hover { fill-opacity: .35; }
.try-stage .surf[data-c] { fill-opacity: .88; }
.try-stage .surf[data-c]:hover { fill-opacity: .7; }
.try-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.try-hint b { color: var(--ink); }
.try-side { display: grid; gap: 12px; align-content: start; }
.tally { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tally div { border-radius: 14px; padding: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.tally b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.tally span { font-size: 13px; color: var(--band-ink-2); font-weight: 600; }
.tally .r b { color: #FF8589; } .tally .bl b { color: #8DB3FF; }
.try-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 190px; overflow: auto; font-size: 14px; }
.try-log li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--band-ink); }
.try-log li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.try-log li code { font-family: var(--mono); font-weight: 600; font-size: 12.5px; color: #fff; }
.try-log .empty { color: var(--band-ink-2); background: transparent; border: 1px dashed rgba(255,255,255,.18); }
.try-cta { border-radius: 16px; padding: 18px; background: linear-gradient(135deg, rgba(61,214,195,.18), rgba(61,214,195,.04)); border: 1px solid rgba(61,214,195,.3); }
.try-cta p { margin: 0 0 12px; font-weight: 650; color: #fff; }
.try-cta .locked { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.try-cta .locked li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--band-ink-2); padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.06); }
.try-cta .locked svg { width: 12px; height: 12px; }

/* IA */
.flow { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.flow li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.flow .fi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.flow .fi svg { width: 22px; height: 22px; }
.flow h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.01em; }
.flow p { margin: 0; color: var(--ink-2); font-size: 15px; }
.flow .tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; background: color-mix(in srgb, #D4A017 18%, transparent); color: #A77A00; }
:root[data-theme="dark"] .flow .tag { color: #E9C15A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flow .tag { color: #E9C15A; } }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.note svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.note b { color: var(--ink); }

/* Privacidad */
.privacy { display: grid; gap: 28px; align-items: center; }
.vault { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin: 0 auto; display: grid; place-items: center; }
.vault .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--line-strong); animation: spin 60s linear infinite; }
.vault .ring.r2 { inset: 14%; border-style: solid; border-color: var(--line); animation-duration: 90s; animation-direction: reverse; }
.vault .core { width: 46%; aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: var(--shadow-lg); }
:root[data-theme="dark"] .vault .core { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vault .core { color: var(--accent-ink); } }
.vault .core svg { width: 44%; height: 44%; }
.vault .sat { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); font-size: 13px; font-weight: 750; }
.vault .sat svg { width: 16px; height: 16px; color: var(--accent); }
.vault .s1 { top: 8%; left: 0; } .vault .s2 { top: 44%; right: -2%; } .vault .s3 { bottom: 8%; left: 8%; }
@keyframes spin { to { transform: rotate(360deg); } }
.law { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* Para quién */
.who { display: grid; gap: 12px; }
.who .card { display: flex; gap: 14px; align-items: flex-start; }
.who .card h3 { margin: 0 0 4px; font-size: 17.5px; }
.who .card-icon { background: var(--accent-soft); color: var(--accent); }

/* Acceso / precio */
.pricing { display: grid; gap: 18px; align-items: stretch; }
.plan { position: relative; border-radius: 22px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.plan.featured { border: 2px solid var(--accent); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; }
.plan h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.015em; }
.price { font-size: clamp(34px, 7vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin: 10px 0 2px; }
.price small { font-size: 16px; font-weight: 650; color: var(--ink-3); letter-spacing: 0; }
.price-alt { color: var(--ink-2); font-weight: 650; margin: 0 0 18px; min-height: 1.6em; }
.plan .ticks { margin: 18px 0 24px; }
.plan .actions { display: grid; gap: 10px; }
.how-access { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how-access li { display: flex; gap: 14px; align-items: flex-start; }
.how-access .n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.how-access b { display: block; }
.how-access span { color: var(--ink-2); font-size: 15px; }
.aside-card { border-radius: 22px; padding: 26px 24px; background: var(--surface-2); border: 1px solid var(--line); }
.aside-card h3 { margin: 0 0 18px; font-size: 18px; }

/* Preguntas frecuentes */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 750; font-size: 16.5px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq .ans { padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; }
.faq .ans p { margin: 0 0 8px; }

/* Cierre */
.final { text-align: center; padding: 80px 0; background: var(--hero-glow); }
.final h2 { font-size: clamp(32px, 7vw, 54px); letter-spacing: -.04em; line-height: 1.05; margin: 0 auto 16px; max-width: 820px; text-wrap: balance; }
.final p { color: var(--ink-2); font-size: 18px; margin: 0 auto 28px; max-width: 560px; }
.final .cta-row { justify-content: center; max-width: 520px; margin: 0 auto; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 14.5px; color: var(--ink-2); }
.foot-grid { display: grid; gap: 28px; }
.foot-grid .foot-h { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-tag { margin: 12px 0 0; max-width: 340px; }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; color: var(--ink-3); }

/* Aparición suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------- Tablet / escritorio ---------------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .who { grid-template-columns: 1fr 1fr; }
  .tally { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .f2, .f3 { display: flex; }
}
@media (min-width: 900px) {
  .header-actions .login-link { display: inline-flex; }
  .hero { padding: 56px 0 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
  .cta-row .btn { flex: 0 0 auto; }
  .section { padding: 104px 0; }
  .pillar { grid-template-columns: 1fr 1.15fr; gap: 64px; }
  .pillar.flip > :first-child { order: 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .try-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .tally { grid-template-columns: 1fr 1fr; }
  .ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .privacy { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .pricing { grid-template-columns: 1.1fr 1fr; gap: 28px; }
  .f1 { left: -34px; }
  .f2 { right: -26px; }
  .f3 { right: -18px; }
}
@media (min-width: 1120px) {
  .nav { display: flex; }
}
@media (min-width: 1200px) {
  .hero h1 { font-size: 70px; }
}

/* =========================================================
   Login
   ========================================================= */
.auth-page { min-height: 100vh; min-height: 100dvh; }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; }
.auth-art { display: none; }
.auth-panel { display: flex; flex-direction: column; padding: 22px var(--gutter) 28px; background: var(--hero-glow); }
.auth-top { display: flex; align-items: center; justify-content: space-between; }
.auth-center { flex: 1; display: grid; place-items: center; padding: 28px 0; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 24px; box-shadow: var(--shadow-lg); }
.auth-card h1 { margin: 0 0 6px; font-size: 27px; letter-spacing: -.03em; line-height: 1.15; }
.auth-card > div > p.muted { margin: 0 0 22px; font-size: 15.5px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-weight: 700; font-size: 14px; }
.field input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--surface); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border-radius: 9px; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); background: var(--surface-3); }
.pw-toggle svg { width: 20px; height: 20px; }
.row-end { display: flex; justify-content: flex-end; margin: -4px 0 20px; font-size: 14px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin: 0 0 18px; line-height: 1.45; }
.notice svg { width: 18px; height: 18px; margin-top: 1px; }
.notice.error { background: color-mix(in srgb, var(--danger) 10%, transparent); color: color-mix(in srgb, var(--danger) 80%, var(--ink)); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.notice.ok { background: var(--accent-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.notice.info { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.btn .spinner { display: none; }
.btn.loading .spinner { display: block; }
.btn.loading .label { opacity: .8; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.busy { text-align: center; padding: 18px 0 8px; }
.busy .spinner { width: 34px; height: 34px; margin: 0 auto 16px; color: var(--accent); border-width: 3px; }
.busy p { margin: 0; font-weight: 700; }
.auth-alt { margin: 18px 0 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.auth-alt a { color: var(--accent); font-weight: 750; }
.auth-legal { text-align: center; font-size: 13px; color: var(--ink-3); }
.auth-legal a { color: inherit; }
.back-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.back-link svg { width: 16px; height: 16px; }

@media (min-width: 960px) {
  .auth { grid-template-columns: 1.05fr 1fr; }
  .auth-art {
    display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; position: relative; overflow: hidden;
    background: radial-gradient(900px 500px at 20% 0%, rgba(61,214,195,.22), transparent 60%), #0B3B3C; color: #EAF4F2;
  }
  .auth-art .brand-name { color: #EAF4F2; } .auth-art .brand-name b { color: #7FE3D6; } .auth-art .brand-mark { color: #7FE3D6; }
  .auth-art .art { margin: 24px auto; width: min(560px, 100%); filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }
  .auth-art blockquote { margin: 0; font-size: 26px; font-weight: 750; letter-spacing: -.025em; line-height: 1.25; max-width: 480px; }
  .auth-art blockquote span { color: #7FE3D6; }
  .auth-art .small { font-size: 14px; color: #A8C9C4; margin-top: 10px; }
  .auth-panel { padding: 28px 48px 32px; }
  .auth-panel .auth-top .brand { visibility: hidden; }
}

/* =========================================================
   Páginas legales y 404
   ========================================================= */
.doc { padding: 40px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); letter-spacing: -.035em; line-height: 1.1; margin: 16px 0 8px; }
.doc h2 { font-size: 21px; letter-spacing: -.015em; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc .draft { margin: 18px 0 26px; }
.doc .updated { color: var(--ink-3); font-size: 14px; }
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.nf h1 { font-size: clamp(34px, 7vw, 54px); letter-spacing: -.04em; margin: 10px 0; }
.nf p { color: var(--ink-2); font-size: 18px; margin: 0 0 24px; }
.nf .big { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--accent); }

/* =========================================================
   Activar acceso (después de la compra)
   ========================================================= */
.steps-mini { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.steps-mini b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--accent); color: var(--accent-ink); }
.steps-mini b.off { background: var(--surface-3); color: var(--ink-3); }
.steps-mini i { width: 22px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.steps-mini i.on { background: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: -4px 0 16px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.field small { font-weight: 600; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }
.fine a, .auth-card .muted a { color: var(--accent); font-weight: 700; }
.auth-card { min-width: 0; overflow-wrap: anywhere; }
#doneEmail { color: var(--ink); }
.auth-card .btn { white-space: normal; text-align: center; }
