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

:root {
  /* Blanco y negro con rojo sólido #8F2114 · ocre para ornamentos */
  --marfil: #ffffff;
  --marfil-claro: #ffffff;
  --marfil-oscuro: #ffffff;
  --papel: #ffffff;
  --oro: #8f2114;       /* rojo sólido de marca */
  --oro-claro: #8f2114; /* rojo de acentos */
  --oro-oscuro: #8f2114;
  --ocre: #d99836;      /* ocre dorado: ornamentos y detalles */
  --arena: #d9c2b0;     /* arena: fondos suaves y bordes cálidos */
  --rosa: #d9bfc7;      /* rosa pálido: acentos sobre fondos oscuros */
  --tinta: #000000;
  --tinta-suave: #222222;
  --vino: #7a1a10;
  --vino-oscuro: #4f100a;
  --pana: #000000;

  /* Tipografía */
  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-texto: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: clamp(1.16rem, 1.06rem + 0.5vw, 1.36rem);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* El atributo hidden SIEMPRE oculta, aunque una regla posterior fije
   display: flex/grid en el mismo elemento.
   Sin esta línea, los avisos sobre el video aparecerían aunque el JS
   los marcara como hidden. */
[hidden] { display: none !important; }

.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: 3px double var(--ocre);
  background: var(--oro);
  color: #fff7ec;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgb(69 16 10 / 45%);
}

.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(1.09rem, 0.93rem + 0.6vw, 1.4rem);
  color: var(--marfil-claro);
}
.marca-latin { font-style: italic; font-size: 1rem; color: rgb(255 247 236 / 78%); 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(255 247 236 / 92%);
  text-decoration: none;
  font-size: 1.07rem;
  letter-spacing: 0.045em;
  border-bottom: 2px solid transparent;
}
.menu a:hover { color: #ffe3c2; }
.menu a.activo {
  color: #fff;
  border-bottom-color: var(--ocre);
}

.menu-boton {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid rgb(255 247 236 / 55%);
  border-radius: var(--radio);
  padding: 0.55rem;
  cursor: pointer;
}
.menu-boton span { width: 22px; height: 2px; background: #fff7ec; 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(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 35%);
  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: 1rem;
  letter-spacing: 0.14em;
  color: #d9bfc7;
}
.pill-pista {
  font-size: 1.05rem;
  color: rgb(255 247 236 / 92%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}
.pill-boton {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 70%);
  background: rgb(255 255 255 / 14%);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.pill-boton:hover { background: rgb(255 255 255 / 28%); }
.pill-vivo[data-sonando="1"] .pill-boton::after { content: ""; }

.punto-vivo {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ocre);
  animation: latido 1.6s ease-in-out infinite;
  flex: none;
}
@keyframes latido {
  0%, 100% { box-shadow: 0 0 0 0 rgb(217 152 54 / 60%); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgb(217 152 54 / 0%); opacity: 0.75; }
}

.cabecera-hoy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-style: italic;
  color: rgb(255 247 236 / 85%);
}

