/* =========================================================================
   Ministerio Jésed — sistema visual
   Mundo: Casa / portal · azul cobalto (grano) + fuego + cyan (paloma)
   Colores y logo tomados de la marca real (llama + paloma).
   ========================================================================= */

:root {
  /* Azul cobalto (fondo con grano) */
  --blue-900: #10204f;
  --blue-800: #1b3473;  /* base */
  --blue-700: #22408c;
  --blue-600: #2d4ea0;
  --blue-500: #3a5cb3;
  --blue-400: #5e7cc8;
  --blue-300: #93a9dc;  /* realce claro */

  /* Fuego (llama del logo) */
  --flame-700: #c23a16;
  --flame-600: #de4a1d;
  --flame-500: #ef5a2b;  /* acento primario */
  --flame-400: #f6833f;
  --flame-300: #f9a86a;

  /* Cyan (paloma del logo) */
  --cyan-600: #0f9fd4;
  --cyan-500: #1cb6e8;  /* acento frío */
  --cyan-400: #46c9f2;
  --cyan-300: #86ddf8;

  /* Blanco frío / papel */
  --cream:   #eef2fb;
  --cream-2: #e3e9f6;
  --ink:     #0e1f44;
  --ink-soft:#31406e;

  /* Texto sobre azul */
  --on-dark:       #eef2fb;
  --on-dark-dim:   rgba(238, 242, 251, 0.80);
  --on-dark-faint: rgba(238, 242, 251, 0.64);
  --hair-dark:     rgba(238, 242, 251, 0.16);

  /* Texto sobre blanco */
  --on-light-dim:  #44568a;
  --hair-light:    rgba(14, 31, 68, 0.14);

  --accent: var(--flame-500);

  /* Tipografía */
  --f-display: "Archivo", system-ui, sans-serif;
  --f-text: "Hanken Grotesk", system-ui, sans-serif;

  /* Medidas */
  --shell: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 16px;

  /* Sombras: elevación neutra, siempre offset + blur */
  --sh-1: 0 2px 8px rgba(8, 9, 12, 0.26);
  --sh-2: 0 14px 34px -14px rgba(8, 9, 12, 0.5);
  --sh-3: 0 26px 60px -30px rgba(8, 9, 12, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: var(--f-text);
  /* Grano vectorial (nítido en retina/iPhone) sobre degradado azul. Sin 'fixed' (iOS lo ve borroso). */
  background-color: var(--blue-800);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--blue-700), var(--blue-800) 42%, var(--blue-900));
  background-repeat: repeat, no-repeat;
  background-size: 140px 140px, cover;
  background-attachment: scroll;
  color: var(--on-dark);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Superficies del navegador ---------- */
::selection { background: var(--flame-500); color: #1a0d04; }
:focus-visible {
  outline: 3px solid var(--flame-400);
  outline-offset: 3px;
  border-radius: 4px;
}
html { scrollbar-color: var(--flame-500) var(--blue-900); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--blue-900); }
::-webkit-scrollbar-thumb {
  background: var(--flame-600);
  border: 3px solid var(--blue-900);
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover { background: var(--flame-500); }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--flame-500); color: #1a0d04; font-weight: 700;
  padding: 0.7rem 1.1rem; border-radius: 10px; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { display: inline-grid; place-items: center; }
.brand__logo { height: clamp(46px, 7vw, 58px); width: auto; display: block; }
.flame-outer { fill: var(--flame-500); }
.flame-inner { fill: var(--cream); }
.brand__word {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}

