/* =====================================================================
   Santuario de Dios — estilos
   Mobile-first. Los colores y tipografías se controlan con las variables
   de :root (cámbialas aquí y todo el sitio se ajusta).
   ===================================================================== */
:root {
  /* Paleta: noche → amanecer */
  --indigo-900: #141A3E;   /* cielo nocturno (barra superior, pie) */
  --indigo-800: #1C2454;   /* índigo principal (títulos, bloques oscuros) */
  --indigo-600: #2B3A8C;   /* azul profundo (enlaces, acentos) */
  --sky-100:    #DCE6F7;   /* celeste suave */
  --gold-500:   #D4A93C;   /* dorado (botones, líneas) */
  --gold-300:   #E9C86A;   /* dorado claro (texto sobre índigo) */
  --gold-700:   #8A6D14;   /* dorado oscuro (texto pequeño sobre claro) */
  --ivory:      #FAF6EE;   /* marfil (fondo) */
  --white:      #FFFFFF;
  --ink:        #1F2340;   /* texto */
  --ink-muted:  #5A5F7A;   /* texto secundario */
  --line:       #E6E1D6;

  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans:  "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 36, 84, .08);
  --topbar-h: 64px;
  --container: 1120px;
}

/* ---------------- base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-600); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--indigo-800); margin: 0 0 .55em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold-500); color: var(--indigo-900);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------------- barra superior ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 26, 62, .97);
  border-bottom: 1px solid rgba(233, 200, 106, .18);
  transition: box-shadow .25s ease;
}
.topbar.is-scrolled { box-shadow: 0 8px 24px rgba(10, 14, 40, .28); }
/* El desenfoque del fondo solo en pantallas grandes (en celular cuesta rendimiento al hacer scroll) */
@media (min-width: 900px) {
  .topbar { background: rgba(20, 26, 62, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--topbar-h); }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ivory); text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { white-space: nowrap; }
.brand__city { font-family: var(--sans); font-weight: 700; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); margin-top: .22em; white-space: nowrap; }
.brand__logo {
  width: 36px; height: 36px; flex: none;
  background: var(--white); border-radius: 50%; padding: 4px;
  box-shadow: 0 0 0 1px rgba(233, 200, 106, .4);
  object-fit: contain;
}
@media (max-width: 420px) { .brand { font-size: 1.15rem; gap: .45rem; } .brand__logo { width: 30px; height: 30px; padding: 3px; } .brand__city { font-size: .52rem; } }
.topbar__actions { display: flex; align-items: center; gap: .5rem; }

.lang-toggle {
  display: inline-flex; align-items: center;
  font: 700 .8rem var(--sans); letter-spacing: .08em; text-decoration: none;
  background: transparent; color: var(--ivory);
  border: 1px solid rgba(233, 200, 106, .5); border-radius: 999px;
  padding: .45rem .75rem; min-height: 36px; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.lang-toggle:hover { border-color: var(--gold-300); background: rgba(233, 200, 106, .08); }
.lang-toggle__opt { opacity: .55; }
.lang-toggle__opt.is-active { opacity: 1; color: var(--gold-300); }
.lang-toggle__sep { margin: 0 .3em; opacity: .4; }

.menu-btn {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
}
.menu-btn__bar { width: 22px; height: 2px; background: var(--ivory); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--indigo-900);
  border-bottom: 1px solid rgba(233, 200, 106, .2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0; padding: .5rem 0 .75rem; }
.nav__list a { display: block; padding: .8rem 1.25rem; color: var(--ivory); text-decoration: none; font-weight: 600; }
.nav__list a:hover, .nav__list a.is-active { color: var(--gold-300); }

@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .nav, .nav.is-open { display: block; position: static; background: transparent; border: 0; box-shadow: none; margin-left: .75rem; }
  .nav__list { display: flex; align-items: center; gap: 0; padding: 0; }
  .nav__list a { padding: .5rem .5rem; font-size: .88rem; border-radius: 8px; white-space: nowrap; }
}
@media (min-width: 1400px) {
  .nav__list a { padding: .5rem .65rem; font-size: .93rem; }
}
/* Entre 1200 y 1399 px se oculta "Inicio" (el logo lleva al inicio) para que quepan los enlaces */
@media (min-width: 1200px) and (max-width: 1399px) { .nav__list li:first-child { display: none; } .brand { font-size: 1.15rem; } }

