/* AnTest · web comercial
   Tokens primero; todo lo demás usa solo variables. */

/* Tipografías servidas desde el propio sitio (SIL OFL 1.1, ver assets/fonts/OFL-*.txt).
   Variables de fontsource 5.3.0: Bricolage con ejes wght+opsz, Atkinson con wght. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.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;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin.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: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext.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 {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #1e293b;
  --ink-2: #475569;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --on-brand: #ffffff;
  --link: #1d4ed8;
  --brand-soft: #eef3ff;
  --mark: #fde047;
  --on-mark: #1e293b;
  --ok: #15803d;
  --ok-soft: #effbf3;
  --bad: #b91c1c;
  --bad-soft: #fef2f2;
  --shadow-1: 0 1px 2px rgb(15 23 42 / .05), 0 4px 12px rgb(15 23 42 / .05);
  --shadow-2: 0 2px 4px rgb(15 23 42 / .04), 0 18px 48px -12px rgb(15 23 42 / .18);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: Helvetica, Arial, sans-serif;

  --step-hero: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
  --step-h2: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --step-h3: 1.25rem;
  --step-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --step-body: 1.0625rem;
  --step-small: .9375rem;

  --r: 16px;
  --r-sm: 10px;
  --pill: 999px;

  --gutter: clamp(16px, 4vw, 32px);
  --max: 1200px;
  --section: clamp(88px, 10vw, 144px);
  --header-h: 64px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1220;
    --bg-2: #0f1729;
    --surface: #121b2e;
    --surface-2: #17223a;
    --ink: #e5ebf3;
    --ink-2: #a7b4c8;
    --line: #1f2b42;
    --line-2: #2c3b58;
    --brand: #2563eb;
    --brand-hover: #3b74f0;
    --link: #8db6ff;
    --brand-soft: #14223f;
    --ok: #4ade80;
    --ok-soft: #0f2a1d;
    --bad: #f87171;
    --bad-soft: #2b1518;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-2: 0 2px 4px rgb(0 0 0 / .25), 0 24px 56px -16px rgb(0 0 0 / .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-2: #0f1729;
  --surface: #121b2e;
  --surface-2: #17223a;
  --ink: #e5ebf3;
  --ink-2: #a7b4c8;
  --line: #1f2b42;
  --line-2: #2c3b58;
  --brand: #2563eb;
  --brand-hover: #3b74f0;
  --link: #8db6ff;
  --brand-soft: #14223f;
  --ok: #4ade80;
  --ok-soft: #0f2a1d;
  --bad: #f87171;
  --bad-soft: #2b1518;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-2: 0 2px 4px rgb(0 0 0 / .25), 0 24px 56px -16px rgb(0 0 0 / .6);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
h3 { font-size: var(--step-h3); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--mark); color: var(--on-mark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: var(--step-h2); }
.section-head p { margin-top: 18px; font-size: var(--step-lead); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--step-small); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- botones ---------- */
.btn {
  --_bg: var(--surface); --_fg: var(--ink); --_bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--_bd); border-radius: var(--pill);
  background: var(--_bg); color: var(--_fg);
  font: 700 1rem/1.2 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --_bd: var(--ink-2); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { --_bg: var(--brand); --_fg: var(--on-brand); --_bd: var(--brand); }
