/* ==========================================================================
   Iglesia Dios de Pactos — Estilos
   Paleta: #625E43 / #7B7655 / #9A937F / #F2ECE3 / #EEE6DE / #FAF8F5 / #D1C8BB
   ========================================================================== */

:root {
  --c-primary: #625E43;
  --c-secondary: #7B7655;
  --c-support: #9A937F;
  --bg-main: #F2ECE3;
  --bg-alt: #EEE6DE;
  --bg-card: #FAF8F5;
  --border: #D1C8BB;
  --ink: #3A3728;
  --ink-soft: #5C5847;
  --cream-on-dark: #F7F3EC;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-soft: 0 18px 40px -22px rgba(58, 55, 40, 0.28);
  --shadow-card: 0 10px 30px -18px rgba(58, 55, 40, 0.22);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-primary);
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* Skip link — accesibilidad */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--c-secondary);
  outline-offset: 3px;
}

/* ---------- Reveal on scroll — CSS defensivo obligatorio ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Red de seguridad: si el JS falla, el contenido igual se ve */
.reveal[data-split] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ---------- Stagger: las tarjetas de una misma grilla entran en cascada ---------- */
.eventos-grid > .reveal:nth-child(1) { transition-delay: 0.05s; }
.eventos-grid > .reveal:nth-child(2) { transition-delay: 0.16s; }
.find-grid > .reveal:nth-child(1) { transition-delay: 0.02s; }
.find-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.find-grid > .reveal:nth-child(3) { transition-delay: 0.14s; }
.find-grid > .reveal:nth-child(4) { transition-delay: 0.20s; }
.find-grid > .reveal:nth-child(5) { transition-delay: 0.26s; }
.find-grid > .reveal:nth-child(6) { transition-delay: 0.32s; }
.find-grid > .reveal:nth-child(7) { transition-delay: 0.38s; }
.find-grid > .reveal:nth-child(8) { transition-delay: 0.44s; }
.mvv-grid > .reveal:nth-child(1) { transition-delay: 0.05s; }
.mvv-grid > .reveal:nth-child(2) { transition-delay: 0.14s; }
.mvv-grid > .reveal:nth-child(3) { transition-delay: 0.23s; }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow .45s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s var(--ease);
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
@media (prefers-reduced-motion: reduce) {
  .btn::before { transition: none; display: none; }
}
.btn-primary {
  background: var(--c-primary);
  color: var(--cream-on-dark);
}
.btn-primary:hover { background: var(--c-secondary); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-secondary {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-secondary:hover { background: rgba(98,94,67,0.08); transform: translateY(-2px); }
.btn-ghost-light {
  background: transparent;
  color: var(--cream-on-dark);
  border-color: rgba(247,243,236,0.55);
}
.btn-ghost-light:hover { background: rgba(247,243,236,0.14); transform: translateY(-2px); }
.btn-fill-light {
  background: var(--cream-on-dark);
  color: var(--c-primary);
}
.btn-fill-light:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.82rem; }

/* ==========================================================================
   Logo (SVG paloma en línea)
   ========================================================================== */
.logo-mark { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark svg { width: 40px; height: 40px; flex-shrink: 0; }
.logo-mark__img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(58,55,40,0.08);
}
.logo-mark__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}
.logo-mark__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--c-secondary);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ==========================================================================
   INTRO — Experiencia de entrada (SARA + Horarios)
   Doble red de seguridad: la animación CSS garantiza el cierre aunque falle el JS
   ========================================================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, rgba(58,55,40,0.72), rgba(98,94,67,0.62));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#intro-sara {
  animation: introSaraCycle 6.4s var(--ease) forwards;
}
#intro-horarios {
  animation: introHorariosCycle 6.4s var(--ease) forwards;
  animation-delay: 6.2s;
}

