/* =========================================================
   Iglesia La Trinidad — Estilos
   Paleta tomada de la portada de Facebook: negro/carbón + dorado
   ========================================================= */

:root {
  --gold: #c9a45c;
  --gold-dark: #a8843f;
  --gold-light: #e6cf9c;
  --ink: #1b1b1d;
  --charcoal: #26262a;
  --text: #3a3a3f;
  --muted: #6e6e75;
  --cream: #f7f3ec;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--small { padding: 9px 20px; font-size: 0.75rem; }

/* ---------- Encabezado ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, height 0.4s cubic-bezier(.2,.8,.2,1);
}
/* Al bajar, el encabezado se hace más delgado */
.header.is-scrolled {
  --header-h: 62px;
  background: rgba(27, 27, 29, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.header.is-scrolled .logo__big { font-size: 1.45rem; }
.logo__big { transition: font-size 0.4s; }
/* Barra dorada que indica cuánto se ha recorrido de la página */
.header__progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 10px rgba(201,164,92,0.6);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  margin: 0;
}
.logo__small {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.logo__big {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { white-space: nowrap; }
.logo { flex-shrink: 0; }
.nav a:not(.btn) {
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  margin: 6px 0;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Portada ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* =========================================================
   SLIDER DE PORTADA
   Duración de cada foto: --slide-time (también se usa en main.js)
   ========================================================= */
.slider {
  --slide-time: 6.5s;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.slider__track { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s ease, visibility 0s linear 1.4s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.4s ease, visibility 0s;
  z-index: 1;
}
.slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  transform: scale(1.06);
  transition: transform 1.4s ease;
  backface-visibility: hidden;
  will-change: transform;
}
/* Efecto Ken Burns: zoom lento mientras la foto está activa */
.slide.is-active .slide__img,
.slide.is-leaving .slide__img {
  animation: kenburns calc(var(--slide-time) + 2s) ease-out forwards;
}
.slide:nth-child(even).is-active .slide__img,
.slide:nth-child(even).is-leaving .slide__img { animation-name: kenburns-alt; }

/* La diapositiva que sale se queda debajo y su texto se desvanece */
.slide.is-leaving { visibility: visible; z-index: 0; }
.slide.is-leaving .slide__content { opacity: 0; transform: translateY(-20px); transition: opacity 0.6s, transform 0.6s; }

@keyframes kenburns {
  from { transform: scale(1.08) translate(1%, 0.5%); }
  to   { transform: scale(1) translate(0, 0); }
}
@keyframes kenburns-alt {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.07) translate(-1%, -0.5%); }
}

/* Capa oscura para que el texto se lea bien */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,12,0.85) 0%, rgba(10,10,12,0.55) 45%, rgba(10,10,12,0.15) 100%),
    linear-gradient(0deg, rgba(10,10,12,0.75) 0%, transparent 35%);
}

.slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: var(--header-h);
  padding-bottom: 90px;
}

/* Textos: entran uno tras otro cuando la diapositiva se activa */
.slide__eyebrow,
.slide__title,
.slide__line,
.slide__text,
.slide__actions {
  opacity: 0;
  transform: translateY(30px);
}
.slide:is(.is-active, .is-leaving) :is(.slide__eyebrow, .slide__title, .slide__text, .slide__actions) {
  animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards;
}
.slide.is-leaving .slide__line { opacity: 1; transform: none; width: 90px; }
.slide.is-active .slide__eyebrow { animation-delay: 0.35s; }
.slide.is-active .slide__title   { animation-delay: 0.55s; }
.slide.is-active .slide__text    { animation-delay: 1.05s; }
.slide.is-active .slide__actions { animation-delay: 1.25s; }
.slide.is-active .slide__line    { animation: grow 0.9s 0.85s cubic-bezier(.2,.7,.2,1) forwards; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes grow {
  from { opacity: 1; transform: none; width: 0; }
  to   { opacity: 1; transform: none; width: 90px; }
}

.slide__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.slide__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  line-height: 0.98;
  color: var(--white);
  max-width: 11em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.slide__title span {
  display: block;
  color: var(--gold);
  font-style: italic;
}
.slide__line {
  display: block;
  height: 2px;
  width: 0;
  background: var(--gold);
  margin: 1.6rem 0 1.4rem;
}
.slide__text {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  max-width: 34em;
  margin-bottom: 2rem;
}
.slide__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Flechas */
.slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 54px; height: 54px;
  margin-top: -27px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  color: var(--white);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.slider__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: scale(1.08); }
