  /* Utilidades que Tailwind CDN no cubre de fábrica */
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', sans-serif; background-color: #F7F5F1; color: #14181C; }

  .font-emotion-italic { font-style: italic; }

  /* Foco visible accesible en todos los elementos interactivos */
  a:focus-visible, button:focus-visible, input:focus-visible,
  select:focus-visible, textarea:focus-visible {
    outline: 3px solid #D80032;
    outline-offset: 2px;
    border-radius: 2px;
  }

  /* Enlace "saltar al contenido" para usuarios de teclado / lectores de pantalla */
  .skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #D80032;
    color: #FFF;
    padding: 0.75rem 1.25rem;
    z-index: 100;
    font-weight: 700;
    border-radius: 0 0 8px 0;
  }
  .skip-link:focus {
    left: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }
  
  /* Fix: la clase .grid de Tailwind y el atributo [hidden] tienen la misma
     especificidad CSS, así que .grid puede ganar y dejar el panel visible.
     Esta regla fuerza el ocultamiento cuando el panel lleva [hidden]. */
  .team-panel[hidden] {
    display: none;
  }  
  /* Tipografía de lectura para el programa completo */
  .prose-uex h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.85rem;
    color: #14181C;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #D80032;
    scroll-margin-top: 6rem;
  }
  .prose-uex > h1:first-child { margin-top: 0; }
  .prose-uex h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.4rem;
    color: #14181C;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    scroll-margin-top: 6rem;
  }
  .prose-uex h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #D80032;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 6rem;
  }
  .prose-uex h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1C2B39;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    scroll-margin-top: 6rem;
  }
  .prose-uex h5 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(28,43,57,0.5);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }
  .prose-uex p { margin-bottom: 1rem; color: #1C2B39; }
  .prose-uex > p:first-of-type { font-size: 1.05rem; }
  .prose-uex strong { font-weight: 700; color: #14181C; }
  .prose-uex em { font-style: italic; }
  .prose-uex img { max-width: 100%; height: auto; border-radius: 1rem; margin: 1.5rem 0; }
  .prose-uex blockquote {
    border-left: 4px solid #D80032;
    background: rgba(247,245,241,0.7);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
  }
  .prose-uex blockquote p:last-child { margin-bottom: 0; }
  .prose-uex ul, .prose-uex ol { margin-bottom: 1rem; padding-left: 1.5rem; }
  .prose-uex ul { list-style: disc; }
  .prose-uex ol { list-style: decimal; }
  .prose-uex li { margin-bottom: 0.35rem; }
  .prose-uex li > ul, .prose-uex li > ol { margin-top: 0.35rem; margin-bottom: 0; }
  .prose-uex li::marker { color: #D80032; font-weight: 600; }
  .prose-uex a { color: #D80032; text-decoration: underline; text-underline-offset: 2px; }
  .prose-uex a:hover { color: #E60036; }
  .prose-uex hr { border: none; border-top: 1px solid rgba(28,43,57,0.12); margin: 2.5rem 0; }

  .toc-link[aria-current="true"] {
    color: #D80032;
    font-weight: 700;
  }

  /* Referencias cruzadas entre medidas del programa */
  .medida-ref {
    color: #D80032;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    white-space: nowrap;
  }
  .medida-ref:hover {
    color: #1C2B39;
    text-decoration-color: #1C2B39;
  }
  /* Margen superior para que el header fijo no tape la medida al hacer scroll */
  [id^="medida-"] {
    scroll-margin-top: 5rem;
  }
/* Páginas legales */
.prose-uex > h2:first-child { margin-top: 0; }
.prose-uex h2[id] { scroll-margin-top: 6rem; }
/* Datos pendientes de completar antes de publicar */
.pendiente {
  background: rgba(216,0,50,0.08);
  border: 1px dashed #D80032;
  border-radius: 4px;
  padding: 0 0.3em;
  color: #14181C;
  font-weight: 600;
}


/* ============================================================
   Agenda de eventos (portada, eventos/ y páginas ampliadas).
   El HTML lo genera herramientas/contenidos/generar.php y el estado
   (próximo, celebrado, hoy, filtros) lo pone assets/js/eventos.js.
   ============================================================ */
.hitos[hidden],
.hito[hidden],
.agenda-hito[hidden],
.agenda-mes[hidden],
.agenda-filtros[hidden],
.evento-vacio[hidden],
.evento-marca[hidden],
.evento-visor-boton[hidden] { display: none; }

/* Piezas comunes */
.evento-icono { width: 1rem; height: 1rem; flex-shrink: 0; }
.evento-etiquetas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  font-size: 0.75rem;
  line-height: 1.4;
}
.evento-categoria { color: #D80032; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.evento-campus { color: rgba(28,43,57,0.75); font-weight: 600; }
.evento-marca {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.evento-marca-hoy { background: #D80032; color: #FFF; }
.evento-marca-pasado { background: rgba(28,43,57,0.1); color: #1C2B39; }
.evento-marca-borrador { border: 1px dashed #D80032; color: #D80032; }

.evento-lugar,
.evento-dato {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: rgba(28,43,57,0.85);
}
.evento-lugar .evento-icono,
.evento-dato .evento-icono { margin-top: 0.15rem; }

.evento-acciones { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.evento-accion {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(28,43,57,0.2);
  border-radius: 999px;
  background: transparent;
  color: #1C2B39;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.evento-accion:hover { border-color: #D80032; color: #D80032; }
.evento-accion-principal { background: #1C2B39; border-color: #1C2B39; color: #FFF; }
.evento-accion-principal:hover { background: #D80032; border-color: #D80032; color: #FFF; }
.es-pasado .evento-solo-proximo { display: none; }

/* ---------- Portada: línea de tiempo (vertical en el móvil, horizontal en escritorio) ---------- */
.hitos { position: relative; display: grid; gap: 2rem; }
.hitos::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0;
  left: calc(0.5rem - 1px);
  width: 2px;
  background: linear-gradient(to bottom, rgba(28,43,57,0.18) 70%, rgba(28,43,57,0));
}
.hito { position: relative; padding-left: 2.25rem; }
.hito-punto {
  position: absolute;
  top: 0.25rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  border: 3px solid #D80032;
  border-radius: 999px;
  background: #FFF;
}
.hito.es-hoy .hito-punto { background: #D80032; box-shadow: 0 0 0 5px rgba(216,0,50,0.15); }
.hito-fecha { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-bottom: 0.75rem; line-height: 1; }
.hito-dia { font-family: 'Archivo Black', sans-serif; font-size: 2rem; color: #14181C; }
.hito-mes { font-family: 'Archivo Black', sans-serif; font-size: 1rem; text-transform: uppercase; color: #14181C; }
.hito-hora { font-size: 0.85rem; color: rgba(28,43,57,0.75); }
.hito-hora::first-letter { text-transform: uppercase; }
.hito-cuerpo { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.hito-titulo { font-family: 'Archivo Black', sans-serif; font-size: 1.15rem; line-height: 1.3; color: #14181C; }
.hito-titulo a:hover { color: #D80032; }
.hito .evento-lugar { font-size: 0.875rem; }
.hito-resumen { color: #1C2B39; line-height: 1.55; }
.hito-enlace { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.25rem; color: #D80032; font-weight: 600; font-size: 0.9rem; }
.hito-enlace:hover { color: #1C2B39; }

@media (min-width: 1024px) {
  .hitos { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .hitos::before {
    top: 4.5rem;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
    background: linear-gradient(to right, rgba(28,43,57,0.18) 75%, rgba(28,43,57,0));
  }
  .hito { padding: 0 2.5rem 0 0; }
  .hito-fecha { flex-direction: column; align-items: flex-start; gap: 0.4rem; height: 3.5rem; margin-bottom: 0; }
  .hito-punto { position: relative; top: auto; display: block; margin: 0.5rem 0 1.5rem; }
}

/* ---------- Página de eventos: filtros a la izquierda, línea de tiempo a la derecha ---------- */
.agenda { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .agenda { grid-template-columns: 18rem minmax(0, 1fr); gap: 3rem; align-items: start; }
  .agenda-filtros { position: sticky; top: 6rem; }
}
.agenda-filtros-caja {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(28,43,57,0.1);
  border-radius: 1.5rem;
  background: #F7F5F1;
}
.evento-filtro-titulo {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(28,43,57,0.65);
}
.evento-buscador { position: relative; }
.evento-buscador .evento-icono { position: absolute; top: 50%; left: 0.85rem; transform: translateY(-50%); color: rgba(28,43,57,0.55); pointer-events: none; }
.evento-buscador input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border: 1px solid rgba(28,43,57,0.2);
  border-radius: 999px;
  background: #FFF;
  color: #14181C;
  font-size: 0.9rem;
}
.evento-buscador input:focus { border-color: #1C2B39; }

.evento-filtro {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(28,43,57,0.2);
  border-radius: 999px;
  background: #FFF;
  color: #1C2B39;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.evento-filtro:hover { border-color: #1C2B39; }
.evento-filtro[aria-pressed="true"] { background: #1C2B39; border-color: #1C2B39; color: #FFF; font-weight: 600; }
.evento-filtro.sin-resultados:not([aria-pressed="true"]) { color: rgba(28,43,57,0.45); }
.evento-filtro-n { font-size: 0.75rem; font-variant-numeric: tabular-nums; opacity: 0.7; }

.evento-segmentos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid rgba(28,43,57,0.2);
  border-radius: 999px;
  background: #FFF;
}
.evento-segmentos .evento-filtro { justify-content: center; gap: 0.3rem; padding: 0.4rem 0.2rem; border: none; font-size: 0.8rem; }
.evento-segmentos .evento-filtro-n { display: none; }

.evento-filtro-lista { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.agenda-filtros-mas summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1C2B39;
  cursor: pointer;
  list-style: none;
}
.agenda-filtros-mas summary::-webkit-details-marker { display: none; }
.agenda-filtros-mas summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: #D80032; }
.agenda-filtros-mas[open] summary::after { content: "−"; }
.agenda-filtros-mas .evento-filtro-grupo { margin-top: 1.25rem; }

@media (min-width: 1024px) {
  .agenda-filtros-mas summary { display: none; }
  .agenda-filtros-mas .evento-filtro-grupo:first-of-type { margin-top: 0; }
  .evento-filtro-lista { flex-direction: column; flex-wrap: nowrap; gap: 0.15rem; }
  .evento-filtro-lista .evento-filtro { width: 100%; padding: 0.45rem 0.75rem; border-color: transparent; border-radius: 0.75rem; background: transparent; }
  .evento-filtro-lista .evento-filtro:hover { background: rgba(28,43,57,0.06); border-color: transparent; }
  .evento-filtro-lista .evento-filtro[aria-pressed="true"] { background: #1C2B39; color: #FFF; }
}

.evento-recuento { margin-bottom: 1rem; font-size: 0.9rem; color: rgba(28,43,57,0.75); }
.evento-recuento:empty { display: none; }
.evento-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  background: #F7F5F1;
  text-align: center;
  color: #1C2B39;
}

/* Línea de tiempo vertical: columna de fecha, eje con punto y tarjeta */
.agenda-hitos { --col-fecha: 2.75rem; --col-eje: 1.75rem; position: relative; }
@media (min-width: 640px) { .agenda-hitos { --col-fecha: 3.5rem; --col-eje: 2.5rem; } }
.agenda-hito,
.agenda-mes { position: relative; }
.agenda-hito::before,
.agenda-mes::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--col-fecha) + var(--col-eje) / 2 - 1px);
  width: 2px;
  background: rgba(28,43,57,0.12);
}
.agenda-mes { padding: 0.5rem 0 1rem calc(var(--col-fecha) + var(--col-eje)); }
.agenda-mes h2 { font-family: 'Archivo Black', sans-serif; font-size: 1.15rem; color: #14181C; }
.agenda-mes h2::first-letter { text-transform: uppercase; }
.agenda-hito {
  display: grid;
  grid-template-columns: var(--col-fecha) var(--col-eje) minmax(0, 1fr);
  padding-bottom: 1.25rem;
}
.agenda-hito-fecha { display: flex; flex-direction: column; align-items: flex-end; padding-top: 1.1rem; line-height: 1; text-align: right; }
.agenda-hito-fecha time { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.agenda-hito-dia { font-family: 'Archivo Black', sans-serif; font-size: 1.6rem; color: #14181C; }
.agenda-hito-mes { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #14181C; }
.agenda-hito-semana { margin-top: 0.3rem; font-size: 0.75rem; color: rgba(28,43,57,0.6); }
.agenda-hito.es-pasado .agenda-hito-dia,
.agenda-hito.es-pasado .agenda-hito-mes { color: rgba(28,43,57,0.55); }
.agenda-hito-punto {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 1.3rem;
  border: 3px solid #D80032;
  border-radius: 999px;
  background: #FFF;
}
.agenda-hito.es-pasado .agenda-hito-punto { border-color: rgba(28,43,57,0.3); }
.agenda-hito.es-hoy .agenda-hito-punto { background: #D80032; box-shadow: 0 0 0 5px rgba(216,0,50,0.15); }

.agenda-hito-tarjeta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(28,43,57,0.1);
  border-radius: 1.25rem;
  background: #FFF;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.agenda-hito-tarjeta:hover { border-color: rgba(28,43,57,0.25); box-shadow: 0 6px 20px -12px rgba(28,43,57,0.35); }
.agenda-hito-imagen { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 768px) {
  .agenda-hito-tarjeta { flex-direction: row; }
  .agenda-hito-imagen { order: 2; width: 14rem; aspect-ratio: auto; align-self: stretch; }
}
.agenda-hito-texto { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; flex: 1; min-width: 0; padding: 1.15rem 1.35rem; }
.agenda-hito-titulo { font-family: 'Archivo Black', sans-serif; font-size: 1.15rem; line-height: 1.3; color: #14181C; }
.agenda-hito-titulo a:hover { color: #D80032; }
.agenda-hito-datos { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.875rem; }
.agenda-hito-datos .evento-dato:first-child::first-letter { text-transform: uppercase; }
.agenda-hito-resumen { color: #1C2B39; line-height: 1.55; }
.evento-medios { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.evento-medios li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(28,43,57,0.07);
  color: #1C2B39;
  font-size: 0.75rem;
  font-weight: 600;
}
.evento-medios .evento-icono { width: 0.85rem; height: 0.85rem; }
.agenda-hito-texto .evento-acciones { margin-top: 0.25rem; }

/* ---------- Página ampliada ---------- */
.evento-detalle .evento-etiquetas:not(:has(.evento-marca:not([hidden]))) { display: none; }
.evento-detalle .evento-etiquetas { margin-bottom: 1rem; }
.evento-datos {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.35rem;
  border-radius: 1rem;
  background: #F7F5F1;
}
@media (min-width: 640px) { .evento-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.evento-datos dt {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(28,43,57,0.6);
}
.evento-datos dd { font-weight: 600; color: #14181C; }
.evento-datos dd::first-letter { text-transform: uppercase; }

.evento-cabecera-imagen {
  width: 100%;
  max-width: 64rem;
  max-height: 34rem;
  height: auto;
  margin-bottom: 2.5rem;
  border-radius: 1.5rem;
  object-fit: cover;
}
.evento-entradilla {
  margin-bottom: 1.75rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: #1C2B39;
}
.evento-detalle .evento-acciones { margin-top: 2rem; }

.evento-bloque { margin-top: 3rem; }
.evento-bloque-ancho { max-width: 64rem; }
.evento-bloque-titulo { margin-bottom: 1.25rem; font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; color: #14181C; }

.evento-audio { padding: 1rem 1.25rem; border-radius: 1rem; background: #F7F5F1; }
.evento-audio + .evento-audio { margin-top: 1rem; }
.evento-audio figcaption { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-weight: 600; color: #14181C; }
.evento-audio figcaption .evento-icono { color: #D80032; }
.evento-audio audio { width: 100%; }

.evento-videos { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.evento-video-portada,
.evento-video-marco {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: #1C2B39;
}
.evento-video-portada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.evento-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: #D80032;
  color: #FFF;
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}
.evento-video-play svg { width: 2rem; height: 2rem; margin-left: 0.2rem; }
.evento-video-portada:hover .evento-video-play { transform: translate(-50%, -50%) scale(1.08); }
.evento-video figcaption { margin-top: 0.75rem; }
.evento-video-titulo { display: block; font-weight: 600; color: #14181C; }
.evento-video-aviso { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: rgba(28,43,57,0.7); }
.evento-video-aviso a { text-decoration: underline; text-underline-offset: 2px; }
.evento-video-aviso a:hover { color: #D80032; }

.evento-galeria { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .evento-galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.evento-galeria-enlace { display: block; border-radius: 1rem; overflow: hidden; }
.evento-galeria-enlace img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.3s; }
.evento-galeria-enlace:hover img { transform: scale(1.03); }
.evento-galeria figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: rgba(28,43,57,0.8); }

.evento-volver { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 3rem; color: #D80032; font-weight: 600; }
.evento-volver:hover { color: #1C2B39; }

/* Visor de fotos */
.evento-visor {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 4rem 1rem 2rem;
  border: none;
  background: rgba(20,24,28,0.96);
  color: #FFF;
}
.evento-visor[open] { display: flex; align-items: center; justify-content: center; }
.evento-visor::backdrop { background: rgba(0,0,0,0.6); }
.evento-visor figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.evento-visor img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 0.5rem; }
.evento-visor figcaption { margin-top: 0.75rem; text-align: center; color: rgba(247,245,241,0.85); }
.evento-visor-posicion { position: absolute; top: 1.4rem; left: 1.25rem; font-size: 0.875rem; color: rgba(247,245,241,0.7); }
.evento-visor-boton {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #FFF;
  cursor: pointer;
  transition: background-color 0.15s;
}
.evento-visor-boton:hover { background: #D80032; }
.evento-visor-boton svg { width: 1.5rem; height: 1.5rem; }
.evento-visor-anterior { left: 1rem; top: 50%; transform: translateY(-50%); }
.evento-visor-siguiente { right: 1rem; top: 50%; transform: translateY(-50%); }
.evento-visor-cerrar { top: 0.75rem; right: 1rem; }

/* Evento enlazado desde otra página (eventos/#evento-...): se resalta al llegar */
.agenda-hito { scroll-margin-top: 6rem; }
.agenda-hito.es-destacado .agenda-hito-tarjeta { border-color: #D80032; box-shadow: 0 0 0 4px rgba(216,0,50,0.12); }

/* ============================================================
   Prensa (portada y prensa/). El HTML lo genera
   herramientas/contenidos/generar.php a partir de _prensa/.
   ============================================================ */
.prensa-rejilla { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .prensa-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .prensa-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* En la portada van cuatro: dos columnas hasta que caben las cuatro en una fila */
@media (min-width: 1024px) { .prensa-rejilla-portada { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .prensa-rejilla-portada { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.prensa-tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(28,43,57,0.12);
  border-radius: 1.25rem;
  background: #FFF;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.prensa-tarjeta:hover { border-color: rgba(28,43,57,0.3); box-shadow: 0 8px 24px -14px rgba(28,43,57,0.4); }
/* Toda la tarjeta es el enlace del titular: el foco se marca en la tarjeta */
.prensa-tarjeta:has(.prensa-enlace:focus-visible) { outline: 3px solid #D80032; outline-offset: 2px; }
.prensa-enlace:focus-visible { outline: none; }
.prensa-enlace::after { content: ""; position: absolute; inset: 0; }

.prensa-cabecera { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prensa-cabecera-medio {
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, #1C2B39 0%, #2A3E50 100%);
  color: #FFF;
}
.prensa-cabecera-medio span {
  padding-bottom: 0.45rem;
  border-bottom: 4px solid #D80032;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.5rem;
  line-height: 1.15;
}
.prensa-cuerpo { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; padding: 1.15rem 1.35rem 1.3rem; }
.prensa-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; font-size: 0.75rem; }
.prensa-meta time { color: rgba(28,43,57,0.7); }
.prensa-medio { font-size: 0.85rem; font-weight: 600; color: #1C2B39; }
/* Con la cabecera tipográfica el medio ya se ve arriba */
.prensa-cabecera-medio + .prensa-cuerpo .prensa-medio { display: none; }
.prensa-titulo { font-family: 'Archivo Black', sans-serif; font-size: 1.05rem; line-height: 1.35; color: #14181C; transition: color 0.15s; }
.prensa-tarjeta:hover .prensa-titulo { color: #D80032; }
.prensa-resumen {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  font-size: 0.925rem;
  line-height: 1.55;
  color: #1C2B39;
}
.prensa-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: auto; padding-top: 0.5rem; }
.prensa-leer { display: inline-flex; align-items: center; gap: 0.35rem; color: #D80032; font-size: 0.85rem; font-weight: 600; }
.prensa-evento { position: relative; z-index: 1; font-size: 0.8rem; font-weight: 600; color: #1C2B39; text-decoration: underline; text-underline-offset: 2px; }
.prensa-evento:hover { color: #D80032; }

/* Menú principal: con siete opciones, entre 1024 y 1279 px no cabe con el espacio de Tailwind (gap-6) */
@media (min-width: 1024px) and (max-width: 1279px) {
  header > nav > ul[class] { gap: 0.875rem; }
}
