/* =============================================================
   Centro Familiar Cristiano — Puerto Madryn
   Rediseño premium · estilo editorial cálido
   Paleta derivada del logo (azul / verde agua / violeta)
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — extraídos del logo */
  --blue:        #2f80c0;
  --blue-600:    #2a72ad;
  --blue-700:    #235f94;
  --blue-800:    #1b4a75;
  --navy:        #12293f;
  --navy-900:    #0d1f30;
  --teal:        #35b8a4;
  --teal-600:    #2aa392;
  --violet:      #9090c0;
  --violet-600:  #7a73b4;

  /* Neutros */
  --ink:     #14212e;
  --slate:   #4c5a67;
  --muted:   #5c6874;
  --line:    #e6ecf2;
  --line-2:  #eef2f6;
  --mist:    #f4f7fb;   /* fondo frío suave */
  --cream:   #f8f6f1;   /* fondo cálido suave */
  --white:   #ffffff;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radios */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Sombras */
  --sh-xs: 0 1px 2px rgba(18,41,63,.06);
  --sh-sm: 0 4px 14px rgba(18,41,63,.07);
  --sh-md: 0 14px 34px rgba(18,41,63,.10);
  --sh-lg: 0 28px 60px rgba(18,41,63,.16);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vh, 132px);

  /* Gradiente de marca */
  --grad-brand: linear-gradient(120deg, var(--blue) 0%, var(--violet) 52%, var(--teal) 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: clamp(16px, 1.02vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(47,128,192,.18); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-optical-sizing: auto;
}

.display {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
}
.h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); }

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  color: var(--slate);
  line-height: 1.6;
}

p { color: var(--slate); }
strong { color: var(--ink); font-weight: 600; }

/* Eyebrow / etiqueta de sección */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: #bcd6ee; }
.eyebrow--light::before { background: rgba(255,255,255,.5); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tint { background: var(--mist); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--navy); color: #dfe8f1; }
.section--dark p { color: #a9bcce; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  line-height: 1;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background-color .25s, color .25s, border-color .25s;
  will-change: transform;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47,128,192,.32);
}
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(47,128,192,.40); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-700); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); box-shadow: var(--sh-sm); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn--outline-light {
  background: rgba(255,255,255,.06);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.34);
  backdrop-filter: blur(4px);
}
.btn--outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-2px); }
.btn--wa { background: #25d366; color: #05391a; box-shadow: 0 10px 24px rgba(37,211,102,.3); }
.btn--wa:hover { background: #1fbe5b; transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.04rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--blue-700);
  transition: gap .25s;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .25s; }
.link-arrow:hover { gap: 12px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.topbar {
  background: var(--navy);
  color: #c4d4e4;
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  padding-block: 8px;
}
.topbar__info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--teal); flex: none; }
.topbar__socials { display: flex; align-items: center; gap: 6px; }
.topbar__socials a {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: #c4d4e4;
  transition: background-color .2s, color .2s;
}
.topbar__socials a:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar__socials svg { width: 15px; height: 15px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, box-shadow .3s, border-color .3s;
}
.site-header.is-stuck {
  background: rgba(255,255,255,.94);
  box-shadow: 0 6px 24px rgba(18,41,63,.08);
  border-bottom-color: var(--line-2);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 40px; width: auto; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink);
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--blue-700); background: var(--mist); }
.nav__link svg { width: 15px; height: 15px; opacity: .6; transition: transform .25s; }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, transform .22s, visibility .22s;
}
.nav__item:hover .dropdown,
.nav__item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background-color .18s;
}
.dropdown a:hover { background: var(--mist); }
.dropdown a strong { font-size: .95rem; color: var(--ink); }
.dropdown a span { font-size: .8rem; color: var(--muted); }

