/* Neoversus · hoja de estilos del sistema de diseño (maquetas).
   Todo sale de tokens.css. Sin valores sueltos en las páginas: solo clases.
   Orden: base · texto · controles · listados · cabeceras y navegación · móvil (barra y hoja) ·
   artículo · fichas de datos · galería · publicación externa · verificación · pie · escritorio ·
   movimiento. */

/* ============ 1. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font: 400 var(--t-base) / var(--lh-normal) var(--fuente-body);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
ul, ol, dl, dd, figure, p, h1, h2, h3, h4 { margin: 0; padding: 0; }
ul, ol { list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: var(--accent-soft); color: var(--ink); }
[inert] { pointer-events: none; }
.oculto-visual { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: -200vw; top: var(--sp-3); z-index: 50; padding: var(--sp-2) var(--sp-4); background: var(--surface-100); color: var(--accent-text); font-weight: 600; border-radius: var(--radius-sm); }
.saltar:focus { left: var(--sp-3); }
.icono { display: inline-block; vertical-align: middle; width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icono--sm { width: 20px; height: 20px; }
.icono--xs { width: 16px; height: 16px; }
.icono--marca { fill: currentColor; stroke: none; }
.num { font-variant-numeric: tabular-nums; }

/* ============ 2. Texto ============ */
.titular { font-family: var(--fuente-display); font-weight: 700; letter-spacing: var(--tracking-display); line-height: var(--lh-tight); text-wrap: balance; }
.titular--xs { font-size: var(--t-base); line-height: var(--lh-snug); font-weight: 600; }
.titular--sm { font-size: var(--t-md); line-height: var(--lh-snug); }
.titular--md { font-size: var(--t-lg); line-height: var(--lh-snug); }
.titular--lg { font-size: var(--t-xl); }
.titular--xl { font-size: var(--t-2xl); }
.titular--2xl { font-size: var(--t-3xl); }
.titular--3xl { font-size: var(--t-4xl); }
.etiqueta { font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-muted); line-height: 1.2; }
.etiqueta--acento { color: var(--accent-text); display: inline-flex; align-items: center; gap: var(--sp-2); }
.etiqueta--acento::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-accent); flex: none; }
.meta { font-size: var(--t-sm); color: var(--ink-muted); line-height: var(--lh-snug); }
.meta b { color: var(--ink); font-weight: 600; }
.texto-acento { color: var(--accent-text); }
.enlace { position: relative; color: var(--accent-text); font-weight: 600; }
.enlace::after { content: ""; position: absolute; inset: -13px -4px; } /* objetivo táctil de 44 px sin alterar la maqueta */
.enlace--flecha::after, .verificacion__fila .enlace::after { inset: -6px -4px; }
a.etiqueta { position: relative; display: inline-block; }
a.etiqueta::after { content: ""; position: absolute; inset: -15px -4px; }
.enlace:hover { text-decoration: underline; text-underline-offset: 3px; }
.enlace--flecha { display: inline-flex; align-items: center; gap: var(--sp-1); }
.enlace--flecha .icono { transition: transform var(--dur-fast) var(--ease); }
.enlace--flecha:hover .icono { transform: translateX(2px); }
.pildora { display: inline-block; font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; line-height: 1; padding: 5px 8px; border-radius: var(--radius-sm); background: var(--accent-text); color: var(--on-accent); }
.tag { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1; padding: 5px 8px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-soft-ink); }

/* ============ 3. Controles ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--tactil); padding: 0 var(--sp-4); border-radius: var(--radius-sm); font-size: var(--t-sm); font-weight: 600; line-height: 1; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.btn:active { transform: scale(.98); }
.btn--primario { background: var(--ink); color: var(--surface-100); }
.btn--primario:hover { background: var(--ink-soft); }
.btn--secundario { border: 1px solid var(--line-dashed); color: var(--ink); background: var(--surface-100); }
.btn--secundario:hover { background: var(--surface-000); }
.btn--acento { background: var(--accent-text); color: var(--on-accent); }
.btn--acento:hover { filter: brightness(1.08); }
.btn--ancho { width: 100%; }
.btn--texto { color: var(--accent-text); padding: 0 var(--sp-2); }
.btn--texto:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-icono { display: inline-flex; align-items: center; justify-content: center; width: var(--tactil); height: var(--tactil); border-radius: 50%; color: var(--ink); transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.btn-icono:hover { background: var(--surface-000); }
.btn-icono:active { transform: scale(.94); }
.btn-icono--foto { background: var(--velo-45); color: var(--ink-on-photo); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-icono--foto:hover { background: var(--velo-90); }
.campo { display: flex; flex-direction: column; gap: var(--sp-2); }
.campo input { height: var(--tactil); padding: 0 var(--sp-3); border: 1px solid var(--line-dashed); border-radius: var(--radius-sm); background: var(--surface-100); color: var(--ink); font-size: var(--t-base); transition: border-color var(--dur-fast) var(--ease); }
.campo input:focus { border-color: var(--accent-text); outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.campo input::placeholder, .campo textarea::placeholder { color: var(--ink-muted); }
.campo select, .campo textarea { padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line-dashed); border-radius: var(--radius-sm); background: var(--surface-100); color: var(--ink); font: inherit; font-size: var(--t-base); transition: border-color var(--dur-fast) var(--ease); }
.campo select { height: var(--tactil); padding-top: 0; padding-bottom: 0; }
.campo textarea { min-height: 120px; resize: vertical; line-height: var(--lh-normal); }
.campo select:focus, .campo textarea:focus { border-color: var(--accent-text); outline: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.buscador { display: flex; align-items: center; gap: var(--sp-2); height: var(--tactil); padding: 0 var(--sp-3); border: 1px solid var(--line-dashed); border-radius: var(--radius-sm); color: var(--ink-muted); }
.buscador input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: var(--t-md); }
.buscador input:focus { outline: none; }
.buscador:focus-within { border-color: var(--accent-text); color: var(--ink); }
.caja-check { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--t-xs); color: var(--ink-muted); min-height: var(--tactil); cursor: pointer; }
.caja-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent-text); }

/* Chips (secciones) */
/* Los chips se quedan fijos arriba y la cabecera se va con el desplazamiento: el menú vive en la barra inferior */
.chips--fija { position: sticky; top: 0; z-index: 20; background: var(--surface-100); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: var(--sp-2); overflow-x: auto; padding: var(--sp-3) var(--sp-4); scroll-padding-inline: var(--sp-4) 40px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chips::after { content: ""; flex: 0 0 var(--sp-4); }
.chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: var(--sp-1); height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface-100); color: var(--ink); font-size: var(--t-sm); font-weight: 600; white-space: nowrap; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.chip::after { content: ""; position: absolute; inset: -4px; }
.chip:hover { background: var(--surface-000); }
.chip[aria-current], .chip--on { background: var(--ink); color: var(--surface-100); border-color: var(--ink); }
.chip--acento::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-accent); }
.chip--peq { height: 32px; padding: 0 12px; font-size: var(--t-xs); }
.chip--peq::after { inset: -6px -2px; }

/* Pestañas subrayadas (escritorio): el subrayado se desliza entre pestañas (.pestanas__ind, lo pone el JS); sin JS cada pestaña lleva el suyo */
.pestanas { position: relative; display: flex; gap: var(--sp-4); }
.pestana { position: relative; display: inline-flex; align-items: flex-end; padding: 0 0 var(--sp-2); font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-muted); min-height: var(--tactil); transition: color var(--dur-fast) var(--ease); }
.pestana::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brand-accent); transform: scaleX(0); transition: transform var(--dur) var(--ease); }
.pestana:hover { color: var(--ink); }
.pestana[aria-selected="true"], .pestana[aria-current] { color: var(--ink); }
.pestana[aria-selected="true"]::after, .pestana[aria-current]::after { transform: scaleX(1); }
.pestanas--js .pestana::after { display: none; }
.pestanas__ind { position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--brand-accent); transition: transform var(--dur-slow) var(--ease-out), width var(--dur-slow) var(--ease-out); }

