/* ═══════════════════════════════════════════════════════════════════════════
   Tridentinas de Guadalupe · Tema «Barroco Dorado»
   HTML5 + CSS3 moderno: variables personalizadas, grid, clamp(), color-mix
   Compatibilidad: navegadores modernos (Chrome/Edge/Firefox/Safari recientes)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Paleta barroca */
  --marfil: #f6efdd;
  --marfil-claro: #fbf7ea;
  --marfil-oscuro: #efe4c9;
  --papel: #f2e9d2;
  --oro: #b08d3e;
  --oro-claro: #d8b24c;
  --oro-oscuro: #8f7430;
  --tinta: #2b2118;
  --tinta-suave: #5a4c3a;
  --vino: #6e1423;
  --vino-oscuro: #4d0d19;
  --pana: #241a0e;

  /* Tipografía */
  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-texto: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --sombra: 0 10px 30px rgb(36 26 14 / 12%);
  --radio: 4px;
  --ancho: min(1160px, 92vw);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 50% -180px, rgb(216 178 76 / 14%), transparent 70%),
    repeating-linear-gradient(45deg, rgb(176 141 62 / 2.5%) 0 2px, transparent 2px 14px),
    var(--marfil);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.saltar {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--oro-oscuro);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.saltar:focus { left: 0.5rem; top: 0.5rem; }

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

/* ─── Cabecera ────────────────────────────────────────────────────────────── */

.cabecera {
  border-bottom: 1px solid rgb(176 141 62 / 45%);
  background:
    linear-gradient(rgb(36 26 14 / 96%), rgb(30 21 11 / 96%));
  color: var(--marfil-claro);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgb(20 14 6 / 35%);
}

.cabecera-interior {
  width: var(--ancho);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.marca { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.marca-emblema { width: 44px; height: 44px; flex: none; }
.marca-texto { display: flex; flex-direction: column; line-height: 1.15; }
.marca-nombre {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.28rem);
  color: var(--oro-claro);
}
.marca-latin { font-style: italic; font-size: 0.72rem; color: rgb(246 239 221 / 65%); letter-spacing: 0.04em; }

.menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}
.menu a {
  display: inline-block;
  padding: 0.45rem 0.72rem;
  color: rgb(246 239 221 / 85%);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.045em;
  border-bottom: 2px solid transparent;
}
.menu a:hover { color: var(--oro-claro); }
.menu a.activo {
  color: var(--oro-claro);
  border-bottom-color: var(--oro-claro);
}

.menu-boton {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid rgb(216 178 76 / 50%);
  border-radius: var(--radio);
  padding: 0.55rem;
  cursor: pointer;
}
.menu-boton span { width: 22px; height: 2px; background: var(--oro-claro); display: block; }

.cabecera-vivo {
  width: var(--ancho);
  margin: 0 auto;
  padding: 0 0 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pill-vivo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  background: rgb(246 239 221 / 6%);
  border: 1px solid rgb(216 178 76 / 40%);
  border-radius: 999px;
  padding: 0.22rem 0.3rem 0.22rem 0.8rem;
  text-decoration: none;
  color: inherit;
}
.pill-estado {
  font-family: var(--f-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #ff9d8f;
}
.pill-pista {
  font-size: 0.9rem;
  color: rgb(246 239 221 / 85%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}
.pill-boton {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--oro-claro);
  background: rgb(216 178 76 / 15%);
  color: var(--oro-claro);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
}
.pill-boton:hover { background: rgb(216 178 76 / 30%); }
.pill-vivo[data-sonando="1"] .pill-boton::after { content: ""; }

.punto-vivo {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #e2543e;
  animation: latido 1.6s ease-in-out infinite;
  flex: none;
}
@keyframes latido {
  0%, 100% { box-shadow: 0 0 0 0 rgb(226 84 62 / 55%); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgb(226 84 62 / 0%); opacity: 0.75; }
}

.cabecera-hoy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-style: italic;
  color: rgb(246 239 221 / 70%);
}

