/* ==========================================================================
   Beato Cecilio Vega Domínguez (1913–1936) — hoja de estilos v3
   Sitio multipágina. Hoja ÚNICA compartida por todas las páginas.
   --------------------------------------------------------------------------
   MOBILE FIRST. Todo lo que hay fuera de una media query está escrito para
   pantalla estrecha (base: 320 px). Las ampliaciones van SIEMPRE con
   `min-width`. No se usa `max-width` en ninguna media query de layout.
   --------------------------------------------------------------------------
   Índice
   00. Tokens (color, tipografía, medidas)
   01. Reset y base
   02. Utilidades y accesibilidad
   03. Contenedores y ritmo vertical
   04. Cabecera y navegación (móvil primero: panel desplegable)
   05. Portada (hero) y control de sonido
   06. Tipografía editorial (títulos, prosa, citas, diálogos)
   07. Retrato y figuras
   08. Cita a pantalla completa
   09. Cronología
   10. Avisos, callouts y discrepancias
   11. Lugares (itinerario)
   12. Grupo martirial
   13. Tarjetas de portada (puertas a las subpáginas)
   14. Galería y lightbox
   15. Oración (cuerpo, acotación y rúbrica final)
   16. Fuentes
   16 bis. Llamada de nombres, historia de la causa, vídeo incrustado
   17. Migas de pan y paginación entre subpáginas
   18. Pie
   19. Hueco reservado (imagen pendiente)
   20. Revelado al scroll
   21. Ampliaciones min-width: 480 / 640 / 861 / 1024 px
   22. prefers-reduced-motion
   23. Impresión
   ========================================================================== */


/* ==========================================================================
   00. TOKENS
   Paleta: piedra, hueso, tierra. Acento litúrgico contenido (granate) para no
   caer en lo decorativo.
   ========================================================================== */
:root {
  /* Neutros cálidos */
  --bone:        #f7f4ef;
  --bone-2:      #f0ebe3;
  --paper:       #fdfcfa;
  --stone:       #d9d2c7;
  --stone-dk:    #b6ac9d;

  /* Tintas */
  --ink:         #1b1714;
  --ink-soft:    #3a332d;
  --ink-mute:    #605850;   /* AA sobre hueso */
  --ink-faint:   #756c61;   /* AA sobre hueso en cuerpo pequeño */

  /* Acentos */
  --accent:      #7c2d3a;   /* granate litúrgico */
  --accent-dk:   #5c1f29;
  --accent-lt:   #a85563;
  --gold:        #a8894f;
  --gold-lt:     #c3a468;   /* para texto pequeño sobre oscuro */

  /* Oscuros (secciones inversas) */
  --dark:        #171310;
  --dark-2:      #221c18;
  --dark-3:      #2e2620;

  /* Tipografía */
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype",
           Palatino, "Book Antiqua", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  /* Medidas */
  --wrap:        1180px;
  --wrap-narrow: 680px;
  /* Canal lateral: 18px en 320 px de ancho. Nunca crece de golpe. */
  --gutter:      1.125rem;

  /* Ritmo vertical de secciones (móvil) */
  --section-y:   3.25rem;

  /* Objetivo táctil mínimo */
  --touch:       44px;

  /* Otros */
  --radius:      2px;
  --header-h:    56px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
}


/* ==========================================================================
   01. RESET Y BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Compensa la cabecera fija al saltar a un ancla */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  /* 16px firmes en móvil: legible sin zoom */
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.008em;
  /* Cinturón de seguridad contra desbordamiento horizontal */
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

/* Ninguna palabra larga debe empujar el layout a lo ancho en 320 px */
p, li, h1, h2, h3, dd, dt, figcaption, blockquote, cite, td, th {
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dk); }

/* Foco visible y consistente en todo el sitio */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.section--dark :focus-visible,
.hero :focus-visible,
.lightbox :focus-visible,
.site-header :focus-visible {
  outline-color: var(--gold);
}

button { font: inherit; color: inherit; cursor: pointer; }


/* ==========================================================================
   02. UTILIDADES Y ACCESIBILIDAD
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 300;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--bone); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }


/* ==========================================================================
   03. CONTENEDORES Y RITMO VERTICAL
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

/* Base móvil: una columna. Se parte en dos a partir de 861 px. */
.wrap--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.section { padding-block: var(--section-y); position: relative; }

/* Variantes cromáticas de sección */
.section--tint { background: var(--bone-2); }
.section--dark {
  background: var(--dark);
  color: var(--bone);
}
.section--dark a { color: var(--gold-lt); }
.section--dark .section__title { color: var(--bone); }
.section--dark .section__kicker { color: rgba(247, 244, 239, 0.68); }
.section--dark .section__num { color: rgba(247, 244, 239, 0.35); }

.stack { display: grid; gap: 1.25rem; }

/* Separación cuando el <main> arranca sin hero (subpáginas) */
.main--inner { padding-top: var(--header-h); }


/* ==========================================================================
   04. CABECERA Y NAVEGACIÓN
   Móvil primero: la barra lleva marca + hamburguesa, y el menú es un panel
   desplegable a pantalla completa. A partir de 861 px pasa a fila horizontal.
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--stone);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
}

/* En la portada, sobre el vídeo, la cabecera empieza transparente.
   main.js le pone .is-stuck al hacer scroll. */
