/* Opogalaxy · páginas SEO de lectura. Tema de la web, móvil primero. */
:root {
  --noche: #050b24;
  --azul: #0b2a6b;
  --panel: #0c1a45;
  --panel-2: #0a163b;
  --tabla: #08122f;
  --linea: rgba(255, 255, 255, .12);
  --linea-2: rgba(255, 255, 255, .07);
  --texto: #eef2ff;
  --suave: #bec7e2;
  --oro: #ffb02e;
  --oro-b: #ffc04a;
  --celeste: #7fb6ff;
  --enlace: #8fc2ff;
  color-scheme: dark;
  --hd: 64px;
  --r1: 12px;
  --r2: 16px;
  --lat: 248px;
}

@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 98%; ascent-override: 96%; descent-override: 25%; line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); background: var(--noche); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; padding-top: var(--hd); overflow-x: clip;
  color: var(--texto);
  /* Cielo: azul arriba que se funde en noche, sin cortes ni motivos repetidos. */
  background-color: var(--noche);
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(11, 42, 107, .75), transparent 70%),
    radial-gradient(700px 480px at -10% 30%, rgba(127, 182, 255, .05), transparent 70%),
    linear-gradient(180deg, #0a1d52 0, #071440 380px, var(--noche) 1100px);
  background-repeat: no-repeat;
  font: 400 17px/1.65 Figtree, "Figtree Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.011em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
a { color: var(--enlace); text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(143, 194, 255, .6); }
a:hover { color: #c4defe; text-decoration-thickness: 2px; text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; border-radius: 6px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #ffc94a; outline-offset: 3px; }
h2, h3 { scroll-margin-top: 90px; }
img, svg { display: block; max-width: 100%; }

.salta {
  position: fixed; left: 16px; top: -80px; z-index: 100; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 18px; border-radius: var(--r1);
  background: var(--oro-b); color: #1d1300; font-weight: 700; text-decoration: none;
}
.salta:focus { top: 10px; }

/* ── Cabecera de cristal ── */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hd);
  background: rgba(5, 11, 36, .82);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--linea-2);
}
.hd-in { height: 100%; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 1240px; margin: 0 auto; }
.brand { min-width: 44px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--texto); text-decoration: none; flex: none; border-radius: var(--r1); }
.brand:hover { color: #fff; }
.brand img { width: 38px; height: 38px; }
.marca { font-weight: 700; font-size: 18px; letter-spacing: .01em; }
/* Menú: dos barras con los mismos grupos. Móvil = un botón «Menú» (details); ordenador (>=900px) = grupos con panel flotante. Sin JavaScript. */
.nav { display: flex; align-items: center; gap: 2px; min-width: 0; margin-left: auto; }
.nav summary, .nav .m-l {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: var(--r1);
  color: rgba(238, 242, 255, .88); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap;
  cursor: pointer; list-style: none; transition: background-color .2s, color .2s;
}
.nav summary::-webkit-details-marker { display: none; }
.nav summary:hover, .nav .m-l:hover, .nav details[open] > summary { background: rgba(255, 255, 255, .07); color: #fff; }
.nav [aria-current] > summary, .nav summary[aria-current], .nav .m-l[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--oro-b); }
.nav summary:focus-visible, .nav .m-l:focus-visible, .nav .m-panel a:focus-visible { outline: 2px solid var(--oro-b); outline-offset: -2px; }
.nav .m-mov > summary::after { content: ""; width: 7px; height: 7px; margin-left: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav .m-mov[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.m-panel ul { list-style: none; margin: 0; padding: 0; }
.m-panel a { display: block; min-height: 44px; padding: 8px 12px; border-radius: var(--r1); color: var(--texto); text-decoration: none; }
.m-panel a:hover { background: rgba(255, 255, 255, .07); }
.m-n { display: block; font-weight: 600; font-size: 15.5px; }
.m-d { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--suave); }
.nav-esc { display: none; }
.nav-mov .m-panel {
  position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--hd)); height: calc(100dvh - var(--hd)); z-index: 49; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 16px 40px; background: #050b24; border-top: 1px solid var(--linea-2);
}
.nav-mov .m-panel section { padding: 6px 0 10px; border-bottom: 1px solid var(--linea-2); }
.nav-mov .m-t { margin: 8px 12px 4px; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--oro-b); font-weight: 700; }
.nav-mov .m-l { width: 100%; }
a.entrar {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; margin-left: 6px; padding: 0 16px;
  border-radius: var(--r1); background: var(--oro-b); color: #1d1300; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 -3px 0 rgba(150, 90, 0, .35); transition: background-color .2s;
}
a.entrar:hover { background: #ffd06e; color: #1d1300; }
a.entrar:active { transform: translateY(1px); }
a.entrar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 440px) { .marca { display: none; } }
@media (min-width: 900px) {
  .nav-mov { display: none; }
  .nav-esc { display: flex; margin: 0 auto 0 28px; }
  .m-g { position: relative; }
  .m-g > .m-panel {
    position: absolute; top: calc(100% + 6px); left: 0; width: 330px; padding: 8px; z-index: 60;
    background: rgba(5, 11, 36, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--linea); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  }
}