/* Segmentos (dentro de la hoja) */
.segmentos { display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: var(--surface-000); }
.segmentos__tab { flex: 1; min-height: var(--tactil); padding: 0 var(--sp-2); border-radius: var(--radius-pill); font-size: var(--t-sm); font-weight: 600; color: var(--ink-muted); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.segmentos__tab[aria-selected="true"] { background: var(--ink); color: var(--surface-100); }
.segmentos__tab:not([aria-selected="true"]):hover { color: var(--ink); }

/* Acordeón: <details> nativo; el contenido se despliega con transición donde el navegador lo admite */
.acordeon, .aviso-error { interpolate-size: allow-keywords; }
.acordeon { border-top: 1px solid var(--line); }
.acordeon::details-content, .aviso-error::details-content { block-size: 0; overflow: hidden; transition: block-size var(--dur) var(--ease), content-visibility var(--dur) allow-discrete; }
.acordeon[open]::details-content, .aviso-error[open]::details-content { block-size: auto; }
.acordeon > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--tactil); padding: var(--sp-2) 0; font-weight: 600; font-size: var(--t-base); cursor: pointer; }
.acordeon > summary::-webkit-details-marker { display: none; }
.acordeon > summary .icono { color: var(--ink-muted); transition: transform var(--dur) var(--ease); }
.acordeon[open] > summary .icono { transform: rotate(180deg); }
.acordeon[open] > summary .acordeon__cerrado, .acordeon:not([open]) > summary .acordeon__abierto { display: none; }
.acordeon__cuerpo { padding: 0 0 var(--sp-3); }

/* ============ 4. Listados y bloques ============ */
.bloque { margin-top: var(--sp-6); scroll-margin-top: 64px; }
.bloque--seguido { margin-top: var(--sp-5); }
.bloque__cab { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--line-strong); }
.bloque__titulo { font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; line-height: 1.2; display: inline-flex; align-items: center; gap: var(--sp-2); }
.bloque__titulo--acento::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-accent); }
.bloque__cab .enlace { font-size: var(--t-sm); }
.con-margen { padding-left: var(--sp-4); padding-right: var(--sp-4); }
.bloque__cab.con-margen { margin: 0 var(--sp-4); padding-left: 0; padding-right: 0; }

/* Foto con degradado y texto encima. El velo oscuro va pegado al bloque de texto (crece con él), así el contraste no depende de la foto; el degradado general solo da profundidad. */
.foto-texto { position: relative; display: block; overflow: hidden; color: var(--ink-on-photo); background: var(--surface-200); }
.foto-texto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.foto-texto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--velo-45) 0%, var(--velo-0) 60%); }
.foto-texto__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--sp-8) var(--sp-4) var(--sp-4); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); background: linear-gradient(to top, var(--velo-90) 0%, var(--velo-90) 35%, var(--velo-60) 72%, var(--velo-0) 100%); }
.foto-texto__txt .meta { color: var(--ink-on-photo); }
.foto-texto__txt .etiqueta { color: var(--ink-on-photo); }
.foto-texto:hover img { transform: scale(1.03); }
.foto-texto--redonda { border-radius: var(--radius-md); }
.apertura { aspect-ratio: 5 / 4; }
.apertura .titular { font-size: var(--t-xl); }
.tarjeta { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.tarjeta .titular { font-size: var(--t-md); line-height: var(--lh-snug); }

/* Lista de titulares solo texto: <a><span>Titular <span class="meta">· 10:46</span></span></a> */
.lista-texto > * { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); font-family: var(--fuente-display); font-weight: 600; font-size: var(--t-base); line-height: var(--lh-snug); }
.lista-texto > *::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent); margin-top: 7px; }
.lista-texto .meta { display: block; margin-top: 3px; font-family: var(--fuente-body); font-weight: 400; }
.lista-texto a:hover { color: var(--accent-text); }
.lista-texto--sin-margen > * { padding-left: 0; padding-right: 0; }
.lista-texto--compacta .meta { display: inline; margin: 0 0 0 var(--sp-1); white-space: nowrap; }

/* Fila: texto + miniatura a la derecha */
.fila { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: var(--sp-4); padding: var(--sp-4); border-bottom: 1px solid var(--line); align-items: start; }
.fila__txt { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.fila__txt .titular { font-size: var(--t-md); line-height: var(--lh-snug); }
.fila__txt .meta { margin-top: var(--sp-1); }
.fila img { width: 96px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--radius-sm); }
.fila:hover .titular { color: var(--accent-text); }
.fila--sin-margen { padding-left: 0; padding-right: 0; }
.fila[hidden] { display: none; }