.color-liturgico {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid rgb(0 0 0 / 25%);
  flex: none;
}
.lit-blanco { background: #fbf7ea; }
.lit-rojo { background: #b3272d; }
.lit-morado { background: #5b3a6b; }
.lit-verde { background: #3e6b3e; }
.lit-rosa { background: #e5a3b3; }
.lit-negro { background: #26221c; }

/* ─── Estructura común ────────────────────────────────────────────────────── */

.contenido { flex: 1 0 auto; width: var(--ancho); margin: 0 auto; padding: 1.6rem 0 3rem; }

.seccion { margin: 3.2rem 0; }
.seccion-cabecera { text-align: center; margin-bottom: 1.8rem; }
.seccion-cabecera h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  letter-spacing: 0.05em;
  margin: 0;
  color: var(--pana);
}
.latin-sub {
  font-style: italic;
  color: var(--oro-oscuro);
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  margin: 0 0 0.35rem;
  text-transform: lowercase;
}

.pagina-cabecera { text-align: center; padding: 2rem 0 1.4rem; }
.pagina-cabecera .latin-sub { display: block; }
.pagina-cabecera h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  letter-spacing: 0.06em;
  color: var(--pana);
  margin: 0 0 0.6rem;
}
.pagina-intro { max-width: 62ch; margin: 0 auto; color: var(--tinta-suave); }

.seccion-alt {
  background: linear-gradient(180deg, rgb(176 141 62 / 7%), transparent 70%);
  border-top: 1px solid rgb(176 141 62 / 30%);
  border-bottom: 1px solid rgb(176 141 62 / 30%);
  padding: 2.4rem 1rem;
  margin: 3.2rem calc(50% - 50vw);
}

/* ─── Botones y enlaces ───────────────────────────────────────────────────── */

.boton {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.72rem 1.5rem;
  border-radius: var(--radio);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.boton:hover { transform: translateY(-1px); box-shadow: var(--sombra); }
.boton:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.boton-oro {
  background: linear-gradient(180deg, #d8b24c, #a8842f);
  color: #241a0e;
  border-color: #8f7430;
  font-weight: 600;
}
.boton-oro:hover { background: linear-gradient(180deg, #e2bd5b, #b08d3e); }

.boton-linea {
  background: transparent;
  color: var(--oro-oscuro);
  border-color: var(--oro-oscuro);
}
.boton-linea:hover { background: rgb(176 141 62 / 10%); }

.boton-compacto { padding: 0.42rem 0.9rem; font-size: 0.85rem; }

.enlace-oro {
  color: var(--oro-oscuro);
  text-decoration: none;
  border-bottom: 1px solid rgb(143 116 48 / 50%);
}
.enlace-oro:hover { color: var(--vino); border-bottom-color: var(--vino); }

.vacio { text-align: center; font-style: italic; color: var(--tinta-suave); padding: 2rem 0; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.hero { padding: 2.6rem 0 1rem; }

.hero-marco {
  position: relative;
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3.5rem);
  border: 1px solid rgb(176 141 62 / 55%);
  outline: 3px double rgb(176 141 62 / 45%);
  outline-offset: 6px;
  border-radius: var(--radio);
  background:
    radial-gradient(600px 220px at 50% 0%, rgb(216 178 76 / 12%), transparent 75%),
    linear-gradient(180deg, var(--marfil-claro), var(--marfil));
  box-shadow: var(--sombra);
}

.hero-latin1 {
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--oro-oscuro);
  font-size: clamp(0.85rem, 0.7rem + 0.5vw, 1.05rem);
  margin: 0 0 0.9rem;
  text-transform: lowercase;
}

.hero-titulo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1.4rem + 4.2vw, 4.4rem);
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.08;
  color: var(--pana);
}
.hero-titulo .hero-de {
  font-style: italic;
  font-family: var(--f-texto);
  font-weight: 500;
  color: var(--oro-oscuro);
  font-size: 0.55em;
  margin: 0 0.12em;
}

.hero-regla {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.1rem auto 0.9rem;
  max-width: 480px;
}
.hero-regla span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--oro)); }
.hero-regla span:last-child { background: linear-gradient(90deg, var(--oro), transparent); }
.hero-cruz { width: 26px; height: 26px; }

.hero-subtitulo {
  font-family: var(--f-display);
  letter-spacing: 0.14em;
  font-size: clamp(0.85rem, 0.75rem + 0.5vw, 1.1rem);
  color: var(--vino);
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.hero-texto { max-width: 60ch; margin: 0 auto 1.6rem; color: var(--tinta-suave); }

.hero-botones { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }

.hero-vivo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--tinta-suave);
}

.pill-vivo-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--vino);
  border: 1px solid rgb(110 20 35 / 35%);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: rgb(110 20 35 / 6%);
}