@keyframes introSaraCycle {
  0%   { opacity: 0; visibility: visible; pointer-events: auto; }
  8%   { opacity: 1; visibility: visible; pointer-events: auto; }
  86%  { opacity: 1; visibility: visible; pointer-events: auto; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes introHorariosCycle {
  0%   { opacity: 0; visibility: hidden; pointer-events: none; }
  4%   { opacity: 0; visibility: visible; pointer-events: auto; }
  12%  { opacity: 1; visibility: visible; pointer-events: auto; }
  86%  { opacity: 1; visibility: visible; pointer-events: auto; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Cierre manual (JS) — anula la animación y desvanece de inmediato */
.intro-overlay.is-dismissed {
  animation: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.intro-card {
  width: 100%;
  max-width: 620px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  box-shadow: 0 40px 90px -30px rgba(20,18,10,0.45);
  transform: translateY(10px) scale(0.98);
  animation: introCardIn 0.9s var(--ease) forwards;
  animation-delay: 0.15s;
  opacity: 0;
  position: relative;
}
#intro-horarios .intro-card { animation-delay: 6.35s; }

@keyframes introCardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.intro-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin-bottom: 14px;
  display: block;
}
.intro-card h2 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1;
  margin-bottom: 10px;
}
.intro-card .intro-sub {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--c-secondary);
  font-style: italic;
  margin-bottom: 20px;
}
.intro-card p.intro-body {
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 28px;
}
.intro-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.intro-skip {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--c-support);
  background: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  padding: 6px 8px;
}
.intro-skip:hover { color: var(--c-primary); }

.horarios-mini-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 8px;
  text-align: left;
}
.horarios-mini-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.horarios-mini-item svg { width: 22px; height: 22px; color: var(--c-primary); flex-shrink: 0; }
.horarios-mini-item .day { font-weight: 600; color: var(--c-primary); font-size: 0.92rem; }
.horarios-mini-item .desc { font-size: 0.82rem; color: var(--ink-soft); }
.horarios-mini-item .time {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-secondary);
  font-size: 1.05rem;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  #intro-sara, #intro-horarios, .intro-card { animation-duration: 0.01s; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 20px 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .logo-mark__text,
.site-header .logo-mark svg { color: var(--cream-on-dark); }
.site-header .logo-mark svg circle,
.site-header .logo-mark svg path { stroke: var(--cream-on-dark); }

.site-header.is-scrolled {
  background: rgba(242, 236, 227, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 24px -12px rgba(58,55,40,0.25);
}
.site-header.is-scrolled .logo-mark__text,
.site-header.is-scrolled .logo-mark svg { color: var(--c-primary); }
.site-header.is-scrolled .logo-mark svg circle,
.site-header.is-scrolled .logo-mark svg path { stroke: var(--c-primary); }
.site-header.is-scrolled .nav-link { color: var(--ink); }
.site-header.is-scrolled .btn-ghost-light {
  background: var(--c-primary);
  color: var(--cream-on-dark);
  border-color: var(--c-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-link {
  color: var(--cream-on-dark);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 501;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream-on-dark);
  margin: 5px 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.is-scrolled .nav-toggle span { background: var(--c-primary); }

@media (max-width: 920px) {
  .nav-links.desktop-only { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 490;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 1.8rem; color: var(--c-primary); }
.mobile-menu .btn { margin-top: 12px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #3A3728;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: kenBurnsSlow 24s ease-in-out infinite alternate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 90px);
  opacity: 0.7;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,36,25,0.45) 0%, rgba(38,36,25,0.6) 55%, rgba(24,23,15,0.88) 100%);
}
@keyframes kenBurnsSlow {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(70px, 10vw, 120px);
  padding-top: 160px;
  color: var(--cream-on-dark);
  max-width: 780px;
}

.hero-banner-card {
  position: absolute;
  top: 108px;
  right: clamp(20px, 5vw, 48px);
  z-index: 2;
  width: min(420px, 42vw);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(15,14,9,0.55);
  border: 1px solid rgba(247,243,236,0.18);
}
.hero-banner-card img {
  width: 100%; height: auto; display: block;
  animation: kenBurns 14s ease-in-out infinite alternate;
  transform-origin: 55% 40%;
}
.hero-banner-card { animation: floatCard 6s ease-in-out infinite; }
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.09); }
}
@keyframes floatCard {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-banner-card img, .hero-banner-card { animation: none; }
}
@media (max-width: 860px) {
  .hero-banner-card {
    top: auto;
    bottom: 100%;
    right: 50%;
    transform: translateX(50%);
    margin-bottom: 18px;
    width: min(420px, 86vw);
  }
  .hero-content { padding-top: 200px; }
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.75);
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--cream-on-dark);
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero p.hero-sub {
  font-size: 1.05rem;
  color: rgba(247,243,236,0.85);
  max-width: 52ch;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(247,243,236,0.7);
}
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-indicator .dot-track {
  width: 1px;
  height: 42px;
  background: rgba(247,243,236,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-indicator .dot-track::after {
  content: "";
  position: absolute;
  top: -20px; left: 0;
  width: 100%; height: 20px;
  background: var(--cream-on-dark);
  animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: -20px; }
  60% { top: 42px; }
  100% { top: 42px; }
}

/* ==========================================================================
   Secciones generales
   ========================================================================== */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ==========================================================================
   Eventos destacados
   ========================================================================== */
.eventos-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}
@media (max-width: 860px) { .eventos-grid { grid-template-columns: 1fr; } }

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.event-card__media {
  position: relative;
  height: 240px;
  background: linear-gradient(150deg, #9A937F 0%, #7B7655 55%, #625E43 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.event-card__media.media-uniles {
  background: linear-gradient(150deg, #EEE6DE 0%, #D1C8BB 60%, #9A937F 100%);
}
.event-card__media svg { width: 64px; height: 64px; opacity: 0.85; color: var(--cream-on-dark); }
.event-card__media.media-uniles svg { color: var(--c-primary); }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; }

.event-card__date-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(250,248,245,0.92);
  color: var(--c-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 8px 14px;
  border-radius: 100px;
}
.event-card__body { padding: 30px 32px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.event-card__tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-secondary);
}
.event-card__body h3 { font-size: 1.9rem; line-height: 1.1; }
.event-card__body .event-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.event-card__body p.desc { color: var(--ink-soft); font-size: 0.92rem; }
.event-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.event-chip {
  font-size: 0.72rem;
  color: var(--c-primary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}
.event-card__body ul.supply-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.event-card__body ul.supply-list li { display: flex; align-items: center; gap: 8px; }
.event-card__body ul.supply-list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-support);
  flex-shrink: 0;
}
.event-card__footer { margin-top: auto; padding-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }

.supply-detail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.supply-detail-link:hover { background: #fff; border-color: var(--c-support); }
.supply-detail-link img {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.supply-detail-link span {
  font-size: 0.82rem;
  color: var(--c-primary);
  font-weight: 500;
}

/* ==========================================================================
   Horarios
   ========================================================================== */
.horarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .horarios-grid { grid-template-columns: 1fr; } }

.horario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color .5s var(--ease);
}
.horario-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); border-color: var(--c-support); }
.horario-card__icon {
  width: 62px; height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--c-primary);
  transition: transform 0.5s var(--ease), background .5s var(--ease);
}
.horario-card:hover .horario-card__icon { transform: scale(1.08) rotate(-6deg); background: var(--c-primary); color: var(--cream-on-dark); }
.horario-card__icon svg { width: 26px; height: 26px; }
.horario-card__day { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-secondary); margin-bottom: 10px; }
.horario-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.horario-card__time { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--c-primary); }

/* ==========================================================================
   Nuestra Iglesia
   ========================================================================== */
.iglesia-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .iglesia-grid { grid-template-columns: 1fr; gap: 40px; } }

.pastor-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #9A937F, #625E43);
  display: flex;
  align-items: flex-end;
  padding: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.pastor-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.9s var(--ease);
}
.pastor-photo:hover img { transform: scale(1.06); }
.pastor-photo span {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,19,12,0.7) 0%, rgba(20,19,12,0.05) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  border-radius: inherit;
  color: var(--cream-on-dark);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.iglesia-copy p { color: var(--ink-soft); margin-bottom: 16px; font-size: 0.98rem; }
.iglesia-copy h2 { margin-bottom: 20px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

.mvv-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 620px) { .mvv-grid { grid-template-columns: 1fr; } }
.mvv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
}
.mvv-card h4 { font-size: 1rem; color: var(--c-primary); margin-bottom: 8px; letter-spacing: 0.02em; }
.mvv-card p { font-size: 0.85rem; color: var(--ink-soft); }

/* ==========================================================================
   Qué puedes encontrar aquí
   ========================================================================== */
.find-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .find-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .find-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }

.find-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background .45s var(--ease);
}
.find-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); background: #fff; }
.find-card svg { width: 30px; height: 30px; color: var(--c-primary); margin-bottom: 14px; }
.find-card span { font-size: 0.88rem; font-weight: 500; color: var(--ink); }

/* ==========================================================================
   Ministerio de niños
   ========================================================================== */
.ninos-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 860px) { .ninos-block { grid-template-columns: 1fr; } }
.ninos-photo {
  min-height: 380px;
  background: linear-gradient(155deg, #D1C8BB, #9A937F 60%, #7B7655);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ninos-photo svg { width: 80px; height: 80px; color: var(--cream-on-dark); opacity: 0.85; }
.ninos-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ninos-photo:hover img { transform: scale(1.06); }
.ninos-copy {
  background: var(--bg-card);
  padding: clamp(36px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ninos-copy h2 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 18px; }
.ninos-copy p { color: var(--ink-soft); margin-bottom: 26px; }

/* ==========================================================================
   Galería
   ========================================================================== */
.gallery-wrap { position: relative; }
.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-support) transparent;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--c-support); border-radius: 10px; }