.nav__cta { margin-left: 8px; }
.nav__burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  place-items: center;
  color: var(--ink);
  margin-left: auto;
}
.nav__burger svg { width: 26px; height: 26px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.4,0,.1,1);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 30px; min-height: 52px;
}
.mobile-menu__top img { height: 34px; filter: brightness(0) invert(1); opacity: .95; }
.mobile-menu__close { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); }
.mobile-menu__close svg { width: 26px; height: 26px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.m-link {
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #fff;
}
.m-sub { padding: 4px 4px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.m-sub a { display: block; padding: 7px 0; color: #a9c2da; font-size: 1rem; }
.mobile-menu .btn { margin-top: 28px; }

/* =============================================================
   HERO
   ============================================================= */
/* .hero__actions se reutiliza en las bandas de CTA (online, cta-band, dar, xhero) */
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ---------- Franja de horarios (overlap) ---------- */
.schedule-bar { position: relative; z-index: 5; margin-top: clamp(44px, 6vw, 76px); }
.schedule-card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line-2);
  padding: clamp(22px, 3vw, 34px);
}
.schedule-card__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line-2);
}
.schedule-card__head svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.schedule-card__head h3 { font-size: 1.15rem; }
.schedule-card__head span { color: var(--muted); font-size: .92rem; margin-left: auto; }
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
}
.sched-item {
  padding: 14px 16px;
  border-radius: var(--r);
  transition: background-color .25s;
}
.sched-item.is-next { background: var(--mist); box-shadow: inset 0 0 0 1.5px rgba(47,128,192,.25); }
.sched-item__day {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-700); margin-bottom: 6px;
}
.sched-item.is-next .sched-item__day::after {
  content: "Próxima"; font-size: .62rem; background: var(--blue); color: #fff;
  padding: 2px 7px; border-radius: 999px; letter-spacing: .04em;
}
.sched-item__name { font-weight: 600; color: var(--ink); font-size: 1rem; }
.sched-item__time { color: var(--slate); font-size: .92rem; }

/* =============================================================
   BLOQUE 2 COLUMNAS (Bienvenida)
   ============================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.media-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.media-frame img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.media-frame--tall img { aspect-ratio: 3/3.6; }
.media-badge {
  position: absolute;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  padding: 16px 20px;
}
.media-badge--br { right: -14px; bottom: -18px; }
.media-badge__k { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--blue-700); line-height: 1; }
.media-badge__l { font-size: .82rem; color: var(--muted); margin-top: 4px; }

.feature-list { display: grid; gap: 18px; margin-top: 30px; }
.feature {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: start;
}
.feature__icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--mist); color: var(--blue-700);
  flex: none;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h4 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 600; }
.feature p { font-size: .95rem; margin-top: 3px; }

/* =============================================================
   QUIÉNES SOMOS — tarjetas creemos/visión/misión
   ============================================================= */
.belief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.belief-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.belief-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.belief-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: transparent; }
.belief-card:hover::before { transform: scaleX(1); }
.belief-card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 22px; color: #fff;
}
.ic-blue { background: linear-gradient(135deg, var(--blue), var(--blue-700)); }
.ic-teal { background: linear-gradient(135deg, var(--teal), var(--teal-600)); }
.ic-violet { background: linear-gradient(135deg, var(--violet), var(--violet-600)); }
.belief-card__icon svg { width: 27px; height: 27px; }
.belief-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.belief-card p { font-size: .98rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(40px, 6vw, 68px);
}
.stat { text-align: center; padding: 20px 10px; }
.stat__k { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; color: var(--ink); line-height: 1; }
.stat--dark .stat__k { color: #fff; }
.stat__k .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__l { color: var(--muted); font-size: .92rem; margin-top: 10px; letter-spacing: .01em; }
.stat--dark .stat__l { color: #9db2c6; }

/* =============================================================
   MINISTERIOS — grid de tarjetas con imagen
   ============================================================= */
.ministries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.min-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  box-shadow: var(--sh-sm);
  transition: transform .35s, box-shadow .35s;
}
.min-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.min-card__img { position: absolute; inset: 0; z-index: -2; }
.min-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.min-card:hover .min-card__img img { transform: scale(1.07); }
.min-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,31,48,0) 30%, rgba(13,31,48,.5) 62%, rgba(9,22,35,.92) 100%);
}
.min-card__body { padding: 24px 22px; color: #fff; width: 100%; }
.min-card__tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #d7f2ea; background: rgba(53,184,164,.28); border: 1px solid rgba(53,184,164,.5);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.min-card h3 { color: #fff; font-size: 1.4rem; }
.min-card__sub { color: rgba(255,255,255,.92); font-size: .92rem; margin-top: 6px; }
.min-card__sub b { color: #fff; font-weight: 600; }

/* Tarjeta ancha (ministerios generales) */
.min-card--wide { grid-column: span 2; min-height: 260px; }
@media (max-width: 620px){ .min-card--wide { grid-column: span 1; } }

/* =============================================================
   PASTORES
   ============================================================= */
.pastors { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.pastors__media .media-frame img { aspect-ratio: 4/3.4; }
.pastor-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.pastor-block:last-child { border-bottom: none; padding-bottom: 0; }
.pastor-block:first-child { padding-top: 0; }
.pastor-block__role {
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700);
}
.pastor-block h3 { font-size: 1.7rem; margin: 8px 0 10px; }
.pastor-block p { font-size: .97rem; }

/* =============================================================
   TIMELINE / HISTORIA
   ============================================================= */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 20px;
}
.timeline::before {
  content: ""; position: absolute; top: 13px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--teal));
  opacity: .35;
}
.tl-item { position: relative; padding-top: 42px; }
.tl-item::before {
  content: ""; position: absolute; top: 6px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue); box-shadow: 0 0 0 5px rgba(47,128,192,.12);
}
.tl-item__year { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--blue-700); }
.tl-item h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin: 6px 0 4px; }
.tl-item p { font-size: .9rem; }