.site-header--over {
  background: rgba(247, 244, 239, 0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header--over.is-stuck {
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom-color: var(--stone);
  box-shadow: 0 1px 18px rgba(27, 23, 20, 0.06);
}

.site-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* --- Marca --- */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  text-decoration: none;
  color: var(--ink);
  min-height: var(--touch);
  transition: color 0.35s var(--ease);
  flex: 1 1 auto;
  min-width: 0;
}
.site-header--over .brand { color: var(--bone); }
.site-header--over.is-stuck .brand { color: var(--ink); }
.brand__name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  /* En 320 px el nombre completo no cabe en una línea con el botón: se recorta
     con elipsis en lugar de desbordar. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.brand__dates {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 0.1em;
  white-space: nowrap;
}

/* --- Hamburguesa (visible por defecto; se oculta en escritorio) --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: none;
  border: 1px solid var(--stone-dk);
  color: var(--ink);
  /* Objetivo táctil cómodo */
  min-width: var(--touch);
  min-height: var(--touch);
  padding: 0 0.7rem;
  border-radius: var(--radius);
  flex: 0 0 auto;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header--over .nav-toggle {
  color: var(--bone);
  border-color: rgba(247, 244, 239, 0.45);
}
.site-header--over.is-stuck .nav-toggle { color: var(--ink); border-color: var(--stone-dk); }

.nav-toggle__label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-toggle__bars {
  position: relative;
  width: 18px; height: 10px;
  display: block;
  flex: 0 0 auto;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after  { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(4.25px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4.25px) rotate(-45deg);
}

/* --- Panel de navegación (móvil) --- */
.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(23, 19, 16, 0.985);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247, 244, 239, 0.14);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.primary-nav.is-open {
  /* dvh se ajusta a la barra del navegador móvil; vh queda de reserva */
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0.25rem var(--gutter) 1.25rem;
}
.primary-nav li { border-bottom: 1px solid rgba(247, 244, 239, 0.09); }
.primary-nav li:last-child { border-bottom: 0; }

.primary-nav a {
  display: flex;
  align-items: center;
  /* 48px de alto real: cómodo con el pulgar */
  min-height: 48px;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(247, 244, 239, 0.85);
  position: relative;
  transition: color 0.25s var(--ease);
}
.primary-nav a:hover { color: var(--bone); }

/* Página actual */
.primary-nav a[aria-current="page"] {
  color: var(--gold-lt);
  font-weight: 500;
}
.primary-nav a[aria-current="page"]::before {
  content: "";
  width: 0.5rem;
  height: 1px;
  background: var(--gold-lt);
  margin-right: 0.6rem;
  flex: 0 0 auto;
}

/* --- Barra de progreso de lectura --- */
.scroll-progress {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}
.site-header--over .scroll-progress { opacity: 0; }
.site-header--over.is-stuck .scroll-progress { opacity: 1; }


/* ==========================================================================
   05. PORTADA (HERO)
   Vertical primero. Se usa svh/dvh para que la barra del navegador móvil no
   corte el contenido, con vh de reserva para navegadores antiguos.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
  color: var(--bone);
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video,
.hero__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

/* Degradado para asegurar contraste AA del texto sobre el vídeo */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(12, 10, 9, 0.95) 0%,
      rgba(12, 10, 9, 0.86) 30%,
      rgba(12, 10, 9, 0.56) 62%,
      rgba(12, 10, 9, 0.46) 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  /* Aire arriba para que el eyebrow no choque con la cabecera */
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 3rem;
}

/* El rótulo va en oro sobre vídeo: el oro tiene poca luminancia y en los
   fotogramas claros no alcanzaba AA. Se aclara el tono y se le añade una
   sombra corta que le garantiza el contraste sobre cualquier fotograma. */
.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e0c78d;
  text-shadow: 0 1px 3px rgba(12, 10, 9, 0.95), 0 0 12px rgba(12, 10, 9, 0.7);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  /* 11vw en 320 px ≈ 35px; el clamp lo sube en pantallas grandes */
  font-size: clamp(2.6rem, 11vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
/* PUNTO 4: «Domínguez» SIN CURSIVA.
   El contraste tipográfico se consigue por PESO (600 frente a 300 del
   nombre) y por color, no por `font-style`. */
.hero__title span {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--bone);
}

.hero__lede {
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: rgba(247, 244, 239, 0.92);
  margin: 0 0 1.75rem;
}

/* Datos esenciales */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  margin: 0 0 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(247, 244, 239, 0.24);
}
.hero__facts > div { flex: 1 1 100%; }
.hero__facts dt {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.62);
  margin-bottom: 0.25rem;
}
.hero__facts dd { margin: 0; }
.hero__facts time {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}
.hero__facts dd span {
  display: block;
  font-size: 0.8125rem;
  color: rgba(247, 244, 239, 0.68);
  letter-spacing: 0.02em;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: var(--touch);
  color: var(--bone);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(247, 244, 239, 0.45);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hero__cta svg { width: 16px; height: 16px; flex: 0 0 auto; }
.hero__cta:hover,
.hero__cta:active {
  background: rgba(247, 244, 239, 0.12);
  border-color: var(--bone);
  color: var(--bone);
}

/* --- Botón de sonido: objetivo táctil de 44×44 --- */
.sound-toggle {
  position: absolute;
  top: calc(var(--header-h) + 0.6rem);
  right: var(--gutter);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: var(--touch);
  min-height: var(--touch);
  background: rgba(12, 10, 9, 0.55);
  border: 1px solid rgba(247, 244, 239, 0.35);
  color: var(--bone);
  padding: 0.5rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.sound-toggle:hover,
.sound-toggle:active {
  background: rgba(12, 10, 9, 0.78);
  border-color: rgba(247, 244, 239, 0.6);
}
.sound-toggle__icon { width: 18px; height: 18px; flex-shrink: 0; }
.sound-toggle__text {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* En móvil solo el icono; el nombre accesible va en aria-label */
  display: none;
}
/* Alterna el icono según el estado */
.sound-toggle .sound-toggle__icon--on  { display: none; }
.sound-toggle[aria-pressed="true"] .sound-toggle__icon--off { display: none; }
.sound-toggle[aria-pressed="true"] .sound-toggle__icon--on  { display: block; }


/* ==========================================================================
   06. TIPOGRAFÍA EDITORIAL
   ========================================================================== */

/* Numeración / etiqueta de sección */
.section__num {
  font-family: var(--serif);
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.7rem;
}

/* h1 de subpágina y h2 de sección comparten tratamiento */
.section__title,
.page-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.85rem, 7.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.section__kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 52ch;
  margin: 0 0 1.5rem;
}

/* --- Prosa --- */
.prose > * + * { margin-top: 1.35em; }
.prose p { margin: 0; max-width: 68ch; }
.prose h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 2.25em 0 0;
  color: var(--ink);
}
.prose strong { font-weight: 600; color: var(--ink); }
.prose em { font-style: italic; }

