/* Opeando · web pública · sistema 2.0 (30-10-2026)
   Colores del logo: degradado esmeralda → bosque, Q blanca y check menta.
   Movimiento según Emil Kowalski: curvas fuertes, nada desde scale(0), hover solo con ratón, movimiento reducido. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0030-0039; }

:root {
  --night: #03140d; --forest: #062e20; --forest-2: #0a3d2b; --emerald: #0d6446; --jade: #14a873; --mint: #3fe5a0; --mint-2: #8ef3c6;
  --grad: linear-gradient(135deg, #22d08f 0%, #0e7a53 38%, #063a28 100%);
  --grad-soft: linear-gradient(160deg, #0d4a34 0%, #062e20 60%, #03180f 100%);
  --glow: radial-gradient(60% 60% at 72% 28%, rgba(63, 229, 160, .26), transparent 70%);
  --on-dark: #e9fbf2; --on-dark-2: rgba(233, 251, 242, .74); --on-dark-3: rgba(233, 251, 242, .55);
  --bg: #f3f7f5; --card: #ffffff; --card-2: #f7faf8; --sunk: #eaf1ed; --ice: #e3f8ee;
  --ink: #08201a; --ink-2: #47605a; --ink-3: #6f857d; --line: #e1e9e5; --line-2: #cbd8d1; --link: #0d6446;
  --ok: #0c8f5e; --ok-soft: #dcf7ea; --bad: #d23c45; --bad-soft: #fde8e9;
  --amber: #ffb23f; --amber-soft: #fff1d9; --amber-ink: #8a5300; --sky: #2b76c4; --sky-soft: #e3effb; --plum: #6f4fe0; --plum-soft: #eee9fe;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --text: "Atkinson", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-xl: 28px; --r-lg: 22px; --r: 16px; --r-sm: 11px;
  --sh-1: 0 1px 0 rgba(8, 32, 26, .04), 0 1px 3px rgba(8, 32, 26, .07);
  --sh-2: 0 1px 0 rgba(8, 32, 26, .04), 0 14px 34px -18px rgba(8, 32, 26, .32);
  --sh-3: 0 40px 80px -40px rgba(3, 20, 13, .55);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --wrap: 1180px; --gut: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07140f; --card: #0e1f18; --card-2: #112519; --sunk: #16301f; --ice: #12382a;
    --ink: #e6f4ec; --ink-2: #a7bfb3; --ink-3: #7f998c; --line: #1d382b; --line-2: #2b4c3c; --link: #6ff0b9;
    --ok: #4be3a3; --ok-soft: #12382a; --bad: #ff7d85; --bad-soft: #3a1b20;
    --amber-soft: #3a2c0f; --amber-ink: #f5c66a; --sky: #7cc0f2; --sky-soft: #142e42; --plum: #b49cff; --plum-soft: #2a2148;
    --sh-1: 0 0 0 1px rgba(255,255,255,.05); --sh-2: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07140f; --card: #0e1f18; --card-2: #112519; --sunk: #16301f; --ice: #12382a;
  --ink: #e6f4ec; --ink-2: #a7bfb3; --ink-3: #7f998c; --line: #1d382b; --line-2: #2b4c3c; --link: #6ff0b9;
  --ok: #4be3a3; --ok-soft: #12382a; --bad: #ff7d85; --bad-soft: #3a1b20;
  --amber-soft: #3a2c0f; --amber-ink: #f5c66a; --sky: #7cc0f2; --sky-soft: #142e42; --plum: #b49cff; --plum-soft: #2a2148;
  --sh-1: 0 0 0 1px rgba(255,255,255,.05); --sh-2: 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-thickness: 2px; } }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); line-height: .96; font-weight: 870; font-stretch: 116%; letter-spacing: -.04em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.7rem); line-height: 1.02; font-weight: 850; font-stretch: 114%; letter-spacing: -.03em; margin-bottom: .9rem; }
h3 { font-size: 1.2rem; line-height: 1.22; font-weight: 780; font-stretch: 106%; letter-spacing: -.01em; margin: 1.6rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin: .3rem 0; }
strong, b { font-weight: 700; }
code { font: 600 .86em ui-monospace, Menlo, Consolas, monospace; background: var(--sunk); border-radius: 6px; padding: .1rem .35rem; }
code.hash { word-break: break-all; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.prose { max-width: 70ch; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.mt { margin-top: 1.3rem; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; font-stretch: 112%; font-weight: 820; letter-spacing: -.02em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: .6rem 1rem; z-index: 99; border-radius: 10px; }
.skip:focus { left: 8px; top: 8px; }
.ico { width: 22px; height: 22px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 800 .78rem/1 var(--display); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; color: var(--jade); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: currentColor; }

/* ---------- Botones y etiquetas ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .8rem 1.35rem; border-radius: var(--r); border: 0; font: 700 1.02rem/1.15 var(--text); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn .ico { width: 20px; height: 20px; }
.btn-mint { background: var(--mint); color: #03140d; box-shadow: 0 10px 30px -12px rgba(63, 229, 160, .7), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-dark { background: var(--forest); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); }
.btn-line { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-mint:hover { background: #5af0b2; text-decoration: none; }
  .btn-dark:hover { background: var(--forest-2); }
  .btn-glass:hover { background: rgba(255, 255, 255, .14); }
  .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
  .btn .arr { transition: transform 220ms var(--ease-out); }
  .btn:hover .arr { transform: translateX(3px); }
}
:root[data-theme="dark"] .btn-dark { background: var(--mint); color: #03140d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-dark { background: var(--mint); color: #03140d; } }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.6rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .7rem; border-radius: 999px; font: 700 .82rem/1.2 var(--text); white-space: nowrap; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-amber { background: var(--amber-soft); color: var(--amber-ink); }
.chip-sky { background: var(--sky-soft); color: var(--sky); }
.chip-soft { background: var(--sunk); color: var(--ink-2); }
.chip-glass { background: rgba(255,255,255,.12); color: #e9fbf2; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

/* ---------- Navegación (flotante) ---------- */
.top { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 12px; }
.top .wrap { padding: 0; }
.top-bar { display: flex; align-items: center; gap: .8rem; padding: 8px 8px 8px 12px; border-radius: 20px; background: rgba(6, 46, 32, .66); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 20px 40px -24px rgba(0,0,0,.6); color: #fff; transition: background-color 300ms ease; position: relative; }
.top.solid .top-bar { background: rgba(6, 46, 32, .92); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font: 850 1.28rem/1 var(--display); font-stretch: 112%; letter-spacing: -.03em; }
.brand img { width: 36px; height: 36px; flex: none; }
.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav a { color: rgba(233, 251, 242, .78); text-decoration: none; padding: .55rem .75rem; border-radius: 12px; font-weight: 700; font-size: .95rem; transition: color 150ms ease, background-color 150ms ease; }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: #fff; background: rgba(255,255,255,.08); } }
.nav .enter { color: #e9fbf2; margin-left: .3rem; }
.nav .btn { margin-left: .3rem; min-height: 44px; padding: .55rem 1rem; color: #03140d; }
@media (hover: hover) and (pointer: fine) { .nav .btn:hover { color: #03140d; background: #5af0b2; } }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: .45rem; background: rgba(255,255,255,.08); border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); color: #fff; border-radius: 12px; padding: .55rem .85rem; min-height: 44px; font: 700 .95rem var(--text); cursor: pointer; transition: transform 160ms var(--ease-out); }
.menu-btn:active { transform: scale(.96); }
.menu-btn i { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: background-color 200ms ease; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 220ms var(--ease-out); }
.menu-btn i::before { top: -5px; } .menu-btn i::after { top: 5px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 20px; background: rgba(6, 46, 32, .97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 60px -20px rgba(0,0,0,.6); transform-origin: top center; }
  .nav.open { display: flex; animation: menuIn 220ms var(--ease-out); }
  .nav a { padding: .85rem .8rem; font-size: 1.02rem; }
  .nav .enter, .nav .btn { margin: .3rem 0 0; text-align: center; justify-content: center; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------- Cabecera de páginas interiores ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--grad-soft); color: var(--on-dark); padding: 118px 0 clamp(2.6rem, 2rem + 2vw, 3.6rem); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glow); }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.page-head h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); max-width: 22ch; margin-bottom: .9rem; }
.page-head .lead { color: var(--on-dark-2); }
.crumbs { font-size: .88rem; margin-bottom: 1.2rem; color: var(--on-dark-3); }
.crumbs a { color: var(--on-dark-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: #fff; text-decoration: underline; } }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; opacity: .6; }
.updated { display: inline-block; margin: 1.1rem 0 0; font-size: .86rem; font-weight: 700; color: var(--on-dark-2); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); padding: .35rem .75rem; border-radius: 999px; }
.updated::before { content: ""; display: inline-block; vertical-align: middle; width: 7px; height: 7px; margin: -2px .5rem 0 0; border-radius: 50%; background: var(--mint); }

/* ---------- Página interior: artículo + lateral ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; padding-top: 2.8rem; padding-bottom: 4rem; }
.layout > article, .layout > aside { min-width: 0; }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 3.5rem; } }
.layout article > section { margin-bottom: 2.6rem; }
.layout article h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: .4rem; }
.layout article > section:first-child > h2:first-child, .layout article > h2:first-child { margin-top: 0; }
.aside-box { position: sticky; top: 104px; border-radius: var(--r-xl); padding: 1.4rem; background: var(--card); box-shadow: var(--sh-2); }
.aside-box > h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.aside-box > p { color: var(--ink-2); font-size: .97rem; }
.aside-box .btn { width: 100%; }
.toc { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .94rem; }
.toc h2 { font: 800 .76rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .7rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a { display: block; color: var(--ink-2); text-decoration: none; padding: .4rem .6rem; border-radius: 10px; transition: background-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { background: var(--sunk); color: var(--ink); } }
.toc:empty { display: none; }
@media (max-width: 999px) { .aside-box { position: static; } .toc { display: none; } }

.answer { font-size: 1.1rem; line-height: 1.6; background: var(--card); box-shadow: var(--sh-1); border-radius: var(--r-lg); padding: 1.2rem 1.4rem 1.2rem 1.5rem; margin: 0 0 2.2rem; max-width: 72ch; position: relative; overflow: hidden; }
.answer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.note { background: var(--amber-soft); border-radius: var(--r); padding: 1rem 1.2rem; margin: 0 0 1.2rem; max-width: 72ch; }
.note strong { color: var(--amber-ink); }
.sources { font-size: .9rem; color: var(--ink-2); background: var(--card-2); border-radius: var(--r-lg); padding: 1.2rem 1.4rem .6rem; margin-top: 2.6rem; box-shadow: inset 0 0 0 1px var(--line); }
.sources h2 { font: 800 .76rem/1 var(--display) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .7rem !important; }
.sources ol { padding-left: 1.2rem; }
.sources a { word-break: break-word; }
.topics { columns: 1; padding-left: 1.7rem; }
@media (min-width: 760px) { .topics { columns: 2; column-gap: 2.4rem; } }
.topics li { break-inside: avoid; }
.part { font-size: .82rem; color: var(--ink-3); }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; -webkit-overflow-scrolling: touch; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
caption { text-align: left; color: var(--ink-2); font-size: .88rem; padding: 1rem 1.1rem .4rem; }
th, td { text-align: left; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
thead th { font: 800 .78rem/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); background: var(--card-2); }
tbody th[scope="row"] { color: var(--ink-2); font-weight: 700; width: 34%; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tbody th[colspan] { background: var(--sunk); font: 800 .95rem/1.2 var(--display); font-stretch: 106%; color: var(--ink); padding: .7rem 1.1rem; }
.st { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 700; white-space: nowrap; padding: .2rem .6rem; border-radius: 999px; }
.st.on { background: var(--ok-soft); color: var(--ok); }
.st.soon { background: var(--sunk); color: var(--ink-3); }

/* ---------- Cifras, pasos, modos ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 1rem; }
.fact { background: var(--card); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; box-shadow: var(--sh-1); }
.fact .num { display: block; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem); line-height: 1; color: var(--ink); }
.fact span:last-child { display: block; margin-top: .45rem; color: var(--ink-2); font-size: .92rem; line-height: 1.35; }
.steps { list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 46px 1fr; gap: 0 1rem; padding: 1.1rem 1.2rem; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); margin: 0; }
.steps li::before { content: counter(s); width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--ice); color: var(--emerald); font: 880 1.2rem/1 var(--display); font-stretch: 112%; }
:root[data-theme="dark"] .steps li::before { color: var(--mint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { color: var(--mint); } }
.steps h3 { margin: .2rem 0 .3rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 3.6rem 1.15rem 1.3rem; position: relative; font: 780 1.06rem/1.35 var(--display); font-stretch: 102%; border-radius: var(--r-lg); transition: color 150ms ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 10px; }
.faq summary::after { background: var(--sunk) linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat; transition: background-color 200ms ease; }
.faq summary::before { z-index: 1; background: linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat; transition: transform 240ms var(--ease-out), opacity 200ms ease; }
.faq details[open] summary::before { transform: rotate(90deg); opacity: 0; }
.faq details[open] summary::after { background-color: var(--ok-soft); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--link); } }
.faq .a { padding: 0 1.3rem 1.2rem; max-width: 70ch; color: var(--ink-2); }
.faq details[open] .a { animation: aIn 260ms var(--ease-out); }
@keyframes aIn { from { opacity: 0; transform: translateY(-4px); } }
.faq .a p:last-child { margin: 0; }
section[aria-labelledby="faq-t"] { margin-top: 2.6rem; }

/* ---------- Test gratis ---------- */
.quiz { max-width: 760px; display: grid; gap: 14px; }
.q { background: var(--card); border-radius: var(--r-xl); padding: 1.4rem; box-shadow: var(--sh-1); }
.q-n { font: 800 .76rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--jade); margin-bottom: .7rem; display: block; }
.q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q legend { font: 800 1.18rem/1.35 var(--display); font-stretch: 102%; padding: 0; margin-bottom: 1rem; }
.opt { display: flex; align-items: center; gap: .85rem; padding: .8rem; border-radius: var(--r); cursor: pointer; margin: 0 0 .55rem; background: var(--card-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 180ms ease, background-color 180ms ease, transform 160ms var(--ease-out); }
.opt:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .q:not(.done) .opt:hover { box-shadow: inset 0 0 0 1.5px var(--jade); } }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bub { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; font: 800 .9rem/1 var(--display); font-stretch: 110%; background: var(--sunk); color: var(--ink-2); transition: background-color 200ms ease, color 200ms ease; }
.opt input:focus-visible + .bub { outline: 3px solid var(--mint); outline-offset: 2px; }
.opt input:checked + .bub { background: var(--forest); color: #fff; }
.q.done .opt { cursor: default; }
.opt.right { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--ok); }
.opt.right .bub { background: var(--ok); color: #fff; }
.opt.wrong { background: var(--bad-soft); box-shadow: inset 0 0 0 2px var(--bad); }
.opt.wrong .bub { background: var(--bad); color: #fff; }
.q.done .opt:not(.right):not(.wrong) { opacity: .55; }

/* Corrección: tarjeta con la justificación en un solo bloque */
.fb { margin-top: .9rem; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line), var(--sh-2); overflow: hidden; animation: fbIn 320ms var(--ease-out) both; }
@keyframes fbIn { from { opacity: 0; transform: translateY(8px); } }
.fb-head { display: flex; align-items: center; gap: .55rem; padding: .8rem 1.2rem; font: 860 1.1rem/1.2 var(--display); font-stretch: 112%; }
.fb-head svg { width: 22px; height: 22px; flex: none; }
.fb.is-ok .fb-head { background: var(--ok-soft); color: var(--ok); }
.fb.is-ko .fb-head { background: var(--bad-soft); color: var(--bad); }
.fb-label { display: block; margin: 1rem 1.2rem .5rem; font: 800 .72rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fb-text { margin: 0 1.2rem; font-size: 1.02rem; line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.fb-src { display: flex; align-items: center; gap: .5rem; margin: 1rem 1.2rem 0; padding: .85rem 0 1rem; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.fb-src svg { width: 18px; height: 18px; flex: none; color: var(--emerald); }
.fb-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 1.2rem 1.2rem; }
.fb-actions .btn { min-height: 46px; font-size: .96rem; }
.score { border-radius: var(--r-xl); padding: 1.8rem; background: var(--grad); color: #fff; margin-top: 1rem; box-shadow: var(--sh-3); }
.score h2 { color: #fff; }
.score p { color: rgba(255,255,255,.85); }
.score .num { font-size: 3.4rem; line-height: 1; color: #fff; }
.score .btn-line { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }

/* ---------- Llamada final ---------- */
.cta { padding: 0 0 clamp(4rem, 3rem + 4vw, 6.5rem); }
.cta-card { border-radius: 34px; background: var(--grad); color: #fff; padding: clamp(2rem, 1.4rem + 4vw, 4.6rem); position: relative; overflow: hidden; display: grid; gap: 2rem; align-items: center; isolation: isolate; }
.cta-card::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(142,243,198,.3), transparent 70%); z-index: -1; }
@media (min-width: 900px) { .cta-card { grid-template-columns: 1.3fr .7fr; } }
.cta-card h2 { color: #fff; max-width: 18ch; }
.cta-card p { color: rgba(255,255,255,.84); font-size: 1.12rem; max-width: 46ch; margin: .6rem 0 0; }
.cta-card img { width: min(260px, 60%); justify-self: center; filter: drop-shadow(0 40px 60px rgba(0,0,0,.4)); transform: rotate(6deg); }
@media (max-width: 899px) { .cta-card img { display: none; } }

/* ---------- Pie ---------- */
.foot { background: var(--night); color: var(--on-dark-3); padding: 4rem 0 2.4rem; font-size: .95rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot h2 { color: #fff; font: 800 .95rem var(--display); font-stretch: 108%; letter-spacing: 0; margin: 0 0 .8rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.foot li { margin: 0; }
.foot a { color: var(--on-dark-2); text-decoration: none; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: #fff; text-decoration: underline; } }
.foot .brand { color: #fff; margin-bottom: 1rem; }
.foot p { color: var(--on-dark-3); }
.disclaimer { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; color: rgba(233,251,242,.45); }
.theme-btn { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.06); border: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: var(--on-dark-2); border-radius: 12px; padding: .55rem .9rem; min-height: 40px; font: 700 .86rem var(--text); cursor: pointer; margin-top: .4rem; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.theme-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .theme-btn:hover { background: rgba(255,255,255,.1); } }

/* ---------- Barra fija en el móvil ---------- */
.dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: .7rem; padding: 8px 8px 8px 12px; border-radius: 20px; background: rgba(6,46,32,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; box-shadow: 0 20px 40px -16px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.1); transform: translateY(140%); opacity: 0; transition: transform 380ms var(--ease-drawer), opacity 200ms ease; }
.dock.show { transform: none; opacity: 1; }
.dock img { width: 34px; height: 34px; flex: none; }
.dock p { margin: 0; font-size: .82rem; line-height: 1.25; color: var(--on-dark-2); flex: 1; }
.dock p b { color: #fff; display: block; font-size: .92rem; }
.dock .btn { min-height: 46px; padding: .5rem 1rem; font-size: .95rem; }
@media (min-width: 981px) { .dock { display: none; } }

/* ---------- Aparición al hacer scroll (una vez, sin bloquear) ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 700ms var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }

/* =================================================================
   PORTADA
   ================================================================= */
.band { padding: clamp(4.5rem, 3rem + 5vw, 7.5rem) 0; }
.band-tight { padding-top: 0; }
.head { max-width: 760px; margin-bottom: 2.6rem; }
.head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1; font-weight: 860; font-stretch: 116%; letter-spacing: -.035em; margin: 0; }
.head .lead { margin: 1rem 0 0; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--grad-soft); color: var(--on-dark); padding: 128px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--glow); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%); }
.hero-grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 1rem; } }
.hero-copy { padding-bottom: 4.5rem; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; margin-bottom: 1.6rem; transition: background-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .pill:hover { background: rgba(255,255,255,.12); } }
.pill b { white-space: nowrap; background: var(--mint); color: #03140d; border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; }
@media (max-width: 560px) { .pill .xs { display: none; } }
.hero h1 { font-size: clamp(2.7rem, 1.5rem + 4.4vw, 5rem); line-height: .92; font-weight: 880; font-stretch: 118%; letter-spacing: -.045em; color: #fff; }
.hero h1 .hl { background: linear-gradient(100deg, #8ef3c6 10%, #3fe5a0 60%, #22d08f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--on-dark-2); margin: 1.5rem 0 0; }
.proof { display: flex; flex-wrap: wrap; gap: 1.6rem 2rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.proof div { min-width: 110px; }
.proof .num { display: block; font-size: 2rem; line-height: 1; color: #fff; }
.proof span:last-child { font-size: .88rem; color: var(--on-dark-3); }

.phone-stage { position: relative; display: flex; justify-content: center; height: 640px; }
@media (max-width: 999px) { .phone-stage { height: 520px; } }
.phone { position: relative; width: 320px; height: 650px; border-radius: 48px; background: #0b1512; padding: 10px; box-shadow: inset 0 0 0 2px #22302b, var(--sh-3), 0 0 0 1px rgba(255,255,255,.06); transform: translateY(24px) rotate(-2deg); animation: phoneIn 900ms var(--ease-out) both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(80px) rotate(-2deg); } }
.screen { height: 100%; border-radius: 39px; overflow: hidden; background: #f3f7f5; position: relative; color: #08201a; text-align: left; }
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 3; }
.s-top { background: var(--grad); color: #fff; padding: 52px 18px 18px; }
.s-top .row { display: flex; justify-content: space-between; align-items: center; font: 800 .78rem/1 var(--display); font-stretch: 110%; opacity: .9; }
.s-prog { display: flex; gap: 3px; margin-top: 12px; }
.s-prog i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); }
.s-prog i.on { background: var(--mint); }
.s-prog i.bad { background: #ff8a8f; }
.s-body { padding: 16px 14px; }
.s-chip { display: inline-block; font-size: .7rem; font-weight: 700; color: #47605a; background: #eaf1ed; border-radius: 999px; padding: .25rem .6rem; }
.s-q { font: 780 1.02rem/1.32 var(--display); font-stretch: 102%; margin: 8px 0 12px; }
.s-opt { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(8,32,26,.08); margin-bottom: 8px; font-size: .84rem; line-height: 1.3; }
.s-opt .bub { width: 28px; height: 28px; border-radius: 9px; font-size: .78rem; background: #eaf1ed; color: #47605a; }
.s-opt.ok { background: #dcf7ea; box-shadow: inset 0 0 0 1.5px #0c8f5e; }
.s-opt.ok .bub { background: #0c8f5e; color: #fff; }
.s-fb { position: absolute; left: 8px; right: 8px; bottom: 64px; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 -20px 40px -20px rgba(3,20,13,.35); animation: fbUp 500ms 900ms var(--ease-out) both; }
@keyframes fbUp { from { opacity: 0; transform: translateY(12px); } }
.s-fbh { display: flex; justify-content: space-between; align-items: center; background: #dcf7ea; color: #0c8f5e; padding: 10px 14px; font-size: .78rem; font-weight: 700; }
.s-fbh b { font: 850 .95rem/1 var(--display); font-stretch: 110%; }
.s-fb p { font-size: .78rem; line-height: 1.45; margin: 10px 14px; color: #08201a; }
.s-btn { display: flex; align-items: center; justify-content: center; margin: 0 14px 12px; min-height: 42px; border-radius: 13px; background: #062e20; color: #fff; font-weight: 700; font-size: .9rem; }
.float { position: absolute; z-index: 4; display: flex; align-items: center; gap: .55rem; padding: .7rem .95rem; border-radius: 16px; background: rgba(255,255,255,.96); color: #08201a; box-shadow: 0 14px 34px -18px rgba(8,32,26,.5); font-weight: 700; font-size: .9rem; animation: floatIn 700ms var(--ease-out) both; }
.float .num { font-size: 1.15rem; }
.float .dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
.float .dot svg { width: 18px; height: 18px; }
.float .d-amber { background: #fff1d9; color: #8a5300; }
.float .d-ok { background: #dcf7ea; color: #0c8f5e; }
.f1 { top: 70px; left: calc(50% - 250px); animation-delay: 1.3s; }
.f2 { top: 250px; right: calc(50% - 260px); animation-delay: 1.5s; }
@keyframes floatIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@media (max-width: 560px) { .f1 { left: 4px; } .f2 { right: 4px; top: 330px; } .float { font-size: .8rem; padding: .55rem .7rem; } }

/* Pruébalo */
.try-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .try-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; } .try-grid .head { position: sticky; top: 110px; } }
.qcard { background: var(--card); border-radius: var(--r-xl); padding: clamp(1.3rem, 1rem + 1.5vw, 2.2rem); box-shadow: var(--sh-2); }
.qmeta { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.qtext { font: 800 clamp(1.25rem, 1.1rem + .6vw, 1.55rem)/1.3 var(--display); font-stretch: 102%; letter-spacing: -.01em; margin: 0 0 1.3rem; }
.qopt { display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; padding: .85rem; margin: 0 0 .6rem; border: 0; border-radius: var(--r); background: var(--card-2); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font: 400 1.02rem/1.35 var(--text); transition: box-shadow 180ms ease, background-color 180ms ease, transform 160ms var(--ease-out), opacity 200ms ease; }
.qopt:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .qopt:not([disabled]):hover { box-shadow: inset 0 0 0 1.5px var(--jade); } }
.qopt[disabled] { cursor: default; }
.qopt.ok { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--ok); }
.qopt.ok .bub { background: var(--ok); color: #fff; }
.qopt.ko { background: var(--bad-soft); box-shadow: inset 0 0 0 2px var(--bad); }
.qopt.ko .bub { background: var(--bad); color: #fff; }
.qopt.dim { opacity: .55; }

/* Funciones (mosaico) */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); } .t-a { grid-column: span 4; } .t-b, .t-c, .t-d, .t-e { grid-column: span 2; } .t-f { grid-column: span 6; } }
.tile { position: relative; border-radius: var(--r-xl); background: var(--card); padding: 1.6rem; box-shadow: var(--sh-1); overflow: hidden; display: flex; flex-direction: column; gap: .5rem; transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); } }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--ink-2); font-size: .98rem; max-width: 46ch; }
.tico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: .6rem; }
.tico svg { width: 22px; height: 22px; }
.i-amber { background: var(--amber-soft); color: var(--amber-ink); }
.i-sky { background: var(--sky-soft); color: var(--sky); }
.i-ok { background: var(--ok-soft); color: var(--ok); }
.i-plum { background: var(--plum-soft); color: var(--plum); }
.viz { margin-top: auto; padding-top: 1.2rem; }
.t-a { background: var(--grad); color: #fff; }
.t-a h3 { color: #fff; }
.t-a p { color: rgba(255,255,255,.84); }
.t-a .tico { background: rgba(255,255,255,.14); color: #fff; }
.minis { display: flex; gap: 10px; flex-wrap: wrap; }
.mini { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); border-radius: 14px; padding: .7rem .9rem; font-size: .86rem; min-width: 150px; }
.mini b { display: block; font: 850 1.3rem/1.1 var(--display); font-stretch: 112%; color: #fff; }
.timer { font: 880 3.4rem/1 var(--display); font-stretch: 118%; letter-spacing: -.04em; color: var(--ink); }
.timer small { font-size: .9rem; color: var(--ink-3); font-weight: 700; letter-spacing: 0; margin-left: .4rem; }
.lb { display: grid; gap: 6px; }
.lb div { display: grid; grid-template-columns: 22px 28px 1fr auto; gap: 8px; align-items: center; font-size: .88rem; padding: 6px 8px; border-radius: 10px; }
.lb .me { background: var(--ok-soft); font-weight: 700; }
.lb .av { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 800 .7rem/1 var(--display); background: var(--sunk); color: var(--ink-2); }
.lb .me .av { background: var(--ok); color: #fff; }
.lb small { color: var(--ink-3); font-size: .74rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--ice); }
.bars i.hi { background: var(--jade); }
.bars .h1 { height: 40%; } .bars .h2 { height: 55%; } .bars .h3 { height: 48%; } .bars .h4 { height: 70%; } .bars .h5 { height: 64%; } .bars .h6 { height: 88%; }
.games { display: flex; gap: 8px; flex-wrap: wrap; }
.t-f { background: var(--forest); color: var(--on-dark); display: grid; gap: 1.5rem; }
@media (min-width: 1040px) { .t-f { grid-template-columns: 1fr 1.2fr; align-items: center; padding: 2.2rem; } }
.t-f h3 { color: #fff; }
.t-f p { color: var(--on-dark-2); }
.t-f .tico { background: rgba(63,229,160,.15); color: var(--mint); }
.t-f a { color: var(--mint-2); }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.weeks div { border-radius: 16px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); padding: 1rem; }
.weeks .num { font-size: 1.8rem; color: var(--mint); display: block; line-height: 1; }
.weeks span:last-child { font-size: .82rem; color: var(--on-dark-3); }
@media (max-width: 560px) { .weeks { grid-template-columns: 1fr 1fr; } }
.more { margin-top: 1.4rem; font-weight: 700; }

/* Así se aprueba */
.exam { background: var(--night); color: var(--on-dark); }
.exam .eyebrow { color: var(--mint); }
.exam h2 { color: #fff; }
.exam .lead { color: var(--on-dark-2); }
.split200 { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-xl); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.split200 > div { padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); }
.split200 .a { background: var(--grad); }
.split200 .b { background: rgba(255,255,255,.04); }
.split200 small { display: block; font: 800 .78rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-bottom: .8rem; }
.split200 .num { display: block; font-size: clamp(3.4rem, 2rem + 6vw, 7rem); line-height: .9; color: #fff; }
.split200 .b .num { color: var(--mint-2); }
.split200 p { margin: .8rem 0 0; color: rgba(233,251,242,.8); max-width: 34ch; }
.rules { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 14px; }
.rule { border-radius: var(--r-lg); padding: 1.3rem; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.rule .num { font-size: 2.4rem; color: #fff; display: block; line-height: 1; margin-bottom: .5rem; }
.rule span:last-child { color: var(--on-dark-2); font-size: .95rem; }
.exam .fine { margin: 1.4rem 0 0; font-size: .9rem; color: var(--on-dark-3); max-width: 80ch; }
.exam .fine a { color: var(--mint-2); }

/* Oposiciones */
.feat { display: grid; gap: 2rem; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--sh-2); padding: clamp(1.4rem, 1rem + 2vw, 2.6rem); overflow: hidden; position: relative; isolation: isolate; }
@media (min-width: 960px) { .feat { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.feat::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(63,229,160,.22), transparent 70%); pointer-events: none; z-index: -1; }
.feat h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 860; font-stretch: 114%; letter-spacing: -.03em; line-height: 1; margin: .8rem 0 .6rem; }
.feat p { color: var(--ink-2); margin: 0; }
.feat .cta-row { margin-top: 1.4rem; }
.kpi4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi4 div { border-radius: var(--r-lg); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); padding: 1.1rem; }
.kpi4 .num { display: block; font-size: 2.1rem; line-height: 1; }
.kpi4 span:last-child { font-size: .88rem; color: var(--ink-2); }
.soon-row { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.soon-row > span:first-child { font-weight: 700; color: var(--ink-2); margin-right: .4rem; }
.soon-row a { text-decoration: none; padding: .55rem .9rem; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: .92rem; color: var(--ink-2); transition: box-shadow 160ms ease, color 160ms ease; }
.soon-row a small { color: var(--ink-3); font-weight: 400; margin-left: .3rem; }
@media (hover: hover) and (pointer: fine) { .soon-row a:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--ink); } }

/* Precios */
.prices { display: grid; gap: 14px; }
@media (min-width: 680px) { .prices { grid-template-columns: repeat(2, 1fr); align-items: stretch; } }
@media (min-width: 1100px) { .prices { grid-template-columns: repeat(4, 1fr); } }
.plan { border-radius: var(--r-xl); background: var(--card); box-shadow: var(--sh-1); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.plan h3 { margin: 0; }
.plan .price { font: 880 clamp(2.3rem, 1.8rem + 1vw, 2.7rem)/1 var(--display); font-stretch: 116%; letter-spacing: -.04em; }
.plan .price small { display: block; margin-top: .45rem; font: 700 .95rem var(--text); color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .97rem; color: var(--ink-2); }
.plan li { display: flex; gap: .55rem; align-items: flex-start; margin: 0; }
.plan li svg { width: 20px; height: 20px; color: var(--jade); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.plan.best { background: var(--grad); color: #fff; box-shadow: var(--sh-3); }
.plan.best h3 { color: #fff; }
.plan.best ul { color: rgba(255,255,255,.88); }
.plan.best li svg { color: var(--mint-2); }
.plan.best .price small { color: rgba(255,255,255,.75); }
.plan .ribbon { align-self: flex-start; margin-bottom: -.4rem; }
@media (min-width: 1100px) { .plan.best { transform: translateY(-14px); } }
@media (max-width: 1099px) { .plan.best { order: -1; } }
.price-note { margin-top: 1.2rem; font-size: .88rem; color: var(--ink-3); }

/* Preguntas frecuentes en la portada */
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } .faq-grid .head { position: sticky; top: 110px; } }
.faq-grid section[aria-labelledby="faq-t"] { margin-top: 0; }
.faq-grid .faq-h { display: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .phone, .float, .s-fb, .fb, .nav.open, .faq details[open] .a { animation: none; }
  .tile, .btn, .qopt, .opt { transition-property: background-color, box-shadow, color, opacity; }
  .dock { transition: opacity 200ms ease; transform: none; }
}
@media print { .top, .foot, .cta, .aside-box, .menu-btn, .dock { display: none !important; } body { background: #fff; color: #000; } .page-head { background: none; color: #000; padding-top: 1rem; } .page-head h1, .page-head .lead { color: #000; } }

/* ---------- Temario: índice y páginas de tema (01-11-2026) ---------- */
.cat-list { display: grid; gap: 8px; margin: 0 0 1rem; }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding: .95rem 1.2rem; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; transition: box-shadow 180ms ease, transform 160ms var(--ease-out); }
a.cat-row:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { a.cat-row:hover { box-shadow: inset 0 0 0 1.5px var(--jade), var(--sh-1); } }
.cat-name { font: 780 1.02rem/1.3 var(--display); font-stretch: 102%; grid-column: 1; }
.cat-meta { grid-column: 1; font-size: .88rem; color: var(--ink-2); }
.cat-state { grid-column: 2; grid-row: 1 / span 2; font-size: .8rem; font-weight: 700; white-space: nowrap; padding: .25rem .65rem; border-radius: 999px; }
.cat-state.st-on { background: var(--ok-soft); color: var(--ok); }
.cat-state.st-soon { background: var(--sunk); color: var(--ink-3); }
.cat-row.is-off { box-shadow: inset 0 0 0 1px var(--line); background: var(--card-2); }
.cat-row.is-off .cat-name { color: var(--ink-2); }
.tb { scroll-margin-top: 96px; }
.tb-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.2rem 0 .9rem; }
.esencial { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: .2rem 1.3rem 1rem; max-width: 76ch; position: relative; overflow: hidden; }
.esencial::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.esencial .fb-label { margin: 1rem 0 .6rem; }
.esencial ul { margin: 0; padding-left: 1.15rem; display: grid; gap: .55rem; }
.esencial li { margin: 0; line-height: 1.55; }
.esencial strong { color: var(--ink); }
.qx-list { display: grid; gap: 12px; max-width: 760px; }
.qx { background: var(--card); border-radius: var(--r-xl); padding: 1.3rem 1.4rem; box-shadow: var(--sh-1); scroll-margin-top: 96px; }
.qx-q { font: 800 1.12rem/1.38 var(--display); font-stretch: 102%; margin: 0 0 .8rem; }
.qx-o { margin: 0 0 .9rem; padding-left: 1.6rem; display: grid; gap: .35rem; }
.qx-o li { margin: 0; padding-left: .2rem; }
.qx-o li::marker { font-weight: 800; color: var(--emerald); }
.qx-sol summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; cursor: pointer; list-style: none; font-weight: 700; font-size: .95rem; color: var(--link); background: var(--sunk); transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.qx-sol summary::-webkit-details-marker { display: none; }
.qx-sol summary:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .qx-sol summary:hover { background: var(--ice); } }
.qx-sol[open] summary { display: none; }
.qx-sol .fb { margin-top: 0; }
.qx-sol .fb-src:empty { display: none; }
.qx-sol .fb-text { margin-bottom: 1.1rem; }
.tema-nav { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 2.4rem 0 0; }
@media (min-width: 700px) { .tema-nav { grid-template-columns: 1fr auto 1fr; } }
.tema-nav a { display: block; padding: .9rem 1.1rem; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; transition: box-shadow 180ms ease; }
.tema-nav a small { display: block; font: 800 .7rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem; }
.tema-nav .nx { text-align: right; }
.tema-nav .mid { text-align: center; }
@media (hover: hover) and (pointer: fine) { .tema-nav a:hover { box-shadow: inset 0 0 0 1.5px var(--jade), var(--sh-1); } }
:root[data-theme="dark"] .qx-o li::marker { color: var(--mint); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qx-o li::marker { color: var(--mint); } }
@media (prefers-reduced-motion: reduce) { .cat-row, .qx-sol summary { transition: none; } }

/* Aviso de cookies (solo si hay Google Analytics) */
.ck { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 540px; margin: 0 auto; padding: 1.05rem 1.15rem 1.1rem; border-radius: var(--r-lg); background: var(--card); color: var(--ink); box-shadow: 0 24px 60px -18px rgba(3, 20, 13, .5), inset 0 0 0 1px var(--line-2); }
.ck[hidden] { display: none; }
.ck-t { margin: 0 0 .35rem; font: 700 1.1rem/1.25 var(--display); }
.ck p { margin: 0 0 .85rem; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.ck p.ck-t { color: var(--ink); }
.ck-b { display: flex; gap: .6rem; }
.ck-b .btn { flex: 1; min-height: 46px; }
@media (min-width: 720px) { .ck { left: 24px; right: auto; bottom: 24px; margin: 0; } }