.btn--primary:hover { --_bg: var(--brand-hover); --_bd: var(--brand-hover); box-shadow: 0 6px 18px -6px rgb(37 99 235 / .55); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1.0625rem; }
.btn--ghost { --_bg: transparent; --_bd: transparent; }
.btn--ghost:hover { --_bg: var(--bg-2); --_bd: transparent; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- burbuja (motivo: la casilla marcada de la hoja de respuestas) ---------- */
.bubble {
  display: inline-grid; place-items: center; flex: none;
  width: 1.9em; height: 1.9em; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--surface);
  font: 700 .8125rem/1 var(--font-text); color: var(--ink-2);
}
.bubble--on { background: var(--mark); border-color: var(--mark); color: var(--on-mark); }
.bubble--brand { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.bubble svg { width: 60%; height: 60%; }

.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.ticks .bubble { width: 22px; height: 22px; margin-top: 2px; }

/* ---------- cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); background: var(--bg); }
.header__in { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.logo img { width: 32px; height: 32px; }
.wordmark { font: 800 1.375rem/1 var(--font-logo); letter-spacing: -.01em; color: var(--ink); }
.wordmark span { color: var(--brand); }
:root[data-theme="dark"] .wordmark span { color: #6d9cff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark span { color: #6d9cff; } }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap; border-radius: var(--pill);
  color: var(--ink-2); font-weight: 600; font-size: .9688rem; text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__list a:hover { color: var(--ink); background: var(--bg-2); }
.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-ico--moon { display: none; }
:root[data-theme="dark"] .theme-ico--sun { display: none; }
:root[data-theme="dark"] .theme-ico--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-ico--sun { display: none; }
  :root:not([data-theme]) .theme-ico--moon { display: block; }
}
.menu-btn { display: none; }

@media (max-width: 1179px) {
  .header__in { gap: 4px; }
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { width: 100%; min-height: 52px; font-size: 1.0625rem; border-radius: var(--r-sm); padding: 0 12px; }
  .header__actions { margin-left: auto; }
  .header__entrar { display: none; }
  .nav__entrar { display: block; margin-top: 8px; }
}
@media (min-width: 1180px) { .nav__entrar { display: none; } }
@media (max-width: 380px) {
  .header .btn--primary { padding-inline: 14px; }
  .wordmark { font-size: 1.25rem; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); position: relative; }
.hero__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); } }
.hero h1 { font-size: var(--step-hero); max-width: 12ch; }
.hero__lead { margin-top: 24px; font-size: var(--step-lead); color: var(--ink-2); max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 20px; font-size: var(--step-small); color: var(--ink-2); max-width: 34rem; }

.figures {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line);
}
.figures li { padding: 24px 16px 0 0; }
.figures li + li { padding-left: clamp(12px, 3vw, 32px); border-left: 1px solid var(--line); }
.figures b { display: block; font: 800 clamp(2rem, 1.3rem + 3vw, 3.5rem)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.figures span { display: block; margin-top: 8px; color: var(--ink-2); font-size: var(--step-small); }

/* ---------- maqueta de la app (fragmento real de interfaz) ---------- */
.stage { position: relative; isolation: isolate; }
.stage::before {
  /* la burbuja marcada, a escala grande, como fondo de la maqueta */
  content: ""; position: absolute; z-index: -1;
  width: min(92%, 520px); aspect-ratio: 1; border-radius: 50%;
  right: -6%; top: 50%; translate: 0 -50%;
  background: var(--mark); opacity: .9;
}
:root[data-theme="dark"] .stage::before { opacity: .16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage::before { opacity: .16; } }
@media (max-width: 1023px) { .stage::before { right: -24%; width: 88%; } }

.app {
  --a-r: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-2); overflow: hidden; max-width: 560px; margin-inline: auto;
  font-size: 1rem;
}
.app__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.app__bar img { width: 24px; height: 24px; }
.app__bar b { font-size: .9375rem; }
.app__meta { margin-left: auto; font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.app__progress { height: 4px; background: var(--bg-2); }
.app__progress i { display: block; height: 100%; width: var(--p, 40%); background: var(--brand); border-radius: 0 4px 4px 0; transition: width .4s var(--ease); }
.app__body { padding: 20px 18px 18px; }
.app__tag { display: inline-flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--ink-2); }
.app__q { margin: 10px 0 16px; font-size: 1.125rem; font-weight: 700; line-height: 1.4; min-height: 3.1em; }
.opts { list-style: none; display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: var(--a-r); background: var(--surface);
  color: var(--ink); font: 400 .9688rem/1.35 var(--font-text); text-align: left; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease);
}
.opt:hover:not([disabled]) { border-color: var(--brand); }
.opt:active:not([disabled]) { transform: scale(.995); }
.opt[disabled] { cursor: default; }
.opt.is-ok { border-color: var(--ok); background: var(--ok-soft); }
.opt.is-ok .bubble { background: var(--mark); border-color: var(--mark); color: var(--on-mark); }
.opt.is-bad { border-color: var(--bad); background: var(--bad-soft); }
.opt.is-bad .bubble { border-color: var(--bad); color: var(--bad); }
.opt__state { margin-left: auto; font-size: .8125rem; font-weight: 700; }
.opt.is-ok .opt__state { color: var(--ok); }
.opt.is-bad .opt__state { color: var(--bad); }
.explain {
  margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--brand); border-radius: 8px;
  background: var(--brand-soft); font-size: .9375rem; line-height: 1.5;
}
.explain[data-state="hidden"] { display: none; }
.explain p + p { margin-top: 6px; }
.cite { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 8px; font-size: .875rem; color: var(--ink-2); }
.cite a { font-weight: 700; }
.app__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px 18px; }
.app__foot .btn { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.app__hint { font-size: .875rem; color: var(--ink-2); }
.stage__caption { margin: 16px auto 0; max-width: 560px; font-size: .875rem; color: var(--ink-2); text-align: center; }

/* ---------- cómo funciona ---------- */
.steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.step { display: flex; flex-direction: column; gap: 20px; }
.step__art {
  height: 200px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; padding: 20px; overflow: hidden;
}
.step h3 { font-size: 1.375rem; }
.step p { margin-top: 8px; color: var(--ink-2); }

.mini-temas { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 100%; max-width: 280px; }
.mini-temas span {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--line-2); font: 700 .75rem/1 var(--font-text); color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.mini-temas .on { background: var(--mark); border-color: var(--mark); color: var(--on-mark); }

.mini-sheet { display: grid; gap: 10px; }
.mini-sheet__row { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mini-sheet__row > b { width: 1.6em; text-align: right; font-weight: 700; }
.mini-sheet .bubble { width: 30px; height: 30px; }

.mini-fails { list-style: none; display: grid; gap: 8px; width: 100%; max-width: 300px; }
.mini-fails li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); font-size: .875rem;
}
.mini-fails li span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--bad); }
.dot--ok { background: var(--ok); }
.mini-fails em { font-style: normal; font-weight: 700; font-size: .8125rem; color: var(--bad); }
.mini-fails .ok em { color: var(--ok); }

