/* Portada D (27/10/2026): base + mini-test + tema D de la maqueta aprobada. Solo la carga views/landing.php (sin landing.css). */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url('/assets/fonts/inter/inter-800.woff2') format('woff2'); }
:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef2f7;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #5b6b82;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff4ff;
  --accent-ink: #ffffff;
  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --bad: #b91c1c;
  --bad-soft: #fef2f2;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -8px rgba(30, 58, 138, .14);
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #111a2c; --surface-2: #16223a; --ink: #e6edf6; --ink-2: #a8b6c9; --ink-3: #93a3b8;
    --line: #22304a; --line-2: #33435f; --accent: #7aa2ff; --accent-hover: #9bbaff; --accent-soft: #17264a; --accent-ink: #0b1220;
    --ok: #4ade80; --ok-soft: #0f2a1c; --bad: #f87171; --bad-soft: #2d1416;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #111a2c; --surface-2: #16223a; --ink: #e6edf6; --ink-2: #a8b6c9; --ink-3: #93a3b8;
  --line: #22304a; --line-2: #33435f; --accent: #7aa2ff; --accent-hover: #9bbaff; --accent-soft: #17264a; --accent-ink: #0b1220;
  --ok: #4ade80; --ok-soft: #0f2a1c; --bad: #f87171; --bad-soft: #2d1416;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -10px rgba(0, 0, 0, .6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-feature-settings: 'cv11', 'ss01'; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: .7rem 1rem; border-radius: var(--radius); z-index: 100; font-weight: 600; }
.skip:focus { top: 1rem; color: var(--accent-ink); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: var(--radius); font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; padding: .6rem .5rem; white-space: nowrap; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav .btn { min-height: 40px; padding: .5rem 1rem; font-size: .93rem; color: var(--accent-ink); }
.nav .btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.nav-toggle { display: none; margin-left: auto; min-width: 44px; min-height: 44px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); border-radius: var(--radius); font-family: inherit; font-size: .95rem; font-weight: 600; padding: 0 .9rem; cursor: pointer; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: .75rem .5rem; font-size: 1rem; }
  .nav .btn { margin-top: .5rem; min-height: 48px; }
}

/* Secciones */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 750; }
.section-head p { color: var(--ink-2); margin-top: .75rem; font-size: 1.08rem; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }

/* Lista de oposiciones (filas, no tarjetas) */
.opo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; border-top: 1px solid var(--line); }
.opo-list li { border-bottom: 1px solid var(--line); }
.opo-list a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: 1.25rem .25rem; text-decoration: none; color: var(--ink); border-radius: 8px; transition: background-color .15s; }
.opo-list a:hover { background: var(--surface); }
.opo-list .name { font-weight: 700; font-size: 1.1rem; }
.opo-list .meta { color: var(--ink-2); font-size: .93rem; grid-column: 1; }
.opo-list .figs { color: var(--ink-3); font-size: .88rem; grid-column: 1; }
.opo-list .go { grid-row: 1 / span 3; grid-column: 2; align-self: center; color: var(--accent); font-weight: 600; font-size: .93rem; display: inline-flex; gap: .35rem; align-items: center; }
.opo-list a:hover .go span { transform: translateX(3px); }
.opo-list .go span { transition: transform .2s var(--ease); }
@media (max-width: 760px) { .opo-list { grid-template-columns: 1fr; } }

/* Bento de funciones */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.section-alt .tile { background: var(--bg); }
.tile h3 { font-size: 1.15rem; font-weight: 700; }
.tile p { color: var(--ink-2); font-size: .98rem; }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; } .tile.w2 { grid-column: span 2; }
.tile .ai-note { font-size: .82rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: .6rem; margin-top: auto; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .tile.w3, .tile.w4, .tile.w2 { grid-column: auto; } }