.slider__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider__arrow--prev { left: 24px; }
.slider__arrow--next { right: 24px; }

/* Contador y puntos con barra de progreso */
.slider__footer {
  position: absolute;
  left: 0; right: 0; bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 26px;
}
.slider__counter {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}
.slider__current { color: var(--gold); font-size: 1.5rem; }
.slider__dots { display: flex; gap: 10px; }
.slider__dot {
  position: relative;
  width: 46px; height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  overflow: hidden;
}
.slider__dot::before { content: ""; position: absolute; inset: -10px 0; } /* área de clic más grande */
.slider__dot span {
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.slider__dot.is-done span { transform: scaleX(1); }
.slider__dot.is-active span { animation: progress var(--slide-time) linear forwards; }
.slider.is-paused .slider__dot.is-active span { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

/* Indicador para bajar */
.slider__scroll {
  position: absolute;
  right: 32px; bottom: 30px;
  z-index: 5;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
}
.slider__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 780px) {
  .slider__arrow { display: none; }
  .slide::after {
    background: linear-gradient(0deg, rgba(10,10,12,0.9) 0%, rgba(10,10,12,0.55) 55%, rgba(10,10,12,0.35) 100%);
  }
  .slide__content { justify-content: flex-end; padding-bottom: 110px; }
  .slider__scroll { display: none; }
  .slider__dot { width: 28px; }
}

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--ink); color: rgba(255,255,255,0.8); }
.section--dark .section__title { color: var(--white); }

.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}
.eyebrow--gold { color: var(--gold); }

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.lead {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
/* ---------- Nuestra visión (Conectar · Amar · Servir) ---------- */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.vision {
  grid-column: 1 / -1;
  margin-top: 10px;
}
.vision > .eyebrow { margin-bottom: 0.6rem; }
.vision__title { margin-bottom: 2.4rem; }
.about__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  column-gap: 22px;
  text-align: left;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  box-shadow: 0 18px 40px rgba(27,27,29,0.18);
  animation: pillar-float 6s ease-in-out infinite;
  transition: box-shadow 0.35s, scale 0.35s;
}
/* Los cuadros aparecen uno tras otro y flotan a destiempo */
.pillar:nth-child(2) { animation-delay: -2s; }
.pillar:nth-child(3) { animation-delay: -4s; }
.pillar.reveal { transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.35s, scale 0.35s; }
.pillar.reveal.is-visible:nth-child(2) { transition-delay: 0.15s, 0.15s, 0s, 0s; }
.pillar.reveal.is-visible:nth-child(3) { transition-delay: 0.3s, 0.3s, 0s, 0s; }
/* Borde dorado que gira alrededor del cuadro */
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), transparent 0deg, var(--gold) 60deg, var(--gold-light) 90deg, transparent 150deg, transparent 360deg);
  animation: pillar-spin 5s linear infinite;
}
.pillar:nth-child(2)::before { animation-delay: -1.66s; }
.pillar:nth-child(3)::before { animation-delay: -3.33s; }
.pillar::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: calc(var(--radius) - 2px);
  background: radial-gradient(circle at 15% 50%, rgba(201,164,92,0.2), transparent 55%), var(--ink);
}
.pillar:hover {
  scale: 1.04;
  box-shadow: 0 24px 50px rgba(27,27,29,0.28), 0 0 0 1px rgba(201,164,92,0.5), 0 0 40px rgba(201,164,92,0.25);
}
.pillar__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(201,164,92,0.55);
  color: var(--gold);
  animation: pillar-pulse 3s ease-out infinite;
}
.pillar:nth-child(2) .pillar__icon { animation-delay: 1s; }
.pillar:nth-child(3) .pillar__icon { animation-delay: 2s; }
.pillar:nth-child(3) .pillar__icon svg { width: 42px; height: 42px; stroke-width: 1.4; }
.pillar__icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Línea dorada que separa el círculo del texto; crece al aparecer el cuadro */
.pillar__line {
  align-self: stretch;
  width: 1px;
  min-height: 90px;
  background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
  transform-origin: center;
  transition: scale 0.9s ease 0.3s;
}
.pillar.reveal:not(.is-visible) .pillar__line { scale: 1 0; }
.pillar__body { min-width: 0; }
.pillar__num {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 4px;
}
.pillar h3 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  margin: 0 0 10px;
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--white) 45%, var(--gold) 55%, var(--gold-light) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pillar-shine 6s ease-in-out infinite;
}
.pillar p { margin: 0; font-size: 1.05rem; line-height: 1.5; color: rgba(255,255,255,0.78); }

