/*
Cabecera: Hoja de estilos del nuevo sitio web estático de Pedro Soler
Fecha: 01 de octubre de 2026
Descripción: Diseño editorial moderno tipo revista, con cuadrícula de destacados,
             paginación a petición, modal teatral y biografía completa con fotografía.
*/

:root {
  --primary: #0F2942;        /* Azul medianoche RTVE */
  --primary-light: #205493;  /* Azul enlace */
  --accent: #D9381E;         /* Rojo acento */
  --bg: #F4F6F8;             /* Fondo gris editorial suave */
  --surface: #FFFFFF;        /* Superficie */
  --text-main: #1A202C;      /* Texto principal */
  --text-muted: #5A6A80;     /* Texto secundario */
  --border: #E2E8F0;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 12px -2px rgba(15,41,66,0.08);
  --shadow-lg: 0 16px 24px -4px rgba(15,41,66,0.12);
  --transition: all 0.22s ease-in-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px; /* Compensa la cabecera sticky */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Accesibilidad: Enlace de salto de contenido */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--accent);
  color: #FFF !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #FFF;
}

main:focus {
  outline: none;
}

/* Indicador de foco visible accesible */
:focus-visible {
  outline: 2.5px solid var(--primary-light);
  outline-offset: 3px;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); text-decoration: underline; }

/* Barra Superior */
.header-top {
  background: #0F2942;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
}

.brand:hover { text-decoration: none; color: inherit; }
.brand:hover .brand-title { color: #60A5FA; }
.brand:hover .brand-avatar { box-shadow: 0 0 0 2px #60A5FA, 0 2px 8px rgba(255, 255, 255, 0.2); }

.brand-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1.5px #CBD5E1, 0 2px 6px rgba(15, 41, 66, 0.1);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  line-height: 1.15;
  margin-bottom: 0.15rem;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: #CBD5E1;
  font-weight: 500;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
}

.brand-subtitle .sub-line {
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-links a {
  display: inline-block;
  color: #E2E8F0;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  text-decoration: none;
}

.nav-links a.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #FCD34D !important;
  border-bottom: 2px solid #F59E0B;
  border-radius: 6px 6px 2px 2px;
}

.nav-links a.nav-btn-contact {
  background: rgba(245, 158, 11, 0.16);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  border-radius: 20px;
  margin-left: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a.nav-btn-contact:hover {
  background: #F59E0B;
  color: #0F2942;
  border-color: #F59E0B;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.header-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255,255,255,0.15);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.social-btn:hover {
  background: var(--surface, #FFFFFF);
  color: #0F2942;
  border-color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15, 41, 66, 0.18);
}

.social-btn.social-btn-linkedin:hover {
  background: #0A66C2;
  color: #FFFFFF;
  border-color: #0A66C2;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
}

.social-btn.social-btn-youtube:hover {
  background: #FF0000;
  color: #FFFFFF;
  border-color: #FF0000;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35);
}

.social-btn.social-btn-vimeo:hover {
  background: #1AB7EA;
  color: #FFFFFF;
  border-color: #1AB7EA;
  box-shadow: 0 4px 12px rgba(26, 183, 234, 0.35);
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0A66C2;
  color: #FFFFFF !important;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 0.85rem;
  width: 100%;
  box-shadow: 0 2px 6px rgba(10, 102, 194, 0.25);
}

.btn-linkedin:hover {
  background: #004182;
  color: #FFFFFF !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
}

/* Portada / Hero */
.hero {
  background: linear-gradient(135deg, #0F2942 0%, #1A3E63 100%);
  color: #FFF;
  padding: 3.5rem 1.5rem 3rem;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-text-centered {
  margin: 0 auto;
}

.hero-actions-centered {
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 1.12rem;
  opacity: 0.92;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero {
  background: var(--accent);
  color: #FFF;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(217, 56, 30, 0.4);
}

.btn-hero:hover {
  background: #B92B15;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: transparent;
  color: #FFF;
  border: 1.5px solid rgba(255,255,255,0.6);
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}

.hero-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.status-dot-active {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3), 0 0 8px #10B981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  max-width: 940px;
  margin: 1.5rem auto 1.75rem;
  text-align: left;
}

.hero-pillar-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-pillar-card:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}

.hero-pillar-icon {
  font-size: 1.35rem;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.hero-pillar-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.hero-pillar-desc {
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
  margin: 0;
}

.btn-hero-linkedin {
  background: #0A66C2;
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.4);
  transition: all 0.2s ease;
}

.btn-hero-linkedin:hover {
  background: #004182;
  color: #FFF;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.5);
}

.hero-card-preview {
  width: 320px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-stats-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: #FFF; }
.hero-stat span { font-size: 0.78rem; opacity: 0.8; text-transform: uppercase; }

/* Sección 1: Escaparate de Favoritos (Mosaico Visual) */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  scroll-margin-top: 80px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 0.85rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 960px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

.card-featured {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.card-featured:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E0;
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1A202C;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.card-featured:hover .card-media img {
  filter: brightness(1.05);
}

.media-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  top: auto;
  z-index: 2;
  background: rgba(15, 41, 66, 0.92);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.media-badge.award {
  background: #C53030;
  bottom: 10px;
  left: 10px;
  top: auto;
}

.tv-card-badge {
  top: auto !important;
  bottom: 10px !important;
  left: 10px !important;
}

.media-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: var(--transition);
  cursor: pointer;
}

.card-featured:hover .media-play-overlay {
  opacity: 1;
}

.play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card-featured-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-featured-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.1rem;
}

.card-featured-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  max-width: 100%;
}

/* Tarjetas-ventana interactivas de acceso directo en el banner de Docencia */
.docencia-banner-window {
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.docencia-banner-window:hover,
.docencia-banner-window:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  background: rgba(30, 41, 59, 0.92) !important;
  outline: none;
}

.docencia-banner-window.is-active {
  box-shadow: 0 0 0 2px #F59E0B, 0 8px 20px rgba(0, 0, 0, 0.35);
  background: rgba(30, 41, 59, 0.95) !important;
}

.btn-card-primary {
  background: var(--primary);
  color: #FFF;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-card-primary:hover {
  background: var(--primary-light);
  text-decoration: none;
}

.btn-card-secondary {
  background: #EDF2F7;
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-card-secondary:hover {
  background: #E2E8F0;
  text-decoration: none;
}

/* Sección 2: Archivo Histórico a Petición */
.archive-box {
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem 2rem;
  box-shadow: 0 4px 20px -2px rgba(15, 41, 66, 0.06);
  margin-top: 1rem;
}

/* Consola de Mandos de Hemeroteca / Fondo Audiovisual RTVE (Enfoque B) */
.archive-console {
  background: linear-gradient(145deg, #0F2942 0%, #0A1C2E 100%);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.35rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 28px -6px rgba(15, 41, 66, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.archive-console .search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.archive-console .search-input-main {
  flex: 1;
  background: var(--surface, #FFFFFF);
  color: #0F2942;
  border: 2px solid transparent;
  padding: 0.95rem 2.8rem 0.95rem 1.35rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: var(--transition);
}

.archive-console .search-input-main::placeholder {
  color: #64748B;
  opacity: 1;
}

.archive-console .search-input-main:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.3);
}

.archive-console .search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #E2E8F0;
  color: #475569;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.archive-console .search-clear-btn:hover {
  background: #CBD5E1;
  color: #0F172A;
}

/* Botón selector de ámbito de búsqueda (Temas vs Transcripciones) */
.btn-scope-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.65rem;
  vertical-align: middle;
}

.btn-scope-switch:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.6);
  color: #92400E;
}

.btn-scope-switch-return {
  background: rgba(15, 41, 66, 0.08);
  color: #0F2942;
  border: 1px solid #CBD5E1;
}

.btn-scope-switch-return:hover {
  background: rgba(15, 41, 66, 0.15);
  border-color: #94A3B8;
  color: #0F2942;
}

/* Desplegable Spotlight en Primer Plano */
.search-spotlight-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 999;
  background: #091a2b;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  animation: spotlightFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spotlightFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #F59E0B;
  font-weight: 700;
}

.spotlight-header-hint {
  color: #94A3B8;
  font-size: 0.72rem;
  text-transform: none;
  font-weight: normal;
}