/* Subepígrafe de semblanza: nombre + acotación (edad, oficio, año).
   Mobile first: la acotación cae a su propia línea en pantallas pequeñas. */
.prose h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 1.9em 0 0;
  color: var(--ink);
}
.prose h4 + p { margin-top: 0.45em; }
.prose h4 span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.3em;
}
@media (min-width: 40em) {
  .prose h4 { font-size: 1.2rem; }
}

/* Lista numerada de razones dentro de prosa. Mobile first: sangría corta
   para no comprimir el texto en 320 px. */
.reasons {
  list-style: none;
  counter-reset: reasons;
  margin: 0;
  padding: 0;
}
.reasons li {
  counter-increment: reasons;
  position: relative;
  padding-left: 2.1rem;
  max-width: 68ch;
}
.reasons li + li { margin-top: 0.9em; }
.reasons + p { margin-top: 1.35em; }
.reasons li::before {
  content: counter(reasons);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--accent);
}

.section--dark .prose p,
.section--dark .prose li { color: rgba(247, 244, 239, 0.86); }
.section--dark .prose strong,
.section--dark .prose h3,
.section--dark .prose h4 { color: var(--bone); }

/* Capitular editorial */
.drop-cap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: 0.78;
  font-weight: 400;
  margin: 0.06em 0.09em 0 0;
  color: var(--accent);
}

.lede {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Frase-tesis destacada */
.statement {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-block: 2em !important;
  max-width: none;
}

/* Frase resaltada dentro de la prosa */
.highlight {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
  text-align: center;
  color: var(--ink);
  padding-block: 1.15em;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  margin-block: 2em !important;
}

/* Nota de procedencia en cuerpo pequeño */
.fuente-inline {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-faint);
  font-style: italic;
  max-width: 60ch;
}
.section--dark .fuente-inline { color: rgba(247, 244, 239, 0.62); }

/* --- Citas --- */
.pull {
  margin: 2.25em 0;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid var(--gold);
}
.pull p {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.44;
  font-weight: 300;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}
.pull footer {
  margin-top: 0.9em;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  line-height: 1.55;
}
.pull cite { font-style: normal; font-weight: 600; color: var(--ink-soft); }
.pull--big p { font-size: 1.375rem; }
.pull--song p { font-style: italic; }

.section--dark .pull p { color: var(--bone); }
.section--dark .pull footer { color: rgba(247, 244, 239, 0.66); }
.section--dark .pull cite { color: rgba(247, 244, 239, 0.9); }

/* --- Diálogos tomados de testimonio literal --- */
.dialogue {
  margin: 2.25em 0 0.75em;
  padding: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
}
.dialogue p {
  margin: 0 0 1.1em;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: none;
}
.dialogue p.dialogue__end { margin-bottom: 0; }
.dialogue__who {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3em;
}
.dialogue--hard { border-left: 3px solid var(--accent); }

/* Insignias de datos */
.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.75rem 0 0;
}
.badges li {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--stone);
  background: var(--paper);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
}


/* ==========================================================================
   07. RETRATO Y FIGURAS
   El retrato de archivo es de baja resolución: se enmarca y se limita.
   ========================================================================== */
.portrait { margin: 0; }
.portrait__frame {
  position: relative;
  padding: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  box-shadow: 0 18px 50px -22px rgba(27, 23, 20, 0.35);
  max-width: 300px;
  margin-inline: auto;
}
.portrait__frame::after {
  /* Viñeta suave para integrar la baja resolución */
  content: "";
  position: absolute;
  inset: 0.85rem;
  pointer-events: none;
  box-shadow: inset 0 0 42px rgba(27, 23, 20, 0.28);
}
.portrait__frame img {
  width: 100%;
  filter: contrast(1.04) sepia(0.1);
}
.portrait figcaption {
  margin: 1rem auto 0;
  max-width: 300px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-faint);
  text-align: center;
}

/* Figuras genéricas */
.fig { margin: 0; }
.fig img {
  width: 100%;
  border: 1px solid var(--stone);
  background: var(--paper);
}
.fig figcaption {
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-faint);
}
.fig--video { max-width: 340px; margin-inline: auto; }
.fig--video video {
  width: 100%;
  border: 1px solid var(--stone);
  background: var(--dark);
}
.section--dark .fig figcaption { color: rgba(247, 244, 239, 0.62); }


/* ==========================================================================
   08. CITA A PANTALLA COMPLETA
   ========================================================================== */
