/* ==========================================================================
   ARCHIVO 13 - sistema visual
   Direccion: diario de archivo. Densidad y jerarquia de medio de noticias
   sobre lenguaje de expediente (papel, sello, taladros, banda de clasificacion).
   Reglas: sin retículas de fondo, sin degradados, sin cantos redondeados,
   sin pildoras de color. Tipografia grande. Movil primero. Claro y oscuro.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tema claro (por defecto)
   -------------------------------------------------------------------------- */
:root{
  --fondo:        #F4F0E6;
  --superficie:   #FFFFFF;
  --superficie-2: #EDE8DB;
  --superficie-3: #E2DCCB;
  --linea:        #D6CFBD;
  --linea-2:      #BEB6A0;

  --texto:        #15140F;
  --texto-2:      #453F33;
  --texto-3:      #6E6757;

  --papel:        #FFFFFF;
  --papel-borde:  #DCD5C4;
  --tinta:        #15140F;
  --tinta-2:      #453F33;
  --tinta-3:      #6E6757;
  --hueco-cara:   #EDE8DB;

  --rojo:         #C1121F;
  --rojo-2:       #9A0E19;
  --rojo-suave:   rgba(193,18,31,.09);
  --olivo:        #55603C;
  --ambar:        #A8710F;
  --azul:         #1F4E79;

  --sombra:       6px 6px 0 rgba(21,20,15,.12);
  --sombra-alta:  9px 9px 0 rgba(21,20,15,.14);

  --titular: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --lectura: "Spectral", Georgia, "Times New Roman", serif;
  --maquina: "Courier Prime", "Courier New", monospace;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Tema oscuro
   -------------------------------------------------------------------------- */
:root[data-tema="oscuro"]{
  --fondo:        #100F0D;
  --superficie:   #1A1916;
  --superficie-2: #201F1B;
  --superficie-3: #2A2823;
  --linea:        #35322B;
  --linea-2:      #4A463C;

  --texto:        #F2EDE1;
  --texto-2:      #C6BFB0;
  --texto-3:      #948C7C;

  --papel:        #1A1916;
  --papel-borde:  #35322B;
  --tinta:        #F2EDE1;
  --tinta-2:      #C6BFB0;
  --tinta-3:      #948C7C;
  --hueco-cara:   #16150F;

  --rojo:         #E8404E;
  --rojo-2:       #FF5C68;
  --rojo-suave:   rgba(232,64,78,.14);
  --olivo:        #9AA372;
  --ambar:        #D9A441;
  --azul:         #6FA8DC;

  --sombra:       6px 6px 0 rgba(0,0,0,.5);
  --sombra-alta:  9px 9px 0 rgba(0,0,0,.5);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  scroll-padding-top:120px;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--fondo);
  color:var(--texto);
  font-family:var(--titular);
  font-size:1.0625rem;          /* 17px movil */
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
@media (min-width:768px){ body{ font-size:1.125rem; } }   /* 18px escritorio */

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

::selection{ background:var(--rojo); color:#fff; }

h1,h2,h3,h4{
  font-family:var(--titular);
  font-weight:700;
  letter-spacing:-.015em;
  line-height:1.1;
  margin:0;
  color:var(--texto);
}

/* Etiquetas de maquina de escribir. Minimo 13 px, poco espaciado. */
.maq{
  font-family:var(--maquina);
  font-size:.8125rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1.4;
}
.maq-s{ font-family:var(--maquina); font-size:.875rem; letter-spacing:.02em; line-height:1.5; }

.ancho{ width:100%; max-width:1300px; margin-inline:auto; padding-inline:1rem; }
@media (min-width:768px){ .ancho{ padding-inline:1.75rem; } }
.pliego{ width:100%; max-width:1100px; margin-inline:auto; padding-inline:1rem; }

/* --------------------------------------------------------------------------
   4. Banda de clasificacion
   -------------------------------------------------------------------------- */
.banda{
  background:var(--rojo);
  color:#fff;
  font-family:var(--maquina);
  font-size:.78rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-align:center;
  padding:.4rem 1rem;
  display:flex; align-items:center; justify-content:center; gap:1rem;
  flex-wrap:wrap;
}
.banda .sep{ opacity:.55; }
.banda--tinta{ background:var(--superficie-3); color:var(--texto-2); }

/* --------------------------------------------------------------------------
   5. Cabecera
   -------------------------------------------------------------------------- */
.cabecera{
  position:sticky; top:0; z-index:60;
  background:var(--fondo);
  border-bottom:1px solid var(--linea);
}
.cabecera__fila{ display:flex; align-items:center; gap:1rem; padding-block:.85rem; }

.marca{ display:flex; align-items:center; gap:.7rem; flex-shrink:0; }
.marca__sigla{
  display:grid; place-items:center;
  width:42px; height:42px; flex-shrink:0;
  border:2px solid var(--texto);
  font-family:var(--titular); font-weight:800; font-size:1.05rem;
  letter-spacing:.02em;
}
.marca__nom{ font-family:var(--titular); font-weight:800; font-size:1.15rem; line-height:1.05; letter-spacing:-.02em; }
.marca__dom{ font-family:var(--maquina); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--texto-3); margin-top:.15rem; }

/* Cinta de secciones */
.secciones{
  border-top:1px solid var(--linea);
  overflow-x:auto;
  scrollbar-width:none;
}
.secciones::-webkit-scrollbar{ display:none; }
.secciones__lista{ display:flex; gap:0; min-width:max-content; }
.seccion-link{
  display:block; white-space:nowrap;
  font-size:.95rem; font-weight:600;
  color:var(--texto-2);
  padding:.8rem .9rem;
  border-bottom:3px solid transparent;
}
.seccion-link:hover{ color:var(--texto); background:var(--superficie-2); }
.seccion-link.activa{ color:var(--rojo); border-bottom-color:var(--rojo); }

.icono-btn{
  display:grid; place-items:center;
  width:44px; height:44px; flex-shrink:0;
  border:1px solid var(--linea-2);
  background:transparent; color:var(--texto-2);
  cursor:pointer;
}
.icono-btn:hover{ color:var(--texto); border-color:var(--texto-3); }

.buscar-btn{
  display:flex; align-items:center; gap:.6rem;
  width:100%; min-height:44px;
  border:1px solid var(--linea-2); background:var(--superficie);
  padding:.5rem .8rem; color:var(--texto-3);
  font-size:.95rem; cursor:pointer; text-align:left;
}
.buscar-btn:hover{ border-color:var(--texto-3); color:var(--texto-2); }
.tecla{
  font-family:var(--maquina); font-size:.75rem;
  border:1px solid var(--linea-2); padding:.1rem .35rem; color:var(--texto-3);
}

/* --------------------------------------------------------------------------
   6. Rotulos de seccion
   -------------------------------------------------------------------------- */
.rotulo{
  display:flex; align-items:center; gap:.9rem;
  font-family:var(--maquina); font-size:.85rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--texto-3);
  margin-bottom:1rem;
}
.rotulo::after{ content:""; flex:1; height:1px; background:var(--linea); }