/* ─── Servicios (portada) ─────────────────────────────────────────────────── */

.servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.tarjeta-servicio {
  border: 1px solid rgb(176 141 62 / 45%);
  border-radius: var(--radio);
  background: linear-gradient(180deg, var(--marfil-claro), var(--marfil));
  padding: 1.6rem 1.5rem;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tarjeta-servicio h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.3rem;
  color: var(--pana);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.latin-deco {
  font-family: var(--f-texto);
  font-style: italic;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--oro-oscuro);
}
.tarjeta-servicio p { margin: 0; color: var(--tinta-suave); }
.tarjeta-ahora {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--vino);
  border-left: 3px solid var(--oro-claro);
  padding-left: 0.6rem;
}
.tarjeta-servicio .enlace-oro { align-self: flex-start; margin-top: auto; padding-top: 0.5rem; }

/* ─── Santoral ────────────────────────────────────────────────────────────── */

.rejilla-santos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.3rem;
}
.tarjeta-santo {
  border-top: 3px double var(--oro);
  background: rgb(251 247 234 / 70%);
  padding: 1.2rem 1.1rem;
  border-radius: 0 0 var(--radio) var(--radio);
}
.tarjeta-santo h3 {
  font-family: var(--f-display);
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.15rem;
  color: var(--pana);
}
.santo-latin { font-style: italic; color: var(--oro-oscuro); font-size: 0.9rem; margin: 0 0 0.3rem; }
.santo-fecha { font-size: 0.85rem; color: var(--vino); margin: 0 0 0.5rem; letter-spacing: 0.03em; }
.tarjeta-santo p:last-child { margin: 0; font-size: 0.97rem; color: var(--tinta-suave); }

/* ─── Calendario (avance y página) ────────────────────────────────────────── */

.calendario-avance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  align-items: start;
}
.hoy-liturgico {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border: 1px solid rgb(176 141 62 / 45%);
  border-radius: var(--radio);
  padding: 1.2rem 1.4rem;
  background: var(--marfil-claro);
}
.hoy-etiqueta {
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--oro-oscuro);
  border: 1px solid rgb(176 141 62 / 50%);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.2rem;
}
.hoy-tiempo { margin: 0; font-size: 0.9rem; font-style: italic; color: var(--tinta-suave); }
.hoy-fiesta { margin: 0.2rem 0 0; font-family: var(--f-display); font-size: 1.12rem; color: var(--pana); }

.lista-proximas { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.lista-proximas li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted rgb(176 141 62 / 45%);
  font-size: 0.98rem;
}
.proximo-dia {
  font-family: var(--f-display);
  font-size: 0.8rem;
  color: var(--oro-oscuro);
  min-width: 3.2em;
}

.calendario-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.calendario-titulo-mes {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  margin: 0;
  letter-spacing: 0.05em;
  color: var(--pana);
}

.leyenda-colores {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.88rem;
  color: var(--tinta-suave);
  margin-bottom: 1.4rem;
}
.leyenda-colores span { display: inline-flex; align-items: center; gap: 0.4rem; }

