/* Identidad TestLey: papel frío, tinta, verde registro y lacre para el sello de verificación.
   Tipografía: Literata (títulos y citas legales) y Public Sans (interfaz), alojadas en /assets/fonts (sin Google Fonts). */
@font-face { font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/literata-latin-opsz-normal.woff2) format("woff2-variations"), url(fonts/literata-latin-opsz-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Public Sans"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/public-sans-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/public-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
:root {
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-2: #eceee9;
  --text: #1b2a38;
  --muted: #5a6670;
  --line: #d9ddd6;
  --accent: #0e5a4a;
  --accent-2: #0a4739;
  --accent-soft: #e3eee9;
  --seal: #7b1e2c;
  --seal-soft: #f5e9ea;
  --ok: #17693f;
  --ok-soft: #e2f1e7;
  --ko: #b42318;
  --ko-soft: #fbe9e7;
  --warn: #9a5b0b;
  --warn-soft: #f8eedd;
  --gold: #b7791f;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(27, 42, 56, .06);
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111a22; --surface: #17222c; --surface-2: #1e2b36; --text: #e6ebe8; --muted: #9aa8ae; --line: #2b3a45;
    --accent: #6cc3a8; --accent-2: #8fd6bf; --accent-soft: #173a33; --seal: #e59aa6; --seal-soft: #3a1f25;
    --ok: #5fcf8f; --ok-soft: #12311f; --ko: #f08a80; --ko-soft: #3a1714;
    --warn: #e2b35c; --warn-soft: #36290f; --shadow: 0 1px 0 rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
h1, h2, h3 { text-wrap: balance; }
button, .opt, .cta, .btn, a { touch-action: manipulation; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus-visible { top: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16.5px/1.6 var(--sans); font-feature-settings: "kern"; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1080px; }
a { color: var(--accent); }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.15; margin: .5em 0 .35em; letter-spacing: -.025em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 .6em; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; margin: 1.3em 0 .4em; }
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
em { font-style: normal; color: var(--accent); }

/* Cabecera */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .wrap { max-width: 1080px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; letter-spacing: -.01em; margin: 0; }
.logo { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: .9rem; font-weight: 900; }
.mainnav { display: flex; align-items: center; gap: 4px 16px; font-size: .95rem; flex-wrap: wrap; }
.mainnav > a { color: var(--muted); text-decoration: none; font-weight: 500; }
.mainnav > a:hover { color: var(--accent); }
.btn-nav { background: var(--accent); color: #fff !important; padding: 7px 14px; border-radius: 9px; text-decoration: none; font-weight: 600; }
.nav-user { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--text); font-weight: 600; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: .85rem; }
@media (max-width: 560px) { .mainnav { width: 100%; justify-content: space-between; padding-bottom: 8px; font-size: .9rem; } }

/* Botones */
.cta, .btn { display: inline-block; font: inherit; font-weight: 650; text-decoration: none; border-radius: 11px; cursor: pointer; border: 1.5px solid var(--accent); }
.cta { background: var(--accent); color: #fff; padding: 12px 20px; margin: 6px 6px 6px 0; box-shadow: 0 2px 8px rgba(29, 78, 216, .25); }
.cta:hover { background: var(--accent-2); border-color: var(--accent-2); }
.cta.alt { background: transparent; color: var(--accent); box-shadow: none; }
.btn { background: transparent; color: var(--accent); padding: 9px 15px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.wide { width: 100%; padding: 12px; }
.btn:disabled { opacity: .6; cursor: default; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }

/* Portada */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 28px 0 10px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 99px; }
.hero-demo { position: relative; padding: 10px 0 30px; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.demo-card .q { font-weight: 650; margin: 10px 0; }
.demo-card .opt { cursor: default; }
.demo-top { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.demo-float { position: absolute; right: 0; bottom: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow); display: grid; text-align: center; }
.demo-float b { font-size: 1.7rem; line-height: 1.1; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; }
.trust div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.trust b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.trust span { font-size: .86rem; color: var(--muted); }
@media (max-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 16px 0; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--text); display: block; box-shadow: var(--shadow); margin: 16px 0; }
.cards .card { margin: 0; }
a.card:hover { border-color: var(--accent); }
.card > strong { display: block; font-size: 1.05rem; margin: 4px 0; }
.card > span:not(.tag):not(.f-ico) { color: var(--muted); font-size: .94rem; }
.card h2 { margin-top: 0; font-size: 1.15rem; }
.card.soon { opacity: .75; box-shadow: none; }
.f-ico { font-size: 1.6rem; display: block; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 99px; }
.tag.grey { color: var(--muted); background: var(--surface-2); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Pie */
.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 26px 0 40px; font-size: .92rem; color: var(--muted); background: var(--surface); }
.foot .wrap { max-width: 1080px; }
.foot a { color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

.crumbs { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.crumbs a { color: var(--muted); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; box-shadow: var(--shadow); }
.box.tip { border-left: 4px solid var(--ok); }
.price { font-size: 2rem; font-weight: 800; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-scroll { overflow-x: auto; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin: 10px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.art-text { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .97rem; }
.art-list { columns: 2 260px; font-size: .93rem; padding-left: 18px; }
.art-list li { margin: 3px 0; break-inside: avoid; }

/* Test */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 20px 0; box-shadow: var(--shadow); }
.quiz-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.kicker { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.nota { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; margin-right: 10px; }
.nota small, .score small, h1 small { font-size: .45em; color: var(--muted); font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.15rem; }
.stars .off { color: var(--line); }
.stars.big { font-size: 1.7rem; margin: 0; }
.quiz-mini { font-size: .9rem; color: var(--muted); text-align: right; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.mode { text-align: left; font: inherit; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--text); }
.mode strong { display: block; }
.mode span { font-size: .86rem; color: var(--muted); }
.mode:hover { border-color: var(--accent); }
.mode.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.mode.primary span { color: #dbe5ff; }
.select { width: 100%; font: inherit; padding: 9px 10px; margin: 6px 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.meta { display: flex; justify-content: space-between; font-size: .86rem; color: var(--muted); gap: 8px; }
.timer { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.bar span { display: block; width: 100%; height: 100%; background: var(--accent); border-radius: 99px; transform-origin: left center; transition: transform .3s; }
.quiz .q { font-weight: 650; font-size: 1.08rem; margin: 12px 0 14px; }
.opt { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; margin: 8px 0; cursor: pointer; }
.opt:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.opt:disabled { cursor: default; }
.letter { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.opt.ok { border-color: var(--ok); background: var(--ok-soft); }
.opt.ok .letter { background: var(--ok); color: #fff; }
.opt.ko { border-color: var(--ko); background: var(--ko-soft); }
.opt.ko .letter { background: var(--ko); color: #fff; }
.verdict { font-weight: 700; margin: 12px 0 6px; }
.verdict.good { color: var(--ok); background: none; }
.verdict.bad { color: var(--ko); background: none; }
blockquote { margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; font-size: .95rem; }
blockquote .src { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.result-card { text-align: center; }
.result-card .actions { justify-content: center; }
.score { font-size: 3rem; font-weight: 800; margin: 4px 0; letter-spacing: -.03em; }

/* Panel */
.hero-panel { display: grid; grid-template-columns: 1fr 190px; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin: 22px 0 14px; box-shadow: var(--shadow); }
.hero-panel h1 { font-size: clamp(1.4rem, 3.6vw, 2rem); margin: .2em 0 0; }
.nota-big { color: var(--accent); }
@media (max-width: 620px) { .hero-panel { grid-template-columns: 1fr; } .hp-ring { max-width: 170px; margin: 0 auto; } }
.ring { width: 100%; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; }
.ring-num { font-size: 24px; font-weight: 800; text-anchor: middle; fill: var(--text); }
.ring-lbl { font-size: 11px; text-anchor: middle; fill: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 620px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.kpi-n { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.kpi-l { font-size: .85rem; color: var(--muted); }
.stack { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.st-dominada { background: var(--ok); } .st-aprendida { background: #60a5fa; } .st-fallada { background: var(--warn); } .st-nueva { background: var(--line); }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; margin: 10px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.tbar { margin: 12px 0; }
.tbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: .93rem; }
.tbar-track { height: 9px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 5px 0 3px; }
.tbar-track span { display: block; height: 100%; border-radius: 99px; }
.tbar-track .good, .sp-col .good { background: var(--ok); }
.tbar-track .mid { background: #60a5fa; }
.tbar-track .low, .sp-col .low { background: var(--warn); }
.weak { list-style: none; padding: 0; margin: 0 0 14px; }
.weak li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.weak li span { color: var(--warn); font-weight: 600; white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 130px; border-bottom: 1px dashed var(--line); background: linear-gradient(to top, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)); }
.sp-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.sp-col span { width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; }
.sp-col small { font-size: .7rem; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.badge { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; text-align: center; opacity: .5; filter: grayscale(1); }
.badge.on { opacity: 1; filter: none; border-style: solid; border-color: var(--gold); background: var(--warn-soft); }
.b-ico { font-size: 1.6rem; display: block; }
.badge b { display: block; font-size: .92rem; }
.badge small { color: var(--muted); font-size: .78rem; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
input[type=email], input[type=password], input[type=text], input:not([type]) { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); margin-top: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(29, 78, 216, .35); outline-offset: 1px; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 12px 0 0; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 5px; }

/* Cuenta */
.auth { max-width: 440px; margin: 30px auto; }
.auth h1 { font-size: 1.6rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 11px; padding: 4px; }
.tabs button { font: inherit; font-weight: 600; border: 0; background: none; padding: 8px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.auth form .btn { margin-top: 16px; }
.form-msg { min-height: 1.2em; font-size: .92rem; }
.form-msg.err { color: var(--ko); }
.form-msg.ok { color: var(--ok); }

/* Ranking */
.rank tr.me { background: var(--accent-soft); }
.empty { text-align: center; }
.big-ico { font-size: 2.6rem; margin: 0; }

/* Oposiciones */
.op-card .covbar { margin-top: 10px; }
.op-card, .conv-card { min-width: 0; overflow-wrap: anywhere; }
.covbar { display: block; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.covbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.covbar.big { height: 12px; margin: 6px 0 10px; }
.op-meta { margin: 0 0 6px; }
.op-meta .pill { margin: 0 4px 4px 0; }
.op-cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; box-shadow: var(--shadow); }
.op-cta .cta { margin: 0 6px 0 0; }
.op-cta.mine { border-color: var(--ok); background: var(--ok-soft); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.temario { padding-left: 26px; }
.temario > li { margin: 10px 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.temario > li p { margin: 0 0 6px; }
.temario.compact > li { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: .92rem; margin: 4px 0; padding: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; font-size: .78rem; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.chip.ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.chip.grey { background: var(--surface-2); color: var(--muted); }
.tema-pct { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; color: #fff; white-space: nowrap; }
.tema-pct.good { background: var(--ok); } .tema-pct.mid { background: #3b82f6; } .tema-pct.low { background: var(--warn); }
.ctx-bar { margin-top: 18px; }
.mode.locked { display: block; text-decoration: none; opacity: .75; border-style: dashed; }
.mode.locked:hover { opacity: 1; border-color: var(--accent); }
.box.upsell { border-left: 4px solid var(--accent); }
.pase-on { border-left: 4px solid var(--ok); }
.activar input { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; margin: 6px 0 10px; background: var(--surface); color: var(--text); }
/* Buscador, categorías y datos oficiales */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.buscador { display: flex; gap: 8px; margin: 14px 0 8px; }
.buscador input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); }
.buscador .cta { margin: 0; }
.populares a { margin: 0 2px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.cat-chip { text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .9rem; color: var(--text); background: var(--surface); }
.cat-chip b { color: var(--muted); font-weight: 600; margin-left: 2px; }
.cat-chip.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.cat-chip.on b { color: #fff; }
.cat-chip.empty { opacity: .55; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cat-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.cat-card:hover { border-color: var(--accent); }
.cat-card .cat-ico { font-size: 1.6rem; }
.cat-card span:last-child { font-size: .85rem; color: var(--muted); }
.cat-card.soon { opacity: .6; box-shadow: none; }
.oficial .of-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.badge-oficial, .badge-testley, .badge-ia { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.badge-oficial { background: #dcfce7; color: #166534; }
.badge-testley { background: #dbeafe; color: #1e40af; }
.badge-ia { background: #fef3c7; color: #92400e; }
.of-row h3 { font-size: 1rem; margin: 14px 0 4px; }
.of-list { margin: 0; padding-left: 18px; }
.of-list li { margin: 4px 0; }
.of-list details { display: inline; margin-left: 6px; font-size: .85rem; }
.of-list summary { display: inline; cursor: pointer; color: var(--accent); }
.of-list blockquote { margin: 6px 0; font-size: .9rem; }
@media (max-width: 520px) { .buscador { flex-direction: column; } .buscador .cta { width: 100%; text-align: center; } }
/* Motor de tests */
.meta .fav { background: none; border: 0; font-size: 1.25rem; cursor: pointer; color: var(--muted); padding: 0 4px; line-height: 1; }
.meta .fav.on { color: #d97706; }
.opt.sel { border-color: var(--accent); background: var(--surface-2); }
.amedida { margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.amedida summary { cursor: pointer; }
.tm-form { display: grid; gap: 10px; margin-top: 10px; }
.tm-form label { display: grid; gap: 4px; font-size: .9rem; }
.tm-form label.check { display: flex; gap: 8px; align-items: center; }
.analisis { text-align: left; margin: 14px 0; }
.analisis .rev { border-top: 1px solid var(--line); padding: 8px 0; }
.analisis .good { color: var(--ok); } .analisis .bad { color: #b91c1c; }
/* Panel: mi oposición, plan, simulacros */
.aj-form { display: grid; gap: 10px; margin-top: 10px; }
.aj-form label { display: grid; gap: 4px; font-size: .9rem; }
.aj-form input { font: inherit; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.plan-dias { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.plan-dias > li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); }
.plan-dias ul { margin: 4px 0 0; padding-left: 18px; }
.warn { background: #fef3c7; color: #92400e; border-radius: 10px; padding: 10px 12px; }
.ok-msg { background: #dcfce7; color: #166534; border-radius: 10px; padding: 10px 12px; }
.tabla { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0 12px; }
.tabla th, .tabla td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tabla .good { color: var(--ok); } .tabla .bad { color: #b91c1c; }
.tutor-resp { border: 1px solid #fde68a; background: #fffbeb; border-radius: 12px; padding: 10px 12px; margin-top: 10px; color: #1f2937; }
.ia-aviso { font-size: .8rem; color: #92400e; margin: 0 0 6px; }
.tutor-card textarea { width: 100%; min-height: 80px; font: inherit; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
/* Novedades y avisos */
.nov { list-style: none; padding: 0; margin: 6px 0 10px; }
.nov li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; overflow-wrap: anywhere; }
.nov li.nuevo { background: #fef9c3; }
.nov-f { font-variant-numeric: tabular-nums; color: var(--muted); }
.campana { text-decoration: none; margin-right: 8px; font-size: 1rem; }
.campana b { background: #dc2626; color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 6px; margin-left: 2px; vertical-align: top; }
.upsell-card { border-left: 4px solid var(--accent); }
.pendiente { border-left: 4px solid #d97706; background: #fffbeb; }
.pendiente h2 { font-size: 1.1rem; }
.tabla-scroll { overflow-x: auto; }
.tabla small { font-size: .78rem; }
.tipos { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 4px; }
.exp { font-size: .9rem; margin: 6px 0; }

/* ---------- v3: catálogo, ficha, dashboard, onboarding, precios, growth ---------- */
.badge-pendiente, .badge-aviso, .badge-gris { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.badge-pendiente { background: #e0f2fe; color: #075985; }
.badge-aviso { background: #fee2e2; color: #991b1b; }
.badge-gris { background: var(--surface-2); color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .badge-oficial { background: #10301f; color: #86efac; } .badge-testley { background: #1a2750; color: #a9c1ff; } .badge-ia { background: #3a2c0b; color: #fcd34d; }
  .badge-pendiente { background: #0c2a3d; color: #7dd3fc; } .badge-aviso { background: #3a1515; color: #fca5a5; } .warn { background: #3a2c0b; color: #fcd34d; }
}
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.filtros label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: 3px; flex: 1 1 150px; min-width: 0; }
.filtros .select { width: 100%; }
.card-foot { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.op-header { margin-bottom: 8px; }
.op-org { color: var(--muted); margin: 0 0 6px; }
.op-verif { margin: 6px 0; }
.op-start { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.op-index { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; margin: 8px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.op-index a { white-space: nowrap; font-size: .85rem; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); text-decoration: none; color: var(--text); }
section[id], div[id="convocatoria"] { scroll-margin-top: 70px; }
.hoy { border-left: 4px solid var(--accent); }
.hoy-lista { list-style: none; padding: 0; margin: 8px 0 14px; counter-reset: t; }
.hoy-lista li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hoy-lista li a { display: flex; flex-direction: column; text-decoration: none; color: var(--text); min-width: 0; }
.hoy-lista .min { white-space: nowrap; font-weight: 700; color: var(--accent); }
.ok-msg { color: var(--ok); }
.cmp { font-size: .95rem; }
.onb { max-width: 620px; margin: 0 auto; }
.onb-card h1 { font-size: 1.5rem; }
.onb-ops { display: grid; gap: 8px; margin: 10px 0; }
.onb-op { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: var(--surface); }
.onb-op:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.onb-op span { display: flex; flex-direction: column; min-width: 0; }
.onb-op small { color: var(--muted); }
.onb-card label { display: flex; flex-direction: column; gap: 4px; }
.onb-card input[type=date], .onb-card input[type=number] { padding: 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--surface); color: var(--text); }
.onb-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 18px 0; }
.plan-card.destacado { border: 2px solid var(--accent); }
ul.check { list-style: none; padding: 0; }
ul.check li { padding: 4px 0 4px 26px; position: relative; }
ul.check li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }
.premium-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.final-cta { text-align: center; padding: 24px 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.problema .card, .features .card { min-width: 0; }
ol.steps.big li { margin: 6px 0; }
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; font-size: .92rem; }
.consent p { margin: 6px 0; }
.pre { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); padding: 10px; border-radius: 10px; font-size: .85rem; max-height: 320px; overflow: auto; }
.art-noticia { overflow-wrap: anywhere; }
.ref-url { width: 100%; max-width: 420px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface-2); color: var(--text); }

/* Los elementos ocultos por el buscador (atributo hidden) no deben mostrarse aunque su clase fije display */
[hidden] { display: none !important; }

.qbar { display: grid; grid-template-columns: minmax(0, 14em) 1fr 4em; gap: 10px; align-items: center; margin: 6px 0; }
.qbar .tbar-track { display: block; }
fieldset.dias { border: 0; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
@media (max-width: 520px) { .qbar { grid-template-columns: 1fr 3.5em; } .qbar > span:first-child { grid-column: 1 / -1; } }
.tema-oficial{font-size:.95rem;color:var(--muted,#555);margin:.2rem 0 .6rem}.tema-saltos a{font-weight:600}


/* ================= Identidad v4: tipografía, estructura y componentes ================= */
h1, h2, h3, .brand, .nota, .score, .kpi-n, .cifras dd, .price { font-family: var(--serif); }
h1 { font-weight: 620; font-size: clamp(1.85rem, 4.2vw, 2.7rem); line-height: 1.12; letter-spacing: -.012em; font-variation-settings: "opsz" 60; }
h2 { font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.25; letter-spacing: -.005em; margin: 2.2em 0 .7em; }
h3 { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
p, li, dd { max-width: 72ch; }
.lead { font-size: 1.14rem; line-height: 1.55; max-width: 60ch; }
em { font-style: normal; color: inherit; font-weight: 600; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }

/* Cabecera: papel, filete y marca con el signo de sección legal */
.top { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 650; font-size: 1.22rem; letter-spacing: -.01em; gap: 9px; }
.logo { width: 28px; height: 28px; border-radius: 50%; background: none; border: 1.5px solid var(--seal); color: var(--seal); font-family: var(--serif); font-weight: 600; font-size: 1rem; line-height: 1; }
.mainnav > a { color: var(--text); font-weight: 500; }
.mainnav > a:hover { color: var(--accent); text-decoration: underline; }
.btn-nav { background: var(--accent); border-radius: 6px; font-weight: 600; }

/* Botones: rectángulos sobrios, sin sombra */
.cta, .btn { border-radius: 6px; font-weight: 600; letter-spacing: .005em; }
.cta { box-shadow: none; padding: 11px 20px; }
.cta.alt { background: transparent; color: var(--accent); }
.btn.ghost { color: var(--text); }

/* Superficies: sin sombras difusas; la jerarquía la marcan el filete y el espacio */
.card, .box, .quiz, .kpi, .op-cta, .demo-card, .hero-panel, .cat-card, .faq details, .amedida, .art-text { box-shadow: none; border-radius: var(--radius); }
a.card:hover, .cat-card:hover { border-color: var(--accent); background: var(--surface); }
.card.soon, .cat-card.soon { opacity: .7; }
.quiz { border-radius: 12px; }

/* Nada de etiquetas en mayúsculas */
.tag, .kicker, th, blockquote .src, .letter { text-transform: none; letter-spacing: 0; }
.tag { font-size: .78rem; font-weight: 600; background: none; color: var(--muted); padding: 0; border-radius: 0; }
.tag.grey { background: none; }
.kicker { font-size: .85rem; font-weight: 600; color: var(--muted); }
th { font-size: .82rem; font-weight: 600; }
.pill { background: var(--surface-2); color: var(--text); font-weight: 500; border-radius: 4px; padding: 2px 8px; }
.f-ico, .cat-card .cat-ico, .b-ico { display: none; }

/* La cita legal: el corazón del producto */
blockquote { font-family: var(--serif); font-size: 1rem; line-height: 1.6; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 12px 16px; }
blockquote .src { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--accent); }
.art-text { font-family: var(--serif); font-size: 1.02rem; line-height: 1.7; }

/* Test: opciones claras, letra de la opción discreta */
.opt { border-radius: 8px; border-width: 1px; }
.letter { border-radius: 50%; font-weight: 600; }
.quiz .q, .demo-card .q { font-family: var(--serif); font-weight: 560; font-size: 1.12rem; line-height: 1.45; }
.mode { border-radius: 8px; border-width: 1px; }
.mode.primary { background: var(--accent); }
.bar, .covbar, .tbar-track { border-radius: 2px; }
.bar span, .covbar i, .tbar-track span { border-radius: 0; }
.steps li::before { background: none; color: var(--accent); border: 1.5px solid var(--accent); font-family: var(--serif); }

/* Portada */
.portada { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 48px 0 28px; }
.portada h1 { font-size: clamp(2.05rem, 4.6vw, 3.1rem); margin: 0 0 .45em; max-width: 17ch; }
.portada .buscador { max-width: 560px; margin-top: 22px; }
.portada-nota { color: var(--muted); font-size: .92rem; margin: 10px 0 0; }
.prueba { margin: 0; }
.prueba figcaption { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.prueba-hoja { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 18px; }
.prueba-meta { font-size: .82rem; color: var(--muted); margin: 0; }
.prueba .q { font-family: var(--serif); font-size: 1.12rem; font-weight: 560; line-height: 1.45; margin: 6px 0 12px; }
.prueba .opt { cursor: default; padding: 8px 12px; margin: 6px 0; }
.prueba .cita { margin: 14px 0 0; }
.sello { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: .85rem; color: var(--seal); font-weight: 600; }
.sello-marca { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--seal); display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px var(--seal-soft); }
@media (max-width: 860px) { .portada { grid-template-columns: 1fr; gap: 30px; padding-top: 26px; } }

.cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cifras > div { padding: 16px 18px 14px 0; }
.cifras > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.cifras dt { font-size: .85rem; color: var(--muted); }
.cifras dd { margin: 2px 0 0; font-size: 1.55rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 700px) { .cifras { grid-template-columns: 1fr 1fr; } .cifras > div:nth-child(3) { padding-left: 0; border-left: 0; } .cifras > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.pasos { list-style: none; counter-reset: p; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.pasos li { counter-increment: p; border-top: 1px solid var(--line); padding: 18px 0 8px 52px; position: relative; }
.pasos li::before { content: counter(p); position: absolute; left: 0; top: 16px; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; color: var(--accent); }
.pasos h3 { margin: 0 0 4px; }
.pasos p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .pasos { grid-template-columns: 1fr; } }

.cat-titulo { margin-top: 2em; }
.cat-lista { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 36px; }
.cat-lista li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); max-width: none; }
.cat-lista a { color: var(--text); font-weight: 500; text-decoration: none; }
.cat-lista a:hover { color: var(--accent); text-decoration: underline; }
.cat-lista span { color: var(--muted); font-size: .88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-lista li.vacia a { color: var(--muted); }

.incluye-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.incluye-lista > div { border-top: 1px solid var(--line); padding: 16px 0; }
.incluye-lista dt { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.incluye-lista dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 700px) { .incluye-lista { grid-template-columns: 1fr; } }

.premium-cta { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; border-left: 3px solid var(--accent); }
@media (max-width: 640px) { .premium-cta { grid-template-columns: 1fr; } }
.final-cta { border-top: 1px solid var(--line); margin-top: 48px; }
.foot { background: var(--bg); }
.foot strong, .foot .brand { font-family: var(--serif); }

/* Ficha y páginas de tema */
.badge-oficial, .badge-testley, .badge-ia, .badge-pendiente, .badge-aviso, .badge-gris { border-radius: 4px; font-weight: 600; font-size: .76rem; }
.badge-oficial { background: var(--accent-soft); color: var(--accent); }
.tema-oficial { font-family: var(--serif); }
.op-index a { border-radius: 4px; }
.chip, .cat-chip { border-radius: 4px; }
.cat-chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.cat-chip.on b { color: var(--bg); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.buscador input { border-width: 1px; border-radius: 6px; }
.select, input[type=email], input[type=password], input[type=text], input:not([type]) { border-radius: 6px; }
/* Tarjeta de oposición: cada dato en su línea, título en serif */
.cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.op-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 14px; }
.op-card > span { display: block; }
.op-card > strong { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.3; margin: 2px 0 2px; }
.op-card .covbar { margin: 8px 0 2px; }
.op-card .card-foot { margin-top: auto; padding-top: 8px; }
.campana { font-size: .9rem; font-weight: 600; color: var(--text); }
.campana b { background: var(--seal); }
.stars { color: var(--gold); }
@media (max-width: 560px) {
  .top .wrap { min-height: 0; padding-top: 10px; }
  .mainnav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 18px; padding-bottom: 10px; scrollbar-width: none; white-space: nowrap; }
  .mainnav::-webkit-scrollbar { display: none; }
  .btn-nav { padding: 5px 12px; }
}
@media (max-width: 560px) {
  .top .wrap { position: relative; }
  #cuenta-nav { position: absolute; right: 16px; top: 10px; background: var(--bg); padding-left: 8px; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
}

/* ================= Ficha de oposición: cabecera con datos clave + índice lateral ================= */
.op-header { max-width: 860px; }
.op-header h1 { margin-bottom: .25em; }
.op-org { font-size: 1.05rem; }
.op-datos { display: flex; flex-wrap: wrap; gap: 0; margin: 18px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.op-datos > div { padding: 10px 22px 10px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.op-datos > div:last-child { border-right: 0; }
.op-datos dt { font-size: .8rem; color: var(--muted); }
.op-datos dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 6px; }
.acciones .cta { margin: 0; }
.acciones .btn { padding: 10px 16px; }
.acciones-nota { flex-basis: 100%; margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.ficha { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 44px; margin-top: 26px; align-items: start; }
.ficha-main { min-width: 0; max-width: 820px; }
.ficha-main > section, .ficha-main > div > section { margin-top: 0; }
.ficha-main .card, .ficha-main > section { margin: 0 0 22px; }
.ficha-nav { position: sticky; top: 80px; font-size: .93rem; }
.ficha-nav-t { font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.ficha-nav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.ficha-nav a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.ficha-nav a:hover { color: var(--text); }
.ficha-nav a.activo { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
@media (max-width: 900px) {
  .ficha { grid-template-columns: 1fr; gap: 0; margin-top: 10px; }
  .ficha-nav { position: sticky; top: 0; z-index: 5; background: var(--bg); margin: 0 -16px 16px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
  .top { position: static; }
  .ficha-nav-t { display: none; }
  .ficha-nav ol { display: flex; gap: 4px 18px; overflow-x: auto; border: 0; scrollbar-width: none; white-space: nowrap; }
  .ficha-nav ol::-webkit-scrollbar { display: none; }
  .ficha-nav a { padding: 6px 0; margin: 0; border-left: 0; border-bottom: 2px solid transparent; }
  .ficha-nav a.activo { border-bottom-color: var(--accent); }
}
.sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin-bottom: .3em; }
.ficha-main > section > h2:first-child, .ficha-main > section > .sec-head:first-child h2 { margin-top: .3em; }
.ficha-main section[id], .ficha-main div[id] { scroll-margin-top: 90px; }

/* Temario compacto por bloques */
.bloque { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 10px; }
.bloque > summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 18px; cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; list-style: none; }
.bloque > summary::-webkit-details-marker { display: none; }
.bloque > summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--muted); margin-left: 8px; }
.bloque[open] > summary::after { content: "−"; }
.bloque > summary small { font-family: var(--sans); font-weight: 400; font-size: .85rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
.temario-lista { list-style: none; margin: 0; padding: 0 18px 8px; }
.temario-lista > li { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); max-width: none; }
.temario-lista a { flex: 1; min-width: 0; display: flex; gap: 12px; color: var(--text); text-decoration: none; }
.temario-lista a:hover .tl-t { color: var(--accent); text-decoration: underline; }
.tl-n { flex: none; width: 2ch; text-align: right; font-family: var(--serif); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums lining-nums; }
.tl-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.temario-lista .chips { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tl-q { font-size: .82rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-q.vacia { opacity: .7; }
.temario-lista .tema-pct { font-size: .74rem; padding: 1px 7px; border-radius: 4px; }
@media (max-width: 560px) { .temario-lista > li { flex-wrap: wrap; } .temario-lista .chips { flex-direction: row; margin-left: calc(2ch + 12px); } }
.leyes-det > summary { cursor: pointer; color: var(--accent); font-weight: 600; margin: 4px 0 8px; }
.leyes-det .of-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 5px 0; border-bottom: 1px solid var(--line); max-width: none; list-style: none; }
.leyes-det .of-list { padding: 0; }
.ficha-main .pendiente { border-left-width: 3px; }
.pendiente { border-left: 3px solid var(--warn); background: var(--warn-soft); }

/* Página de tema */
.tema-ficha { margin-top: 18px; }
.tema-bloque { font-size: .9rem; color: var(--muted); margin: 0; }
.tema-ficha h1 { margin-top: .2em; }
.tema-nav { max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
.tema-nav a { display: flex; gap: 8px; line-height: 1.35; font-size: .88rem; }
.tema-nav .tl-n { width: auto; min-width: 1.6ch; color: inherit; font-weight: 600; }
.tema-nav-todo { margin: 12px 0 0 14px; font-size: .88rem; }
.paginacion { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0 10px; }
.pag-card { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); color: var(--text); text-decoration: none; }
.pag-card.sig { text-align: right; }
.pag-card small { color: var(--muted); font-size: .82rem; }
.pag-card span { font-family: var(--serif); font-weight: 600; line-height: 1.35; }
.pag-card:hover { border-color: var(--accent); color: var(--text); }
@media (max-width: 900px) { .tema-nav { display: none; } }
@media (max-width: 560px) { .paginacion { grid-template-columns: 1fr; } .pag-card.sig { text-align: left; } }
p.acciones { margin: 14px 0 4px; }
.card > h3:first-child, .card > h2:first-child { margin-top: 0; }
.ficha-main > section > h2 { margin-top: 1.4em; }
@media (max-width: 560px) {
  .op-datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .op-datos > div { border-right: 0; margin-right: 0; padding: 8px 8px 8px 0; }
  .op-datos > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .op-datos dd { font-size: 1.05rem; }
  .acciones { gap: 8px; }
  .acciones .cta { flex-basis: 100%; text-align: center; }
  .acciones .btn { flex: 1 1 0; text-align: center; padding: 9px 10px; font-size: .93rem; }
}
.mainnav > a.activo { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .5em; }
.foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.foot b { font-family: var(--serif); color: var(--text); font-weight: 600; }
.foot p { line-height: 1.9; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.filtros { margin: 12px 0 6px; }
#res-count { margin: 14px 0 10px; font-size: .92rem; }
.op-card .card-foot { font-size: .8rem; color: var(--muted); }
.op-card .cov-lbl { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.op-card .covbar { margin-top: 4px; height: 5px; }

/* Panel: lo diario a la izquierda, ajustes y extras a la derecha */
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.panel-main > :first-child, .panel-lado > :first-child { margin-top: 0; }
.panel-lado .card, .panel-lado section { margin: 0 0 16px; }
.panel-lado h2 { font-size: 1.12rem; }
.panel-lado .aj-form, .panel-lado .form-inline { font-size: .95rem; }
.panel-lado .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-main .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 16px; }
.panel-main .card, .panel-main .hero-panel { margin: 0 0 16px; }
.kpi { padding: 12px 14px; }
@media (max-width: 980px) { .panel-grid { grid-template-columns: minmax(0, 1fr); } .panel-lado .badges { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
@media (max-width: 560px) { .panel-main .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-panel h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
@media (max-width: 900px) { .ficha { grid-template-columns: minmax(0, 1fr); } }
/* Listado paginado de convocatorias */
.paginas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 28px 0 8px; }
.paginas .muted { flex-basis: 100%; }
.paginas a, .paginas [aria-current] { min-width: 2.2em; padding: 4px 8px; text-align: center; border: 1px solid var(--line, #d9ddd6); border-radius: 6px; }
.paginas [aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Panel · preparación completa (módulos no medibles: checklist y registro manual) */
.modulo { border-top: 1px solid var(--line); padding: 10px 0; }
.modulo summary { cursor: pointer; }
.modulo blockquote { margin: 8px 0; padding: 6px 10px; border-left: 3px solid var(--line); overflow-wrap: anywhere; }
.checklist { list-style: none; padding: 0; margin: 8px 0; }
.reg-manual input { max-width: 100%; }
.weak.cal li > span:first-child { white-space: normal; color: var(--text); font-weight: 400; min-width: 0; flex: 1 1 200px; }

/* Entrenador aptitudinal */
.apt-prompt { margin: 10px 0; }
.apt-texto { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .04em; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.apt-fila { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; color: var(--text); }
.apt-q { font-size: 1.6rem; font-weight: 700; padding: 0 6px; }
.apt-pares { border-collapse: collapse; font-family: ui-monospace, Menlo, Consolas, monospace; margin: 10px 0; }
.apt-pares td { border: 1px solid var(--line); padding: 6px 10px; }
.apt-opts-fig { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.apt-opts-fig .opt { align-items: center; color: var(--text); }
.apt-conf { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }

/* Competencias y autoconocimiento */
.comp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.comp-tabs .btn { padding: 8px 12px; }
.comp-ficha summary { cursor: pointer; padding: 4px 0; }
.comp-oficial, .comp-testley { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin: 10px 0; }
.comp-oficial { border-color: var(--ok); }
.comp-testley { border-color: var(--accent); }
.comp-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.comp-item legend { padding: 0 4px; }
.comp-likert { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.comp-likert label { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.comp-barra { display: inline-block; width: 90px; max-width: 40vw; height: 8px; border-radius: 6px; background: var(--line); vertical-align: middle; overflow: hidden; }
.comp-barra span { display: block; height: 100%; background: var(--accent); }
.comp-situacion { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }

/* Entrenador de entrevista */
.ent-resp { width: 100%; box-sizing: border-box; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0 10px; resize: vertical; }
.ent-ind { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
