/* =============================================================
   IGLESIA NUESTRO HOGAR — HOJA DE ESTILOS
   Sistema de diseño inspirado en el DESIGN.md de Airbnb (DesignMD):
   lienzo blanco, un solo color de marca, fotografía protagonista,
   pesos tipográficos moderados y formas suaves sin esquinas duras.
   El color de marca es el celeste del logo de Nuestro Hogar.
   ============================================================= */

:root {
  /* Color */
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-strong: #f2f2f2;
  --ink: #222222;
  --body: #3f3f3f;
  --muted: #6a6a6a;
  --muted-soft: #929292;
  --hairline: #dddddd;

  --sky: #3fc7ff;            /* celeste del logo — acentos e ilustraciones */
  --sky-soft: #e6f7ff;
  --primary: #0b78bc;        /* versión accesible para botones (4.7:1) */
  --primary-active: #0664a6;
  --error: #c13515;

  /* Tipografía */
  --font: "Figtree", "Circular", -apple-system, system-ui, Roboto, "Helvetica Neue", sans-serif;

  /* Radios */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Espaciado */
  --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-base: 16px;
  --s-lg: 24px; --s-xl: 32px; --s-xxl: 48px; --s-section: 72px;

  /* Elevación — un único nivel */
  --shadow: 0 0 0 1px rgba(0,0,0,.02), 0 2px 6px rgba(0,0,0,.04), 0 4px 8px rgba(0,0,0,.1);
  --shadow-lg: 0 6px 20px rgba(0,0,0,.12);

  --nav-h: 80px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
section[id], aside[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic .fill, svg .fill { fill: currentColor; stroke: none; }
#i-wa { stroke: none; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.kicker {
  font-size: 14px; font-weight: 600; color: var(--primary);
  letter-spacing: .02em; margin-bottom: 8px;
}
.h2 {
  font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; line-height: 1.18;
  letter-spacing: -.02em; color: var(--ink);
}
.h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 40px 0 20px; }
.lead { font-size: 17px; color: var(--muted); margin-top: 10px; max-width: 560px; }
.meta { color: var(--muted); font-size: 15px; margin-top: 6px; }
.ink-brand { color: var(--primary); position: relative; white-space: nowrap; }
.ink-brand::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .22em;
  background: var(--sky); opacity: .35; border-radius: 6px; z-index: -1;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 16px; font-weight: 600; line-height: 1.25;
  text-decoration: none; transition: background .2s, transform .1s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  color: #fff;
  background: radial-gradient(circle at 30% 0%, #1b8fd6 0%, var(--primary) 55%, var(--primary-active) 100%);
}
.btn-primary:hover { background: var(--primary-active); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--surface-soft); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 17px; }

.circle-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: #fff; border: 1px solid var(--hairline); color: var(--ink);
  transition: box-shadow .2s, transform .1s, opacity .2s;
}
.circle-btn:hover { box-shadow: var(--shadow); }
.circle-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.circle-btn .ic { width: 16px; height: 16px; stroke-width: 2.4; }

/* ---------- Navegación superior ---------- */
.topnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.topnav.scrolled { border-bottom-color: var(--hairline); }
.topnav-in {
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px);
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.brand img { height: 48px; width: auto; }

.tabs { display: flex; gap: 8px; }
.tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; text-decoration: none;
  font-size: 16px; font-weight: 600; color: var(--muted);
  position: relative; transition: color .2s;
}
.tab:hover { color: var(--ink); }
.tab::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
  background: var(--ink); border-radius: 2px; transform: scaleX(0); transition: transform .25s var(--ease);
}
.tab.active { color: var(--ink); }
.tab.active::after { transform: scaleX(1); }
.tab-ico { position: relative; width: 36px; height: 36px; display: grid; place-items: center; transition: transform .3s var(--ease); }
.tab:hover .tab-ico { transform: scale(1.1) rotate(-3deg); }
.tab-ico svg { width: 36px; height: 36px; }
.ill-fill { fill: var(--sky); opacity: .9; }
.ill-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.new-tag {
  position: absolute; top: -4px; right: -14px;
  background: #fff; color: var(--ink);
  font-size: 8px; font-weight: 700; letter-spacing: .32px; text-transform: uppercase;
  padding: 2px 6px; border-radius: var(--r-full); box-shadow: var(--shadow);
}