/* =============================================================
   GALERÍA COMUNIDAD
   ============================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery figure { position: relative; overflow: hidden; border-radius: var(--r); margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figure::after {
  content: attr(data-label); position: absolute; left: 16px; bottom: 14px; z-index: 2;
  color: #fff; font-weight: 600; font-size: .9rem; text-shadow: 0 1px 8px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery figure::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(9,22,35,.75)); z-index: 1;
  opacity: 0; transition: opacity .3s;
}
.gallery figure:hover::after, .gallery figure:hover::before { opacity: 1; transform: translateY(0); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* =============================================================
   CINTA DE FOTOS (marquee — se deslizan solas)
   ============================================================= */
.marquee {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: marquee 48s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 240px;
  width: auto;
  flex: none;
  border-radius: var(--r);
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(9,22,35,.14);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .marquee__track img { height: 170px; }
  .marquee__track { gap: 12px; animation-duration: 34s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: nowrap; overflow-x: auto; }
}

/* =============================================================
   ONLINE / SERMONES (dark)
   ============================================================= */
.online { position: relative; overflow: hidden; }
.online .container { position: relative; z-index: 2; }
.online__glow {
  position: absolute; z-index: 1; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.online__glow--a { width: 420px; height: 420px; background: var(--blue); top: -140px; right: -80px; }
.online__glow--b { width: 360px; height: 360px; background: var(--violet); bottom: -160px; left: -60px; opacity: .4; }
.play-wrap { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.play-btn {
  width: 78px; height: 78px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #fff; color: var(--navy);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  position: relative;
  transition: transform .3s;
}
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.play-btn:hover { transform: scale(1.06); }
.play-btn::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0%{ transform: scale(1); opacity: .7;} 100%{ transform: scale(1.4); opacity: 0;} }
@media (prefers-reduced-motion: reduce){ .play-btn::before { animation: none; } }

/* =============================================================
   BANDA CTA (oración / dar)
   ============================================================= */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(44px, 6vw, 76px);
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-brand); }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.25), transparent 40%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 18px auto 0; }
.cta-band .btn { margin-top: 30px; }
.cta-band .hero__actions { justify-content: center; }

/* Dar */
.give-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px,5vw,60px); align-items: center; }
.give-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--sh-sm);
}
.give-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.give-row:last-child { border-bottom: none; }
.give-row span { color: var(--muted); font-size: .88rem; }
.give-row strong { font-size: 1.05rem; }
.give-note { font-size: .86rem; color: var(--muted); margin-top: 18px; }

/* =============================================================
   CONTACTO
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px,5vw,56px); }
.contact-list { display: grid; gap: 8px; margin-top: 28px; }
.contact-item {
  display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: center;
  padding: 16px; border-radius: var(--r); transition: background-color .2s;
}
.contact-item:hover { background: var(--mist); }
.contact-item__ic { width: 50px; height: 50px; border-radius: 14px; background: var(--mist); color: var(--blue-700); display: grid; place-items: center; }
.contact-item__ic svg { width: 22px; height: 22px; }
.contact-item span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-item strong { display: block; font-size: 1.04rem; color: var(--ink); font-weight: 600; }
.contact-item a strong:hover { color: var(--blue-700); }
.map-frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); border: 1px solid var(--line); min-height: 380px; height: 100%; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.9); }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--navy-900); color: #93a7ba; padding-top: clamp(56px, 8vw, 90px); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand img { height: 40px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 20px; }
.footer__brand p { color: #7f95a9; font-size: .94rem; max-width: 320px; }
.footer__socials { display: flex; gap: 10px; margin-top: 22px; }
.footer__socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: #c7d6e4; transition: background-color .2s, transform .2s, color .2s;
}
.footer__socials a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.footer__socials svg { width: 18px; height: 18px; }
.footer__col h4 { font-family: var(--font-sans); color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; color: #93a7ba; font-size: .94rem; transition: color .2s, padding-left .2s; }
.footer__col a:hover { color: #fff; padding-left: 4px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 26px; font-size: .86rem; color: #93a7ba;
}
.footer__bottom a:hover { color: #fff; }

/* =============================================================
   FAB WhatsApp
   ============================================================= */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 0;
  height: 60px; padding: 0; border-radius: 999px;
  background: var(--navy); color: #fff;
  box-shadow: 0 12px 30px rgba(18,41,63,.42);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.fab__icon { width: 60px; height: 60px; display: grid; place-items: center; flex: none; }