/* ---------- Botones ---------- */
.btn {
  --bg: var(--flame-500);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn .ico { stroke: currentColor; stroke-width: 2; fill: none; }
.btn--solid { background: var(--flame-500); color: #1a0d04; box-shadow: var(--sh-1); }
.btn--solid:hover { background: var(--flame-400); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: var(--hair-dark); }
.btn--ghost:hover { border-color: var(--on-dark); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.0625rem; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* On light sections */
.on-light .btn--ghost, .section-head--light + * .btn--ghost { color: var(--ink); border-color: var(--hair-light); }

/* =========================================================================
   NAV
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue-900);           /* opaco siempre (igual en móvil y escritorio) */
  transition: box-shadow 0.3s var(--ease);
}
.site-header[data-elevated="true"] {
  box-shadow: 0 1px 0 var(--hair-dark), var(--sh-1);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}
.nav__links { display: flex; gap: 1.6rem; margin-left: 1rem; }
.nav__links a {
  font-weight: 500; font-size: 0.975rem; color: var(--on-dark-dim);
  position: relative; padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--cyan-400); transition: width 0.28s var(--ease);
}
.nav__links a:hover { color: var(--on-dark); }
.nav__links a:hover::after { width: 100%; }
.nav__end { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.nav__place {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--on-dark-faint); white-space: nowrap;
}
.nav__toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--on-dark); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-movil[hidden] { display: none; }
.menu-movil {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 0.5rem var(--gutter) 1.6rem;
  background: rgba(16, 32, 79, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hair-dark);
}
.menu-movil a { padding: 0.85rem 0.2rem; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--on-dark); }
.menu-movil a.btn { margin-top: 0.7rem; color: #1a0d04; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: min(92svh, 760px);
  display: flex; align-items: center;
  padding-top: 2rem; padding-bottom: 4rem;
  overflow: hidden;
  background: transparent;
}
.hero__arch { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.arch {
  position: absolute; left: 50%; bottom: -4%;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.arch--back {
  width: min(94vw, 1080px); height: min(66vh, 680px);
  background: var(--flame-700);
  opacity: 0.16;
  bottom: -5%;
}
.arch--front {
  width: min(80vw, 900px); height: min(60vh, 600px);
  background: linear-gradient(180deg, var(--flame-600), var(--flame-700));
  box-shadow: 0 24px 60px -34px rgba(8, 9, 12, 0.45);
}
.hero__rays { display: none; }

.hero__inner { position: relative; z-index: 2; text-align: center; width: 100%; }
.hero__word {
  font-size: clamp(3.6rem, 15vw, 9.5rem);
  font-weight: 900; letter-spacing: -0.05em; line-height: 0.84;
  color: var(--cream);
  text-shadow: 0 6px 22px rgba(7, 8, 10, 0.4);
}
.hero__word-sm {
  display: block;
  font-size: clamp(1.4rem, 5vw, 3rem);
  font-weight: 800; letter-spacing: 0.02em; line-height: 1;
  color: var(--cyan-300);
  margin-bottom: 0.1em; text-shadow: none;
}
.hero__slogan {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.4rem, 4.2vw, 2.6rem);
  letter-spacing: -0.03em; line-height: 1.04;
  margin-top: 1.6rem; color: var(--on-dark);
}
.hero__slogan em { font-style: normal; color: var(--flame-300); }
.hero__lead {
  max-width: 34ch; margin: 1.2rem auto 0;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  color: var(--on-dark-dim);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.2rem; }
.hero__cta .btn--solid { box-shadow: 0 0 0 2px rgba(238, 242, 251, 0.28), var(--sh-1); }
.hero__cta .btn--solid:hover { box-shadow: 0 0 0 2px rgba(238, 242, 251, 0.45), var(--sh-2); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 42px; border: 2px solid var(--on-dark-faint);
  border-radius: 14px; display: grid; place-items: start center; padding-top: 7px;
}
.hero__scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--cyan-400); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* =========================================================================
   SIGNIFICADO
   ========================================================================= */
.meaning { background: transparent; padding-block: clamp(4rem, 9vw, 8rem); }
.meaning__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.meaning__word {
  display: grid; justify-items: center; gap: 0.5rem;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  border-radius: 50% 50% 8px 8px / 32% 32% 8px 8px;
  background: linear-gradient(180deg, var(--blue-800), var(--blue-900));
  border: 1px solid var(--hair-dark);
  box-shadow: var(--sh-2);
}
.meaning__hebrew {
  font-size: clamp(4.5rem, 14vw, 9rem); line-height: 1;
  color: var(--flame-400);
  font-family: "Frank Ruhl Libre", "Times New Roman", serif; font-weight: 700;
  direction: rtl;
}
.meaning__translit {
  font-family: var(--f-display); font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; font-size: 0.95rem; color: var(--on-dark-faint);
  padding-left: 0.3em;
}
.meaning__body h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1.4rem; }
.meaning__body p { color: var(--on-dark-dim); max-width: 60ch; margin-top: 1rem; }
.meaning__body strong { color: var(--on-dark); font-weight: 700; }
.meaning__sign {
  margin-top: 2rem !important; padding-top: 1.4rem; border-top: 1px solid var(--hair-dark);
  font-size: 0.9rem; letter-spacing: 0.02em; color: var(--on-dark-faint);
}

/* =========================================================================
   HORARIOS
   ========================================================================= */
.hours {
  background: transparent;
  color: var(--on-dark);
  padding-block: clamp(4rem, 9vw, 8rem);
}
.section-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.section-head p { margin-top: 1rem; font-size: 1.15rem; }
.hours .section-head p { color: var(--on-dark-dim); }

.hours__list { list-style: none; padding: 0; display: grid; }
.hour {
  display: grid;
  grid-template-columns: 1fr auto; grid-template-areas: "day time" "name time" "note note";
  gap: 0.15rem 1rem;
  padding: clamp(1.3rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--hair-dark);
  transition: padding-left 0.25s var(--ease);
}
.hour:last-child { border-bottom: 1px solid var(--hair-dark); }
.hour:hover { padding-left: 0.6rem; }
.hour__day { grid-area: day; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--on-dark); }
.hour__time { grid-area: time; align-self: center; font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.04em; color: var(--flame-400); }
.hour__name { grid-area: name; font-weight: 700; font-size: 1.05rem; color: var(--on-dark); }
.hour__note { grid-area: note; color: var(--on-dark-dim); font-size: 0.98rem; margin-top: 0.3rem; }
.hours__foot { margin-top: 1.8rem; font-weight: 500; color: var(--on-dark-dim); }
.hours__foot a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; color: var(--flame-400); }

/* =========================================================================
   MINISTERIOS
   ========================================================================= */
.min { background: var(--cream); color: var(--ink); padding-block: clamp(4rem, 9vw, 8rem); }
.section-head--light h2 { color: var(--ink); }
.section-head--light p { color: var(--on-light-dim); }