@keyframes pillar-spin { to { --spin: 360deg; } }
@keyframes pillar-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes pillar-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,164,92,0.45); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(201,164,92,0); }
}
@keyframes pillar-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* ---------- Horarios ---------- */
.schedule {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 50px auto 0;
}
.schedule__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold-light);
}
.schedule__card--main {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  border-top-color: var(--gold);
  transform: scale(1.04);
}
.schedule__day {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}
.schedule__card--main .schedule__day { color: var(--gold); }
.schedule__time {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.schedule__card--main .schedule__time { color: var(--white); }
.schedule__name { font-weight: 600; margin-bottom: 0.4rem; }
.schedule__card--main .schedule__name { color: var(--white); }
.schedule__note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.schedule__card--main .schedule__note { color: rgba(255,255,255,0.6); }

/* ---------- Pastores ---------- */
.pastors {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.pastors__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--charcoal), var(--ink));
  box-shadow: var(--shadow);
}
.pastors__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; position: relative; z-index: 1; }
.pastors__photo::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201,164,92,0.5);
  border-radius: calc(var(--radius) - 6px);
  z-index: 2;
  pointer-events: none;
}
.pastors__initials {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--gold);
}

/* ---------- Ministerios ---------- */
/* Mismos efectos que "Nuestra visión": borde dorado que gira, cuadros que flotan,
   aro que late en el ícono y brillo que pasa por el título. */
.ministries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 50px auto 0;
}
.ministry {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  column-gap: 24px;
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: 0 18px 40px rgba(27,27,29,0.18);
  animation: pillar-float 6s ease-in-out infinite;
}
/* Cada cuadro flota y gira su borde a destiempo */
.ministry:nth-child(2) { animation-delay: -1s; }
.ministry:nth-child(3) { animation-delay: -2s; }
.ministry:nth-child(4) { animation-delay: -3s; }
.ministry:nth-child(5) { animation-delay: -4s; }
.ministry:nth-child(6) { animation-delay: -5s; }
/* Borde dorado que gira alrededor del cuadro */
.ministry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), transparent 0deg, var(--gold) 60deg, var(--gold-light) 90deg, transparent 150deg, transparent 360deg);
  animation: pillar-spin 5s linear infinite;
}
.ministry:nth-child(2)::before { animation-delay: -0.8s; }
.ministry:nth-child(3)::before { animation-delay: -1.7s; }
.ministry:nth-child(4)::before { animation-delay: -2.5s; }
.ministry:nth-child(5)::before { animation-delay: -3.3s; }
.ministry:nth-child(6)::before { animation-delay: -4.2s; }
.ministry::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: calc(var(--radius) - 2px);
  background: radial-gradient(circle at 12% 50%, rgba(201,164,92,0.2), transparent 55%), var(--ink);
}
.ministry:hover {
  scale: 1.03;
  box-shadow: 0 24px 50px rgba(27,27,29,0.28), 0 0 0 1px rgba(201,164,92,0.5), 0 0 40px rgba(201,164,92,0.25);
}
.ministry.reveal { transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.35s, scale 0.35s; }
.ministry.reveal.is-visible:nth-child(even) { transition-delay: 0.12s, 0.12s, 0s, 0s; }
.ministry__icon {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #34343a, var(--charcoal) 70%);
  color: var(--gold);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(201,164,92,0.55);
  transition: rotate 0.5s ease, scale 0.5s ease;
}
/* Aro dorado punteado que gira alrededor del ícono */
.ministry__icon::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(201,164,92,0.6);
  animation: ministry-orbit 14s linear infinite;
}
/* Aro que late hacia afuera */
.ministry__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pillar-pulse 3s ease-out infinite;
}
.ministry:nth-child(even) .ministry__icon::before { animation-direction: reverse; }
.ministry:nth-child(2) .ministry__icon::after { animation-delay: 0.5s; }
.ministry:nth-child(3) .ministry__icon::after { animation-delay: 1s; }
.ministry:nth-child(4) .ministry__icon::after { animation-delay: 1.5s; }
.ministry:nth-child(5) .ministry__icon::after { animation-delay: 2s; }
.ministry:nth-child(6) .ministry__icon::after { animation-delay: 2.5s; }
.ministry:hover .ministry__icon { scale: 1.08; rotate: -6deg; }
.ministry__icon svg {
  width: 38px; height: 38px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.ministry__line {
  align-self: stretch;
  width: 1px;
  min-height: 84px;
  background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--gold-dark) 50%, var(--gold) 80%, transparent);
  transform-origin: center;
  transition: scale 0.9s ease 0.25s;
}
.ministry.reveal:not(.is-visible) .ministry__line { scale: 1 0; }
.ministry__body { min-width: 0; }
.ministry h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.4rem;
  /* Brillo dorado que pasa por el título */
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--white) 45%, var(--gold) 55%, var(--gold-light) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pillar-shine 6s ease-in-out infinite;
}
.ministry p { margin: 0; color: rgba(255,255,255,0.75); }
@keyframes ministry-orbit { to { rotate: 360deg; } }