/* Mini graficos dentro de tiles (decorativos, aria-hidden) */
.bars { display: grid; gap: .55rem; margin-top: .6rem; }
.bar { display: grid; grid-template-columns: 4.5rem 1fr 2.6rem; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-2); }
.bar i { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i b { display: block; height: 100%; background: var(--accent); border-radius: 99px; transform-origin: left; transform: scaleX(var(--v)); transition: transform .9s var(--ease); }
.reveal-pending [data-reveal] .bar i b { transform: scaleX(0); transition-delay: .25s; }
.reveal-pending [data-reveal].in .bar i b { transform: scaleX(var(--v)); }

/* Testimonios */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; }
.quote { margin: 0; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 1rem; }
.quote.big { grid-row: span 2; background: var(--accent-soft); border-color: transparent; }
.quote.big blockquote { font-size: 1.3rem; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
.quote blockquote { margin: 0; color: var(--ink); }
.quote figcaption { margin-top: auto; font-size: .9rem; color: var(--ink-2); }
.quote figcaption strong { color: var(--ink); font-weight: 600; display: block; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } .quote.big { grid-row: auto; } }

/* Precios */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; background: var(--bg); position: relative; }
.plan.star { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 1.5rem; background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 700; padding: .2rem .75rem; border-radius: 99px; }
.plan h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; }
.plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.plan .desc { font-size: .9rem; color: var(--ink-2); }
.plan ul { list-style: none; margin: 0; padding: .9rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; flex: 1; }
.plan li { display: flex; gap: .55rem; font-size: .95rem; }
.plan li::before { content: ''; flex: 0 0 18px; height: 18px; margin-top: .2rem; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2315803d'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 8.2-8.2-1.1-1.1z'/%3E%3C/svg%3E") center/14px no-repeat; }
.plan li.no { color: var(--ink-3); }
.plan li.no::before { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath d='M5 9h10v2H5z'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { width: 100%; }
.price-note { text-align: center; color: var(--ink-2); font-size: .9rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem .25rem; min-height: 56px; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: 0 0 12px; height: 12px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .answer { padding: 0 .25rem 1.25rem; color: var(--ink-2); max-width: 70ch; }

/* CTA final y pie */
.cta-final { text-align: left; }
.cta-final .box { border-radius: calc(var(--radius) + 4px); background: var(--ink); color: var(--bg); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.cta-final h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-final p { opacity: .8; margin-top: .5rem; }
.cta-final .btn-primary { background: var(--bg); color: var(--ink); }
.cta-final .btn-primary:hover { background: var(--surface-2); color: var(--ink); }
.cta-final .btn:focus-visible { outline-color: var(--bg); }
@media (max-width: 700px) { .cta-final .box { grid-template-columns: 1fr; } }
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--ink-2); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: .75rem 0; }
.site-footer a { color: var(--ink-2); display: inline-flex; min-height: 44px; align-items: center; }
.site-footer a:hover { color: var(--ink); }
.site-footer button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; min-height: 44px; }

/* Aparicion al hacer scroll (la clase la pone el JS; sin JS todo visible) */
.reveal-pending [data-reveal] { opacity: 0; transform: translateY(14px); }
[data-reveal] { transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal-pending [data-reveal] { opacity: 1; transform: none; }
  .reveal-pending .bar i b { transform: scaleX(var(--v)); }
}

.pen { display: flex; gap: .6rem; flex-wrap: wrap; margin: auto 0 0; padding-top: 1rem; }
.pen div { background: var(--surface); border-radius: var(--radius); padding: .7rem 1rem; display: flex; flex-direction: column-reverse; min-width: 9rem; }
.pen dt { font-size: .82rem; color: var(--ink-2); }
.pen dd { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
/* Mini-test de 3 preguntas oficiales (hero de las maquetas). */
.mt { background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); overflow: hidden; }
.mt-top { padding: 1.1rem 1.25rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.mt-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.mt-title strong { font-size: .98rem; }
.mt-title span { font-size: .82rem; color: var(--ink-2); }
.mt-chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.mt-chips legend { font-size: .8rem; color: var(--ink-2); font-weight: 600; margin-bottom: .45rem; padding: 0; }
.mt-chip-row { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: -2px; scroll-snap-type: x proximity; }
.mt-chip-row::-webkit-scrollbar { display: none; }
.mt-chip { position: relative; flex: 0 0 auto; scroll-snap-align: start; }
.mt-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mt-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .95rem; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: .9rem; font-weight: 500; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.mt-chip input:hover + span { border-color: var(--ink-2); }
.mt-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.mt-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.mt-body { padding: 1.25rem; min-height: 25rem; display: flex; flex-direction: column; }
.mt-progress { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .82rem; color: var(--ink-2); margin-bottom: .55rem; }
.mt-progress .src { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.mt-track { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 1.1rem; }
.mt-track b { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .45s var(--ease); }
.mt-q { font-size: 1.12rem; font-weight: 650; line-height: 1.4; margin-bottom: 1rem; letter-spacing: -.01em; }
.mt-q:focus { outline: none; }
.mt-q:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.mt-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mt-opt { width: 100%; display: grid; grid-template-columns: 2rem 1fr auto; gap: .65rem; align-items: center; text-align: left; min-height: 52px; padding: .6rem .8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 1rem; font-weight: 400; line-height: 1.45; cursor: pointer; transition: border-color .15s, background-color .15s, transform .12s var(--ease); }
.mt-opt:hover:not([aria-disabled="true"]) { border-color: var(--accent); background: var(--accent-soft); }
.mt-opt:active:not([aria-disabled="true"]) { transform: scale(.985); }
.mt-opt .l { width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.mt-opt .tag { font-size: .78rem; font-weight: 700; display: inline-flex; gap: .3rem; align-items: center; white-space: nowrap; }
.mt-opt[aria-disabled="true"] { cursor: default; }
.mt-opt.is-ok { border-color: var(--ok); background: var(--ok-soft); }
.mt-opt.is-ok .l { background: var(--ok); color: var(--bg); }
.mt-opt.is-ok .tag { color: var(--ok); }
.mt-opt.is-bad { border-color: var(--bad); background: var(--bad-soft); }
.mt-opt.is-bad .l { background: var(--bad); color: var(--bg); }
.mt-opt.is-bad .tag { color: var(--bad); }
.mt-opt.is-dim { opacity: .6; }
.mt-foot { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mt-feedback { font-size: .95rem; font-weight: 600; }
.mt-feedback.ok { color: var(--ok); }
.mt-feedback.bad { color: var(--bad); }
.mt-feedback small { display: block; font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.mt-hint { font-size: .85rem; color: var(--ink-3); }

.mt-result { text-align: left; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.mt-score { display: flex; align-items: baseline; gap: .5rem; }
.mt-score b { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.mt-score span { color: var(--ink-2); }
.mt-calc { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .95rem; background: var(--surface); border-radius: var(--radius); padding: 1rem; }
.mt-calc dt { color: var(--ink-2); }
.mt-calc dd { margin: 0; font-weight: 600; text-align: right; }
.mt-calc .total { border-top: 1px solid var(--line); padding-top: .4rem; }
.mt-actions { margin-top: auto; display: flex; gap: .6rem; flex-wrap: wrap; }
.mt-actions .btn { flex: 1 1 auto; }

/* Cambio de pregunta: entra con un desplazamiento corto */
.mt-stage { display: flex; flex-direction: column; flex: 1; }
.mt-stage.enter { animation: mtIn .32s var(--ease) both; }
@keyframes mtIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mt-stage.enter { animation: none; } .mt-track b { transition: none; } }
@media (max-width: 520px) { .mt-body { padding: 1rem; min-height: 0; } .mt-q { font-size: 1.05rem; } }
.mt, .mt-wrap { min-width: 0; }
/* Variante A: "Pruébalo primero". Hero claro en dos columnas con el mini-test. */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); background:
  radial-gradient(60rem 30rem at 85% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-cats { font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.1rem, 4.1vw, 3.35rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.hero .sub { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); margin-top: 1.25rem; max-width: 34rem; }
.hero .ctas { display: flex; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }
.hero .micro { margin-top: .9rem; font-size: .9rem; color: var(--ink-3); }
.hero-figs { display: flex; gap: 2.25rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-figs div { display: flex; flex-direction: column-reverse; }
.hero-figs dt { font-size: .85rem; color: var(--ink-2); }
.hero-figs dd { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.hero-trust { margin-top: 1.25rem; font-size: .9rem; }
.mt-wrap { position: relative; }
.mt-caption { font-size: .85rem; color: var(--ink-3); margin-top: .75rem; text-align: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .hero-figs { gap: 1.25rem; } .hero-figs dd { font-size: 1.3rem; } .hero-figs dt { font-size: .78rem; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 1.1rem; counter-increment: s; }
.steps li::before { content: '0' counter(s); display: block; font-size: .85rem; font-weight: 700; color: var(--accent); margin-bottom: .4rem; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.steps p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

.extras { margin-top: 1.25rem; color: var(--ink-2); font-size: .95rem; }
.arts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; border-top: 1px solid var(--line); }
.arts li { border-bottom: 1px solid var(--line); }
.arts a { display: block; padding: 1.1rem .25rem; text-decoration: none; color: var(--ink); }
.arts a:hover { background: var(--surface); border-radius: 8px; }
.arts .cat { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.arts .t { display: block; font-weight: 650; margin-top: .25rem; }
@media (max-width: 760px) { .arts { grid-template-columns: 1fr; } }
.more { display: inline-flex; margin-top: 1.25rem; font-weight: 600; min-height: 44px; align-items: center; }
/* Variante D: "Motivadora", estilo app de estudio (Duolingo / Brilliant). Azul vivo para acciones,
   amarillo solo como subrayado y fondos, verde para acierto. Botones con relieve que se hunden al
   pulsar, tarjetas con borde grueso y sombra desplazada, fondo con trama de puntos. */
:root {
  --bg: #ffffff; --surface: #f1f6ff; --surface-2: #e4edfd; --line: #d5e0f2; --line-2: #b9c8e2;
  --ink: #0d1b3d; --ink-2: #44526e; --ink-3: #56647e;
  --accent: #2563eb; --accent-hover: #1d4fd0; --accent-soft: #e8f0ff; --accent-deep: #1638a3;
  --yellow: #ffd43b; --yellow-soft: #fff6cc; --green: #16a34a; --green-deep: #0f7a37; --green-soft: #e6f8ec;
  --radius: 16px; --edge: 2px solid var(--ink);
  --pop: 0 4px 0 var(--ink); --pop-ink: var(--ink);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0b1430; --surface: #101c40; --surface-2: #17264f; --line: #24366a; --line-2: #344a86; --ink: #eef3ff; --ink-2: #b3c1dd; --ink-3: #a2b1cf; --accent: #6f9bff; --accent-hover: #8db0ff; --accent-deep: #3d68d8; --accent-soft: #17295a; --yellow-soft: #3a3412; --green-soft: #0f2c1c; --edge: 2px solid #3f5592; --pop: 0 4px 0 #050b1f; --pop-ink: #050b1f; } }
:root[data-theme="dark"] { --bg: #0b1430; --surface: #101c40; --surface-2: #17264f; --line: #24366a; --line-2: #344a86; --ink: #eef3ff; --ink-2: #b3c1dd; --ink-3: #a2b1cf; --accent: #6f9bff; --accent-hover: #8db0ff; --accent-deep: #3d68d8; --accent-soft: #17295a; --yellow-soft: #3a3412; --green-soft: #0f2c1c; --edge: 2px solid #3f5592; --pop: 0 4px 0 #050b1f; --pop-ink: #050b1f; }

body { font-weight: 450; }
h1, h2 { letter-spacing: -.04em; }

/* Botones con relieve */
.btn { border-radius: 14px; font-weight: 700; transition: transform .08s, box-shadow .08s, background-color .15s; }
.btn-primary { background: var(--accent); box-shadow: 0 4px 0 var(--accent-deep); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 0 0 var(--accent-deep); }
.btn-ghost { border: var(--edge); box-shadow: var(--pop); background: var(--bg); }
.btn-ghost:active { transform: translateY(4px); box-shadow: none; }
.btn:active { scale: 1; }

/* Hero con trama de puntos */
.hero { background:
  radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 22%, transparent) 1.2px, transparent 1.3px) 0 0 / 22px 22px,
  linear-gradient(180deg, var(--accent-soft), var(--bg) 85%); }
.hero-cats { color: var(--accent); font-weight: 700; }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: -.05em; right: -.05em; bottom: .02em; height: .32em; background: var(--yellow); border-radius: 6px; z-index: -1; transform-origin: left; }
.hero h1 { position: relative; z-index: 0; }
@media (prefers-reduced-motion: no-preference) { .hl::after { animation: hl .7s .3s var(--ease) both; } @keyframes hl { from { transform: scaleX(0); } } }
:root[data-theme="dark"] .hl::after { background: #c79a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hl::after { background: #c79a00; } }
.hero-figs { border-top: 0; gap: .75rem; }
.hero-figs div { border: var(--edge); border-radius: 14px; padding: .7rem 1rem; background: var(--bg); box-shadow: var(--pop); }

/* Mini-test como tarjeta de app */
.mt { border: var(--edge); box-shadow: 0 8px 0 var(--pop-ink); border-radius: 20px; }
:root[data-theme="dark"] .mt { box-shadow: 0 8px 0 #050b1f; }
.mt-top { background: var(--yellow-soft); border-bottom: var(--edge); }
.mt-chip span { border-width: 2px; font-weight: 600; }
.mt-chip input:checked + span { background: var(--accent); border-color: var(--accent-deep); color: #fff; box-shadow: 0 3px 0 var(--accent-deep); }
.mt-track { height: 12px; background: var(--surface-2); }
.mt-track b { background: var(--green); border-radius: 99px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.mt-opt { border: 2px solid var(--line-2); border-radius: 14px; box-shadow: 0 3px 0 var(--line-2); font-weight: 500; }
.mt-opt:hover:not([aria-disabled="true"]) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 3px 0 var(--accent); }
.mt-opt:active:not([aria-disabled="true"]) { transform: translateY(3px); box-shadow: none; }
.mt-opt .l { border: 2px solid var(--line-2); background: var(--bg); border-radius: 9px; }
.mt-opt.is-ok { box-shadow: 0 3px 0 var(--green-deep); }
.mt-opt.is-bad { box-shadow: 0 3px 0 #8f1717; }
@media (prefers-reduced-motion: no-preference) { .mt-opt.is-ok { animation: pop .35s var(--ease); } @keyframes pop { 40% { transform: scale(1.025); } } }
.mt-score b { color: var(--green); }

/* Pegatinas del hero (decorativas) */
.float { position: absolute; z-index: 2; border: var(--edge); background: var(--bg); border-radius: 14px; padding: .5rem .8rem; font-size: .82rem; font-weight: 700; box-shadow: var(--pop); display: flex; gap: .5rem; align-items: center; color: var(--ink); }
.float i { width: 22px; height: 22px; border-radius: 7px; flex: 0 0 auto; }
.float.f1 { top: -1.3rem; right: 1.2rem; rotate: 3deg; } .float.f1 i { background: var(--yellow); }
.float.f2 { bottom: 3rem; left: -2rem; rotate: -4deg; } .float.f2 i { background: var(--green); border-radius: 50%; }
.float small { display: block; font-weight: 500; color: var(--ink-2); }
@media (max-width: 1100px) { .float.f2 { left: .5rem; } }
@media (max-width: 640px) { .float { display: none; } }

/* Oposiciones como fichas */
.opo-list { border-top: 0; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.opo-list li { border: 0; }
.opo-list a { height: 100%; border: var(--edge); border-radius: var(--radius); background: var(--bg); box-shadow: var(--pop); padding: 1.2rem 1.25rem; transition: transform .1s, box-shadow .1s; }
.opo-list a:hover { background: var(--bg); transform: translateY(-2px); box-shadow: 0 6px 0 var(--pop-ink); }
.opo-list a:active { transform: translateY(4px); box-shadow: none; }
.opo-list .name::before { content: attr(data-ini); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; margin-right: .6rem; font-size: .8rem; background: var(--yellow); color: #0d1b3d; vertical-align: middle; border: 2px solid #0d1b3d; }
.opo-list li:nth-child(3n+2) .name::before { background: #9ee7b5; } .opo-list li:nth-child(3n) .name::before { background: #b9d0ff; }
.section-alt { background: var(--surface); }

/* Bento con bordes y colores planos */
.tile { border: var(--edge); box-shadow: var(--pop); border-radius: var(--radius); }
.bento .tile:nth-child(1) { background: var(--yellow-soft); } .bento .tile:nth-child(2) { background: var(--green-soft); }
.bento .tile:nth-child(4) { background: var(--accent-soft); }
.bar i { height: 12px; } .bar i b { background: var(--green); }
.pen div { border: 2px solid var(--line-2); background: var(--bg); }

.quote { border: var(--edge); box-shadow: var(--pop); }
.quote.big { background: var(--accent); color: #fff; border-color: var(--accent-deep); box-shadow: 0 4px 0 var(--accent-deep); }
.quote.big blockquote, .quote.big figcaption, .quote.big figcaption strong { color: #fff; }
.quote.big blockquote::before { content: '“'; display: block; font-size: 4rem; line-height: .6; font-weight: 800; color: var(--yellow); margin-bottom: .4rem; }

.steps li { border: var(--edge); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--pop); }
.steps li::before { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--yellow); color: #0d1b3d; border: 2px solid #0d1b3d; font-size: .95rem; margin-bottom: .8rem; }

.plan { border: var(--edge); box-shadow: var(--pop); }
.plan.star { border: 2px solid var(--accent-deep); box-shadow: 0 6px 0 var(--accent-deep); }
.plan .badge { background: var(--yellow); color: #0d1b3d; border: 2px solid #0d1b3d; }
.faq details { border-bottom: 2px solid var(--line); }
.arts .cat { color: var(--green-deep); }
:root[data-theme="dark"] .arts .cat { color: #6ee7a0; }

.cta-final .box { background: var(--accent); color: #fff; border: 2px solid var(--accent-deep); box-shadow: 0 8px 0 var(--accent-deep); }
.cta-final h2::after { content: ''; display: block; width: 4rem; height: .35rem; margin-top: .6rem; border-radius: 4px; background: var(--yellow); }
.cta-final .btn-primary { background: var(--yellow); color: #0d1b3d; box-shadow: 0 4px 0 #b38f00; }
.cta-final .btn-primary:hover { background: #ffe066; color: #0d1b3d; }
.cta-final .btn:focus-visible { outline-color: #fff; }
/* Pegatinas fuera de la tarjeta para no tapar el test */
.float.f1 { top: -3.3rem; right: 1.5rem; left: auto; bottom: auto; }
.float.f2 { bottom: -1.6rem; left: 1.5rem; top: auto; right: auto; }
.mt-caption { margin-top: 2.4rem; }
.hero-figs { flex-wrap: nowrap; }
.hero-figs div { padding: .65rem .9rem; }
@media (max-width: 640px) { .mt-caption { margin-top: .75rem; } .hero-figs { flex-wrap: wrap; } }
.mt { color: var(--ink); }
.float.f2 { top: -3.3rem; bottom: auto; left: 1.5rem; }
.mt-caption { margin-top: .75rem; }
.mt-wrap { margin-top: 2.5rem; }
@media (max-width: 640px) { .mt-wrap { margin-top: 0; } }
.opo-list li:nth-child(1) .name::before { content: 'CE'; }
.opo-list li:nth-child(2) .name::before { content: 'TC'; }
.opo-list li:nth-child(3) .name::before { content: 'EN'; }
.opo-list li:nth-child(4) .name::before { content: 'AA'; }
.opo-list li:nth-child(5) .name::before { content: 'PS'; }
.opo-list li:nth-child(6) .name::before { content: 'TI'; }
.opo-list li:nth-child(7) .name::before { content: 'PI'; }

/* Oscuro */
:root[data-theme="dark"] .quote.big, :root[data-theme="dark"] .cta-final .box { background: #2a4fb8; border-color: #1b3580; box-shadow: 0 4px 0 #0a1a4a; }
:root[data-theme="dark"] .arts .cat { color: #6ee7a0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .quote.big, :root:not([data-theme="light"]) .cta-final .box { background: #2a4fb8; border-color: #1b3580; box-shadow: 0 4px 0 #0a1a4a; }
  :root:not([data-theme="light"]) .arts .cat { color: #6ee7a0; }
}

/* Logo real (favicon.svg) en la cabecera */
.brand-logo { width: 36px; height: 36px; border-radius: 9px; display: block; flex: 0 0 auto; }

/* Fichas de oposicion con icono de la profesion */
.opo-list .name::before { display: none; }
.opo-list a { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 1rem; }
.opo-list .opo-ic { grid-row: 1 / span 3; grid-column: 1; align-self: center; width: 3rem; height: 3rem; border-radius: 13px; display: grid; place-items: center;
  background: var(--yellow); color: #0d1b3d; border: 2px solid #0d1b3d; box-shadow: 0 3px 0 #0d1b3d; }
.opo-list .opo-ic svg { width: 1.6rem; height: 1.6rem; }
.opo-list li:nth-child(3n+2) .opo-ic { background: #9ee7b5; } .opo-list li:nth-child(3n) .opo-ic { background: #b9d0ff; }
.opo-list .name, .opo-list .meta, .opo-list .figs { grid-column: 2; }
.opo-list .go { grid-column: 3; }
@media (prefers-reduced-motion: no-preference) { .opo-list .opo-ic { transition: rotate .2s var(--ease); } .opo-list a:hover .opo-ic { rotate: -6deg; } }
:root[data-theme="dark"] .opo-list .opo-ic { box-shadow: 0 3px 0 #050b1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .opo-list .opo-ic { box-shadow: 0 3px 0 #050b1f; } }
.opo-list a { align-content: start; }
.opo-list .opo-ic { align-self: start; }
.opo-list .go { align-self: start; margin-top: .2rem; }

/* Vídeo de presentación (MP4 propio) */
.video-d { margin: 0 auto; max-width: 960px; border-radius: var(--radius); overflow: hidden; border: var(--edge); box-shadow: var(--pop); background: #000; }
.video-d video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.hero-trust .trustpilot-widget { min-height: 52px; }

/* Hero: cifras en columna a la izquierda y opiniones reales a la derecha (09/11/2026) */
.hero-proof { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; margin-top: 2.25rem; align-items: start; }
.hero-proof .hero-figs { flex-direction: column; flex-wrap: nowrap; margin: 0; padding: 0; gap: .6rem; }
.hero-proof .hero-figs div { padding: .55rem .9rem; }
.hero-proof .hero-figs dd { font-size: 1.35rem; }
.hero-opin { display: flex; flex-direction: column; gap: .6rem; }
.hero-opin figure { margin: 0; padding: .8rem 1rem; border: var(--edge); border-radius: 14px; background: var(--bg); box-shadow: var(--pop); }
.hero-opin blockquote { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.45; }
.hero-opin figcaption { margin-top: .4rem; font-size: .8rem; color: var(--ink-2); }
.hero-opin figcaption strong { color: var(--accent); font-weight: 700; }
.hero-opin-more { font-size: .88rem; font-weight: 600; color: var(--accent); }
@media (max-width: 520px) {
  .hero-proof { grid-template-columns: minmax(0, 1fr); }
  .hero-proof .hero-figs { flex-direction: row; flex-wrap: wrap; }
  .hero-proof .hero-figs div { flex: 1 1 30%; }
}