.spotlight-list {
  overflow-y: auto;
  max-height: 400px;
  padding: 0.4rem;
  margin: 0;
  list-style: none;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.spotlight-item:hover,
.spotlight-item.is-focused {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.spotlight-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-item-thumb span {
  font-size: 1.5rem;
}

.spotlight-item-info {
  flex: 1;
  min-width: 0;
}

.spotlight-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Georgia', serif;
}

.spotlight-item-meta {
  font-size: 0.78rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.spotlight-item-badge {
  font-weight: 600;
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.spotlight-item-action {
  flex-shrink: 0;
}

.spotlight-action-pill {
  background: #F59E0B;
  color: #071524;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.38rem 0.8rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  transition: all 0.15s ease;
}

.spotlight-item:hover .spotlight-action-pill {
  background: #D97706;
  color: #000;
  transform: translateY(-1px);
}

.spotlight-footer {
  padding: 0.65rem 1rem;
  background: rgba(7, 21, 36, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
}

.spotlight-footer-link {
  color: #38BDF8;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.spotlight-footer-link:hover {
  color: #7DD3FC;
  text-decoration: underline;
}

.spotlight-empty {
  padding: 1.75rem 1.25rem;
  text-align: center;
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Efecto de resalte suave al cambiar categoría */
@keyframes targetCardPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.card-archive.target-highlight {
  animation: targetCardPulse 1.2s ease-out;
  border-color: #F59E0B !important;
}

.archive-console .category-tabs {
  display: flex;
  gap: 0.45rem 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0;
}

.archive-console .tab-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.archive-console .tab-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
}

.archive-console .tab-btn.active {
  background: var(--surface, #FFFFFF);
  color: #0F2942;
  border-color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

/* Pestaña de Honor: Galería del Coleccionista */
.archive-console .tab-btn-coleccionista {
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-weight: 700;
}

.archive-console .tab-btn-coleccionista:hover {
  background: rgba(245, 158, 11, 0.28);
  color: #FEF08A;
  border-color: rgba(245, 158, 11, 0.7);
}

.archive-console .tab-btn-coleccionista.active {
  background: #F59E0B;
  color: #0F2942;
  border-color: #F59E0B;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
}

@media (max-width: 768px) {
  .archive-console {
    padding: 1.1rem 1rem;
  }
}

/* Subfiltros Temáticos de Radio */
.radio-subfilter-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  background: #F1F5F9;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.25s ease-in-out;
}

.radio-subfilter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-right: 0.25rem;
}

.subfilter-btn {
  background: var(--surface, #FFFFFF);
  color: #334155;
  border: 1px solid #CBD5E1;
  padding: 0.35rem 0.85rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subfilter-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #94A3B8;
}

.subfilter-btn.active {
  background: #0F2942;
  color: #FFFFFF;
  border-color: #0F2942;
  box-shadow: 0 2px 6px rgba(15, 41, 66, 0.2);
}

/* Cabecera Editorial de Capítulo estilo «Un Mundo Feliz» (sobria, periodística, de autor) */
#categoryBannerWrap,
#archiveGrid,
#archiveTableWrap,
.chapter-editorial-header {
  scroll-margin-top: 90px; /* Compensa la cabecera sticky (~76px) + 14px de respiro limpio sin mostrar la consola superior */
}

.chapter-editorial-header {
  margin: 1.5rem 0 1.8rem 0;
  background: var(--surface, #FFFFFF);
  border: 1px solid #E2E8F0;
  border-left: 4px solid #0F2942;
  border-radius: 8px;
  padding: 1.35rem 1.6rem;
  box-shadow: 0 4px 16px rgba(15, 41, 66, 0.04);
  animation: fadeIn 0.3s ease-out;
}

.chapter-editorial-header .chapter-header-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0F2942;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.chapter-editorial-header .chapter-header-motto {
  font-family: var(--font-heading, "Georgia", serif);
  font-size: 1.22rem;
  font-weight: 700;
  font-style: italic;
  color: #0F2942;
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}

.chapter-editorial-header .chapter-header-narrative {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #334155;
}

.chapter-editorial-header .chapter-header-narrative p {
  margin-bottom: 0.5rem;
}

.chapter-editorial-header .chapter-header-narrative p:last-child {
  margin-bottom: 0;
}

.chapter-editorial-header .chapter-header-note {
  font-size: 0.82rem;
  color: #64748B;
  background: #F8FAFC;
  border-left: 3px solid #CBD5E1;
  padding: 0.5rem 0.85rem;
  border-radius: 0 4px 4px 0;
  margin-top: 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card-archive {
  background: #FAFCFE;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.card-archive:hover {
  background: #FFF;
  box-shadow: var(--shadow-md);
  border-color: #CBD5E0;
}

.card-archive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.card-archive-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-light);
  flex: 1 1 auto;
}

.badge-featured-item {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.3px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.card-archive.is-featured-copy {
  border-left: 3px solid #F59E0B;
}

.card-archive-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3rem;
}

.card-archive-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  background: #EEF2F6;
  color: #475569;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

/* Paginación */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #EDF2F7;
}

.page-btn {
  background: #FFF;
  border: 1px solid #CBD5E0;
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
  background: #EDF2F7;
  border-color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Sección Perfil Completo */
.profile-section {
  background: #FFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
}

.profile-container {
  max-width: 1240px;
  margin: 0 auto;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
  margin: 0 auto 2.5rem;
}

.profile-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-bottom: 1.75rem;
}

.profile-trajectory-full {
  width: 100%;
}

.profile-img-large {
  width: 170px;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(15, 41, 66, 0.12);
  border: 4px solid #FFF;
  outline: 1px solid #CBD5E1;
  margin-bottom: 1.25rem;
}

.profile-name {
  font-size: 2.3rem;
  font-family: 'Georgia', serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.profile-headline {
  font-size: 1.05rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 1.25rem;
  max-width: 760px;
  line-height: 1.45;
}

.profile-contact-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.profile-contact-bar .btn-linkedin {
  width: auto;
  margin-top: 0;
  padding: 0.5rem 1.15rem;
}

.profile-socials-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.profile-location-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-left: 0.5rem;
  border-left: 1px solid #CBD5E1;
}

/* ==========================================================================
   Ficha editorial integrada (05/11/2026): retrato + nombre + contacto en un
   solo bloque (el friso de cifras se retiró por redundante con la biografía).
   Rejilla: filas 1 y 5 flexibles centran verticalmente el texto junto al retrato.
   ========================================================================== */
.profile-card-editorial .profile-header-center {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas:
    "foto  .      "
    "foto  kicker "
    "foto  nombre "
    "foto  contacto"
    "foto  .      ";
  column-gap: 2rem;
  align-items: center;
  justify-items: start;
  text-align: left;
}

.profile-card-editorial .profile-img-large {
  grid-area: foto;
  width: 150px;
  height: 168px;
  margin-bottom: 0;
}

.profile-kicker {
  grid-area: kicker;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, #F59E0B);
  margin-bottom: 0.2rem;
}

.profile-card-editorial .profile-name {
  grid-area: nombre;
  margin-bottom: 0.9rem;
}

/* Filete dorado bajo el nombre: une visualmente retrato y nombre */
.profile-card-editorial .profile-name::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 0.6rem;
  background: var(--accent, #F59E0B);
}

.profile-card-editorial .profile-contact-bar {
  grid-area: contacto;
  justify-content: flex-start;
}

/* Móvil: apilado centrado (retrato, nombre, contacto) */
@media (max-width: 640px) {
  .profile-card-editorial .profile-header-center {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "foto"
      "kicker"
      "nombre"
      "contacto";
    justify-items: center;
    text-align: center;
  }
  .profile-card-editorial .profile-img-large { margin-bottom: 1rem; }
  .profile-card-editorial .profile-name { font-size: 1.9rem; }
  .profile-card-editorial .profile-name::after { margin-left: auto; margin-right: auto; }
  .profile-card-editorial .profile-contact-bar { justify-content: center; }
}

.profile-bio-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--accent, #F59E0B);
  border-radius: 12px;
  padding: 2rem 2.25rem;
  text-align: left;
  box-shadow: 0 4px 20px rgba(15, 41, 66, 0.04);
  width: 100%;
}

.profile-bio-p {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 1.15rem;
}

/* Enlaces contextuales minimalistas en la semblanza biográfica (PMQ) */
.enlace-trayectoria,
.profile-bio-link {
  color: #1E3A8A;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(30, 58, 138, 0.28);
  padding-bottom: 1px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.enlace-trayectoria:hover,
.profile-bio-link:hover {
  color: #0F2942;
  text-decoration: none !important;
  border-bottom-color: rgba(245, 158, 11, 0.85);
  background-color: rgba(245, 158, 11, 0.07);
  border-radius: 2px;
}

.profile-bio-p:last-child {
  margin-bottom: 0;
}

.badge-tag {
  display: inline-block;
  background: #EDF2F7;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-right: 0.4rem;
  margin-bottom: 0.5rem;
}

.bio-full-accordion {
  margin-top: 1.5rem;
  background: #F7FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: none;
  scroll-margin-top: 90px; /* Amortigua la cabecera fija sticky (~76px) para no solapar el inicio */
}

.bio-full-accordion.open { display: block; }

.bio-full-accordion h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 1.25rem 0 0.5rem;
}

.bio-full-accordion p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4A5568;
  margin-bottom: 0.85rem;
}

.btn-toggle-bio {
  background: #0F172A;
  color: #FCD34D;
  border: 1.5px solid #F59E0B;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin: 1.25rem 0 1rem;
  width: 100%;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  display: block;
}

.btn-toggle-bio:hover {
  background: #F59E0B;
  color: #0F172A;
  border-color: #F59E0B;
}

.btn-toggle-baul {
  background: rgba(59, 130, 246, 0.12);
  color: #93C5FD;
  border: 1.5px solid rgba(147, 197, 253, 0.4);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-toggle-baul:hover {
  background: rgba(59, 130, 246, 0.28);
  border-color: #93C5FD;
  color: #FFF;
}

/* Modal de Vídeo */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-overlay.open { display: flex; }

/* Endurecimiento WebKit iOS: evita pantalla negra por composición GPU de backdrop-filter sobre vídeo/iframe en móviles */
@media (hover: none), (max-width: 900px) {
  .modal-overlay,
  .modal-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .modal-overlay {
    background: rgba(0, 0, 0, 0.94);
  }
}

.modal-card {
  background: #171923;
  color: #FFF;
  width: 100%;
  max-width: min(1040px, 95vw);
  max-height: 92vh;
  max-height: 92dvh;
  border-radius: var(--radius);
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
}

@media (max-height: 850px) {
  .modal-card {
    max-width: min(1040px, 95vw);
  }
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 1.25rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(21, 24, 34, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  flex-shrink: 0;
}

.modal-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-title-wrap {
  width: 100%;
  text-align: center;
  padding: 0.15rem 0.25rem 0;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: #F8FAFC;
  margin: 0;
  word-break: break-word;
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 0.5rem;
  }
  .modal-header {
    padding: 0.75rem 0.9rem;
    gap: 0.5rem;
  }
  .modal-title {
    font-size: 1.02rem;
  }
  .modal-desc {
    padding: 0.9rem 0.95rem 1.15rem;
  }
}

.modal-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  flex-shrink: 0;
}

.modal-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-desc {
  padding: 1.1rem 1.35rem 1.35rem;
  font-size: 0.86rem;
  color: #CBD5E0;
  line-height: 1.5;
  background: #111319;
}

/* Selector de Pestañas en Modal de Vídeo y Ficha (envolvente táctil en móvil/tablet) */
.modal-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.1rem;
  padding-bottom: 0.35rem;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.modal-tab-btn:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.04);
}

