/* ==========================================================================
   Casa de Oración Miami — estilos
   Mobile-first. Colores y tipografías en :root.
   ========================================================================== */

/* Geometos: cuando tengas el archivo, colócalo en assets/fonts/geometos.woff2
   y descomenta este bloque. Se usará automáticamente en logo, hero y CDO.
@font-face {
  font-family: "Geometos";
  src: url("../assets/fonts/geometos.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  --negro: #1D1D1B; --negro-2: #4A4A4A; --negro-3: #777777;
  --azul-gris: #828DA3; --azul-gris-2: #AEBCD8; --azul-gris-3: #D6DCEA; --icono: #9BAECB;
  --amarillo: #FFCD34; --amarillo-2: #FFD55A; --amarillo-3: #FFE8A6;
  --gris-claro: #E9E8E6; --gris-claro-2: #F2F2F1; --gris-claro-3: #F9F9F9;
  --crema: #F3EDE0;
  --blanco: #FFFFFF;

  /* Texto secundario sobre claro con contraste AA (#828DA3 sobre blanco no llega a 4.5:1) */
  --azul-gris-texto: #5E6880;
  /* Franja de horarios: #828DA3 con texto blanco grande; para texto pequeño se oscurece ligeramente */
  --horarios-bg: #828DA3;

  --f-title: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-logo: "Geometos", "Montserrat", system-ui, sans-serif;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Segoe Script", cursive;

  --header-h: 68px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--negro);
  background: var(--blanco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--amarillo); color: var(--negro); padding: 10px 18px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.narrow { max-width: 860px; }
.center { text-align: center; }