/* ── Columna ── */
.col { max-width: 1240px; margin: 0 auto; padding: 16px 16px 64px; }
h1 { font-size: clamp(28px, 7vw, 44px); line-height: 1.14; letter-spacing: -.025em; margin: 6px 0 12px; font-weight: 700; color: #fff; text-wrap: balance; max-width: 26ch; }
h2 { font-size: clamp(22px, 5vw, 28px); line-height: 1.22; letter-spacing: -.018em; margin: 0 0 14px; color: #fff; font-weight: 700; text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.35; margin: 22px 0 6px; color: #fff; font-weight: 600; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 18px; padding-left: 1.3em; }
li { margin-bottom: 8px; padding-left: 2px; }
li::marker { color: var(--celeste); }
ol > li::marker { font-weight: 600; font-variant-numeric: tabular-nums; }
strong { color: #fff; font-weight: 700; }

.migas { font-size: 14px; color: var(--suave); margin-bottom: 6px; }
.migas ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; }
.migas li { margin: 0; padding: 0; display: inline-flex; align-items: center; }
.migas li + li::before { content: "/"; margin: 0 8px; color: rgba(190, 199, 226, .5); }
.migas a { color: var(--suave); display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.migas a:hover { color: #fff; text-decoration: underline; }
.migas [aria-current] { color: rgba(190, 199, 226, .8); }

.meta { font-size: 15px; color: #d3daf0; margin: 0 0 20px; line-height: 1.55; }
.meta-l { display: block; }
.meta time, .meta strong { color: #fff; font-weight: 600; }
.estado { color: var(--oro); letter-spacing: .02em; }

/* ── La respuesta ── */
div.respuesta {
  position: relative; margin: 0 0 24px; padding: 18px 18px 18px 20px;
  background: linear-gradient(135deg, rgba(11, 42, 107, .72), rgba(12, 26, 69, .6));
  border: 1px solid rgba(127, 182, 255, .22); border-radius: var(--r2);
  box-shadow: inset 3px 0 0 var(--oro), 0 18px 40px -28px rgba(0, 0, 0, .9);
}
.respuesta-etq { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--oro); }
div.respuesta { max-width: 100%; overflow-wrap: anywhere; }
div.respuesta p:last-child { margin: 0; font-size: 17.5px; line-height: 1.58; color: #fff; }
/* Entradilla de los índices */
p.respuesta { font-size: 17.5px; line-height: 1.6; color: var(--suave); max-width: 62ch; margin: 0 0 28px; }

/* ── Qué hacer ahora ── */
article > section.ahora { margin: 0 0 24px; padding: 0; border: 0; }
.ahora h2 { font-size: 20px; margin-bottom: 8px; }
.ahora-enlaces { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; }
.ahora-enlaces li { margin: 0; padding: 0; }
.ahora-enlaces a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px;
  border: 1px solid rgba(255, 176, 46, .35); border-radius: var(--r1); background: rgba(255, 176, 46, .06);
  color: #fff; font-weight: 600; text-decoration: none; line-height: 1.35;
}
.ahora-enlaces a:hover { background: rgba(255, 176, 46, .12); border-color: rgba(255, 176, 46, .6); }

/* ── Índice «En esta página» ── */
.indice-movil { margin: 0 0 28px; border: 1px solid var(--linea); border-radius: var(--r1); background: rgba(255, 255, 255, .03); }
.indice-movil summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px;
  cursor: pointer; font-weight: 600; font-size: 16px; color: #fff; list-style: none; border-radius: var(--r1);
}
.indice-movil summary::-webkit-details-marker { display: none; }
.indice-movil summary::after { content: ""; width: 9px; height: 9px; border: solid var(--celeste); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.indice-movil[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.indice-movil nav { padding: 0 8px 10px; border-top: 1px solid var(--linea-2); }
.indice ol, .indice-movil ol { list-style: none; margin: 0; padding: 0; counter-reset: ind; }
.indice li, .indice-movil li { margin: 0; padding: 0; }
.indice-movil a {
  display: flex; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: 8px;
  color: var(--texto); text-decoration: none; font-size: 15.5px; line-height: 1.35;
}
.indice-movil a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.indice-lat { display: none; }

/* ── Secciones del artículo ── */
/* Texto de las guías */
article p, article li, article dd { font-size: clamp(16px, 1.05vw + 11px, 17.5px); line-height: 1.6; }
article > section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--linea-2); }
article > section > h2 { scroll-margin-top: calc(var(--hd) + 16px); }
.nota {
  margin: 4px 0 18px; padding: 12px 14px 12px 16px; font-size: 15.5px; color: var(--suave);
  background: rgba(127, 182, 255, .06); border-radius: var(--r1); box-shadow: inset 3px 0 0 var(--celeste);
}

/* ── Tablas ── */
.tabla-scroll {
  position: relative; overflow-x: auto; margin: 6px 0 24px; border: 1px solid var(--linea); border-radius: var(--r1);
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: rgba(127, 182, 255, .45) transparent;
  /* Indicio de que hay más a la derecha: brillo en el borde que desaparece al llegar al final. */
  background:
    linear-gradient(to left, var(--tabla) 40%, rgba(8, 18, 47, 0)) right center / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 100% 50%, rgba(127, 182, 255, .38), rgba(127, 182, 255, 0)) right center / 18px 100% no-repeat scroll,
    var(--tabla);
}
.tabla-scroll:focus-visible { outline-offset: 3px; }
.tabla-scroll::-webkit-scrollbar { height: 6px; }
.tabla-scroll::-webkit-scrollbar-thumb { background: rgba(127, 182, 255, .45); border-radius: 6px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--linea-2); min-width: 8em; }
@media (max-width: 559px) { th, td { padding: 10px 11px; } }
thead th {
  background: var(--panel); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.35; padding-top: 11px; padding-bottom: 11px; border-bottom: 1px solid rgba(127, 182, 255, .28); color: #dbe6ff;
}
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) > * { background-color: rgba(255, 255, 255, .025); }
td.num { white-space: nowrap; font-weight: 500; color: #fff; }
/* Primera columna fija y legible */
tbody th[scope="row"] { color: #fff; font-weight: 600; }
table:has(tbody th[scope="row"]) thead th:first-child, tbody th[scope="row"] {
  position: sticky; left: 0; z-index: 1; min-width: 9.5rem; width: 9.5rem;
  box-shadow: inset -1px 0 0 var(--linea);
}
tbody th[scope="row"] { background-color: var(--tabla); }
tbody tr:nth-child(even) th[scope="row"] { background-color: #0c1633; }
table:has(tbody th[scope="row"]) thead th:first-child { z-index: 2; }
.tabla-scroll.ancha table { min-width: 54em; }
/* Tablas de listado (sin cabecera de fila): celdas cortas en una línea, sin partir fechas. */
table:not(:has(tbody th[scope="row"])) td { white-space: nowrap; }
td.fuente { font-size: 14px; color: var(--suave); }
.tabla-scroll a { overflow-wrap: anywhere; }
/* Enlaces de fuente: área táctil ≥ 44 px sin hinchar la fila (padding con margen negativo). */
td a, .migas a { padding: 12px 6px; margin: -12px -6px; }
.migas a { padding: 0 4px; margin: 0 -4px; }
td a { display: inline-block; }
/* Móvil (< 640 px): «Dato / Valor / Fuente» y comparativas «Dato / …» pasan a bloques apilados, sin scroll lateral.
   Las tablas numéricas largas (baremos, dentro de .plegable) conservan scroll y primera columna fija. */
@media (max-width: 639px) {
  .tabla-scroll.t-fuente, .tabla-scroll.apilable:not(.plegable *) { overflow-x: visible; background: var(--tabla); }
  .t-fuente table, .apilable:not(.plegable *) table { min-width: 0 !important; width: 100%; display: block; }
  .t-fuente thead, .apilable:not(.plegable *) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .t-fuente tbody, .apilable:not(.plegable *) tbody { display: block; }
  .t-fuente tbody tr, .apilable:not(.plegable *) tbody tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--linea-2); }
  .t-fuente tbody tr:last-child, .apilable:not(.plegable *) tbody tr:last-child { border-bottom: 0; }
  .t-fuente tbody tr:nth-child(n) > *, .apilable:not(.plegable *) tbody tr:nth-child(n) > * {
    display: block; position: static; width: auto; min-width: 0; max-width: 100%; padding: 0; border: 0; box-shadow: none; background: none !important; white-space: normal;
  }
  .t-fuente tbody tr:nth-child(n) > th[scope="row"] { font-size: 14px; color: var(--suave); font-weight: 600; margin-bottom: 2px; }
  .t-fuente td.num { white-space: normal; }
  .t-fuente td.fuente { margin-top: 4px; font-size: 13px; line-height: 1.4; }
  .apilable:not(.plegable *) tbody tr:nth-child(n) > th[scope="row"] { font-size: 16px; color: #fff; font-weight: 700; margin-bottom: 6px; }
  .apilable:not(.plegable *) tbody td { margin-top: 6px; font-size: 14.5px; }
  .apilable:not(.plegable *) tbody td::before {
    content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--celeste);
  }
}

/* ── Tabla plegable ── */
.plegable { margin: 6px 0 24px; border: 1px solid var(--linea); border-radius: var(--r1); background: rgba(255, 255, 255, .03); }
.plegable > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 16px;
  cursor: pointer; font-weight: 600; font-size: 16px; color: #fff; list-style: none; border-radius: var(--r1);
}
.plegable > summary::-webkit-details-marker { display: none; }
.plegable > summary::after { content: ""; flex: none; width: 9px; height: 9px; border: solid var(--celeste); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.plegable[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.plegable .tabla-scroll { margin: 0; border-width: 1px 0 0; border-radius: 0 0 var(--r1) var(--r1); }

/* ── Glosario ── */
article > section.glosario { padding-top: 26px; }
.glosario h2 { font-size: 20px; }
.glosario dl { margin: 0; }
.glosario dt { font-weight: 700; color: #fff; font-size: 15.5px; }
.glosario dd { margin: 2px 0 14px; color: var(--suave); font-size: 15px; line-height: 1.5; }

/* ── Preguntas frecuentes ── */
article > section.faq { border-top: 0; padding: 26px 18px 10px; background: rgba(255, 255, 255, .028); border: 1px solid var(--linea-2); border-radius: var(--r2); }
.faq-item { border-top: 1px solid var(--linea-2); }
.faq-item:first-of-type { border-top: 0; }
.faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 10px 0; cursor: pointer; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.faq-item p { margin: 0 0 16px; color: var(--suave); }

/* ── Qué puede cambiar ── */
article > section.cambia { border-top: 0; padding: 22px 18px 6px; border-radius: var(--r2); background: rgba(255, 176, 46, .045); border: 1px solid rgba(255, 176, 46, .2); }
.cambia h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.cambia h2::before { content: "!"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--oro); color: var(--oro); font-size: 14px; font-weight: 800; }
.cambia ul { padding-left: 1.2em; }
.cambia li::marker { color: var(--oro); }

/* ── Fuentes ── */
article > section.fuentes { padding-top: 26px; }
.fuentes h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); font-weight: 700; }
.fuentes ol { font-size: 15px; line-height: 1.55; color: var(--suave); padding-left: 1.6em; }
.fuentes li { margin-bottom: 10px; }
.fuentes li::marker { color: var(--suave); font-weight: 500; }

/* ── Botón único ── */
.cta { margin: 40px 0 8px; padding-top: 28px; border-top: 1px solid var(--linea-2); }
.boton {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; width: 100%; max-width: 460px;
  min-height: 56px; padding: 12px 24px; border-radius: var(--r2);
  background: var(--oro-b); color: #1d1300; font-weight: 700; font-size: 17px; line-height: 1.25; text-decoration: none; letter-spacing: -.01em;
  box-shadow: inset 0 -4px 0 rgba(150, 90, 0, .35), 0 14px 34px -16px rgba(255, 176, 46, .6);
  transition: background-color .2s, transform .15s, box-shadow .2s;
}
.boton:hover { background: #ffd06e; color: #1d1300; text-decoration: none; }
.boton:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(150, 90, 0, .35), 0 8px 20px -12px rgba(255, 176, 46, .6); }
.boton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: var(--r2); }

