/* ============================================================
   IMPCH Pichi Pelluco — Hoja de estilos
   Paleta de marca tomada del logo:
   navy #000F5F · azul profundo #002C55 · púrpura #622367
   degradado #51B9FF → #C315FF
   ============================================================ */

:root {
  --navy: #000f5f;
  --navy-deep: #002c55;
  --ink: #0a1330;
  --purple: #622367;
  --grad-a: #51b9ff;
  --grad-b: #9952ff;
  --grad-c: #c315ff;
  --gold: #e9c46a;

  --paper: #fbfaff;
  --paper-2: #f3f1fb;
  --cloud: #ffffff;
  --muted: #5b6080;
  --line: rgba(10, 19, 48, 0.10);

  --grad-brand: linear-gradient(120deg, var(--grad-a) 0%, var(--grad-b) 50%, var(--grad-c) 100%);
  --grad-deep: linear-gradient(160deg, #060a2e 0%, #0a1450 45%, #1a1060 75%, #2a0f4d 100%);

  --shadow-sm: 0 4px 18px rgba(10, 19, 48, 0.08);
  --shadow-md: 0 18px 50px rgba(10, 19, 48, 0.14);
  --shadow-lg: 0 30px 80px rgba(6, 10, 46, 0.28);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(var(--maxw), 92vw); margin-inline: auto; }

/* ---------- Tipografía utilitaria ---------- */
.display {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.display--light { color: #fff; }

.kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.6rem;
}
.kicker::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2rem; height: 2px;
  background: var(--grad-brand);
}
.kicker--light { color: var(--grad-a); }
.kicker--light::before { background: var(--grad-a); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 60ch; }
.lead--center { margin-inline: auto; text-align: center; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 0.95rem 1.9rem; border-radius: 100px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
  will-change: transform; cursor: pointer; border: none;
}
.btn--primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 12px 30px rgba(98, 35, 103, 0.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(98, 35, 103, 0.45); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.08); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-3px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s, padding 0.4s;
  padding: 1.1rem 0;
}
.nav__inner {
  width: min(var(--maxw), 92vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
/* Lockup del header: isotipo + separador + nombre (Propuesta 5) */
.nav__brand { display: flex; align-items: center; gap: 0.85rem; }
.nav__iso { height: 42px; width: auto; transition: height 0.4s var(--ease); }
.nav__iso--color { display: none; }
.nav__divider { width: 1px; height: 34px; background: rgba(255, 255, 255, 0.30); transition: background 0.4s; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.nav__eyebrow {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); transition: color 0.4s; white-space: nowrap;
}
.nav__eyebrow--short { display: none; }
.nav__wordmark {
  font-size: 0.98rem; font-weight: 700; letter-spacing: 0.12em; color: #fff;
  transition: color 0.4s; white-space: nowrap;
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.92rem; font-weight: 500; color: rgba(255, 255, 255, 0.85);
  position: relative; transition: color 0.3s;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--grad-brand); transition: width 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: #fff; }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--grad-brand); color: #fff !important;
  padding: 0.6rem 1.4rem; border-radius: 100px; font-weight: 600;
  box-shadow: 0 8px 22px rgba(98, 35, 103, 0.4); transition: transform 0.3s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); }