/* ---------- Tipografía ---------- */
.label {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.section-label { color: var(--negro-2); margin-bottom: 18px; }
.section-label .idx { color: var(--azul-gris-texto); }
.section--dark .section-label { color: var(--azul-gris-3); }
.section--dark .section-label .idx { color: var(--azul-gris-2); }
.section-label--light, .section-label--light .idx { color: var(--blanco); }
.label--yellow { color: var(--amarillo); }
.label--light { color: var(--blanco); }

.title-lg, .title-md {
  font-family: var(--f-title);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .98;
}
.title-lg { font-size: clamp(46px, 9vw, 92px); }
.title-md { font-size: clamp(34px, 5.5vw, 56px); }

.body-text { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; color: var(--negro-2); }
.lead { max-width: 520px; margin: 18px auto 0; }

.rule { display: block; width: 40px; height: 2px; background: var(--amarillo); margin: 26px auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn--primary { background: var(--amarillo); color: var(--negro); }
.btn--ghost { background: transparent; color: var(--blanco); border-color: var(--blanco); }
.btn--outline-dark { background: transparent; color: var(--negro); border-color: var(--azul-gris); }
.btn--icon svg { width: 18px; height: 18px; }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(84px, 12vw, 150px) 0; overflow: hidden; }
.section--dark { background: var(--negro); color: var(--blanco); }
.section--blue { background: var(--horarios-bg); color: var(--blanco); }

.corner {
  position: absolute; bottom: 22px; z-index: 2;
  font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: #666664;
}
.corner--l { left: var(--gutter); }
.corner--r { right: var(--gutter); }
.section--dark .corner { color: var(--azul-gris-2); }
.corner--light { color: var(--blanco); }
/* Franja #828DA3: el blanco solo alcanza AA en texto grande; el texto pequeño va en negro */
.section--blue .corner, .section--blue .section-label, .section--blue .section-label .idx,
.schedule-time .label, .time-desc, .schedule-addr { color: var(--negro); }
.giving .corner { color: var(--blanco); }

.watermark {
  position: absolute; z-index: 1; pointer-events: none;
  width: min(80vw, 640px); height: min(80vw, 640px);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: var(--icono); opacity: .1;
}
.watermark--right { left: auto; right: -8%; transform: translateY(-50%); color: var(--blanco); opacity: .14; }

/* ---------- 1 · Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-claro);
  transition: box-shadow .35s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 28px rgba(29,29,27,.08); }
.header-inner {
  height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--negro); }
.brand-icon { width: 40px; height: 40px; color: var(--icono); flex: none; }
.brand-initials { font-family: var(--f-logo); font-weight: 400; font-size: 15px; letter-spacing: .35em; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--negro-2);
  position: relative; transition: color .25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--amarillo); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav a.is-active { color: var(--negro); }
.main-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--gris-claro); border-radius: 100px; background: var(--gris-claro-3); }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  min-width: 40px; min-height: 32px; padding: 0 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--negro-2);
  transition: background .25s, color .25s;
}
.lang-switch button[aria-pressed="true"] { background: var(--negro); color: var(--blanco); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: 50%;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--negro);
  transition: transform .35s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21.5px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--blanco); border-bottom: 1px solid var(--gris-claro);
    box-shadow: 0 20px 40px rgba(29,29,27,.08);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s var(--ease), visibility 0s .45s;
  }
  .main-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease), visibility 0s; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .main-nav li + li { border-top: 1px solid var(--gris-claro-2); }
  .main-nav a { padding: 18px 0; font-size: 13px; }
  .main-nav a::after { left: 0; right: auto; width: 28px; bottom: 12px; }
}

/* ---------- 2 · Hero ---------- */
.hero {
  position: relative; min-height: 620px; min-height: max(620px, 78svh); /* menos alto que la pantalla completa */
  display: flex; align-items: center; justify-content: center;
  color: var(--blanco); text-align: center; overflow: hidden;
  padding: calc(var(--header-h) + 32px) var(--gutter) 130px;
  background: radial-gradient(120% 80% at 50% 20%, #34363b 0%, var(--negro) 60%, #0f0f0e 100%);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media { background: #011823; } /* mismo azul noche de la foto */
/* La foto se coloca para que las manos queden justo detrás de "CASA DE ORACIÓN".
   --hero-img-top / --hero-img-h mueven y escalan la foto (en % del alto del hero). Bordes difuminados. */
.hero-media picture {
  position: absolute; left: 0; right: 0;
  top: var(--hero-img-top, -18%); height: var(--hero-img-h, 100%);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 72%, transparent 100%);
  transform: scale(1.06); transform-origin: 50% 70%;
  animation: heroZoom 14s var(--ease) forwards;
}
@media (min-width: 700px) { .hero { --hero-img-top: -26%; --hero-img-h: 106%; } }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  /* La foto ya es oscura: overlay suave arriba para el texto y más denso abajo para la franja */
  background: linear-gradient(180deg, rgba(1,24,35,.2) 0%, rgba(1,24,35,0) 50%, rgba(29,29,27,.45) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 980px; }
.hero-kicker { margin-bottom: 22px; }
.hero-title { font-weight: 400; margin: 0; }
.hero-name {
  display: block;
  font-family: var(--f-logo); font-weight: 400; text-transform: uppercase;
  font-size: clamp(36px, 7.6vw, 92px); line-height: 1.02; letter-spacing: .08em;
  margin-right: -.08em; /* compensa el letter-spacing final para centrar */
}
.hero-city {
  display: block; margin-top: 14px;
  font-family: var(--f-body); font-weight: 200; text-transform: uppercase;
  font-size: clamp(16px, 2.2vw, 24px); letter-spacing: .9em; margin-right: -.9em;
}
.hero-motto {
  margin: 28px auto 0; max-width: 520px;
  font-weight: 300; font-style: italic; font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.92);
}
.hero-ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Marquee (hero) */
.marquee {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  overflow: hidden;
  background: rgba(29,29,27,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 18px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-group {
  flex: none; white-space: nowrap;
  font-family: var(--f-body); font-weight: 200; text-transform: uppercase;
  font-size: clamp(20px, 3vw, 32px); letter-spacing: .35em; line-height: 1.2; color: var(--blanco);
}
.marquee-group i { font-style: normal; color: var(--amarillo); margin: 0 .5em 0 .15em; letter-spacing: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 3 · Visión y misión ---------- */
.vision { padding: clamp(64px, 8vw, 104px) 0; }
.vision .section-label { margin-bottom: 28px; }
.vision .rule { margin: 18px auto; }
.vm-block + .vm-block { margin-top: clamp(40px, 5vw, 64px); }
.vm-text {
  font-weight: 300; font-size: 17px; letter-spacing: .05em; line-height: 1.85;
  text-transform: uppercase; color: var(--azul-gris-2);
  max-width: 760px; margin: 0 auto;
}

/* ---------- 4 · Pastores ---------- */
.pastors { background: var(--gris-claro-3); }
.pastors-grid { display: grid; gap: 40px; align-items: center; }
.pastors-photo { position: relative; max-width: 520px; width: 100%; margin: 0 auto; aspect-ratio: 624 / 820; }
.pastors-circle {
  position: absolute; left: 50%; top: 46%; width: 82%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: var(--azul-gris-3); border-radius: 50%;
}
.pastors-mark {
  position: absolute; left: 50%; top: 46%; width: 104%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%);
  color: var(--azul-gris-2); opacity: .45;
}
.pastors-photo picture, .pastors-photo img { position: relative; width: 100%; height: 100%; }
.pastors-photo img {
  object-fit: contain; object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,.35) 66%, transparent 80%);
          mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,.35) 66%, transparent 80%);
}
.pastors-copy { text-align: center; }
.pastors-names { font-family: var(--f-hand); font-weight: 500; font-size: 44px; line-height: 1.1; color: var(--negro); margin-top: 22px; }
.pastors-surname { font-weight: 600; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--azul-gris-texto); margin: 4px 0 24px; }
.story { max-width: 560px; margin: 0 auto 36px; text-align: left; }
.story-title {
  font-family: var(--f-title); font-weight: 800; letter-spacing: -.02em; line-height: 1.12;
  font-size: clamp(21px, 2.2vw, 26px); color: var(--negro); margin-bottom: 18px;
}
.story .body-text { margin: 0 0 16px; }
.story-quote {
  font-family: var(--f-hand); font-weight: 500; font-size: clamp(28px, 3vw, 36px); line-height: 1.15;
  color: var(--negro); margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--amarillo);
}