.calendario-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 0.65rem;
}
.calendario-dia {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid rgb(176 141 62 / 35%);
  border-radius: var(--radio);
  padding: 0.55rem 0.8rem;
  background: rgb(251 247 234 / 65%);
}
.calendario-dia.es-hoy {
  border-color: var(--vino);
  box-shadow: 0 0 0 1px var(--vino) inset;
  background: rgb(110 20 35 / 5%);
}
.dia-numero {
  font-family: var(--f-display);
  font-size: 1.25rem;
  color: var(--pana);
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 2.4rem;
}
.dia-semana { font-family: var(--f-texto); font-size: 0.72rem; font-style: italic; color: var(--oro-oscuro); text-transform: lowercase; }
.dia-cuerpo { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dia-fiesta { font-weight: 600; color: var(--pana); }
.dia-feria { font-style: italic; color: var(--tinta-suave); font-size: 0.92rem; }
.dia-color { font-size: 0.78rem; color: var(--tinta-suave); margin-left: auto; }

/* ─── Blog ────────────────────────────────────────────────────────────────── */

.rejilla-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.tarjeta-post {
  border: 1px solid rgb(176 141 62 / 40%);
  border-radius: var(--radio);
  background: linear-gradient(180deg, var(--marfil-claro), var(--marfil));
  padding: 1.3rem 1.4rem;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tarjeta-post h2, .tarjeta-post h3 { margin: 0; font-family: var(--f-display); font-size: 1.18rem; letter-spacing: 0.03em; line-height: 1.3; }
.tarjeta-post h2 a, .tarjeta-post h3 a { color: var(--pana); text-decoration: none; }
.tarjeta-post h2 a:hover, .tarjeta-post h3 a:hover { color: var(--vino); }
.post-fecha { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--oro-oscuro); margin: 0; text-transform: lowercase; }
.tarjeta-post p { margin: 0; color: var(--tinta-suave); }
.tarjeta-post .enlace-oro { margin-top: auto; padding-top: 0.6rem; align-self: flex-start; }

.paginacion { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.6rem; }
.paginacion a {
  border: 1px solid rgb(176 141 62 / 50%);
  color: var(--oro-oscuro);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radio);
  text-decoration: none;
}
.paginacion a.filtro-activo { background: var(--oro-oscuro); color: #fff; }

.articulo { max-width: 760px; margin: 0 auto; }
.articulo-cabecera { text-align: center; border-bottom: 3px double var(--oro); padding-bottom: 1.4rem; margin-bottom: 1.6rem; }
.articulo-cabecera h1 {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
  letter-spacing: 0.04em;
  margin: 0.4rem 0;
  color: var(--pana);
  line-height: 1.25;
}
.articulo-latin { font-style: italic; color: var(--oro-oscuro); letter-spacing: 0.1em; margin: 0; }

.markdown h2 { font-family: var(--f-display); font-size: 1.45rem; letter-spacing: 0.04em; color: var(--pana); margin: 2rem 0 0.6rem; }
.markdown h3 { font-family: var(--f-display); font-size: 1.18rem; color: var(--pana); margin: 1.6rem 0 0.5rem; }
.markdown p { margin: 0 0 1rem; text-align: justify; hyphens: auto; }
.markdown ul, .markdown ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.markdown li { margin-bottom: 0.35rem; }
.markdown blockquote {
  margin: 1.2rem 0;
  padding: 0.6rem 1.1rem;
  border-left: 3px solid var(--oro-claro);
  background: rgb(216 178 76 / 8%);
  font-style: italic;
  color: var(--tinta-suave);
}
.markdown code { background: rgb(36 26 14 / 8%); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.9em; }
.markdown pre { background: rgb(36 26 14 / 92%); color: var(--marfil-claro); padding: 1rem; border-radius: var(--radio); overflow-x: auto; }
.markdown pre code { background: none; color: inherit; }
.markdown hr { border: none; border-top: 1px solid rgb(176 141 62 / 50%); margin: 2rem auto; width: 60%; }

.articulo-pie { text-align: center; margin-top: 2.2rem; color: var(--tinta-suave); }
.articulo-ornamento { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 0.8rem; }
.articulo-ornamento span { width: 8px; height: 8px; background: var(--oro-claro); transform: rotate(45deg); }
.articulo-ornamento span:nth-child(2) { width: 12px; height: 12px; }

.articulo-otros {
  max-width: 760px;
  margin: 2.4rem auto 0;
  border-top: 1px solid rgb(176 141 62 / 40%);
  padding-top: 1.4rem;
}
.articulo-otros h2 { font-family: var(--f-display); font-size: 1.2rem; color: var(--pana); margin: 0 0 0.6rem; }
.articulo-otros ul { list-style: none; padding: 0; margin: 0 0 0.8rem; }
.articulo-otros li { padding: 0.4rem 0; border-bottom: 1px dotted rgb(176 141 62 / 40%); }
.articulo-otros a { text-decoration: none; color: var(--tinta); }
.articulo-otros a:hover { color: var(--vino); }

/* ─── Biblioteca ──────────────────────────────────────────────────────────── */

.filtros { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.8rem; }
.filtros a {
  border: 1px solid rgb(176 141 62 / 50%);
  border-radius: 999px;
  color: var(--oro-oscuro);
  padding: 0.35rem 1rem;
  text-decoration: none;
  font-size: 0.92rem;
}
.filtros a:hover { background: rgb(176 141 62 / 10%); }
.filtros a.filtro-activo { background: var(--oro-oscuro); color: #fff; }

.rejilla-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.3rem; }
.tarjeta-doc {
  display: flex;
  gap: 1rem;
  border: 1px solid rgb(176 141 62 / 40%);
  border-radius: var(--radio);
  background: var(--marfil-claro);
  padding: 1.2rem;
  box-shadow: var(--sombra);
}
.doc-ico {
  flex: none;
  width: 52px;
  height: 64px;
  border: 1px solid var(--oro);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--oro-oscuro);
  background: linear-gradient(180deg, rgb(216 178 76 / 16%), transparent);
}
.doc-cuerpo { display: flex; flex-direction: column; gap: 0.35rem; }
.doc-cuerpo h2 { margin: 0; font-family: var(--f-display); font-size: 1.12rem; letter-spacing: 0.03em; color: var(--pana); }
.doc-meta { font-size: 0.82rem; color: var(--oro-oscuro); margin: 0; letter-spacing: 0.03em; }
.doc-desc { margin: 0; color: var(--tinta-suave); font-size: 0.97rem; }
.doc-cuerpo .boton { margin-top: auto; align-self: flex-start; }