.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: #fcf7f1; }
.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.64rem, 1.31rem + 1.2vw, 2.29rem);
  letter-spacing: 0.05em;
  margin: 0;
  color: var(--pana);
}
.latin-sub {
  font-style: italic;
  color: var(--oro-oscuro);
  letter-spacing: 0.12em;
  font-size: 1rem;
  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(2.07rem, 1.53rem + 2.2vw, 3.27rem);
  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: #f6f3ef;
  border-top: 1px solid rgb(143 33 20 / 30%);
  border-bottom: 1px solid rgb(143 33 20 / 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: 1.04rem;
  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: var(--oro);
  color: #ffffff;
  border-color: var(--vino);
  font-weight: 600;
}
.boton-oro:hover { background: var(--vino); }

/* Botón de suscripción con la imagen de PayPal (dorado, marca en azul) */
.boton-paypal {
  background: #ffc439;
  color: #003087;
  border-color: #003087;
  font-weight: 700;
}
.boton-paypal:hover { background: #f2ba36; }
.boton-paypal .pp-marca { font-style: italic; letter-spacing: 0.02em; }

.boton-linea {
  background: transparent;
  color: var(--oro-oscuro);
  border-color: var(--oro-oscuro);
}
.boton-linea:hover { background: rgb(143 33 20 / 10%); }

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

.enlace-oro {
  color: var(--oro-oscuro);
  text-decoration: none;
  border-bottom: 1px solid rgb(143 33 20 / 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;
  container-type: inline-size; /* el título escala con el ANCHO REAL del recuadro, no con la ventana */
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2.75rem);
  border: 1px solid rgb(143 33 20 / 55%);
  outline: 3px double rgb(143 33 20 / 45%);
  outline-offset: 6px;
  border-radius: var(--radio);
  background: #ffffff;
  box-shadow: var(--sombra);
}

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

.hero-titulo {
  font-family: var(--f-display);
  font-weight: 700;
  /* Respaldo para navegadores antiguos: escala con la ventana. */
  font-size: clamp(2.29rem, 1.53rem + 4.2vw, 4.8rem);
  /* Navegadores modernos: «Tridentinas» es indivisible; el tamaño se calcula
     sobre el ancho del recuadro (11 glyphs × ~7,1 em con el espaciado actual)
     para que la palabra jamás salga del marco en ningún ancho de pantalla. */
  font-size: clamp(2.2rem, 10.5cqw, 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: var(--ocre); }
.hero-regla span:last-child { background: var(--ocre); }
.hero-cruz { width: 26px; height: 26px; }

.hero-subtitulo {
  font-family: var(--f-display);
  letter-spacing: 0.14em;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  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: 1.04rem;
  color: var(--tinta-suave);
}

.pill-vivo-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-display);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--vino);
  border: 1px solid rgb(143 33 20 / 35%);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  background: rgb(143 33 20 / 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(143 33 20 / 45%);
  border-radius: var(--radio);
  background: #ffffff;
  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.36rem;
  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: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--oro-oscuro);
}
.tarjeta-servicio p { margin: 0; color: var(--tinta-suave); }
.tarjeta-ahora {
  font-size: 1.05rem;
  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(--ocre);
  background: #ffffff;
  padding: 1.2rem 1.1rem;
  border-radius: 0 0 var(--radio) var(--radio);
}
.tarjeta-santo h3 {
  font-family: var(--f-display);
  font-size: 1.18rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.15rem;
  color: var(--pana);
}
.santo-latin { font-style: italic; color: var(--oro-oscuro); font-size: 1.05rem; margin: 0 0 0.3rem; }
.santo-fecha { font-size: 1.05rem; color: var(--vino); margin: 0 0 0.5rem; letter-spacing: 0.03em; }
.tarjeta-santo p:last-child { margin: 0; font-size: 1.06rem; 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(143 33 20 / 45%);
  border-radius: var(--radio);
  padding: 1.2rem 1.4rem;
  background: var(--marfil-claro);
}
.hoy-etiqueta {
  font-family: var(--f-display);
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--oro-oscuro);
  border: 1px solid var(--ocre);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-top: 0.2rem;
}
.hoy-tiempo { margin: 0; font-size: 1.05rem; font-style: italic; color: var(--tinta-suave); }
.hoy-fiesta { margin: 0.2rem 0 0; font-family: var(--f-display); font-size: 1.22rem; 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(143 33 20 / 45%);
  font-size: 1.07rem;
}
.proximo-dia {
  font-family: var(--f-display);
  font-size: 1rem;
  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.42rem, 1.2rem + 1vw, 2.07rem);
  margin: 0;
  letter-spacing: 0.05em;
  color: var(--pana);
}