.modal-tab-btn.active {
  color: #FBBF24;
  border-bottom-color: #FBBF24;
  background: rgba(245, 158, 11, 0.08);
}

.modal-tab-pane {
  display: none;
}

.modal-tab-pane.active {
  display: block;
}

/* Footer Editorial */
.footer {
  background: linear-gradient(180deg, #0F172A 0%, #090D16 100%);
  color: #E2E8F0;
  padding: 3.5rem 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.footer-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #CBD5E1;
  max-width: 380px;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #E2E8F0;
  margin-bottom: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: #CBD5E1;
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #FFF;
  text-decoration: underline;
}

.footer-social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-social-links .social-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-social-links .social-btn:hover {
  background: #D9381E;
  border-color: #D9381E;
  color: #FFF;
}

.footer-rtve-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #38BDF8;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.footer-rtve-link:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #7DD3FC;
  text-decoration: none;
}

.footer-copy {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: #64748B;
}

/* Breakpoint 1140px: Ajuste preventivo para niveles de Zoom (125%-150%) y pantallas medianas */
@media (max-width: 1140px) {
  .header-container {
    padding: 0.65rem 1.25rem;
    gap: 0.75rem;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-subtitle {
    font-size: 0.74rem;
  }
  .nav-links a {
    padding: 0.35rem 0.55rem;
    font-size: 0.86rem;
  }
  .social-btn {
    width: 32px;
    height: 32px;
  }
}

/* Breakpoint 960px: Reordenación fluida en dos filas centradas si hay zoom alto o tablet vertical */
@media (max-width: 960px) {
  html {
    scroll-padding-top: 125px; /* Compensa cabecera en dos filas en tablet */
  }
  .header-container {
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
  }
  .brand {
    justify-content: center;
    text-align: center;
  }
  .header-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
}

/* Breakpoint 820px: Cabecera móvil compacta y pantallas pequeñas (Optimizado para 360px+) */
@media (max-width: 820px) {
  .header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
  }
  .brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.65rem;
    min-width: 0;
  }
  .brand-avatar {
    width: 38px;
    height: 38px;
  }
  .brand-title {
    font-size: 1.02rem;
    margin-bottom: 0.1rem;
  }
  .brand-subtitle {
    font-size: 0.72rem;
  }
  .brand-subtitle .sub-line:last-child {
    display: none;
  }
  .header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    gap: 0.5rem;
  }
  .header-right nav {
    flex: 1 1 auto;
    min-width: 0;
  }
  .header-divider {
    display: none;
  }
  .social-links {
    display: none; /* redes disponibles en trayectoria y pie */
  }
  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 0.15rem 0 0.25rem;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.45rem 0.65rem;
    font-size: 0.84rem;
    flex-shrink: 0;
  }
  .btn-header-search {
    min-height: 40px;
    flex-shrink: 0;
  }
  html {
    scroll-padding-top: 112px;
  }

  .hero-title { font-size: 2rem; }
  .hero-inner { flex-direction: column; }
  .hero-card-preview { width: 100%; }
  .profile-card { flex-direction: column; align-items: center; text-align: center; }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }
  .footer-brand-desc {
    margin: 0 auto;
  }
  .footer-social-links {
    justify-content: center;
  }
}

/* ==========================================================================
   Bloque B (03/10/2026): modo lectura del modal, volver arriba y cabecera móvil
   ========================================================================== */

/* Modal en modo lectura (reseñas sin vídeo): oculta el reproductor y da espacio al texto */
.modal-card.modal-reading {
  max-width: min(1200px, 95vw);
  max-height: 94vh;
}

.modal-card.modal-reading .modal-video-wrap { display: none; }

.modal-card.modal-reading .modal-desc {
  max-height: none;
  overflow-y: visible;
  padding: 1.5rem 1.85rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #E2E8F0;
}

/* Modal con visor PDF integrado: amplía el ancho para presentaciones y elimina scrollbars anidados */
.modal-card.modal-has-pdf {
  max-width: min(1160px, 96vw);
  max-height: 94vh;
}

.modal-card.modal-has-pdf .modal-desc {
  max-height: none;
  overflow-y: visible;
  padding: 1.25rem 1.5rem;
}

.modal-card.modal-has-pdf .pdf-viewport {
  max-height: 68vh;
  min-height: 380px;
}

.modal-desc p { margin-bottom: 1rem; }
.modal-desc p:last-child { margin-bottom: 0; }

.modal-original-link {
  display: inline-block;
  margin-top: 0.75rem;
}

/* Botón flotante "volver arriba" */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #FFF;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--primary-light); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Guía de lectura de la Trayectoria (Camino 1): orden, «Saltar a» y buscador.
   Diseño sobrio: nada se oculta, solo se ordena, se salta y se resalta.
   ========================================================================== */

.tl-nav {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.tl-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

/* Conmutador de orden: control segmentado único */
.tl-order {
  display: inline-flex;
  background: rgba(100, 116, 139, 0.12);
  border-radius: 999px;
  padding: 3px;
}

.tl-order-opt {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tl-order-opt:hover:not(.active) { color: inherit; }

.tl-order-opt.active {
  background: #0F172A;
  color: #FFFFFF;
  font-weight: 600;
}

/* Índice «Saltar a»: solo texto */
.tl-jump { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; font-size: 0.88rem; }
.tl-jump-label { color: var(--text-muted); }
.tl-jump-links { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 1rem; }

.tl-jump-links button,
.tl-hint button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: #B45309;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.tl-jump-links button:hover,
.tl-hint button:hover { text-decoration-color: currentColor; }

/* Buscador con pistas */
.tl-search { position: relative; margin-top: 0.9rem; }

.tl-search input {
  width: 100%;
  max-width: 440px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  font: inherit;
  padding: 0.4rem 0;
}

.tl-search input:focus { outline: none; border-bottom-color: #F59E0B; }

.tl-hint { margin: 0.45rem 0 0; font-size: 0.8rem; color: var(--text-muted); }

.tl-suggest {
  position: absolute;
  z-index: 20;
  top: 2.1rem;
  left: 0;
  width: 100%;
  max-width: 440px;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  padding: 0.35rem;
}

.tl-suggest[hidden] { display: none; }

.tl-suggest-title { margin: 0; padding: 0.3rem 0.5rem; font-size: 0.75rem; color: var(--text-muted); }

.tl-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  color: inherit;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.tl-suggest button:hover,
.tl-suggest button:focus-visible { background: rgba(245, 158, 11, 0.14); outline: none; }

.tl-suggest .tl-suggest-year { color: #B45309; font-weight: 600; margin-right: 0.4rem; }

/* Separador discreto de etapas dentro del rodillo */
.timeline-epoch-divider {
  position: relative;
  margin: 2rem 0 1rem -1.5rem;
  padding-left: 1.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-epoch-divider:first-child { margin-top: 0.25rem; }

.timeline-epoch-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Resalte temporal del hito encontrado */
.timeline-item.tl-flash .timeline-body,
.timeline-awards .tl-flash {
  animation: tlFlash 2.4s ease-out;
}

@keyframes tlFlash {
  0%, 35% { background: rgba(245, 158, 11, 0.22); }
  100% { background: transparent; }
}

/* Etiqueta de retorno contextual (abajo a la izquierda): distinta de la flecha circular de portada */
.tl-return {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface, #FFFFFF);
  color: #0F172A;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, border-color 0.2s;
}

.tl-return.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.tl-return:hover { border-color: #F59E0B; }

@media (max-width: 640px) {
  .tl-return { left: 0.75rem; bottom: 0.9rem; padding: 0.5rem 0.9rem; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-return { transition: none; }
}

/* Microanimación de reordenación */
@keyframes timelineItemFade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item.animate-fade {
  animation: timelineItemFade 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 640px) {
  .tl-order { display: flex; width: 100%; }
  .tl-order-opt { flex: 1; padding: 0.45rem 0.4rem; font-size: 0.78rem; }
  .tl-search input, .tl-suggest { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-item.animate-fade, .timeline-item.tl-flash .timeline-body, .timeline-awards .tl-flash { animation: none; }
}

/* ==========================================================================
   Bloque C (03/10/2026): Estilos de Línea de Tiempo de Trayectoria
   ========================================================================== */

.bio-timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid #CBD5E1;
  margin: 1.5rem 0 2rem 0.5rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.6rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #FFF;
  box-shadow: 0 0 0 1.5px #CBD5E1;
}

.timeline-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary);
  color: #FFF;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.timeline-body p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #4A5568;
  margin: 0;
}

.timeline-awards {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.timeline-awards .awards-list {
  padding-left: 1.25rem;
  color: #4A5568;
  line-height: 1.85;
  font-size: 0.92rem;
  margin-top: 0.75rem;
}

.timeline-awards .awards-list li {
  margin-bottom: 0.35rem;
}

/* Enlaces directos a las obras premiadas en el catálogo */
.award-link {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--primary-light);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
  transition: var(--transition);
}

.award-link:hover,
.award-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.award-link::after {
  content: " ↗";
  font-size: 0.85em;
  opacity: 0.75;
}

/* Galería Testimonial: Memoria Gráfica */
.awards-gallery-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
}

.gallery-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-subtitle::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1rem;
  background-color: var(--accent);
  border-radius: 2px;
}

.awards-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.15rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  outline: none;
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background-color: #0b1d30;
  overflow: hidden;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
  display: block;
}

.gallery-card:hover .gallery-thumb-wrap img,
.gallery-card:focus-visible .gallery-thumb-wrap img {
  filter: brightness(1.06);
}

.gallery-zoom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 41, 66, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  opacity: 0.9;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.gallery-card:hover .gallery-zoom-badge {
  opacity: 1;
  background: var(--accent);
}

.gallery-caption {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--surface);
  flex-grow: 1;
}

.gallery-caption strong {
  font-size: 0.84rem;
  color: var(--primary);
  line-height: 1.35;
}

.gallery-caption span {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Modal Foto Styling */
.modal-photo-wrap {
  width: 100%;
  background: #090D16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-photo-img {
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.modal-photo-caption {
  font-size: 1rem;
  color: #FFFFFF;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-left: 4px solid #F59E0B;
  border-radius: 6px;
  padding: 0.95rem 1.35rem;
  line-height: 1.65;
  margin: 0.35rem 0 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Módulo Radio & Fonoteca (03/10/2026): ficha documental y metadatos
   ========================================================================== */

.modal-radio-meta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.radio-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
  color: #CBD5E0;
}

.radio-meta-grid strong {
  color: #FFF;
}

.radio-meta-guests {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #93C5FD;
}

.modal-radio-notice,
.modal-archive-notice {
  margin-top: 1.25rem;
  padding: 0.85rem 1.15rem;
  background: rgba(30, 58, 138, 0.45);
  border: 1px solid rgba(96, 165, 250, 0.5);
  border-left: 4px solid #60A5FA;
  border-radius: 6px;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #F8FAFC;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Marco Audiovisual de Grabaciones Históricas en Modal */
.modal-video-archive-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-sm, 8px);
  padding: 1.25rem;
}

.modal-video-archive-header {
  margin-bottom: 1rem;
}

.modal-video-archive-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.2);
  color: #93C5FD;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.modal-video-archive-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-video-archive-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1rem;
}