/* ---------- bento ---------- */
.bento { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .b-temas { grid-column: span 6; }
  .b-sup { grid-column: span 3; }
  .b-fallos { grid-column: span 3; }
  .b-stats { grid-column: span 6; }
  .b-biblio { grid-column: span 6; }
  .b-dark { grid-column: span 3; }
  .b-movil { grid-column: span 3; }
}
@media (min-width: 1024px) {
  .b-temas { grid-column: span 4; grid-row: span 2; }
  .b-sup { grid-column: span 2; grid-row: span 2; }
  .b-fallos { grid-column: span 2; }
  .b-stats { grid-column: span 4; }
  .b-biblio { grid-column: span 3; }
  .b-dark { grid-column: span 1; }
  .b-movil { grid-column: span 2; }
}
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.tile:hover { border-color: var(--line-2); }
.tile h3 { font-size: 1.25rem; }
.tile > p { color: var(--ink-2); }
.tile__ui { margin-top: auto; padding-top: 16px; }
.tile--ink { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tile--ink h3, .tile--ink > p { color: var(--bg); }
.tile--ink > p { opacity: .82; }
.tile--brand { background: var(--brand); border-color: var(--brand); }
.tile--brand h3, .tile--brand > p { color: #fff; }
.tile--brand > p { opacity: .9; }
.tile--mark { background: var(--mark); border-color: var(--mark); }
.tile--mark h3, .tile--mark > p { color: var(--on-mark); }

.big-num { font: 800 clamp(3.5rem, 2rem + 6vw, 6.5rem)/.9 var(--font-display); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.modes { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 560px) { .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mode { padding: 14px; border-radius: var(--r-sm); background: var(--bg-2); }
.mode b { display: block; font-size: 1rem; }
.mode span { display: block; margin-top: 4px; font-size: .875rem; color: var(--ink-2); }

.sup-card { padding: 16px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--bg) 12%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.sup-card b { display: block; font-size: 1rem; }
.sup-card p { margin-top: 8px; font-size: .9375rem; line-height: 1.5; opacity: .88; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: var(--pill);
  background: var(--on-mark); color: var(--mark); font-weight: 700; font-size: .9375rem;
}

.spark { width: 100%; height: 96px; }
.spark path { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.spark .area { fill: var(--brand-soft); stroke: none; }
.sync { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9375rem; color: var(--ink-2); }
.sync svg { width: 20px; height: 20px; color: var(--ok); }

.ref {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); font-size: .9375rem;
}
.ref small { font-size: .8125rem; color: var(--ink-2); }
.ref a { font-weight: 700; }

.switch {
  position: relative; width: 64px; height: 36px; border-radius: var(--pill); border: 0; padding: 0;
  background: var(--line-2); cursor: pointer; transition: background-color .25s var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .25s var(--ease);
}
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(28px); }

.phone {
  width: 120px; height: 150px; margin-inline: auto; border-radius: 22px 22px 0 0;
  border: 6px solid var(--ink); border-bottom: 0; padding: 14px 10px 0; display: grid; gap: 6px; align-content: start;
  background: var(--surface);
}
.phone i { display: block; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); }
.phone i.on { background: var(--mark); border-color: var(--mark); }
.phone b { display: block; height: 8px; width: 70%; border-radius: 4px; background: var(--ink); margin-bottom: 4px; }
.tile--movil-in { display: flex; gap: 16px; align-items: flex-end; }
.tile--movil-in > div { flex: 1; }

/* ---------- oposiciones ---------- */
.opos { display: grid; gap: 16px; }
@media (min-width: 900px) { .opos { grid-template-columns: 1.15fr 1fr; gap: 24px; } }
.opo { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.opo--active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.opo__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.opo__code { font: 800 2.5rem/1 var(--font-display); letter-spacing: -.03em; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 700; padding: 6px 12px; border-radius: var(--pill); }
.status--on { background: var(--ok-soft); color: var(--ok); }
.status--soon { background: var(--bg-2); color: var(--ink-2); }
.status .dot { background: currentColor; }
.opo h3 { font-size: 1.375rem; }
.opo__sub { margin-top: 6px; color: var(--ink-2); }
.opo .btn { align-self: flex-start; }
.opo--soon { background: var(--bg-2); border-color: transparent; }

.notify { display: grid; gap: 10px; margin-top: auto; }
.notify label { font-weight: 700; font-size: .9375rem; }
.notify__row { display: flex; gap: 8px; flex-wrap: wrap; }
.input {
  flex: 1 1 220px; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit;
}
.input::placeholder { color: var(--ink-2); opacity: .8; }
.input:focus-visible { outline-offset: 1px; border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.form-msg { font-size: .9375rem; font-weight: 700; color: var(--ok); min-height: 1.5em; }

/* ---------- contenido ---------- */
.trust { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .trust { grid-template-columns: 1fr 1fr; } }
.trust .ticks { margin-top: 32px; gap: 20px; }
.trust .ticks b { display: block; }
.trust .ticks p { margin-top: 2px; color: var(--ink-2); }
.source-card { padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.source-card__q { font-weight: 700; font-size: 1.0625rem; }
.source-card__a { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ok-soft); border: 1.5px solid var(--ok); font-size: .9688rem; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 20px 0 0; font-size: .9375rem; }
.dl dt { color: var(--ink-2); }
.dl dd { margin: 0; font-weight: 600; }
.notice { margin-top: 20px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg-2); font-size: .9375rem; color: var(--ink-2); }
.notice b { color: var(--ink); }

/* ---------- precios ---------- */
.pricing { display: grid; gap: 16px; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.2fr 1fr; gap: 24px; } }
.plan { padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.plan--main { border-color: var(--ink); box-shadow: var(--shadow-1); }
.plan__name { font-size: 1.375rem; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font: 800 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--font-display); letter-spacing: -.03em; }
.price span { color: var(--ink-2); }
.placeholder { background: var(--mark); color: var(--on-mark); padding: 0 .2em; border-radius: 4px; }
.plan .btn { align-self: stretch; }
.plan-aside { padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--bg); display: grid; gap: 20px; align-content: start; }
.section--alt .plan-aside { background: var(--bg); }
.plan-aside h3 { font-size: 1.125rem; }
.plan-aside p { color: var(--ink-2); margin-top: 6px; }

/* ---------- preguntas frecuentes ---------- */
.faq { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; } }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.125rem; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .bubble { width: 32px; height: 32px; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .25s var(--ease); }
.qa summary .bubble svg { width: 14px; height: 14px; }
.qa summary:hover .bubble { border-color: var(--ink-2); }
.qa[open] summary .bubble { background: var(--mark); border-color: var(--mark); color: var(--on-mark); transform: rotate(45deg); }
.qa__a { padding: 0 48px 24px 0; color: var(--ink-2); }
.qa__a p + p { margin-top: 10px; }