/* ---------- Contacto ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.privacy-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 1.5rem 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 0.95rem;
}
.privacy-note svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--gold-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 18px 40px rgba(27,27,29,0.18);
}
/* Mismo borde dorado que gira de los cuadros de la visión */
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: conic-gradient(from var(--spin), transparent 0deg, var(--gold) 60deg, var(--gold-light) 90deg, transparent 150deg, transparent 360deg);
  animation: pillar-spin 7s linear infinite;
}
.contact-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: calc(var(--radius) - 2px);
  background: radial-gradient(circle at 100% 0%, rgba(201,164,92,0.18), transparent 50%), var(--ink);
}
.contact-form { display: grid; gap: 18px; }
.contact-form[hidden], .contact-thanks[hidden], .contact-form__error[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(201,164,92,0.25);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #e48a7a; }
.field--trampa { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__error { margin: 0; color: #f0a597; font-size: 0.9rem; }
.contact-form__send { justify-self: start; cursor: pointer; font-family: inherit; }
.contact-form__send:disabled { opacity: 0.6; cursor: wait; transform: none; }
/* Mensaje de confirmación */
.contact-thanks {
  text-align: center;
  padding: 30px 10px;
  color: rgba(255,255,255,0.8);
  outline: none;
  animation: thanks-in 0.6s ease both;
}
.contact-thanks__icon {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid rgba(201,164,92,0.6);
  color: var(--gold);
  animation: pillar-pulse 3s ease-out infinite;
}
.contact-thanks__icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.contact-thanks__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 10px;
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--white) 45%, var(--gold) 55%, var(--gold-light) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pillar-shine 6s ease-in-out infinite;
}
.contact-thanks__text { font-size: 1.15rem; margin: 0 0 28px; }
.btn--ghost-light { background: transparent; color: var(--gold-light); border-color: rgba(230,207,156,0.6); cursor: pointer; font-family: inherit; }
.btn--ghost-light:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
@keyframes thanks-in { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Ofrendas (Zeffy) ---------- */
.giving {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.giving__points { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: 14px; }
.giving__points li { display: flex; gap: 12px; align-items: flex-start; }
.giving__points svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--ink); fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.giving__fuera { font-size: 0.9rem; color: var(--gold-dark); text-decoration: none; border-bottom: 1px solid rgba(168,132,63,0.4); }
.giving__fuera:hover { color: var(--ink); border-color: var(--ink); }
/* Marco del formulario con el mismo borde dorado que gira de los otros cuadros */
.giving__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 3px;
  max-width: 520px;
  width: 100%;
  justify-self: center;
  box-shadow: 0 24px 50px rgba(27,27,29,0.18);
}
.giving__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: conic-gradient(from var(--spin), var(--gold-light) 0deg, var(--gold) 60deg, var(--gold-dark) 120deg, var(--gold-light) 180deg, var(--gold) 240deg, var(--gold-dark) 300deg, var(--gold-light) 360deg);
  animation: pillar-spin 8s linear infinite;
}
.giving__lado { max-width: 520px; width: 100%; justify-self: center; }
.giving__nota { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--gold); border-left-width: 5px; background: #fff6df; box-shadow: 0 8px 20px rgba(168,132,63,0.15); font-size: 0.98rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.giving__nota svg { flex: none; width: 24px; height: 24px; margin-top: 0; fill: none; stroke: var(--gold-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.giving__nota strong { color: var(--gold-dark); font-size: 1.1em; }
.giving__marco { position: relative; overflow: hidden; height: 720px; width: 100%; border-radius: calc(var(--radius) - 3px); background: #24564a; }
.giving__marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- En vivo ---------- */
.live {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.live__embed {
  max-width: 500px;
  justify-self: center;
  width: 100%;
}
/* Tarjeta de transmisión en vivo */
.stream-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}
/* Borde dorado que gira, como en los demás cuadros */
.stream-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: conic-gradient(from var(--spin), transparent 0deg, var(--gold) 60deg, var(--gold-light) 90deg, transparent 150deg, transparent 360deg);
  animation: pillar-spin 6s linear infinite;
}
.stream-card__bg {
  position: absolute;
  inset: 2px;
  z-index: -2;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  transition: scale 1.2s ease;
}
.stream-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(to bottom, rgba(27,27,29,0.55) 0%, rgba(27,27,29,0.15) 35%, rgba(27,27,29,0.75) 65%, rgba(27,27,29,0.97) 100%);
}
.stream-card:hover .stream-card__bg { scale: 1.06; }
.stream-card__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(27,27,29,0.7);
  border: 1px solid rgba(201,164,92,0.5);
  backdrop-filter: blur(6px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stream-card.is-live .stream-card__badge { background: #d62f26; border-color: #ff6b61; }
/* Botón de "play" al centro con aro que late */
.stream-card__play {
  align-self: center;
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: stream-ring 2.2s ease-out infinite;
  transition: scale 0.35s ease, background 0.35s;
}
.stream-card__play svg { width: 38px; height: 38px; fill: currentColor; margin-left: 5px; }
.stream-card:hover .stream-card__play { scale: 1.1; background: var(--gold-light); }
.stream-card.is-live .stream-card__play { background: #ff3b30; color: var(--white); animation-name: stream-ring-live; }
.stream-card__info { display: grid; gap: 12px; }
.stream-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.stream-card__brand svg { width: 20px; height: 20px; fill: var(--gold-light); }
.stream-card__when {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-light);
}
.stream-card__count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stream-card__count > span {
  display: grid;
  justify-items: center;
  padding: 8px 4px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,164,92,0.3);
}
.stream-card__count b { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stream-card__count b.tick { animation: tick 0.5s cubic-bezier(.2,.8,.2,1); }
.stream-card__count small { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.stream-card__btn { text-align: center; }
.stream-card:hover .stream-card__btn { background: var(--gold-light); border-color: var(--gold-light); }
/* Textos que cambian solos cuando estamos en vivo */
.stream-card .stream-card__on { display: none; }
.stream-card.is-live .stream-card__on { display: inline; }
.stream-card.is-live .stream-card__off { display: none; }
@keyframes stream-ring {
  0% { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 0 rgba(201,164,92,0.6); }
  70%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 26px rgba(201,164,92,0); }
}
@keyframes stream-ring-live {
  0% { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 0 rgba(255,59,48,0.7); }
  70%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 26px rgba(255,59,48,0); }
}

.live__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- YouTube ---------- */
.youtube__intro { max-width: 620px; margin: 0 auto 40px; color: var(--muted); }
.youtube__player {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
.youtube__player iframe { width: 100%; height: 100%; border: 0; display: block; }
.youtube__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.btn--youtube {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e62117;
  border-color: #e62117;
  color: var(--white);
}
.btn--youtube:hover { background: #c41a12; border-color: #c41a12; color: var(--white); }
.btn--youtube svg { width: 22px; height: 22px; fill: currentColor; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Galería en álbumes ---------- */
.gallery__intro { max-width: 620px; margin: 0 auto 56px; color: var(--muted); }
.albums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 44px;
  padding: 0 12px;
}
.album { text-align: center; cursor: pointer; }
.album__stack {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 26px;
}
/* Cada foto es como una foto impresa con borde blanco */
.album__photo {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 5px solid var(--white);
  background: var(--cream);
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s;
}
.album__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.8,.2,1); }
.album__photo:nth-child(1) { z-index: 3; }
.album__photo:nth-child(2) { z-index: 2; transform: rotate(-6deg) translate(-4%, 2%); }
.album__photo:nth-child(3) { z-index: 1; transform: rotate(6deg) translate(4%, 2%); }
.album__photo:nth-child(n+4) { visibility: hidden; }

/* Al pasar el mouse, las fotos se abren en abanico */
.album:hover .album__photo:nth-child(1) { transform: translateY(-10px) scale(1.03); box-shadow: 0 24px 50px rgba(0,0,0,0.25); }
.album:hover .album__photo:nth-child(1) img { transform: scale(1.06); }
.album:hover .album__photo:nth-child(2) { transform: rotate(-13deg) translate(-20%, 4%); }
.album:hover .album__photo:nth-child(3) { transform: rotate(13deg) translate(20%, 4%); }

/* Al aparecer en pantalla, las fotos se "reparten" desde el centro */
.album.reveal:not(.is-visible) .album__photo { transform: none; }

/* Etiqueta con el número de fotos */
.album__stack::after {
  content: attr(data-count);
  position: absolute;
  top: 14px; right: 14px;
  z-index: 4;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(27,27,29,0.82);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.album:hover .album__stack::after { transform: translateY(-10px); }

/* Botón "Ver álbum" que aparece sobre la foto del frente */
.album__photo:nth-child(1)::after {
  content: "Ver álbum";
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translate(-50%, 12px);
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.album:hover .album__photo:nth-child(1)::after { opacity: 1; transform: translate(-50%, 0); }

.album__title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.3s;
}
.album:hover .album__title { color: var(--gold-dark); }
.album__meta { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); }
.gallery__more { text-align: center; margin-top: 48px; }

@media (max-width: 1100px) {
  .albums { grid-template-columns: repeat(2, 1fr); max-width: 680px; margin: 0 auto; gap: 56px 60px; }
}
@media (max-width: 600px) {
  .albums { gap: 40px 28px; padding: 0 10px; }
  .album__stack { margin-bottom: 16px; }
  .album__photo { border-width: 3px; border-radius: 8px; }
  .album__title { font-size: 1.3rem; }
  .album__meta { font-size: 0.75rem; }
  .album__stack::after { top: 8px; right: 8px; font-size: 0.6rem; padding: 4px 9px; }
  .album__photo:nth-child(1)::after { display: none; }
}

/* ---------- Visor de fotos ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.94);
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; text-align: center; max-width: 92vw; }
.lightbox__img {
  max-width: 92vw;
  max-height: 84vh;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), opacity 0.4s;
}
.lightbox.is-open .lightbox__img.is-loaded { transform: none; opacity: 1; }
.lightbox__caption {
  margin-top: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.lightbox__close {
  position: absolute;
  top: 16px; right: 20px;
  width: 48px; height: 48px;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.lightbox__close:hover { color: var(--gold); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 52px; height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.35);
  color: var(--white);
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.lightbox__nav:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
@media (max-width: 600px) {
  .lightbox__nav { top: auto; bottom: 22px; margin-top: 0; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
}

/* ---------- Redes en el pie ---------- */
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Visítanos ---------- */
.visit {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: stretch;
}
.contact { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact li {
  padding: 16px 0;
  border-bottom: 1px solid #ece6da;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}
.contact strong {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding-top: 3px;
}
.visit__horarios { margin: 0 0 2rem; }
.visit__subtitulo { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.visit__servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.servicio { padding: 16px 18px; border-radius: var(--radius); background: var(--cream); border-left: 4px solid var(--gold-light); }
.servicio--principal { background: var(--ink); border-left-color: var(--gold); box-shadow: 0 12px 26px rgba(27,27,29,0.18); }
.servicio p { margin: 0; }
.servicio__dia { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dark); }
.servicio--principal .servicio__dia { color: var(--gold); }
.servicio__hora { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; margin: 4px 0 2px !important; color: var(--ink); }
.servicio--principal .servicio__hora { color: var(--white); }
.servicio__nombre { font-weight: 600; color: var(--ink); }
.servicio--principal .servicio__nombre { color: var(--white); }
.servicio__nota { font-size: 0.82rem; color: var(--muted); margin-top: 4px !important; }
.servicio--principal .servicio__nota { color: rgba(255,255,255,0.65); }
.contact a { text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact a:hover { color: var(--gold-dark); }
.visit__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  background: var(--cream);
}
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); padding: 50px 0; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}
.footer__muted { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin: 0; }
.logo--footer { margin-bottom: 0.6rem; }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Títulos palabra por palabra: cada palabra sube desde una "ventana" */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
}
.split .w > span {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1), opacity 0.9s;
  transition-delay: calc(var(--i) * 0.08s);
}
.split.is-visible .w > span { transform: none; opacity: 1; }