.min__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.mcard {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--sh-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.mcard::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 130px; height: 130px; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: currentColor; opacity: 0.08; transform: rotate(180deg);
}
.mcard:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.mcard__ico { color: inherit; margin-bottom: auto; }
.mcard__ico svg { stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mcard h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6rem; }
.mcard p { margin-top: 0.7rem; font-size: 1rem; }
.mcard__link {
  margin-top: 1.4rem; font-family: var(--f-display); font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.mcard__link span { transition: transform 0.25s var(--ease); }
.mcard:hover .mcard__link span { transform: translateX(5px); }

/* Feature (Discipulado): grande, teal, ocupa 2 filas y arranca a la izquierda */
.mcard--feature {
  grid-column: span 1; grid-row: span 2;
  background: var(--blue-800); color: var(--on-dark);
}
.mcard--feature h3 { font-size: clamp(2rem, 4vw, 3rem); }
.mcard--feature p { color: var(--on-dark-dim); font-size: 1.08rem; max-width: 34ch; }
.mcard--feature .mcard__ico { color: var(--flame-400); }
.mcard--feature .mcard__link { color: var(--flame-300); }

/* Mensajes: naranja, ancho (2 cols) */
.mcard--a { background: var(--flame-500); color: #1b0f06; }
.mcard--a .mcard__ico { color: #1b0f06; }
.mcard--a p { color: #231304; }
.mcard--a .mcard__link { color: #1b0f06; }

.mcard--b { color: var(--blue-700); }
.mcard--b h3, .mcard--c h3 { color: var(--ink); }
.mcard--b p, .mcard--c p { color: var(--on-light-dim); }
.mcard--b .mcard__link, .mcard--c .mcard__link { color: var(--flame-700); }
.mcard--c { color: var(--flame-600); }

/* =========================================================================
   COMUNIDAD / INSTAGRAM
   ========================================================================= */
.community { background: transparent; padding-block: clamp(4rem, 9vw, 8rem); }
.community__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.community__intro h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.community__intro p { color: var(--on-dark-dim); margin-top: 1.2rem; max-width: 42ch; }
.community__intro .btn { margin-top: 1.8rem; }
.community__meta { font-size: 0.9rem; color: var(--on-dark-faint); margin-top: 1rem !important; }

.ig-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.ig-tile {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 0.8rem;
  box-shadow: var(--sh-1);
  transition: transform 0.3s var(--ease);
}
.ig-tile::before {
  content: ""; position: absolute; left: 50%; bottom: -30%; transform: translateX(-50%);
  width: 150%; height: 150%; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: rgba(255, 255, 255, 0.1);
}
.ig-tile::after {
  content: ""; position: absolute; right: 12px; top: 12px; width: 18px; height: 22px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-mask: url("assets/flame-glyph.svg") center/contain no-repeat;
          mask: url("assets/flame-glyph.svg") center/contain no-repeat;
}
.ig-tile:hover { transform: scale(1.02); }
.ig-tile__tag {
  position: relative; z-index: 1; font-family: var(--f-display); font-weight: 700;
  font-size: 0.9rem; color: #fff; letter-spacing: -0.01em;
  background: rgba(8, 26, 30, 0.82); padding: 0.3rem 0.6rem; border-radius: 8px;
}
.ig-tile--t1 { background: linear-gradient(145deg, var(--blue-500), var(--blue-700)); }
.ig-tile--t2 { background: linear-gradient(145deg, var(--flame-500), var(--flame-600)); }
.ig-tile--t3 { background: linear-gradient(145deg, var(--blue-400), var(--blue-600)); }
.ig-tile--t4 { background: linear-gradient(145deg, var(--flame-600), var(--flame-700)); }
.ig-tile--t5 { background: linear-gradient(145deg, var(--blue-600), var(--blue-800)); }
.ig-tile--t6 { background: linear-gradient(145deg, var(--flame-400), var(--flame-500)); }

/* =========================================================================
   VISÍTANOS
   ========================================================================= */
.visit { background: var(--cream); color: var(--ink); padding-block: clamp(4rem, 9vw, 8rem); }
.visit__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.visit__info h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.visit__info > p { color: var(--on-light-dim); margin-top: 1.1rem; font-size: 1.15rem; max-width: 40ch; }

.visit__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.2rem; }
.visit__facts dt { font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--flame-700); }
.visit__facts dd { margin-top: 0.4rem; font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.visit__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.visit__cta .btn--ghost { color: var(--ink); border-color: var(--hair-light); }
.visit__cta .btn--ghost:hover { border-color: var(--ink); }
.visit__mail { margin-top: 1.4rem; color: var(--on-light-dim); }
.visit__mail a { color: var(--flame-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.visit__card {
  background: var(--blue-800); color: var(--on-dark);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius);
  box-shadow: var(--sh-2);
  position: relative; overflow: hidden;
}
.visit__card::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--flame-500); opacity: 0.16; transform: rotate(200deg);
}
.visit__card h3 { font-size: 1.5rem; color: var(--on-dark); }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.9rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--on-dark-dim); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.15rem; width: 20px; height: 20px;
  border-radius: 50%; background: var(--flame-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/68% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/68% no-repeat;
  background-color: var(--flame-400);
}
.visit__verse {
  margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--hair-dark);
  font-style: italic; color: var(--on-dark-dim); font-size: 1.05rem;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: rgba(10, 20, 54, 0.55); color: var(--on-dark); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--hair-dark); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.brand--footer .brand__word { font-size: 1.7rem; }
.footer__brand > p { color: var(--on-dark-dim); margin-top: 1rem; max-width: 30ch; }
.footer__org { font-size: 0.9rem; color: var(--on-dark-faint); margin-top: 1rem !important; }
.footer__nav h4, .footer__social h4 { font-family: var(--f-display); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 1.1rem; }
.footer__nav a, .footer__social a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--on-dark-dim); padding: 0.35rem 0; transition: color 0.2s var(--ease); }
.footer__nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer__social { display: flex; flex-direction: column; align-items: flex-start; }
.footer__nav a:hover, .footer__social a:hover { color: var(--flame-300); }
.footer__social .ico { stroke: currentColor; stroke-width: 2; fill: none; }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding-block: 1.6rem; border-top: 1px solid var(--hair-dark);
  font-size: 0.85rem; color: var(--on-dark-faint);
}