/* ---------- CTA final ---------- */
.final { background: var(--brand); color: #fff; border-radius: calc(var(--r) * 1.5); padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.final::after {
  content: ""; position: absolute; z-index: -1; width: clamp(260px, 40vw, 520px); aspect-ratio: 1; border-radius: 50%;
  right: -8%; bottom: -40%; background: var(--mark);
}
.final h2 { color: #fff; font-size: var(--step-h2); max-width: 14ch; }
.final p { margin-top: 18px; max-width: 34rem; font-size: var(--step-lead); color: #fff; opacity: .92; }
.final .hero__cta { margin-top: 28px; }
.final .btn--primary { --_bg: #fff; --_fg: #1e3a8a; --_bd: #fff; }
.final .btn--primary:hover { --_bg: #eef3ff; --_bd: #eef3ff; box-shadow: none; }
.final .btn--line { --_bg: transparent; --_fg: #fff; --_bd: rgb(255 255 255 / .6); }
.final .btn--line:hover { --_bd: #fff; }

/* ---------- pie ---------- */
.footer { padding-block: clamp(56px, 7vw, 96px) 32px; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h2 { font: 700 .9375rem/1.4 var(--font-text); letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 2px; }
.footer li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; }
.footer li a:hover { color: var(--ink); text-decoration: underline; }
.footer__about p { margin-top: 14px; color: var(--ink-2); font-size: var(--step-small); max-width: 26rem; }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .875rem; color: var(--ink-2); }
.lang { display: inline-flex; gap: 4px; }

/* ---------- páginas legales ---------- */
.doc { max-width: 46rem; padding-block: clamp(48px, 6vw, 96px); }
.doc h1 { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); }
.doc h2 { font-size: 1.5rem; margin-top: 40px; font-family: var(--font-text); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.doc p, .doc li { margin-top: 12px; }
.doc ul { padding-left: 1.25em; }
.doc .notice { margin-top: 24px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .9375rem; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- movimiento ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .38s var(--ease), transform .38s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.swap { animation: swap .3s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- ajustes tras revisión visual (ronda 1) ---------- */
html { overflow-x: clip; }
.hero { overflow-x: clip; }
.cite a, .ref a, .dl a { display: inline-flex; align-items: center; min-height: 44px; }
.ref { gap: 0; }
.footer li a { min-height: 44px; }
.switch { height: 44px; width: 76px; }
.switch::after { width: 36px; height: 36px; }
.switch[aria-checked="true"]::after { transform: translateX(32px); }
@media (min-width: 1024px) {
  .b-biblio { grid-column: span 2; }
  .b-dark { grid-column: span 2; }
  .b-movil { grid-column: span 2; }
}

/* ---------- ajustes tras revisión visual (ronda 2) ---------- */
.notify .check { font-weight: 400; }
.opo--soon { background: var(--surface); border-color: var(--line); }
.plan-aside { align-self: start; }
.tile--movil-in { flex-direction: column; align-items: stretch; gap: 20px; height: 100%; }
.tile--movil-in h3 { text-wrap: wrap; }
.tile--movil-in p { margin-top: 10px; }
.phone { margin-top: auto; height: 112px; }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.theme-prev { display: flex; gap: 8px; }
.tp { display: flex; align-items: center; gap: 8px; width: 92px; padding: 10px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.tp .bubble { width: 24px; height: 24px; font-size: .75rem; font-style: normal; }
.tp b { flex: 1; height: 8px; border-radius: 4px; }
.tp--l { background: #ffffff; border-color: #e2e8f0; }
.tp--l b { background: #1e293b; }
.tp--d { background: #121b2e; border-color: #2c3b58; }
.tp--d b { background: #e5ebf3; }

/* ---------- ajustes tras revisión visual (ronda 3) ---------- */
.app__q { min-height: 0; }
.tile--ink { background: #1e293b; border-color: #1e293b; color: #fff; }
.tile--ink h3, .tile--ink > p { color: #fff; }
.tile--ink .sup-card { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .14); color: #fff; }
:root[data-theme="dark"] .tile--ink { background: #1a2847; border-color: #24365c; }
:root[data-theme="dark"] .stage::before { background: #16264a; opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile--ink { background: #1a2847; border-color: #24365c; }
  :root:not([data-theme="light"]) .stage::before { background: #16264a; opacity: 1; }
}
.header__in > .logo + .header__actions { margin-left: auto; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.table-wrap table { margin-top: 0; min-width: 560px; }
@media (max-width: 420px) { .header__in > .logo + .header__actions .btn--ghost { display: none; } }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- web interface guidelines ---------- */
a, button, summary, .btn, .opt, .switch { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.header__in { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- catálogo de baterías ---------- */
.catalog { display: grid; gap: 16px; }
@media (min-width: 880px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
  .catalog .opo--ask { grid-column: 1 / -1; }
}
.opo__desc { color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
.save { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: .9375rem; border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.price .save { color: var(--ok); }
/* ---------- temarios desplegables ---------- */
.temarios { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 12px; }
.temarios h3 { font-size: 1.5rem; }
.temarios > p { color: var(--ink-2); margin-bottom: 8px; }
.tem { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tem summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 18px 20px; min-height: 56px; }
.tem summary::-webkit-details-marker { display: none; }
.tem__t { font-weight: 700; font-size: 1.0625rem; grid-column: 1; }
.tem__m { grid-column: 1; color: var(--ink-2); font-size: .875rem; }
.tem summary .bubble { grid-column: 2; grid-row: 1 / span 2; transition: transform .2s var(--ease); }
.tem[open] summary .bubble { transform: rotate(45deg); }
.tem__body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.tem__body > p { margin-top: 14px; }
.tem__list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 28rem; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.tem__list li { padding: 10px 14px; font-size: .9375rem; line-height: 1.5; border-bottom: 1px solid var(--line); }
.tem__list li:last-child { border-bottom: 0; }
.tem__list b { color: var(--brand); }
.figures--card { margin-top: 0; border-top: 0; padding: 20px 0; border-block: 1px solid var(--line); }
.figures--card li { padding-top: 0; }
.figures--card b { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.buy { margin-top: auto; display: grid; gap: 16px; padding-top: 8px; }
.buy__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.opo .buy .btn { align-self: auto; }
.opo--ask {
  text-decoration: none; color: inherit; background: var(--brand); border-color: var(--brand);
  gap: 12px; transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.opo--ask:hover { background: var(--brand-hover); text-decoration: none; }
.opo--ask:active { transform: translateY(1px); }
.opo--ask h3, .opo--ask p, .opo--ask .opo__ask-link { color: #fff; }
.opo--ask p { opacity: .92; }
.opo__ask-mark { width: 40px; height: 40px; font-size: 1.125rem; }
.opo__ask-link { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- a medida ---------- */
.custom { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .custom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.custom__lead { margin-top: 18px; font-size: var(--step-lead); color: var(--ink-2); max-width: 36rem; }
.process { list-style: none; display: grid; gap: 20px; margin-top: 32px; }
.process li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.process .bubble { width: 32px; height: 32px; font-size: .875rem; }
.process b { display: block; font-size: 1.0625rem; }
.process p { margin-top: 2px; color: var(--ink-2); }
.quote {
  display: grid; gap: 16px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.quote h3 { font-size: 1.375rem; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: .9375rem; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.opt-label { font-weight: 400; color: var(--ink-2); }
textarea.input { resize: vertical; min-height: 112px; line-height: 1.5; }
select.input { appearance: none; background-color: var(--surface); color: var(--ink); padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.quote .input { width: 100%; }
.quote .btn { justify-self: start; }
.lbl-short { display: none; }
@media (max-width: 480px) {
  .header__cta .lbl-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header__cta .lbl-short { display: inline; }
  .header__cta { padding-inline: 16px; }
}
.section--alt .notice { background: var(--surface); }
.price .placeholder { color: var(--on-mark); }
.buy__form { display: contents; }

/* ---------- chips de funciones ---------- */
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.pills li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; font-weight: 600; }
.tem__list li.tem__blk { background: rgba(37,99,235,.07); }

/* ---------- cabecera v5 ---------- */
.header .btn { white-space: nowrap; }
.wordmark { display: inline-block; line-height: 1; white-space: nowrap; }
.wordmark small { display: block; margin-top: 3px; font-size: .5625rem; font-weight: 700; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
@media (min-width: 1180px) and (max-width: 1320px) { .nav__list a { padding: 0 9px; font-size: .9375rem; } .nav__list { gap: 0; } }

/* ---------- planes de precio ---------- */
.plans { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.plans legend { padding: 0; margin-bottom: 10px; font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 560px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 880px) and (max-width: 1180px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { position: relative; display: grid; align-content: start; gap: 2px; padding: 12px 12px 10px; border: 1px solid var(--line); border-radius: var(--r-sm, 12px); background: var(--surface, var(--bg)); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan__t { font-weight: 700; font-size: .9375rem; color: var(--ink); }
.plan__p { justify-self: end; font: 800 1.25rem/1.1 var(--font-logo, inherit); color: var(--ink); }
.plan__m { font-size: .8125rem; color: var(--ink-2); }
.plan__tag { position: absolute; top: -9px; left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .6875rem; font-weight: 800; border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.plan:hover { border-color: var(--brand); }
.plan:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; }
.plan:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.plans__note { margin: 10px 0 0; }
.buy__form .buy__actions { margin-top: 14px; }

/* ---------- fase 1 ---------- */
.pick { margin-top: 28px; }
.pick__title { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pick__list { list-style: none; display: grid; gap: 8px; }
.pick__opt { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.pick__opt:hover { border-color: var(--brand); transform: translateX(2px); }
.pick__opt b { font-size: 1.0625rem; }
.pick__opt span { grid-row: 2; font-size: .875rem; color: var(--ink-2); }
.pick__opt .st { grid-row: 1 / span 2; grid-column: 2; }
.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; font-style: normal; white-space: nowrap; border: 1px solid transparent; }
.st--curso { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.st--abierta { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.st--pendiente { background: var(--bg-2); color: var(--ink-2); border-color: var(--line); }
.st--cerrada { background: var(--bg-2); color: var(--ink-2); border-color: var(--line); }

.convs { display: grid; gap: 16px; }
@media (min-width: 960px) { .convs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.conv { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r, 16px); background: var(--surface); }
.conv__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.conv__org { font-size: .8125rem; color: var(--ink-2); }
.conv h3 { font-size: 1.25rem; line-height: 1.25; }
.conv__next { font-size: .9375rem; color: var(--ink); padding: 10px 12px; border-left: 3px solid var(--brand); background: var(--bg-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.conv__dl { display: grid; gap: 8px; margin: 0; }
.conv__dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 10px; font-size: .9063rem; }
.conv__dl dt { color: var(--ink-2); }
.conv__dl dd { margin: 0; color: var(--ink); }
.conv__links { font-size: .875rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.conv__cta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }

.num { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8125rem; font-weight: 800; font-style: normal; }
.anat { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .anat { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; } }
.anat__card { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r, 16px); background: var(--surface); box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); }
.anat__meta { font-size: .8125rem; color: var(--ink-2); }
.anat__q { margin-top: 8px; font-weight: 700; font-size: 1.0625rem; line-height: 1.45; color: var(--ink); }
.anat__opts { list-style: none; display: grid; gap: 6px; margin: 14px 0; }
.anat__opts li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .9375rem; }
.anat__opts li.is-ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-soft); }
.anat__exp { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: var(--bg-2); font-size: .9063rem; line-height: 1.5; }
.anat__part { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.anat__why { list-style: none; display: grid; gap: 4px; }
.anat__cita { padding: 0; border: 0; }
.anat__card figcaption { margin-top: 12px; }
.anat__legend { list-style: none; display: grid; gap: 20px; }
.anat__legend li { display: flex; gap: 14px; }
.anat__legend .num { width: 32px; height: 32px; font-size: .9375rem; }
.anat__legend b { font-size: 1.0625rem; }
.anat__legend p { margin-top: 4px; color: var(--ink-2); }
.anat__note { margin-top: 24px; max-width: 46rem; }

.method { list-style: none; display: grid; gap: 22px; margin-top: 28px; }
.method li { display: flex; gap: 14px; }
.method p { margin-top: 4px; color: var(--ink-2); }

.quotes { display: grid; gap: 16px; }
@media (min-width: 880px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote-card { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r, 16px); background: var(--surface); }
.quote-card blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.quote-card figcaption { margin-top: 14px; display: grid; }
.quote-card figcaption span { color: var(--ink-2); font-size: .875rem; }
@media (max-width: 560px) {
  .pick__opt { grid-template-columns: 1fr; }
  .pick__opt span, .pick__opt .st { grid-row: auto; grid-column: 1; }
  .pick__opt .st { justify-self: start; margin-top: 8px; }
}

/* ---------- fichas de oposición ---------- */
.fhero { padding-block: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .875rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); }
.fhero__st { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fhero h1 { margin-top: 12px; font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); max-width: 22ch; }
.fhero__lead { margin-top: 16px; max-width: 46rem; font-size: var(--step-lead); color: var(--ink-2); }
.fhero .hero__cta { margin-top: 24px; }
.fgrid2 { display: grid; gap: 32px; padding-block: clamp(32px, 4vw, 56px); }
@media (min-width: 1024px) { .fgrid2 { grid-template-columns: 14rem minmax(0, 1fr); gap: 48px; } .ftoc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.ftoc p { font-weight: 700; font-size: .875rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.ftoc ol { list-style: none; margin-top: 10px; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.ftoc a { display: block; padding: 6px 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.ftoc a:hover { color: var(--brand); }
@media (max-width: 1023px) { .ftoc ol { display: flex; flex-wrap: wrap; gap: 6px; border: 0; } .ftoc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .875rem; } }
.fbody { min-width: 0; display: grid; gap: clamp(40px, 5vw, 64px); }
.fbody > section { scroll-margin-top: calc(var(--header-h) + 16px); }
.fbody h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); margin-bottom: 12px; }
.fbody .muted { color: var(--ink-2); max-width: 46rem; }
.facts { display: grid; gap: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.fb { margin-top: 20px; }
.fb h3 { font-size: 1.125rem; margin-bottom: 8px; }
.fb ul, .fb ol { padding-left: 20px; display: grid; gap: 6px; }
.fb p { max-width: 46rem; }
.fsteps { list-style: none; padding: 0 !important; counter-reset: s; gap: 10px !important; }
.fsteps li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.fsteps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .875rem; }
.fsteps li b { display: block; }
.fsteps li span { color: var(--ink-2); font-size: .9375rem; }
.leyes { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 900px) { .leyes { grid-template-columns: 1fr 1fr; } }
.ley { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.ley__h { font-weight: 700; line-height: 1.35; }
.ley p { margin-top: 6px; font-size: .9375rem; color: var(--ink-2); }
.ley__t { font-size: .8125rem !important; font-weight: 700; color: var(--brand) !important; }
.htable { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.htable th, .htable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.htable th { font-size: .8125rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.fcta { padding: clamp(24px, 3vw, 40px); border-radius: var(--r, 16px); background: var(--bg-2); border: 1px solid var(--line); }
.fcta p { margin-top: 8px; color: var(--ink-2); max-width: 40rem; }
.fcta .hero__cta { margin-top: 18px; }
.fdisclaimer { max-width: 46rem; }

.conv__fichas { display: grid; gap: 4px; font-weight: 700; font-size: .9375rem; }
.conv__ficha { color: var(--brand); text-decoration: none; }
.conv__ficha:hover { text-decoration: underline; }
.ficha-page .tem__list { max-height: none; }
.fgrid2 { grid-template-columns: minmax(0, 1fr); } @media (min-width: 1024px) { .fgrid2 { grid-template-columns: 14rem minmax(0, 1fr); } } .fhero h1, .ley__h { overflow-wrap: anywhere; }
.fbody { grid-template-columns: minmax(0, 1fr); } .fbody > section { min-width: 0; }

/* ---------- catálogo de baterías (tarjetas compactas, 3-4 por fila) ---------- */
.cats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
@media (min-width: 1100px) { .cats { gap: 20px; } }
.cat { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.cat:hover { border-color: var(--brand); box-shadow: 0 10px 30px rgba(37, 99, 235, .12); transform: translateY(-2px); }
.cat__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat__code { font: 800 1.75rem/1 var(--font-display); letter-spacing: -.03em; }
.cat h3 { font-size: 1.125rem; line-height: 1.25; }
.cat__sub { margin-top: -8px; color: var(--ink-2); font-size: .9063rem; }
.cat__figs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 0; margin: 0; border-block: 1px solid var(--line); }
.cat__figs li + li { padding-left: 12px; border-left: 1px solid var(--line); }
.cat__figs b { display: block; font: 800 1.5rem/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cat__figs span { display: block; margin-top: 6px; color: var(--ink-2); font-size: .8125rem; }
.cat__ticks { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.cat__ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; font-size: .9063rem; line-height: 1.4; }
.cat__ticks svg { width: 18px; height: 18px; margin-top: 1px; color: var(--ok); }
.cat__buy { margin-top: auto; display: grid; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cat__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cat__price b { font: 800 2.25rem/1 var(--font-display); letter-spacing: -.03em; }
.cat__price s { color: var(--ink-2); }
.cat__price .save { font-size: .8125rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 3px 8px; border-radius: var(--pill); }
.cat__from { color: var(--ink-2); font-size: .9375rem; }
.cat__note { color: var(--ink-2); font-size: .8125rem; line-height: 1.45; margin-top: -4px; }
.cat__form { display: grid; gap: 10px; }
.cat__plan { display: grid; gap: 4px; font-size: .8125rem; color: var(--ink-2); }
.cat__plan select { font: inherit; font-size: .9375rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 10px; min-height: 44px; }
.cat__cta { width: 100%; justify-content: center; }
.cat__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: .875rem; font-weight: 700; }
.cat__links a { color: var(--link); text-decoration: none; }
.cat__links a:hover { text-decoration: underline; }
.cat-ask { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--r); background: var(--brand); color: #fff; text-decoration: none; }
.cat-ask:hover { background: var(--brand-hover); text-decoration: none; }
.cat-ask__mark { width: 36px; height: 36px; flex: 0 0 auto; }
.cat-ask__txt { flex: 1 1 260px; color: #fff; }
.cat-ask__txt b { margin-right: 4px; }
.cat-ask__link { font-weight: 700; color: #fff; white-space: nowrap; }
/* convocatorias: rejilla que admite 4 */
@media (min-width: 960px) { .convs { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
/* pestañas de la pregunta de ejemplo */
.demo-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); position: relative; z-index: 1; }
.demo-tabs button { font: inherit; font-size: .875rem; font-weight: 700; border: 0; background: transparent; color: var(--ink-2); padding: 7px 14px; border-radius: var(--pill); cursor: pointer; min-height: 36px; }
.demo-tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.demo-tabs button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* convocatorias: todas las tarjetas a la misma altura, botones alineados abajo */
.convs { align-items: stretch; }
.conv__cta { margin-top: auto; }

/* Ertzaintza: tira de oferta y planes visibles */
.cat--oferta { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.cat__ribbon { margin: -24px -24px 0; padding: 9px 24px; background: var(--ok); color: #fff; font-size: .875rem; font-weight: 600; line-height: 1.35; }
.cat__ribbon b { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: var(--pill); background: rgba(255,255,255,.22); text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.plans { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.plans legend { padding: 0; margin-bottom: 8px; font-size: .8125rem; color: var(--ink-2); }
.plan { position: relative; display: grid; align-content: start; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.plan:hover { border-color: var(--brand); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan__m { font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.plan__p { justify-self: end; font: 800 1.25rem/1.1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.plan__x { grid-column: 1 / -1; font-size: .75rem; color: var(--ink-2); }
.plan__save { grid-column: 1 / -1; justify-self: start; margin-top: 2px; font-size: .75rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 7px; border-radius: var(--pill); }
.plan__tag { position: absolute; top: -9px; left: 10px; font-style: normal; font-size: .6875rem; font-weight: 800; color: #fff; background: var(--ok); padding: 2px 8px; border-radius: var(--pill); }
.plan:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); box-shadow: 0 0 0 1px var(--brand); }
.plan:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.plan--best { padding-top: 15px; border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.cat__ribbon .nw { white-space: nowrap; }
/* cuatro baterías y cuatro convocatorias: rejilla de 2 × 2 en pantallas anchas */
@media (min-width: 760px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .convs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } .plans legend { grid-column: 1 / -1; } .plan { grid-template-columns: minmax(0, 1fr); padding-top: 15px; } .plan__p { justify-self: start; } }

/* Portada: selector de oposición en una fila propia bajo el titular y la demo, tarjetas de la misma altura */
.pick--row { margin-top: clamp(40px, 5vw, 64px); }
.pick--row .pick__title { font-size: 1.0625rem; margin-bottom: 14px; }
.pick--row .pick__list { gap: 12px; }
@media (min-width: 640px) { .pick--row .pick__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pick--row .pick__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pick--row .pick__list > li { display: flex; }
.pick--row .pick__opt { flex: 1; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; row-gap: 4px; padding: 16px 18px; }
.pick--row .pick__opt span, .pick--row .pick__opt .st { grid-row: auto; grid-column: 1; }
.pick--row .pick__opt .st { justify-self: start; align-self: end; margin-top: 12px; }
.pick--row .pick__opt:hover { transform: translateY(-2px); }
/* La columna de la demo nunca ensancha la portada; en pantallas estrechas las pestañas se desplazan en horizontal */
.hero__grid > * { min-width: 0; }
@media (max-width: 1023px) {
  .demo-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tabs button { flex: 0 0 auto; white-space: nowrap; }
}