/* Carrusel deslizable (scroll-snap, sin JavaScript) */
.carrusel { display: flex; gap: var(--sp-3); overflow-x: auto; padding: var(--sp-4) var(--sp-4) var(--sp-2); scroll-snap-type: x mandatory; scroll-padding-inline: var(--sp-4); scrollbar-width: none; overscroll-behavior-x: contain; }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel > * { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
.carrusel::after { content: ""; flex: 0 0 var(--sp-1); }
.carrusel--ancho > * { flex-basis: min(86%, 340px); }

/* Lista numerada (más vistos) */
.numerada { counter-reset: puesto; }
.numerada > li { counter-increment: puesto; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); align-items: start; }
.numerada > li::before { content: counter(puesto); min-width: 1ch; /* sin el 0 delante (9-nov-2026) */ font-family: var(--fuente-display); font-size: var(--t-xl); font-weight: 700; line-height: 1; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.numerada > li:first-child::before { color: var(--brand-accent); }
.numerada a { font-family: var(--fuente-display); font-weight: 600; font-size: var(--t-base); line-height: var(--lh-snug); }
.numerada a:hover { color: var(--accent-text); }

/* Publicidad: marcador que desaparece sin dejar hueco */
.pub { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 100px; border: 1px dashed var(--line-dashed); border-radius: var(--radius-sm); color: var(--ink-muted); font-size: var(--t-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; line-height: 1.4; }
.pub:empty, .sin-publicidad .pub { display: none; }
.pub--movil { min-height: 100px; margin: var(--sp-4); }
.pub--cuerpo { min-height: 100px; margin: var(--sp-5) 0; }
.pub--lateral { min-height: 250px; }
.pub--lateral-alta { min-height: 600px; }

/* Boletín */
.boletin { padding-top: var(--sp-4); border-top: 2px solid var(--line-strong); display: flex; flex-direction: column; gap: var(--sp-3); }
.boletin p { color: var(--ink-muted); font-size: var(--t-sm); }

/* ============ 5. Cabecera y navegación ============ */
.marca img { height: 24px; width: auto; }
.cab-movil { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 var(--sp-2) 0 var(--sp-4); background: var(--surface-100); border-bottom: 1px solid var(--line); }
.cab-movil__acciones { display: flex; gap: var(--sp-1); }
.cab-movil .marca { display: inline-flex; align-items: center; min-height: var(--tactil); }
.saludo { padding: var(--sp-4) var(--sp-4) 0; display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.saludo .titular { font-size: var(--t-lg); }

/* ============ 6. Móvil: página, barra inferior y hoja ============ */
.pagina--movil { position: relative; max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--barra-alto) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 481px) { .pagina--movil { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.barra { position: fixed; left: 50%; bottom: 0; z-index: 30; width: 100%; max-width: 480px; transform: translateX(-50%); display: flex; align-items: stretch; height: calc(var(--barra-alto) + env(safe-area-inset-bottom, 0px)); padding: 0 var(--sp-1) env(safe-area-inset-bottom, 0px); background: var(--surface-100); border-top: 1px solid var(--line); }
.barra__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--tactil); font-size: var(--t-xs); font-weight: 600; color: var(--ink-muted); line-height: 1; transition: color var(--dur-fast) var(--ease); -webkit-tap-highlight-color: transparent; }
.barra__item .icono { transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.barra__item:active .icono { transform: scale(.9); }
.barra__item[aria-current], .barra__item[aria-expanded="true"], .barra__item--on { color: var(--ink); }
.barra__item[aria-current] .icono, .barra__item[aria-expanded="true"] .icono { color: var(--accent-text); }
.barra__item .aa { font-family: var(--fuente-display); font-size: 20px; font-weight: 700; line-height: 24px; height: 24px; }
.barra__item:focus-visible { outline-offset: -2px; }

.telon { position: fixed; inset: 0; z-index: 25; background: var(--telon); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur); }
.hoja { position: fixed; left: 50%; bottom: calc(var(--barra-alto) + env(safe-area-inset-bottom, 0px)); z-index: 28; width: 100%; max-width: 480px; height: var(--hoja-alto); display: flex; flex-direction: column; background: var(--surface-100); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 -1px 0 var(--line); transform: translate(-50%, 110%); visibility: hidden; transition: transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow); }
.hoja__asa { flex: none; width: 36px; height: 4px; border-radius: var(--radius-pill); background: var(--line-dashed); margin: var(--sp-2) auto 0; }
.hoja__cab { flex: none; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-2) var(--sp-2) var(--sp-4); }
.hoja__cab .segmentos { flex: 1; min-width: 0; }
.hoja__nombre { flex: 1; font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.hoja__nombre[hidden], .hoja--sin-tabs .segmentos { display: none; }
.hoja--sin-tabs { height: auto; max-height: var(--hoja-alto); } /* menú y compartir no cambian de pestaña: altura según contenido */
.hoja__ejemplos { margin: var(--sp-2) 0 var(--sp-4); }
.menu-paginas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-4); margin-top: var(--sp-4); padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.menu-paginas a { display: flex; align-items: center; min-height: var(--tactil); font-size: var(--t-base); font-weight: 600; color: var(--ink-muted); transition: color var(--dur-fast) var(--ease); }
.menu-paginas a:hover { color: var(--ink); }
/* Compartir: opciones con el glifo de cada red */
.compartir { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.compartir__opcion { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 56px; padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: var(--radius-md); font-weight: 600; font-size: var(--t-base); transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.compartir__opcion:hover { background: var(--surface-000); border-color: var(--line-dashed); }
.compartir__opcion .icono { color: var(--accent-text); }
.compartir__opcion--hecho { border-color: var(--accent-text); color: var(--accent-text); }
.compartir__opcion--hecho .compartir__texto, .compartir__hecho[hidden] { display: none; }
.art-cab__fila { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); }
.btn--compartir { flex: none; min-height: 40px; padding: 0 var(--sp-3) 0 var(--sp-2); border-radius: var(--radius-pill); }
/* Hoja lateral (escritorio): cajón desde la derecha con el mismo JS */
.hoja--lateral { top: 0; bottom: 0; left: auto; right: 0; width: min(400px, 100%); max-width: none; height: auto; border-radius: 0; transform: translateX(110%); box-shadow: -1px 0 0 var(--line); }
.hoja--lateral.hoja--abierta { transform: none; }
.hoja--lateral.hoja--sin-tabs { height: auto; max-height: none; }
.hoja--lateral .hoja__asa { display: none; }
.hoja--lateral .hoja__cab { padding: var(--sp-4) var(--sp-3) var(--sp-2) var(--sp-5); }
.hoja--lateral .hoja__cuerpo { padding: 0 var(--sp-5) var(--sp-6); }
.hoja--lateral .secciones-grandes a { font-size: var(--t-xl); min-height: 52px; }
.hoja--arrastre { transition: none; }
.hoja--muestra { position: static; transform: none; visibility: visible; height: auto; }
.hoja__cuerpo { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--sp-4) var(--sp-5); }
.hoja__pie { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.hoja__titulo { display: flex; justify-content: space-between; align-items: center; margin: var(--sp-2) 0 var(--sp-3); }
.hoja__titulo .meta { font-variant-numeric: tabular-nums; }
.hoja--abierta { transform: translate(-50%, 0); visibility: visible; transition: transform var(--dur-slow) var(--ease-out), visibility 0s; }
.telon--abierto { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease), visibility 0s; }
body.con-hoja { overflow: hidden; }
.hoja__panel { animation: aparecer var(--dur) var(--ease) both; }
.hoja__panel[hidden] { display: none; }

/* Hoja de secciones: lista en tipografía grande (inspirada en el vídeo de Layers) */
.secciones-grandes > li { border-bottom: 1px solid var(--line); }
.secciones-grandes a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 56px; padding: var(--sp-2) 0; font-family: var(--fuente-display); font-size: var(--t-2xl); font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.1; transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.secciones-grandes a .meta { font-family: var(--fuente-body); font-weight: 400; font-variant-numeric: tabular-nums; }
.secciones-grandes a:hover { color: var(--accent-text); transform: translateX(4px); }
.secciones-grandes a[aria-current] { color: var(--accent-text); }
.secciones-grandes__otros { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); padding-top: var(--sp-4); }
.secciones-grandes__otros a { font-size: var(--t-base); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }

/* Lectura (tamaño de letra) */
.lectura-opciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.lectura-opciones button { min-height: 56px; border: 1px solid var(--line); border-radius: var(--radius-md); font-family: var(--fuente-display); font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.lectura-opciones button span { font-family: var(--fuente-body); font-size: var(--t-xs); font-weight: 600; color: var(--ink-muted); }
.lectura-opciones button[aria-pressed="true"] { border-color: var(--ink); background: var(--surface-000); }
.lectura-opciones button:nth-child(1) { font-size: 17px; }
.lectura-opciones button:nth-child(2) { font-size: 20px; }
.lectura-opciones button:nth-child(3) { font-size: 23px; }

/* ============ 7. Artículo ============ */
.art-foto { position: relative; aspect-ratio: 4 / 3; background: var(--surface-200); }
.art-foto img { width: 100%; height: 100%; object-fit: cover; }
.art-foto__btns { position: absolute; top: var(--sp-3); left: var(--sp-3); right: var(--sp-3); display: flex; justify-content: space-between; }
.art-foto__btns > div { display: flex; gap: var(--sp-2); }
.art-pie-foto { padding: var(--sp-2) var(--sp-4) 0; font-size: var(--t-xs); color: var(--ink-muted); line-height: var(--lh-snug); }
.art-cab { padding: var(--sp-4) var(--sp-4) 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.art-cab h1 { font-size: var(--t-2xl); }
.entradilla { font-size: var(--t-md2); font-weight: 600; line-height: var(--lh-normal); color: var(--ink); }
.firma { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); align-items: center; font-size: var(--t-sm); color: var(--ink-muted); }
.firma b { color: var(--ink); font-weight: 600; }
.firma > * + *::before { content: "·"; margin-right: var(--sp-2); }
.firma > .firma__salto { flex-basis: 100%; }
.firma > .firma__salto::before, .firma > .firma__salto + *::before { content: none; }
.firma__autor { color: inherit; text-decoration: none; }
.firma__autor:hover b, .firma__autor:focus-visible b { text-decoration: underline; text-underline-offset: 2px; }
.firma-nota { margin: var(--sp-1) 0 0; font-size: var(--t-xs); color: var(--ink-muted); }
.firma-nota a { color: inherit; }
.art-cuerpo { padding: 0 var(--sp-4); }

/* Entregas de un Al día: línea de tiempo mínima bajo el titular. Cada punto es una entrega de la misma historia (fecha como enlace); la actual va rellena y marcada «Estás aquí». */
.entregas { display: flex; flex-direction: column; gap: var(--sp-3); }
.entregas__cab { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }
.entregas__linea { position: relative; display: flex; justify-content: space-between; }
.entregas__linea::before { content: ""; position: absolute; left: 7px; right: 7px; top: 6px; height: 2px; background: var(--line); }
.entregas__linea > li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.entregas__linea > li:first-child { align-items: flex-start; }
.entregas__linea > li:last-child { align-items: flex-end; }
.entregas__linea > li > * { position: relative; display: flex; flex-direction: column; align-items: inherit; gap: var(--sp-1); font-size: var(--t-sm); line-height: var(--lh-snug); color: var(--ink-muted); }
.entregas__linea a::after { content: ""; position: absolute; inset: -12px -8px; }
.entregas__punto { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand-accent); background: var(--surface-100); margin-bottom: 2px; transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.entregas__linea time { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.entregas__linea a:hover .entregas__punto { transform: scale(1.15); }
.entregas__linea a:hover time { color: var(--accent-text); }
.entregas__linea > li[aria-current] .entregas__punto { background: var(--brand-accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.entregas__linea > li[aria-current] time { color: var(--accent-text); }
.entregas__aqui { font-size: var(--t-xs); }

/* Claves */
.claves { border-top: 3px solid var(--brand-accent); padding-top: var(--sp-3); margin-top: var(--sp-5); }
.claves__cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-3); }
.claves__lista > div { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) 0; }
.claves__lista > div + div { border-top: 1px solid var(--line); }
.claves__lista dt { font-weight: 600; font-size: var(--t-sm); color: var(--accent-text); letter-spacing: .02em; }
.claves__lista dd { font-size: var(--t-md); line-height: var(--lh-normal); }
/* Claves plegadas (móvil): se ve la primera entera y asoma la segunda bajo un degradado; «Ver todo» centrado abajo */
.claves--plegadas:not(.claves--abiertas) .claves__cuerpo { position: relative; max-height: 11.5em; overflow: hidden; } /* la primera clave entera; la segunda asoma */
.claves--plegadas:not(.claves--abiertas) .claves__cuerpo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.5em; background: linear-gradient(to bottom, transparent, var(--surface-100) 85%); pointer-events: none; }
.claves__ver { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--sp-1); margin: -20px auto 0; min-height: 40px; padding: 0 var(--sp-3) 0 var(--sp-4); border: 1px solid var(--line-dashed); border-radius: var(--radius-pill); background: var(--surface-100); font-size: var(--t-sm); font-weight: 600; transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.claves__ver:hover { background: var(--surface-000); }
.claves__ver .icono { transition: transform var(--dur) var(--ease); }
.claves--abiertas .claves__ver { margin-top: var(--sp-3); }
.claves--abiertas .claves__ver .icono { transform: rotate(180deg); }
.claves--abiertas .claves__ver-abrir, .claves:not(.claves--abiertas) .claves__ver-cerrar { display: none; }
/* Etiquetas al final del cuerpo */
.etiquetas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-6); font-family: var(--fuente-body); }
.etiquetas > .etiqueta { margin-right: var(--sp-1); }

/* Índice */
.indice a { display: block; padding: var(--sp-2) 0 var(--sp-2) var(--sp-3); border-left: 2px solid var(--line); color: var(--ink-muted); font-size: var(--t-base); line-height: var(--lh-snug); min-height: 40px; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.indice a:hover { color: var(--ink); border-color: var(--ink); }
.indice a[aria-current], .indice a.on { color: var(--ink); font-weight: 600; border-color: var(--brand-accent); }
.indice a.indice__final { color: var(--accent-text); font-weight: 600; border-left-color: transparent; }

/* Prosa del artículo: cuerpo en Literata */
.prosa { font-family: var(--fuente-display); font-size: var(--t-md); line-height: var(--lh-relaxed); }
.prosa > p { margin: 0 0 var(--sp-4); }
.prosa h2 { font-size: var(--t-xl2); line-height: var(--lh-snug); font-weight: 700; letter-spacing: var(--tracking-display); margin: var(--sp-7) 0 var(--sp-3); scroll-margin-top: var(--sp-4); text-wrap: balance; }
.prosa h3 { font-size: var(--t-lg); line-height: var(--lh-snug); margin: var(--sp-5) 0 var(--sp-2); }
.prosa a:not(.btn, .chip) { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--brand-accent); text-underline-offset: 3px; transition: text-decoration-thickness var(--dur-fast) var(--ease); }
.prosa a:not(.btn, .chip):hover { text-decoration-thickness: 2px; }
.prosa ul, .prosa ol { padding-left: 1.25em; margin: 0 0 var(--sp-4); }
.prosa ul { list-style: disc; }
.prosa ol { list-style: decimal; }
.prosa li { margin-bottom: var(--sp-2); }
.prosa li::marker { color: var(--brand-accent); font-weight: 700; }
.prosa .ficha ul, .prosa .ficha ol, .prosa .galeria ul, .prosa .externa ul { list-style: none; padding: 0; margin: 0; }
.prosa .ficha li, .prosa .galeria li { margin: 0; }
.prosa .resumido { font-family: var(--fuente-body); font-style: italic; color: var(--ink-muted); font-size: var(--t-sm); }

/* Destacado */
.destacado { margin: var(--sp-5) 0; padding: var(--sp-1) 0 var(--sp-1) var(--sp-4); border-left: 3px solid var(--brand-accent); font-family: var(--fuente-body); }
.destacado__titulo { font-weight: 600; font-size: var(--t-base); margin-bottom: var(--sp-1); }
.destacado p { font-size: var(--t-base); line-height: var(--lh-normal); margin: 0; }

/* ============ 8. Fichas de datos (tablas, gráficos, cronologías) ============ */
.ficha { margin: var(--sp-5) 0; padding: var(--sp-4); border-radius: var(--radius-md); background: var(--surface-000); font-family: var(--fuente-body); }
.ficha__cab { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.ficha__titulo { font-size: var(--t-base); font-weight: 600; line-height: var(--lh-snug); }
.ficha__nota { font-size: var(--t-xs); color: var(--ink-muted); margin-top: var(--sp-3); line-height: var(--lh-snug); }
.ficha__pie { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); flex-wrap: wrap; }
.ficha__scroll { overflow-x: auto; scrollbar-width: thin; margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4); background: linear-gradient(to left, var(--surface-000) 40%, transparent) right / 48px 100% no-repeat local, linear-gradient(to left, var(--sombra), transparent) right / 16px 100% no-repeat scroll; } /* sombra en el borde derecho mientras quede tabla por ver */
.tabla { width: 100%; border-collapse: collapse; font-size: var(--t-sm); line-height: var(--lh-snug); }
.tabla th { text-align: left; font-size: var(--t-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; border-bottom: 2px solid var(--line-strong); white-space: nowrap; vertical-align: bottom; }
.tabla td { padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .num, .tabla td.num, .tabla th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla td.num { font-weight: 600; white-space: nowrap; }
.tabla--fija th:first-child, .tabla--fija td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface-000); min-width: 150px; max-width: 200px; }
.tabla--fija th:first-child::after, .tabla--fija td:first-child::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: var(--line); }
.tabla--plegada tbody tr:nth-child(n + 6) { display: none; }
.tabla--plegada.abierta tbody tr { display: table-row; }
.ficha__mas { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: var(--tactil); font-size: var(--t-sm); font-weight: 600; color: var(--accent-text); }
.ficha__mas .icono { transition: transform var(--dur) var(--ease); }
.abierta ~ .ficha__pie .ficha__mas .icono, .ficha__mas[aria-expanded="true"] .icono { transform: rotate(180deg); }