/* =========================================================================
   REVELADO (scroll)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hours .hour.reveal:nth-child(2) { transition-delay: 0.08s; }
.hours .hour.reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  .btn:hover, .mcard:hover, .ig-tile:hover { transform: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .nav__links, .nav__end { display: none; }
  .nav__toggle { display: flex; }
  .meaning__grid, .community__inner, .visit__grid { grid-template-columns: 1fr; }
  .meaning__word { max-width: 420px; margin-inline: auto; }
  .min__grid { grid-template-columns: repeat(2, 1fr); }
  .mcard--feature { grid-column: span 2; grid-row: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --radius: 14px; }
  .min__grid { grid-template-columns: 1fr; }
  .mcard--feature, .mcard--a { grid-column: span 1; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .visit__facts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hour { grid-template-columns: 1fr; grid-template-areas: "day" "time" "name" "note"; }
  .hour__time { justify-self: start; }
  .footer__base { flex-direction: column; }
}

/* =========================================================================
   NOSOTROS (Misión y Visión)
   ========================================================================= */
.about { background: transparent; padding-block: clamp(3.5rem, 8vw, 7rem); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.6rem); }
.about__card {
  position: relative; padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--radius); border: 1px solid var(--hair-dark);
  background: rgba(46, 78, 160, 0.22);
  box-shadow: var(--sh-1);
}
.about__card--alt { background: rgba(239, 90, 43, 0.14); }
.about__tag {
  display: inline-block; font-family: var(--f-display); font-weight: 800;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan-300); margin-bottom: 0.9rem;
}
.about__card--alt .about__tag { color: var(--flame-300); }
.about__card p { color: var(--on-dark); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); line-height: 1.6; }

/* =========================================================================
   EVENTOS
   ========================================================================= */
.events { background: transparent; padding-block: clamp(3.5rem, 8vw, 7rem); }
.events__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.event-card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--sh-2); display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.event-card__img { aspect-ratio: 4 / 3; background: var(--blue-700); overflow: hidden; }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; }
.event-card__body { padding: clamp(1.2rem, 2.5vw, 1.6rem); display: flex; flex-direction: column; gap: 0.4rem; }
.event-card__date { font-family: var(--f-display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--flame-600); }
.event-card__body h3 { font-size: 1.3rem; color: var(--ink); }
.event-card__place { color: var(--on-light-dim); font-weight: 600; font-size: 0.92rem; }
.event-card__body p { color: var(--on-light-dim); font-size: 0.98rem; }

/* =========================================================================
   COMUNIDAD — redes extra + mosaicos con foto
   ========================================================================= */
.community__social { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.community__social-ico {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--hair-dark); color: var(--on-dark-dim);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.community__social-ico .ico { stroke: currentColor; stroke-width: 2; fill: none; }
.community__social-ico:hover { color: var(--cyan-300); border-color: var(--cyan-500); transform: translateY(-2px); }
.ig-tile--photo { background-size: cover; background-position: center; }

/* =========================================================================
   Íconos sociales rellenos (marca)
   ========================================================================= */
.sico { fill: currentColor; stroke: none; display: inline-block; vertical-align: middle; }
.footer__social a .sico, .community__social-ico .sico { fill: currentColor; }

/* =========================================================================
   PRÉDICAS (YouTube)
   ========================================================================= */
.sermons { background: transparent; padding-block: clamp(3.5rem, 8vw, 7rem); }
.sermons__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.sermon-card { display: block; background: var(--cream); color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--sh-2); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.sermon-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.sermon-card__thumb { position: relative; aspect-ratio: 16 / 9; background: var(--blue-800); overflow: hidden; }
.sermon-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sermon-card__play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(239, 90, 43, 0.95); box-shadow: var(--sh-2); }
.sermon-card__play::before { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.sermon-card:hover .sermon-card__play { background: var(--flame-500); }
.sermon-card__body { padding: clamp(1rem, 2vw, 1.3rem); }
.sermon-card__body h3 { font-size: 1.15rem; color: var(--ink); }

/* botón que actúa como enlace de tarjeta (J-Kids / Evangelismo) */
button.mcard__link {
  background: none; border: 0; cursor: pointer; font: inherit; padding: 0;
  appearance: none; -webkit-appearance: none; text-align: left; box-shadow: none;
}

.hours__cta { margin-top: 1.4rem; }

/* =========================================================================
   MODAL DE FORMULARIOS
   ========================================================================= */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 12, 34, 0.72); backdrop-filter: blur(4px); }