/* Estado "scrolled": fondo claro */
.nav.scrolled {
  background: rgba(251, 250, 255, 0.85);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: var(--shadow-sm); padding: 0.65rem 0;
}
.nav.scrolled .nav__iso--white { display: none; }
.nav.scrolled .nav__iso--color { display: block; }
.nav.scrolled .nav__iso { height: 38px; }
.nav.scrolled .nav__divider { background: rgba(10, 19, 48, 0.18); }
.nav.scrolled .nav__eyebrow { color: var(--purple); }
.nav.scrolled .nav__wordmark { color: var(--navy); }
.nav.scrolled .nav__links a { color: var(--ink); }
.nav.scrolled .nav__links a:not(.nav__cta):hover { color: var(--purple); }
.nav.scrolled .nav__cta { color: #fff !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: 0.35s var(--ease); border-radius: 2px; }
.nav.scrolled .nav__toggle span { background: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  background: var(--grad-deep);
  padding: 7rem 1.5rem 5rem;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo {
  position: absolute; inset: 0;
  background: url("../img/fotos/hero.jpg") center/cover no-repeat;
  opacity: 0.22;
  filter: saturate(1.05);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 35%, transparent 80%);
  transform: scale(1.05);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}
.orb--1 { width: 420px; height: 420px; background: #2f6bff; top: -8%; left: -6%; }
.orb--2 { width: 380px; height: 380px; background: var(--grad-c); bottom: -10%; right: -4%; animation-delay: -4s; }
.orb--3 { width: 300px; height: 300px; background: #51b9ff; top: 40%; left: 55%; animation-delay: -8s; opacity: 0.35; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

.hero__content { position: relative; z-index: 2; max-width: 880px; }
.hero__logo { height: clamp(120px, 18vw, 190px); width: auto; margin: 0 auto 1.6rem; filter: drop-shadow(0 14px 40px rgba(81,185,255,0.35)); }
.hero__eyebrow {
  font-size: clamp(0.78rem, 1.4vw, 0.95rem); font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 0.4rem;
}
.hero__title {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 6.5rem); line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.hero__tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 500; margin-bottom: 1.4rem;
}
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(255,255,255,0.82);
  max-width: 56ch; margin: 0 auto 2.4rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.mouse {
  display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5);
  border-radius: 16px; position: relative;
}
.mouse span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ============================================================
   BIENVENIDA
   ============================================================ */
.section--welcome { text-align: center; padding-top: clamp(5rem, 10vw, 9rem); }
.section--welcome .lead { margin: 1.6rem auto 0; text-align: center; }
.section--welcome .display { margin-top: 0.4rem; }

/* ============================================================
   HISTORIA
   ============================================================ */
.section--history { background: var(--paper-2); }
.history__media { position: relative; }
.history__photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
}
.history__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.history__badge {
  position: absolute; right: 1.2rem; bottom: 1.2rem;
  background: var(--grad-deep); color: #fff; border-radius: 18px;
  padding: 1.2rem 1.6rem; text-align: center; box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.12); overflow: hidden;
}
.history__badge::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(81,185,255,0.4), transparent 60%);
}
.history__years { font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 4rem); font-weight: 600; line-height: 1; position: relative; display: block; }
.history__years-label { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.8); position: relative; }
.history__quote {
  margin-top: 1.4rem; background: #fff; border-radius: 16px; padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm); border-left: 4px solid transparent;
  border-image: var(--grad-brand) 1;
}
.history__quote p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--navy); }
.history__text p { margin-top: 1.1rem; color: var(--muted); }
.history__text strong { color: var(--navy); font-weight: 600; }

/* ============================================================
   VISIÓN
   ============================================================ */
.section--vision { background: var(--grad-deep); color: #fff; overflow: hidden; }
.section--vision .vision__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(195,21,255,0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(81,185,255,0.22), transparent 45%);
  pointer-events: none;
}
.section--vision .container { position: relative; z-index: 1; }
.vision__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
.vision__lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.5; color: #fff; }
.vision__body { color: rgba(255,255,255,0.78); align-self: center; }

.pastor {
  margin-top: 3.5rem; text-align: center; padding: 2.8rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.pastor blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.3; font-weight: 500; }
.pastor figcaption { margin-top: 1.4rem; }
.pastor__name { display: block; font-weight: 600; letter-spacing: 0.02em; }
.pastor__role { display: block; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }

/* ============================================================
   HORARIOS
   ============================================================ */
.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.schedule__item {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
  display: flex; flex-direction: column; gap: 0.25rem; position: relative; overflow: hidden;
}
.schedule__item::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--grad-brand); opacity: 0; transition: opacity 0.4s;
}
.schedule__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.schedule__item:hover::before { opacity: 1; }
.schedule__day { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--purple); }
.schedule__name { font-size: 1.12rem; font-weight: 600; color: var(--navy); }
.schedule__time { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); margin-top: 0.2rem; }
.schedule__item--feature { background: var(--grad-deep); color: #fff; border: none; }
.schedule__item--feature .schedule__day { color: var(--grad-a); }
.schedule__item--feature .schedule__name,
.schedule__item--feature .schedule__time { color: #fff; }
.schedule__item--feature::before { opacity: 1; }

/* Locales */
.locales { margin-top: 3.5rem; text-align: center; }
.locales__title { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); margin-bottom: 1.5rem; }
.locales__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.locale {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, background 0.4s;
}
.locale:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); background: #fff; }
.locale__name { font-size: 1.18rem; font-weight: 600; color: var(--navy); }
.locale__time { color: var(--muted); font-size: 0.95rem; }
.locale__link { margin-top: 0.4rem; font-weight: 600; font-size: 0.88rem; color: var(--purple); }