.modal-video-archive-title {
  font-size: 0.98rem;
  color: #F8FAFC;
  margin: 0 0 0.4rem 0;
  font-weight: 600;
}

.modal-video-archive-intro {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.45;
  margin: 0 0 0.75rem 0;
}

.modal-video-archive-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Relación de aspecto 16:9 */
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.modal-video-archive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-video-archive-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 4px;
}

.modal-video-archive-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #E2E8F0;
  text-decoration: none;
  background: #1E293B;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-archive-link:hover {
  background: #334155;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-archive-gold {
  background: #1E293B !important;
  color: #FCD34D !important;
  border: 1.5px solid #F59E0B !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn-archive-gold:hover {
  background: #F59E0B !important;
  color: #0F172A !important;
  border-color: #F59E0B !important;
}

.btn-archive-blue {
  background: #1E293B !important;
  color: #93C5FD !important;
  border: 1.5px solid #3B82F6 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn-archive-blue:hover {
  background: #3B82F6 !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
}

.btn-archive-green {
  background: #1E293B !important;
  color: #6EE7B7 !important;
  border: 1.5px solid #10B981 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn-archive-green:hover {
  background: #10B981 !important;
  color: #0F172A !important;
  border-color: #10B981 !important;
}

/* ==========================================================================
   Espacio Testimonial: Baúl de Recuerdos y Orígenes (04/10/2026)
   ========================================================================== */

.baul-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.baul-head {
  margin-bottom: 1.5rem;
}

.baul-intro {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.6;
  max-width: 820px;
  margin-top: 0.35rem;
}

.baul-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.baul-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm, 8px);
  padding: 1.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.baul-card:hover {
  border-color: rgba(147, 197, 253, 0.45);
  transform: translateY(-2px);
}

.baul-card-defcom:hover {
  border-color: rgba(16, 185, 129, 0.65) !important;
}

.baul-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.2);
  color: #93C5FD;
  margin-bottom: 0.75rem;
}

.baul-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.baul-card p,
.baul-card-desc,
.bio-full-accordion .baul-card p,
.bio-full-accordion .baul-card-desc {
  font-size: 0.95rem !important;
  color: #E2E8F0 !important;
  line-height: 1.65 !important;
  margin-bottom: 0.75rem;
}

.baul-card p strong,
.baul-card-desc strong,
.bio-full-accordion .baul-card strong {
  color: #FFFFFF !important;
}

.baul-card p em,
.baul-card-desc em,
.bio-full-accordion .baul-card em {
  color: #FCD34D !important;
  font-style: italic;
}

.baul-card-desc:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Bloque Panorámico: Universidad de Málaga y Radio Torcal (Ancho Completo)
   ========================================================================== */