/* Gráfico de barras en CSS: cada barra lleva --v (valor) y el gráfico --max */
.grafico { --max: 100; }
.grafico__barras { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--sp-2); align-items: end; }
.grafico__barras > li { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); min-width: 0; }
.grafico__valor { font-size: var(--t-xs); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grafico__barra { width: 100%; max-width: 56px; height: calc(var(--v) / var(--max) * 140px); background: var(--brand-accent); border-radius: var(--radius-sm) var(--radius-sm) 0 0; transform-origin: bottom; animation: crecer var(--dur-slow) var(--ease-out) both; }
.grafico__etiqueta { font-size: var(--t-xs); color: var(--ink-muted); text-align: center; line-height: 1.3; padding-top: var(--sp-1); border-top: 1px solid var(--line-dashed); width: 100%; }
.grafico__unidad { font-size: var(--t-xs); color: var(--ink-muted); }

/* Cronología */
.cronologia { margin-left: 6px; }
.cronologia > li { position: relative; padding: 0 0 var(--sp-4) var(--sp-5); border-left: 2px solid var(--line); }
.cronologia > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.cronologia > li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-000); border: 2px solid var(--brand-accent); }
.cronologia > li[aria-current]::before, .cronologia > li.actual::before { background: var(--brand-accent); }
.cronologia time, .cronologia b { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink); margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.cronologia p { font-size: var(--t-sm); line-height: var(--lh-normal); color: var(--ink-soft); }
.cronologia a { color: var(--accent-text); }
.cronologia a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cronologia--enlaces > li { padding-bottom: var(--sp-3); }
.cronologia--enlaces .titular { font-size: var(--t-base); }
.cronologia--enlaces > li[aria-current] .titular { color: var(--accent-text); }

/* ============ 9. Galería ============ */
.galeria { margin: var(--sp-5) 0; font-family: var(--fuente-body); }
.galeria__marco { position: relative; margin: 0 calc(-1 * var(--sp-4)); background: var(--surface-200); }
.galeria__pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.galeria__pista::-webkit-scrollbar { display: none; }
.galeria__pista > li { flex: 0 0 100%; scroll-snap-align: center; }
.galeria__pista img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galeria__contador { position: absolute; top: var(--sp-3); right: var(--sp-3); padding: 6px 10px; border-radius: var(--radius-pill); background: var(--velo-90); color: var(--ink-on-photo); font-size: var(--t-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.galeria__ampliar { position: absolute; bottom: var(--sp-3); right: var(--sp-3); }
.galeria__flechas { display: none; }
.galeria__pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-1) var(--sp-3); margin-top: var(--sp-2); font-size: var(--t-sm); line-height: var(--lh-snug); color: var(--ink-soft); }
.galeria__pie small { font-size: var(--t-xs); color: var(--ink-muted); }
.galeria__pies > li[hidden] { display: none; }
.galeria__cerrar { display: none; }
/* Pantalla completa: la misma galería, sin duplicar nada */
.galeria--completa { position: fixed; inset: 0; z-index: 40; margin: 0; padding: 0; background: var(--negro); color: var(--ink-on-photo); display: flex; flex-direction: column; justify-content: center; animation: aparecer-fondo var(--dur-slow) var(--ease-out) both; }
.galeria--completa .galeria__marco { margin: 0; background: var(--negro); }
.galeria--completa .galeria__pista img { aspect-ratio: auto; height: min(78vh, 100%); object-fit: contain; animation: acercar var(--dur-slow) var(--ease-out) both; }
.galeria--completa .galeria__pie { padding: var(--sp-3) var(--sp-4) var(--sp-5); color: var(--ink-on-photo); }
.galeria--completa .galeria__pie small { color: var(--ink-on-photo-muted); }
.galeria--completa .galeria__ampliar { display: none; }
.galeria--completa .galeria__cerrar { display: inline-flex; position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2; }
.galeria--completa .galeria__flechas { display: flex; justify-content: space-between; position: absolute; left: var(--sp-3); right: var(--sp-3); top: 50%; transform: translateY(-50%); pointer-events: none; }
.galeria--completa .galeria__flechas button { pointer-events: auto; }
.galeria--completa .galeria__contador { top: auto; bottom: var(--sp-3); left: 50%; right: auto; transform: translateX(-50%); }

/* ============ 10. Publicación externa (inserción oficial, carga al pulsar) ============ El marcador imita el aspecto del embed de cada plataforma (reproductor de YouTube, tarjeta de X, vídeo vertical de TikTok) y lleva encima una capa translúcida con el glifo de la plataforma y dos acciones: Cargar (inserta el código oficial) y Ver en la plataforma. Al cargar, la capa desaparece. La imitación es decorativa (aria-hidden). */
.externa { margin: var(--sp-5) 0; font-family: var(--fuente-body); }
.externa__marco { position: relative; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-100); color: var(--ink); }
.externa__marco--video { aspect-ratio: 16 / 9; border: 0; background: var(--ink); color: var(--ink-on-photo); }
.externa__marco--vertical { aspect-ratio: 9 / 16; max-width: 300px; margin: 0 auto; border: 0; background: var(--negro); color: var(--ink-on-photo); }
.externa__imitacion { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); }
.externa__marco--tarjeta .externa__imitacion { position: static; }
.externa__cuenta { display: flex; align-items: center; gap: var(--sp-3); }
.externa__cuenta .icono--marca { margin-left: auto; }
.externa__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-text); color: var(--on-accent); font-weight: 700; font-size: var(--t-sm); letter-spacing: .02em; }
.externa__marco--video .externa__avatar, .externa__marco--vertical .externa__avatar { background: var(--surface-100); color: var(--ink); }
.externa__nombre { font-weight: 700; font-size: var(--t-base); line-height: var(--lh-snug); min-width: 0; }
.externa__nombre .meta { display: block; font-weight: 400; }
.externa__marco--video .meta, .externa__marco--vertical .meta { color: var(--ink-on-photo-muted); }
.externa__texto { font-size: var(--t-base); line-height: var(--lh-normal); }
.externa__fecha { font-size: var(--t-sm); color: var(--ink-muted); }
.externa__play { margin: auto; width: 68px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--velo-60); }
.externa__play .icono { width: 30px; height: 30px; fill: currentColor; }
.externa__marco--vertical .externa__imitacion { justify-content: flex-end; }
.externa__capa { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-4); text-align: center; background: var(--velo-60); color: var(--ink-on-photo); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.externa__marco--tarjeta .externa__capa { background: var(--velo-claro); color: var(--ink); }
.externa__capa .icono--marca { width: 36px; height: 36px; }
.externa__capa .btn--primario { background: var(--ink-on-photo); color: var(--ink); }
.externa__marco--tarjeta .externa__capa .btn--primario { background: var(--ink); color: var(--surface-100); }
.externa__capa .btn--secundario { border-color: currentColor; color: inherit; background: transparent; }
.externa__capa .btn--secundario:hover { background: var(--velo-45); }
.externa__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.externa__aviso { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 var(--sp-3); font-size: var(--t-xs); opacity: .92; }
.externa__aviso .caja-check { min-height: 32px; color: inherit; font-size: inherit; }
.externa__plataforma { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: var(--t-base); }
.externa__autor { font-size: var(--t-sm); color: var(--ink-muted); }
.externa__pie { margin-top: var(--sp-2); font-size: var(--t-sm); line-height: var(--lh-snug); color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.externa__insertada { display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--sp-1) var(--sp-3); font-size: var(--t-xs); text-align: center; background: var(--velo-90); color: var(--ink-on-photo); }
.externa--cargada .externa__capa { display: none; }
.externa--cargada .externa__insertada { display: block; animation: aparecer var(--dur) var(--ease) both; }
/* Ya no disponible en la plataforma */
.externa--baja .externa__marco { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-5) var(--sp-4); text-align: center; border: 1px dashed var(--line-dashed); background: var(--surface-000); color: var(--ink-muted); }
.externa--baja .externa__marco .icono--marca { width: 32px; height: 32px; }