.topnav-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; position: relative; }
.nav-ghost {
  font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 12px 14px; border-radius: var(--r-full); transition: background .2s;
}
.nav-ghost:hover { background: var(--surface-soft); }
.menu-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 5px 5px 14px; height: 46px;
  border: 1px solid var(--hairline); border-radius: var(--r-full); background: #fff;
  transition: box-shadow .2s;
}
.menu-pill:hover, .menu-pill[aria-expanded="true"] { box-shadow: var(--shadow); }
.menu-pill .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.menu-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sky-soft); display: grid; place-items: center; }
.menu-avatar img { width: 24px; height: 24px; }

.menu-drop {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 250px; padding: 8px 0;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  animation: pop .18s var(--ease);
}
.menu-drop a { display: block; padding: 12px 18px; font-size: 14px; text-decoration: none; color: var(--ink); }
.menu-drop a:hover { background: var(--surface-soft); }
.menu-drop a.strong { font-weight: 600; }
.menu-drop hr { border: 0; border-top: 1px solid var(--hairline); margin: 8px 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 24px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-full);
  background: var(--sky-soft); color: var(--primary-active);
  font-size: 14px; font-weight: 600;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(63,199,255,.25); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(63,199,255,0); } }
.hero-title {
  margin-top: 18px;
  font-size: clamp(40px, 6.4vw, 76px); font-weight: 800;
  line-height: 1.02; letter-spacing: -.035em;
  position: relative; z-index: 0;
}
.br-m { display: none; }
.hero-sub { margin: 18px auto 0; max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }

/* Planificador tipo barra de búsqueda */
.planner {
  margin: 32px auto 0; max-width: 860px;
  display: flex; align-items: center;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-full);
  box-shadow: var(--shadow); padding: 8px; height: 76px; text-align: left;
}
.seg {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 8px 28px; height: 100%; border-radius: var(--r-full);
  cursor: pointer; transition: background .2s; position: relative; min-width: 0;
}
.seg:hover { background: var(--surface-strong); }
.seg-static { cursor: default; }
.seg-static:hover { background: transparent; }
.seg-lab { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.seg-val, .seg select { font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0;
  width: 100%; cursor: pointer; outline: none;
}
.seg:focus-within { background: #fff; box-shadow: var(--shadow-lg); }
.seg-div { width: 1px; height: 32px; background: var(--hairline); flex: none; }
.orb {
  flex: none; height: 56px; min-width: 56px; padding: 0 22px 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--r-full); color: #fff; font-weight: 700; font-size: 16px;
  background: radial-gradient(circle at 30% 0%, #1b8fd6 0%, var(--primary) 55%, var(--primary-active) 100%);
  box-shadow: 0 6px 18px rgba(11,120,188,.35);
  transition: transform .15s, box-shadow .2s;
}
.orb:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11,120,188,.42); }
.orb .ic { width: 18px; height: 18px; stroke-width: 2.2; }

.hero-photo {
  margin-top: 40px; position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 21 / 9; background: var(--surface-strong);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform 1.2s var(--ease); }
.hero-photo:hover img { transform: scale(1.02); }

.fav-badge {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--ink); border-radius: var(--r-full);
  padding: 8px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
}
.fav-badge .ic { width: 14px; height: 14px; color: var(--primary); fill: var(--sky); stroke: var(--primary); }
.fav-badge.sm { top: 14px; left: 14px; padding: 6px 12px; font-size: 12px; }

.next-card {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: #fff; border-radius: var(--r-md); padding: 12px 12px 12px 14px;
  box-shadow: var(--shadow-lg);
}
.next-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sky-soft); color: var(--primary); display: grid; place-items: center; }
.next-lab { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.next-date { display: block; font-size: 15px; font-weight: 700; }
.next-go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; margin-left: 6px; transition: transform .2s; }
.next-go:hover { transform: translateX(2px); }
.next-go .ic { width: 16px; height: 16px; stroke-width: 2.2; }

/* ---------- Bandas / secciones ---------- */
.band { padding: var(--s-section) 0; }
.band + .band { border-top: 1px solid var(--hairline); }
.band-soft { background: var(--surface-soft); border-top: 0 !important; }
.band-soft + .band { border-top: 0; }