.leyenda-colores {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 1.05rem;
  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(143 33 20 / 35%);
  border-radius: var(--radio);
  padding: 0.55rem 0.8rem;
  background: #ffffff;
}
.calendario-dia.es-hoy {
  border-color: var(--vino);
  box-shadow: 0 0 0 1px var(--vino) inset;
  background: rgb(143 33 20 / 5%);
}
.dia-numero {
  font-family: var(--f-display);
  font-size: 1.36rem;
  color: var(--pana);
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 2.4rem;
}
.dia-semana { font-family: var(--f-texto); font-size: 1rem; 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: 1rem; }
.dia-color { font-size: 1rem; 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(143 33 20 / 40%);
  border-radius: var(--radio);
  background: #ffffff;
  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.29rem; 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: 1.05rem; 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(143 33 20 / 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(--ocre); padding-bottom: 1.4rem; margin-bottom: 1.6rem; }
.articulo-cabecera h1 {
  font-family: var(--f-display);
  font-size: clamp(1.85rem, 1.42rem + 2vw, 2.83rem);
  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.58rem; letter-spacing: 0.04em; color: var(--pana); margin: 2rem 0 0.6rem; }
.markdown h3 { font-family: var(--f-display); font-size: 1.29rem; 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(143 33 20 / 8%);
  font-style: italic;
  color: var(--tinta-suave);
}
.markdown code { background: rgb(0 0 0 / 8%); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.9em; }
.markdown pre { background: #1a1a1a; color: #ffffff; 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(143 33 20 / 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(--ocre); 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(143 33 20 / 40%);
  padding-top: 1.4rem;
}
.articulo-otros h2 { font-family: var(--f-display); font-size: 1.31rem; 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(143 33 20 / 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(143 33 20 / 50%);
  border-radius: 999px;
  color: var(--oro-oscuro);
  padding: 0.35rem 1rem;
  text-decoration: none;
  font-size: 1rem;
}
.filtros a:hover { background: rgb(143 33 20 / 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(143 33 20 / 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(--ocre);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--oro-oscuro);
  background: transparent;
}
.doc-cuerpo { display: flex; flex-direction: column; gap: 0.35rem; }
.doc-cuerpo h2 { margin: 0; font-family: var(--f-display); font-size: 1.22rem; letter-spacing: 0.03em; color: var(--pana); }
.doc-meta { font-size: 1.05rem; color: var(--oro-oscuro); margin: 0; letter-spacing: 0.03em; }
.doc-desc { margin: 0; color: var(--tinta-suave); font-size: 1.06rem; }
.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(143 33 20 / 50%);
  outline: 3px double rgb(143 33 20 / 35%);
  outline-offset: 5px;
  border-radius: var(--radio);
  background: #ffffff;
  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: 1.04rem;
}

.estudio-titulo {
  font-family: var(--f-display);
  font-size: clamp(1.42rem, 1.2rem + 1.2vw, 2.18rem);
  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: 1.04rem; font-style: italic; color: var(--tinta-suave); }
.estudio-estado[data-error="1"] { color: var(--vino); }

/* ── Reproductor normal (radio y TV): reproducir/pausa, detener, silencio
   y volumen en la misma barra, con el color sólido de la casa ───────────── */
.player-barra {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--oro);
  border-radius: var(--radio);
  padding: 0.65rem 0.95rem;
  margin-bottom: 1rem;
}
.player-boton {
  flex: none;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 45%);
  background: transparent;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}
.player-boton:hover { background: rgb(255 255 255 / 16%); }
.player-boton:active { transform: translateY(1px); }
.player-boton:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.player-volumen {
  flex: 1 1 140px;
  max-width: 230px;
  min-width: 110px;
  height: 1.2rem;
  margin: 0;
  accent-color: #ffffff;
  cursor: pointer;
}
.player-reloj {
  margin-left: auto;
  font-family: var(--f-display);
  letter-spacing: 0.12em;
  font-size: 1.04rem;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

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

.estudio-lateral {
  border-left: 1px solid rgb(143 33 20 / 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: 1.09rem;
  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(143 33 20 / 35%);
  font-size: 1rem;
}
.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: 1.05rem;
  color: var(--tinta-suave);
  background: rgb(143 33 20 / 10%);
  border: 1px dashed rgb(143 33 20 / 50%);
  border-radius: var(--radio);
  padding: 0.7rem 0.9rem;
}

/* Marco del video: la pantalla del video se ve SIEMPRE completa (contain),
   sin barras ni rótulos encima; los bordes sobrantes van en negro. */
.marco-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radio);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgb(143 33 20 / 50%);
}
.marco-video video { width: 100%; height: 100%; display: block; background: #000000; object-fit: contain; }

/* Pantalla completa (botón ⛶ de la barra o doble clic): se agranda el
   RECUEADRO del video para poder ofrecer el botón ✕ de salida dentro.
   El video ocupa toda la pantalla sin deformarse; al ser un canal en vivo,
   sigue emitiendo igual. */
.marco-video:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border: none;
  border-radius: 0;
  margin: 0;
}
.marco-video:-webkit-full-screen {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  margin: 0;
}
.marco-video:fullscreen video,
.marco-video:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Botón de salida (✕) que solo existe mientras dura la pantalla completa. */
.boton-salir-pantalla {
  display: none;
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 5;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 55%);
  background: rgb(0 0 0 / 55%);
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  place-items: center;
  padding: 0;
}
.boton-salir-pantalla:hover { background: rgb(143 33 20 / 85%); }
.marco-video:fullscreen .boton-salir-pantalla,
.marco-video:-webkit-full-screen .boton-salir-pantalla { display: grid; }


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