/* =========================================================
   ENTRADA ANIMADA
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: clip-path 1s cubic-bezier(.7,0,.2,1), visibility 0s linear 1s;
  clip-path: inset(0 0 0 0);
}
.intro.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.intro.is-skipped { display: none; }
.intro__inner { text-align: center; width: min(560px, 86vw); }
.intro__small {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  opacity: 0;
  animation: introFade 0.8s 0.2s forwards;
}
.intro__svg { width: 100%; height: auto; overflow: visible; }
.intro__svg text {
  font-family: var(--serif);
  font-size: 96px;
  font-weight: 500;
  fill: transparent;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: introDraw 1.6s 0.3s cubic-bezier(.6,0,.3,1) forwards, introFill 0.7s 1.5s forwards;
}
.intro__line {
  display: block;
  height: 1px;
  width: 0;
  margin: 6px auto 16px;
  background: var(--gold);
  animation: introLine 0.8s 1.3s cubic-bezier(.2,.8,.2,1) forwards;
}
.intro__pastors {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  animation: introFade 0.8s 1.6s forwards;
}
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introFill { to { fill: var(--gold); } }
@keyframes introLine { to { width: 120px; } }
@keyframes introFade { to { opacity: 1; } }

/* =========================================================
   CUENTA REGRESIVA
   ========================================================= */