.fab__icon svg { width: 30px; height: 30px; }
.fab__label { max-width: 0; white-space: nowrap; font-weight: 600; overflow: hidden; transition: max-width .35s, padding .35s; }
.fab:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(18,41,63,.55); }
.fab__icon { color: #25d366; }
.fab:hover .fab__label { max-width: 200px; padding-right: 22px; }

/* =============================================================
   Animaciones reveal
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =============================================================
   Video embed dinámico (última reunión del domingo)
   ============================================================= */
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-lg); background: #0b1a29;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__ph { position: absolute; inset: 0; display: grid; place-items: center; color: #a9c2da; font-size: .95rem; text-align: center; padding: 20px; }
.online__note { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .88rem; color: #a9c2da; }
.online__note svg { width: 15px; height: 15px; color: var(--teal); flex: none; }
.online__note b { color: #fff; }

/* =============================================================
   PÁGINAS INTERNAS — banner de encabezado + breadcrumb
   ============================================================= */
.subhero {
  position: relative;
  color: #fff;
  padding: clamp(120px, 18vh, 200px) 0 clamp(50px, 7vw, 84px);
  isolation: isolate;
  overflow: hidden;
}
.subhero__bg { position: absolute; inset: 0; z-index: -2; }
.subhero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.subhero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,31,48,.70) 0%, rgba(13,31,48,.80) 60%, rgba(9,22,35,.90) 100%);
}
.subhero__inner { max-width: 760px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: #a9c2da; margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: #a9c2da; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; opacity: .55; }
.breadcrumb span[aria-current] { color: #fff; }
.subhero h1 { font-family: var(--font-display); color: #fff; font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 600; line-height: 1.04; margin: 8px 0 0; letter-spacing: -.01em; }
.subhero__lead { color: #dce7f2; font-size: clamp(1.06rem, 1.5vw, 1.28rem); max-width: 620px; margin-top: 20px; }

/* Estado activo del nav */
.nav__link[aria-current="page"] { color: var(--blue-700); background: var(--mist); }

/* Texto largo / prosa */
.prose { max-width: 760px; }
.prose p { margin-bottom: 18px; font-size: 1.06rem; }
.prose p:last-child { margin-bottom: 0; }

/* Lista con checks */
.check-list { display: grid; gap: 14px; margin-top: 24px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--slate); }
.check-list svg { width: 22px; height: 22px; color: var(--teal-600); margin-top: 2px; }

/* Tarjeta de datos (CBU/Alias, etc.) */
.data-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh-sm); }
.data-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.data-row:last-child { border-bottom: none; }
.data-row span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.data-row strong { font-size: 1.06rem; font-variant-numeric: tabular-nums; }

/* Evento (tarjeta horizontal) */
.event-card { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-xs); transition: transform .3s, box-shadow .3s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.event-date { text-align: center; border-radius: var(--r); background: var(--mist); padding: 16px 10px; }
.event-date__d { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--blue-700); line-height: 1; }
.event-date__m { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.event-card h3 { font-size: 1.3rem; }
.event-card__meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-top: 8px; }
.event-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card__meta svg { width: 15px; height: 15px; }
@media (max-width: 520px){ .event-card { grid-template-columns: 1fr; } .event-date { display: flex; align-items: center; justify-content: center; gap: 10px; } }

/* =============================================================
   HERO que se expande con el scroll (home)
   Sección "pineada": la media crece a medida que scrolleás,
   sin secuestrar el scroll (compatible con la navegación por anclas).
   ============================================================= */