.quote-full {
  background: var(--dark);
  color: var(--bone);
  padding-block: 4rem;
  padding-inline: var(--gutter);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-full::before {
  /* Comilla ornamental muy tenue */
  content: "\201C";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  font-family: var(--serif);
  font-size: min(48rem, 90vw);
  line-height: 1;
  color: rgba(247, 244, 239, 0.035);
  pointer-events: none;
  user-select: none;
}
.quote-full__inner {
  position: relative;
  max-width: 34ch;
  margin: 0;
}
.quote-full__inner p {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.45rem, 6.5vw, 2.85rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
.quote-full__inner footer {
  margin-top: 1.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(247, 244, 239, 0.66);
  max-width: 44ch;
  margin-inline: auto;
}
.quote-full__inner cite {
  font-style: normal;
  font-weight: 600;
  color: var(--gold-lt);
}


/* ==========================================================================
   09. CRONOLOGÍA
   ========================================================================== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 780px;
}
/* Eje vertical */
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 7px;
  width: 1px;
  background: linear-gradient(to bottom,
    rgba(247, 244, 239, 0.05),
    rgba(247, 244, 239, 0.28) 12%,
    rgba(247, 244, 239, 0.28) 88%,
    rgba(247, 244, 239, 0.05));
}

.timeline__item {
  position: relative;
  padding: 0 0 2.25rem 1.9rem;
}
.timeline__item:last-child { padding-bottom: 0; }

/* Nodo */
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dark);
  border: 1px solid rgba(247, 244, 239, 0.45);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
/* Nodo iluminado cuando el hito entra en pantalla */
.timeline__item.is-visible::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(168, 137, 79, 0.16);
}
.timeline__item--accent.is-visible::before,
.timeline__item--final.is-visible::before {
  background: var(--accent-lt);
  border-color: var(--accent-lt);
  box-shadow: 0 0 0 5px rgba(168, 85, 99, 0.2);
}

.timeline__date {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin: 0 0 0.4rem;
}
.timeline__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.22;
  margin: 0 0 0.55rem;
  color: var(--bone);
}
.timeline__item p:last-child {
  margin: 0;
  max-width: 58ch;
  color: rgba(247, 244, 239, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}
.timeline__item--final .timeline__title { color: #eddfe1; }
.timeline__item--final .timeline__date { color: var(--accent-lt); }
.timeline__item--accent .timeline__date { color: var(--accent-lt); }


/* ==========================================================================
   10. AVISOS, CALLOUTS Y DISCREPANCIAS
   ========================================================================== */
.callout {
  margin: 2.5em 0;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.callout h3 {
  font-family: var(--sans) !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6f3c;
  margin: 0 0 0.9rem !important;
  line-height: 1.5;
}
.callout p {
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
  color: var(--ink-soft);
  max-width: none;
}
.callout p + p { margin-top: 0.9em; }
.callout__note {
  font-size: 0.875rem !important;
  font-style: italic;
  color: var(--ink-faint) !important;
  padding-top: 0.9em;
  border-top: 1px solid var(--stone);
}
.callout--find { border-left-color: var(--accent); }
.callout--find h3 { color: var(--accent); }

/* Avisos de estado */
.notice {
  margin: 2.5em 0;
  padding: 1.25rem;
  background: rgba(124, 45, 58, 0.045);
  border: 1px dashed var(--accent-lt);
  border-radius: var(--radius);
}
.notice h3 {
  font-family: var(--sans) !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem !important;
  line-height: 1.5;
}
.notice p {
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
  color: var(--ink-soft);
  max-width: none;
}
.notice p + p { margin-top: 0.9em; }

/* Rejilla de discrepancias: una columna en móvil */
.discrepancies {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.disc {
  padding: 1.25rem;
  background: var(--dark-2);
  border: 1px solid rgba(247, 244, 239, 0.12);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
}
.disc__q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.28;
  color: var(--bone);
  margin: 0 0 0.85rem;
}
.disc p {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: rgba(247, 244, 239, 0.78);
  margin: 0;
}
.disc p + p { margin-top: 0.8em; }
.disc strong { color: var(--bone); font-weight: 600; }
.disc em { color: rgba(247, 244, 239, 0.88); }


/* ==========================================================================
   11. LUGARES (itinerario)
   Móvil: lista vertical con línea a la izquierda. Escritorio: fila horizontal.
   ========================================================================== */
.places__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--ink);
  margin: 2.5rem 0 1.5rem;
}
.places {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}
.places__item {
  position: relative;
  padding: 0 0 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
/* Línea del itinerario (vertical en móvil) */
.places__item::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: -1px;
  left: 7px;
  width: 1px;
  height: auto;
  background: var(--stone-dk);
}
.places__item:last-child::before { display: none; }
.places__item:last-child { padding-bottom: 0; }
.places__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bone-2);
  border: 1px solid var(--stone-dk);
}
.places__item--death .places__dot { background: var(--accent); border-color: var(--accent); }
.places__item--glory .places__dot { background: var(--gold); border-color: var(--gold); }
.places__year {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.places__name {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--ink);
}
.places__item--death .places__name { color: var(--accent); }
.places__what {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-mute);
}


/* ==========================================================================
   12. GRUPO MARTIRIAL
   ========================================================================== */
.groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.group {
  padding: 1.35rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
}
.group--july { border-top: 3px solid var(--accent); }
.group--nov  { border-top: 3px solid var(--stone-dk); }

.group header { margin-bottom: 1.35rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--stone); }
.group__date {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 0.2rem;
}
.group__where {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.group--nov .group__where { color: var(--ink-mute); }
.group__count {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin: 0;
  line-height: 1.55;
}

.group__list { margin: 0; padding: 0 0 0 1.35rem; }
.group__list li {
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.45rem 0;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(217, 210, 199, 0.5);
}
.group__list li:last-child { border-bottom: 0; }
.group__list span {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
.group__list--dense li { font-size: 0.9375rem; padding: 0.35rem 0; }

/* Resalte de Cecilio en la lista */
.group__list li.is-cecilio {
  background: rgba(124, 45, 58, 0.07);
  margin-inline: -0.5rem;
  padding-inline: 0.5rem;
  border-radius: var(--radius);
  color: var(--accent-dk);
}
.group__list li.is-cecilio strong { color: var(--accent-dk); font-weight: 600; }
.group__list li.is-cecilio span { color: #8f4450; }

.group__foot {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--stone);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink-faint);
}
.group__leon {
  margin: 1.75rem auto 0;
  max-width: 52ch;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink-mute);
}