/* ─── Estudios de radio y TV ──────────────────────────────────────────────── */

.estudio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.6rem;
  align-items: start;
}
@media (max-width: 900px) {
  .estudio { grid-template-columns: 1fr; }
}

.estudio-marco {
  border: 1px solid rgb(176 141 62 / 50%);
  outline: 3px double rgb(176 141 62 / 35%);
  outline-offset: 5px;
  border-radius: var(--radio);
  background: linear-gradient(180deg, var(--marfil-claro), var(--marfil));
  padding: 1.6rem;
  box-shadow: var(--sombra);
}

.estudio-cabecera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.estudio-reloj {
  font-family: var(--f-display);
  letter-spacing: 0.12em;
  color: var(--oro-oscuro);
  font-size: 0.95rem;
}

.estudio-titulo {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1.1rem + 1.2vw, 2rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.2rem;
  color: var(--pana);
}
.estudio-compositor { font-style: italic; color: var(--tinta-suave); margin: 0 0 1rem; }

audio {
  width: 100%;
  height: 44px;
  border-radius: var(--radio);
  outline: none;
  margin-bottom: 1rem;
}

.estudio-controles {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.estudio-estado { font-size: 0.95rem; font-style: italic; color: var(--tinta-suave); }
.estudio-estado[data-error="1"] { color: var(--vino); }

.estudio-progreso { margin-bottom: 1rem; }
.progreso {
  height: 8px;
  background: rgb(176 141 62 / 22%);
  border-radius: 999px;
  overflow: hidden;
}
.progreso-barra {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--oro-oscuro), var(--oro-claro));
  transition: width 0.6s linear;
}
.progreso-tiempos {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--tinta-suave);
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.estudio-ayuda { font-size: 0.9rem; color: var(--tinta-suave); margin: 0; }

.estudio-lateral {
  border-left: 1px solid rgb(176 141 62 / 40%);
  padding-left: 1.4rem;
}
@media (max-width: 900px) {
  .estudio-lateral { border-left: none; padding-left: 0; }
}
.estudio-lateral h3 {
  font-family: var(--f-display);
  font-size: 1rem;
  letter-spacing: 0.07em;
  color: var(--pana);
  margin: 0 0 0.6rem;
}
.lista-programa {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--oro) transparent;
}
.lista-programa li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.45rem 0.2rem;
  border-bottom: 1px dotted rgb(176 141 62 / 35%);
  font-size: 0.92rem;
}
.lista-programa li.suena {
  color: var(--vino);
  font-weight: 600;
}
.lista-programa li.es-id { opacity: 0.72; font-style: italic; }
.lista-programa .tiempo { color: var(--oro-oscuro); font-variant-numeric: tabular-nums; flex: none; }

.nota-proteccion {
  font-size: 0.85rem;
  color: var(--tinta-suave);
  background: rgb(176 141 62 / 10%);
  border: 1px dashed rgb(176 141 62 / 50%);
  border-radius: var(--radio);
  padding: 0.7rem 0.9rem;
}

/* Marco del video */
.marco-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--pana);
  border-radius: var(--radio);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgb(176 141 62 / 50%);
}
.marco-video video { width: 100%; height: 100%; display: block; background: var(--pana); }