.xhero { position: relative; height: 160vh; background: var(--navy-900); }
.xhero__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.xhero__bg { position: absolute; inset: 0; z-index: 0; will-change: opacity; }
.xhero__slides { position: absolute; inset: 0; overflow: hidden; }
.xhero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}
.xhero__slide.is-active { opacity: 1; z-index: 1; }
/* Zoom lento (efecto Ken Burns) sobre la foto visible */
@media (prefers-reduced-motion: no-preference) {
  .xhero__slide.is-active { animation: kenburns 9s ease-out forwards; }
}
@keyframes kenburns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.16); }
}
.xhero__bg-tint { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(13,31,48,.34), rgba(13,31,48,.66)); }

.xhero__media {
  position: absolute; z-index: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 460px;
  max-width: 100vw; max-height: 100vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  will-change: width, height;
}
.xhero__media img { width: 100%; height: 100%; object-fit: cover; }
.xhero__media-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,22,35,.28) 0%, rgba(9,22,35,.34) 45%, rgba(9,22,35,.82) 100%); }

/* Título centrado (un solo H1 con dos palabras que se separan) */
.xhero__title {
  position: absolute; z-index: 3; inset: 0 0 auto;
  top: 50%; transform: translateY(-58%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 0 20px;
  pointer-events: none; will-change: opacity;
}
.xhero__h1 { color: #fff; margin: 0; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.xhero__h1 span { display: block; will-change: transform; }

/* Barra de datos + CTA, SIEMPRE visible desde el inicio */
.xhero__bar {
  position: absolute; z-index: 4; left: 50%; bottom: clamp(26px, 5vh, 54px);
  transform: translateX(-50%);
  width: min(780px, 92vw);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.xhero__facts {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  color: #fff; font-weight: 500; font-size: clamp(.9rem, 1.15vw, 1.05rem);
  background: rgba(13,31,48,.44); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 11px 22px; border-radius: 999px;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.xhero__facts b { font-weight: 700; }
.xhero__facts i { font-style: normal; opacity: .5; }
.xhero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 767px){ .xhero { height: 140vh; } }
@media (prefers-reduced-motion: reduce){ .xhero { height: 100vh !important; } }

/* =============================================================
   Tarjeta de ministerio SIN foto (ícono + gradiente de marca)
   Se usa donde no hay una imagen real que corresponda.
   ============================================================= */
.min-card--brand { color: #fff; }
.min-card--brand .min-card__body { position: relative; z-index: 2; }
.min-card--brand::after { display: none; }
.min-card--brand .min-card__bg {
  position: absolute; inset: 0; z-index: 0;
}
.min-card--brand.brand-blue   .min-card__bg { background: linear-gradient(150deg, #2f6fae 0%, #1c4a75 100%); }
.min-card--brand.brand-teal   .min-card__bg { background: linear-gradient(150deg, #38b6a2 0%, #227f71 100%); }
.min-card--brand.brand-violet .min-card__bg { background: linear-gradient(150deg, #9090c0 0%, #5f5a93 100%); }
.min-card--brand.brand-navy   .min-card__bg { background: linear-gradient(150deg, #1f3f5f 0%, #0d1f30 100%); }
.min-card--brand .min-card__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.18), transparent 46%);
}
.min-card--brand .min-card__glyph {
  position: absolute; right: 16px; top: 16px; z-index: 1;
  width: 64px; height: 64px; opacity: .9;
  color: rgba(255,255,255,.85);
}
.min-card--brand .min-card__glyph svg { width: 100%; height: 100%; }
.min-card--brand .min-card__tag { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.34); color: #fff; }

/* Azulejo de marca: logo real del departamento sobre fondo claro */
.logo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.logo-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.logo-card__logo {
  flex: 1;
  display: grid; place-items: center;
  padding: 26px;
  background: radial-gradient(120% 120% at 50% 28%, #ffffff 0%, #eef3f8 100%);
  border-bottom: 1px solid var(--line-2);
}
.logo-card__logo img { max-width: 80%; max-height: 150px; object-fit: contain; }
.logo-card__body { padding: 18px 22px 22px; }
.logo-card__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 8px; }
.logo-card__body h3 { font-size: 1.3rem; }
.logo-card__sub { color: var(--slate); font-size: .92rem; margin-top: 5px; }
.logo-card__sub b { color: var(--ink); font-weight: 600; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1000px){
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: grid; }
  .pastors, .contact-grid, .give-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .timeline::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px){
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .topbar__info .topbar__item--phone { display: none; }
  .media-badge--br { right: 10px; bottom: -14px; }
}
@media (max-width: 520px){
  .topbar__info { gap: 14px; }
  .topbar__item--addr { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .g-wide, .g-tall { grid-column: span 1; grid-row: span 1; }
  .hero__actions .btn { flex: 1 1 auto; }
}