/* ==========================================================================
   13. TARJETAS DE PORTADA — puertas a las subpáginas
   Bloque visual con imagen. Toda la tarjeta es un enlace: no depende de hover.
   ========================================================================== */
.doors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.door {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.door:hover,
.door:focus-visible {
  border-color: var(--stone-dk);
  box-shadow: 0 14px 34px -20px rgba(27, 23, 20, 0.45);
  color: inherit;
}
.door__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bone-2);
  overflow: hidden;
}
.door__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.door:hover .door__media img,
.door:focus-visible .door__media img { transform: scale(1.04); filter: saturate(1); }
.door__body {
  padding: 1.1rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
}
.door__num {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.door__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.door__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-mute);
  margin: 0;
  max-width: none;
}
.door__more {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.door__more::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.door:hover .door__more::after { transform: translateX(3px); }


/* ==========================================================================
   14. GALERÍA Y LIGHTBOX
   ========================================================================== */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Móvil estrecho: dos columnas, que en 320 px siguen siendo legibles */
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.gallery__item { margin: 0; }
.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--stone);
  background: var(--paper);
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
}
.gallery__btn img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.92);
}
.gallery__btn::after {
  /* Indicador de "ampliar". Visible SIEMPRE en táctil: no depende de hover. */
  content: "＋";
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(12, 10, 9, 0.62);
  color: var(--bone);
  font-size: 0.95rem;
  line-height: 1;
  opacity: 1;
}
.gallery__btn:hover img,
.gallery__btn:focus-visible img { transform: scale(1.05); filter: saturate(1); }

/* --- Lightbox: usable con una mano --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 8, 7, 0.96);
  display: grid;
  place-items: center;
  padding: calc(var(--touch) + 1.25rem) 0.75rem calc(var(--touch) + 1.25rem);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; }

.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.lightbox__img {
  max-width: 100%;
  max-height: 58vh;
  max-height: 58dvh;
  width: auto;
  object-fit: contain;
  border: 1px solid rgba(247, 244, 239, 0.18);
  background: var(--dark);
}
.lightbox__caption {
  max-width: 62ch;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(247, 244, 239, 0.8);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(247, 244, 239, 0.1);
  border: 1px solid rgba(247, 244, 239, 0.3);
  color: var(--bone);
  /* 48px: cómodo con el pulgar */
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__close svg,
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close:hover, .lightbox__close:active,
.lightbox__nav:hover, .lightbox__nav:active {
  background: rgba(247, 244, 239, 0.2);
  border-color: rgba(247, 244, 239, 0.6);
}
/* Cerrar: arriba a la derecha, alcanzable con el pulgar derecho */
.lightbox__close { top: 0.6rem; right: 0.6rem; }
/* Flechas abajo, a los lados: zona de pulgar en un móvil grande */
.lightbox__nav { bottom: 0.6rem; }
.lightbox__nav--prev { left: 0.6rem; }
.lightbox__nav--next { right: 0.6rem; }

/* Bloquea el scroll del documento con el lightbox abierto */
body.is-locked { overflow: hidden; }


/* ==========================================================================
   15. ORACIÓN
   ========================================================================== */
.section--prayer .section__num,
.section--prayer .section__title { text-align: center; }
/* La oración de la causa. Tres registros tipográficos distintos:
   · .prayer__body      — cuerpo de la oración (serif, cursiva)
   · .prayer__rubric    — acotación entre paréntesis (sans, menor, oro)
   · .prayer__indication — indicación final (versalitas espaciadas)
   En móvil el cuerpo va alineado a la izquierda para que los saltos de línea
   del texto oficial no queden desiguales; se centra a partir de 640 px. */
.prayer {
  max-width: 46ch;
  margin-inline: auto;
  text-align: left;
}
.prayer__body {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.72;
  color: rgba(247, 244, 239, 0.95);
  margin: 0 0 1.6rem;
  text-wrap: pretty;
}
.prayer__body:last-child { margin-bottom: 0; }

/* Acotación: no es voz de la oración, es instrucción al que reza. */
.prayer__rubric {
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gold-lt);
  margin: 0 0 1.6rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(198, 164, 92, 0.45);
}

/* Indicación final: rezo añadido, tratado como rúbrica litúrgica. */
.prayer__indication {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.7;
  color: rgba(247, 244, 239, 0.72);
  margin: 2.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 244, 239, 0.22);
}


/* ==========================================================================
   16. FUENTES
   ========================================================================== */
.sources { display: grid; gap: 1.5rem; }
.source {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
}
.source h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.15rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--stone);
  line-height: 1.5;
}
.source ul { margin: 0; padding-left: 1.1rem; }
.source li {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.source li:last-child { margin-bottom: 0; }
.source strong { font-weight: 600; color: var(--ink); }
.source__why {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-faint);
}
/* Enlaces a la fuente en línea. Mobile first: se envuelven y los objetivos
   táctiles se separan lo suficiente en pantallas pequeñas. */
.source__links {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.83rem;
  line-height: 1.9;
  word-break: break-word;
}
.source__links a { color: var(--accent); }

.source--primary { border-left: 3px solid var(--accent); }
.source--primary h3 { color: var(--accent); }


/* ==========================================================================
   16 bis. LLAMADA DE NOMBRES, HISTORIA DE LA CAUSA Y VÍDEO INCRUSTADO
   Bloques añadidos para la página de la beatificación. Mobile first: una
   columna en 320 px; el rollcall pasa a dos y tres columnas más arriba.
   ========================================================================== */