@media (min-width: 900px) {
  .pastors-grid { grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); }
  .pastors-copy { text-align: left; }
  .story { margin-left: 0; }
  /* La foto acompaña la lectura mientras se baja por la historia */
  .pastors-grid { align-items: start; }
  .pastors-photo { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- 5 · Tarjetas ---------- */
.cards { display: grid; grid-template-columns: 1fr; }
.card { position: relative; min-height: 430px; overflow: hidden; color: var(--blanco); display: flex; isolation: isolate; }
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.card-overlay { position: absolute; inset: 0; z-index: -1; background: rgba(29,29,27,.55); }
.card--prayer .card-overlay { background: linear-gradient(180deg, rgba(29,29,27,.55), rgba(29,29,27,.72)); }
.card-body { width: 100%; padding: clamp(40px, 6vw, 72px) var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.card-body--bottom { justify-content: flex-end; }
.card .title-md { margin-bottom: 8px; }
.card-text { max-width: 380px; color: rgba(255,255,255,.88); margin-bottom: 10px; }

.form { width: 100%; max-width: 520px; display: grid; gap: 12px; }
.field-row { display: grid; gap: 12px; }
.form input, .form textarea {
  width: 100%; padding: 14px 20px; border-radius: 26px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4); color: var(--blanco);
  font-size: 16px; transition: border-color .25s, background .25s; resize: vertical;
}
.form textarea { border-radius: 22px; min-height: 96px; }
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.75); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--amarillo); background: rgba(255,255,255,.16); }
.form .btn { justify-self: start; margin-top: 4px; }
.form-error { font-size: 13px; color: var(--amarillo-3); }
.was-validated :invalid { border-color: var(--amarillo) !important; }

.form-thanks { max-width: 440px; animation: fadeUp .7s var(--ease) both; }
.form-thanks svg { width: 54px; height: 54px; color: var(--amarillo); margin-bottom: 16px; }
.thanks-title { font-family: var(--f-title); font-weight: 800; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 8px; }
.form-thanks[hidden] { display: none; }

