/* Recorridos de consulta PDI 2028-2038 — Universidad de Antioquia
   Colores y tipografías del Manual de Identidad Institucional, versión 8.
   Paleta principal (pág. 22): #026937 #35944b #43b649 #8dc63f #3ebdac #069a7e #0e7774
   Paleta complementaria (pág. 23): #70205b #137598 #ef434d #f9a12c #532D87
   Solo #026937, #0e7774 y los neutros llevan texto sobre blanco (contraste AA); el resto es trazo o relleno. */

:root {
  --verde: #026937;          /* verde institucional · Pantone 349 C */
  --verde-hoja: #35944b;
  --verde-vivo: #43b649;
  --verde-lima: #8dc63f;
  --turquesa: #3ebdac;
  --verde-agua: #069a7e;
  --petroleo: #0e7774;
  --vino: #70205b;
  --naranja: #f9a12c;
  --rojo: #ef434d;

  --tinta: #262626;
  --tinta-suave: #555555;
  --borde: #767676;          /* bordes de campos: ≥ 3:1 */
  --linea: #cfe0d5;          /* divisores decorativos */
  --fondo: #ffffff;
  --superficie: #eff6f1;     /* verde institucional al 6 % */
  --sobre-verde: #ffffff;

  --slab: "Roboto Slab", "Times New Roman", serif;
  --sans: "Roboto", Arial, sans-serif;

  --escala: 1;
  --ancho: 44rem;
  --ancho-cabecera: 70rem;
  --radio: 4px;
  --t: 420ms cubic-bezier(.2, .7, .2, 1);
}

:root[data-contraste="alto"] {
  --tinta: #000000;
  --tinta-suave: #000000;
  --borde: #000000;
  --linea: #000000;
  --superficie: #ffffff;
  --verde-vivo: #026937;
  --verde-lima: #026937;
  --turquesa: #0e7774;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: calc(100% * var(--escala));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

a { color: var(--verde); text-underline-offset: .18em; }
a:hover { color: var(--petroleo); }

:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
  border-radius: 2px;
}

.saltar {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--verde); color: var(--sobre-verde);
  padding: .6rem 1rem; z-index: 10; border-radius: var(--radio);
}
.saltar:focus { top: 1rem; color: var(--sobre-verde); }

.oculto {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ───────────── Cabecera: logosímbolo horizontal + línea verde (como las páginas del manual) ───────────── */

.cabecera {
  border-bottom: 3px solid var(--verde);
  background: var(--fondo);
}
.cabecera__interior {
  max-width: var(--ancho-cabecera);
  margin: 0 auto;
  padding: 1.25rem 1rem;             /* área de reserva ≥ altura de la «U» */
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.cabecera__logo { display: block; line-height: 0; }
.cabecera__logo img { width: 200px; height: auto; }   /* mínimo digital del manual: 130 px */
.cabecera__logo:focus-visible { outline-offset: 8px; }

.lectura { display: flex; align-items: center; gap: .35rem; }
.lectura__rotulo { font-size: .875rem; color: var(--tinta-suave); margin-right: .15rem; }
.lectura__boton {
  font: 500 .875rem/1 var(--sans);
  color: var(--verde);
  background: var(--fondo);
  border: 1px solid var(--verde);
  border-radius: var(--radio);
  padding: .5rem .6rem;
  min-height: 2.25rem;
  cursor: pointer;
}
.lectura__boton:hover { background: var(--superficie); }
.lectura__boton[aria-pressed="true"] { background: var(--verde); color: var(--sobre-verde); }
.lectura__boton[disabled] { opacity: .45; cursor: not-allowed; }
.lectura__corto { display: none; }

/* ───────────── Contenido ───────────── */

.contenido {
  flex: 1;
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}
.contenido:focus { outline: none; }

h1, h2, h3 { font-family: var(--slab); color: var(--verde); margin: 0; }
h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1:focus { outline: none; }
h2 { font-weight: 700; font-size: 1.35rem; line-height: 1.25; }
h3 { font-weight: 500; font-size: 1.125rem; line-height: 1.3; }
p { margin: 0 0 1rem; }

.filete {                         /* línea verde bajo el título, como en el manual */
  width: 4.5rem; height: 3px; background: var(--verde);
  border: 0; margin: 1.25rem 0 1.5rem;
}

.documento-fuente {               /* encabezado textual del instrumento */
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;      /* los .docx lo traen en versales; los PDF de organizaciones, no */
  color: var(--tinta-suave);
  margin: 0 0 1.25rem;
  padding-left: .75rem;
  border-left: 3px solid var(--verde-vivo);
}
.documento-fuente span { display: block; }
.documento-fuente span:last-child { color: var(--verde); font-weight: 500; }

.entrada { font-size: 1.1875rem; font-weight: 300; line-height: 1.55; }
.entrada strong { font-weight: 500; }

.datos { margin: 1.5rem 0; display: grid; gap: .75rem; }
.datos div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; }
.datos dt { font-weight: 500; color: var(--verde); }
.datos dd { margin: 0; }

.saludo {
  margin: 2rem 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: var(--superficie);
  border-left: 4px solid var(--verde);
}
.saludo p:last-child { margin-bottom: 0; }
.saludo__titulo { font-family: var(--slab); font-weight: 500; font-size: 1.125rem; color: var(--verde); }

/* ───────────── Botones ───────────── */

.acciones {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  margin-top: 2rem;
}
.acciones--separadas { justify-content: space-between; }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 500 1rem/1.2 var(--sans);
  padding: .85rem 1.4rem;
  min-height: 3rem;
  border-radius: var(--radio);
  border: 2px solid var(--verde);
  background: var(--verde);
  color: var(--sobre-verde);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms, border-color 160ms;
}
.boton:hover { background: var(--petroleo); border-color: var(--petroleo); color: var(--sobre-verde); }
.boton--secundario { background: var(--fondo); color: var(--verde); }
.boton--secundario:hover { background: var(--superficie); color: var(--verde); border-color: var(--verde); }
.boton--texto {
  background: none; border-color: transparent; color: var(--verde);
  padding-left: 0; padding-right: 0; text-decoration: underline;
}
.boton--texto:hover { background: none; border-color: transparent; color: var(--petroleo); }
.boton[disabled] { opacity: .45; cursor: not-allowed; }