.gallery-item {
  flex: 0 0 clamp(240px, 32vw, 380px);
  aspect-ratio: 4/5;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}
.gallery-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.gallery-nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--c-primary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.gallery-nav button:hover { background: var(--c-primary); color: var(--cream-on-dark); }
.gallery-nav svg { width: 18px; height: 18px; }

/* ==========================================================================
   Ubicación
   ========================================================================== */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) { .ubicacion-grid { grid-template-columns: 1fr; } }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  aspect-ratio: 4/3.4;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.ubicacion-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.ubicacion-info p { color: var(--ink-soft); margin-bottom: 10px; }
.ubicacion-info .addr-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.ubicacion-info .addr-line svg { width: 20px; height: 20px; color: var(--c-primary); flex-shrink: 0; margin-top: 2px; }
.ubicacion-info .btn { margin-top: 20px; }

/* ==========================================================================
   Mensajes (estilo Netflix)
   ========================================================================== */
.msg-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-support) transparent;
}
.msg-card {
  flex: 0 0 clamp(240px, 27vw, 320px);
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.msg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.msg-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(150deg, #625E43, #3A3728);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.msg-thumb svg { width: 40px; height: 40px; color: rgba(247,243,236,0.9); }
.msg-body { padding: 18px 20px 22px; }
.msg-date { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-secondary); margin-bottom: 6px; display: block; }
.msg-body h3 { font-size: 1.15rem; line-height: 1.3; }
.msg-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--c-support);
}

/* ==========================================================================
   Peticiones de oración
   ========================================================================== */
.oracion-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.oracion-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: -2;
  animation: kenBurnsSlow 28s ease-in-out infinite alternate;
}
.oracion-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(30,28,19,0.88) 0%, rgba(30,28,19,0.78) 45%, rgba(30,28,19,0.9) 100%);
}
.oracion-section-head .eyebrow { color: var(--c-support); }
.oracion-section-head h2 { color: var(--cream-on-dark); }
.oracion-section-head p { color: rgba(247,243,236,0.75); }
@media (prefers-reduced-motion: reduce) {
  .oracion-photo { animation: none; }
}
.oracion-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 54px);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.45);
}
.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.82rem; letter-spacing: 0.03em; color: var(--c-secondary); font-weight: 500; }
.form-row input,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 3px rgba(123,118,85,0.18);
}
.oracion-wrap button[type="submit"] { width: 100%; margin-top: 6px; }
.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: 12px;
  color: var(--c-primary);
  font-size: 0.95rem;
}
.form-success.is-visible { display: block; }
.oracion-wrap form.is-hidden { display: none; }

/* ==========================================================================
   Frase final
   ========================================================================== */
.cta-final {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #211f15;
}
.cta-final-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: kenBurnsSlow 26s ease-in-out infinite alternate-reverse;
}
.cta-final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(33,31,21,0.6), rgba(18,17,11,0.85)),
    radial-gradient(120% 100% at 50% 30%, rgba(123,118,85,0.25) 0%, transparent 60%);
}
.cta-final-content { position: relative; z-index: 2; color: var(--cream-on-dark); padding: 0 24px; }
@media (prefers-reduced-motion: reduce) {
  .cta-final-photo { animation: none; }
}
.cta-final h2 {
  color: var(--cream-on-dark);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 32px;
  max-width: 16ch;
  margin-left: auto; margin-right: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #2E2C1F;
  color: rgba(247,243,236,0.82);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(247,243,236,0.12);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo-mark svg,
.site-footer .logo-mark svg circle,
.site-footer .logo-mark svg path { color: var(--cream-on-dark); stroke: var(--cream-on-dark); }
.footer-col h4 {
  color: var(--cream-on-dark);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col p, .footer-col a { font-size: 0.9rem; color: rgba(247,243,236,0.75); display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--cream-on-dark); }
.footer-desc { max-width: 32ch; margin-top: 16px; font-size: 0.88rem; color: rgba(247,243,236,0.62); }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(247,243,236,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0;
  transition: background 0.35s var(--ease), border-color .35s var(--ease);
}
.footer-social a:hover { background: rgba(247,243,236,0.12); border-color: rgba(247,243,236,0.5); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(247,243,236,0.5);
}

/* ==========================================================================
   Utilidades
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