.video-velo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  background:
    radial-gradient(500px 260px at 50% 30%, rgb(216 178 76 / 14%), transparent 70%),
    linear-gradient(180deg, #2b2011, #0c0805);
  color: var(--marfil-claro);
  padding: 1rem;
}
.velo-cruz { display: flex; flex-direction: column; align-items: center; margin-bottom: 0.4rem; }
.velo-cruz span:first-child { display: block; width: 4px; height: 46px; background: var(--oro-claro); }
.velo-cruz span:last-child { display: block; width: 26px; height: 4px; background: var(--oro-claro); margin-top: -28px; }
.velo-titulo { font-family: var(--f-display); font-size: clamp(1.2rem, 1rem + 1.4vw, 2rem); letter-spacing: 0.1em; margin: 0; }
.velo-sub { font-style: italic; color: rgb(216 178 76 / 85%); margin: 0 0 0.6rem; }

.video-cartel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgb(12 8 5 / 88%));
  color: var(--marfil-claro);
  font-size: 0.95rem;
}
.video-cartel[hidden] { display: none; }

/* ─── Donaciones ──────────────────────────────────────────────────────────── */

.aviso {
  border: 1px solid var(--oro);
  background: rgb(216 178 76 / 12%);
  border-radius: var(--radio);
  padding: 1rem 1.3rem;
  max-width: 720px;
  margin: 0 auto 1.8rem;
  color: var(--tinta-suave);
}

.donaciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
  max-width: 980px;
  margin: 0 auto 2.4rem;
}
.donacion-marco {
  border: 1px solid rgb(176 141 62 / 50%);
  outline: 3px double rgb(176 141 62 / 30%);
  outline-offset: 5px;
  border-radius: var(--radio);
  background: var(--marfil-claro);
  padding: 1.8rem 1.6rem;
  text-align: center;
}
.donacion-marco h2 { font-family: var(--f-display); letter-spacing: 0.05em; margin: 0 0 0.3rem; color: var(--pana); }
.donacion-sub { color: var(--tinta-suave); margin: 0 0 1.2rem; }