.titulo-seccion{
  font-size:clamp(1.5rem, 4.2vw, 2.1rem);
  display:flex; align-items:baseline; gap:.8rem; flex-wrap:wrap;
}
.titulo-seccion .cod{ font-family:var(--maquina); font-size:.85rem; color:var(--rojo); letter-spacing:.1em; }

/* --------------------------------------------------------------------------
   7. Ficha de entrada (la unidad del feed)
   -------------------------------------------------------------------------- */
.ficha{
  display:flex; flex-direction:column;
  background:var(--superficie);
  border:1px solid var(--linea);
  height:100%;
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ficha:hover{ border-color:var(--rojo); transform:translateY(-2px); box-shadow:var(--sombra); }
.ficha__cara{
  position:relative;
  aspect-ratio:16/9;
  background-color:var(--superficie-2);
  background-image:repeating-linear-gradient(135deg, rgba(128,128,128,.07) 0 1px, transparent 1px 11px);
  border-bottom:1px solid var(--linea);
  display:grid; place-items:center;
  overflow:hidden;
}
.ficha__cara svg{ width:46%; height:auto; color:var(--texto-3); }
.ficha:hover .ficha__cara svg{ color:var(--rojo); }
.ficha__ref{
  position:absolute; left:0; top:0;
  font-family:var(--maquina); font-size:.75rem; letter-spacing:.08em;
  background:var(--texto); color:var(--fondo);
  padding:.2rem .5rem;
}
.ficha__cuerpo{ display:flex; flex-direction:column; flex:1; padding:1.1rem; gap:.6rem; }
.ficha__cat{
  font-family:var(--maquina); font-size:.78rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--rojo); font-weight:700;
}
.ficha__tit{
  font-size:1.2rem; font-weight:700; line-height:1.22; letter-spacing:-.015em;
}
.ficha:hover .ficha__tit{ text-decoration:underline; text-underline-offset:3px; }
.ficha__txt{ font-size:.98rem; line-height:1.5; color:var(--texto-2); }
.ficha__pie{
  margin-top:auto; padding-top:.8rem; border-top:1px solid var(--linea);
  display:flex; align-items:center; gap:.7rem; flex-wrap:wrap;
  font-family:var(--maquina); font-size:.78rem; letter-spacing:.05em; color:var(--texto-3);
}