@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
/* Tarjeta única de oración: texto a la izquierda y formulario a la derecha en escritorio */
.prayer-layout { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 28px; align-items: center; }
.prayer-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.prayer-intro .card-text { max-width: 440px; }
.prayer-action { width: 100%; }
@media (min-width: 900px) {
  .card { min-height: 560px; }
  .card-body.prayer-layout { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); padding-top: 96px; padding-bottom: 96px; }
  .prayer-action .form { max-width: none; }
}

/* ---------- 6 · Horarios ---------- */
.schedule { padding: clamp(72px, 9vw, 110px) 0; }
.schedule-grid { display: grid; gap: 40px; text-align: center; align-items: center; }
.schedule .section-label { margin-bottom: 12px; }
.schedule-time .label { color: var(--blanco); }
.time { font-family: var(--f-body); font-weight: 200; font-size: 56px; line-height: 1.1; letter-spacing: .02em; margin: 6px 0; }
.time-desc { font-size: 15px; font-weight: 500; }
.schedule-addr { margin-top: 14px; font-size: 13px; font-weight: 500; }

@media (min-width: 900px) {
  .schedule-grid { grid-template-columns: 1.1fr 1fr 1fr; text-align: left; }
  .schedule-time { text-align: center; border-left: 1px solid rgba(255,255,255,.35); border-right: 1px solid rgba(255,255,255,.35); padding: 10px 0; }
  .schedule-cta { text-align: right; }
}

/* ---------- 7 · Ministerios ---------- */
.ministries { background: var(--blanco); }
.ministry-grid {
  display: flex; flex-wrap: wrap;
  margin: clamp(44px, 6vw, 72px) auto clamp(40px, 5vw, 56px);
  max-width: 1080px;
  border-top: 1px solid var(--gris-claro); border-left: 1px solid var(--gris-claro);
}
.ministry-grid li {
  flex: 1 1 50%;
  min-height: 132px; padding: 24px 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-right: 1px solid var(--gris-claro); border-bottom: 1px solid var(--gris-claro);
  transition: background .35s var(--ease);
}
.ministry-grid .num { font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--azul-gris-texto); }
.ministry-grid .name { font-family: var(--f-title); font-weight: 800; font-size: clamp(19px, 2vw, 24px); letter-spacing: -.02em; line-height: 1.1; }
@media (min-width: 900px) {
  .ministry-grid li { flex: 1 1 25%; min-height: 168px; }
}

/* ---------- 8 · Ofrendas ---------- */
.giving { color: var(--blanco); background: var(--negro); }
.giving-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.giving-overlay { position: absolute; inset: 0; z-index: 0; background: rgba(29,29,27,.66); }
.giving .watermark { opacity: .12; }
.verse { margin: 32px auto 40px; max-width: 660px; }
.verse p { font-style: italic; font-weight: 300; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.6; }
.verse cite { display: block; margin-top: 18px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--amarillo); }