/* ── Relacionadas ── */
.relacionadas { margin-top: 48px; }
.relacionadas h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); }
.relacionadas ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.relacionadas li { margin: 0; padding: 0; }
.relacionadas a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--linea); border-radius: var(--r1); background: rgba(255, 255, 255, .03);
  color: var(--texto); text-decoration: none; font-weight: 500; line-height: 1.35;
  transition: border-color .2s, background-color .2s;
}
.relacionadas a:hover { border-color: rgba(127, 182, 255, .45); background: rgba(127, 182, 255, .06); color: #fff; }

/* ── Índices: tarjetas ── */
.col > section { margin-top: 40px; }
.col > section > h2 a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.col > section > h2 a:hover { color: var(--celeste); }
.lista-paginas { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.lista-paginas li { margin: 0; padding: 0; }
.tarjeta {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 18px 16px;
  border: 1px solid var(--linea); border-radius: var(--r2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02));
  color: var(--texto); text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s;
}
.t-tit { font-weight: 700; font-size: 17.5px; line-height: 1.3; color: #fff; }
.t-etq { align-self: flex-start; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--celeste); background: rgba(127, 182, 255, .12); border: 1px solid rgba(127, 182, 255, .25); }
.t-etq.t-conv { color: var(--oro-b); background: rgba(255, 176, 46, .1); border-color: rgba(255, 176, 46, .3); }
.tarjeta .desc { color: var(--suave); font-size: 15px; line-height: 1.5; }
.tarjeta .fecha { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: rgba(190, 199, 226, .85); }
.tarjeta:hover { border-color: rgba(127, 182, 255, .5); background: rgba(127, 182, 255, .07); color: var(--texto); }
.tarjeta:hover .t-tit { color: var(--celeste); }
.tarjeta:focus-visible { border-radius: var(--r2); }

/* ── Páginas de cuerpo (/bomberos, /mossos…): color propio en --acento / --acento-rgb, puesto por estiloDeCuerpo ── */
.cuerpo { --acento: #7fb6ff; --acento-rgb: 127 182 255; }
.cc { position: relative; isolation: isolate; border-bottom: 1px solid rgb(var(--acento-rgb) / .22); }
.cc-in { padding-top: 8px; padding-bottom: 44px; }
.cuerpo .cc-h1 { max-width: none; margin: 18px 0 18px; }
.cc-etq {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acento);
}
.cc-etq::before { content: ""; flex: none; width: 32px; height: 3px; border-radius: 2px; background: var(--acento); }
.cc-grande {
  display: block; max-width: 15ch;
  font-size: clamp(38px, 10.4vw, 92px); line-height: .98; letter-spacing: -.035em; font-weight: 700;
  text-transform: uppercase; text-wrap: balance; color: #fff;
}
.cc-linea { display: block; }
.cc-acento { color: var(--acento); }
.cc-sub { max-width: 48ch; margin: 0 0 26px; font-size: 18px; line-height: 1.55; color: #dde4f7; }
.cc-boton { width: auto; min-width: 240px; }

.cc-cuerpo { padding-top: 8px; }
.cc-cuerpo > section.cc-bloque { margin-top: 44px; }
.cc-h2 { display: flex; align-items: center; gap: 12px; }
.cc-h2::before { content: ""; flex: none; width: 4px; align-self: stretch; min-height: 1.1em; border-radius: 2px; background: var(--acento); }

/* Cifras */
.cifras { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cifras li { margin: 0; padding: 0; }
.cf {
  display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 44px; padding: 16px 14px 14px;
  border: 1px solid var(--linea); border-top: 2px solid rgb(var(--acento-rgb) / .7); border-radius: var(--r1);
  background: rgba(255, 255, 255, .03); color: var(--texto); text-decoration: none;
}
a.cf { transition: border-color .2s, background-color .2s; }
a.cf:hover { background: rgb(var(--acento-rgb) / .07); border-color: rgb(var(--acento-rgb) / .45); color: var(--texto); }
.cf-valor { font-size: clamp(30px, 9vw, 46px); line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--acento); font-variant-numeric: tabular-nums; }
.cf-texto { font-size: 14.5px; line-height: 1.4; color: var(--suave); }
.cf-ver { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: #fff; }
.cf-nota { margin: 12px 0 0; font-size: 14px; color: var(--suave); max-width: 70ch; }

/* ¿Te suena? */
.te-suena { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ts { margin: 0; padding: 16px 16px 14px 18px; border-radius: var(--r1); background: rgba(255, 255, 255, .03); box-shadow: inset 3px 0 0 var(--acento); }
.ts-p { margin: 0 0 6px; font-weight: 700; font-size: 17px; line-height: 1.4; color: #fff; }
.ts-p::before { content: "«"; color: var(--acento); }
.ts-p::after { content: "»"; color: var(--acento); }
.ts-s { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--suave); }
.ts-s a { display: inline-block; min-height: 24px; }

/* Lo que nos diferencia */
.diferencias { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.df { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 0; }
.df-marca { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; color: var(--acento); background: rgb(var(--acento-rgb) / .12); border: 1px solid rgb(var(--acento-rgb) / .35); }
.df h3, .df h4 { margin: 4px 0 2px; font-size: 17.5px; }
.df p { margin: 0; font-size: 15.5px; color: var(--suave); }

/* Etiquetas de las tarjetas con el color del cuerpo (las de convocatoria siguen doradas) */
.cuerpo .t-etq:not(.t-conv) { color: var(--acento); background: rgb(var(--acento-rgb) / .1); border-color: rgb(var(--acento-rgb) / .3); }
.cuerpo .tarjeta:hover { border-color: rgb(var(--acento-rgb) / .5); background: rgb(var(--acento-rgb) / .06); }
.cuerpo .tarjeta:hover .t-tit { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .cc-in > * { animation: cc-sube .6s cubic-bezier(.2, .7, .2, 1) both; }
  .cc-in > :nth-child(2) { animation-delay: .06s; }
  .cc-in > :nth-child(3) { animation-delay: .14s; }
  .cc-in > :nth-child(4) { animation-delay: .2s; }
  @keyframes cc-sube { from { opacity: 0; transform: translateY(12px); } }
}
@media (min-width: 640px) {
  .te-suena { grid-template-columns: repeat(2, 1fr); }
  .diferencias { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .df { flex-direction: column; gap: 10px; }
}
@media (min-width: 760px) {
  .cc-in { padding-top: 16px; padding-bottom: 64px; }
  .cuerpo .cc-h1 { margin: 36px 0 22px; }
  .cc-sub { font-size: 20px; }
  .cifras { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
  .cf { padding: 20px 18px 16px; }
  .cf-texto { font-size: 15px; }
}
@media (min-width: 1080px) {
  .cc-in { padding-top: 24px; padding-bottom: 88px; }
  .cc-sub { max-width: 52ch; }
  .te-suena { grid-template-columns: repeat(3, 1fr); }
}

/* ── 404 ── */
main.sola { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.enlaces-404 { list-style: none; padding: 0; margin: 8px 0 0; }
.enlaces-404 a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Pie ── */
.pie { border-top: 1px solid var(--linea-2); background: #030818; color: var(--suave); font-size: 14.5px; }
.pie .col { padding-top: 32px; padding-bottom: 40px; }
.pie .col > p:first-child { color: var(--texto); font-size: 16px; font-weight: 500; max-width: 60ch; }
.pie .pie-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin: 10px 0 16px; }
.pie .pie-t { margin: 0 0 2px; color: #fff; font-weight: 600; font-size: 15px; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--suave); text-decoration: none; }
.pie li a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 760px) { .pie .pie-cols { grid-template-columns: repeat(4, 1fr); } }
.pie .aviso { margin-bottom: 6px; font-size: 13.5px; color: rgba(190, 199, 226, .85); }

/* ── Tableta ── */
@media (min-width: 640px) {
  .lista-paginas { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .relacionadas ul { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  div.respuesta { padding: 22px 26px 22px 28px; }
  article > section.faq, article > section.cambia { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 760px) {
  :root { --hd: 72px; }
  body { font-size: 18px; }
  .hd-in { padding: 0 32px; }
  .brand img { width: 42px; height: 42px; }
  .nav summary, .nav .m-l { font-size: 16px; padding: 0 16px; }
  .col { padding: 28px 32px 88px; }
  table { font-size: 15.5px; }
  thead th:first-child, tbody th[scope="row"] { width: auto; }
  div.respuesta p:last-child { font-size: 20px; }
  p.respuesta { font-size: 18.5px; }
}

/* ── Escritorio: texto a la izquierda, índice pegajoso a la derecha ── */
@media (min-width: 1080px) {
  .col:has(> article) { max-width: calc(780px + var(--lat) + 64px + 64px); }
  article { position: relative; padding-right: calc(var(--lat) + 64px); }
  .relacionadas { margin-right: calc(var(--lat) + 64px); }
  .indice-movil { display: none; }
  .indice-lat { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: var(--lat); }
  .indice { position: sticky; top: calc(var(--hd) + 28px); max-height: calc(100vh - var(--hd) - 56px); overflow-y: auto; padding-left: 18px; border-left: 1px solid var(--linea); }
  .indice-tit { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--suave); }
  .indice a { display: block; padding: 7px 0; font-size: 14.5px; line-height: 1.4; color: var(--suave); text-decoration: none; }
  .indice a:hover { color: #fff; }
  article p, article ul, article ol, article h3 { max-width: 100%; }
  .indice ol, .fuentes ol { max-width: none; }
  .col > section > h2, .col > h1 { max-width: 30ch; }
}
@media (min-width: 1240px) {
  :root { --lat: 268px; }
}

@media (hover: hover) {
  .tarjeta:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .tarjeta:hover, .boton:active { transform: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .hd, .pie, .indice-lat, .indice-movil, .cta, .relacionadas { display: none; }
}

/* ── Calculadoras de nota ── */
.calc-campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 14px; }
.calc-campo label, .arriesgar label { display: block; margin-bottom: 4px; font-size: 14.5px; font-weight: 600; color: var(--suave); }
.calc-campo input, .arriesgar select {
  width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--linea); border-radius: var(--r1);
  background: var(--tabla); color: #fff; font: inherit; font-size: 18px; font-variant-numeric: tabular-nums;
}
.arriesgar select { max-width: 280px; }
.calc-campo input:focus-visible, .arriesgar select:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; }
.calc-boton {
  min-height: 48px; padding: 10px 22px; border: 0; border-radius: var(--r2); cursor: pointer;
  background: var(--oro-b); color: #1d1300; font: inherit; font-weight: 700; font-size: 17px;
  box-shadow: inset 0 -4px 0 rgba(150, 90, 0, .35);
}
.calc-boton:hover { background: #ffd06e; }
.calc-boton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.calc-error { margin: 10px 0 0; color: #ffb4a8; font-weight: 600; }
.calc-error:empty { display: none; }
.papeleta, .arriesgar { margin-top: 22px; padding: 14px 16px; border: 1px solid var(--linea); border-radius: var(--r1); background: rgba(255, 255, 255, .03); }
.papeleta h3, .arriesgar h3 { margin: 0 0 8px; font-size: 18px; }
.papeleta dl { margin: 0; }
.pap-fila { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--linea-2); }
.pap-fila:first-child { border-top: 0; }
.pap-fila dt { color: var(--suave); }
.pap-fila dd { margin: 0; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; text-align: right; }
.pap-nota dd { color: var(--oro-b); font-size: 1.15em; }
.pap-veredicto { margin: 10px 0 0; font-weight: 600; }
.pap-veredicto:empty, .arriesgar-res:empty { display: none; }
.arriesgar-res { margin: 12px 0 0; font-weight: 600; }
.calc-pie { margin: 10px 0 0; font-size: 14.5px; color: var(--suave); }
.formula-txt { padding: 10px 14px; border-radius: var(--r1); background: rgba(255, 176, 46, .08); color: #fff; font-weight: 600; }
@media (max-width: 380px) { .calc-campos { grid-template-columns: 1fr; } }

/* ── Calendarios (/calendario…) y hitos en la ficha del cuerpo ── */
.cal-etq {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 3px 10px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3;
  color: var(--c-tipo); background: color-mix(in srgb, var(--c-tipo) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c-tipo) 45%, transparent);
}
.cal-etq::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-tipo); }
.cal-tipo-oficial { --c-tipo: #7ee2a8; }
.cal-tipo-prevision { --c-tipo: #ffc04a; }
.cal-tipo-cido { --c-tipo: #ffc04a; }
.cal-tipo-estimacion { --c-tipo: #c3b2ff; }
.cal-tipo-sin-fecha { --c-tipo: #bec7e2; }
.cal-tipo-sin-fecha .cal-etq::before { background: transparent; border: 2px solid var(--c-tipo); }
.cal-tipo-prevision .cal-etq::before { border-radius: 2px; }
.cal-tipo-estimacion .cal-etq::before { border-radius: 2px; transform: rotate(45deg); }

.cal-leyenda { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.cal-leyenda li { margin: 0; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 1px solid var(--linea); border-radius: var(--r1); background: rgba(255, 255, 255, .03); }
.cal-signif { font-size: 15px; line-height: 1.45; color: var(--suave); }
.pag-cal > section, .col > section { margin-top: 28px; }

.cal-linea { list-style: none; padding: 0 0 0 26px; margin: 0; display: grid; gap: 14px; position: relative; }
.cal-linea::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--linea); }
.cal-fase {
  position: relative; margin: 0; padding: 14px 16px 12px; min-width: 0;
  border: 1px solid var(--linea); border-left: 4px solid var(--c-tipo); border-radius: var(--r1); background: rgba(255, 255, 255, .03);
}
.cal-fase::before { content: ""; position: absolute; left: -26px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--noche); border: 3px solid var(--c-tipo); }
.cal-tipo-sin-fecha.cal-fase { border-style: dashed; border-left-style: dashed; }
.cal-estado-curso { background: rgba(255, 176, 46, .08); box-shadow: 0 0 0 1px rgba(255, 176, 46, .5); }
.cal-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.cal-estado { font-size: 13px; font-weight: 700; color: #fff; padding: 2px 9px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.cal-estado-curso .cal-estado { background: var(--oro-b); color: #1d1300; }
.cal-nombre { margin: 0 0 4px; font-size: 17.5px; line-height: 1.3; }
.cal-fecha { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cal-quedan { margin: 0 0 6px; font-weight: 700; color: var(--oro-b); }
.cal-dato, .cal-nota { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--suave); }
.cal-fuente { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--linea-2); font-size: 14px; color: var(--suave); overflow-wrap: anywhere; }
.cal-fuente a { display: inline-block; min-height: 24px; }

@media (min-width: 900px) {
  .cal-leyenda { grid-template-columns: repeat(2, 1fr); }
  .cal-linea { grid-template-columns: 1fr 1fr; padding-left: 0; gap: 16px; }
  .cal-linea::before, .cal-fase::before { display: none; }
}

.hitos { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.hito { margin: 0; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; border: 1px solid var(--linea); border-top: 3px solid var(--c-tipo); border-radius: var(--r1); background: rgba(255, 255, 255, .03); }
.hito-nombre { font-weight: 700; font-size: 15.5px; line-height: 1.3; color: #fff; }
.hito-fecha { font-size: 14.5px; line-height: 1.4; color: var(--suave); }
.hitos-pie { margin: 0; font-size: 15px; color: var(--suave); }
.hitos-pie a { display: inline-block; min-height: 24px; font-weight: 600; }

/* ══ Diseño visual por oposición (muestra Bombers): guías, página de oposición, noticias y /oposiciones ══ */
.guia, .noticia, .tn, .to, .grupo-noticias { --acento: #7fb6ff; --acento-rgb: 127 182 255; }
.ico { width: 22px; height: 22px; }
.enlace-texto { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15.5px; }
.cc-fila-tit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 18px; margin-bottom: 12px; }
.cc-fila-tit .cc-h2 { margin: 0; }
.cc-intro { margin: -4px 0 16px; font-size: 16px; color: var(--suave); }
.cc-vacio { margin: 0; padding: 14px 16px; border: 1px dashed var(--linea); border-radius: var(--r1); color: var(--suave); font-size: 15.5px; }

/* Cifras grandes (destacados de la guía y datos de la convocatoria) */
.destacados { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dst { margin: 0; padding: 14px 14px 13px; min-width: 0; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--linea); border-top: 3px solid var(--acento); border-radius: var(--r1); background: rgba(255, 255, 255, .035); }
.dst-valor { font-size: clamp(32px, 9vw, 46px); line-height: 1; font-weight: 700; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.dst-largo .dst-valor { font-size: clamp(22px, 5.6vw, 30px); line-height: 1.15; padding-top: 4px; }
.dst-etq { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--acento); }
.dst-nota { font-size: 13.5px; line-height: 1.4; color: var(--suave); }
@media (min-width: 760px) { .destacados { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; } .dst { padding: 18px 16px 16px; } }

/* ── Guía ── */
.g-cab { margin: 4px 0 22px; }
.g-etq { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--acento); }
.g-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--acento); background: rgb(var(--acento-rgb) / .12); border: 1px solid rgb(var(--acento-rgb) / .35); }
.guia h1, .noticia h1 { font-size: clamp(30px, 7.6vw, 52px); line-height: 1.08; letter-spacing: -.03em; max-width: 22ch; margin: 0 0 12px; }
.guia .meta { font-size: 14.5px; color: var(--suave); margin: 0; }
.guia .meta-l { display: inline; }
.guia .meta-l + .meta-l::before { content: " · "; color: rgba(190, 199, 226, .5); }
.guia div.respuesta, .noticia div.respuesta { padding: 16px 18px; margin-bottom: 18px; box-shadow: inset 3px 0 0 var(--oro); }
.guia div.respuesta p:last-child, .noticia div.respuesta p:last-child { font-size: 17px; line-height: 1.55; }
article > section.ahora { padding: 18px; border: 1px solid rgba(255, 176, 46, .3); border-radius: var(--r2); background: rgba(255, 176, 46, .05); }
.ahora h2 { font-size: 19px; margin-bottom: 6px; }
.ahora p { font-size: 16px; color: #dde4f7; }
.ahora-enlaces { display: flex; flex-wrap: wrap; gap: 8px; }
.ahora-enlaces a { display: inline-flex; min-height: 44px; padding: 10px 16px; }

/* Secciones como tarjetas */
article > .sec { margin-top: 18px; padding: 20px 18px 6px; border: 1px solid var(--linea-2); border-radius: var(--r2); background: rgba(255, 255, 255, .025); }
article > .sec h2, .sec-plegada > summary h2 { font-size: clamp(20px, 4.6vw, 24px); padding-left: 14px; box-shadow: inset 3px 0 0 var(--acento); }
.sec > p:last-child, .sec-in > p:last-child { margin-bottom: 14px; }
.sec-plegada { padding-bottom: 0 !important; }
.sec-plegada > summary, details.glosario > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; cursor: pointer; list-style: none; }
.sec-plegada > summary { margin: -6px 0 14px; }
.sec-plegada > summary h2 { margin: 0; }
.sec-plegada:not([open]) > summary { margin-bottom: 14px; }
.sec-plegada > summary::-webkit-details-marker, details.glosario > summary::-webkit-details-marker { display: none; }
/* Indicador «+ / −» de los desplegables (sin flechas) */
.sec-plegada > summary::after, .faq-item > summary::after, details.glosario > summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--linea); color: var(--acento, var(--celeste)); font-size: 20px; font-weight: 500; line-height: 1;
}
.sec-plegada[open] > summary::after, .faq-item[open] > summary::after, details.glosario[open] > summary::after { content: "−"; }

/* Lista de comprobación (preguntas de sí/no) */
ul.comprobar { list-style: none; padding: 0; display: grid; gap: 8px; }
ul.comprobar li { position: relative; margin: 0; padding: 11px 14px 11px 48px; border: 1px solid var(--linea-2); border-radius: var(--r1); background: rgba(255, 255, 255, .025); line-height: 1.5; }
ul.comprobar li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border: 2px solid var(--acento); border-radius: 6px; }

/* Pasos numerados grandes */
ol.pasos { list-style: none; padding: 0; counter-reset: paso; }
ol.pasos > li { position: relative; counter-increment: paso; margin: 0; padding: 6px 0 16px 56px; min-height: 52px; }
ol.pasos > li::before {
  content: counter(paso); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--acento); background: rgb(var(--acento-rgb) / .14); color: #fff; font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums;
}
ol.pasos > li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: rgb(var(--acento-rgb) / .3); }

/* Final discreto: fuentes y glosario */
article > section.faq { margin-top: 18px; }
article > section.fuentes { margin-top: 28px; padding-top: 20px; }
.fuentes ol { font-size: 14px; }
article > details.glosario { margin-top: 12px; border-top: 1px solid var(--linea-2); padding-top: 8px; }
details.glosario > summary h2 { margin: 0; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); }
details.glosario dl { margin: 8px 0 0; }

/* ── Página de la oposición ── */
.rejilla-guias, .herramientas, .rejilla-noticias, .selector-oposiciones { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rejilla-guias li, .herramientas li, .rejilla-noticias li, .selector-oposiciones li { margin: 0; padding: 0; min-width: 0; }
.tg {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; height: 100%; padding: 14px 16px;
  border: 1px solid var(--linea); border-radius: var(--r2); background: rgba(255, 255, 255, .03); color: var(--texto); text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.tg-ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--acento); background: rgb(var(--acento-rgb) / .12); border: 1px solid rgb(var(--acento-rgb) / .3); }
.tg-tit { font-weight: 700; font-size: 17px; line-height: 1.3; color: #fff; }
.tg-desc { font-size: 14px; line-height: 1.45; color: var(--suave); }
.tg:hover { border-color: rgb(var(--acento-rgb) / .5); background: rgb(var(--acento-rgb) / .06); color: var(--texto); }
.th {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 20px;
  border: 1px solid rgb(var(--acento-rgb) / .35); border-radius: var(--r2); color: var(--texto); text-decoration: none;
  background: linear-gradient(160deg, rgb(var(--acento-rgb) / .13), rgba(255, 255, 255, .02) 65%);
  transition: border-color .2s;
}
.th-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--acento); background: rgb(var(--acento-rgb) / .14); }
.th-ico .ico { width: 28px; height: 28px; }
.th-tit { font-weight: 700; font-size: 21px; line-height: 1.25; color: #fff; }
.th-desc { font-size: 15px; line-height: 1.5; color: var(--suave); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-accion { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--r1); border: 1px solid rgba(255, 255, 255, .3); font-weight: 700; color: #fff; }
.th:hover { border-color: rgb(var(--acento-rgb) / .7); color: var(--texto); }
.th:hover .th-accion { background: rgba(255, 255, 255, .08); }
.cc-conv .destacados { margin-bottom: 8px; }
.hitos-pie { margin-top: 4px; }

/* Cabecera del cuerpo: texto y, al lado en ordenador, el cartel con los datos de la convocatoria */
.cc-dos { display: grid; gap: 22px; }
.cc-cartel .cc-conv { margin: 0; padding: 18px 16px 14px; border: 1px solid rgb(var(--acento-rgb) / .35); border-radius: var(--r2); background: rgba(5, 11, 36, .55); }
.cc-cartel .cc-fila-tit { margin-bottom: 12px; }
.cc-cartel .cc-h2 { font-size: 20px; }
.cc-cartel .cf-nota { margin-top: 4px; }

/* Cierre: «¿Te suena?» y «Lo que nos diferencia» en un solo bloque compacto */
.cc-cuerpo > section.cc-bloque.cc-cierre { margin-top: 48px; padding: 20px 16px 8px; border: 1px solid var(--linea-2); border-radius: var(--r2); background: rgba(255, 255, 255, .02); }
.cc-cierre > .cc-h2 { font-size: 22px; margin-bottom: 14px; }
.cc-cierre-in { display: grid; gap: 22px; }
.cc-h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--acento); }
.cc-cierre .te-suena, .cc-cierre .diferencias { gap: 8px; }
.cc-cierre .ts { padding: 11px 14px 11px 16px; }
.cc-cierre .ts-p { font-size: 15.5px; margin-bottom: 4px; }
.cc-cierre .ts-s { font-size: 14.5px; }
.cc-cierre .df h4 { font-size: 16px; margin: 2px 0 1px; }
.cc-cierre .df p { font-size: 14.5px; }
@media (max-width: 759px) { .cifras li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Fichas (rejilla de tarjetas con un dato grande) */
.fichas { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fx { margin: 0; padding: 14px 16px 14px; min-width: 0; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--linea); border-top: 3px solid var(--acento); border-radius: var(--r1); background: rgba(255, 255, 255, .035); }
.fx-tit { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--acento); }
.fx-dato { margin: 0; font-size: clamp(26px, 7vw, 34px); line-height: 1.1; overflow-wrap: anywhere; font-weight: 700; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.fx-texto { margin: 0; font-size: 15px; line-height: 1.5; color: var(--suave); }

/* ── Noticias ── */
.rejilla-noticias { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.col > section.grupo-noticias .rejilla-noticias { grid-template-columns: minmax(0, 1fr); }
.tn {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px 18px;
  border: 1px solid var(--linea); border-left: 3px solid var(--acento); border-radius: var(--r1); background: rgba(255, 255, 255, .03);
  color: var(--texto); text-decoration: none; transition: background-color .2s, border-color .2s;
}
.tn:hover { background: rgb(var(--acento-rgb) / .06); color: var(--texto); }
.tn-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.tn-etq { padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--acento); background: rgb(var(--acento-rgb) / .12); border: 1px solid rgb(var(--acento-rgb) / .35); }
.tn-fecha { font-size: 13.5px; color: var(--suave); }
.tn-tit { font-weight: 700; font-size: 17px; line-height: 1.35; color: #fff; }
.col > section.grupo-noticias { margin-top: 36px; }
.noticia .g-cab .tn-fila { margin-bottom: 14px; }
.noticia .estado { font-size: 14px; }
.ficha { margin: 0 0 12px; }
.ficha-fila { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--linea-2); }
.ficha-fila:first-child { border-top: 0; }
.ficha dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--acento); }
.ficha dd { margin: 0; color: #fff; font-size: 16px; line-height: 1.5; }

/* ── /oposiciones: selector ── */
.selector-oposiciones { gap: 12px; }
.to {
  position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; min-height: 176px; padding: 22px 20px 20px;
  border: 1px solid rgb(var(--acento-rgb) / .35); border-top: 4px solid var(--acento); border-radius: 18px; color: #fff; text-decoration: none;
  background: radial-gradient(120% 90% at 100% 0%, rgb(var(--acento-rgb) / .2), rgb(var(--acento-rgb) / 0) 62%), rgba(255, 255, 255, .03);
  transition: border-color .2s, background-color .2s;
}
.to-nombre { font-size: clamp(24px, 6vw, 30px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.to-datos { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--suave); }
.to-valor { font-size: 26px; font-weight: 700; color: var(--acento); font-variant-numeric: tabular-nums; }
.to-accion { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--r1); border: 1px solid rgba(255, 255, 255, .3); font-weight: 700; font-size: 16px; }
a.to:hover { border-color: var(--acento); color: #fff; }
a.to:hover .to-accion { background: rgba(255, 255, 255, .08); }
.otros-enlaces { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 24px 0 0; }
.otros-enlaces a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

@media (min-width: 640px) {
  .col > section.grupo-noticias .rejilla-noticias { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fichas { gap: 12px; }
  .cc-cuerpo > section.cc-bloque.cc-cierre { padding: 24px 24px 12px; }
  .rejilla-guias, .herramientas, .selector-oposiciones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tg { align-items: start; }
  .ficha-fila { grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; }
  .ficha dt { padding-top: 3px; }
  article > .sec { padding: 24px 24px 8px; }
  .to { min-height: 210px; padding: 26px 24px 22px; }
}
@media (min-width: 760px) {
  .guia div.respuesta p:last-child, .noticia div.respuesta p:last-child { font-size: 18px; }
}
@media (min-width: 760px) {
  .fichas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cc-dos-cartel { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .cc-cartel .cc-conv { padding: 24px 22px 18px; }
  .cc-cartel .destacados { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-cierre-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .cc-cierre .te-suena, .cc-cierre .diferencias { grid-template-columns: minmax(0, 1fr); }
  .cc-cierre .df { flex-direction: row; gap: 14px; }
  .col > section.grupo-noticias .rejilla-noticias { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .rejilla-guias { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .col.noticia:has(> article) { max-width: 900px; }
  .noticia article { padding-right: 0; }
}