/* Momento destacado con laureles */
.laurel-card {
  max-width: 760px; margin: 0 auto 64px; text-align: center;
  padding: 36px 24px 28px; border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
}
.laurel-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.laurel { width: 44px; height: 88px; }
.laurel.flip { transform: scaleX(-1); }
.laurel .stem { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.laurel .leaf path { fill: var(--ink); }
.laurel-num { display: flex; flex-direction: column; align-items: center; }
.laurel-num .big { font-size: clamp(56px, 8vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.laurel-cap { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .14em; }
.laurel-txt { margin-top: 14px; color: var(--muted); font-size: 16px; }
.laurel-stats { display: flex; justify-content: center; margin-top: 24px; border-top: 1px solid var(--hairline); padding-top: 18px; }
.laurel-stats li { flex: 1; max-width: 200px; display: flex; flex-direction: column; padding: 0 12px; }
.laurel-stats li + li { border-left: 1px solid var(--hairline); }
.laurel-stats strong { font-size: 17px; font-weight: 700; }
.laurel-stats span { font-size: 13px; color: var(--muted); }

/* Ficha (2 columnas + tarjeta fija) */
.listing { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 7vw, 96px); align-items: start; }
.host {
  display: flex; align-items: center; gap: 16px;
  margin-top: 28px; padding: 24px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.host-av { width: 56px; height: 56px; border-radius: 50%; background: var(--sky-soft); display: grid; place-items: center; flex: none; }
.host-av img { width: 38px; height: 38px; }
.host strong { display: block; font-size: 16px; }
.host span { display: block; color: var(--muted); font-size: 14px; }

.highlights { padding: 28px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 22px; }
.highlights li { display: flex; gap: 20px; align-items: flex-start; }
.highlights .ic { width: 26px; height: 26px; margin-top: 2px; stroke-width: 1.6; }
.highlights strong { display: block; font-size: 16px; font-weight: 600; }
.highlights span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }

.quote { position: relative; padding: 32px 0 8px; font-size: 18px; line-height: 1.6; color: var(--body); }
.quote .ic { width: 30px; height: 30px; color: var(--sky); fill: var(--sky); stroke: none; margin-bottom: 10px; }

.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.amenities li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.amenities .ic { width: 24px; height: 24px; stroke-width: 1.6; }

.listing-side { position: sticky; top: calc(var(--nav-h) + 24px); }
.reserve {
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--shadow-lg); background: #fff;
}
.reserve-head { margin-bottom: 18px; }
.reserve-price { display: block; font-size: 22px; font-weight: 700; }
.reserve-sub { display: block; font-size: 14px; color: var(--muted); }
.reserve-box { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #b0b0b0; border-radius: var(--r-sm); overflow: hidden; }
.rb-cell { padding: 10px 12px; display: flex; flex-direction: column; font-size: 14px; }
.rb-cell + .rb-cell { border-left: 1px solid #b0b0b0; }
.rb-cell.full { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #b0b0b0; }
.rb-cell .seg-lab { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.reserve-next { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 14px; font-weight: 600; color: var(--primary-active); background: var(--sky-soft); padding: 10px 12px; border-radius: var(--r-sm); }
.reserve-next .ic { width: 18px; height: 18px; }
.reserve .btn + .btn { margin-top: 10px; }
.reserve-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }
.hair { border: 0; border-top: 1px solid var(--hairline); margin: 20px 0 14px; }
.reserve-list li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.reserve-list li span:first-child { text-decoration: underline; text-decoration-color: #b0b0b0; text-underline-offset: 3px; }
.reserve-list a { font-weight: 600; color: var(--primary); text-decoration: none; }
.reserve-list a:hover { text-decoration: underline; }

/* ---------- Ministerios (tarjetas tipo experiencia) ---------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.carousel-ctrl { display: none; gap: 8px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.card { position: relative; }
.card-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--surface-strong); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-photo img { transform: scale(1.04); }
.heart {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  border: 0; background: transparent; display: grid; place-items: center; padding: 0;
  transition: transform .15s;
}
.heart:active { transform: scale(.85); }
.heart svg { width: 26px; height: 26px; fill: rgba(0,0,0,.45); stroke: #fff; stroke-width: 2; transition: fill .2s; }
.heart[aria-pressed="true"] svg { fill: var(--sky); animation: beat .35s var(--ease); }
@keyframes beat { 40% { transform: scale(1.25); } }
.card-meta { padding-top: 14px; }
.card-meta h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.card-meta h3 .ic { width: 18px; height: 18px; color: var(--primary); }
.card-meta p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}
.card-link .ic { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover .ic { transform: translateX(3px); }

/* ---------- Momentos (mosaico) ---------- */
.mosaic {
  position: relative; display: grid; gap: 8px;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px;
  border-radius: var(--r-lg); overflow: hidden;
}
.m-tile { border: 0; padding: 0; background: var(--surface-strong); overflow: hidden; position: relative; cursor: zoom-in; }
.m-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.m-tile:hover img { transform: scale(1.04); filter: brightness(.88); }
.m-big { grid-row: 1 / 3; }
.show-all { position: absolute; right: 20px; bottom: 20px; min-height: 40px; padding: 8px 16px; font-size: 14px; border-color: var(--ink); }
.show-all .ic { width: 16px; height: 16px; }

/* ---------- Oración ---------- */
.pray { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 96px); align-items: start; }
.pray-points { margin-top: 32px; display: grid; gap: 20px; }
.pray-points li { display: flex; gap: 16px; align-items: center; }
.pray-points .pp-ico { width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; flex: none; }
.pray-points .pp-ico .ic { width: 22px; height: 22px; color: var(--primary); display: block; margin: 0; }
.pray-points strong { display: block; font-size: 16px; font-weight: 600; }
.pray-points div > span { display: block; color: var(--muted); font-size: 14px; }
.verse { margin-top: 36px; padding-left: 20px; border-left: 3px solid var(--sky); }
.verse blockquote { font-size: 20px; font-weight: 500; font-style: italic; line-height: 1.45; letter-spacing: -.01em; }
.verse figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }

.pray-form { background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.form-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.field-group { border: 1px solid #b0b0b0; border-radius: var(--r-sm); }
.field { position: relative; padding: 10px 14px; transition: box-shadow .15s; }
.field + .field { border-top: 1px solid #b0b0b0; }
.field:first-child { border-radius: var(--r-sm) var(--r-sm) 0 0; }
.field:last-child { border-radius: 0 0 var(--r-sm) var(--r-sm); }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field textarea { width: 100%; border: 0; outline: 0; padding: 2px 0 0; background: transparent; font-size: 16px; resize: vertical; }
.field textarea { min-height: 110px; line-height: 1.5; }
.field ::placeholder { color: var(--muted-soft); }
.field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); border-radius: var(--r-sm); z-index: 1; }
.field.error { box-shadow: inset 0 0 0 2px var(--error); background: #fff8f6; border-radius: var(--r-sm); }
.field.error label { color: var(--error); }
.form-err { margin-top: 10px; color: var(--error); font-size: 14px; font-weight: 500; }

.switch { display: flex; align-items: center; gap: 14px; margin: 20px 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 48px; height: 32px; border-radius: var(--r-full); background: #b0b0b0; position: relative; flex: none; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch-txt strong { display: block; font-size: 15px; font-weight: 600; }
.switch-txt span { display: block; font-size: 13px; color: var(--muted); }

.form-ok { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--sky-soft); animation: pop .25s var(--ease); }
.ok-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.ok-ico .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.form-ok strong { display: block; font-size: 15px; }
.form-ok span { display: block; font-size: 14px; color: var(--body); }

/* ---------- Eventos ---------- */
.events { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.ev { border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.ev:hover { box-shadow: var(--shadow); }
.ev-photo { aspect-ratio: 16 / 10; position: relative; background: var(--surface-strong); }
.ev-photo img { width: 100%; height: 100%; object-fit: cover; }
.ev-date { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 12px; padding: 6px 12px; text-align: center; box-shadow: var(--shadow); }
.ev-date b { display: block; font-size: 22px; line-height: 1; }
.ev-date small { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--primary); letter-spacing: .06em; }
.ev-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ev-body h3 { font-size: 17px; font-weight: 600; }
.ev-body p { color: var(--muted); font-size: 14px; }
.ev-body .card-link { margin-top: auto; padding-top: 8px; }

.empty {
  display: flex; align-items: center; gap: 24px;
  padding: 28px; border: 1px dashed #c8c8c8; border-radius: var(--r-lg);
}
.empty-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--sky-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.empty-ico .ic { width: 28px; height: 28px; }
.empty h3 { font-size: 18px; font-weight: 600; }
.empty p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.empty .btn { margin-left: auto; flex: none; }

/* ---------- Contacto ---------- */
.map { position: relative; margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; height: 440px; background: var(--surface-strong); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map-pin {
  position: absolute; left: 20px; top: 20px; display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 10px 16px 10px 10px; border-radius: var(--r-full);
  box-shadow: var(--shadow-lg); text-decoration: none;
}
.map-pin-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--sky-soft); display: grid; place-items: center; }
.map-pin strong { display: block; font-size: 15px; }
.map-pin small { display: block; font-size: 13px; color: var(--muted); text-decoration: underline; }

.contact-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.c-card {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  border: 1px solid var(--hairline); border-radius: var(--r-md); text-decoration: none;
  transition: box-shadow .2s, transform .2s; min-width: 0;
}
.c-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.c-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-soft); flex: none; }
.c-ico.wa { background: #e7f8ee; color: #128c4b; }
.c-ico .ic { width: 22px; height: 22px; }
.c-txt { min-width: 0; flex: 1; }
.c-txt strong { display: block; font-size: 15px; font-weight: 600; }
.c-txt span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-arrow { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Pie ---------- */
.footer { background: var(--surface-soft); border-top: 1px solid var(--hairline); padding: 56px 0 28px; }
.footer-mission { text-align: center; padding-bottom: 44px; border-bottom: 1px solid var(--hairline); }
.footer-mission p { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.footer-mission span { display: block; margin-top: 6px; color: var(--primary); font-weight: 600; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; padding: 44px 0; }
.footer-logo { height: 52px; width: auto; }
.footer-desc { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 320px; }
.footer h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.footer ul { display: grid; gap: 10px; }
.footer li, .footer li a { font-size: 14px; color: var(--ink); text-decoration: none; }
.footer li a:hover { text-decoration: underline; }
.footer .plain li { color: var(--muted); }
.footer .plain li strong { color: var(--ink); font-weight: 600; }
.legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--muted); }
.legal-social { display: flex; gap: 6px; }
.legal-social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background .2s; }
.legal-social a:hover { background: var(--surface-strong); }
.legal-social .ic { width: 18px; height: 18px; }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25d366;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .2s, bottom .3s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float svg .fill { fill: #fff; }

.bottombar { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 150;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: pop .2s var(--ease);
}

/* ---------- Visor ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.96); display: flex; flex-direction: column; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: #fff; }
.lb-count { font-size: 14px; font-weight: 600; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 20px 24px; position: relative; min-height: 0; flex-direction: column; }
.lb-stage img { max-width: min(1100px, 100%); max-height: calc(100vh - 160px); object-fit: contain; border-radius: var(--r-sm); }
.lb-stage figcaption { color: rgba(255,255,255,.75); font-size: 14px; text-align: center; }
.lb-prev, .lb-next { position: absolute; top: 45%; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }

/* ---------- Carrusel del inicio ---------- */
.slider .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s linear;
}
.slider .slide.is-on { opacity: 1; transform: scale(1); }
.slider:hover .slide.is-on { transform: scale(1); }
.slide-dots {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 8px 10px; border-radius: var(--r-full);
  background: rgba(0,0,0,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.slide-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-full); background: rgba(255,255,255,.55); transition: width .35s var(--ease), background .3s; }
.slide-dots button[aria-selected="true"] { width: 26px; background: #fff; }
.fav-badge { z-index: 2; }

/* ---------- Banners grandes ---------- */
.banner {
  position: relative; overflow: hidden; color: #fff;
  min-height: clamp(440px, 72vh, 640px); display: flex; align-items: center;
  margin: 0 clamp(12px, 2vw, 24px); border-radius: var(--r-lg); isolation: isolate;
}
.banner-media { position: absolute; inset: 0; z-index: -1; }
.banner-media img { width: 100%; height: 130%; object-fit: cover; position: absolute; top: -15%; left: 0; will-change: transform; }
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,24,38,.82) 0%, rgba(10,24,38,.55) 45%, rgba(10,24,38,.1) 100%);
}
.banner-right::after { background: linear-gradient(270deg, rgba(10,24,38,.85) 0%, rgba(10,24,38,.55) 45%, rgba(10,24,38,.1) 100%); }
.banner-right .banner-in { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.banner-in { padding-top: 64px; padding-bottom: 64px; }
.banner-kicker { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.banner-title { margin-top: 12px; font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; max-width: 760px; }
.banner-title em { font-style: normal; color: var(--sky); }
.banner-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.banner-right .banner-btns { justify-content: flex-end; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sky-soft); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.banner + .band { border-top: 0; }

/* ---------- Cinta de fotos ---------- */
.marquee { padding: 72px 0 64px; overflow: hidden; border-top: 1px solid var(--hairline); }
.marquee-title {
  white-space: nowrap; text-align: center; font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(30px, 5vw, 60px); color: transparent; -webkit-text-stroke: 1.5px #a9a9a9;
  margin-bottom: 28px; overflow: hidden;
}
.marquee-title span { color: var(--sky); -webkit-text-stroke: 0; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: clamp(220px, 30vw, 340px); width: auto; aspect-ratio: auto; border-radius: var(--r-md); object-fit: cover; flex: none; }
.marquee-track img:nth-child(odd) { transform: translateY(14px); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee + .band { border-top: 1px solid var(--hairline); }

@media (max-width: 760px) {
  .banner { min-height: 520px; margin: 0 12px; align-items: flex-end; }
  .banner::after, .banner-right::after { background: linear-gradient(0deg, rgba(10,24,38,.88) 0%, rgba(10,24,38,.45) 55%, rgba(10,24,38,.1) 100%); }
  .banner-right .banner-in { align-items: flex-start; text-align: left; }
  .banner-right .banner-btns { justify-content: flex-start; }
  .banner-in { padding-top: 40px; padding-bottom: 36px; }
  .slide-dots { bottom: 14px; }
  .marquee { padding: 52px 0 48px; }
}

/* =============================================================
   PORTADA (hero a pantalla completa)
   ============================================================= */
.hero2 { padding: 12px 0 8px; }

/* Móvil y tablet (base): foto completa arriba, texto debajo → ningún rostro queda tapado */
.hero-stage {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 clamp(10px, 2vw, 24px); border-radius: 22px;
  display: flex; flex-direction: column;
  background: #0d1b26; color: #fff;
}
.hero-media {
  position: relative; overflow: hidden;
  aspect-ratio: 5 / 4; max-height: 56svh;
  order: 3; /* móvil/tablet: letras arriba, foto abajo */
}
.hero-photo-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
  animation: heroZoom 16s cubic-bezier(.2,.6,.2,1) both;
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  /* solo funde el cielo (parte alta) con el fondo; los rostros quedan limpios */
  background: linear-gradient(180deg, #0d1b26 0%, rgba(13,27,38,.55) 7%, rgba(13,27,38,0) 18%);
}
.hero-copy { position: relative; z-index: 2; order: 1; padding-top: 28px; padding-bottom: 0; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: var(--r-full);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(63,199,255,.3); animation: pulse 2.4s infinite; }
.hero-h1 {
  margin-top: 18px; max-width: 760px;
  font-size: clamp(44px, 11vw, 72px); font-weight: 800;
  line-height: .98; letter-spacing: -.045em;
}
.hero-h1 span { color: var(--sky); position: relative; display: inline-block; }
.hero-h1 span::after {
  content: ""; position: absolute; left: 4%; right: -2%; bottom: -.06em; height: .1em;
  background: var(--sky); border-radius: 99px; transform-origin: left;
  animation: draw 1.1s .9s var(--ease) both;
}
@keyframes draw { from { transform: scaleX(0); } }
.hero-lede { margin-top: 16px; max-width: 520px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: rgba(255,255,255,.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-ctas .btn { border-radius: var(--r-full); padding: 12px 22px; min-height: 48px; }
.hero-ctas .ic { width: 18px; height: 18px; }
.btn-glass {
  color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,.22); }

.hero-foot {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  order: 2; padding-top: 22px; padding-bottom: 24px;
}
.hero-pastors {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff;
  padding: 6px 18px 6px 6px; border-radius: var(--r-full);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .2s; white-space: nowrap;
}
.hero-pastors:hover { background: rgba(255,255,255,.22); }
.hero-pastors img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.8); }
.hero-pastors small { display: block; font-size: 11px; color: rgba(255,255,255,.75); }
.hero-pastors strong { display: block; font-size: 13px; font-weight: 700; }
.hero-nav { display: flex; align-items: center; gap: 14px; }
.hero-cap { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); }
.hero-cap .ic { width: 14px; height: 14px; color: var(--sky); }

.hero-planner-wrap { position: relative; z-index: 5; margin-top: -28px; }
.hero-planner-wrap .planner { margin-top: 0; box-shadow: 0 12px 34px rgba(0,0,0,.16); }

/* Tablet: foto más panorámica */
@media (min-width: 640px) {
  .hero-media { aspect-ratio: 16 / 10; max-height: 54svh; }
  .hero-stage { border-radius: 28px; }
  .hero-copy { padding-top: 40px; }
}

/* Escritorio: texto a la izquierda, foto a la derecha (sin superponerse) */
@media (min-width: 1200px) {
  .hero-stage {
    display: block;
    /* altura limitada para que la foto mantenga una proporción en la que caben todos */
    height: clamp(600px, min(calc(100svh - var(--nav-h) - 28px), calc((100vw - 48px) * .5)), 860px);
  }
  .hero-media {
    position: absolute; top: 0; bottom: 0; right: 0; left: 40%;
    aspect-ratio: auto; max-height: none;
  }
  .hero-photo-img { object-position: 50% 50%; }
  .hero-shade {
    background:
      linear-gradient(90deg, #0d1b26 0%, rgba(13,27,38,.6) 5%, rgba(13,27,38,0) 13%),
      linear-gradient(0deg, rgba(13,27,38,.55) 0%, rgba(13,27,38,0) 14%);
  }
  .hero-copy {
    position: absolute; top: 0; bottom: 0; left: 0; width: 42%;
    max-width: none; margin: 0;
    padding: 0 32px 110px clamp(40px, 4.5vw, 96px);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  }
  .hero-h1 { font-size: clamp(54px, 5vw, 96px); margin-top: 22px; }
  .hero-lede { margin-top: 20px; max-width: 480px; }
  .hero-ctas { margin-top: 28px; }
  .hero-ctas .btn { padding: 14px 26px; }
  .hero-foot {
    position: absolute; left: 0; right: 0; bottom: 60px;
    max-width: none; margin: 0;
    padding: 0 clamp(24px, 2.5vw, 40px) 0 clamp(40px, 4.5vw, 96px);
  }
  .hero-pastors img { width: 44px; height: 44px; }
  .hero-pastors small { font-size: 12px; }
  .hero-pastors strong { font-size: 14px; }
  .hero-cap { display: inline-flex; }
  .hero-planner-wrap { margin-top: -40px; }
}

/* ---------- Pastores ---------- */
a.host { text-decoration: none; color: inherit; transition: background .2s; }
a.host:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.host-av.photo { overflow: hidden; background: var(--surface-strong); }
.host-av.photo img { width: 100%; height: 100%; object-fit: cover; }
.host-go { width: 18px; height: 18px; margin-left: auto; color: var(--muted); flex: none; }

.pastors-band { background: linear-gradient(180deg, #fff 0%, var(--sky-soft) 100%); }
.pastors { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.pastors-photo { position: relative; border-radius: var(--r-lg); overflow: visible; isolation: isolate; }
.pastors-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.pastors-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border-radius: var(--r-lg); border: 2px solid var(--sky); opacity: .6;
}
.pastors-card {
  position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--r-md); padding: 10px 16px 10px 10px; box-shadow: var(--shadow-lg);
}
.pc-av { width: 40px; height: 40px; border-radius: 50%; background: var(--sky-soft); display: grid; place-items: center; }
.pastors-card strong { display: block; font-size: 15px; }
.pastors-card small { display: block; font-size: 13px; color: var(--muted); }
.pastors-names { display: flex; flex-direction: column; gap: 2px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.pastors-names span { font-weight: 500; color: var(--muted); }
.pastors-names b { font-weight: 800; color: var(--ink); }
.pastors-names .amp { color: var(--sky); font-weight: 800; font-size: .8em; line-height: 1; }
.pastors-txt .lead { max-width: 520px; }
.pastors-verse { margin-top: 28px; padding: 18px 20px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--hairline); max-width: 520px; }
.pastors-verse blockquote { font-size: 18px; font-weight: 600; font-style: italic; }
.pastors-verse figcaption { margin-top: 4px; font-size: 13px; font-weight: 700; color: #b08a1e; letter-spacing: .04em; }
.pastors-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pastors-band + .banner { margin-top: 0; }

/* ---------- Instagram ---------- */
.ig-band .lead a { color: var(--primary); font-weight: 600; text-decoration: none; }
.ig-band .lead a:hover { text-decoration: underline; }
.btn-ig { color: #fff; background: linear-gradient(45deg, #f9a43b 0%, #e1306c 45%, #833ab4 100%); flex: none; }
.btn-ig:hover { filter: brightness(1.06); }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ig-card {
  position: relative; border-radius: var(--r-md); overflow: hidden; background: #fff;
  border: 1px solid var(--hairline); height: 660px;
}.ig-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ig-card .ig-loading {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px;
  color: var(--muted); font-size: 14px; background: var(--surface-soft);
}
.ig-card .ig-loading .ic { width: 34px; height: 34px; color: #e1306c; }
.ig-card.loaded .ig-loading { display: none; }

@media (max-width: 960px) {
  .pastors { grid-template-columns: 1fr; }
  .pastors-photo { max-width: 520px; }
  .ig-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(300px, 46%);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * clamp(20px, 5vw, 80px)); padding: 0 clamp(20px, 5vw, 80px) 4px;
  }
  .ig-grid::-webkit-scrollbar { display: none; }
  .ig-card { scroll-snap-align: center; }
}
@media (max-width: 760px) {
  .pastors-photo::before { inset: 12px -10px -12px 10px; }
  .pastors-card { left: 12px; bottom: 12px; }
  .ig-grid { grid-auto-columns: 86%; }
  .ig-card { height: 600px; }
  .head-row { flex-wrap: wrap; align-items: flex-start; }
}

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1120px) {
  .nav-ghost { display: none; }
  .listing { grid-template-columns: minmax(0,1fr) 340px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 960px) {
  :root { --nav-h: 68px; --s-section: 56px; }
  .topnav-in { grid-template-columns: 1fr auto; }
  .tabs { display: none; }
  .brand img { height: 42px; }

  .listing { grid-template-columns: 1fr; }
  .listing-side { position: static; }
  .pray { grid-template-columns: 1fr; }
  .events { grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* Carrusel horizontal de ministerios */
  .carousel-ctrl { display: flex; }
  .cards {
    display: grid; grid-auto-flow: column; grid-template-columns: none;
    grid-auto-columns: minmax(260px, 42%); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * clamp(20px, 5vw, 80px)); padding: 0 clamp(20px, 5vw, 80px) 4px;
    scroll-padding: 0 clamp(20px, 5vw, 80px);
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .card.reveal { opacity: 1; transform: none; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .hero { padding-top: 28px; }
  .br-m { display: inline; }

  /* Planificador apilado en móvil */
  .planner {
    flex-direction: column; align-items: stretch; height: auto;
    border-radius: var(--r-lg); padding: 8px; gap: 0;
  }
  .seg { padding: 12px 16px; border-radius: var(--r-md); }
  .seg-div { width: auto; height: 1px; margin: 0 16px; }
  .orb { margin-top: 8px; height: 52px; border-radius: var(--r-md); }

  .hero-photo { aspect-ratio: 4 / 5; margin-top: 28px; }
  .hero-photo img { object-position: 38% 50%; }
  .next-card { left: 12px; right: 12px; bottom: 12px; }
  .next-card > div:nth-child(2) { flex: 1; }
  .fav-badge { top: 12px; left: 12px; }

  .laurel-card { margin-bottom: 44px; padding: 28px 16px 22px; }
  .laurel { width: 34px; height: 68px; }
  .laurel-stats li { padding: 0 6px; }
  .laurel-stats strong { font-size: 15px; }

  .amenities { grid-template-columns: 1fr; }
  .cards { grid-auto-columns: 78%; }
  .carousel-ctrl { display: none; }

  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px 160px; }
  .m-big { grid-column: 1 / -1; grid-row: auto; }
  .show-all { right: 12px; bottom: 12px; }

  .pray-form { padding: 22px; }
  .events { grid-template-columns: 1fr; }
  .empty { flex-direction: column; align-items: flex-start; }
  .empty .btn { margin-left: 0; }

  .map { height: 340px; }
  .contact-grid { grid-template-columns: 1fr; }

  .legal { flex-direction: column-reverse; text-align: center; }

  /* Barra inferior estilo app */
  .bottombar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: flex; justify-content: space-around;
    background: rgba(255,255,255,.97); border-top: 1px solid var(--hairline);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: transform .3s var(--ease);
  }
  .bottombar.hide { transform: translateY(110%); }
  .bottombar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; padding: 2px 0; }
  .bottombar a .ic { width: 24px; height: 24px; stroke-width: 1.7; }
  .bottombar a.active { color: var(--primary); }
  .bottombar a.active .ic { stroke-width: 2.2; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wa-float svg { width: 26px; height: 26px; }
  .bottombar.hide ~ .wa-float { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .toast { bottom: 92px; width: calc(100% - 32px); text-align: center; }

  .lb-prev, .lb-next { top: auto; bottom: 20px; }
  .lb-stage { padding-bottom: 80px; }
}

@media (max-width: 380px) {
  .brand img { height: 36px; }
  .footer-cols { grid-template-columns: 1fr; }
}