/* Ficha grande de portada */
.ficha--destacada{ height:auto; }
.ficha--destacada .ficha__cara{ aspect-ratio:2.5/1; }
.ficha--destacada .ficha__cara svg{ width:110px; }
.ficha--destacada .ficha__tit{ font-size:clamp(1.6rem, 5vw, 2.6rem); line-height:1.08; }
.ficha--destacada .ficha__txt{ font-size:1.08rem; }
.ficha--destacada .ficha__cuerpo{ padding:1.4rem; gap:.8rem; }
@media (min-width:768px){ .ficha--destacada .ficha__cuerpo{ padding:1.9rem; } }

/* Ficha en linea (listas laterales) */
.ficha-linea{
  display:flex; gap:.9rem; align-items:flex-start;
  padding:.9rem 0; border-bottom:1px solid var(--linea);
}
.ficha-linea:last-child{ border-bottom:0; }
.ficha-linea__cara{
  width:78px; height:60px; flex-shrink:0;
  background:var(--superficie-2); border:1px solid var(--linea);
  display:grid; place-items:center;
}
.ficha-linea__cara svg{ width:50%; color:var(--texto-3); }
.ficha-linea__tit{ display:block; font-size:1.02rem; font-weight:700; line-height:1.25; }
.ficha-linea:hover .ficha-linea__tit{ color:var(--rojo); }
.ficha-linea__meta{ display:block; font-family:var(--maquina); font-size:.76rem; letter-spacing:.06em; color:var(--texto-3); margin-top:.3rem; text-transform:uppercase; }

/* Numeracion de lo mas leido */
.top-num{
  font-family:var(--titular); font-weight:800; font-size:1.6rem;
  color:var(--rojo); line-height:1; width:2rem; flex-shrink:0;
}

/* --------------------------------------------------------------------------
   8. Estado del expediente (barra + texto, nunca pildora)
   -------------------------------------------------------------------------- */
.estado{
  display:inline-flex; align-items:center; gap:.45rem;
  font-family:var(--maquina); font-size:.78rem; letter-spacing:.08em;
  text-transform:uppercase; white-space:nowrap; font-weight:700;
}
.estado::before{ content:""; width:16px; height:3px; background:currentColor; flex-shrink:0; }
.estado--abierto{ color:var(--olivo); }
.estado--revision{ color:var(--ambar); }
.estado--censurado{ color:var(--rojo); }

/* --------------------------------------------------------------------------
   9. Papel: superficie de lectura
   -------------------------------------------------------------------------- */
.papel{
  position:relative;
  background:var(--papel);
  color:var(--tinta);
  border:1px solid var(--papel-borde);
  box-shadow:var(--sombra);
}
.papel--doc{ padding:1.4rem; }
@media (min-width:900px){ .papel--doc{ padding:2.4rem 2.6rem 2.4rem 4.2rem; } }
.taladros{ position:absolute; left:16px; top:0; width:14px; pointer-events:none; }
.taladros i{
  position:absolute; left:0; width:14px; height:14px; border-radius:50%;
  background:var(--fondo);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.45);
}
.taladros i:nth-child(1){ top:96px; }
.taladros i:nth-child(2){ top:186px; }
.taladros i:nth-child(3){ top:276px; }
@media (max-width:900px){ .taladros{ display:none; } }

.sello{
  display:inline-block;
  font-family:var(--maquina); font-weight:700;
  text-transform:uppercase; letter-spacing:.16em;
  font-size:.85rem; padding:.4rem .8rem;
  border:2px solid var(--rojo); color:var(--rojo);
  transform:rotate(-5deg);
}
.sello--peq{ font-size:.75rem; padding:.3rem .6rem; letter-spacing:.12em; }

