/* IA en el aula con criterio · sistema visual Kairis (papel, salvia, terracota). Sin fuentes externas. */
:root {
  --bg-canvas: #EEF1EA;
  --bg-paper: #F7F5EF;
  --bg-ink: #171714;
  --text: #171714;
  --text-2: #56554F;
  --text-on-ink: #F7F5EF;
  --line: #D7D2C9;
  --hair: rgba(23, 23, 20, .08);
  --tech: #4C6C85;
  --sage: #6F8B74;
  --human: #B5674A;
  --human-plain: #D08A6C;
  --tint-tech: #DDE5EC;
  --tint-sage: #D9E2DC;
  --tint-human: #F3DFD3;
  --tint-lime: #E6EAD0;
  /* insignias de fuerza */
  --obl: #9B2F24; --obl-bg: #F6DAD4;
  --aepd: #8A4A12; --aepd-bg: #F6E2CB;
  --rec: #2F5470; --rec-bg: #DDE5EC;
  --cen: #4A4943; --cen-bg: #E6E3DB;
  /* semáforo INTEF: rojo, ámbar claro, ámbar, verde claro, verde */
  --n0: #B23A2E; --n0-bg: #F7DCD7;
  --n1: #8C6A0E; --n1-bg: #FBEFC9;
  --n2: #9A5410; --n2-bg: #F8DEC2;
  --n3: #4F7A2A; --n3-bg: #E2EFD3;
  --n4: #2D6A3E; --n4-bg: #CFE6D4;

  --f-display: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --r-lg: 24px; --r-md: 18px; --r-sm: 12px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(23,23,20,.04), 0 8px 24px rgba(23,23,20,.05);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ancho: 1120px;
  --lectura: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg-canvas); color: var(--text); font: 17px/1.6 var(--f-body); text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--tech); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--human); outline-offset: 2px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; background: var(--bg-ink); color: var(--text-on-ink); padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.saltar:focus { top: 12px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; letter-spacing: -.015em; color: var(--text); text-wrap: balance; }
h1 em, h2 em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--human); }
code { font-family: var(--f-mono); font-size: .86em; background: var(--bg-paper); border: 1px solid var(--hair); padding: .1em .4em; border-radius: 6px; }
pre { background: var(--bg-paper); border: 1px solid var(--line); padding: 16px; border-radius: var(--r-sm); overflow-x: auto; }
pre code { border: 0; padding: 0; background: none; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); margin: 0 0 10px; }

/* ---------- Cabecera ---------- */
.cab { position: sticky; top: 0; z-index: 50; background: rgba(238,241,234,.92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--hair); }
.cab__in { max-width: var(--ancho); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 16px; white-space: nowrap; margin-right: auto; }
.marca__k { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-ink); color: var(--text-on-ink); font-size: 19px; }
.marca__k::after { content: ''; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--human-plain); }
.marca__txt em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--human); }
.cab__rapido { display: flex; gap: 4px; }
.cab__rapido a { font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill); }
.cab__rapido a:hover, .cab__rapido a[aria-current] { background: var(--bg-paper); }
.cab__buscar input { width: 170px; font: inherit; font-size: 15px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-paper); color: var(--text); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: var(--r-pill); background: var(--bg-ink); color: var(--text-on-ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ' ▾'; }
.menu[open] summary::after { content: ' ▴'; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(680px, calc(100vw - 32px)); background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 18px 50px rgba(23,23,20,.14); padding: 18px 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; max-height: calc(100vh - 90px); overflow-y: auto; }
.menu__inicio { grid-column: 1 / -1; margin: 0 0 6px; font-family: var(--f-display); font-weight: 700; }
.menu__titulo { font-family: var(--f-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); margin: 10px 0 4px; }
.menu__grupo ul, .pie__mapa ul { list-style: none; margin: 0; padding: 0; }
.menu__grupo a { display: block; padding: 5px 0; color: var(--text); text-decoration: none; }
.menu__grupo a:hover { color: var(--tech); text-decoration: underline; }
.menu__grupo a[aria-current] { font-weight: 700; color: var(--human); }

@media (max-width: 960px) { .cab__rapido { display: none; } }
@media (max-width: 640px) {
  .cab__buscar { display: none; }
  .marca__txt { font-size: 15px; }
  .menu__panel { grid-template-columns: 1fr; position: fixed; left: 16px; right: 16px; top: 62px; width: auto; }
}

.aviso-rev { max-width: var(--ancho); margin: 12px auto 0; padding: 12px 16px; background: var(--aepd-bg); color: var(--aepd); border-radius: var(--r-sm); font-weight: 600; }
@media (max-width: 1150px) { .aviso-rev { margin-left: 16px; margin-right: 16px; } }