.atajo { font-size: .875rem; color: var(--tinta-suave); margin: .75rem 0 0; }
@media (pointer: coarse) { .atajo__teclas { display: none; } }
kbd {
  font: 500 .8125rem/1 var(--sans);
  border: 1px solid var(--borde); border-bottom-width: 2px;
  border-radius: 3px; padding: .1rem .35rem;
}

/* ───────────── La ruta 2026 → 2038 (el elemento protagonista) ─────────────
   Cada estación es un año: arriba el año, en el centro el punto, abajo el rótulo. */

.ruta { --n: 4; --arriba: 1.65rem; --radio-punto: 1rem; margin: 0 0 2rem; }
.ruta__cuerpo { position: relative; }
.ruta__pista, .ruta__avance {
  position: absolute;
  top: calc(var(--arriba) + var(--radio-punto) - 2px);
  height: 4px;
  border-radius: 2px;
}
.ruta__pista {
  left: calc(100% / var(--n) / 2);
  right: calc(100% / var(--n) / 2);
  background: var(--linea);
}
.ruta__avance {
  left: calc(100% / var(--n) / 2);
  width: calc((100% - 100% / var(--n)) * var(--avance, 0));
  background: linear-gradient(90deg, var(--verde), var(--verde-vivo));
  transition: width var(--t), height var(--t);
}
.ruta__estaciones {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--n), 1fr);
}
.ruta__hito { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.ruta__enlace {
  display: flex; flex-direction: column; align-items: center;
  color: inherit; text-decoration: none; border-radius: var(--radio);
  padding: 0 .15rem;
}
.ruta__anio {
  display: block;
  height: 1.25rem; margin-bottom: .4rem;
  font: 500 .8125rem/1.25rem var(--slab);
  color: var(--tinta-suave);
  font-variant-numeric: tabular-nums;
}
.ruta__punto {
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 .875rem/1 var(--slab);
  background: var(--fondo);
  border: 3px solid var(--linea);
  color: var(--tinta-suave);
  transition: background-color var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.ruta__rotulo {
  margin-top: .45rem;
  font-size: .8125rem; line-height: 1.25;
  color: var(--tinta-suave);
  hyphens: auto;
  overflow-wrap: break-word;
}
.ruta__hito--anio .ruta__anio { font-weight: 700; font-size: .9375rem; color: var(--verde); }
.ruta__hito--anio .ruta__punto { width: 1.1rem; height: 1.1rem; margin: calc(var(--radio-punto) - .55rem) 0; border-width: 3px; }
.ruta__hito--origen .ruta__punto { background: var(--verde); border-color: var(--verde); }
.ruta__hito--meta .ruta__punto { border-color: var(--verde); }
.ruta__hito--meta.is-alcanzada .ruta__punto { background: var(--verde); }

.ruta__hito.is-hecha .ruta__punto { background: var(--verde); border-color: var(--verde); color: var(--sobre-verde); }
.ruta__hito.is-hecha .ruta__anio { color: var(--verde); }
.ruta__hito.is-actual .ruta__punto {
  border-color: var(--verde); color: var(--verde);
  transform: scale(1.18);
  box-shadow: 0 0 0 5px var(--superficie);
}
.ruta__hito.is-actual .ruta__anio { color: var(--verde); font-weight: 700; }
.ruta__hito.is-actual .ruta__rotulo { color: var(--tinta); font-weight: 700; }
.ruta__hito.is-hecha.is-actual .ruta__punto { color: var(--sobre-verde); }
.ruta__enlace:hover .ruta__punto { border-color: var(--verde); }

.ruta--mapa { --radio-punto: 1.25rem; margin: 1.5rem 0 0; }
.ruta--mapa .ruta__punto { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
.ruta--mapa .ruta__hito--anio .ruta__punto { width: 1.1rem; height: 1.1rem; }

@media (max-width: 34rem) {
  .ruta:not(.ruta--mapa) .ruta__rotulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  /* En celular, el mapa de la portada se lee de arriba abajo: año · punto · rótulo */
  .ruta--mapa .ruta__estaciones { grid-template-columns: 1fr; gap: .85rem; }
  .ruta--mapa .ruta__hito, .ruta--mapa .ruta__enlace { flex-direction: row; align-items: center; gap: .85rem; text-align: left; padding: 0; }
  .ruta--mapa .ruta__anio { width: 2.75rem; height: auto; margin: 0; text-align: right; flex: none; }
  .ruta--mapa .ruta__rotulo { margin-top: 0; font-size: .9375rem; }
  .ruta--mapa .ruta__hito--anio .ruta__punto { margin: 0 .7rem; }
  .ruta--mapa .ruta__pista, .ruta--mapa .ruta__avance { left: calc(2.75rem + .85rem + 1.25rem - 2px); right: auto; width: 4px; top: 1.25rem; }
  .ruta--mapa .ruta__pista { bottom: 1.25rem; height: auto; }
  .ruta--mapa .ruta__avance { height: calc((100% - 2.5rem) * var(--avance, 0)); background: linear-gradient(180deg, var(--verde), var(--verde-vivo)); }
}

/* ───────────── Portada del instrumento ───────────── */

.mapa {
  margin: 2.5rem 0 0;
  padding: 1.5rem 1.25rem 1.75rem;
  border: 1px solid var(--linea);
  border-top: 4px solid var(--verde);
  border-radius: 0 0 var(--radio) var(--radio);
}
.mapa__pie { margin: 1.25rem 0 0; color: var(--tinta-suave); font-size: .9375rem; }

.plazo {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: .35rem .75rem;
  border-radius: var(--radio);
  background: var(--superficie);
  color: var(--verde);
  font-weight: 500;
  font-size: .9375rem;
}
.borrador {
  margin: 1.5rem 0 0; padding: 1rem 1.25rem;
  border: 2px dashed var(--verde-hoja); border-radius: var(--radio);
}
.borrador p { margin: 0 0 .75rem; }

/* ───────────── Etapa ───────────── */

.etapa__numero { font: 700 1rem/1.3 var(--slab); color: var(--verde); margin: 0; }

.viaje { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.25rem; }
.viaje__anio {
  font: 700 clamp(2.5rem, 2rem + 2.5vw, 3.25rem)/1 var(--slab);
  color: var(--verde);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  padding-right: 1rem;
  border-right: 3px solid var(--verde-vivo);
}
.viaje__texto p { margin: 0; }
.viaje__rotulo { font-size: 1.0625rem; font-weight: 500; color: var(--tinta); }

.bitacora {
  margin: 0 0 1.5rem;
  padding: .1rem 0 .1rem .85rem;
  border-left: 3px solid var(--verde-vivo);
  color: var(--tinta-suave);
  font-style: italic;
}

.introduccion { font-weight: 300; font-size: 1.125rem; margin: 0 0 .5rem; color: var(--tinta-suave); }

.pregunta {
  font-family: var(--slab);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.65rem);
  line-height: 1.35;
  color: var(--tinta);
  letter-spacing: 0;
  text-wrap: pretty;
}
.pregunta strong { color: var(--verde); font-weight: 700; }
.pregunta__n { color: var(--verde); margin-right: .35rem; }

.respuesta { margin-top: 1.5rem; }
.respuesta label { display: block; font-weight: 500; margin-bottom: .4rem; }
.respuesta textarea {
  display: block; width: 100%;
  min-height: 11rem;
  font: 400 1.0625rem/1.55 var(--sans);
  color: var(--tinta);
  background: var(--fondo);
  border: 2px solid var(--borde);
  border-radius: var(--radio);
  padding: .9rem 1rem;
  resize: vertical;
}
.respuesta textarea:focus-visible, .organizacion input:focus-visible { outline-offset: 2px; border-color: var(--verde); }
.organizacion { margin-top: 2rem; }
.organizacion input {
  display: block; width: 100%;
  font: 400 1.0625rem/1.4 var(--sans);
  color: var(--tinta);
  background: var(--fondo);
  border: 2px solid var(--borde);
  border-radius: var(--radio);
  padding: .7rem 1rem;
}
.organizacion .opcional { font-weight: 400; color: var(--tinta-suave); }

.contador { margin-top: .6rem; display: grid; gap: .35rem; }
.contador__barra { height: 4px; background: var(--linea); border-radius: 2px; overflow: hidden; }
.contador__lleno {
  display: block; height: 100%;
  width: calc(var(--uso, 0) * 100%);
  background: var(--verde-vivo);
  transition: width 160ms, background-color 160ms;
}
.contador[data-nivel="alto"] .contador__lleno { background: var(--naranja); }
.contador[data-nivel="tope"] .contador__lleno { background: var(--rojo); }
.contador__texto { font-size: .875rem; color: var(--tinta-suave); margin: 0; }
.contador[data-nivel="tope"] .contador__texto { color: var(--vino); font-weight: 500; }

/* ───────────── Dictado por voz ───────────── */

.dictado { margin-top: 1.25rem; display: grid; gap: .5rem; justify-items: start; }
.dictado[hidden] { display: none; }
.boton--dictar { min-height: 2.75rem; padding: .6rem 1.1rem; }
.dictado__icono {
  width: .85rem; height: .85rem; flex: none;
  border-radius: 50%;
  background: var(--verde);
}
.boton--dictar.is-escuchando { border-color: var(--rojo); color: var(--vino); }
.boton--dictar.is-escuchando:hover { border-color: var(--rojo); color: var(--vino); }
.boton--dictar.is-escuchando .dictado__icono {
  background: var(--rojo);
  animation: latir-dictado 1.4s ease-in-out infinite;
}
@keyframes latir-dictado {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 67, 77, .5); }
  50% { box-shadow: 0 0 0 .35rem rgba(239, 67, 77, 0); }
}
.dictado__estado { margin: 0; font-size: .9375rem; font-weight: 500; color: var(--verde); }
.dictado__estado:empty { display: none; }
.dictado__nota, .dictado__pista { margin: 0; font-size: .8125rem; color: var(--tinta-suave); max-width: 52ch; }