/* --------------------------------------------------------------------------
   10. Lectura larga
   -------------------------------------------------------------------------- */
.prosa{
  font-family:var(--lectura);
  font-size:1.2rem;
  line-height:1.75;
  color:var(--tinta);
  max-width:40em;
}
@media (max-width:640px){ .prosa{ font-size:1.14rem; line-height:1.7; } }

.prosa p{ margin:0 0 1.3em; }
.prosa > p:first-of-type{ font-size:1.28rem; line-height:1.65; color:var(--tinta); }
.prosa h2{
  font-family:var(--titular); font-size:1.75rem; line-height:1.15;
  margin:2.2em 0 .6em; padding-bottom:.35rem;
  border-bottom:2px solid var(--tinta); color:var(--tinta);
  scroll-margin-top:130px;
}
.prosa h3{
  font-family:var(--titular); font-size:1.3rem; line-height:1.2;
  margin:1.9em 0 .5em; color:var(--tinta); scroll-margin-top:130px;
}
.prosa a{ color:var(--rojo); border-bottom:1px solid currentColor; font-weight:500; }
.prosa a:hover{ background:var(--rojo-suave); }
.prosa strong{ font-weight:600; }
.prosa ul, .prosa ol{ margin:0 0 1.3em; padding-left:1.4rem; }
.prosa li{ margin:.45em 0; }
.prosa ul{ list-style:none; padding-left:1.5rem; }
.prosa ul li{ position:relative; }
.prosa ul li::before{
  content:""; position:absolute; left:-1.2rem; top:.68em;
  width:10px; height:2px; background:var(--rojo);
}
.prosa blockquote{
  margin:2em 0; padding:.2rem 0 .2rem 1.4rem;
  border-left:4px solid var(--rojo);
  font-size:1.3rem; line-height:1.5;
}
.prosa blockquote cite{
  display:block; margin-top:.7rem;
  font-family:var(--maquina); font-size:.85rem; letter-spacing:.06em;
  text-transform:uppercase; color:var(--tinta-3); font-style:normal;
}
.prosa figure{ margin:2em 0; }
.prosa figcaption{ font-family:var(--maquina); font-size:.82rem; color:var(--tinta-3); margin-top:.6rem; }

/* Cajas dentro del cuerpo */
.caja{
  margin:2.2em 0; padding:1.2rem 1.3rem;
  border:1px solid var(--linea-2);
  background:var(--superficie-2);
}
.caja__t{
  font-family:var(--maquina); font-size:.85rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--rojo); font-weight:700;
  margin:0 0 .7rem; display:flex; align-items:center; gap:.6rem;
}
.caja__t::before{ content:""; width:20px; height:3px; background:currentColor; }
.caja p{ margin:0; font-family:var(--lectura); font-size:1.08rem; line-height:1.6; }
.caja--olivo .caja__t{ color:var(--olivo); }
.caja--gris .caja__t{ color:var(--texto-3); }

.fuentes{ margin:2.4em 0 0; border-top:3px solid var(--tinta); padding-top:1.1rem; }
.fuentes__t{
  font-family:var(--maquina); font-size:.85rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--tinta-2); margin:0 0 .9rem; font-weight:700;
}
.fuentes ol{ margin:0; padding:0; list-style:none; counter-reset:f; }
.fuentes li{
  position:relative; padding:.6rem 0 .6rem 3.6rem;
  border-bottom:1px solid var(--linea);
  font-family:var(--maquina); font-size:.9rem; line-height:1.55;
  text-transform:none; letter-spacing:0; color:var(--tinta-2);
}
.fuentes li::before{
  counter-increment:f; content:"F-0" counter(f);
  position:absolute; left:0; top:.6rem; color:var(--rojo); font-weight:700;
}

/* Censura */
.redactado{
  display:inline; color:transparent;
  background:var(--tinta); box-shadow:0 0 0 2px var(--tinta);
  cursor:pointer; -webkit-user-select:none; user-select:none;
  transition:background .16s ease, color .16s ease, box-shadow .16s ease;
}
.redactado.abierto, .redactado:hover{
  background:transparent; color:var(--tinta);
  box-shadow:0 0 0 2px transparent;
  border-bottom:2px solid var(--rojo);
}
.redactado--sellado{ cursor:not-allowed; }
.redactado--sellado:hover{ background:var(--tinta); color:transparent; box-shadow:0 0 0 2px var(--tinta); border-bottom:0; }