/* ---------- Página ---------- */
main { display: block; outline: none; }
.pagina { max-width: var(--ancho); margin: 0 auto; padding: 0 16px 64px; }
.hero-pag { max-width: var(--lectura); margin: 0 auto; padding: 36px 0 8px; }
.hero-pag h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 8px; }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--text-2); }
.migas li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.migas a { color: var(--text-2); }
.cuerpo { max-width: var(--lectura); margin: 0 auto; }
.pagina--index .cuerpo { max-width: none; }
.cuerpo > h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 56px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.cuerpo > h3, .cuerpo h3 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.cuerpo p, .cuerpo li { max-width: 68ch; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text-2); margin: 8px 0 24px; }
.cuerpo ul, .cuerpo ol { padding-left: 1.3em; }
.cuerpo li { margin: 6px 0; }
.cuerpo li::marker { color: var(--human); }
.cuerpo :is(.niveles-lectura, .ideas, .rojas, .situaciones, .semaforo-datos, .etapas, .niveles, .crono, .resultados, .check, .pasos, .contactos-sin) { padding-left: 0; }
ol.pasos { list-style: none; counter-reset: paso; padding-left: 0; }
ol.pasos > li { counter-increment: paso; position: relative; padding: 10px 0 10px 48px; border-bottom: 1px solid var(--hair); margin: 0; }
ol.pasos > li::before { content: counter(paso, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--f-mono); font-weight: 700; font-size: 14px; color: var(--human); background: var(--tint-human); border-radius: 8px; padding: 2px 7px; }
.var { border-bottom: 1px dashed var(--human); }

/* índice de página y siguientes */
.toc, .sigue { background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; margin: 8px 0 32px; }
.toc__t { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 32px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.sigue { margin-top: 56px; }
.sigue ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sigue a { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); background: var(--bg-canvas); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.sigue a::after { content: ' →'; color: var(--human); }
.sigue a:hover { background: var(--tint-sage); }

/* tablas */
.tabla { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-paper); }
.tabla:focus-visible { outline-offset: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
thead th { font-family: var(--f-display); font-size: 13px; font-weight: 700; color: var(--text-2); background: var(--bg-canvas); border-bottom: 1px solid var(--line); }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 700px) { table { font-size: 14px; } th, td { padding: 9px 10px; min-width: 120px; } }

/* insignias */
.fuerza { display: inline-block; font-family: var(--f-display); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-pill); vertical-align: 1px; white-space: nowrap; line-height: 1.5; }
.fuerza--obl { color: var(--obl); background: var(--obl-bg); }
.fuerza--aepd { color: var(--aepd); background: var(--aepd-bg); }
.fuerza--rec { color: var(--rec); background: var(--rec-bg); }
.fuerza--centro { color: var(--cen); background: var(--cen-bg); }

/* acordeón */
.acord { background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--r-md); margin: 10px 0; }
.acord summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 18px; position: relative; }
.acord summary::-webkit-details-marker { display: none; }
.acord summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 700 22px/1 var(--f-display); color: var(--human); }
.acord[open] summary::after { content: '–'; }
.acord summary h3 { margin: 0; font-size: 18px; }
.acord__cuerpo { padding: 0 18px 12px; }
.acord__cuerpo > :first-child { margin-top: 0; }
.acord:target, .acord.resaltado { border-color: var(--human); box-shadow: 0 0 0 3px var(--tint-human); }

/* checklists */
ul.check { list-style: none; padding: 0; }
ul.check li { margin: 0; border-bottom: 1px solid var(--hair); }
ul.check label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; cursor: pointer; }
ul.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--sage); flex: none; }
ul.check input:checked + span { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--line); }

/* botones y formularios */
.btn { font: 700 15px var(--f-display); padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--bg-ink); background: var(--bg-ink); color: var(--text-on-ink); cursor: pointer; }
.btn:hover { background: #33322c; }
.btn--sec { background: transparent; color: var(--text); border-color: var(--line); }
.btn--sec:hover { background: var(--bg-paper); }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.caja { background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin: 28px 0; }
.caja--herramienta { border-color: var(--sage); box-shadow: var(--shadow); }
.caja__t { font-size: 20px; margin: 0 0 6px; }
.campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; margin: 14px 0; }
.campo { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.campo--ancho { grid-column: span 2; }
@media (max-width: 500px) { .campo--ancho { grid-column: auto; } }
.campo label, .filtro label, .buscador label, .portada__buscar label { font-family: var(--f-display); font-weight: 700; font-size: 14px; }
input, select { font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--text); min-width: 0; }
.salida { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 0; }
.salida output { flex: 1 1 260px; font-family: var(--f-mono); font-size: 14.5px; background: var(--bg-canvas); border: 1px dashed var(--sage); border-radius: var(--r-sm); padding: 10px 12px; min-height: 44px; }
.nota { color: var(--text-2); font-size: 15px; }
.filtro { margin: 8px 0 24px; display: flex; flex-direction: column; gap: 6px; }
.filtro__vacio { color: var(--text-2); }