/* ---------------- hero: noche → amanecer sobre la Sierra ---------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  display: grid; align-items: center;
  padding: 4rem 0 7.5rem;
  color: var(--ivory); background: var(--indigo-900);
}
.hero__sky {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #10153A 0%, #1C2454 48%, #2B3A8C 100%);
}
/* Foto de fondo como <img> (responsive con srcset y prioridad alta: es lo primero que ve el visitante) */
.hero__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 68%; }
/* Velo índigo sobre la foto (z-index 1) y resplandor dorado del amanecer (z-index 2) */
.hero--photo .hero__sky::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16, 21, 58, .9) 0%, rgba(20, 27, 70, .78) 45%, rgba(24, 31, 76, .7) 100%);
}
.hero__sky::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(62% 48% at 50% 100%, rgba(233, 200, 106, .55) 0%, rgba(233, 200, 106, .18) 42%, rgba(233, 200, 106, 0) 72%);
  animation: amanecer 9s ease-in-out infinite alternate;
}
@keyframes amanecer { from { opacity: .72; } to { opacity: 1; } }
.hero__sierra { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; width: 100%; height: clamp(48px, 9vw, 120px); }
.hero__sierra-fill { fill: var(--ivory); }
.hero__sierra-line { fill: none; stroke: var(--gold-300); stroke-width: 1.5; opacity: .75; }

.hero__content { text-align: center; max-width: 800px; }
.hero__title {
  font-size: clamp(2.9rem, 10vw, 5.75rem); font-weight: 600; letter-spacing: -.01em;
  color: var(--ivory); margin: .3rem 0 .6rem;
}
.hero__tagline { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(250, 246, 238, .9); max-width: 36ch; margin: 0 auto 1.75rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 1.75rem 0 1.5rem; }
.hero__schedule { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.hero__schedule li {
  display: inline-flex; align-items: baseline; gap: .55rem;
  padding: .45rem .95rem; border-radius: 999px; font-size: .92rem;
  background: rgba(250, 246, 238, .1); border: 1px solid rgba(250, 246, 238, .18);
}
.hero__schedule li.is-next { background: rgba(233, 200, 106, .16); border-color: rgba(233, 200, 106, .55); }
.chip__next { font: 800 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); align-self: center; padding-right: .2rem; border-right: 1px solid rgba(233, 200, 106, .45); margin-right: .1rem; }
.chip__day { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--gold-300); }
.hero__address {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem;
  color: rgba(250, 246, 238, .85); text-decoration: none; font-size: .95rem; font-weight: 600;
  border-bottom: 1px solid rgba(233, 200, 106, .35); padding-bottom: .15rem;
}
.hero__address:hover { color: var(--gold-300); border-color: var(--gold-300); }
.hero__address svg { width: 18px; height: 18px; color: var(--gold-300); flex: none; }
.hero__address:empty { display: none; }

/* Entrada orquestada del hero */
.hero__content > * { animation: subir .8s ease both; }
.hero__content > :nth-child(2) { animation-delay: .1s; }
.hero__content > :nth-child(3) { animation-delay: .2s; }
.hero__content > :nth-child(4) { animation-delay: .3s; }
.hero__content > :nth-child(5) { animation-delay: .4s; }
.hero__content > :nth-child(6) { animation-delay: .5s; }
.hero__content > :nth-child(7) { animation-delay: .6s; }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------------- elementos compartidos ---------------- */
.eyebrow { font: 700 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700); margin: 0 0 .75rem; }
.eyebrow--light { color: var(--gold-300); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font: 700 1rem var(--sans); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold-500); color: var(--indigo-900); }
.btn--gold:hover { background: var(--gold-300); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(250, 246, 238, .55); }
.btn--ghost:hover { border-color: var(--ivory); background: rgba(250, 246, 238, .08); }
.btn--indigo { background: var(--indigo-800); color: var(--white); }
.btn--indigo:hover { background: var(--indigo-600); }
.btn--outline { background: transparent; color: var(--indigo-800); border-color: var(--indigo-800); }
.btn--outline:hover { background: var(--indigo-800); color: var(--white); }