/* --------------------------------------------------------------------------
   11. Indice del expediente
   -------------------------------------------------------------------------- */
.indice-link{
  display:block; padding:.55rem .8rem;
  font-size:.95rem; line-height:1.35; color:var(--texto-2);
  border-left:3px solid var(--linea);
}
.indice-link:hover{ color:var(--texto); background:var(--superficie-2); }
.indice-link.activo{ color:var(--rojo); border-left-color:var(--rojo); background:var(--rojo-suave); font-weight:600; }
.indice-link--sub{ padding-left:1.6rem; font-size:.9rem; }

#barraLectura{
  position:fixed; top:0; left:0; height:4px; width:0;
  background:var(--rojo); z-index:70; transition:width .1s linear;
}

/* --------------------------------------------------------------------------
   12. Botones
   -------------------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  min-height:46px; padding:.7rem 1.3rem;
  font-family:var(--titular); font-weight:700; font-size:.98rem;
  letter-spacing:.01em; border:2px solid transparent; cursor:pointer;
  transition:transform .12s ease, background .15s ease, color .15s ease;
}
.btn-rojo{ background:var(--rojo); color:#fff; }
.btn-rojo:hover{ background:var(--rojo-2); transform:translateY(-2px); }
.btn-tinta{ background:var(--texto); color:var(--fondo); }
.btn-tinta:hover{ transform:translateY(-2px); }
.btn-linea{ border-color:var(--linea-2); color:var(--texto); }
.btn-linea:hover{ border-color:var(--texto); background:var(--superficie-2); }
.btn--ancho{ width:100%; }

/* --------------------------------------------------------------------------
   13. Huecos de publicidad
   -------------------------------------------------------------------------- */
.hueco{
  position:relative; display:flex; align-items:center; justify-content:center;
  border:1px dashed var(--linea-2); background:var(--hueco-cara);
  color:var(--texto-3); text-align:center;
}
.hueco__t{ font-family:var(--maquina); font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; line-height:1.9; }
.hueco__e{
  position:absolute; top:0; left:0;
  font-family:var(--maquina); font-size:.7rem; letter-spacing:.12em; text-transform:uppercase;
  background:var(--superficie-3); color:var(--texto-3); padding:.15rem .45rem;
}
.hueco-728{ width:100%; max-width:728px; height:90px; margin-inline:auto; }
.hueco-320{ width:100%; max-width:320px; height:100px; margin-inline:auto; }
.hueco-300x250{ width:100%; max-width:336px; height:280px; margin-inline:auto; }
.hueco-300x600{ width:300px; height:600px; margin-inline:auto; }

/* --------------------------------------------------------------------------
   14. Buscador
   -------------------------------------------------------------------------- */
#capaBusqueda[hidden]{ display:none; }
.resultado{
  display:block; padding:.9rem 1rem;
  border-bottom:1px solid var(--linea);
}
.resultado:hover, .resultado.cursor{ background:var(--superficie-2); }
.res-cod{ font-family:var(--maquina); font-size:.78rem; letter-spacing:.08em; color:var(--rojo); font-weight:700; }
.res-tit{ font-size:1.05rem; font-weight:700; line-height:1.25; margin-top:.25rem; }
.res-sec{ font-family:var(--maquina); font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--texto-3); margin-top:.25rem; }

/* --------------------------------------------------------------------------
   15. Tomos (fondo editorial)
   -------------------------------------------------------------------------- */
.tomo{
  position:relative; display:flex; flex-direction:column; height:100%;
  background:var(--superficie); border:1px solid var(--linea);
  padding:1.3rem 1.3rem 1.3rem 1.6rem;
}
.tomo::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:6px; background:var(--rojo); }
.tomo--olivo::before{ background:var(--olivo); }
.tomo--ambar::before{ background:var(--ambar); }
.tomo__n{ font-family:var(--maquina); font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; color:var(--texto-3); }
.tomo__t{ font-size:1.3rem; font-weight:700; line-height:1.15; margin:.6rem 0 .5rem; }
.tomo__d{ font-size:1rem; line-height:1.5; color:var(--texto-2); }