.montos { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 1.4rem; }
.monto {
  border: 1px solid rgb(176 141 62 / 55%);
  border-radius: var(--radio);
  background: transparent;
  color: var(--oro-oscuro);
  font-family: var(--f-display);
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
.monto:hover { background: rgb(176 141 62 / 12%); }
.monto-activo { background: var(--oro-oscuro); color: #fff; }
.monto-libre { display: inline-flex; align-items: center; gap: 0.4rem; cursor: default; }
.monto-libre input {
  width: 110px;
  border: 1px solid rgb(176 141 62 / 55%);
  border-radius: var(--radio);
  background: #fff;
  padding: 0.5rem 0.6rem;
  font: inherit;
  color: var(--tinta);
}

.form-donacion { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.donacion-nota { font-size: 0.85rem; color: var(--tinta-suave); margin: 0; }

.donacion-transparencia { max-width: 760px; margin: 0 auto; }
.donacion-transparencia h2 { font-family: var(--f-display); font-size: 1.3rem; color: var(--pana); }
.lista-usos { padding-left: 1.3rem; }
.lista-usos li { margin-bottom: 0.5rem; }

.nota-suave { font-size: 0.92rem; color: var(--tinta-suave); }

/* ─── Gracias ─────────────────────────────────────────────────────────────── */

.gracias { display: grid; place-items: center; padding: 3rem 0; }
.gracias-marco {
  text-align: center;
  max-width: 560px;
  border: 1px solid rgb(176 141 62 / 50%);
  outline: 3px double rgb(176 141 62 / 30%);
  outline-offset: 6px;
  border-radius: var(--radio);
  background: var(--marfil-claro);
  padding: 2.6rem 2rem;
}
.gracias-latin { font-style: italic; letter-spacing: 0.18em; color: var(--oro-oscuro); margin: 0 0 0.5rem; }
.gracias-marco h1 { font-family: var(--f-display); color: var(--pana); letter-spacing: 0.05em; margin: 0 0 0.8rem; }
.gracias-texto { color: var(--tinta-suave); }
.gracias-botones { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin: 1.4rem 0 0.8rem; }

/* ─── Contacto ────────────────────────────────────────────────────────────── */

.contacto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.8rem;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 860px) { .contacto { grid-template-columns: 1fr; } }

.form-contacto { display: flex; flex-direction: column; gap: 1rem; }
.campo { display: flex; flex-direction: column; gap: 0.35rem; }
.campo label {
  font-family: var(--f-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--pana);
}
.campo input, .campo textarea {
  font: inherit;
  color: var(--tinta);
  background: #fffdf6;
  border: 1px solid rgb(176 141 62 / 55%);
  border-radius: var(--radio);
  padding: 0.65rem 0.8rem;
}
.campo input:focus, .campo textarea:focus {
  outline: 2px solid var(--oro-claro);
  outline-offset: 1px;
}

.campo-trampa { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.captcha-fila { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.captcha-svg {
  border: 1px solid rgb(176 141 62 / 55%);
  border-radius: var(--radio);
  overflow: hidden;
  background: #f5eddc;
  width: 190px;
  height: 64px;
}
.captcha-svg svg { display: block; }

.form-estado { font-style: italic; color: var(--tinta-suave); }
.form-estado[data-error="1"] { color: var(--vino); }
.form-estado[data-ok="1"] { color: #3e6b3e; }

.form-privacidad { font-size: 0.85rem; color: var(--tinta-suave); margin: 0; }

.contacto-lateral { border-left: 1px solid rgb(176 141 62 / 40%); padding-left: 1.4rem; }
.contacto-lateral h3 { font-family: var(--f-display); font-size: 1rem; letter-spacing: 0.06em; color: var(--pana); }

/* ─── Horarios ────────────────────────────────────────────────────────────── */

.tabla-marco { max-width: 820px; margin: 0 auto 1.4rem; }
.tabla-horarios {
  width: 100%;
  border-collapse: collapse;
  background: var(--marfil-claro);
  box-shadow: var(--sombra);
  border: 1px solid rgb(176 141 62 / 50%);
}
.tabla-horarios th, .tabla-horarios td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgb(176 141 62 / 30%);
}
.tabla-horarios thead th {
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--marfil-claro);
  background: var(--pana);
}
.celda-dia { font-family: var(--f-display); font-size: 0.92rem; color: var(--oro-oscuro); }
.celda-hora { font-variant-numeric: tabular-nums; color: var(--vino); font-weight: 600; }
.tabla-horarios tbody tr:hover { background: rgb(216 178 76 / 8%); }

/* ─── Intenciones de los Fieles ───────────────────────────────────────────── */

.pasos-intencion {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 980px;
  margin: 1.6rem auto 0;
}
.paso-intencion {
  text-align: center;
  border: 1px solid rgb(176 141 62 / 40%);
  border-radius: var(--radio);
  background: var(--marfil-claro);
  padding: 1.2rem 1rem;
}
.paso-numero {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px double var(--oro-oscuro);
  border-radius: 50%;
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--oro-oscuro);
  margin-bottom: 0.5rem;
}
.paso-intencion h2 { font-family: var(--f-display); font-size: 1rem; letter-spacing: 0.06em; color: var(--pana); margin: 0 0 0.3rem; }
.paso-intencion p { margin: 0; font-size: 0.92rem; color: var(--tinta-suave); }

.catalogo-intenciones { max-width: 1080px; margin: 3rem auto 0; }
.rejilla-intenciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}
.grupo-intencion {
  grid-column: 1 / -1;
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro-oscuro);
  border-bottom: 1px solid rgb(176 141 62 / 45%);
  padding-bottom: 0.4rem;
  margin: 1.2rem 0 0.2rem;
}
.tarjeta-intencion {
  border: 1px solid rgb(176 141 62 / 45%);
  border-radius: var(--radio);
  background: linear-gradient(180deg, var(--marfil-claro), var(--marfil));
  box-shadow: var(--sombra);
  padding: 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tarjeta-intencion h4 { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: 0.04em; color: var(--pana); margin: 0; }
.tarjeta-intencion p { margin: 0; font-size: 0.94rem; color: var(--tinta-suave); }
.tipo-ofrenda { font-style: italic; color: var(--vino); border-left: 3px solid var(--oro-claro); padding-left: 0.6rem; }
.tarjeta-intencion .boton { align-self: flex-start; margin-top: auto; }
.nota-catalogo { text-align: center; margin-top: 1.4rem; }

.titulo-bloque {
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pana);
  border-bottom: 1px solid rgb(176 141 62 / 40%);
  padding-bottom: 0.4rem;
  margin: 1.2rem 0 0.4rem;
}