/* --- Los 22 nombres leídos en la ceremonia --- */
.rollcall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: roll;
  border-top: 1px solid var(--stone);
}
.rollcall li {
  counter-increment: roll;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--stone);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink-soft);
  /* Nombres largos no deben ensanchar el layout en 320 px */
  overflow-wrap: break-word;
  min-width: 0;
}
.rollcall li::before {
  content: counter(roll, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
/* El noveno nombre es el del beato de este sitio. Se marca, sin estridencia. */
.rollcall li.is-cecilio {
  background: rgba(139, 58, 71, 0.07);
  border-left: 3px solid var(--accent);
  padding-left: 0.7rem;
  margin-left: -0.25rem;
}
.rollcall li.is-cecilio strong {
  color: var(--accent-dk);
  font-weight: 600;
}
.rollcall li.is-cecilio::before { color: var(--accent); }

/* --- Cronología del proceso de la causa (sobre fondo oscuro) --- */
.causa {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.causa__step {
  padding: 1.15rem 1.25rem;
  background: rgba(247, 244, 239, 0.05);
  border: 1px solid rgba(247, 244, 239, 0.14);
  border-left: 3px solid rgba(198, 164, 92, 0.55);
  border-radius: var(--radius);
}
.causa__when {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin: 0 0 0.5rem;
}
.causa__what {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--bone);
  margin: 0 0 0.55rem;
}
.causa__step p:last-child {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(247, 244, 239, 0.82);
  margin: 0;
}
.causa__step--glory { border-left-color: var(--gold); }
/* El tramo abierto: el proceso no está cerrado, y se ve. */
.causa__step--open {
  border-left-style: dashed;
  border-left-color: rgba(247, 244, 239, 0.5);
}

/* --- Vídeo incrustado: contenedor 16:9 fluido, sin desbordamiento --- */
.videoembed { margin: 2.25rem 0 0; }
.videoembed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #100e0c;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
}
.videoembed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.videoembed figcaption {
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ink-faint);
}

/* --- Aviso de las dos fechas / dos lugares --- */
.notice--dosfechas { border-left: 3px solid var(--accent); }
.notice--dosfechas h2,
.notice--dosfechas h3 { color: var(--accent); }

/* --- Hueco reservado dentro de la galería (mosaico) --- */
.gallery__item--pending { list-style: none; }
.pending-media--tile { margin: 0; height: 100%; }
.pending-media--tile .pending-media__slot {
  height: 100%;
  min-height: 180px;
}


/* ==========================================================================
   17. MIGAS DE PAN Y PAGINACIÓN ENTRE SUBPÁGINAS
   ========================================================================== */
.breadcrumb {
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-mute);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--stone-dk);
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent);
  text-decoration: underline;
}
.breadcrumb [aria-current="page"] { color: var(--ink-mute); }

/* Paginación anterior / siguiente */
.pager {
  border-top: 1px solid var(--stone);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.pager__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: var(--touch);
  justify-content: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--stone);
  background: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.pager__link:hover,