.modal__card {
  position: relative; z-index: 1; width: min(460px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--cream); color: var(--ink); border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--sh-3);
  animation: modalin 0.3s var(--ease);
}
@keyframes modalin { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__x { position: absolute; right: 0.9rem; top: 0.9rem; width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--on-light-dim); cursor: pointer; border-radius: 10px; }
.modal__x:hover { background: rgba(14, 31, 68, 0.08); color: var(--ink); }
.modal__card h3 { font-size: 1.5rem; padding-right: 2rem; }
.modal__sub { color: var(--on-light-dim); margin-top: 0.4rem; margin-bottom: 1.2rem; }
.fm-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.9rem; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.fm-field .req { color: var(--flame-600); }
.fm-field input, .fm-field textarea {
  border: 1.5px solid var(--hair-light); border-radius: 12px; padding: 0.75rem 0.9rem;
  font: inherit; color: var(--ink); background: #fff; resize: vertical;
}
.fm-field input:focus, .fm-field textarea:focus { outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 3px rgba(28, 182, 232, 0.15); }
#fm-form .btn { margin-top: 0.5rem; }
.modal__ok { text-align: center; font-size: 1.15rem; font-weight: 600; color: var(--ink); padding: 1.5rem 0.5rem; }

/* =========================================================================
   EFECTO REELS: cada sección a pantalla completa + auto-snap a la siguiente
   (escritorio y móvil). dvh = viewport real de iOS.
   ========================================================================= */
html { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
main > section[hidden] { display: none !important; }

.hero,
main > section,
.site-footer {
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;        /* contenido arriba (nunca corta el título) */
}
.hero { justify-content: center; }
/* despeje bajo el header opaco (~66px) — [id] gana a la clase de cada sección */
main > section[id] { padding-top: calc(66px + 1.6rem); }
/* Misión/Visión en 1 columna en móvil (texto legible, no apretado) */
@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* el footer no ocupa pantalla completa; ancla al FINAL para poder quedarse en él */
.site-footer {
  min-height: 0;
  padding-top: clamp(3rem, 6vw, 5rem);
  justify-content: flex-start;
  scroll-snap-align: end;
  scroll-snap-stop: normal;
}

/* =========================================================================
   ALTERNANCIA DE FONDOS  (azul ↔ blanco)
   hero(azul)·significado(BLANCO)·nosotros(azul)·horarios(BLANCO)·ministerios(AZUL)
   ·prédicas(BLANCO)·eventos(azul)·visítanos(BLANCO)·footer(azul)
   ========================================================================= */

/* --- Significado → BLANCO --- */
.meaning { background: var(--cream); }
.meaning__body h2 { color: var(--ink); }
.meaning__body p { color: var(--on-light-dim); }
.meaning__body strong { color: var(--ink); }
.meaning__sign { color: var(--on-light-dim); border-top-color: var(--hair-light); }

/* --- Horarios → BLANCO --- */
.hours { background: var(--cream); color: var(--ink); }
.hours .section-head p { color: var(--on-light-dim); }
.hour { border-top-color: var(--hair-light); }
.hour:last-child { border-bottom-color: var(--hair-light); }
.hour__day, .hour__name { color: var(--ink); }
.hour__note { color: var(--on-light-dim); }
.hour__time { color: var(--flame-600); }
.hours__foot { color: var(--on-light-dim); }
.hours__foot a { color: var(--flame-700); }

/* --- Ministerios → AZUL --- */
.min { background: transparent; color: var(--on-dark); }
.min .section-head h2 { color: var(--on-dark); }
.min .section-head p { color: var(--on-dark-dim); }
.mcard--feature { background: var(--blue-700); border: 1px solid var(--hair-dark); }

/* --- Prédicas → BLANCO --- */
.sermons { background: var(--cream); color: var(--ink); }
.sermons .section-head h2 { color: var(--ink); }
.sermons .section-head p { color: var(--on-light-dim); }
.sermon-card { background: #fff; }

/* --- Contacto → BLANCO (base cream + texto ink, sin override) --- */

/* =========================================================================
   AJUSTES 2026-10-13
   ========================================================================= */

/* Centrar verticalmente "Qué es Jésed" y "Contacto" en ESCRITORIO
   (en móvil quedan arriba, como pidió Eduardo). */
@media (min-width: 761px) {
  .meaning, .visit, .about { justify-content: center; }
}

/* ---- Ministerios: tarjetas con foto de fondo (dinámicas) ---- */
.min__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  grid-auto-rows: 1fr;
}
.mcard--dyn {
  position: relative;
  min-height: clamp(300px, 42vh, 380px);
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  color: #fff;
  justify-content: flex-end;
  align-items: stretch;
  box-shadow: var(--sh-2);
}
.mcard--dyn::before { display: none; }           /* quita el arco decorativo heredado */
.mcard--dyn.mcard--v0 { background-image: linear-gradient(150deg, var(--blue-600), var(--blue-900)); }
.mcard--dyn.mcard--v1 { background-image: linear-gradient(150deg, var(--flame-500), var(--flame-700)); }
.mcard__shade {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,15,40,.10) 0%, rgba(8,15,40,.50) 52%, rgba(6,12,32,.88) 100%);
}
.mcard--dyn .mcard__body {
  position: relative; z-index: 1; margin-top: auto;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.mcard--dyn h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.mcard--dyn p { margin-top: 0.6rem; font-size: 1rem; color: rgba(255,255,255,.93); text-shadow: 0 1px 8px rgba(0,0,0,.5); max-width: 42ch; }
.mcard--dyn .mcard__link { margin-top: 1.2rem; color: #fff; }
.mcard--dyn .mcard__link span { transition: transform 0.25s var(--ease); }
.mcard--dyn:hover .mcard__link span { transform: translateX(5px); }

/* ---- Prédicas: estado vacío ---- */
.sermons__empty {
  grid-column: 1 / -1; text-align: center;
  color: var(--on-light-dim); font-size: 1.1rem;
  padding: 2.5rem 1rem; border: 1.5px dashed var(--hair-light); border-radius: var(--radius);
}
/* Prédicas: "Ver más" + enlace al canal (evita el listado infinito) */
.pred-ctrls { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-top: 2rem; }
.sermons .pred-more { color: var(--ink); border-color: var(--hair-light); }
.sermons .pred-more:hover { color: var(--ink); border-color: var(--ink); }
.pred-canal { font-family: var(--f-display); font-weight: 700; color: var(--flame-700); display: inline-flex; align-items: center; gap: 0.35rem; }
.pred-canal span { transition: transform 0.25s var(--ease); }
.pred-canal:hover span { transform: translateX(4px); }

/* ---- Modal: mensaje de error ---- */
.fm-err {
  color: var(--flame-700); font-weight: 600; font-size: 0.92rem;
  background: rgba(239,90,43,.1); border: 1px solid rgba(239,90,43,.3);
  border-radius: 10px; padding: 0.6rem 0.8rem; margin-bottom: 0.6rem;
}
.fm-err[hidden] { display: none; }

/* ---- Footer: enlace de acceso admin ---- */
.footer__base-end { display: inline-flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.footer__admin {
  color: var(--on-dark-faint); font-weight: 600; font-size: 0.82rem;
  border: 1px solid var(--hair-dark); border-radius: 999px; padding: 0.25rem 0.8rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__admin:hover { color: var(--flame-300); border-color: var(--flame-500); }
@media (max-width: 560px) {
  .footer__base-end { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

/* =========================================================================
   AJUSTES 2026-10-13 (b): bento ministerios + movimiento + modales
   ========================================================================= */

/* Bento: Discipulado grande (1ª tarjeta), las otras más pequeñas.
   La grilla llena el alto disponible para que TODO entre en la pantalla. */
@media (min-width: 761px) {
  #ministerios { padding-bottom: clamp(1.5rem, 3vh, 2.5rem); }
  .min .shell { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: var(--shell); }
  .min .section-head { margin-bottom: clamp(1rem, 2.5vh, 2rem); }
  #ministerios-grid {
    flex: 1; min-height: 0;
    grid-template-columns: 1.55fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  #ministerios-grid .mcard--dyn { min-height: 0; }
  #ministerios-grid .mcard--dyn:first-child { grid-row: 1 / span 2; }
  #ministerios-grid .mcard--dyn:first-child h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
  #ministerios-grid .mcard--dyn:first-child p { font-size: 1.05rem; max-width: 36ch; }
  #ministerios-grid .mcard--dyn .mcard__body { padding: clamp(1.1rem, 2.2vw, 1.8rem); }
}
/* Pantallas bajas: reduce el texto para que no se corte */
@media (min-width: 761px) and (max-height: 820px) {
  #ministerios-grid .mcard--dyn p { font-size: 0.95rem; }
  #ministerios-grid .mcard--dyn:first-child h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
}

/* Movimiento: flotación sutil + zoom al pasar el cursor */
@media (prefers-reduced-motion: no-preference) {
  .mcard--dyn { animation: mcardFloat 7s var(--ease) infinite; }
  .mcard--dyn:nth-child(2) { animation-delay: -2.3s; }
  .mcard--dyn:nth-child(3) { animation-delay: -4.6s; }
  @keyframes mcardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
}
.mcard--dyn { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.mcard--dyn:hover { animation: none; transform: translateY(-10px) scale(1.02); box-shadow: var(--sh-3); z-index: 2; }

/* Evento: tarjeta clicable */
.event-card--click { cursor: pointer; }
.event-card__more { margin-top: 0.7rem; font-family: var(--f-display); font-weight: 700; color: var(--flame-600); display: inline-flex; gap: 0.3rem; }
.event-card--click:hover .event-card__more span { transform: translateX(4px); display: inline-block; transition: transform 0.25s var(--ease); }

/* Mensaje de éxito del formulario */
.modal__ok { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; padding: 1.8rem 0.5rem; }
.modal__ok[hidden] { display: none; }
.modal__ok-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--flame-500); color: #fff; display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; margin-bottom: 0.5rem; }
.modal__ok strong { font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); }
.modal__ok span { color: var(--on-light-dim); }

/* ---- EN VIVO: botón flotante ---- */
.live-fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 150; border: 0; cursor: pointer;
  background: #e11d48; color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 0.9rem;
  letter-spacing: 0.03em; padding: 0.7rem 1.15rem; border-radius: 999px; box-shadow: var(--sh-2);
  display: inline-flex; align-items: center; gap: 0.5rem; animation: livePulse 1.9s infinite;
}
.live-fab[hidden] { display: none; }
.live-fab__dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5), var(--sh-2); }
  70% { box-shadow: 0 0 0 13px rgba(225, 29, 72, 0), var(--sh-2); }
}
@media (prefers-reduced-motion: reduce) { .live-fab { animation: none; } }

/* ---- EN VIVO: modal ---- */
.live-modal__card { width: min(1040px, 94vw); }
.live-modal__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.live-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: #e11d48; color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 999px; letter-spacing: 0.06em; }
.live-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: liveblink 1.2s infinite; }
@keyframes liveblink { 50% { opacity: 0.25; } }
.live-modal__head h3 { font-size: 1.3rem; color: var(--ink); }
.live-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.live-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-note { color: var(--on-light-dim); margin-bottom: 1rem; text-align: center; }
.ig-embed { display: flex; justify-content: center; }
.ig-embed iframe { width: 100%; max-width: 400px; height: min(72vh, 680px); border: 0; background: #fff; border-radius: 12px; }

/* ---- Modal detalle de evento ---- */
.event-modal__card { width: fit-content; max-width: min(92vw, 560px); min-width: min(300px, 92vw); padding: 0; overflow: hidden; }
.event-modal__card .modal__x { background: rgba(255, 255, 255, 0.85); }
.event-modal__img { line-height: 0; }
.event-modal__img img { display: block; width: auto; height: auto; max-height: 72vh; max-width: min(92vw, 560px); }
.event-modal__info { padding: clamp(1.4rem, 3vw, 2rem); }
.event-modal__date { font-family: var(--f-display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--flame-600); }
.event-modal__card h3 { font-size: 1.6rem; color: var(--ink); margin-top: 0.3rem; padding-right: 2rem; }
.event-modal__place { color: var(--on-light-dim); font-weight: 600; margin-top: 0.3rem; }
.event-modal__desc { color: var(--on-light-dim); margin-top: 0.8rem; white-space: pre-line; }
.event-modal__date[hidden], .event-modal__place[hidden], .event-modal__img[hidden] { display: none; }

/* ---- Loader (logo de Jésed mientras carga) ---- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--blue-900);
  transition: opacity 0.6s var(--ease);
}
.loader.is-done { opacity: 0; pointer-events: none; }
.loader__logo { width: 92px; height: auto; animation: loaderPulse 1.25s ease-in-out infinite; }
@keyframes loaderPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1.06); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .loader__logo { animation: none; } }

/* =========================================================================
   AJUSTES 2026-10-16: scroll "efecto reels" afinado para MÓVIL
   Escritorio queda IGUAL (ahí cada sección cabe en una pantalla y el snap
   mandatory se siente perfecto). En móvil la pantalla es más baja y varias
   secciones no caben -> el snap obligatorio atrapaba el scroll. Aquí:
     1) snap SUAVE (proximity, sin stop:always) -> nunca devuelve ni bloquea
     2) alto en svh -> no salta cuando aparece/oculta la barra del navegador
     3) Ministerios como CARRUSEL horizontal -> la sección vuelve a una pantalla
   ========================================================================= */
@media (max-width: 760px) {
  /* 1 + 2 — snap suave y alto estable */
  html { scroll-snap-type: y proximity; scroll-padding-top: 60px; }
  .hero,
  main > section,
  .site-footer {
    scroll-snap-stop: normal;
    min-height: 100svh;
  }
  .site-footer { min-height: 0; }

  /* un poco más compacto para acercar las secciones altas a una pantalla */
  main > section[id] { padding-top: calc(60px + 1rem); }
  .section-head { margin-bottom: clamp(0.8rem, 2.5svh, 1.4rem); }
  .hour { padding-block: clamp(0.7rem, 2svh, 1.1rem); }

  /* 3 — Ministerios: de pila vertical (se cortaba ~560px) a carrusel horizontal.
        A sangre completa para que asome la tarjeta siguiente (estilo reel). */
  .min__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 0.25rem;
  }
  .min__grid::-webkit-scrollbar { display: none; }
  .min__grid > .mcard,
  .min__grid > .mcard--dyn {
    flex: 0 0 84%;
    scroll-snap-align: center;
    min-height: clamp(380px, 56svh, 460px);
    animation: none;                 /* sin flotación dentro del carrusel */
  }
}