/* Versículos como elemento de diseño */
.verse { margin: 0; padding: 0; }
.verse__text {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.4; margin: 0 0 .55rem;
}
.verse__text::before { content: "\201C"; }
.verse__text::after { content: "\201D"; }
.verse__ref {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-style: normal; font-weight: 700;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}
.verse__ref::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; opacity: .7; }
.verse--hero { max-width: 44ch; margin: 0 auto; color: var(--gold-300); }
.verse--hero .verse__text { color: var(--gold-300); }
.verse--inline { max-width: 60ch; margin: 2.5rem auto 0; text-align: center; color: var(--gold-700); }
.verse--inline .verse__text { color: var(--indigo-800); font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.verse--inline .verse__ref { justify-content: center; }
.verse--card { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--gold-700); }
.verse--card .verse__text { color: var(--indigo-800); font-size: 1.2rem; }
.verse--light { max-width: 52ch; margin: 1.5rem auto 0; color: var(--gold-300); }
.verse--light .verse__text { color: var(--ivory); }
.verse--light .verse__ref { justify-content: center; }
.verse--footer { max-width: 44ch; margin: 2.75rem auto 1.75rem; text-align: center; color: var(--gold-300); }
.verse--footer .verse__text { color: var(--ivory); font-size: 1.3rem; }
.verse--footer .verse__ref { justify-content: center; }

/* Marcador de dato pendiente */
.pending {
  display: inline-block; padding: 0 .4em; border-radius: 6px;
  background: #FFF4CC; color: #6B5300; border: 1px dashed var(--gold-500);
  font: 700 .85em/1.5 var(--sans); font-style: normal; letter-spacing: 0; text-transform: none;
}
.section--indigo .pending, .footer .pending { background: rgba(233, 200, 106, .15); color: var(--gold-300); border-color: rgba(233, 200, 106, .6); }
.pending-note { margin: 1.5rem 0 0; font-size: .95rem; color: var(--ink-muted); }

/* Placeholder de foto (se reemplaza al poner la ruta de la imagen en content.js) */
.ph {
  aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center;
  padding: 1rem; color: var(--indigo-600); font-size: .85rem; line-height: 1.4;
  background: repeating-linear-gradient(45deg, #EEF2FA 0 12px, #E4EAF7 12px 24px);
  border: 2px dashed #B9C4E4; border-radius: 12px;
}
.ph--wide { aspect-ratio: 3 / 2; }
.ph__label { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; margin-bottom: .25rem; }

/* ---------------- secciones ---------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--ivory { background: var(--ivory); }
.section--white { background: var(--white); }
.section--indigo { background: var(--indigo-800); color: var(--ivory); }
.section--indigo h2, .section--indigo h3 { color: var(--ivory); }
.section__title { font-size: clamp(2rem, 5vw, 2.9rem); }
.section__intro { font-size: 1.1rem; color: var(--ink-muted); max-width: 62ch; margin: 0 0 2rem; }
.section__note { margin: 1.25rem 0 0; font-size: .92rem; color: var(--ink-muted); }
.section__note--soft { font-style: italic; }
.section__note--empty {
  margin: 0 0 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: var(--ivory); border: 1px dashed var(--line); font-size: 1rem;
}
.section--ivory .section__note--empty { background: var(--white); }
.section--indigo .section__intro { color: rgba(250, 246, 238, .82); }
.lead { font-size: 1.15rem; }

.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: start; }
  .grid-2--even { grid-template-columns: 1fr 1fr; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Nosotros */
.mission { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 600px) { .mission { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.mission__item { padding-top: 1rem; border-top: 2px solid var(--gold-500); }
.mission__item h3 { font-size: 1.5rem; margin-bottom: .35em; }
.mission__item p { margin: 0; color: var(--ink-muted); }
.belief { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border-top: 4px solid var(--gold-500); }
.belief h3 { font-size: 1.7rem; }
.belief__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.belief__list li { position: relative; padding-left: 1.5rem; }
.belief__list li::before { content: "\2726"; position: absolute; left: 0; top: .1em; color: var(--gold-500); font-size: .85rem; }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem; margin-top: 3rem; }
.photo { margin: 0; border-radius: 12px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
@media (max-width: 599px) { .photo-strip { grid-template-columns: 1fr; } .photo-strip .ph--wide { aspect-ratio: 2 / 1; } }

/* Servicios */
.schedule-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .schedule-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; } }
.sched-card {
  background: var(--ivory); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.4rem;
  border-left: 4px solid var(--gold-500); box-shadow: var(--shadow);
}
.sched-card__day { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--indigo-800); margin: 0; }
.sched-card__time { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; color: var(--indigo-600); margin: .25rem 0 .85rem; }
.sched-card__name { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 .3rem; }
.sched-card__desc { margin: 0; font-size: .95rem; color: var(--ink-muted); }