/* ---------- 9 · Síguenos ---------- */
.follow { background: var(--gris-claro-3); padding-bottom: clamp(70px, 9vw, 110px); }
.follow .title-lg { margin-bottom: 32px; }
.ig-strip {
  margin-top: clamp(48px, 7vw, 80px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ig-track { display: flex; gap: 12px; width: max-content; animation: marquee 45s linear infinite; }
.ig-strip:focus-within .ig-track { animation-play-state: paused; }
.ig-item { flex: none; width: clamp(180px, 22vw, 280px); aspect-ratio: 1; overflow: hidden; position: relative; display: block; }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.ig-item::after { content: ""; position: absolute; inset: 0; background: rgba(29,29,27,0); transition: background .4s; }

/* ---------- 10 · Boletín ---------- */
.newsletter { background: var(--gris-claro-2); padding: clamp(72px, 9vw, 120px) 0; }
.newsletter .title-md { margin-bottom: 14px; }
.news-form {
  margin: 32px auto 0; max-width: 520px;
  display: flex; flex-direction: column; gap: 10px;
}
.news-form input {
  width: 100%; min-height: 52px; padding: 0 24px; border-radius: 100px;
  border: 1px solid #CFCDCA; background: var(--blanco); font-size: 16px; color: var(--negro);
}
.news-form input::placeholder { color: var(--negro-3); }
.news-form input:focus { outline: 2px solid var(--amarillo); outline-offset: 2px; border-color: var(--negro); }
.news-form .form-error { color: var(--negro-2); }
.form-thanks--light { margin: 28px auto 0; }
@media (min-width: 560px) {
  .news-form { flex-direction: row; flex-wrap: wrap; padding: 6px; background: var(--blanco); border: 1px solid #CFCDCA; border-radius: 100px; }
  .news-form input { flex: 1; border: 0; min-height: 48px; }
  .news-form input:focus { outline-offset: -2px; }
  .news-form .form-error { flex-basis: 100%; padding: 0 20px 6px; text-align: left; }
}

/* ---------- 11 · Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: clamp(84px, 11vw, 140px) 0 32px; }
.site-footer .title-lg { max-width: 820px; margin-bottom: clamp(48px, 6vw, 72px); }
.site-footer .watermark { left: auto; right: -10%; top: 30%; transform: none; opacity: .08; }
.footer-grid { display: grid; gap: 44px; }
.footer-col .label { color: var(--azul-gris-2); margin: 0 0 12px; font-size: 11px; }
.footer-col .label:not(:first-child) { margin-top: 28px; }
.footer-col address { font-style: normal; }
.footer-col a { text-decoration: none; color: var(--blanco); transition: color .25s; }
.contact-list li + li { margin-top: 4px; }
.contact-list a { word-break: break-word; }
.footer-sunday { margin-top: 24px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--azul-gris-2); }
.footer-ig { display: inline-flex; align-items: center; gap: 10px; }
.footer-ig svg { width: 22px; height: 22px; }
.footer-logo { width: 96px; height: 96px; color: var(--icono); margin-top: 36px; }
.footer-map iframe {
  width: 100%; height: 300px; border: 0;
  filter: grayscale(1) invert(.9) contrast(.9);
}
.footer-bottom {
  margin-top: clamp(56px, 7vw, 88px); padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--azul-gris-2);
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr .8fr 1.4fr; align-items: start; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--blanco);
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* red de seguridad */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; transform: none; }
  .marquee-track { animation: none; }
  .marquee-group + .marquee-group { display: none; }
  .marquee-track { width: 100%; justify-content: center; }
  .marquee-group { white-space: normal; text-align: center; padding: 0 16px; font-size: clamp(14px, 3vw, 24px); }
  .ig-strip { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding: 0 var(--gutter); scrollbar-width: thin; }
  .ig-track { animation: none; }
  .ig-item { scroll-snap-align: start; }
  .ig-item[data-clone] { display: none; }
  .card-bg, .ig-item img, .btn { transition: none; }
}

/* ---------- Ventana emergente (Zelle) ---------- */
html.modal-open { overflow: hidden; }
.modal {
  padding: 0; border: 0; background: transparent; color: var(--negro);
  width: min(100% - 32px, 820px); max-width: none; max-height: calc(100% - 32px);
  overflow: visible;
}
.modal::backdrop { background: rgba(29,29,27,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .45s var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card {
  position: relative; overflow: auto; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  background: var(--blanco); padding: clamp(36px, 5vw, 56px) clamp(22px, 5vw, 56px) clamp(28px, 4vw, 40px);
  text-align: center;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gris-claro); background: var(--blanco); cursor: pointer; color: var(--negro);
  display: grid; place-items: center; transition: background .25s, border-color .25s;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-mark { width: 44px; height: 44px; color: var(--icono); margin: 0 auto 14px; }
.modal-kicker { color: var(--azul-gris-texto); }
.modal-title {
  font-family: var(--f-title); font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(28px, 4.4vw, 42px); margin: 10px auto 0; max-width: 560px;
}
.modal-grid { display: grid; gap: 28px; margin-top: clamp(26px, 4vw, 40px); align-items: center; text-align: left; }
.qr { margin: 0 auto; width: min(100%, 260px); text-align: center; }
.qr img { width: 100%; border: 1px solid var(--gris-claro); padding: 10px; background: var(--blanco); image-rendering: pixelated; }
.qr figcaption { margin-top: 10px; font-size: 12px; color: var(--negro-2); }
.account dl { margin: 0; display: grid; gap: 18px; }
.account dt { color: var(--azul-gris-texto); margin-bottom: 4px; }
.account dd { margin: 0; font-weight: 500; font-size: 16px; line-height: 1.45; word-break: break-word; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.copy-btn {
  border: 1.5px solid var(--azul-gris); background: transparent; color: var(--negro); cursor: pointer;
  min-height: 34px; padding: 0 16px; border-radius: 100px;
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  transition: background .25s, border-color .25s;
}
.copy-btn.is-done { background: var(--amarillo); border-color: var(--amarillo); }
.steps { margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--gris-claro); counter-reset: step; list-style: none; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding-left: 34px; font-size: 14px; line-height: 1.55; color: var(--negro-2); }
.steps li::before {
  content: "0" counter(step); position: absolute; left: 0; top: 1px;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--azul-gris-texto);
}
.modal-note { margin-top: 26px; font-size: 13px; color: var(--negro-2); }
@media (min-width: 700px) {
  .modal-grid { grid-template-columns: 260px 1fr; gap: 40px; }
}
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }


/* ==========================================================================
   MÓVIL NATIVO (skill mobile-native)
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; } /* sin destello gris al tocar */
a, button, [role="button"], summary { touch-action: manipulation; } /* sin retraso de 300ms */
button, .btn, .lang-switch, .menu-toggle, .copy-btn, .wa-float {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; /* mantener presionado no selecciona el texto */
}
.modal-card { overscroll-behavior: contain; } /* el scroll de la ventana no arrastra la página */
.wa-float { right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.header-inner { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.marquee { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
/* Feedback táctil donde antes solo había hover */
.ig-item:active img, .card:active .card-bg { transform: scale(1.03); }
.wa-float:active { transform: scale(.94); }
.lang-switch button:active, .menu-toggle:active, .copy-btn:active, .modal-close:active { transform: scale(.94); }
.lang-switch button, .menu-toggle, .copy-btn, .modal-close { transition: transform .1s ease-out, background .25s, color .25s, border-color .25s; }

/* Hover solo en dispositivos con mouse: en el celular no queda "pegado" tras tocar */
@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--negro); }
  .main-nav a:hover::after { transform: scaleX(1); }
  .ig-strip:hover .ig-track { animation-play-state: paused; }
  .btn:hover { transform: translateY(-2px); }
  .btn--primary:hover { background: var(--amarillo-2); }
  .btn--ghost:hover { background: var(--blanco); color: var(--negro); }
  .btn--outline-dark:hover { background: var(--negro); border-color: var(--negro); color: var(--blanco); }
  .card:hover .card-bg { transform: scale(1.05); }
  .ministry-grid li:hover { background: var(--crema); }
  .ig-item:hover img { transform: scale(1.05); }
  .ig-item:hover::after { background: rgba(29,29,27,.25); }
  .footer-col a:hover { color: var(--amarillo); }
  .wa-float:hover { transform: scale(1.07); box-shadow: 0 14px 34px rgba(0,0,0,.3); }
  .modal-close:hover { background: var(--gris-claro-2); border-color: var(--azul-gris-2); }
  .copy-btn:hover { background: var(--crema); }
  .btn:active { transform: scale(.97); } /* presionar gana al hover */
  .wa-float:active { transform: scale(.94); }
}

/* ==========================================================================
   MOTION al hacer scroll
   - Las propiedades `translate`, `rotate` y `scale` se usan por separado del
     `transform` para que el parallax (JS) y las entradas (CSS) no choquen.
   - JS solo escribe variables / clases; si JS falla, todo queda visible.
   ========================================================================== */

/* Barra de progreso de lectura bajo el header */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--amarillo); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