/* ============ 11. Verificación (sello de la casa, al final) ============ */
.linea-confianza { display: flex; align-items: flex-start; gap: var(--sp-2); margin: var(--sp-6) 0 0; padding: var(--sp-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--fuente-body); font-size: var(--t-sm); line-height: var(--lh-snug); color: var(--ink-muted); }
.linea-confianza .icono { color: var(--accent-text); margin-top: 1px; }
.verificacion { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 2px solid var(--line-strong); font-family: var(--fuente-body); }
.verificacion__cab { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-1); }
.verificacion__cab .icono { color: var(--accent-text); }
.verificacion__titulo { font-family: var(--fuente-display); font-size: var(--t-lg); font-weight: 700; }
.verificacion__lema { font-size: var(--t-sm); color: var(--ink-muted); margin-bottom: var(--sp-4); }
.verificacion__sub { font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-muted); margin: var(--sp-4) 0 var(--sp-1); display: flex; justify-content: space-between; align-items: baseline; }
.verificacion__sub .meta { text-transform: none; letter-spacing: 0; font-weight: 400; }
.fuentes > li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-2) 0; border-top: 1px solid var(--line); font-size: var(--t-sm); line-height: var(--lh-snug); }
.fuentes > li .icono { color: var(--ink-muted); margin-top: 1px; }
.fuentes > li.primaria .icono { color: var(--accent-text); }
.fuentes a { color: var(--accent-text); }
.fuentes a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fuentes .meta { display: block; margin-top: 2px; }
.verificacion__fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-2) var(--sp-4); padding: var(--sp-3) 0; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-muted); }
.verificacion__fila .enlace { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 32px; }
.verificacion__fila .icono { color: var(--accent-text); }
/* ¿Has visto un error? Formulario plegado, visible, al final del artículo */
.aviso-error { margin-top: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-md); }
.aviso-error > summary { list-style: none; display: flex; align-items: center; gap: var(--sp-2); min-height: 52px; padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4); font-weight: 600; font-size: var(--t-base); cursor: pointer; }
.aviso-error > summary::-webkit-details-marker { display: none; }
.aviso-error > summary .icono:first-child { color: var(--accent-text); }
.aviso-error > summary .icono:last-child { margin-left: auto; color: var(--ink-muted); transition: transform var(--dur) var(--ease); }
.aviso-error[open] > summary { border-bottom: 1px solid var(--line); }
.aviso-error[open] > summary .icono:last-child { transform: rotate(180deg); }
.aviso-error__form { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); }
.aviso-error__form > p { font-size: var(--t-sm); color: var(--ink-muted); line-height: var(--lh-normal); }
.aviso-error__acciones { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.aviso-error__acciones .meta { flex: 1; min-width: 200px; }

/* Siguiente y volver arriba */
.siguiente { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: var(--sp-3); align-items: center; margin-top: var(--sp-6); padding: var(--sp-4) 0; border-top: 2px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.siguiente .titular { display: block; font-size: var(--t-lg); margin-top: var(--sp-1); }
.siguiente + .siguiente { margin-top: 0; border-top: 0; }
.siguientes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.siguientes .siguiente + .siguiente { margin-top: var(--sp-6); border-top: 2px solid var(--line-strong); }
.siguiente .icono { color: var(--accent-text); transition: transform var(--dur-fast) var(--ease); }
.siguiente:hover .icono { transform: translateX(3px); }
.siguiente:hover .titular { color: var(--accent-text); }
.arriba { margin: var(--sp-4) 0 0; }

/* Relacionados */
.relacionados .carrusel { padding-left: var(--sp-4); }
.relacionado { display: block; }
.relacionado img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--sp-2); }
.relacionado .etiqueta { display: block; margin-bottom: var(--sp-1); }
.relacionado .titular { font-size: var(--t-base); line-height: var(--lh-snug); }
.relacionado:hover .titular { color: var(--accent-text); }

/* ============ 12. Pie ============ */
.pie { margin-top: var(--sp-7); padding: var(--sp-6) var(--sp-4) var(--sp-5); background: var(--ink); color: var(--ink-on-photo-muted); font-size: var(--t-sm); }
.pie a { color: inherit; }
.pie a:hover { color: var(--ink-on-photo); text-decoration: underline; text-underline-offset: 3px; }
.pie__marca { display: inline-flex; align-items: center; min-height: var(--tactil); }
.pie__marca img { height: 24px; width: auto; }
.pie__lema { margin: var(--sp-3) 0 0; max-width: 32rem; line-height: var(--lh-normal); }
.pie__lema b { color: var(--ink-on-photo); font-family: var(--fuente-display); font-size: var(--t-base); display: block; margin-bottom: var(--sp-1); }
.pie__columnas { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-4); margin-top: var(--sp-6); }
.pie__columnas h2 { font-size: var(--t-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-on-photo); margin-bottom: var(--sp-2); }
.pie__columnas li a { display: inline-flex; align-items: center; min-height: 40px; position: relative; }
.pie__columnas li a::after { content: ""; position: absolute; inset: -2px -4px; }
.pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line-on-dark); font-size: var(--t-xs); }
.pie__legal a { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: var(--tactil); }
@media (prefers-color-scheme: dark) { .pie { background: var(--surface-000); border-top: 1px solid var(--line); } }

/* ============ 13. Escritorio ============ */
.envoltura { max-width: var(--ancho-max); margin: 0 auto; padding: 0 var(--sp-6); width: 100%; }
.cab { border-bottom: 1px solid var(--line); background: var(--surface-100); }
.cab__superior { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.cab__superior .marca img { height: 34px; }
.cab__derecha { display: flex; align-items: center; gap: var(--sp-5); font-size: var(--t-sm); color: var(--ink-muted); }
.cab__derecha > * { display: inline-flex; align-items: center; min-height: var(--tactil); }
.cab__derecha .enlace { color: var(--ink); }
.cab__derecha .enlace--acento { color: var(--accent-text); }
.cab__nav { display: flex; justify-content: space-between; align-items: center; height: 48px; border-top: 1px solid var(--line); }
.cab__secciones { display: flex; gap: var(--sp-5); }
.cab__secciones a { position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); height: 48px; font-weight: 600; font-size: var(--t-base); transition: color var(--dur-fast) var(--ease); }
.cab__secciones a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-accent); transform: scaleX(0); transition: transform var(--dur) var(--ease); }
.cab__secciones a:hover { color: var(--accent-text); }
.cab__secciones a:hover::after, .cab__secciones a[aria-current]::after { transform: scaleX(1); }
.cab__secciones a[aria-current] { color: var(--accent-text); }
.cab__secciones .al-dia { color: var(--accent-text); }
.cab__secciones .al-dia::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-accent); }
.cab__nav-acciones { display: flex; align-items: center; gap: var(--sp-2); }
.cab--compacta .cab__superior { height: 64px; }
.cab--compacta .cab__secciones a { height: 64px; }
.cab--compacta .cab__secciones a::after { bottom: 0; }