/* Pastores */
.pastors { display: grid; gap: 2rem; }
.pastor { display: grid; gap: 1.5rem; background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
@media (min-width: 800px) { .pastor { grid-template-columns: 300px 1fr; align-items: center; gap: 2.5rem; padding: 2rem; } }
.pastor__photo { border-radius: 12px; overflow: hidden; }
.pastor__photo img { border: 3px solid var(--gold-300); border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.pastor__role { font: 700 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin: 0 0 .35rem; }
.pastor__name { font-size: 2rem; margin: 0 0 .75rem; }
.pastor__bio { margin: 0; }
.pastor__email { margin: .85rem 0 0; display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.pastor__email svg { width: 1.1em; height: 1.1em; flex: none; color: var(--gold-700); }

/* Prédicas (YouTube) */
.sermons { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .sermons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sermons { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.sermon { display: flex; flex-direction: column; gap: .4rem; }
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden; background: var(--indigo-900); cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.yt:hover img { transform: scale(1.04); }
.yt__play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%;
  background: var(--gold-500); color: var(--indigo-900); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s ease;
}
.yt__play svg { width: 30px; height: 30px; margin-left: 3px; }
.yt:hover .yt__play { transform: scale(1.08); }
.yt:focus-visible { outline: 3px solid rgba(212, 169, 60, .6); outline-offset: 3px; }
.yt--playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt--ph {
  cursor: default; display: grid; place-items: center; align-content: center; gap: .3rem; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(135deg, var(--sky-100, #e8eef8) 0 12px, #f4f7fc 12px 24px); color: var(--indigo-600); font-size: .9rem;
  border: 1px dashed var(--indigo-300, #8e9ad1);
}
.sermon__title { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: .5rem 0 0; }
.sermon__meta { margin: 0; font-size: .88rem; color: var(--ink-muted); }
.sermon__desc { margin: 0; font-size: .92rem; color: var(--ink-muted); }
.sermons__more { display: flex; justify-content: center; margin-bottom: 1rem; }
.sermons__more .section__note { margin: 0; }

/* Estudios bíblicos */
.studies { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 800px) { .studies { grid-template-columns: repeat(2, 1fr); } }
.study {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem 1rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
}
.study__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-800); color: var(--gold-300); }
.study__icon svg { width: 24px; height: 24px; }
.study__title { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 .25rem; }
.study__desc { margin: 0 0 .25rem; font-size: .92rem; color: var(--ink-muted); }
.study__meta { margin: 0; font-size: .85rem; color: var(--ink-muted); }
.study__action { grid-column: 1 / -1; }
@media (min-width: 560px) { .study { grid-template-columns: auto 1fr auto; align-items: center; } .study__action { grid-column: auto; } }
.study__pending { font-size: .9rem; color: var(--ink-muted); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }

/* Oración y visitas */
.section--prayer { background: radial-gradient(70% 55% at 50% 0%, rgba(233, 200, 106, .16), transparent 62%), var(--indigo-800); }
.prayer-cards { display: grid; gap: 1rem; margin: 0 0 1.25rem; }
@media (min-width: 720px) { .prayer-cards { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.prayer-card {
  background: rgba(250, 246, 238, .06); border: 1px solid rgba(233, 200, 106, .38); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem;
}
.prayer-card h3 { margin: 0; font-size: 1.55rem; }
.prayer-card p { margin: 0 0 .75rem; color: rgba(250, 246, 238, .82); }
.prayer-card .btn { align-self: flex-start; margin-top: auto; }
.prayer-note { margin: 0 0 1.5rem; font-size: .9rem; color: rgba(250, 246, 238, .7); }

/* Tipo de solicitud en el formulario */
.form__types { border: 0; padding: 0; margin: 0; min-width: 0; }
.form__types legend { font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: .45rem; }
.types { display: flex; flex-wrap: wrap; gap: .5rem; }
.type { position: relative; }
.type input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.type span {
  display: inline-block; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .15s, color .15s;
}
.type input:checked + span { background: var(--indigo-800); color: var(--gold-300); border-color: var(--indigo-800); }
.type input:focus-visible + span { outline: 3px solid rgba(212, 169, 60, .45); outline-offset: 2px; }

/* Ministerios */
.ministries { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
@media (min-width: 820px) { .ministries { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.ministry { background: var(--ivory); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--line); }
.ministry__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo-800); color: var(--gold-300); margin-bottom: .9rem; }
.ministry__icon svg { width: 22px; height: 22px; }
.ministry__name { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 .3rem; }
.ministry__desc { margin: 0; font-size: .92rem; color: var(--ink-muted); }

/* Ubicación */
.location { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .location { grid-template-columns: 1.4fr 1fr; align-items: stretch; } }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; background: var(--sky-100); }
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.location__card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; border-top: 4px solid var(--gold-500); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.location__card h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.address { font-size: 1.2rem; font-weight: 700; margin: 0; }
.address-2 { margin: 0 0 1rem; color: var(--ink-muted); }
.location__card .btn { align-self: flex-start; }
.location__hint { margin: 1.25rem 0 0; font-size: .95rem; color: var(--ink-muted); }


/* Contacto */
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list__icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--indigo-600); }
.contact-list__icon svg { width: 18px; height: 18px; }
.contact-list__label { display: block; font: 700 .72rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); margin-bottom: .1rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.social-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.social-links a, .footer__social a { display: inline-flex; align-items: center; gap: .4rem; }
.social-links svg, .footer__social svg { width: 18px; height: 18px; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: 1rem; position: relative; }
@media (min-width: 600px) { .form { padding: 2rem; } .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__row { display: grid; gap: .35rem; }
.form__row--2 { gap: 1rem; }
.form label { font-weight: 700; font-size: .9rem; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  padding: .75rem .9rem; border: 1px solid #C9CFE3; border-radius: 10px;
}
.form select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 1.1em; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--indigo-600); outline: 3px solid rgba(212, 169, 60, .45); outline-offset: 0; }
/* Obligatorios: asterisco en la etiqueta; campo con error en rojo */
.form__row.is-required > label::after { content: " *"; color: #A33A2B; font-weight: 700; }
.form .is-invalid { border-color: #A33A2B; box-shadow: 0 0 0 3px rgba(163, 58, 43, .15); }
.form__help { margin: -.25rem 0 0; font-size: .85rem; color: var(--ink-muted); }
.form__required-note { margin: 0; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form__status.is-error { color: #A33A2B; }
.form__status.is-success { color: #2E6B3A; }

/* Tarjeta alternativa mientras el formulario no está conectado */
.form-fallback {
  background: var(--ivory); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--gold-500);
}
.form-fallback h3 { font-size: 1.7rem; margin-bottom: .4rem; }
.form-fallback p { color: var(--ink-muted); margin-bottom: 1.25rem; }
.form-fallback__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------------- pie de página ---------------- */
.footer { background: var(--indigo-900); color: rgba(250, 246, 238, .85); padding: 3.5rem 0 2rem; border-top: 1px solid rgba(233, 200, 106, .2); }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.3fr 1.2fr .9fr .8fr; gap: 3rem; } }
.footer h3 { font: 700 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin: 0 0 .75rem; }
.footer__brand { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--ivory); margin: 0 0 .4rem; }
.footer__address, .footer__city { margin: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer a { color: var(--ivory); text-decoration: none; }
.footer a:hover { color: var(--gold-300); }
.footer__legal { margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(250, 246, 238, .1); text-align: center; font-size: .85rem; color: rgba(250, 246, 238, .6); }

/* ---------------- barra de acciones rápidas (solo celular/tablet) ---------------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(20, 26, 62, .97); border-top: 1px solid rgba(233, 200, 106, .3);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px rgba(10, 14, 40, .25);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  min-height: 58px; padding: .5rem .25rem; color: var(--ivory); text-decoration: none;
  font: 700 .72rem/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase;
}
.action-bar a + a { border-left: 1px solid rgba(250, 246, 238, .1); }
.action-bar a:active { background: rgba(233, 200, 106, .12); }
.action-bar svg { width: 22px; height: 22px; color: var(--gold-300); }
.action-bar:empty { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .hero { padding-bottom: calc(6rem + 58px); }
  .footer { padding-bottom: 2.5rem; }
}
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------------- modo revisión (?revision): aviso para quien edita el sitio ---------------- */
html.is-review::before {
  content: "Modo revisión: los datos en amarillo no los ve el público";
  position: fixed; left: 50%; bottom: calc(66px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70;
  background: #FFF4CC; color: #6B5300; border: 1px dashed var(--gold-500); border-radius: 999px;
  padding: .4rem .9rem; font: 700 .78rem var(--sans); white-space: nowrap; max-width: calc(100vw - 2rem); overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 900px) { html.is-review::before { bottom: 1rem; } }

/* ---------------- página 404 ---------------- */
.notfound { min-height: calc(100svh - var(--topbar-h)); display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .eyebrow { margin-bottom: 1rem; }
.notfound h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
.notfound p { color: var(--ink-muted); max-width: 48ch; margin-inline: auto; }
.notfound .hero__cta { justify-content: center; }

/* ---------------- accesibilidad: menos movimiento ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__sky::after, .hero__content > * { animation: none; }
  .btn, .menu-btn__bar, .reveal, .topbar, .lang-toggle { transition: none; }
  .btn:hover { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