/* Títulos: cada palabra sube desde una máscara */
.reveal[data-split] { opacity: 1; transform: none; } /* red de seguridad */
[data-split] .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .14em .02em .1em; margin: -.14em -.02em -.1em;
}
[data-split] .w > span {
  display: inline-block; transform: translateY(105%);
  transition: transform 1s cubic-bezier(.19, 1, .22, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.is-visible[data-split] .w > span,
.is-visible [data-split] .w > span { transform: none; }

/* Línea amarilla que se dibuja */
.js .vm-block .rule { transform: scaleX(0); transition: transform 1s cubic-bezier(.19, 1, .22, 1) .35s; }
.js .vm-block.is-visible .rule { transform: scaleX(1); }

/* Fotos de fondo: entran con un leve zoom out */
.js .card .card-bg { scale: 1.18; transition: transform 1.2s var(--ease), scale 1.6s cubic-bezier(.19, 1, .22, 1); }
.js .card.is-visible .card-bg { scale: 1; }

/* Pastores: el círculo crece, la foto sube */
.js .pastors-circle { scale: .55; opacity: 0; transition: scale 1.4s cubic-bezier(.19, 1, .22, 1), opacity .8s; }
.js .pastors-photo.is-visible .pastors-circle { scale: 1; opacity: 1; }
.js .pastors-photo picture { translate: 0 60px; opacity: 0; transition: translate 1.3s cubic-bezier(.19, 1, .22, 1) .15s, opacity .9s .15s; }
.js .pastors-photo.is-visible picture { translate: 0 0; opacity: 1; }
.pastors-photo picture { display: block; }

/* Ministerios: las celdas aparecen en cascada */
.js .ministry-grid li { opacity: 0; translate: 0 26px; transition: opacity .7s var(--ease), translate .9s cubic-bezier(.19, 1, .22, 1), background .35s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .ministry-grid.is-visible li { opacity: 1; translate: 0 0; }

/* Horario: la hora se "cierra" al entrar */
.js .schedule-time .time { letter-spacing: .3em; opacity: .2; transition: letter-spacing 1.4s cubic-bezier(.19, 1, .22, 1) .2s, opacity 1s .2s; }
.js .schedule-time.is-visible .time { letter-spacing: .02em; opacity: 1; }

/* Franja de Instagram: entra deslizándose */
.js .ig-strip { opacity: 0; translate: 80px 0; transition: opacity 1s var(--ease), translate 1.4s cubic-bezier(.19, 1, .22, 1); }
.js .ig-strip.is-visible { opacity: 1; translate: 0 0; }

/* Elementos con parallax (JS escribe --py y --rot) */
.hero-media picture, .giving-bg, .pastors-mark, .pastors-circle { translate: 0 var(--py, 0px); }
.pastors-mark { rotate: var(--rot, 0deg); }
.watermark { rotate: var(--rot, 0deg); }
.giving-bg { inset: -12% 0 auto 0; height: 124%; }
.hero-content { will-change: opacity, transform; }
.hero-media picture { will-change: translate; }

@media (prefers-reduced-motion: reduce) {
  [data-split] .w > span { transform: none; transition: none; }
  .js .vm-block .rule, .js .card .card-bg, .js .pastors-circle, .js .pastors-photo picture,
  .js .ministry-grid li, .js .schedule-time .time, .js .ig-strip {
    transform: none; scale: 1; translate: none; opacity: 1; letter-spacing: .02em; transition: none;
  }
  .js .vm-block .rule { transform: scaleX(1); }
  .scroll-progress { display: none; }
}

/* `overflow: hidden` rompe el sticky de la foto de los pastores; `clip` recorta igual sin romperlo */
@supports (overflow: clip) { .section.pastors { overflow: clip; } }

/* Móvil: la parte difuminada de la foto no deja un hueco antes del texto */
@media (max-width: 899px) { .pastors-photo { margin-bottom: -18%; } }

/* ---------- Botón "Ver en vivo" ---------- */
.btn--live .live-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: currentColor; opacity: .55;
}
.btn--live.is-live {
  border-color: #FF3B45; background: rgba(255, 59, 69, .14); color: var(--blanco);
  animation: liveGlow 1.6s ease-in-out infinite;
}
.btn--live.is-live .live-dot {
  background: #FF3B45; opacity: 1;
  animation: liveBlink 1s steps(2, jump-none) infinite;
}
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes liveGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 69, .55); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 59, 69, 0); }
}
/* El aviso de "en vivo" es información, no decoración: se mantiene un parpadeo suave aun con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .btn--live.is-live { animation: none; }
  .btn--live.is-live .live-dot { animation: liveBlink 2s ease-in-out infinite; }
}