/* ───────────── Revisión ───────────── */

.repaso { list-style: none; margin: 2rem 0 0; padding: 0; }
.repaso__etapa {
  position: relative;
  padding: 0 0 1.75rem 2.75rem;
}
.repaso__etapa::before {             /* la ruta, ahora en vertical */
  content: ""; position: absolute; left: .95rem; top: 2.2rem; bottom: .2rem;
  width: 3px; background: var(--linea);
}
.repaso__etapa:last-child::before { display: none; }
.repaso__punto {
  position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 .875rem/1 var(--slab);
  background: var(--verde); color: var(--sobre-verde);
}
.repaso__etapa.is-vacia .repaso__punto { background: var(--fondo); color: var(--tinta-suave); border: 3px solid var(--linea); }
.repaso__rotulo { margin: .2rem 0 .35rem; }
.repaso__pregunta { font-size: .9375rem; color: var(--tinta-suave); margin: 0 0 .6rem; }
.repaso__respuesta {
  white-space: pre-wrap; overflow-wrap: anywhere;
  margin: 0 0 .5rem; padding: .85rem 1rem;
  background: var(--superficie); border-radius: var(--radio);
}
.repaso__vacia { font-style: italic; color: var(--tinta-suave); margin: 0 0 .5rem; }

.error {
  margin: 1.5rem 0 0; padding: .85rem 1rem;
  border-left: 4px solid var(--vino); background: #fbeaf3; color: var(--vino); font-weight: 500;
}