.rejilla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); align-items: start; margin-top: var(--sp-5); }
.rejilla > * { min-width: 0; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }
.rejilla--apertura { align-items: start; }
.apertura-bloque { display: flex; flex-direction: column; gap: var(--sp-5); }
.apertura-bloque__dos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.tarjeta--ancha { aspect-ratio: 16 / 9; }
.tarjeta--ancha .titular { font-size: var(--t-lg); }
.apertura--escritorio { aspect-ratio: 21 / 9; border-radius: var(--radius-md); }
.lateral__pub { margin-top: var(--sp-5); }
.apertura--escritorio .foto-texto__txt { padding: var(--sp-5) var(--sp-6); }
.apertura--escritorio .titular { font-size: var(--t-3xl); max-width: 22ch; }
.pila { display: flex; flex-direction: column; gap: var(--sp-4); }
.pila .tarjeta { aspect-ratio: 4 / 3; }
.fila--escritorio { grid-template-columns: minmax(0, 1fr) 200px; gap: var(--sp-5); padding: var(--sp-5) 0; }
.fila--escritorio img { width: 200px; }
.fila--escritorio .fila__txt .titular { font-size: var(--t-lg); }
.fila__extracto { font-size: var(--t-base); line-height: var(--lh-normal); color: var(--ink-muted); margin-top: var(--sp-1); }
.lateral { display: flex; flex-direction: column; gap: var(--sp-6); }
/* Las laterales acompañan al flujo solo con JS, que calcula dónde fijarlas para que se vean
   enteras aunque sean más altas que la pantalla (neoversus.js, 14). 13-nov-2026. */
.laterales-js .lateral { position: sticky; top: var(--sp-5); }
.lateral .pila { margin-top: var(--sp-4); }
.lateral .seguimos__grande { display: block; padding-top: var(--sp-4); }
.lateral .seguimos__peq { margin-top: var(--sp-4); }
.pub--flujo { min-height: 110px; }
.cargar-mas { display: flex; justify-content: center; padding-top: var(--sp-5); }
.cargar-mas .btn { min-width: 220px; }
.buscador--compacto { height: 36px; }
.buscador--compacto input { font-size: var(--t-base); width: 160px; }
.con-margen--arriba { padding-top: var(--sp-4); }
.flujo__cab { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-4); border-bottom: 2px solid var(--line-strong); }
.flujo__cab .bloque__titulo { padding-bottom: var(--sp-2); }
.flujo__cab .pestanas { margin-left: auto; }
.seguimos__grande img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--sp-2); }
.seguimos__grande .etiqueta { display: block; margin-bottom: var(--sp-1); }
.seguimos__grande .titular { font-size: var(--t-md); line-height: var(--lh-snug); }
.seguimos__peq { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--line); align-items: start; }
.seguimos__peq img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.seguimos__peq .etiqueta { display: block; margin-bottom: 3px; }
.seguimos__peq .titular { font-size: var(--t-base); line-height: var(--lh-snug); }
.seguimos__grande:hover .titular, .seguimos__peq:hover .titular { color: var(--accent-text); }
.bloque-seccion { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-7); }
.bloque-seccion > section { min-width: 0; }
.bloque-seccion .tarjeta { margin-top: var(--sp-4); }
.art-escritorio { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: var(--sp-8); align-items: start; margin-top: var(--sp-6); }
.art-escritorio > * { min-width: 0; }
.art-escritorio__lateral { position: sticky; top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-6); max-height: calc(100vh - var(--sp-5) * 2); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.art-escritorio .prosa { font-size: var(--t-md2); }
.art-escritorio .prosa h2 { font-size: var(--t-2xl); margin-top: var(--sp-8); scroll-margin-top: var(--sp-5); }
.art-escritorio .claves__lista { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--sp-3) var(--sp-5); }
.art-escritorio .claves__lista > div { display: contents; }
.art-escritorio .claves__lista dt { padding-top: 3px; }
.art-escritorio .claves__lista dd { padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.art-escritorio .claves__lista > div:last-child dd { border-bottom: 0; }
.art-escritorio .galeria__marco { margin: 0; border-radius: var(--radius-md); overflow: hidden; }
.art-escritorio .galeria__pista > li { flex-basis: 100%; }
.art-escritorio .galeria__flechas { display: flex; justify-content: space-between; position: absolute; left: var(--sp-3); right: var(--sp-3); top: 50%; transform: translateY(-50%); pointer-events: none; }
.art-escritorio .galeria__flechas button { pointer-events: auto; }
.art-cab--escritorio { max-width: 880px; margin-top: var(--sp-4); padding: 0; gap: var(--sp-4); }
.art-cab--escritorio .entregas { max-width: 560px; }
.art-pie-foto--escritorio { padding-left: 0; padding-right: 0; }
.art-escritorio .art-cuerpo { padding: 0; }
.art-escritorio .claves { margin-top: 0; }
.art-escritorio__lateral .etiqueta { display: block; margin-bottom: var(--sp-2); }
.verificacion--historia { border-top-width: 1px; }
.verificacion--historia > h2 { margin-bottom: var(--sp-3); }
.relacionados--escritorio { margin-top: var(--sp-7); }
.cab--compacta .marca img { height: 30px; }
.art-cab--escritorio h1 { font-size: var(--t-4xl); }
.art-cab--escritorio .entradilla { font-size: var(--t-lg2); line-height: var(--lh-normal); }
.art-foto--escritorio { aspect-ratio: 21 / 9; border-radius: var(--radius-md); overflow: hidden; margin-top: var(--sp-5); }
.art-foto--escritorio img { width: 100%; height: 100%; object-fit: cover; }
.firma--escritorio { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3); }
.firma--escritorio > div { display: flex; gap: var(--sp-1); }
.migas { font-size: var(--t-sm); color: var(--ink-muted); display: flex; gap: var(--sp-2); align-items: center; margin-top: var(--sp-5); }
.migas a { position: relative; }
.migas a::after { content: ""; position: absolute; inset: -12px -2px; }
.migas a:hover { color: var(--ink); }
.relacionados--escritorio .relacionados__rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-4); }
.pie--escritorio { padding: var(--sp-7) 0 var(--sp-5); }
.pie--escritorio .pie__superior { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.pie--escritorio .pie__columnas { display: contents; }
.pie--escritorio .pie__columnas > div { margin-top: 0; }
.pie--escritorio .pie__marca img { height: 28px; }
@media (max-width: 980px) {
  .cab__superior { flex-wrap: wrap; height: auto; min-height: 64px; padding: var(--sp-2) 0; gap: var(--sp-2) var(--sp-4); }
  .cab__derecha span { display: none; }
  .cab__nav { height: auto; }
  .cab__secciones { overflow-x: auto; scrollbar-width: none; gap: var(--sp-4); scroll-padding-inline: 0 40px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .cab__secciones::-webkit-scrollbar { display: none; }
  .cab__nav-acciones { display: none; }
  .cab--compacta .cab__secciones { order: 3; flex-basis: 100%; }
  .cab--compacta .cab__secciones a { height: 44px; }
  .envoltura { padding: 0 var(--sp-4); }
  .apertura--escritorio { aspect-ratio: 5 / 4; }
  .apertura-bloque__dos { grid-template-columns: 1fr; }
  .lateral, .laterales-js .lateral { position: static; }
  .apertura--escritorio .titular { font-size: var(--t-xl); }
  .fila--escritorio { grid-template-columns: minmax(0, 1fr) 96px; gap: var(--sp-4); padding: var(--sp-4) 0; }
  .fila--escritorio img { width: 96px; }
  .fila--escritorio .fila__txt .titular { font-size: var(--t-md); }
  .flujo__cab { flex-wrap: wrap; }
  .pestanas { overflow-x: auto; scrollbar-width: none; }
  .art-cab--escritorio h1 { font-size: var(--t-2xl); }
  .art-foto--escritorio { aspect-ratio: 4 / 3; }
  .rejilla { grid-template-columns: 1fr; }
  .rejilla > * { grid-column: auto; }
  .bloque-seccion { grid-template-columns: 1fr 1fr; }
  .art-escritorio { grid-template-columns: 1fr; }
  .art-escritorio__lateral { position: static; }
  .pie--escritorio .pie__superior { grid-template-columns: 1fr 1fr; }
  .relacionados--escritorio .relacionados__rejilla { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .bloque-seccion, .pie--escritorio .pie__superior, .relacionados--escritorio .relacionados__rejilla { grid-template-columns: 1fr; }
  .art-escritorio .claves__lista { display: block; }
  .siguientes { grid-template-columns: 1fr; }
  .art-escritorio .claves__lista > div { display: flex; }
}

/* ============ 14. Archivo, búsqueda, Al día, páginas fijas y 404 ============ */
.cab-listado { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 2px solid var(--line-strong); }
.cab-listado h1 { font-size: var(--t-2xl); }
.cab-listado__desc { font-size: var(--t-md); line-height: var(--lh-normal); color: var(--ink-soft); max-width: 60ch; }
.cab-listado .buscador { margin-top: var(--sp-2); height: 52px; max-width: 640px; }
.cab-listado .buscador input { font-size: var(--t-lg); }
.cab-listado--escritorio h1 { font-size: var(--t-3xl); }
.paginacion { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-muted); }
.vacio { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding: var(--sp-7) var(--sp-4); text-align: center; }
.vacio > .icono { width: 40px; height: 40px; color: var(--ink-muted); }
.vacio h2 { font-family: var(--fuente-display); font-size: var(--t-xl); line-height: var(--lh-snug); text-wrap: balance; max-width: 30ch; }
.vacio p { color: var(--ink-muted); font-size: var(--t-base); line-height: var(--lh-normal); max-width: 52ch; }
.chips--sueltos { flex-wrap: wrap; overflow: visible; padding: 0; -webkit-mask-image: none; mask-image: none; }
.chips--sueltos::after { content: none; }
.vacio .chips--sueltos { justify-content: center; }
/* Historias de Al día (hub) */
.historias { display: grid; }
.historia { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); align-items: start; }
.historia img { width: 96px; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: var(--radius-sm); }
.historia__txt { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.historia .titular { font-size: var(--t-lg); line-height: var(--lh-snug); }
.historia__ultima { font-size: var(--t-sm); line-height: var(--lh-snug); color: var(--ink-soft); }
.historia__ultima b { color: var(--accent-text); font-weight: 600; }
.historia:hover .titular { color: var(--accent-text); }
.historia__puntos { display: flex; gap: 6px; margin-top: var(--sp-1); }
.historia__puntos i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brand-accent); background: var(--surface-100); }
.historia__puntos i:last-child { background: var(--brand-accent); }
.historias--escritorio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); padding-top: var(--sp-4); }
.historias--escritorio .historia { grid-template-columns: 1fr; padding: 0; border: 0; }
.historias--escritorio .historia img { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius-md); }
/* Páginas fijas y formularios */
.institucional { max-width: var(--ancho-texto); }
.institucional .cab-listado { border-bottom: 0; padding-bottom: 0; }
.institucional .prosa { margin-top: var(--sp-5); }
.institucional .prosa h2 { font-size: var(--t-xl); margin-top: var(--sp-6); }
.formulario { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 2px solid var(--line-strong); font-family: var(--fuente-body); }
.campo--doble { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.e404 { display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-8); padding-bottom: var(--sp-8); max-width: 640px; }
.e404__num { font-family: var(--fuente-display); font-size: 96px; font-weight: 700; line-height: 1; color: var(--line); letter-spacing: -.04em; }
.e404 .titular { font-size: var(--t-2xl); }
.e404 .chips--sueltos { margin-top: var(--sp-2); }
@media (max-width: 600px) { .campo--doble, .historias--escritorio { grid-template-columns: 1fr; } }