.filas-intenciones { display: flex; flex-direction: column; gap: 1.1rem; }
.fila-intencion {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1.2fr) minmax(160px, 1.2fr) 110px 2.2rem;
  gap: 0.8rem;
  align-items: start;
  border: 1px solid rgb(176 141 62 / 35%);
  border-radius: var(--radio);
  background: rgb(255 253 246 / 60%);
  padding: 0.9rem 0.9rem 0.5rem;
  position: relative;
}
.fila-intencion .campo label { font-size: 0.78rem; }
.fila-intencion input, .fila-intencion select {
  font: inherit;
  color: var(--tinta);
  background: #fffdf6;
  border: 1px solid rgb(176 141 62 / 55%);
  border-radius: var(--radio);
  padding: 0.5rem 0.65rem;
  width: 100%;
}
.fila-intencion input:focus, .fila-intencion select:focus { outline: 2px solid var(--oro-claro); outline-offset: 1px; }
.fi-quitar {
  align-self: end;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgb(176 141 62 / 55%);
  border-radius: 50%;
  background: transparent;
  color: var(--vino);
  font-size: 1rem;
  cursor: pointer;
}
.fi-quitar:hover { background: rgb(110 20 35 / 8%); }

.ofrenda-total {
  font-family: var(--f-display);
  letter-spacing: 0.06em;
  color: var(--pana);
  border-top: 1px solid rgb(176 141 62 / 40%);
  padding-top: 0.7rem;
  margin: 1rem 0 0;
}
.ofrenda-total strong { color: var(--oro-oscuro); font-size: 1.05rem; }
.ofrenda-nota { display: block; font-family: var(--f-texto); font-size: 0.85rem; color: var(--tinta-suave); letter-spacing: normal; }

.campo-opcional { color: var(--tinta-suave); font-family: var(--f-texto); text-transform: none; letter-spacing: normal; }

.intencion-confirmada {
  border: 1px solid rgb(176 141 62 / 55%);
  outline: 2px double rgb(176 141 62 / 30%);
  outline-offset: 4px;
  border-radius: var(--radio);
  background: var(--marfil-claro);
  padding: 1.1rem 1.2rem;
}
.intencion-confirmada .gracias-latin { margin: 0 0 0.3rem; }
.intencion-confirmada p { margin: 0; color: var(--tinta-suave); }
.intencion-confirmada strong { color: var(--pana); font-size: 1.05em; }

.form-oculta { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .fila-intencion { grid-template-columns: 1fr 1fr; }
  .fi-detalle { grid-column: 1 / -1; }
  .fi-ofrenda { grid-column: 1 / 2; }
  .fi-quitar { position: absolute; top: 0.6rem; right: 0.6rem; }
}

/* ─── Pie de página ───────────────────────────────────────────────────────── */

.pie {
  flex-shrink: 0;
  margin-top: 3rem;
  background: linear-gradient(180deg, #1e150b, #241a0e);
  color: rgb(246 239 221 / 78%);
  text-align: center;
  padding: 2rem 1rem 2.2rem;
  border-top: 3px double var(--oro-oscuro);
}
.pie-ornamento {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.pie-ornamento::before, .pie-ornamento::after {
  content: "";
  width: 9px; height: 9px;
  background: var(--oro-claro);
  transform: rotate(45deg);
  align-self: center;
}
.pie-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-content: center; margin-bottom: 0.9rem; }
.pie-nav a { color: rgb(246 239 221 / 75%); text-decoration: none; font-size: 0.95rem; }
.pie-nav a:hover { color: var(--oro-claro); }
.pie-latin { font-style: italic; color: var(--oro-claro); margin: 0 0 0.4rem; letter-spacing: 0.08em; }
.pie-legal { font-size: 0.85rem; margin: 0; color: rgb(246 239 221 / 55%); }

/* ─── Menú móvil ──────────────────────────────────────────────────────────── */

@media (max-width: 1020px) {
  .menu-boton { display: flex; }
  .menu {
    display: none;
    width: 100%;
  }
  .menu.abierto { display: block; }
  .menu ul { flex-direction: column; padding: 0.6rem 0; }
  .menu a { display: block; border-bottom: none; padding: 0.55rem 0.4rem; }
  .cabecera-interior { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .marca-latin { display: none; }
  .cabecera-hoy { display: none; }
  .pill-pista { max-width: 40vw; }
}
