/* =====================================================================
   SEOXtreme — sistema de diseño del sitio público (v2.0.0)
   Tokens → base → layout → componentes → páginas. Sin estilos en línea (CSP estricta).
   Contraste AA verificado (texto normal ≥ 4.5:1, grande ≥ 3:1). Respeta prefers-reduced-motion.
   ===================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/assets/v2/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/assets/v2/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0b0d14; --bg-2: #10131c; --surface: #161a26; --surface-2: #1c2130; --line: #2a3043; --line-2: #3a4159;
  --text: #eef0f7; --muted: #b1b8cc; --dim: #8f97ad;
  --brand: #7c5cff; --brand-ink: #a996ff; --brand-btn: #6a4cf5; --brand-btn-h: #5a3de6; --cyan: #22d3ee; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --grad: linear-gradient(120deg, #8b6dff 0%, #5b8cff 45%, #22d3ee 100%);
  --radius: 16px; --radius-s: 10px; --shadow: 0 20px 60px -20px rgba(0,0,0,.6); --focus: 0 0 0 3px #0b0d14, 0 0 0 6px #a996ff;
  --wrap: 1180px; --wrap-text: 760px;
  --fs-0: .875rem; --fs-1: 1rem; --fs-2: 1.125rem; --fs-3: 1.375rem; --fs-4: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); --fs-5: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
}
.tema-claro {
  --bg: #ffffff; --bg-2: #f6f7fb; --surface: #ffffff; --surface-2: #f2f3f8; --line: #e1e4ee; --line-2: #c9cede;
  --text: #12141c; --muted: #444b66; --dim: #5a6180; --brand-ink: #4c32c9; --shadow: 0 16px 40px -24px rgba(20,24,40,.35); --focus: 0 0 0 3px #fff, 0 0 0 6px #4c32c9;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-1)/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: var(--fs-5); } h2 { font-size: var(--fs-4); } h3 { font-size: var(--fs-3); } h4 { font-size: var(--fs-2); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
small { font-size: var(--fs-0); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #12141c; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.saltar:focus { top: 12px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-texto { width: min(100% - 32px, var(--wrap-text)); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.centro { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .8em 1.4em; border-radius: 12px; border: 1px solid transparent;
  font: 700 var(--fs-1)/1.1 inherit; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--pri { background: var(--brand-btn); color: #fff; box-shadow: 0 10px 30px -10px rgba(106,76,245,.8); }
.btn--pri:hover { background: var(--brand-btn-h); }
.btn--sec { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--sec:hover { border-color: var(--brand-ink); }
.btn--claro { background: #fff; color: #12141c; }
.btn--xl { min-height: 56px; padding: 1em 1.8em; font-size: var(--fs-2); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; transform: none; }
.enlace-flecha { font-weight: 700; text-decoration: none; }
.enlace-flecha::after { content: " →"; }
.enlace-boton { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.sin-vinetas { list-style: none; padding: 0; margin: 0; }

/* ---------- Encabezado ---------- */
.cab { position: sticky; top: 0; z-index: 50; background: rgba(11,13,20,.86); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.tema-claro .cab { background: rgba(255,255,255,.9); }
.cab__in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.2rem; letter-spacing: -.02em; }
.logo svg { width: 32px; height: 32px; }
.logo b { font-weight: 900; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.cab__cta { display: flex; gap: 10px; align-items: center; }
.cab__cta .btn { min-height: 42px; padding: .6em 1.1em; }
.menu-btn { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; min-width: 46px; min-height: 46px; cursor: pointer; }
/* v2.0.3: con 7 secciones, el menú se vuelve botón hasta 1080 px; «Entrar» sigue visible hasta 961 px como antes */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .cab__cta { margin-left: 8px; }
  .nav.abierto { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav.abierto a { padding: 14px 12px; font-size: var(--fs-2); }
}
@media (max-width: 960px) {
  .cab__cta .btn--sec { display: none; }
}
@media (min-width: 961px) and (max-width: 1080px) { .cab__cta { margin-left: auto; } .menu-btn { margin-left: 0; } }
@media (max-width: 420px) { .cab__cta .btn--pri { padding: .6em .8em; font-size: .9rem; } }

/* ---------- Héroe ---------- */
.heroe { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.heroe::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; background: radial-gradient(50% 50% at 30% 30%, rgba(124,92,255,.28), transparent 70%), radial-gradient(40% 40% at 80% 20%, rgba(34,211,238,.18), transparent 70%); pointer-events: none; }
.heroe__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.heroe h1 { margin-bottom: .35em; }
.heroe .sub { font-size: var(--fs-2); color: var(--muted); max-width: 40ch; }
.centro .sub { margin-inline: auto; } /* subtítulo centrado en héroes centrados */
.heroe__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.garantias { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: var(--fs-0); }
.garantias li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.pastilla { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: var(--fs-0); font-weight: 600; margin-bottom: 18px; background: rgba(255,255,255,.03); }
.pastilla i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
@media (max-width: 900px) { .heroe__in { grid-template-columns: 1fr; } .heroe .sub { max-width: none; } }

/* Tarjeta de demostración (ilustrativa) */
.demo { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.demo__barra { display: flex; gap: 6px; margin-bottom: 14px; } .demo__barra span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.demo__fila { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--bg); }
.demo__fila strong { display: block; font-size: var(--fs-0); } .demo__fila span { color: var(--dim); font-size: .8rem; }
.etq { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.etq--ok { background: rgba(52,211,153,.14); color: #6ee7b7; } .etq--pend { background: rgba(251,191,36,.14); color: #fcd34d; } .etq--ia { background: rgba(124,92,255,.18); color: #c4b5fd; }
.tema-claro .etq--ok { color: #047857; } .tema-claro .etq--pend { color: #92400e; } .tema-claro .etq--ia { color: #4c32c9; }
.demo__nota { margin: 8px 2px 0; color: var(--dim); font-size: .75rem; }

/* ---------- Secciones ---------- */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec__cab { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.sec__cab p { color: var(--muted); font-size: var(--fs-2); }
.antetitulo { display: block; color: var(--brand-ink); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; }
.rejilla { display: grid; gap: 18px; }
.rejilla--2 { grid-template-columns: repeat(2, 1fr); } .rejilla--3 { grid-template-columns: repeat(3, 1fr); } .rejilla--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .rejilla--3, .rejilla--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rejilla--2, .rejilla--3, .rejilla--4 { grid-template-columns: 1fr; } }
.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tarjeta h3 { font-size: var(--fs-2); margin-bottom: .4em; }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta--link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.tarjeta--link:hover { border-color: var(--brand-ink); transform: translateY(-2px); }
.icono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(124,92,255,.14); color: var(--brand-ink); margin-bottom: 14px; }
.icono svg { width: 22px; height: 22px; }
.lista-check { list-style: none; padding: 0; margin: 0 0 1em; }
.lista-check li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: rgba(52,211,153,.18); box-shadow: inset 0 0 0 2px var(--ok); }
.lista-x li::before { background: rgba(248,113,113,.15); box-shadow: inset 0 0 0 2px var(--bad); }
.pasos { counter-reset: paso; list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.pasos li { counter-increment: paso; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pasos li::before { content: counter(paso); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #0b0d14; font-weight: 900; margin-bottom: 14px; }
@media (max-width: 860px) { .pasos { grid-template-columns: 1fr; } }
.comparativa { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: var(--fs-0); }
.comparativa th, .comparativa td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparativa thead th { background: var(--surface-2); font-size: var(--fs-0); }
.comparativa tr:last-child td { border-bottom: 0; }
.tabla-scroll { overflow-x: auto; border-radius: var(--radius); }
.cita-dato { border-left: 4px solid var(--brand); padding: 6px 0 6px 18px; margin: 0 0 1.2em; color: var(--muted); }

/* ---------- CTA grande ---------- */
.cta-final { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 6vw, 64px); text-align: center; background: radial-gradient(60% 80% at 20% 0%, rgba(124,92,255,.35), transparent 70%), radial-gradient(50% 70% at 100% 100%, rgba(34,211,238,.25), transparent 70%), var(--surface); border: 1px solid var(--line-2); }
.cta-final h2 { max-width: 22ch; margin-inline: auto; }
.cta-final p { color: var(--muted); max-width: 56ch; margin-inline: auto; }
.cta-final .heroe__ctas { justify-content: center; }

/* ---------- Precios ---------- */
.ciclo { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin: 0 auto 28px; }
.ciclo button { border: 0; background: transparent; color: var(--muted); font: 700 var(--fs-0) inherit; padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; }
.ciclo button[aria-pressed="true"] { background: var(--brand-btn); color: #fff; }
.planes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .planes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .planes { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; position: relative; }
.plan--destacado { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan__sello { position: absolute; top: -12px; left: 24px; background: var(--grad); color: #0b0d14; font-weight: 900; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin-bottom: 4px; } .plan__para { color: var(--dim); font-size: var(--fs-0); min-height: 4.4em; }
.plan__precio { font-size: 2.4rem; font-weight: 900; letter-spacing: -.03em; margin: 8px 0 0; }
.plan__precio small { font-size: var(--fs-0); font-weight: 600; color: var(--dim); }
.plan__precio--medida { font-size: 2rem; }
.lista-num li { margin: 0 0 10px; }
.plan__anual { color: var(--ok); font-size: var(--fs-0); min-height: 1.4em; margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; font-size: var(--fs-0); }
.plan li { padding: 7px 0 7px 24px; position: relative; border-bottom: 1px dashed var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }
.plan li.no { color: var(--dim); } .plan li.no::before { content: "–"; color: var(--dim); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 700; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand-ink); }
.faq details[open] summary::after { content: "–"; }
.faq .resp { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 14px; }
.campo label { display: block; font-weight: 700; margin-bottom: 6px; font-size: var(--fs-0); }
.campo .ayuda { display: block; color: var(--dim); font-size: .8rem; margin-top: 6px; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 500 var(--fs-1) inherit; }
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 3px rgba(124,92,255,.35); }
.campo input[aria-invalid="true"] { border-color: var(--bad); }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 560px) { .fila-2 { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: var(--fs-0); color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.msg { border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: var(--fs-0); }
.msg[hidden] { display: none; }
.msg--ok { background: rgba(52,211,153,.12); color: #a7f3d0; border: 1px solid rgba(52,211,153,.4); }
.msg--error { background: rgba(248,113,113,.12); color: #fecaca; border: 1px solid rgba(248,113,113,.4); }
.tema-claro .msg--ok { color: #065f46; } .tema-claro .msg--error { color: #991b1b; }
.form-caja { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.otp { letter-spacing: .5em; font-size: 1.6rem !important; text-align: center; font-weight: 800; }
.legal-mini { color: var(--dim); font-size: .8rem; }

/* ---------- Recursos / magnets ---------- */
.recurso { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.recurso__portada { aspect-ratio: 3/4; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #0b0d14; font-weight: 900; text-align: center; padding: 10px; font-size: .9rem; line-height: 1.2; }
@media (max-width: 520px) { .recurso { grid-template-columns: 1fr; } .recurso__portada { max-width: 140px; } }

/* ---------- Artículos (Academia) ---------- */
.migas { font-size: var(--fs-0); color: var(--dim); margin: 24px 0 12px; }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.migas li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.migas a { color: var(--muted); }
.art-cab h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--dim); font-size: var(--fs-0); margin-bottom: 26px; }
.prosa { font-size: 1.0625rem; line-height: 1.75; }
.prosa h2 { margin-top: 2em; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.prosa h3 { margin-top: 1.6em; font-size: 1.25rem; }
.prosa img { border-radius: 12px; }
.prosa blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.prosa blockquote p:last-child { margin-bottom: 0; }
.prosa code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prosa pre { background: #0f1220; color: #e7e9f3; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: .9rem; line-height: 1.55; }
.prosa pre code { background: transparent; padding: 0; color: inherit; }
.prosa table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prosa th, .prosa td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prosa th { background: var(--surface-2); }
.prosa li { margin-bottom: .4em; }
.resumen { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 16px; padding: 18px 20px; margin: 0 0 28px; }
.resumen strong:first-child { color: var(--brand-ink); }
.indice { border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 0 0 28px; font-size: var(--fs-0); }
.indice ol { margin: 8px 0 0; }
.indice li { margin: 4px 0; }
.indice a { display: inline-block; min-height: 24px; padding: 2px 0; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.art-lateral { position: sticky; top: 92px; display: grid; gap: 16px; }
@media (max-width: 1000px) { .art-layout { grid-template-columns: minmax(0, 1fr); } .art-lateral { position: static; } }
.art, .prosa, .art-lateral { min-width: 0; }
.prosa { overflow-wrap: anywhere; }
.prosa pre, .tabla-scroll { max-width: 100%; }
.caja-cta { border-radius: 18px; padding: 22px; background: radial-gradient(80% 90% at 0% 0%, rgba(124,92,255,.22), transparent 70%), var(--surface); border: 1px solid var(--line-2); margin: 2em 0; }
.caja-cta h3 { margin-top: 0 !important; font-size: 1.2rem; }
.caja-cta p { color: var(--muted); }
.caja-cta--trial { background: radial-gradient(80% 90% at 100% 0%, rgba(34,211,238,.18), transparent 70%), var(--surface); }
.relacionados { margin-top: 48px; }
.autor { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; color: var(--muted); font-size: var(--fs-0); }
.autor__av { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--muted); font-weight: 600; font-size: var(--fs-0); }
.chips a:hover, .chips a[aria-current="page"] { color: var(--text); border-color: var(--brand-ink); }
.buscador { position: relative; max-width: 560px; margin: 0 auto 30px; }
.buscador input { width: 100%; min-height: 54px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); padding: 0 22px; font: 500 var(--fs-2) inherit; }
.tarjeta-art h3 { font-size: 1.1rem; }
.tarjeta-art .dim { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* ---------- Auditoría ---------- */
.puntaje { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; }
.anillo { width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--brand)) calc(var(--p, 0) * 1%), var(--line) 0); }
.anillo span { width: 128px; height: 128px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.checks li strong { display: block; } .checks li p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-0); }
/* v2.0.8 — auditoría: quién resuelve cada punto, notas del informe y «Volver a revisar» */
.quien { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line-2); color: var(--muted); }
.quien--sx { border-color: rgba(124,92,255,.55); color: #c4b5fd; } .tema-claro .quien--sx { color: #4c32c9; }
.notas-auditoria { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.notas-auditoria li { border: 1px solid rgba(251,191,36,.4); background: rgba(251,191,36,.08); border-radius: 12px; padding: 12px 14px; font-size: var(--fs-0); }
.revision { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; color: var(--muted); font-size: var(--fs-0); }
@media (max-width: 600px) { .puntaje { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-2); font-size: var(--fs-0); color: var(--muted); }
.pie__cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.pie h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 12px; }
.pie ul { list-style: none; padding: 0; margin: 0; } .pie li { margin-bottom: 8px; }
.pie a { color: var(--muted); text-decoration: none; } .pie a:hover { color: var(--text); text-decoration: underline; }
.pie__legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 900px) { .pie__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pie__cols { grid-template-columns: 1fr; } }
.boletin { display: flex; gap: 8px; margin-top: 12px; } .boletin input { flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 12px; }
.boletin .btn { min-height: 44px; padding: .5em 1em; }

/* ---------- Barra CTA móvil, chat, consentimiento, modal ---------- */
.barra-movil { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(16,19,28,.96); border-top: 1px solid var(--line); }
.barra-movil .btn { flex: 1; min-height: 46px; }
.barra-movil .btn--sec { color: #eef0f7; border-color: #3a4159; }
@media (max-width: 760px) { .barra-movil { display: flex; } body.con-barra { padding-bottom: 76px; } }
.chat-btn { position: fixed; right: 18px; bottom: 18px; z-index: 45; border: 0; border-radius: 999px; min-height: 56px; padding: 0 20px; background: var(--brand-btn); color: #fff; font: 800 var(--fs-0) inherit; box-shadow: 0 16px 40px -12px rgba(106,76,245,.9); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .chat-btn { bottom: 84px; right: 12px; min-height: 52px; padding: 0 16px; } }
.chat { position: fixed; right: 18px; bottom: 86px; z-index: 46; width: min(380px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.chat[hidden] { display: none; }
@media (max-width: 760px) { .chat { right: 12px; bottom: 144px; max-height: calc(100vh - 170px); } }
.chat__cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat__cab strong { font-size: var(--fs-1); } .chat__cab button { background: transparent; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.chat__log { flex: 1; overflow-y: auto; padding: 14px 16px; display: grid; gap: 10px; align-content: start; font-size: var(--fs-0); }
.burbuja { max-width: 88%; padding: 10px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.burbuja--bot { background: var(--surface-2); justify-self: start; border-bottom-left-radius: 4px; }
.burbuja--yo { background: var(--brand-btn); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.chat__sug { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat__sug button { border: 1px solid var(--line-2); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 10px; font: 600 .8rem inherit; cursor: pointer; min-height: 36px; }
.chat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 12px; font: 500 var(--fs-0) inherit; }
.chat__legal { padding: 0 16px 10px; color: var(--dim); font-size: .72rem; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.consent[hidden] { display: none; }
@media (max-width: 600px) { .consent { right: 16px; bottom: 12px; padding: 14px 16px; } .consent p { font-size: .82rem; } }
.consent h2 { font-size: var(--fs-1); margin-bottom: 6px; } .consent p { color: var(--muted); font-size: var(--fs-0); margin-bottom: 12px; }
.consent__btns { display: flex; flex-wrap: wrap; gap: 8px; } .consent__btns .btn { min-height: 44px; flex: 1 1 140px; }
.consent__opts { display: grid; gap: 10px; margin: 6px 0 14px; } .consent__opts[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(5,6,10,.72); }
.modal[hidden] { display: none; }
.modal__caja { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.modal__cerrar { position: absolute; top: 10px; right: 10px; background: transparent; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.banda-eco { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; } @media (max-width: 700px) { .banda-eco { grid-template-columns: 1fr; } }

/* ---------- Animación de aparición ---------- */
.aparece { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.aparece.visto { opacity: 1; transform: none; }
/* v2.0.3 · Página de funciones, resultados posibles y comparativa de planes */
.func-indice { padding-block: 18px; border-bottom: 1px solid var(--line); }
.func-indice__lista { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.func-indice__lista a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: var(--fs-0); background: var(--surface); }
.func-indice__lista a:hover, .func-indice__lista a:focus-visible { border-color: var(--brand-ink); color: var(--brand-ink); }
.func { scroll-margin-top: 80px; }
.func__cab { display: flex; gap: 18px; align-items: flex-start; max-width: 880px; margin: 0 auto 26px; }
.func__cab h2 { margin: 0 0 6px; }
.func__cab p { margin: 0; }
.icono--xl { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 16px; margin: 0; }
.icono--xl svg { width: 28px; height: 28px; }
.func__lista { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.func__lista li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); line-height: 1.5; }
.func__check { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,211,153,.16); color: var(--ok); margin-top: 1px; }
.func__check svg { width: 14px; height: 14px; }
.func__desc { color: var(--muted); }
.aviso-resultados { max-width: 760px; margin-inline: auto; text-align: center; color: var(--muted); font-size: var(--fs-0); }
.comparativa--planes th[scope="row"] { font-weight: 600; }
.comparativa--planes thead th, .comparativa--planes td { text-align: center; }
.comparativa--planes thead th:first-child { text-align: left; }
.cmp-precio { font-weight: 700; font-size: var(--fs-0); color: var(--brand-ink); }
.cmp-si { color: var(--ok); font-weight: 800; }
.tema-claro .cmp-si { color: #047857; }
.cmp-no { color: var(--muted); }
@media (max-width: 720px) { .func__lista { grid-template-columns: 1fr; } .func__cab { flex-direction: column; gap: 12px; } }
/* héroes centrados: botones y garantías también al centro */
.centro .heroe__ctas, .heroe__ctas.centro, .centro .garantias { justify-content: center; }
/* comparativa de planes: columnas parejas; en celular se desplaza dentro de su caja */
.comparativa--planes { table-layout: fixed; min-width: 760px; }
.comparativa--planes thead th:first-child { width: 30%; }
/* pantallas de 320 px: el pie y el boletín se ajustan sin desbordar */
.pie__cols > * { min-width: 0; }
.boletin input { min-width: 0; }
/* los íconos de texto para lectores de pantalla no deben ensanchar la página al desplazar la tabla */
.tabla-scroll { position: relative; }
/* menú de escritorio en una sola línea (7 secciones + botones sin desbordar) */
@media (min-width: 1081px) {
  .cab__in { gap: 12px; }
  .nav { gap: 2px; }
  .nav a { padding: 10px 7px; font-size: .92rem; white-space: nowrap; }
  .cab__cta .btn { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aparece { opacity: 1; transform: none; transition: none; }
  .btn, .tarjeta--link { transition: none; }
}
@media print { .cab, .pie, .barra-movil, .chat-btn, .chat, .consent, .caja-cta, .art-lateral { display: none !important; } body { background: #fff; color: #000; } }

/* v2.0.16 — idioma: enlace en el encabezado y el pie, y aviso discreto de que existe la otra versión */
.cab__cta .idioma { font-size: .9rem; color: var(--muted); text-decoration: none; padding: .45em .5em; min-height: 24px; white-space: nowrap; }
.cab__cta .idioma:hover, .cab__cta .idioma:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.idioma-pie { white-space: nowrap; }
.idioma-aviso { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; padding: 8px 16px; font-size: .9rem; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.idioma-aviso a { font-weight: 600; }
@media (max-width: 420px) { .cab__cta .idioma { padding: .45em .2em; font-size: .85rem; } }