/* ───────────── Llegada: 2038 ───────────── */

.llegada { position: relative; }
.llegada__anio {
  display: block;
  font: 700 clamp(4.5rem, 2.5rem + 12vw, 9rem)/.9 var(--slab);
  color: var(--verde);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 1rem;
}

.constancia {
  margin: 2rem 0 0;
  padding: 1.5rem 1.5rem 1.35rem;
  border: 2px solid var(--verde);
  border-radius: var(--radio);
  display: grid; gap: .2rem;
  max-width: 30rem;
}
.constancia__estado { font: 700 1.25rem/1.3 var(--slab); color: var(--verde); margin: 0 0 .35rem; }
.constancia p { margin: 0; }
.constancia__codigo {
  margin-top: .85rem !important; padding-top: .85rem;
  border-top: 1px solid var(--linea);
  font-size: .9375rem; color: var(--tinta-suave);
}
.constancia__codigo strong { color: var(--tinta); letter-spacing: .06em; }

/* ───────────── Inicio: las estaciones de la consulta ───────────── */

.grupo { margin-top: 3rem; }
.grupo > p { color: var(--tinta-suave); }
.estaciones { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.estacion { position: relative; padding: 0 0 .25rem 2.25rem; }
.estacion::before {
  content: ""; position: absolute; left: .55rem; top: 1.6rem; bottom: -.4rem;
  width: 3px; background: var(--linea);
}
.estacion:last-child::before { display: none; }
.estacion::after {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  border: 3px solid var(--verde); background: var(--fondo);
}
.estacion__enlace {
  display: block; padding: .8rem 1rem; margin-left: -.25rem;
  border-radius: var(--radio);
  color: inherit; text-decoration: none;
}
.estacion__enlace:hover { background: var(--superficie); }
.estacion__nombre { font: 700 1.1875rem/1.3 var(--slab); color: var(--verde); display: block; }
.estacion__titulo { display: block; margin: .15rem 0 .25rem; }
.estacion__datos { display: block; font-size: .875rem; color: var(--tinta-suave); }
.estacion.is-lista::after { background: var(--verde); }

/* ───────────── Respuestas guardadas ───────────── */

.tabla-envios { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; }
.tabla-envios th, .tabla-envios td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla-envios th { font-weight: 500; color: var(--verde); }
.tabla-contenedor { overflow-x: auto; }
.vacio { padding: 1.5rem; background: var(--superficie); border-radius: var(--radio); }

/* ───────────── Meta colectiva: las voces que ya van en el camino ───────────── */

.meta {
  margin: 2rem 0 0;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--superficie);
  border-radius: var(--radio);
}
.meta[hidden] { display: none; }
.meta__cifra { margin: 0; font-size: 1.0625rem; }
.meta__cifra strong {
  font: 700 1.75rem/1 var(--slab);
  color: var(--verde);
  font-variant-numeric: tabular-nums;
  margin-right: .15rem;
}
.meta__barra {
  height: 10px; margin: .85rem 0 .5rem;
  background: var(--fondo);
  border: 1px solid var(--linea);
  border-radius: 5px;
  overflow: hidden;
}
.meta__barra span {
  display: block; height: 100%;
  width: calc(var(--lleno, 0) * 100%);
  background: linear-gradient(90deg, var(--verde), var(--verde-vivo));
  transition: width 900ms cubic-bezier(.2, .7, .2, 1);
}
.meta__hito { margin: 0; font-size: .9375rem; color: var(--tinta-suave); }
.meta--total { margin: 0 0 .5rem; background: none; padding: 0; }
.estacion__voces { color: var(--verde); font-weight: 500; }