.aviso {
  border: 1px solid var(--oro);
  background: rgb(143 33 20 / 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(143 33 20 / 50%);
  outline: 3px double rgb(143 33 20 / 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(143 33 20 / 55%);
  border-radius: var(--radio);
  background: transparent;
  color: var(--oro-oscuro);
  font-family: var(--f-display);
  font-size: 1.04rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
.monto:hover { background: rgb(143 33 20 / 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(143 33 20 / 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: 1.05rem; 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.42rem; color: var(--pana); }
.lista-usos { padding-left: 1.3rem; }
.lista-usos li { margin-bottom: 0.5rem; }

.nota-suave { font-size: 1rem; 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(143 33 20 / 50%);
  outline: 3px double rgb(143 33 20 / 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: 1rem;
  letter-spacing: 0.1em;
  color: var(--pana);
}
.campo input, .campo textarea {
  font: inherit;
  color: var(--tinta);
  background: #ffffff;
  border: 1px solid rgb(143 33 20 / 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(143 33 20 / 55%);
  border-radius: var(--radio);
  overflow: hidden;
  background: #ffffff;
  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: 1.05rem; color: var(--tinta-suave); margin: 0; }

.contacto-lateral { border-left: 1px solid rgb(143 33 20 / 40%); padding-left: 1.4rem; }
.contacto-lateral h3 { font-family: var(--f-display); font-size: 1.09rem; 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(143 33 20 / 50%);
}
.tabla-horarios th, .tabla-horarios td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgb(143 33 20 / 30%);
}
.tabla-horarios thead th {
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--marfil-claro);
  background: var(--pana);
}
.celda-dia { font-family: var(--f-display); font-size: 1rem; color: var(--oro-oscuro); }
.celda-hora { font-variant-numeric: tabular-nums; color: var(--vino); font-weight: 600; }
.tabla-horarios tbody tr:hover { background: rgb(143 33 20 / 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(143 33 20 / 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(--ocre);
  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: 1.09rem; letter-spacing: 0.06em; color: var(--pana); margin: 0 0 0.3rem; }
.paso-intencion p { margin: 0; font-size: 1rem; 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: 1.04rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro-oscuro);
  border-bottom: 1px solid rgb(143 33 20 / 45%);
  padding-bottom: 0.4rem;
  margin: 1.2rem 0 0.2rem;
}
.tarjeta-intencion {
  border: 1px solid rgb(143 33 20 / 45%);
  border-radius: var(--radio);
  background: #ffffff;
  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.14rem; letter-spacing: 0.04em; color: var(--pana); margin: 0; }
.tarjeta-intencion p { margin: 0; font-size: 1.02rem; 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.14rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pana);
  border-bottom: 1px solid rgb(143 33 20 / 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(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 0.9fr) 2.2rem;
  gap: 0.8rem;
  align-items: end;  /* cuadros alineados por abajo aunque una etiqueta ocupe dos líneas */
  border: 1px solid rgb(143 33 20 / 35%);
  border-radius: var(--radio);
  background: #ffffff;
  padding: 0.9rem 0.9rem 0.5rem;
  position: relative;
}
.fila-intencion .campo label { font-size: 1rem; }
.fila-intencion input, .fila-intencion select {
  font: inherit;
  color: var(--tinta);
  background: #ffffff;
  border: 1px solid rgb(143 33 20 / 55%);
  border-radius: var(--radio);
  padding: 0.5rem 0.65rem;
  width: 100%;
  min-width: 0;
  /* misma altura para select e input en cualquier tamaño de fuente:
     línea 1.7 + padding 0.5rem×2 + borde 1px×2 */
  height: calc(1.7em + 1rem + 2px);
}
.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(143 33 20 / 55%);
  border-radius: 50%;
  background: transparent;
  color: var(--vino);
  font-size: 1.09rem;
  cursor: pointer;
}
.fi-quitar:hover { background: rgb(143 33 20 / 8%); }

.ofrenda-total {
  font-family: var(--f-display);
  letter-spacing: 0.06em;
  color: var(--pana);
  border-top: 1px solid rgb(143 33 20 / 40%);
  padding-top: 0.7rem;
  margin: 1rem 0 0;
}
.ofrenda-total strong { color: var(--oro-oscuro); font-size: 1.14rem; }
.ofrenda-nota { display: block; font-family: var(--f-texto); font-size: 1.05rem; 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(143 33 20 / 55%);
  outline: 2px double rgb(143 33 20 / 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; }

/* Ofrenda de las intenciones: botones de PayPal (Orders API) */
.pago-intencion {
  border: 1px solid rgb(143 33 20 / 55%);
  border-radius: var(--radio);
  background: var(--marfil-claro);
  padding: 1.1rem 1.2rem;
  margin-top: 1.2rem;
}
.pago-intencion .titulo-bloque { margin-bottom: 0.4rem; }
.pago-intro { color: var(--tinta-suave); margin: 0 0 0.8rem; }
.pago-botones { max-width: 26rem; }
.pago-botones .aviso { font-size: 0.9rem; color: var(--tinta-suave); }
.pago-intencion .form-estado { margin: 0.6rem 0 0; }

.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: var(--oro);
  color: #ffffff;
  text-align: center;
  padding: 2rem 1rem 2.2rem;
  border-top: 3px double var(--ocre);
}
.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(--ocre);
  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(252 247 241 / 80%); text-decoration: none; font-size: 1.04rem; }
.pie-nav a:hover { color: var(--arena); }
.pie-redes-titulo { margin: 0.5rem 0 0.8rem; font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgb(252 247 241 / 70%); }
.pie-redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin: 0 0 1rem; }
.pie-redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem; height: 2.7rem;      /* ≥43 px: cómodo al tacto en móvil */
  border: 1px solid rgb(252 247 241 / 38%);
  border-radius: 50%;
  color: rgb(252 247 241 / 88%);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pie-redes a:hover, .pie-redes a:focus-visible {
  background: var(--ocre);
  border-color: var(--ocre);
  color: var(--vino-oscuro);
  transform: translateY(-2px);
}
.pie-redes a:focus-visible { outline: 2px solid var(--arena); outline-offset: 3px; }
.pie-redes svg { width: 1.3rem; height: 1.3rem; fill: currentColor; display: block; }
.pie-latin { font-style: italic; color: var(--ocre); margin: 0 0 0.4rem; letter-spacing: 0.08em; }
.pie-legal { font-size: 1.05rem; margin: 0; color: rgb(252 247 241 / 62%); }

/* ─── 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; }
}

/* ─── Reproductores: distintivo EN VIVO y botón play/stop ──────────────────── */

/* Distintivo EN VIVO flotante sobre el marco del video (siempre visible) */
.badge-flotante {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 3;
  background: rgb(53 12 6 / 80%);
  border-color: rgb(217 152 54 / 70%);
  color: #d9bfc7;
}

/* Botón play/stop de los reproductores de radio y TV */
.boton-medio {
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--vino);
  background: var(--oro);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.boton-medio:hover { filter: brightness(1.12); }
.boton-medio:active { transform: translateY(1px); }
.boton-medio:focus-visible { outline: 2px solid var(--vino); outline-offset: 2px; }

/* El audio va sin controles nativos (el mando es el botón play/stop):
   se oculta del todo pero sigue reproduciendo. */
audio:not([controls]) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ─── Galería e imágenes de contenido (portada, blog, galería) ────────────── */

/* Hero de la portada: texto a la izquierda, foto enmarcada a la derecha */
.hero-con-imagen {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: stretch;
}
.hero-con-imagen .hero-marco {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-con-imagen .hero-texto { margin-inline: auto; }

.hero-foto {
  margin: 0;
  align-self: center;
  border: 1px solid rgb(143 33 20 / 55%);
  outline: 3px double rgb(143 33 20 / 45%);
  outline-offset: 6px;
  border-radius: var(--radio);
  background: #ffffff;
  padding: 0.55rem;
  box-shadow: var(--sombra);
}
.hero-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  border-radius: calc(var(--radio) - 4px);
}
.hero-foto figcaption {
  text-align: center;
  font-style: italic;
  color: var(--tinta-suave);
  padding-top: 0.5rem;
  font-size: 1rem;
}

/* Foto de portada en las tarjetas del blog */
.tarjeta-post-foto {
  display: block;
  margin: -0.35rem -1.4rem 0.35rem;
  border-bottom: 1px solid rgb(143 33 20 / 35%);
  overflow: hidden;
  border-radius: var(--radio) var(--radio) 0 0;
}
.tarjeta-post-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.tarjeta-post:hover .tarjeta-post-foto img { transform: scale(1.03); }
.tarjeta-post-cuerpo { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.tarjeta-post-cuerpo p { margin: 0; }

/* Imagen grande del artículo */
.articulo-portada {
  margin: 0 0 1.8rem;
  border: 1px solid rgb(143 33 20 / 45%);
  outline: 3px double rgb(143 33 20 / 30%);
  outline-offset: 5px;
  border-radius: var(--radio);
  background: #ffffff;
  padding: 0.5rem;
}
.articulo-portada img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radio) - 4px);
}

/* Avance de la galería en la portada */
.rejilla-galeria-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}
.foto-mini { margin: 0; }
.foto-mini a {
  position: relative;
  display: block;
  border: 1px solid rgb(143 33 20 / 45%);
  border-radius: var(--radio);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--sombra);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.foto-mini a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgb(0 0 0 / 14%); }