/* ============================================================
   MINISTERIOS
   ============================================================ */
.ministries {
  display: flex; gap: 1.4rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.6rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--grad-b) transparent;
}
.ministries::-webkit-scrollbar { height: 8px; }
.ministries::-webkit-scrollbar-thumb { background: var(--line); border-radius: 100px; }
.ministries::-webkit-scrollbar-thumb:hover { background: var(--grad-b); }
.ministry {
  flex: 0 0 min(85vw, 310px); scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s; position: relative; overflow: hidden;
}
.ministries__hint {
  text-align: right; color: var(--muted); font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.03em; margin-top: 0.2rem;
}
.ministry::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1.5px; background: var(--grad-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.ministry:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.ministry:hover::after { opacity: 1; }
.ministry__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.2rem;
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 24px rgba(98, 35, 103, 0.28);
}
.ministry__icon svg { width: 28px; height: 28px; }
.ministry h3 { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); margin-bottom: 0.6rem; }
.ministry p { color: var(--muted); font-size: 0.98rem; }
.ministry__intro {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5;
  overflow: hidden;
}
.ministry__more {
  margin-top: 1rem; background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--purple); display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap 0.3s var(--ease);
}
.ministry__more::after { content: "→"; transition: transform 0.3s var(--ease); }
.ministry__more:hover { gap: 0.6rem; }

/* Modal de ministerio */
.ministry-modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 24, 0.92); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  padding: 2rem 1.4rem;
}
.ministry-modal.open { opacity: 1; visibility: visible; }
.ministry-modal__panel {
  position: relative; background: var(--cloud); border-radius: var(--radius);
  max-width: min(640px, 94vw); max-height: 86vh; overflow-y: auto;
  padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98); transition: transform 0.35s var(--ease);
}
.ministry-modal.open .ministry-modal__panel { transform: none; }
.ministry-modal__close {
  position: absolute; top: 1rem; right: 1.2rem; background: none; border: none;
  font-size: 2.2rem; line-height: 1; color: var(--muted); cursor: pointer; transition: color 0.3s;
}
.ministry-modal__close:hover { color: var(--navy); }
.ministry-modal__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.1rem;
  background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(98, 35, 103, 0.28);
}
.ministry-modal__icon svg { width: 28px; height: 28px; }
.ministry-modal__title { font-family: var(--sans); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 1rem; }
.ministry-modal__body p { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.ministry-modal__body p:last-child { margin-bottom: 0; }

/* ============================================================
   GALERÍA
   ============================================================ */
.section--gallery { background: var(--paper); }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 232px; gap: 1rem;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: 18px; margin: 0;
  box-shadow: var(--shadow-sm); cursor: pointer; background: var(--navy-deep);
  grid-column: span 1; grid-row: span 1;
}
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s var(--ease); filter: saturate(1.02);
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,10,46,0.7) 0%, transparent 45%);
  opacity: 0.85; transition: opacity 0.4s;
}
.gallery__item figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 1.1rem 1.3rem; color: #fff; font-weight: 600; font-size: 1.02rem;
  transform: translateY(4px); transition: transform 0.4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover figcaption { transform: translateY(0); }

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item, .gallery__item:not(.gallery__item--wide) { grid-column: span 1; }
  .gallery__item--wide { grid-column: span 2; grid-row: span 1; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 24, 0.92); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  padding: 4rem 1.5rem;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__stage { margin: 0; max-width: min(900px, 92vw); text-align: center; }
.lightbox__stage img {
  max-width: 100%; max-height: 78vh; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6); transform: scale(0.96); transition: transform 0.35s var(--ease);
}
.lightbox.open .lightbox__stage img { transform: scale(1); }
.lightbox__stage figcaption { color: #fff; margin-top: 1rem; font-weight: 500; letter-spacing: 0.02em; }
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.6rem; background: none; border: none;
  color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; opacity: 0.8; transition: opacity 0.3s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; cursor: pointer;
  display: grid; place-items: center; transition: background 0.3s, transform 0.3s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }
@media (max-width: 560px) { .lightbox__nav { width: 42px; height: 42px; font-size: 1.4rem; } }

/* ============================================================
   FE — En qué creemos
   ============================================================ */
.section--faith { background: var(--grad-deep); color: #fff; overflow: hidden; }
.section--faith::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(81,185,255,0.18), transparent 50%);
  pointer-events: none;
}
.section--faith .container { position: relative; z-index: 1; }
.beliefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem; }
.beliefs li {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px; padding: 1.5rem 1.6rem; transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.beliefs li:hover { background: rgba(255,255,255,0.08); border-color: rgba(81,185,255,0.4); transform: translateY(-4px); }
.beliefs__num { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1; }
.beliefs li:nth-child(odd) .beliefs__num { color: var(--grad-a); }
.beliefs li:nth-child(even) .beliefs__num { color: var(--grad-c); }
.beliefs p { color: rgba(255,255,255,0.85); font-size: 1rem; }
.beliefs strong { color: #fff; font-weight: 600; }

/* ============================================================
   CARPETA DE ALABANZAS
   ============================================================ */
.section--praise { background: var(--paper-2); text-align: center; }
.praise { max-width: 720px; margin-inline: auto; }
.praise__icon {
  width: 80px; height: 80px; margin: 0 auto 1.4rem; border-radius: 22px;
  background: var(--grad-brand); display: grid; place-items: center; font-size: 2.2rem;
  box-shadow: 0 16px 40px rgba(98,35,103,0.35);
}
.section--praise .lead { margin-top: 1.4rem; }

/* ============================================================
   CONTACTO
   ============================================================ */
.section--contact { background: var(--paper); }
.contact__list { margin: 2rem 0; display: grid; gap: 1.3rem; }
.contact__list li { display: flex; flex-direction: column; gap: 0.15rem; }
.contact__label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--purple); }
.contact__value, .contact__list a { font-size: 1.08rem; color: var(--ink); }
.contact__list a { transition: color 0.3s; }
.contact__list a:hover { color: var(--purple); }
.contact__socials { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.contact__socials a {
  font-size: 0.9rem; font-weight: 600; padding: 0.55rem 1.2rem; border-radius: 100px;
  border: 1.5px solid var(--line); transition: all 0.3s var(--ease);
}
.contact__socials a:hover { border-color: transparent; background: var(--grad-brand); color: #fff; transform: translateY(-2px); }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3.4; }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(1.05); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #060a2e; color: rgba(255,255,255,0.7); padding: 4rem 0 2.5rem; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.footer__logo { height: 88px; width: auto; opacity: 0.95; }
.footer__verse { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: #fff; max-width: 58ch; }
.footer__copy { font-size: 0.85rem; color: rgba(255,255,255,0.45); max-width: 60ch; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
  transition: transform 0.35s var(--ease);
  animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.1) translateY(-2px); }
@keyframes waPulse {
  0% { box-shadow: 0 10px 30px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 10px 30px rgba(37,211,102,0.5), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   ANIMACIONES DE SCROLL (reveal)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .wa-float, .mouse span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .vision__grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .contact__map { aspect-ratio: 16/11; }
  .history__media { order: -1; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    height: 100vh; height: 100dvh;
    background: var(--grad-deep); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 1.8rem; padding: 2rem 2.4rem;
    transform: translateX(100%); transition: transform 0.45s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { color: #fff !important; font-size: 1.1rem; }
  .nav.scrolled .nav__links a { color: #fff !important; }
  .nav__links .nav__cta { background: var(--grad-brand); color: #fff !important; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* El botón hamburguesa/X queda blanco cuando el menú está abierto,
     para que se vea sobre el panel oscuro en cualquier sección */
  .nav__toggle.open span,
  .nav.scrolled .nav__toggle.open span { background: #fff !important; }
}

@media (max-width: 540px) {
  .nav__eyebrow--full { display: none; }
  .nav__eyebrow--short { display: inline; }
  .nav__divider { height: 26px; }
  .nav__wordmark { font-size: 0.9rem; }
  .nav__iso, .nav.scrolled .nav__iso { height: 34px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { justify-content: center; width: 100%; }
  .pastor { padding: 2rem 0; }
  .schedule__item--feature { grid-column: auto; }
}