.campo{
  width:100%; min-height:48px;
  background:var(--superficie); border:1px solid var(--linea-2);
  color:var(--texto); padding:.7rem .9rem; font-size:1rem; font-family:var(--titular);
}
.campo::placeholder{ color:var(--texto-3); }
.campo:focus{ outline:none; border-color:var(--rojo); }

/* --------------------------------------------------------------------------
   16. Migas y varios
   -------------------------------------------------------------------------- */
.migas{ font-family:var(--maquina); font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; color:var(--texto-3); }
.migas a:hover{ color:var(--rojo); }
.migas .sep{ margin:0 .5rem; color:var(--linea-2); }

.panel{ background:var(--superficie); border:1px solid var(--linea); padding:1.3rem; }
.filete{ border-top:1px solid var(--linea); }

.tema-nube{ display:flex; flex-wrap:wrap; gap:.5rem; }
.tema{
  display:inline-block; padding:.45rem .8rem;
  border:1px solid var(--linea-2); font-size:.92rem; font-weight:600; color:var(--texto-2);
}
.tema:hover{ border-color:var(--rojo); color:var(--rojo); }

.aparece{ opacity:0; transform:translateY(10px); transition:opacity .45s ease, transform .45s ease; }
.aparece.dentro{ opacity:1; transform:none; }

.solo-lectores{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .aparece{ opacity:1; transform:none; }
}

/* --------------------------------------------------------------------------
   17. Cinta de última hora y fichas con imagen
   -------------------------------------------------------------------------- */
.cinta-ultima{ background:var(--rojo); color:#fff; }
.cinta-ultima__fila{
  display:flex; align-items:center; gap:1.25rem;
  overflow-x:auto; scrollbar-width:none; padding-block:.7rem;
}
.cinta-ultima__fila::-webkit-scrollbar{ display:none; }
.cinta-ultima__eti{
  font-family:var(--maquina); font-size:.8rem; letter-spacing:.16em;
  text-transform:uppercase; font-weight:700; white-space:nowrap;
  border:2px solid #fff; padding:.2rem .6rem; flex-shrink:0;
}
.cinta-ultima__it{
  font-size:1rem; font-weight:600; white-space:nowrap; opacity:.95;
  border-bottom:1px solid rgba(255,255,255,.35);
}
.cinta-ultima__it:hover{ opacity:1; border-bottom-color:#fff; }

.ficha--foto .ficha__cara{ background-image:none; padding:0; }
.ficha--foto .ficha__cara img{ width:100%; height:100%; object-fit:cover; }

/* --------------------------------------------------------------------------
   18. Interruptor de tema y unidades reales de publicidad
   -------------------------------------------------------------------------- */
.tema-sw{
  display:flex; align-items:stretch;
  border:1px solid var(--linea-2); background:var(--superficie);
  height:44px; padding:0; cursor:pointer; flex-shrink:0;
}
.tema-sw__c{
  display:grid; place-items:center;
  width:34px; color:var(--texto-3);
  transition:background .14s ease, color .14s ease;
}
.tema-sw:hover{ border-color:var(--texto-3); }
:root:not([data-tema="oscuro"]) .tema-sw__c[data-luz]{ background:var(--texto); color:var(--fondo); }
:root[data-tema="oscuro"] .tema-sw__c[data-oscuro]{ background:var(--texto); color:var(--fondo); }

.hueco-real{ display:flex; align-items:center; justify-content:center; margin-inline:auto; overflow:hidden; }
.hueco-real.hueco-728{ min-height:90px; }
.hueco-real.hueco-300x250{ min-height:280px; }
.hueco-real.hueco-300x600{ min-height:600px; width:300px; }
.adsbygoogle{ display:block; }

/* Aviso de bloqueador, solo informativo */
.aviso-bloqueo{
  border:1px solid var(--linea-2); border-left:5px solid var(--ambar);
  background:var(--superficie-2); padding:1rem 1.15rem; margin:1.5rem 0;
  font-size:.98rem; color:var(--texto-2);
}

/* Fotografía de portada del expediente */
.foto-portada{ margin:0 0 2rem; }
.foto-portada img{
  width:100%; height:auto; max-height:520px; object-fit:cover;
  border:1px solid var(--linea); display:block;
}
.foto-portada figcaption{
  font-family:var(--maquina); font-size:.8rem; letter-spacing:.04em;
  color:var(--texto-3); margin-top:.6rem; line-height:1.5;
}