.pager__link:active { border-color: var(--stone-dk); background: var(--bone-2); color: var(--ink); }
.pager__dir {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.pager__title {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.25;
}
.pager__link--next { text-align: right; }
.pager__link--home {
  align-items: center;
  text-align: center;
}

/* Bloque de navegación al pie de subpágina */
.page-foot { padding-block: var(--section-y); }


/* ==========================================================================
   18. PIE
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: rgba(247, 244, 239, 0.75);
  padding-block: 3rem;
  text-align: center;
}
.site-footer__memorial { margin: 0 0 2rem; }
.site-footer__memorial > span:first-child {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--bone);
  margin-bottom: 0.5rem;
}
.site-footer__dates {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: rgba(247, 244, 239, 0.6);
  line-height: 1.7;
}
.site-footer__nav {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1rem;
}
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding-inline: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.7);
  text-decoration: none;
}
.site-footer__nav a:hover { color: var(--bone); text-decoration: underline; }
.site-footer__note {
  max-width: 62ch;
  margin: 0 auto 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(247, 244, 239, 0.66);
}
.site-footer__note strong { color: rgba(247, 244, 239, 0.88); font-weight: 500; }
.site-footer__legal {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 244, 239, 0.12);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.5);
}


/* ==========================================================================
   19. HUECO RESERVADO (imagen pendiente de recibir)
   Contenedor con proporción fija: cuando llegue la foto correcta, el layout
   no salta. Intencionadamente visible y digno, no un error.
   ========================================================================== */
.pending-media {
  margin: 0;
}
.pending-media__slot {
  /* Proporción 3:4 vertical, la habitual de un altar mayor fotografiado.
     Fijarla ahora evita que el layout salte cuando llegue la foto. */
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.75rem 1.35rem;
  color: var(--ink-mute);
  /* Marco continuo y sobrio: un hueco reservado, no un error de carga.
     Nada de rayados ni de iconos de "imagen rota". */
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background-color: var(--bone-2);
  background-image: linear-gradient(
    170deg,
    rgba(253, 252, 250, 0.75) 0%,
    rgba(240, 235, 227, 0) 55%
  );
}
/* Filete corto sobre el rótulo: gesto editorial, no señal de fallo */
.pending-media__rule {
  width: 2.25rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.75;
}
.pending-media__label {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
  max-width: 20ch;
}
.pending-media__state {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.pending-media figcaption {
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-faint);
}


/* ==========================================================================
   20. REVELADO AL SCROLL
   La clase .reveal parte oculta SOLO si JS está activo (main.js añade
   .js-reveal al <html>), para no romper la página sin JavaScript.
   ========================================================================== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ==========================================================================
   21. AMPLIACIONES (min-width) — de móvil hacia arriba
   ========================================================================== */

/* --- 480 px: móvil grande / phablet --- */
@media (min-width: 480px) {
  :root {
    --gutter: 1.5rem;
    --section-y: 4rem;
  }

  .hero__facts > div { flex: 1 1 9rem; }
  .hero__cta { width: auto; }

  .sound-toggle { padding: 0.5rem 0.85rem; }
  .sound-toggle__text { display: block; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }

  .pager {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .pager__link--home { grid-column: 1 / -1; }
}

/* --- 640 px: tablet pequeña --- */
@media (min-width: 640px) {
  :root {
    --gutter: 2rem;
    --section-y: 5rem;
    --header-h: 64px;
  }

  body { font-size: 1.0625rem; }

  /* Oración: a partir de aquí hay sitio para centrarla con dignidad. */
  .prayer { text-align: center; }
  .prayer__body { font-size: 1.1875rem; }
  .prayer__rubric {
    padding-left: 0;
    border-left: 0;
    padding-top: 0.15rem;
  }

  /* Los 22 nombres en dos columnas */
  .rollcall { grid-template-columns: 1fr 1fr; column-gap: 2rem; }

  .section__kicker { font-size: 1.25rem; }
  .lede { font-size: 1.375rem; }
  .pull p { font-size: 1.4rem; }
  .pull--big p { font-size: 1.7rem; }
  .statement { font-size: 1.6rem; padding-left: 1.35rem; max-width: 30ch; }
  .highlight { font-size: 1.375rem; }
  .dialogue { padding: 1.5rem; }
  .dialogue p { font-size: 1.2rem; }
  .prose h3 { font-size: 1.45rem; }
  .drop-cap::first-letter { font-size: 4.1em; }

  .timeline__item { padding: 0 0 2.75rem 2.5rem; }
  .timeline__title { font-size: 1.5rem; }

  .quote-full { padding-block: 6rem; }
  .quote-full__inner { max-width: 38ch; }

  .discrepancies { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .groups { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .doors { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }

  .callout, .notice { padding: 1.6rem; }
  .source, .group, .disc { padding: 1.6rem; }

  .site-footer { padding-block: 4rem; }
  .site-footer__memorial > span:first-child { font-size: 1.7rem; }

  .lightbox { padding: 4rem 2rem; }
  .lightbox__img { max-height: 68vh; max-height: 68dvh; }
  .lightbox__nav { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
  .lightbox__close { top: 1.25rem; right: 1.25rem; }

  /* Itinerario horizontal a partir de tablet */
  .places { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .places__item { padding: 2.35rem 0.75rem 0 0; }
  .places__item::before {
    top: 7px; bottom: auto; left: 0; right: 0;
    width: auto; height: 1px;
  }
  .places__item:last-child::before { display: block; right: calc(100% - 15px); }
  .places__item:last-child { padding-bottom: 0; }
  .places__name { font-size: 1.25rem; }
}

/* --- 861 px: escritorio. Nav horizontal y dos columnas. --- */
@media (min-width: 861px) {
  :root { --section-y: 6.5rem; }

  /* Cronología de la causa en dos columnas */
  .causa { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  /* Los 22 nombres en tres columnas */
  .rollcall { grid-template-columns: repeat(3, 1fr); }

  /* La hamburguesa desaparece; el menú vuelve a ser una fila */
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    inset: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    max-height: none;
    overflow: visible;
  }
  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
  }
  .primary-nav li { border-bottom: 0; }
  .primary-nav a {
    min-height: var(--touch);
    padding: 0.4rem 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--ink-mute);
    white-space: nowrap;
  }
  .site-header--over .primary-nav a { color: rgba(247, 244, 239, 0.85); }
  .site-header--over.is-stuck .primary-nav a { color: var(--ink-mute); }
  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 0.4rem; right: 0.4rem; bottom: 0.35rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
  }
  .primary-nav a:hover { color: var(--ink); }
  .site-header--over .primary-nav a:hover { color: var(--bone); }
  .primary-nav a:hover::after { transform: scaleX(1); }

  .primary-nav a[aria-current="page"] { color: var(--accent); }
  .site-header--over .primary-nav a[aria-current="page"] { color: var(--gold-lt); }
  .primary-nav a[aria-current="page"]::before { display: none; }
  .primary-nav a[aria-current="page"]::after {
    transform: scaleX(1);
    background: var(--accent);
  }
  .site-header--over .primary-nav a[aria-current="page"]::after { background: var(--gold-lt); }

  /* Dos columnas: texto + apoyo visual */
  .wrap--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
  }
  .wrap--split-rev > *:first-child { order: 2; }
  .wrap--split-rev > *:last-child  { order: 1; }

  .stack { gap: 2rem; }

  .hero { min-height: 100vh; min-height: 100svh; }
  .hero__content { padding-bottom: 5rem; }
  .hero__eyebrow::before {
    content: "";
    display: inline-block;
    width: 2.5rem;
    height: 1px;
    background: var(--gold-lt);
    vertical-align: middle;
    margin-right: 0.9rem;
  }
  .hero__scrim {
    /* En escritorio el texto ocupa la franja izquierda-inferior: se refuerza
       ahí el velo para garantizar contraste AA sobre cualquier fotograma. */
    background:
      linear-gradient(to top,
        rgba(12, 10, 9, 0.95) 0%,
        rgba(12, 10, 9, 0.84) 28%,
        rgba(12, 10, 9, 0.50) 56%,
        rgba(12, 10, 9, 0.44) 100%),
      linear-gradient(to right,
        rgba(12, 10, 9, 0.62) 0%,
        rgba(12, 10, 9, 0.28) 45%,
        rgba(12, 10, 9, 0.05) 72%);
  }
  .hero__lede { font-size: 1.1875rem; }

  .portrait__frame, .portrait figcaption { max-width: 340px; }
  .portrait figcaption { text-align: left; }
  .fig--video { max-width: none; }

  .section__title, .page-title { font-size: clamp(2.4rem, 4.6vw, 3.5rem); }

  .brand__name { font-size: 1.0625rem; }

  .doors { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }

  .pager { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .pager__link--home { grid-column: auto; }
}

/* --- 1024 px: espacio holgado --- */
@media (min-width: 1024px) {
  :root { --gutter: 3rem; --section-y: 8rem; }
  .discrepancies { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}


/* ==========================================================================
   22. PREFERS-REDUCED-MOTION
   Se desactivan animaciones y el autoplay del vídeo (main.js oculta el vídeo
   y muestra el póster estático).
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  .gallery__btn img,
  .door__media img { transition: none; }
  .gallery__btn:hover img,
  .door:hover .door__media img { transform: none; }
}


/* ==========================================================================
   23. IMPRESIÓN
   Documento legible en papel: sin vídeo, sin navegación, con URLs de apoyo.
   ========================================================================== */
@media print {
  @page { margin: 18mm 16mm; }

  :root { --section-y: 0; --header-h: 0px; }

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-family: "Iowan Old Style", Georgia, serif;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  /* Fuera lo que no imprime */
  .site-header,
  .nav-toggle,
  .primary-nav,
  .scroll-progress,
  .sound-toggle,
  .hero__media,
  .hero__cta,
  .lightbox,
  .skip-link,
  .pager,
  .site-footer__nav,
  .fig--video,
  .videoembed,
  video { display: none !important; }

  .main--inner { padding-top: 0 !important; }

  .section,
  .quote-full,
  .section--dark,
  .section--tint,
  .site-footer,
  .page-foot {
    background: #fff !important;
    color: #000 !important;
    padding-block: 0 !important;
    margin-bottom: 8mm;
  }

  .hero {
    min-height: auto !important;
    color: #000 !important;
    background: #fff !important;
    padding-block: 0 0 8mm;
    border-bottom: 1pt solid #000;
    display: block;
  }
  .hero__content { padding: 0 !important; }
  .hero__title { font-size: 30pt !important; color: #000 !important; }
  .hero__title span { color: #000 !important; }
  .hero__eyebrow,
  .hero__facts dt,
  .hero__facts dd span { color: #333 !important; }
  .hero__lede { color: #000 !important; font-size: 11pt !important; }
  .hero__facts { border-color: #999 !important; }
  .hero__facts time { color: #000 !important; }

  .section__title, .page-title { font-size: 17pt !important; color: #000 !important; page-break-after: avoid; }
  .section__num { color: #666 !important; }
  .section__kicker { color: #333 !important; font-size: 11pt !important; }

  .prose p, .disc p, .callout p, .notice p, .source li,
  .door__text, .breadcrumb { color: #000 !important; }

  /* Nombres de la ceremonia y cronología de la causa: legibles en papel */
  .rollcall { border-color: #999 !important; }
  .rollcall li {
    color: #000 !important;
    border-color: #ccc !important;
    page-break-inside: avoid;
  }
  .rollcall li::before { color: #666 !important; }
  .rollcall li.is-cecilio {
    background: none !important;
    border-left-color: #000 !important;
  }
  .rollcall li.is-cecilio strong { color: #000 !important; }
  .causa__step {
    background: none !important;
    border-color: #999 !important;
    page-break-inside: avoid;
  }
  .causa__when { color: #666 !important; }
  .causa__what, .causa__step p { color: #000 !important; }

  /* Oración: los tres registros se mantienen distinguibles impresos */
  .prayer__body { color: #000 !important; }
  .prayer__rubric { color: #333 !important; border-left-color: #999 !important; }
  .prayer__indication { color: #333 !important; border-top-color: #999 !important; }

  .pull, .quote-full__inner {
    border-left: 2pt solid #000 !important;
    padding-left: 4mm;
  }
  .quote-full::before { display: none; }
  .quote-full__inner p,
  .pull p,
  .timeline__title,
  .disc__q,

  .quote-full__inner p { font-size: 15pt !important; }
  .quote-full__inner footer,
  .pull footer { color: #333 !important; }
  .quote-full__inner cite { color: #000 !important; }

  .timeline::before { background: #999 !important; }
  .timeline__item::before { background: #000 !important; border-color: #000 !important; box-shadow: none !important; }
  .timeline__date { color: #444 !important; }
  .timeline__item, .disc, .group, .source, .callout, .notice,
  .door, .pending-media {
    page-break-inside: avoid;
    background: #fff !important;
    border-color: #999 !important;
    color: #000 !important;
  }
  .timeline__item p:last-child { color: #000 !important; }

  .pending-media__slot {
    background-image: none !important;
    aspect-ratio: auto;
    padding: 6mm;
  }
  .pending-media__label, .pending-media__state { color: #000 !important; }
  .pending-media__rule { background: #000 !important; }

  .gallery { grid-template-columns: repeat(3, 1fr) !important; gap: 4mm !important; }
  .gallery__btn { border-color: #999 !important; }
  .gallery__btn img { filter: none !important; }
  .gallery__btn::after { display: none !important; }



  .site-footer__memorial > span:first-child,
  .site-footer__dates,
  .site-footer__note,
  .site-footer__legal { color: #000 !important; }

  /* Muestra el destino de los enlaces externos */
  .source a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #555;
    word-break: break-all;
  }

  .reveal { opacity: 1 !important; transform: none !important; }
  h1, h2, h3 { page-break-after: avoid; }
}