/* semáforo de niveles */
.niveles { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.nivel { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 12px; align-items: center; background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px 10px 10px; margin: 0 !important; max-width: none !important; }
.nivel__permite, .nivel__alumno { font-size: 15px; }
.nivel__alumno { color: var(--text-2); }
@media (max-width: 700px) { .nivel { grid-template-columns: 1fr; gap: 4px; } }
.nivel__chip, .nivel-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 14px; padding: 5px 12px 5px 5px; border-radius: var(--r-pill); width: fit-content; }
.nivel__chip b, .nivel-chip b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-family: var(--f-mono); }
.nivel--0 .nivel__chip, .nivel-chip.nivel--0 { background: var(--n0-bg); color: var(--n0); } .nivel--0 b { background: var(--n0); }
.nivel--1 .nivel__chip, .nivel-chip.nivel--1 { background: var(--n1-bg); color: var(--n1); } .nivel--1 b { background: var(--n1); }
.nivel--2 .nivel__chip, .nivel-chip.nivel--2 { background: var(--n2-bg); color: var(--n2); } .nivel--2 b { background: var(--n2); }
.nivel--3 .nivel__chip, .nivel-chip.nivel--3 { background: var(--n3-bg); color: var(--n3); } .nivel--3 b { background: var(--n3); }
.nivel--4 .nivel__chip, .nivel-chip.nivel--4 { background: var(--n4-bg); color: var(--n4); } .nivel--4 b { background: var(--n4); }
.resultado { margin-top: 6px; }
.resultado h3 { margin: 12px 0 6px; font-size: 17px; }
.resultado ul { margin: 4px 0; }
.resultado .fuera { color: var(--text-2); }

.etapas { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.etapas li { display: flex; flex-direction: column; gap: 8px; background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin: 0; max-width: none; }
.etapas__nombre { font-family: var(--f-display); font-weight: 800; font-size: 17px; }

/* cronología */
.crono { list-style: none; padding: 0; margin: 20px 0; position: relative; }
.crono::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.crono__hito { position: relative; padding: 0 0 22px 34px; margin: 0; max-width: none; }
.crono__hito::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-canvas); border: 3px solid var(--tech); }
.crono__hito.pasado::before { background: var(--tech); }
.crono__hito time { font-family: var(--f-mono); font-weight: 700; font-size: 14px; color: var(--tech); }
.crono__hito p { margin: 2px 0; }
.crono__norma { font-size: 14px; color: var(--text-2); }
.crono__estado { font-family: var(--f-display); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--tint-sage); color: var(--sage); }
.crono__hito.futuro .crono__estado { background: var(--tint-human); color: var(--human); }
.crono__hoy { position: relative; padding: 0 0 22px 34px; font-family: var(--f-display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--human); margin: 0; }
.crono__hoy::before { content: ''; position: absolute; left: -2px; top: 6px; width: 20px; height: 3px; background: var(--human); }

/* ---------- Portada ---------- */
.portada { max-width: 980px; margin: 0 auto; padding: clamp(36px, 7vw, 84px) 0 24px; }
.portada h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 0 0 18px; max-width: 18ch; }
.portada .lead { max-width: 56ch; }
.portada__buscar { margin: 26px 0 30px; display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.portada__buscar-fila { display: flex; gap: 8px; }
.portada__buscar-fila input { flex: 1; padding: 12px 16px; border-radius: var(--r-pill); }
.niveles-lectura { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .niveles-lectura { grid-template-columns: 1fr; } }
.niveles-lectura a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg-paper); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.niveles-lectura a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.niveles-lectura__t { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--human); text-transform: uppercase; letter-spacing: .12em; }
.niveles-lectura strong { font-family: var(--f-display); font-size: 19px; }
.niveles-lectura span:last-child { font-size: 15px; color: var(--text-2); }

.bloque { max-width: 980px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 0; }
.bloque h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 12px; }
.bloque__intro { font-size: 18px; color: var(--text-2); max-width: 62ch; margin: 0 0 18px; }
.bloque--rojo { }
.bloque--papel { }
.bloque--papel .contactos { background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px 20px 42px; }
.contactos li { margin: 8px 0; }
.enlace-flecha { font-family: var(--f-display); font-weight: 700; color: var(--text); }
.enlace-flecha::after { content: ' →'; color: var(--human); }