.next-service {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  transition: background 0.3s, border-color 0.3s;
}
.next-service:hover { background: rgba(201,164,92,0.25); border-color: var(--gold); }
.next-service__label { color: rgba(255,255,255,0.7); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; }
.next-service__time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold-light); }
.next-service__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201,164,92,0.7);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.is-live .next-service__dot, .countdown__live .next-service__dot { background: #ff3b30; animation-name: pulseRed; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,164,92,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(201,164,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,164,92,0); }
}
@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(255,59,48,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255,59,48,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); }
}

.countdown {
  margin: 10px auto 60px;
  text-align: center;
}
.countdown__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.countdown__grid {
  display: inline-grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.countdown__unit {
  min-width: 96px;
  padding: 18px 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.countdown__unit::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.countdown__num {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.countdown__num.tick { animation: tick 0.5s cubic-bezier(.2,.8,.2,1); }
@keyframes tick {
  0% { transform: translateY(-40%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.countdown__name {
  display: block;
  margin-top: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.countdown__live { display: none; align-items: center; gap: 10px; }
.countdown.is-live .countdown__grid,
.countdown.is-live .countdown__label { display: none; }
.countdown.is-live .countdown__live { display: inline-flex; }

/* =========================================================
   CINTA DE PALABRAS EN MOVIMIENTO
   ========================================================= */
/* Cintas horizontales: una dorada arriba y una oscura abajo, en sentidos opuestos */
.ribbons {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.marquee {
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
  user-select: none;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 40s linear infinite;
}
.marquee--reverse .marquee__track,
.marquee--back .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  color: var(--ink);
  padding: 0 28px;
  transition: color 0.3s, text-shadow 0.3s;
}
/* Estrella separadora que gira */
.marquee span::after {
  content: "✦";
  display: inline-block;
  font-style: normal;
  font-size: 0.6em;
  margin-left: 56px;
  animation: marquee-star 6s linear infinite;
}

/* Cinta del frente: dorado con degradado que se desplaza y un destello que la recorre */
.marquee--front {
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
  background-size: 200% 100%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: ribbon-gold 8s ease-in-out infinite alternate;
}
.marquee--front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,0.55) 50%, transparent 65%);
  translate: -100% 0;
  animation: ribbon-shine 5s ease-in-out infinite;
  pointer-events: none;
}
.marquee--front span:hover { color: var(--white); text-shadow: 0 0 18px rgba(255,255,255,0.6); }
.marquee--front span::after { color: var(--ink); opacity: 0.75; }

/* Cinta de atrás: oscura, con letras de contorno dorado */
.marquee--back {
  position: relative;
  z-index: 1;
  background: var(--ink);
  padding: 14px 0;
}
.marquee--back span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(230,207,156,0.8);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}
.marquee--back span::after { -webkit-text-stroke: 0; color: var(--gold); }

/* Cinta del pie (oscura con contorno) */
.marquee--outline { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.06); }
.marquee--outline span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,164,92,0.7);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.marquee--outline span::after { -webkit-text-stroke: 0; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-star { to { rotate: 360deg; } }
@keyframes ribbon-gold { to { background-position: 100% 0; } }
@keyframes ribbon-shine {
  0% { translate: -100% 0; }
  60%, 100% { translate: 100% 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .nav { gap: 20px; }
  .nav a:not(.btn) { font-size: 0.76rem; letter-spacing: 0.06em; }
}

@media (max-width: 960px) {
  .about, .pastors, .live, .visit, .contact-wrap, .giving { grid-template-columns: 1fr; gap: 50px; }
  .about__pillars { grid-template-columns: 1fr; }
  .schedule, .ministries { grid-template-columns: 1fr 1fr; }
  .schedule__card--main { transform: none; }
  .pastors__photo { max-width: 420px; }
}

/* Menú tipo hamburguesa en tabletas y celulares */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(27, 27, 29, 0.98);
    padding: 10px 24px 28px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { width: 100%; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav .btn { margin-top: 20px; }
  .header.menu-open { background: rgba(27, 27, 29, 0.98); }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .schedule, .ministries { grid-template-columns: 1fr; }
  .contact li { grid-template-columns: 1fr; gap: 2px; }
  .contact-card { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form__send { justify-self: stretch; text-align: center; }
  .slide__content { padding-bottom: 150px; }
  .slide__text { margin-bottom: 1.4rem; }
  .slide__actions .btn--outline { display: none; }
  .slider__footer { bottom: 30px; flex-wrap: wrap; gap: 14px; }
  .next-service { margin-left: 0; padding: 7px 14px; }
  .next-service__label { display: none; }
  .countdown__grid { gap: 8px; }
  .countdown__unit { min-width: 0; padding: 14px 8px 10px; }
  .countdown__num { font-size: 2.1rem; }
  .countdown__name { font-size: 0.55rem; letter-spacing: 0.12em; }
  .stream-card { padding: 20px; }
  .stream-card__play { width: 76px; height: 76px; }
  .stream-card__count b { font-size: 1.4rem; }
  .stream-card__btn { padding: 12px 16px; font-size: 0.75rem; }
  .marquee { padding: 12px 0; }
  .ministry { padding: 24px 20px; column-gap: 18px; }
  .ministry__icon { width: 68px; height: 68px; }
  .ministry__icon svg { width: 32px; height: 32px; }
  .ministry h3 { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide.is-active .slide__img { animation: none; transform: none; }
  .slide.is-active .slide__eyebrow, .slide.is-active .slide__title, .slide.is-active .slide__text,
  .slide.is-active .slide__actions, .slide.is-active .slide__line { animation-duration: 0.01s; animation-delay: 0s; }
  .intro { display: none; }
  .split .w > span { transform: none; opacity: 1; transition: none; }
  .marquee__track { animation-duration: 120s; }
  .marquee span::after, .marquee--front, .marquee--front::after, .ministry__icon::before { animation: none; }
  .ministry, .ministry::before, .ministry__icon::after, .ministry h3 { animation: none; }
  .ministry h3 { background-position: 50% 0; }
  .stream-card::before, .stream-card__play, .stream-card__bg, .giving__card::before { animation: none; transition: none; }
  .contact-card::before, .contact-thanks, .contact-thanks__icon, .contact-thanks__title { animation: none; }
  .ministry .ministry__line { transition: none; scale: 1; }
  .pillar, .pillar::before, .pillar__icon, .pillar h3 { animation: none; }
  .pillar h3 { background-position: 50% 0; }
  .pillar .pillar__line { transition: none; scale: 1; }
}