/* =========================================================================
   AJUSTES 2026-10-20: REELS DE VERDAD EN MÓVIL (iOS + Android)
   Causa del "a veces sí, a veces no": el snap era "proximity" (solo encaja si
   sueltas cerca del borde) y casi todas las secciones medían más que la
   pantalla (p.ej. Contacto 953px en un iPhone SE de 553px), así que no había
   "cuadro" donde encajar. Aquí:
     1) el que desplaza es <body>, no la ventana -> la barra del navegador ya
        no se encoge/estira al deslizar, el alto de pantalla queda FIJO
     2) cada sección (y el pie) mide EXACTAMENTE una pantalla (--app-h, lo fija
        script.js con el alto real del body)
     3) snap OBLIGATORIO + stop:always -> un deslizón = una sección
     4) contenido compacto; si aun así no cabe, script.js lo escala (zoom) y,
        como último recurso, la sección desplaza por dentro
   ========================================================================= */
@media (max-width: 760px) {
  html { height: 100%; overflow: hidden; scroll-snap-type: none; scroll-padding-top: 0; }
  body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  body::-webkit-scrollbar { display: none; }
  /* Android: impide que <body> se vuelva desplazador raíz (ver script.js) */
  html.no-root-promo { clip-path: inset(0); }

  /* header fuera del flujo: cada sección ya trae su despeje arriba */
  .site-header { position: fixed; top: 0; left: 0; right: 0; }

  .hero,
  main > section,
  .site-footer {
    height: 100svh;
    height: var(--app-h, 100svh);
    min-height: 0;
    max-height: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    padding-bottom: 1rem;
  }
  main > section[id] { padding-top: calc(var(--hdr-h, 62px) + 0.9rem); }
  .hero { padding-top: var(--hdr-h, 62px); padding-bottom: 3.5rem; }
  /* último recurso (prédicas/eventos largos): desplaza por dentro */
  .is-scroll { overflow-y: auto !important; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  /* el escalado lo aplica script.js al .shell de cada sección */
  .hero > .shell, main > section > .shell, .site-footer > .shell { zoom: var(--fit, 1); }

  /* cabeceras de sección más compactas */
  .section-head { margin-bottom: 1rem; }
  .section-head h2 { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .section-head p { margin-top: 0.5rem; font-size: 1rem; }

  /* Significado: la palabra hebrea pasa de tarjeta-arco grande a sello compacto */
  .meaning__grid { gap: 1rem; }
  .meaning__word {
    display: flex; align-items: baseline; justify-content: center; gap: 0.9rem;
    max-width: none; width: 100%; margin: 0; padding: 0.7rem 1rem 0.6rem;
    border-radius: 999px 999px 14px 14px / 60px 60px 14px 14px;
  }
  .meaning__hebrew { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .meaning__body h2 { font-size: clamp(1.6rem, 7.4vw, 2.1rem); margin-bottom: 0.4rem; }
  .meaning__body p { margin-top: 0.6rem; font-size: 0.97rem; line-height: 1.5; }
  .meaning__sign { margin-top: 0.9rem !important; padding-top: 0.7rem; font-size: 0.8rem; }

  /* Nosotros */
  .about__grid { gap: 0.8rem; }
  .about__card { padding: 1.1rem 1.2rem; }
  .about__tag { margin-bottom: 0.4rem; }
  .about__card p { font-size: 0.98rem; line-height: 1.5; }

  /* Horarios: hora a la derecha (como en escritorio) en vez de 4 filas apiladas */
  .hour {
    grid-template-columns: 1fr auto;
    grid-template-areas: "day time" "name time" "note note";
    padding-block: 0.75rem;
  }
  .hour__time { justify-self: end; font-size: clamp(1.8rem, 9vw, 2.3rem); }
  .hour__day { font-size: 1.25rem; }
  .hour__note { font-size: 0.9rem; margin-top: 0.1rem; }
  .hours__foot { margin-top: 0.9rem; font-size: 0.95rem; }

  /* Ministerios: la tarjeta se ajusta al alto que queda */
  .min .shell { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .min__grid { flex: 1; min-height: 0; align-items: stretch; }
  .min__grid > .mcard,
  .min__grid > .mcard--dyn { min-height: 0; height: auto; max-height: 520px; }

  /* Contacto */
  .visit__grid { gap: 1rem; }
  .visit__info h2 { font-size: clamp(1.8rem, 8.4vw, 2.4rem); }
  .visit__info > p { margin-top: 0.6rem; font-size: 1rem; }
  .visit__facts { grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 1rem; }
  .visit__facts dd { font-size: 0.95rem; margin-top: 0.2rem; }
  .visit__cta { margin-top: 1rem; gap: 0.6rem; }
  .visit__cta .btn { flex: 1 1 0; justify-content: center; }
  .visit__mail { margin-top: 0.8rem; font-size: 0.92rem; }
  .visit__card { padding: 1.1rem 1.2rem; }
  .visit__card h3 { font-size: 1.2rem; }
  .checks { margin-top: 0.6rem; }
  .visit__verse { margin-top: 0.8rem; padding-top: 0.7rem; font-size: 0.95rem; }

  /* Pie: también es una pantalla, compacto */
  .site-footer {
    display: flex; flex-direction: column; justify-content: flex-start;
    padding-top: calc(var(--hdr-h, 62px) + 1rem);
  }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; padding-bottom: 1.2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__nav h4, .footer__social h4 { margin-bottom: 0.4rem; }
  .footer__nav a, .footer__social a { padding: 0.45rem 0; }
  .footer__base { padding-block: 1rem; gap: 0.4rem; }
}

/* Eventos en móvil: la imagen no se come la pantalla */
@media (max-width: 760px) {
  .event-card__img { aspect-ratio: auto; height: clamp(150px, 30svh, 260px); }
  .event-card__img img { width: 100%; height: 100%; object-fit: cover; }
}
/* Pantallas BAJAS (iPhone SE/mini, Android chicos con barras): un poco más compacto */
@media (max-width: 760px) and (max-height: 640px) {
  main > section[id] { padding-top: calc(var(--hdr-h, 62px) + 0.6rem); }
  .section-head { margin-bottom: 0.7rem; }
  .hours .section-head p, .about .section-head p, .events .section-head p { display: none; }
  .hour { padding-block: 0.55rem; }
  .visit__info > p:not(.visit__mail) { display: none; }
  .visit__verse { display: none; }
  .visit__card { padding: 0.9rem 1.1rem; }
  .footer__brand > p:not(.footer__org) { display: none; }
  .footer__nav a, .footer__social a { padding: 0.3rem 0; }
  .event-card__img { height: clamp(130px, 26svh, 200px); }
}