.ideas { list-style: none; counter-reset: idea; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.ideas li { counter-increment: idea; position: relative; background: var(--bg-paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 44px 18px 16px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.ideas li::before { content: counter(idea, decimal-leading-zero); position: absolute; top: 14px; left: 18px; font-family: var(--f-mono); font-weight: 700; font-size: 13px; color: var(--human); }
.ideas strong { color: var(--text); font-family: var(--f-display); }
.ideas a { display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--tech); white-space: nowrap; }
.ideas a::after { content: ' →'; }

.rojas { list-style: none; counter-reset: roja; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 10px; }
@media (max-width: 460px) { .rojas { grid-template-columns: 1fr; } }
.rojas li { counter-increment: roja; position: relative; background: #FBF1EE; border: 1px solid #E8C5BC; border-left: 5px solid var(--obl); border-radius: var(--r-md); padding: 16px 18px 14px 52px; }
.rojas li::before { content: counter(roja); position: absolute; left: 16px; top: 15px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--obl); color: #fff; font: 700 14px var(--f-mono); }
.rojas__norma { margin: 0 0 8px; font-weight: 600; line-height: 1.45; }
.rojas__meta { margin: 0; font-size: 13.5px; color: var(--text-2); }
.rojas__meta .fuerza { margin-right: 6px; }

.situaciones { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.situacion a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg-paper); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.situacion a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.situacion strong { font-family: var(--f-display); font-size: 17px; line-height: 1.3; }
.situacion strong::after { content: ' →'; color: var(--human); }
.situacion span { font-size: 15px; color: var(--text-2); }
.situacion--urgente a { background: var(--bg-ink); border-color: var(--bg-ink); color: var(--text-on-ink); }
.situacion--urgente span { color: #CFCDC5; }
.situacion--urgente strong::after { color: var(--human-plain); }

.semaforo-datos { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 760px) { .semaforo-datos { grid-template-columns: 1fr; } }
.sd { background: var(--bg-paper); border: 1px solid var(--line); border-top: 6px solid; border-radius: var(--r-md); padding: 14px 18px; }
.sd p { margin: 6px 0; font-size: 15.5px; }
.sd__t { font-family: var(--f-display); font-weight: 800; font-size: 18px !important; display: flex; align-items: center; gap: 8px; }
.sd__punto { width: 14px; height: 14px; border-radius: 50%; background: currentColor; }
.sd__donde { color: var(--text-2); font-size: 14.5px !important; }
.sd--verde { border-top-color: var(--n4); } .sd--verde .sd__t { color: var(--n4); }
.sd--ambar { border-top-color: #C98A1B; } .sd--ambar .sd__t { color: var(--n2); }
.sd--rojo { border-top-color: var(--n0); } .sd--rojo .sd__t { color: var(--n0); }

/* buscador */
.buscador { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.resultados { list-style: none; padding: 0; }
.resultados li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.resultados a { font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.resultados .donde { display: block; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin-bottom: 2px; }
.resultados p { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
mark { background: var(--tint-lime); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- Pie ---------- */
.pie { background: var(--bg-ink); color: var(--text-on-ink); margin-top: 40px; }
.pie__in { max-width: var(--ancho); margin: 0 auto; padding: 48px 16px 40px; display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.pie__mapa { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 24px; }
.pie .menu__titulo { color: #A8A69E; }
.pie a { color: var(--text-on-ink); }
.pie .menu__grupo a { color: var(--text-on-ink); padding: 3px 0; font-size: 15px; }
.pie .menu__grupo a[aria-current] { color: var(--human-plain); }
.leyenda { list-style: none; padding: 0; margin: 0; font-size: 14px; color: #CFCDC5; }
.leyenda li { margin: 8px 0; }
.leyenda .fuerza { margin-right: 6px; }
.pie__nota { grid-column: 1 / -1; border-top: 1px solid rgba(247,245,239,.15); padding-top: 20px; font-size: 14px; color: #CFCDC5; }
.pie__nota p { margin: 6px 0; max-width: 90ch; }
.pie .var { border-bottom-color: var(--human-plain); }
@media (max-width: 760px) { .pie__in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Impresión ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .cab, .pie, .toc, .sigue, .acciones, .saltar, .filtro, .aviso-rev, .portada__buscar, .caja--herramienta { display: none !important; }
  .pagina { padding: 0; }
  .acord { break-inside: avoid; }
  .acord > .acord__cuerpo { display: block !important; }
  .tabla { overflow: visible; border: 0; }
  table { font-size: 9.5pt; }
  a { color: inherit; }
  .cuerpo a.ext::after { content: ' (' attr(href) ')'; font-size: 8pt; color: #555; }
  h2, h3 { break-after: avoid; }
  .ideas li, .rojas li, .situacion, .sd, .etapas li { break-inside: avoid; }
}