/* ============ 15. Movimiento ============ */
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes aparecer-fondo { from { opacity: 0; } to { opacity: 1; } }
@keyframes acercar { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes crecer { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.aparece { animation: aparecer var(--dur) var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .carrusel, .galeria__pista, .chips { scroll-behavior: auto; }
}
@media (hover: none) {
  .foto-texto:hover img { transform: none; }
}

/* «Revisiones» (11-nov-2026; «Revisado» hasta el 13-nov): cambios en lo publicado */
.revisiones > li p + p { margin-top: 2px; }
.revisiones__titular { font-weight: 600; color: var(--ink); text-decoration: none; }
.revisiones__titular:hover { text-decoration: underline; }
.revisiones .etiqueta { margin-left: var(--sp-2, 8px); }

/* Portada · «Recomendados» (13-nov-2026): columna izquierda, bajo «Más vistos». Sin números
   (no es un ranking de visitas): la sección encima del titular y la foto al lado. */
.p-recomendados { margin-top: var(--sp-6); }
.recomendados { list-style: none; margin: 0; padding: 0; }
.recomendados li + li { border-top: 1px solid var(--line); }
.recomendados a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-3); align-items: start; padding: var(--sp-3) 0; }
.recomendados__txt { display: grid; gap: 4px; min-width: 0; }
/* Foto a la derecha y apaisada, como en las filas: no se confunde con las miniaturas cuadradas a
   la izquierda de «Historias que seguimos» (13-nov-2026). */
.recomendados img { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); outline: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); outline-offset: -1px; }
.recomendados a:active img { opacity: .85; }
.recomendados__titular { font-family: var(--fuente-display); font-weight: 600; font-size: var(--t-base); line-height: var(--lh-snug); color: var(--ink); }
.recomendados a:hover .recomendados__titular { color: var(--accent-text); }

/* Portada · «Revisiones» (13-nov-2026): columna derecha, bajo «Historias que seguimos». Un
   recuadro verde suave, con su propio juego: no son artículos relacionados. */
.revisiones-bloque { margin-top: var(--sp-6); padding: var(--sp-4); border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-soft-ink); }
.revisiones-bloque__cab { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.revisiones-bloque__titulo { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; font-family: var(--fuente-display); font-size: var(--t-md); font-weight: 700; color: var(--accent-soft-ink); }
.revisiones-bloque__todas { font-size: var(--t-sm); font-weight: 600; color: var(--accent-soft-ink); text-decoration: underline; text-underline-offset: 3px; }
.revisiones-bloque__desc { margin: var(--sp-1) 0 var(--sp-2); font-size: var(--t-sm); line-height: var(--lh-snug); color: var(--accent-soft-ink); opacity: .85; }
.revisiones-bloque__lista { list-style: none; margin: 0; padding: 0; }
.revisiones-bloque__lista li + li { border-top: 1px solid color-mix(in srgb, var(--accent-soft-ink) 18%, transparent); }
.revisiones-bloque__lista a { display: grid; gap: 3px; padding: var(--sp-3) 0; }
.revisiones-bloque__lista li:last-child a { padding-bottom: 0; }
.revisiones-bloque__tipo { font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em; color: var(--accent-soft-ink); }
.revisiones-bloque__tipo time { font-weight: 400; }
.revisiones-bloque__titular { font-family: var(--fuente-display); font-weight: 600; font-size: var(--t-base); line-height: var(--lh-snug); color: var(--ink); }
.revisiones-bloque__lista a:hover .revisiones-bloque__titular { color: var(--accent-soft-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Página del autor: perfil (17-nov-2026) */
.perfil { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-4) 0 var(--sp-4); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-4); }
.perfil__foto { flex: none; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--surface-100); border: 1px solid var(--line); display: grid; place-items: center; }
.perfil__foto img { width: 100%; height: 100%; object-fit: cover; }
.perfil__iniciales { font-family: var(--fuente-display); font-size: 48px; color: var(--ink-muted); }
.perfil__datos > * { margin: 0 0 var(--sp-1); }
.perfil__nombre { margin-bottom: var(--sp-2); }
.perfil__presentacion { font-size: var(--t-md); color: var(--ink); max-width: 60ch; }
.perfil__enlaces { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-2); }
.perfil__bio { max-width: 70ch; margin: 0 0 var(--sp-5); }
@media (max-width: 640px) {
  .perfil { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .perfil__foto { width: 88px; height: 88px; }
}