.baul-card-uma {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, #0e2038 0%, #173250 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  border-top: 4px solid #3B82F6 !important;
  border-radius: var(--radius, 12px);
  box-shadow: 0 12px 32px rgba(14, 32, 56, 0.3);
  padding: 2.25rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.baul-card-uma:hover {
  border-color: rgba(59, 130, 246, 0.75) !important;
  box-shadow: 0 16px 38px rgba(14, 32, 56, 0.4);
}

.baul-uma-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.baul-uma-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.baul-card-uma .baul-card-badge {
  background: #172554 !important;
  color: #93C5FD !important;
  border: 1.5px solid #3B82F6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.baul-uma-meta-pill {
  font-size: 0.82rem;
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.baul-card-uma .baul-card-title {
  font-size: 1.65rem;
  font-family: 'Georgia', serif;
  color: #FFFFFF !important;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 0 0 0.85rem 0;
}

.baul-card-uma .baul-card-lead {
  font-size: 1.02rem !important;
  line-height: 1.7 !important;
  color: #E2E8F0 !important;
  margin: 0 !important;
}

.baul-card-uma .baul-card-lead strong {
  color: #FFFFFF !important;
}

.baul-card-uma .baul-card-lead em {
  color: #93C5FD !important;
  font-style: italic;
  font-weight: 600;
}

/* Caja de Crónica con Margen Horizontal Cómodo */
.baul-uma-chronicle-box {
  background: rgba(10, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #3B82F6;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin: 1.35rem auto 1.75rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.baul-uma-box-header {
  margin-bottom: 0.95rem;
}

.baul-uma-box-header span {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #93C5FD;
  background: #172554;
  border: 1px solid #3B82F6;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
}

.baul-uma-text {
  margin: 0 !important;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.baul-uma-text p {
  font-size: 0.96rem !important;
  line-height: 1.75 !important;
  color: #E2E8F0 !important;
  margin: 0 !important;
}

.baul-uma-text strong {
  color: #FFFFFF !important;
}

.baul-uma-text em {
  color: #FCD34D !important;
  font-style: italic;
  font-weight: 600;
}

/* Cuadrícula Horizontal de Reseñas Documentales (50% / 50%) */
.baul-uma-reseñas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

@media (max-width: 860px) {
  .baul-uma-reseñas-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.baul-uma-reseña-card {
  background: rgba(10, 24, 39, 0.85);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.baul-uma-reseña-card:hover {
  border-color: #3B82F6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.baul-uma-reseña-media {
  position: relative;
  overflow: hidden;
  background: #000;
  height: 200px;
}

.baul-uma-reseña-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: filter 0.25s ease;
}

.baul-uma-reseña-card:hover .baul-uma-reseña-media img {
  filter: brightness(1.05);
}

.baul-uma-reseña-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 0.85rem;
}

.baul-uma-reseña-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93C5FD;
  background: #172554;
  border: 1px solid #3B82F6;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  align-self: flex-start;
}

.baul-uma-reseña-title {
  font-size: 1.15rem;
  font-family: 'Georgia', serif;
  color: #FFFFFF !important;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.baul-uma-reseña-desc {
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  color: #CBD5E1 !important;
  margin: 0 !important;
  flex: 1;
}

.baul-uma-reseña-body .btn-archive-link {
  align-self: flex-start;
  font-size: 0.84rem;
  padding: 0.5rem 1rem;
}

/* ==========================================================================
   Bloque Panorámico: Deporte y Juventud (Formato Horizontal Armónico)
   ========================================================================== */
.baul-card-deporte {
  grid-column: 1 / -1;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-left: 4px solid #38BDF8 !important;
  border-radius: var(--radius, 12px);
  padding: 1.75rem 2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.baul-card-deporte:hover {
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

.baul-deporte-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.baul-card-deporte .baul-card-title {
  font-size: 1.45rem;
  font-family: 'Georgia', serif;
  color: #FFFFFF !important;
  font-weight: 700;
  margin: 0.45rem 0 0 0;
  line-height: 1.3;
}

.baul-deporte-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 2rem;
  align-items: center;
}

.baul-deporte-text-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.baul-deporte-actions {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.baul-deporte-media-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 860px) {
  .baul-deporte-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   Bloque Honorífico: Joaquín Sabina y Pedro Soler (Alta Legibilidad)
   ========================================================================== */
/* ==========================================================================
   Bloque Honorífico: Joaquín Sabina y Pedro Soler (Diseño Armónico Editorial)
   ========================================================================== */
.baul-card-sabina {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, #0f263e 0%, #173654 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  border-top: 4px solid #F59E0B !important;
  border-radius: var(--radius, 12px);
  box-shadow: 0 12px 32px rgba(15, 38, 62, 0.25);
  padding: 2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.baul-card-sabina:hover {
  border-color: rgba(245, 158, 11, 0.75) !important;
  box-shadow: 0 16px 38px rgba(15, 38, 62, 0.35);
}

/* Cabecera Editorial a Ancho Completo */
.baul-sabina-header {
  margin-bottom: 1.65rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.baul-sabina-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.baul-card-sabina .baul-card-badge {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 0.32rem 0.8rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.baul-sabina-meta-pill {
  font-size: 0.82rem;
  color: #94A3B8;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.baul-card-sabina .baul-card-title {
  font-size: 1.6rem;
  font-family: 'Georgia', serif;
  color: #FFFFFF !important;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 0 0 0.85rem 0;
}

.baul-card-sabina .baul-card-lead {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: #E2E8F0 !important;
  margin: 0 !important;
}

.baul-card-sabina .baul-card-lead strong {
  color: #FFFFFF !important;
}

.baul-card-sabina .baul-card-lead em {
  color: #FCD34D !important;
  font-style: italic;
  font-weight: 600;
}

/* Cuadrícula de Contenido Equilibrado (2 Columnas) */
.baul-sabina-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 1.75rem;
  align-items: stretch;
}

/* Columna 1: La Leyenda del Autor (Pedro Soler) */
.baul-sabina-legend-col {
  display: flex;
  flex-direction: column;
}

.baul-sabina-legend-box {
  background: rgba(10, 24, 39, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #F59E0B;
  border-radius: 8px;
  padding: 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.baul-sabina-legend-header {
  margin-bottom: 0.95rem;
}

.baul-sabina-legend-header span {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
}

.baul-sabina-legend-text {
  margin: 0 !important;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.baul-sabina-legend-text p {
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  color: #E2E8F0 !important;
  margin: 0 !important;
}

.baul-sabina-legend-text em {
  color: #FCD34D !important;
  font-style: italic;
  font-weight: 600;
}

/* Columna 2: Pieza Documental (Facsímil, Cita & Acciones Audiovisuales) */
.baul-sabina-media-col {
  display: flex;
  flex-direction: column;
}

.baul-sabina-media-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1.15rem;
}

.baul-sabina-media-card .facsimile-btn {
  background: rgba(10, 24, 39, 0.8);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.35);
  transition: all 0.22s ease;
  display: block;
}

.baul-sabina-media-card .facsimile-btn:hover {
  border-color: #F59E0B;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

.baul-sabina-img-wrap {
  position: relative;
  overflow: hidden;
  background: #000;
}

.baul-sabina-img-wrap img {
  width: 100%;
  display: block;
  border-radius: 8px 8px 0 0;
  transition: filter 0.25s ease;
}

.baul-sabina-media-card .facsimile-btn:hover .baul-sabina-img-wrap img {
  filter: brightness(1.05);
}

.baul-sabina-zoom-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #FCD34D;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.baul-sabina-caption {
  display: block;
  font-size: 0.82rem;
  color: #CBD5E1;
  background: rgba(10, 24, 39, 0.95);
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  line-height: 1.45;
}

.baul-sabina-caption strong {
  color: #FCD34D;
}

/* Cita Destacada (Pull-quote) */
.baul-sabina-quote-highlight {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-left: 3px solid #F59E0B;
  border-radius: 6px;
  padding: 0.85rem 1.1rem 0.85rem 2.2rem;
  position: relative;
}

.baul-sabina-quote-mark {
  position: absolute;
  top: -2px;
  left: 0.65rem;
  font-size: 2rem;
  font-family: 'Georgia', serif;
  color: #F59E0B;
  line-height: 1;
  opacity: 0.75;
}

.baul-sabina-quote-phrase {
  font-size: 0.88rem !important;
  font-style: italic;
  color: #FDE68A !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Botones de Acción Audiovisual */
.baul-sabina-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.baul-sabina-actions .btn-card-primary {
  background: #F59E0B;
  color: #071524;
  font-weight: 700;
  border: none;
  padding: 0.72rem 1.25rem;
  border-radius: 6px;
  font-size: 0.88rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
  display: block;
  width: 100%;
}

.baul-sabina-actions .btn-card-primary:hover {
  background: #D97706;
  color: #000;
  transform: translateY(-1px);
}

.baul-sabina-actions .btn-card-secondary {
  background: rgba(245, 158, 11, 0.12);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  font-size: 0.88rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  display: block;
  width: 100%;
}

.baul-sabina-actions .btn-card-secondary:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #FFFFFF;
  border-color: #F59E0B;
}

/* Responsive */
@media (max-width: 960px) {
  .baul-sabina-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Bloque Panorámico: Proyecto DEFCOM & Deporte Inclusivo (Ancho Completo)
   ========================================================================== */
.baul-card-defcom {
  grid-column: 1 / -1 !important;
  background: linear-gradient(145deg, #071f18 0%, #103429 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  border-top: 4px solid #10B981 !important;
  border-radius: var(--radius, 12px) !important;
  box-shadow: 0 12px 32px rgba(7, 31, 24, 0.3) !important;
  padding: 2rem !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.baul-card-defcom:hover {
  border-color: rgba(16, 185, 129, 0.8) !important;
  box-shadow: 0 16px 38px rgba(7, 31, 24, 0.45) !important;
}

.baul-defcom-header {
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.baul-defcom-main-title {
  font-size: 1.55rem;
  font-family: 'Georgia', serif;
  color: #FFFFFF !important;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin: 0.45rem 0 0 0;
}

.baul-defcom-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 960px) {
  .baul-defcom-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Hemeroteca Histórica y Testimonios de Prensa (04/10/2026)
   ========================================================================== */

.press-gallery-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.press-section-intro {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.press-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.press-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.press-card:hover,
.press-card:focus-visible {
  border-color: rgba(251, 191, 36, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  outline: none;
}

.press-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.press-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: filter 0.3s ease;
}

.press-card:hover .press-thumb-wrap img {
  filter: brightness(1.06);
}

.press-card-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FBBF24;
  margin-bottom: 0.35rem;
}

.press-card .gallery-caption {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: transparent;
}

.press-card .gallery-caption strong {
  font-size: 0.95rem;
  line-height: 1.35;
  color: #F8FAFC;
}

.press-card .gallery-caption span {
  font-size: 0.8rem;
  color: #94A3B8;
  line-height: 1.4;
}

/* Modales: Recortes de prensa en ficha de obra */
.modal-press-section {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 8px);
}

.modal-press-header {
  margin-bottom: 0.85rem;
}

.modal-press-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
}

.modal-shooting-badge {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.modal-press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.modal-press-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.65rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.modal-press-card:hover,
.modal-press-card:focus-visible {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  outline: none;
}

.modal-press-thumb-wrap {
  width: 72px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #071524;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-press-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #071524;
}

.modal-press-zoom {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  color: #F8FAFC;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 4px;
  padding: 3px 7px;
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0.95;
  transition: all 0.2s ease;
}

.modal-press-card:hover .modal-press-zoom {
  opacity: 1;
  background: #F59E0B;
  color: #071524;
  border-color: #F59E0B;
}

/* Previsualización de recortes en tarjetas de hemeroteca */
.card-hemeroteca-preview {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0.65rem 0 0.85rem;
  background: #071524;
  border: 1px solid rgba(245, 158, 11, 0.35);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-hemeroteca-preview:hover {
  transform: translateY(-2px);
  border-color: #F59E0B;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.25);
}

.card-hemeroteca-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #071524;
}

.modal-press-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-press-info strong {
  font-size: 0.88rem;
  color: #F8FAFC;
  line-height: 1.3;
}

.modal-press-info p {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.35;
  margin: 0;
}

/* ==========================================================================
   Marco Editorial: Eco en Prensa & Crítica Histórica (05/10/2026)
   ========================================================================== */

.modal-press-eco-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #F59E0B;
  border-radius: 8px;
  padding: 1.2rem 1.35rem;
  margin-top: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.eco-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.65rem;
}

.eco-card-header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.eco-outlet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FBBF24;
}

.eco-author-meta {
  font-size: 0.82rem;
  color: #CBD5E1;
  font-style: italic;
}

.eco-article-title {
  font-family: "Georgia", "Merriweather", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0.25rem 0 0.45rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.eco-quote-box {
  position: relative;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid #F59E0B;
  border-radius: 6px;
  padding: 1.15rem 1.4rem;
  margin: 0.35rem 0 0.85rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
}

.eco-quote-text {
  font-family: "Georgia", "Merriweather", serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #FFFFFF;
  font-style: normal;
  margin: 0;
}

.eco-body-layout {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 1.25rem;
  align-items: center;
  margin-top: 0.45rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.85rem;
}

.eco-body-layout.eco-body-no-image {
  grid-template-columns: 1fr;
}

@media (max-width: 640px) {
  .eco-body-layout {
    grid-template-columns: 1fr;
  }
}

.eco-facsimile-wrap {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  overflow: hidden;
  background: #071524;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco-facsimile-wrap:hover {
  border-color: #FBBF24;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.25);
}

.eco-facsimile-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #071524;
}

.eco-facsimile-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #F8FAFC;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.95;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.eco-facsimile-wrap:hover .eco-facsimile-overlay {
  opacity: 1;
  background: #F59E0B;
  color: #071524;
  border-color: #F59E0B;
}

.eco-context-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.eco-caption-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #F1F5F9;
  margin: 0;
}

/* ==========================================================================
   Módulo Publicaciones & Documentos Íntegros (04/10/2026)
   ========================================================================== */

.modal-pub-meta {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm, 8px);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.pub-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem 1.2rem;
  color: #CBD5E1;
}

.pub-meta-grid strong {
  color: #F8FAFC;
}

.pub-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  align-items: center;
}

.btn-pub-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-pub-read {
  background: #2563EB;
  color: #FFF;
  border: 1px solid #3B82F6;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.btn-pub-read:hover {
  background: #1D4ED8;
  color: #FFF;
  transform: translateY(-1px);
}

.btn-pub-download {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-pub-download:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFF;
}

/* Visor propio de lectura PDF en Canvas (Protección de descarga y estética integrada) */
.custom-pdf-reader {
  width: 100%;
  margin: 1.5rem 0 1.75rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0B132B;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.9rem;
  background: #0F172A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.75rem;
  user-select: none;
}

.pdf-toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pdf-toolbar-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow: hidden;
  padding-right: 0.5rem;
}

.pdf-toolbar-title-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: #F8FAFC;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.pdf-toolbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-pdf-nav {
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-pdf-nav:hover:not(:disabled) {
  background: #D97706;
  border-color: #F59E0B;
  color: #FFFFFF;
}

.btn-pdf-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pdf-page-indicator {
  color: #CBD5E1;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pdf-page-input {
  width: 3.2rem;
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 0.2rem 0.3rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.pdf-page-input:focus {
  outline: none;
  border-color: #D97706;
  background: #0F172A;
}

.pdf-zoom-level {
  color: #94A3B8;
  font-size: 0.82rem;
  min-width: 2.8rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pdf-viewport {
  position: relative;
  width: 100%;
  max-height: 75vh;
  min-height: 520px;
  overflow: auto;
  background: #1E293B;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

.pdf-viewport.is-zoomable {
  cursor: grab;
}

.pdf-viewport.is-grabbing {
  cursor: grabbing !important;
}

.pdf-canvas-wrapper {
  display: inline-block;
  max-width: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  background: var(--surface, #FFFFFF);
  overflow: hidden;
  line-height: 0;
  margin: 0 auto;
}

.pdf-canvas {
  display: block;
  max-width: none;
  height: auto;
}

.pdf-status-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.94);
  color: #F8FAFC;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  border: 1px solid rgba(217, 119, 6, 0.4);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.pdf-status-msg.hidden {
  display: none;
}

/* Modo pantalla completa para el lector */
.custom-pdf-reader.pdf-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  margin: 0;
  border-radius: 0;
  height: 100vh;
  max-height: 100vh;
  border: none;
}

.custom-pdf-reader.pdf-fullscreen .pdf-viewport {
  flex: 1;
  max-height: calc(100vh - 54px);
  height: calc(100vh - 54px);
}

@media (max-width: 768px) {
  .pdf-toolbar {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  .pdf-toolbar-group {
    gap: 0.3rem;
  }
  .btn-pdf-nav {
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
  }
  .pdf-viewport {
    min-height: 380px;
    padding: 0.75rem 0.25rem;
  }
}

.timeline-pub-cta {
  margin-top: 1rem;
  padding-top: 0.75rem;
}

.btn-timeline-pub-action {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93C5FD;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-timeline-pub-action:hover {
  background: #2563EB;
  color: #FFF;
  border-color: #3B82F6;
  transform: translateY(-1px);
}

/* ==========================================================================
   PROTECCIÓN GLOBAL MULTIMEDIA: VISUALIZACIÓN Y ESCUCHA (SIN DESCARGA DIRECTA)
   ========================================================================== */
img, video, audio, canvas {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.modal-photo-img,
.gallery-img,
.eco-facsimile-img,
.modal-video-archive-video {
  pointer-events: auto;
  user-select: none;
  -webkit-touch-callout: none; /* Desactiva el menú contextual emergente en iOS Safari */
}



/* Rediseño del reproductor de audio - Consola de Estudio y Onda Sonora (Azul Marino y Ámbar) */
.custom-audio-player {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #0d2238, #071524);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
  margin-top: 0.5rem;
}

.custom-audio-play-btn {
  background: var(--accent);
  color: var(--bg-dark);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}

.custom-audio-play-btn:hover {
  transform: scale(1.05);
  background: #D97706;
}

.custom-audio-wave {
  flex: 1;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.custom-audio-wave-bar {
  flex: 1;
  background: rgba(245, 158, 11, 0.4);
  height: 20%;
  border-radius: 2px;
  transition: height 0.1s ease, background 0.1s ease;
  pointer-events: none;
}

.custom-audio-wave-bar.active {
  background: var(--accent);
}

.custom-audio-time {
  font-size: 0.85rem;
  color: #CBD5E1;
  font-variant-numeric: tabular-nums;
  min-width: 45px;
  text-align: right;
  flex-shrink: 0;
}

/* Ajuste compacto del reproductor de audio para móviles estrechos (360px+) sin desbordamiento */
@media (max-width: 560px) {
  .custom-audio-player {
    padding: 0.65rem 0.75rem;
    gap: 0.6rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .custom-audio-play-btn {
    width: 40px;
    height: 40px;
  }
  .custom-audio-wave {
    min-width: 0;
    gap: 1.5px;
  }
  .custom-audio-time {
    font-size: 0.76rem;
    min-width: auto;
  }
}

/* ==========================================================================
   Leyenda y Vivencias del Autor en Modal de Fonoteca (11/10/2026)
   ========================================================================== */
.modal-author-legend-section {
  background: linear-gradient(145deg, #0d2238, #071524);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #F59E0B;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.modal-author-legend-header {
  margin-bottom: 0.75rem;
}

.modal-author-legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.modal-author-legend-quote {
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #E2E8F0;
  font-style: normal;
  white-space: pre-line;
}

.modal-author-legend-action {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-umf-collector-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-umf-collector-link:hover {
  background: #F59E0B;
  color: #071524;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   BLOQUE II: ARQUITECTURA DE NAVEGACIÓN, BUSCADOR RÁPIDO & ÍNDICE CRONOLÓGICO
   Fecha: 12 de octubre de 2026
   Propósito: Relación lineal cronológica interactiva, acceso rápido al buscador
              en cabecera y optimización intuitiva del retorno a la portada.
   ========================================================================== */

/* 1. Botón Cápsula de Búsqueda Rápida en la Cabecera Superior (Destaque Limpio) */
.btn-header-search {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #E2E8F0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  margin: 0 0.35rem;
}

.btn-header-search svg {
  color: #F59E0B;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-header-search-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: #F1F5F9;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-header-search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 0.3rem;
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  color: #94A3B8;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.btn-header-search:hover,
.btn-header-search:focus-visible {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.55);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.22);
  outline: none;
}

.btn-header-search:hover svg,
.btn-header-search:focus-visible svg {
  transform: scale(1.1);
  color: #FCD34D;
}

.btn-header-search:hover .btn-header-search-kbd,
.btn-header-search:focus-visible .btn-header-search-kbd {
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.4);
}

@media (max-width: 680px) {
  .btn-header-search {
    padding: 0;
    width: 36px;
    height: 36px;
    justify-content: center;
    border-radius: 50%;
    margin: 0;
  }
  .btn-header-search-text,
  .btn-header-search-kbd {
    display: none;
  }
}

/* Botón integrado de Contacto Profesional (LinkedIn) en la cabecera */
.btn-header-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: 20px;
  background: rgba(10, 102, 194, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #F8FAFC;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-header-contact svg {
  color: #38BDF8;
  flex-shrink: 0;
}

.btn-header-contact:hover,
.btn-header-contact:focus-visible {
  background: #0A66C2;
  border-color: #60A5FA;
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
}

.btn-header-contact:hover svg,
.btn-header-contact:focus-visible svg {
  color: #FFFFFF;
}

@media (max-width: 680px) {
  .btn-header-contact {
    padding: 0 0.65rem;
    font-size: 0.78rem;
  }
}

/* Resalte visual temporal del buscador al invocarlo */
@keyframes searchInputPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8);
    border-color: #F59E0B;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.3);
    border-color: #F59E0B;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.search-input-highlight {
  animation: searchInputPulse 1.4s ease-out;
  border-color: #F59E0B !important;
}

/* 2. Botón Píldora de Retorno a la Portada en Páginas Secundarias */
.nav-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #FCD34D !important;
  padding: 0.42rem 1rem !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-back-pill:hover,
.nav-back-pill:focus-visible {
  background: #F59E0B !important;
  color: #071524 !important;
  border-color: #F59E0B !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* 3. Selector de Modo de Visualización (Cuadrícula vs Índice Cronológico) */
.archive-view-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #E2E8F0;
}

.view-mode-toggle {
  display: inline-flex;
  background: #E2E8F0;
  padding: 3px;
  border-radius: 25px;
  gap: 3px;
}

.btn-view-mode {
  border: none;
  background: transparent;
  color: #475569;
  padding: 0.45rem 1.05rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-view-mode:hover {
  color: #0F172A;
}

.btn-view-mode.active {
  background: #0F2942;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 41, 66, 0.25);
  font-weight: 700;
}

#btnViewTable {
  border: 1px solid rgba(245, 158, 11, 0.35);
}

#btnViewTable:hover {
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(245, 158, 11, 0.08);
}

.badge-research-mode {
  background: rgba(245, 158, 11, 0.18);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.15rem 0.45rem;
  border-radius: 12px;
  margin-left: 0.35rem;
  transition: all 0.2s ease;
}

.btn-view-mode.active .badge-research-mode {
  background: #F59E0B;
  color: #071524;
  border-color: #F59E0B;
}

.archive-table-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-sort-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
}

.table-sort-select {
  background: var(--surface, #FFFFFF);
  color: #1E293B;
  border: 1px solid #CBD5E1;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}

.table-sort-select:focus {
  border-color: #0F2942;
  outline: none;
}

/* 4. Tabla del Índice Cronológico Lineal */
.archive-table-wrap {
  background: var(--surface, #FFFFFF);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.archive-table-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.88rem;
  color: #475569;
}

.archive-table-summary-count {
  font-weight: 700;
  color: #0F2942;
}

.archive-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.archive-table thead {
  background: #0F2942;
  color: #FFFFFF;
}

.archive-table th {
  padding: 0.9rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(245, 158, 11, 0.5);
  white-space: nowrap;
  box-sizing: border-box;
}

.archive-table tbody tr {
  border-bottom: 1px solid #F1F5F9;
  transition: background-color 0.15s ease;
}

.archive-table tbody tr:hover {
  background-color: #F8FAFC;
}

.archive-table tbody tr:last-child {
  border-bottom: none;
}

.archive-table td {
  padding: 0.8rem 0.75rem;
  vertical-align: middle;
  box-sizing: border-box;
}

/* Celdas específicas de la tabla cronológica lineal */
.table-col-year {
  white-space: normal;
  word-break: break-word;
  width: 12%;
  text-align: center;
}

.table-year-badge {
  display: inline-block;
  background: #F1F5F9;
  color: #0F2942;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  font-weight: 700;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.table-full-date {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 4px;
  line-height: 1.3;
}

.table-col-medium {
  white-space: normal;
  width: 18%;
}

.table-medium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
}

.badge-med-informe { background: rgba(32, 84, 147, 0.12); color: #1E40AF; border: 1px solid rgba(32, 84, 147, 0.25); }
.badge-med-documentales { background: rgba(147, 51, 234, 0.1); color: #7E22CE; border: 1px solid rgba(147, 51, 234, 0.25); }
.badge-med-diario-noche { background: rgba(15, 23, 42, 0.12); color: #0F172A; border: 1px solid rgba(15, 23, 42, 0.3); }
.badge-med-radio { background: rgba(245, 158, 11, 0.15); color: #B45309; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-med-publicaciones { background: rgba(16, 185, 129, 0.12); color: #047857; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-med-docencia { background: rgba(59, 130, 246, 0.12); color: #1D4ED8; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-med-hemeroteca { background: rgba(239, 68, 68, 0.1); color: #B91C1C; border: 1px solid rgba(239, 68, 68, 0.25); }

.table-col-content {
  width: 54%;
  white-space: normal;
  overflow-wrap: break-word;
}

.table-item-title-link {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0F2942;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 0.25rem;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.table-item-title-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.table-item-intro {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 0.35rem 0;
}

.table-meta-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

/* Columna de Autor (reemplazo noble de Entorno) */
.table-col-author {
  width: 130px;
  font-size: 0.85rem;
  color: #1E293B;
  box-sizing: border-box;
}

.table-author-main {
  font-weight: 700;
  color: #0F2942;
  display: block;
}

.table-author-sub {
  font-size: 0.74rem;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.3;
}

.table-col-actions {
  white-space: nowrap;
  width: 16%;
  text-align: center;
  padding-right: 0.85rem;
  box-sizing: border-box;
}

.btn-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  width: auto;
  min-width: 108px;
  max-width: 100%;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-table-primary {
  background: #0F2942;
  color: #FFFFFF;
  border: 1px solid #0F2942;
}

.btn-table-primary:hover {
  background: var(--primary-light);
  color: #FFFFFF;
  border-color: var(--primary-light);
}

.btn-table-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-table-gold:hover {
  background: #F59E0B;
  color: #071524;
  border-color: #F59E0B;
}

/* Barra inferior de retorno en modales de lectura */
.modal-footer-back-bar {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.btn-modal-footer-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0F2942;
  color: #FFFFFF;
  border: 1px solid #0F2942;
  padding: 0.65rem 1.5rem;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 41, 66, 0.25);
}

.btn-modal-footer-back:hover {
  background: #F59E0B;
  color: #071524;
  border-color: #F59E0B;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   6. VISOR DE LECTURA DE DOCUMENTOS PDF INTEGRADO (CON BOTÓN DE REGRESO)
   Evita que el usuario quede atrapado en el lector nativo sin navegación
   ========================================================================== */
.pdf-reader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 21, 36, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.pdf-reader-overlay.open {
  display: flex;
}

.pdf-reader-card {
  width: 100%;
  max-width: 1240px;
  height: 92vh;
  max-height: 92vh;
  background: #0B132B;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.pdf-reader-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: #0F2942;
  border-bottom: 2px solid rgba(245, 158, 11, 0.5);
  color: #FFFFFF;
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-pdf-reader-back {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.6);
  padding: 0.45rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-pdf-reader-back:hover {
  background: #F59E0B;
  color: #071524;
  transform: translateX(-3px);
}

.pdf-reader-title-wrap {
  min-width: 0;
  text-align: center;
  overflow: hidden;
  padding: 0 0.5rem;
}

.pdf-reader-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F59E0B;
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-reader-title {
  margin: 2px 0 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  line-height: 1.25;
}

.pdf-reader-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .pdf-reader-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "back actions"
      "title title";
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
  }
  .btn-pdf-reader-back {
    grid-area: back;
    justify-self: start;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }
  .pdf-reader-actions {
    grid-area: actions;
    justify-self: end;
  }
  .pdf-reader-title-wrap {
    grid-area: title;
    text-align: left;
    padding: 0;
    width: 100%;
  }
  .pdf-reader-title {
    font-size: 0.88rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.btn-pdf-reader-action {
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-pdf-reader-action:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.pdf-reader-close {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.4rem;
  transition: color 0.15s ease;
}

.pdf-reader-close:hover {
  color: #FFFFFF;
}

.pdf-reader-body {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
  background: #1E293B;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.pdf-reader-iframe {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border: none;
  display: block;
  background: var(--surface, #FFFFFF);
  box-sizing: border-box;
}

.pdf-reader-footer {
  padding: 0.6rem 1rem;
  background: #071524;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  flex-shrink: 0;
}

.btn-pdf-reader-bottom-back {
  background: #0F2942;
  color: #E2E8F0;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.45rem 1.25rem;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pdf-reader-bottom-back:hover {
  background: #F59E0B;
  color: #071524;
}

/* 5. Mejora de Accesibilidad en Botones de Cierre de Modales */
.modal-close,
.modal-facsimile-close {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible,
.modal-facsimile-close:hover,
.modal-facsimile-close:focus-visible {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  color: #FFFFFF;
  outline: none;
}

.close-label-text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.close-kbd-tag {
  font-family: monospace;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  padding: 1px 5px;
  color: #CBD5E1;
}

@media (max-width: 768px) {
  .close-kbd-tag {
    display: none;
  }
  .archive-table th,
  .archive-table td {
    padding: 0.75rem 0.65rem;
  }
}

/* ==========================================================================
   PORTADA V2 · Buscador, seis capítulos de la trayectoria, accesos destacados
   y sección Ecosistema (13 de octubre de 2026)
   ========================================================================== */
.hero-v2 { padding: 3rem 1.5rem 3.25rem; }
.hero-inner-v2 { max-width: 1140px; margin: 0 auto; text-align: center; }
.hero-v2 .hero-title { font-size: 2.15rem; margin-bottom: 1rem; text-wrap: balance; }
.hero-v2 .hero-desc { font-size: 1.15rem; color: #E2E8F0; font-weight: 300; margin: 0 auto 2.5rem; max-width: 780px; }

/* Buscador de portada */
.hero-search { display: flex; max-width: 720px; margin: 0 auto 2.25rem; background: #FFF; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,0.3); }
.hero-search-input { flex: 1; border: 0; padding: 0.95rem 1.1rem; font-size: 1rem; color: #0F2942; background: transparent; min-width: 0; }
.hero-search-input:focus { outline: 3px solid #F59E0B; outline-offset: -3px; }
.hero-search-btn { border: 0; background: var(--accent); color: #FFF; font-weight: 700; padding: 0 1.6rem; cursor: pointer; font-size: 0.95rem; }
.hero-search-btn:hover { background: #B92B15; }

/* Seis capítulos */
.hero-chapters-title { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: #F59E0B; font-weight: 700; margin: 0 0 1rem; }
.hero-chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; text-align: left; margin-bottom: 1.25rem; }
.chapter-card { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.15rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; color: #FFF; text-decoration: none; transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease; }
.chapter-card:hover, .chapter-card:focus-visible { background: rgba(245,158,11,0.14); border-color: rgba(245,158,11,0.6); transform: translateY(-3px); text-decoration: none; }
.chapter-icon { font-size: 1.4rem; line-height: 1; }
.chapter-years { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: #FCD34D; font-weight: 700; margin-top: 0.3rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.chapter-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #34D399;
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
  text-transform: uppercase;
}
.chapter-badge-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 6px #10B981;
  display: inline-block;
}
.chapter-name { font-size: 1.2rem; font-family: 'Georgia', serif; color: #FFF; }
.chapter-desc { font-size: 0.9rem; color: #CBD5E1; line-height: 1.45; }

/* Dos accesos destacados */
.hero-jewels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin-bottom: 1.75rem; }
.jewel-card { display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 1.15rem; background: linear-gradient(145deg, #0d2238, #071524); border: 1px solid rgba(245,158,11,0.5); border-radius: 10px; color: #FFF; text-decoration: none; text-align: left; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.jewel-card:hover, .jewel-card:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(245,158,11,0.25); text-decoration: none; }
.jewel-icon { font-size: 1.6rem; }
.jewel-text { display: flex; flex-direction: column; flex: 1; gap: 0.1rem; }
.jewel-text strong { color: #FCD34D; font-size: 1.05rem; }
.jewel-text span { font-size: 0.86rem; color: #CBD5E1; }
.jewel-arrow { color: #F59E0B; font-size: 1.3rem; }
.hero-paths { margin-top: 0; }

/* Ecosistema */
.ecosystem-section { background: #F1F5F9; padding: 3rem 1.5rem; }
.ecosystem-container { max-width: 1040px; margin: 0 auto; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 1.5rem; }
.ecosystem-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.4rem 1.5rem; background: #0F2942; color: #FFF; border-radius: 12px; text-decoration: none; border-left: 5px solid #F59E0B; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.ecosystem-card:hover, .ecosystem-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,41,66,0.3); text-decoration: none; }
.ecosystem-kicker { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #FCD34D; font-weight: 700; }
.ecosystem-name { font-size: 1.5rem; font-family: 'Georgia', serif; }
.ecosystem-desc { font-size: 0.95rem; color: #CBD5E1; line-height: 1.5; }
.ecosystem-go { margin-top: 0.5rem; font-weight: 700; color: #F59E0B; }

@media (max-width: 860px) {
  .hero-chapters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero-v2 .hero-title { font-size: 1.9rem; }
  .hero-chapters, .hero-jewels, .ecosystem-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .hero-search-btn { padding: 0.8rem; }
}

/* Tarjetas-capítulo con foto de archivo (13 de octubre de 2026) */
.chapter-card { padding: 0; overflow: hidden; }
.chapter-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; filter: saturate(0.92); transition: filter 0.3s ease; }
.chapter-card:hover .chapter-photo, .chapter-card:focus-visible .chapter-photo { filter: saturate(1.05) brightness(1.04); }
.chapter-card { overflow: hidden; }
.chapter-card .chapter-years, .chapter-card .chapter-name, .chapter-card .chapter-desc { padding-left: 1.15rem; padding-right: 1.15rem; }
.chapter-card .chapter-years { margin-top: 0.85rem; }
.chapter-card .chapter-desc { padding-bottom: 1.1rem; }

/* Indicador de capítulo activo en la portada hero (Paso 3.3) */
.chapter-card.is-active {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.chapter-card.is-active .chapter-years {
  color: #FBBF24;
}

/* Visor de Recortes y Documentos Gráficos con Lupa y Pantalla Completa */
.photo-viewer-toolbar .btn-viewer-tool:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.btn-facs-zoom:hover {
  background: #F59E0B !important;
  color: #071524 !important;
  transform: translateY(-1px);
}
.photo-viewer-viewport:fullscreen {
  background: #070D17 !important;
  padding: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: auto !important;
}
.photo-viewer-viewport:fullscreen .photo-viewer-img {
  max-height: 94vh !important;
}

/* Botón de salida de pantalla completa: oculto en la vista normal, fijo y visible en modo ampliado */
.btn-viewer-exit-fullscreen {
  display: none;
  align-items: center;
  gap: 0.5rem;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #071524;
  background: #F59E0B;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  transition: filter 0.2s ease, transform 0.2s ease;
}
/* Reglas separadas: si un navegador no reconoce un selector, no invalida el otro */
.photo-viewer-viewport:fullscreen .btn-viewer-exit-fullscreen {
  display: inline-flex;
}
.photo-viewer-viewport:-webkit-full-screen .btn-viewer-exit-fullscreen {
  display: inline-flex;
}
.btn-viewer-exit-fullscreen:hover,
.btn-viewer-exit-fullscreen:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-1px);
  outline: 2px solid #FDE68A;
  outline-offset: 2px;
}
.btn-viewer-exit-fullscreen kbd {
  font-family: inherit;
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(7, 21, 36, 0.18);
}

/* Modo Rodillo Continuo Vertical para Lector PDF */
.pdf-viewport {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.btn-pdf-mode-toggle:hover {
  background: #D97706 !important;
  color: #071524 !important;
  border-color: #F59E0B !important;
}
.pdf-page-slot {
  scroll-margin-top: 1rem;
}
.pdf-page-wrapper {
  transition: transform 0.15s ease;
}

/* Distintivo de Versión en Pie de Página (Sobrio y Funcional) */
.footer-version-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.build-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.build-version-badge:hover,
.build-version-badge:focus-visible {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FCD34D;
  outline: none;
}

.build-version-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  opacity: 0.85;
}

/* Pastilla de acceso discreto a la Muestra del Taller vinculada a TV */
.tab-btn-pill-taller {
  background: rgba(245, 158, 11, 0.12);
  color: #FCD34D;
  border: 1px dashed rgba(245, 158, 11, 0.5);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tab-btn-pill-taller:hover,
.tab-btn-pill-taller.active {
  background: #F59E0B;
  color: #071524;
  border-style: solid;
  border-color: #F59E0B;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}


/* Toast flotante de auto-detección de nueva versión (Enfoque B) */
.update-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, #071524 0%, #0F2942 100%);
  border: 1.5px solid #F59E0B;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.update-toast-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.update-toast-content {
  display: flex;
  flex-direction: column;
}

.update-toast-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #FCD34D;
}

.update-toast-desc {
  font-size: 0.78rem;
  color: #CBD5E1;
  margin-top: 0.15rem;
}

.btn-update-toast {
  background: #F59E0B;
  color: #071524;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin-left: 0.35rem;
}

.btn-update-toast:hover {
  background: #D97706;
}

@media (max-width: 560px) {
  .update-toast {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    flex-wrap: wrap;
    padding: 0.75rem 0.9rem;
    gap: 0.6rem;
  }
}

/* Banner Didáctico del Taller de Guion (Arquitectura visual optimizada y equilibrada) */
.taller-pedagogico-banner {
  grid-column: 1 / -1;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.6rem;
  background: linear-gradient(135deg, #071524 0%, #0F2942 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.taller-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.taller-banner-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #F59E0B;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.taller-banner-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #CBD5E1;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.taller-banner-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.taller-banner-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}

.taller-banner-intro {
  font-size: 0.88rem;
  color: #CBD5E1;
  line-height: 1.5;
  margin: 0 0 0.95rem 0;
  max-width: 980px;
}

.taller-steps-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 768px) {
  .taller-steps-strip {
    grid-template-columns: 1fr;
  }
}

.taller-step-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.2s ease;
}

.taller-step-item:hover {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.taller-step-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.taller-step-num {
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.taller-step-num-1 {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.taller-step-num-2 {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.taller-step-num-3 {
  background: rgba(56, 189, 248, 0.2);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.taller-step-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.taller-step-name-1 { color: #FCD34D; }
.taller-step-name-2 { color: #6EE7B7; }
.taller-step-name-3 { color: #7DD3FC; }

.taller-step-desc {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.45;
  margin: 0;
}

.taller-banner-footer {
  font-size: 0.8rem;
  color: #FCD34D;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Anti layout-shift (13/11/2026): reserva el hueco del contador de resultados para que el subtítulo no se reajuste al teclear */
@media (min-width: 900px) {
  .section-head #archiveTotalCount {
    flex: 0 0 20rem;
    min-height: 3.6rem;
    text-align: left;
  }
}

/* Spotlight premium (13/11/2026): altura estable, cabecera/pie anclados, scroll aislado */
.search-spotlight-dropdown {
  max-height: min(70vh, 560px);        /* límite relativo a la ventana */
  overscroll-behavior: contain;
}

/* Cabecera, banners y pies: nunca se comprimen; solo la lista cede espacio */
.search-spotlight-dropdown > *:not(.spotlight-list) {
  flex-shrink: 0;
}

.spotlight-list {
  flex: 1 1 auto;
  min-height: 7.5rem;                  /* evita que la caja "tiemble" con 1-2 resultados */
  max-height: none;                    /* la altura la manda el contenedor, no 400px fijos */
  overflow-y: auto;
  overscroll-behavior: contain;        /* el scroll no se escapa a la página */
  scrollbar-gutter: stable;            /* la barra no empuja el contenido al aparecer */
}

/* Transición suave de los bloques dinámicos */
.spotlight-item,
.spotlight-action-pill {
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

/* ==========================================================================
   Control de Dimensiones de Fotografías y Galería Documental en Modales (PMQ)
   ========================================================================== */
.photo-viewer-container {
  max-width: 100%;
  box-sizing: border-box;
}

.photo-viewer-viewport,
.modal-photo-wrap {
  max-width: 100%;
  max-height: 85vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.photo-viewer-img,
.modal-photo-img,
.modal-desc img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Tarjetas de galería fotográfica dentro de la ficha modal */
.modal-shooting-section .modal-press-card.modal-shooting-card {
  flex-direction: column;
  align-items: stretch;
}

.modal-shooting-section .modal-shooting-card .modal-press-thumb-wrap {
  width: 100%;
  height: 190px;
  max-height: 220px;
}

.modal-shooting-section .modal-shooting-card .modal-press-thumb-wrap img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
}

/* ==========================================================================
   Módulo Escaparate Multimedia y Árbol de Contenidos (19/11/2026)
   Diseño modular para congresos, repositorios y eventos históricos singulares.
   ========================================================================== */

.modal-showcase-hub {
  margin-top: 0.5rem;
}

/* Hero CTA hacia Repositorio Monográfico */
.showcase-hero-cta {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-sm, 8px);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.showcase-hero-cta-content {
  flex: 1 1 320px;
}

.showcase-hero-cta-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38BDF8;
  margin-bottom: 0.35rem;
}

.showcase-hero-cta-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.showcase-hero-cta-desc {
  font-size: 0.88rem;
  color: #CBD5E1;
  margin: 0;
  line-height: 1.5;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2563EB;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.35rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-hero-cta:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.55);
}

/* Árbol de Navegación y Cuadrícula de Escaparate */
.showcase-tree-section {
  margin-bottom: 2rem;
}

.showcase-tree-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

.showcase-tree-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.showcase-tree-subtitle {
  font-size: 0.88rem;
  color: #94A3B8;
  margin: 0;
}

.showcase-tree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.showcase-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.showcase-card-wide {
  grid-column: 1 / -1;
  background: #0B0F19;
  border-color: rgba(16, 185, 129, 0.25);
}

.showcase-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  background: #030712;
  overflow: hidden;
}

.showcase-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-card-thumb-wrap img {
  transform: scale(1.03);
}

.showcase-card-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #38BDF8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.03em;
}

.showcase-card-body {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.showcase-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #F8FAFC;
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.showcase-card-desc {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0 0 1rem;
  flex: 1;
}

.showcase-card-footer {
  margin-top: auto;
}

.btn-showcase-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.55rem 0.9rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 6px;
  color: #60A5FA !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-showcase-action:hover {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF !important;
}

.showcase-video-wrapper {
  margin-top: 0.5rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.showcase-narrative-box {
  margin: 2rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-narrative-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 1.15rem;
}