.foto-mini img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.foto-mini-pie {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(40 10 5 / 78%);
  color: #ffffff;
  font-size: 1rem;
  padding: 0.35rem 0.7rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.centro-enlace { text-align: center; margin: 0.4rem 0 0; }

/* Galería completa */
.rejilla-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.3rem;
}
.tarjeta-galeria {
  margin: 0;
  border: 1px solid rgb(143 33 20 / 45%);
  border-radius: var(--radio);
  background: #ffffff;
  box-shadow: var(--sombra);
  overflow: hidden;
}
.galeria-abre {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.galeria-abre img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.galeria-abre:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.galeria-lupa {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(40 10 5 / 70%);
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.galeria-abre:hover .galeria-lupa,
.galeria-abre:focus-visible .galeria-lupa { opacity: 1; }
.tarjeta-galeria figcaption {
  text-align: center;
  color: var(--tinta-suave);
  font-style: italic;
  padding: 0.65rem 0.9rem 0.75rem;
  border-top: 1px solid rgb(143 33 20 / 25%);
}

/* Visor ampliado (lightbox) */
.visor {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgb(24 6 3 / 92%);
  padding: 1.2rem;
}
.visor[hidden] { display: none; }
.visor-fondo {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.visor-cuerpo {
  position: relative;
  margin: 0;
  max-width: min(94vw, 1080px);
  text-align: center;
}
.visor-cuerpo img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 60%);
  background: #ffffff;
}
.visor-cuerpo figcaption {
  color: #ffffff;
  font-style: italic;
  margin-top: 0.8rem;
  font-size: 1.1rem;
}
.visor-contador {
  color: rgb(217 194 176 / 90%);
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin: 0.2rem 0 0;
}
.visor-botones {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.4rem;
}
.visor-boton {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 70%);
  background: var(--oro);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.visor-boton:hover { filter: brightness(1.15); }
.visor-boton:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

@media (max-width: 900px) {
  .hero-con-imagen { grid-template-columns: 1fr; }
  .hero-foto { order: -1; max-width: 640px; margin-inline: auto; }
  .visor-botones { bottom: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Tienda de objetos de piedad (Emporium Fidei)
   ═══════════════════════════════════════════════════════════════════════════ */

.muted { color: var(--tinta-suave); font-size: 0.95em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.tienda-aviso {
  background: color-mix(in srgb, var(--arena) 28%, #ffffff);
  border: 1px solid var(--arena);
  border-radius: var(--radio);
  padding: 0.9rem 1.2rem;
  margin: 0;
}

.chips-categorias { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.6rem; }
.chip-categoria {
  font-family: var(--f-texto);
  font-size: 0.92em;
  text-decoration: none;
  color: var(--tinta);
  border: 1px solid var(--arena);
  border-radius: 999px;
  padding: 0.28rem 1rem;
  background: #ffffff;
}
.chip-categoria:hover { border-color: var(--oro); color: var(--vino); }
.chip-categoria.activa { background: var(--oro); border-color: var(--oro); color: #ffffff; }

.rejilla-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}
.tarjeta-producto {
  display: flex; flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--arena);
  border-radius: var(--radio);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tarjeta-producto:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.tarjeta-producto.agotado { opacity: 0.65; }
.producto-imagen { display: block; background: var(--arena); }
.producto-imagen img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.producto-cuerpo { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem 1.1rem; flex: 1; }
.producto-categoria {
  margin: 0; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72em; color: var(--ocre);
}
.producto-nombre {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: 1.13rem; line-height: 1.35; color: var(--tinta);
}
.producto-descripcion {
  margin: 0.15rem 0 0.5rem; font-size: 0.92em; color: var(--tinta-suave);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.producto-pie {
  margin: auto 0 0; display: flex; align-items: center;
  justify-content: space-between; gap: 0.6rem; flex-wrap: wrap;
}
.producto-precio { font-family: var(--f-display); font-size: 1.25rem; color: var(--oro); }
.producto-agotado { font-style: italic; color: var(--tinta-suave); }
.producto-existencias { margin: 0; font-size: 0.78em; color: var(--vino); }
.boton-carrito { font-size: 0.95em; padding: 0.45rem 0.9rem; }

.carrito-flotante {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--oro); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sombra); text-decoration: none;
}
.carrito-flotante svg { width: 1.5rem; height: 1.5rem; }
.carrito-flotante:hover { background: var(--vino); }
.carrito-contador {
  position: absolute; top: -0.4rem; right: -0.4rem;
  min-width: 1.4rem; height: 1.4rem; border-radius: 999px;
  background: var(--ocre); color: #ffffff;
  font-size: 0.8em; font-weight: 600; line-height: 1.4rem; text-align: center;
  padding: 0 0.25rem;
}

.tabla-carrito { width: 100%; border-collapse: collapse; }
.tabla-carrito th {
  text-align: left; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.72em; color: var(--tinta-suave);
  border-bottom: 2px solid var(--arena); padding: 0.5rem 0.4rem;
}
.tabla-carrito td { padding: 0.6rem 0.4rem; border-bottom: 1px solid color-mix(in srgb, var(--arena) 55%, #ffffff); vertical-align: middle; }
.tabla-carrito .carrito-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabla-carrito tfoot td { border-bottom: none; }
.carrito-subtotal td, .carrito-envio td { color: var(--tinta-suave); }
.carrito-total td { font-family: var(--f-display); font-size: 1.2rem; color: var(--oro); padding-top: 0.7rem; border-top: 2px solid var(--arena); }
.carrito-cantidad { display: inline-flex; align-items: center; gap: 0.5rem; }
.carrito-stepper {
  width: 1.8rem; height: 1.8rem; border-radius: var(--radio);
  border: 1px solid var(--arena); background: #ffffff; color: var(--tinta);
  font-size: 1.05rem; line-height: 1; cursor: pointer;
}
.carrito-stepper:hover { border-color: var(--oro); color: var(--vino); }
.carrito-quitar {
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  border: none; background: transparent; color: var(--tinta-suave);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.carrito-quitar:hover { background: color-mix(in srgb, var(--vino) 12%, #ffffff); color: var(--vino); }
.carrito-acciones {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem;
}

.pago-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.2rem; align-items: start; }
.pago-subtitulo {
  margin: 0 0 0.8rem; font-family: var(--f-display);
  font-size: 1.25rem; color: var(--tinta);
}
.pago-pista { font-size: 0.82em; color: var(--tinta-suave); }
.resumen-pedido {
  background: color-mix(in srgb, var(--arena) 18%, #ffffff);
  border: 1px solid var(--arena); border-radius: var(--radio);
  padding: 1.2rem 1.3rem;
}
.tabla-resumen td { padding: 0.35rem 0; }
.pago-nota { margin: 0.9rem 0 0; font-size: 0.88em; color: var(--tinta-suave); }
.pago-zona { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--arena); }

.gracias-pedido { max-width: 720px; }
.gracias-folio { font-family: var(--f-display); font-size: 1.15rem; }
.etiqueta-pedido {
  display: inline-block; margin-left: 0.6rem; padding: 0.1rem 0.7rem;
  border-radius: 999px; font-family: var(--f-texto); font-size: 0.72em;
  text-transform: uppercase; letter-spacing: 0.08em; vertical-align: middle;
}
.etiqueta-pedido.pagado { background: #3e6b3e; color: #ffffff; }
.etiqueta-pedido.pendiente { background: var(--ocre); color: #ffffff; }

@media (max-width: 860px) {
  .pago-grid { grid-template-columns: 1fr; }
  .carrito-flotante { right: 0.9rem; bottom: 0.9rem; }
  .tabla-carrito th:nth-child(2), .tabla-carrito td:nth-child(2) { display: none; }
}