.aviso-datos {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--linea);
  font-size: .875rem;
  color: var(--tinta-suave);
}

.constancia__voz { margin-top: .5rem !important; font-weight: 500; color: var(--verde); }
.celebra {
  margin: 0 0 1.5rem;
  padding: .75rem 1rem;
  border-left: 4px solid var(--verde-vivo);
  background: var(--superficie);
  font: 500 1.125rem/1.4 var(--slab);
  color: var(--verde);
}

/* ───────────── Pulso en vivo y anuncio de hitos ───────────── */

.pulso {
  display: flex; align-items: baseline; gap: .6rem;
  margin: .85rem 0 0;
  font-size: .9375rem;
  color: var(--tinta-suave);
}
.pulso[hidden] { display: none; }
.pulso strong { color: var(--verde); font-weight: 500; }
.pulso__latido {
  flex: none;
  width: .6rem; height: .6rem; margin-top: .35rem;
  border-radius: 50%;
  background: var(--verde-vivo);
  animation: latir 2.4s ease-in-out infinite;
}
@keyframes latir {
  0%, 100% { box-shadow: 0 0 0 0 rgba(67, 182, 73, .55); }
  50% { box-shadow: 0 0 0 .4rem rgba(67, 182, 73, 0); }
}

.anuncio-hito {
  display: flex; align-items: flex-start; gap: 1rem;
  margin: 0 0 1.75rem;
  padding: .9rem 1rem .9rem 1.25rem;
  background: var(--superficie);
  border-left: 4px solid var(--verde);
  border-radius: 0 var(--radio) var(--radio) 0;
  animation: entrar-anuncio 420ms cubic-bezier(.2, .7, .2, 1) both;
}
.anuncio-hito p {
  margin: 0;
  font: 500 1.0625rem/1.4 var(--slab);
  color: var(--verde);
}
.anuncio-hito__cerrar {
  flex: none; margin-left: auto;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  font: 400 1.25rem/1 var(--sans);
  color: var(--tinta-suave);
  background: none; border: 0; border-radius: var(--radio);
  cursor: pointer;
}
.anuncio-hito__cerrar:hover { background: var(--fondo); color: var(--tinta); }
@keyframes entrar-anuncio {
  from { opacity: 0; transform: translateY(-.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* ───────────── Tarjeta para historias ───────────── */

.tarjeta { margin: 3rem 0 0; }
.tarjeta h2 { margin-bottom: .5rem; }
.tarjeta__cuerpo { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.tarjeta__cuerpo .acciones { margin-top: 0; flex-direction: column; align-items: flex-start; }
.tarjeta__vista {
  width: 100%; height: auto;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: 0 12px 24px -18px rgba(2, 105, 55, .5);
}
.tarjeta__vista[hidden] { display: none; }
@media (max-width: 34rem) {
  .tarjeta__cuerpo { grid-template-columns: 8rem 1fr; gap: 1rem; }
}

/* ───────────── Pie ───────────── */

.pie { border-top: 1px solid var(--linea); background: var(--superficie); }
.pie__interior { max-width: var(--ancho-cabecera); margin: 0 auto; padding: 1.5rem 1rem 2rem; font-size: .875rem; color: var(--tinta-suave); }
.pie p { margin: 0 0 .4rem; }
.pie__institucion { font-weight: 500; color: var(--tinta); }
.pie__vigilada { font-weight: 400; }
.pie__enlaces { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ───────────── Aviso flotante ───────────── */

.aviso {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%);
  background: var(--tinta); color: #fff;
  padding: .75rem 1.25rem; border-radius: var(--radio);
  font-size: .9375rem; max-width: calc(100vw - 2rem);
  transition: transform 240ms, visibility 240ms;
  z-index: 20;
}
.aviso:not(.is-visible) { visibility: hidden; }
.aviso.is-visible { transform: translate(-50%, 0); }

@media (max-width: 34rem) {
  .contenido { padding-top: 1.75rem; }
  .cabecera__interior { padding: 1rem; }
  .cabecera__logo img { width: 140px; }            /* ≥ 130 px */
  .cabecera__interior { flex-wrap: nowrap; }
  .lectura { gap: .25rem; }
  .lectura__boton { padding: .5rem .45rem; }
  .lectura__rotulo, .lectura__largo { display: none; }
  .lectura__corto { display: inline; }
  .datos div { grid-template-columns: 1fr; gap: .1rem; }
  .acciones--separadas .boton { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* Tarjeta en celular sin hoja de compartir (2-oct-2026) */
.tarjeta__vista { -webkit-touch-callout: default; }
.tarjeta__ayuda { margin: .4rem 0 0; font-size: .8125rem; color: var(--tinta-suave); }
