/* =====================================================
   AVIVA Comunidad de Fe — Sistema de diseño
   Identidad: negro/blanco puro, tipografía geométrica
   ===================================================== */

:root {
  /* Color */
  --black: #000000;
  --ink: #0a0a0a;
  --graphite: #161616;
  --steel: #2a2a2a;
  --smoke: #4a4a4a;
  --silver: #8a8a8a;
  --bone: #e9e7e2;
  --paper: #f5f3ee;
  --white: #ffffff;
  --line: rgba(255,255,255,0.12);
  --line-dark: rgba(0,0,0,0.12);

  /* Typography */
  --display: 'Outfit', 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body: 'Manrope', 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 10vw, 9rem);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 7.5rem; /* el header fijo no tapa los títulos al saltar a un ancla */ }
body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; transition: opacity .25s var(--ease); }
a:hover { opacity: .65; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke);
}
.eyebrow.on-dark { color: var(--silver); }

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: lowercase;
}
.display--xxl { font-size: clamp(3.5rem, 14vw, 12rem); }
.display--xl  { font-size: clamp(3rem, 10vw, 8.5rem); }
.display--l   { font-size: clamp(2.5rem, 7vw, 5.5rem); }
.display--m   { font-size: clamp(2rem, 5vw, 3.75rem); }
.display--s   { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--steel);
  max-width: 60ch;
}
.lede.on-dark { color: var(--bone); }

p { max-width: 70ch; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--ink); color: var(--white); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--bone { background: var(--bone); color: var(--ink); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--split {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .grid--split { grid-template-columns: 1fr 1fr; }
  .grid--split-asym { grid-template-columns: 5fr 7fr; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--on-dark { color: var(--white); }
.nav--on-light { color: var(--ink); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.04em;
  line-height: 1;
}
.nav__brand { max-height: 72px; overflow: hidden; }
.nav__brand svg { width: 90px; height: auto; }
.nav__brand-img {
  display: none !important;
  height: 36px;
  width: auto;
  max-width: 200px;
  max-height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav__brand-img--text {
  width: 150px;
  height: auto;
  max-width: 150px;
  max-height: 60px;
}
/* Estado inicial sobre hero oscuro → ISO blanco */
.nav--on-dark:not(.is-scrolled) .nav__brand-img--iso-light { display: block !important; }
/* Header fijo tras scroll sobre hero oscuro → logo textual blanco */
.nav--on-dark.is-scrolled .nav__brand-img--text { display: block !important; }
/* Header sobre fondo claro (legales) → ISO negro */
.nav--on-light .nav__brand-img--iso-dark { display: block !important; }
.nav__menu {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.25rem);
}
@media (min-width: 1024px) {
  .nav__menu { display: flex; }
}
.nav__link {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
}
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: currentColor;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav__cta:hover { opacity: 1; background: currentColor; color: var(--ink); }
.nav--on-dark .nav__cta:hover { color: var(--ink); background: var(--white); }
.nav--on-light .nav__cta:hover { color: var(--white); background: var(--ink); }

/* Language switcher (ES/EN) */
.nav__lang {
  display: inline-flex;
  align-items: center;
  padding: .28rem .6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  opacity: .7;
  transition: opacity .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.nav__lang:hover { opacity: 1; }
.nav__link.nav__lang[aria-current="page"]::after { display: none; }

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  color: var(--white);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.is-scrolled.nav--on-light {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-bottom-color: var(--line-dark);
}

/* Toggle (hamburguesa) — solo móvil y tablet (<1024px) */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-right: -10px;
}
@media (min-width: 1024px) {
  .nav__toggle { display: none; }
}
.nav__toggle span {
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .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); }

.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--white);
  padding: 6rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateY(-100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s var(--ease), visibility 0s linear .45s;
  z-index: 49;
}
.nav__drawer.is-open {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: transform .45s var(--ease), opacity .3s var(--ease), visibility 0s linear 0s;
}
@media (min-width: 1024px) {
  .nav__drawer { display: none; }
}
.nav__drawer { overflow-y: auto; overscroll-behavior: contain; }
/* Menú abierto: main.js saca el drawer del header (queda detrás, z-index 49) y el header
   (z-index 50) se ve encima con el logo y la X en blanco, sin fondo propio. */
.nav.is-menu-open,
.nav.is-scrolled.nav--on-light.is-menu-open {
  background: transparent;
  color: var(--white);
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav--on-light.is-menu-open .nav__brand-img--iso-dark { display: none !important; }
.nav--on-light.is-menu-open .nav__brand-img--iso-light { display: block !important; }
/* El aviso del directo no tapa los enlaces del menú */
body.menu-open .aviva-live { display: none !important; }
.nav__drawer a {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: lowercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: 1.05rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { opacity: 1; transform: translateY(-2px); }
.btn--solid     { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--graphite); }
.btn--invert    { background: var(--white); color: var(--ink); }
.btn--invert:hover { background: var(--bone); }
.btn--ghost     { border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--ghost.on-dark:hover { color: var(--ink); background: var(--white); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(7rem, 14vw, 12rem) clamp(3rem, 6vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.06), transparent 45%),
    radial-gradient(circle at 82% 88%, rgba(255,255,255,0.04), transparent 50%);
  pointer-events: none;
  z-index: -1;
}
.hero__lockup { display: flex; flex-direction: column; gap: .25em; }
.hero__lockup .display { display: block; }
.hero__lockup .accent { color: var(--silver); }
.hero__meta {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) {
  .hero__meta { grid-template-columns: 5fr 4fr 3fr; align-items: end; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: var(--gutter);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--silver);
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.hero__scroll::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ---------- Service cards (signature module) ---------- */
.service-stack {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: var(--ink);
  align-items: center;
}
@media (min-width: 800px) {
  .service { grid-template-columns: 4fr 6fr 2fr; gap: 2rem; }
}
.service__day {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  text-transform: lowercase;
}
.service__time { color: var(--silver); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.service__name { font-size: 1.05rem; color: var(--bone); max-width: 38ch; }
.service__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
}
.service__cta:hover { color: var(--white); }

/* ---------- Big quote ---------- */
.quote {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  text-transform: lowercase;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
}
.quote__cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--body);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 500;
}

/* ---------- Pillars / value cards ---------- */
.pillar {
  border-top: 1px solid var(--line-dark);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section--dark .pillar { border-color: var(--line); }
.pillar__num {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--smoke);
}
.section--dark .pillar__num { color: var(--silver); }
.pillar__text a { text-decoration: underline; text-underline-offset: 3px; }
.pillar__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.pillar__text {
  color: var(--smoke);
  font-size: 1rem;
}
.section--dark .pillar__text { color: var(--bone); }

/* ---------- Type block (graphic element) ---------- */
.typeblock {
  display: grid;
  /* Mitades iguales salvo que una palabra no quepa (p. ej. «esperando.» a 1440 px): entonces esa columna crece */
  grid-template-columns: repeat(2, minmax(min-content, 1fr));
  gap: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.04em;
  text-transform: lowercase;
  line-height: .85;
  font-size: clamp(3rem, 11vw, 9rem);
}
.typeblock span {
  padding: .15em .25em;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 1.4em;
}
.section--dark .typeblock span { border-color: var(--line); }
.section--paper .typeblock span,
.section--bone .typeblock span { border-color: var(--line-dark); }
.typeblock span.invert { background: var(--white); color: var(--ink); }
.section--dark .typeblock span.invert { background: var(--white); color: var(--ink); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--ink);
  color: var(--white);
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(4rem, 7vw, 7rem);
  position: relative;
  overflow: hidden;
}
.page-header__crumbs {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.5rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.page-header__crumbs span { color: var(--smoke); }
.page-header__title {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
  text-transform: lowercase;
}
.page-header__lede {
  margin-top: 1.5rem;
  max-width: 60ch;
  color: var(--bone);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}

/* ---------- Pastor card ---------- */
.pastors {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) { .pastors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pastor {
  border: 1px solid var(--line-dark);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.section--dark .pastor { border-color: var(--line); }
.pastor__role {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--smoke);
}
.section--dark .pastor__role { color: var(--silver); }
.pastor__name {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1;
}
.pastor__bio { color: var(--smoke); }
.section--dark .pastor__bio { color: var(--bone); }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.5rem; max-width: 640px; }
.form__field { display: flex; flex-direction: column; gap: .5rem; }
.form__label {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 600;
}
.section--dark .form__label { color: var(--silver); }
.form__input,
.form__textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: .75rem 0;
  font-size: 1.05rem;
  color: inherit;
  outline: none;
  width: 100%;
  border-radius: 0;
  transition: border-color .25s var(--ease);
}
.form__input:focus,
.form__textarea:focus { border-bottom-color: var(--silver); }
.form__textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--white);
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: 2rem;
}
.footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) {
  .footer__top { grid-template-columns: 6fr 3fr 3fr; }
}
.footer__brand {
  display: inline-block;
  line-height: 0;
}
.footer__brand img {
  display: block;
  width: 300px;
  height: auto;
  max-width: 300px;
  object-fit: contain;
}
.footer__col h4 {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.footer__col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer__bottom {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  font-size: .82rem;
  color: var(--silver);
}
.footer__bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}
.footer__bottom-row--copyright { justify-content: flex-start; }
.footer__bottom-row--legal { justify-content: flex-end; }
.footer__bottom-divider {
  height: 1px;
  background: var(--line);
  margin: .85rem 0 .35rem;
}
.footer__copyright { color: var(--silver); }
.footer__credits { color: var(--silver); }
.footer__credits a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--smoke);
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.footer__credits a:hover { opacity: 1; color: var(--white); text-decoration-color: var(--white); }
.footer__credits a strong { color: var(--white); font-weight: 600; }
.footer__social { display: flex; gap: 1.25rem; }
.footer__social a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.footer__social a:hover { opacity: 1; background: var(--white); color: var(--ink); border-color: var(--white); }
.footer__social svg { width: 16px; height: 16px; }

/* ---------- Utilities ---------- */
.u-mt-s { margin-top: 1rem; }
.u-mt-m { margin-top: 2rem; }
.u-mt-l { margin-top: 3rem; }
.u-mb-s { margin-bottom: 1rem; }
.u-mb-m { margin-bottom: 2rem; }
.u-mb-l { margin-bottom: 3rem; }
.u-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* «Saltar al contenido» aparece al llegar con el tabulador */
a.sr-only:focus {
  position: fixed; top: .75rem; left: .75rem; z-index: 10001;
  width: auto; height: auto; margin: 0; padding: .7rem 1.1rem;
  clip: auto; overflow: visible; white-space: nowrap;
  background: var(--white); color: var(--ink);
  border-radius: 999px; font-weight: 600;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}

.divider {
  height: 1px;
  background: var(--line-dark);
  margin-block: clamp(2rem, 4vw, 4rem);
}
.section--dark .divider { background: var(--line); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Map block ---------- */
.map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: var(--steel);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
  padding-block: 1.25rem;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -.02em;
}
.marquee__track span { padding-right: 3rem; border-right: 1px solid var(--line); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Selection ---------- */
::selection { background: var(--ink); color: var(--white); }

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .marquee, .hero__scroll { display: none; }
  body { color: #000; background: #fff; }
}

/* Enlaces legales bajo el copyright */
.footer__legal-links { color: var(--silver); font-size: .92rem; }
.footer__legal-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--smoke); }
.footer__legal-links a:hover { color: var(--white); text-decoration-color: var(--white); }

/* =====================================================
   AVIVA Consent — Banner de cookies (AEPD/RGPD)
   ===================================================== */

.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  background: #0a0a0a;
  color: #fff;
  border-top: 1px solid #2a2a2a;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 4vw, 2rem);
  animation: consentSlideUp .35s ease;
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}
@keyframes consentSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.consent-banner__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center;
}
@media (min-width: 760px) {
  .consent-banner__inner { grid-template-columns: 1fr auto; gap: 2rem; }
}
.consent-banner__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .25rem; }
.consent-banner__lede  { font-size: .92rem; line-height: 1.5; color: #cccccc; margin: 0; max-width: 70ch; }
.consent-banner__lede a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.consent-banner__buttons { display: flex; flex-wrap: wrap; gap: .5rem; }

.consent-btn {
  font-family: inherit; font-size: .9rem; font-weight: 600;
  padding: .65rem 1.1rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.consent-btn--primary { background: #fff; color: #0a0a0a; }
.consent-btn--primary:hover { background: #e8e8e8; }
.consent-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.consent-btn--ghost-light:hover { border-color: #fff; }
.consent-btn--ghost { background: transparent; color: #0a0a0a; border-color: #c8c8c8; }
.consent-btn--ghost:hover { border-color: #0a0a0a; }
.consent-btn--solid { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.consent-btn--solid:hover { background: #222; border-color: #222; }

/* ============== Modal ============== */
.consent-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.consent-modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.55); }
.consent-modal__dialog {
  position: relative; background: #fff; color: #0a0a0a;
  width: 100%; max-width: 640px; max-height: 90vh;
  border-radius: 12px; display: flex; flex-direction: column;
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
  overflow: hidden; animation: consentFadeIn .25s ease;
}
@keyframes consentFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.consent-modal__header { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.5rem; border-bottom: 1px solid #ececec; }
.consent-modal__title  { margin: 0; font-size: 1.2rem; font-weight: 700; }
.consent-modal__close  { background: none; border: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: #888; padding: 0 .25rem; }
.consent-modal__close:hover { color: #0a0a0a; }
.consent-modal__body   { overflow-y: auto; padding: 1.25rem 1.5rem; font-size: .98rem; line-height: 1.55; }
.consent-modal__body > p { margin: 0 0 1rem; color: #555; }
.consent-modal__form   { display: grid; gap: .65rem; }
.consent-modal__footer { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; padding: 1rem 1.5rem; border-top: 1px solid #ececec; background: #fafafa; }

.consent-toggle {
  display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; row-gap: .2rem;
  padding: .9rem 1rem; border: 1px solid #e5e5e5; border-radius: 10px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.consent-toggle:hover { border-color: #0a0a0a; }
.consent-toggle:has(input:checked) { border-color: #0a0a0a; background: #fafafa; }
.consent-toggle input[type=checkbox] {
  grid-row: 1; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0;
  cursor: pointer; accent-color: #0a0a0a;
}
.consent-toggle--locked input[type=checkbox] { cursor: not-allowed; opacity: .5; }
.consent-toggle__name { grid-column: 2; grid-row: 1; font-weight: 600; }
.consent-toggle__name em { color: #888; font-style: normal; font-weight: 400; font-size: .9em; }
.consent-toggle__desc { grid-column: 2; font-size: .9rem; color: #666; line-height: 1.5; }
.consent-toggle__desc em { color: #888; font-style: italic; }

body.consent-modal-open { overflow: hidden; }

/* ============== Placeholder de mapa ============== */
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; text-align: center;
  background: #f4f4f4 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 12c-13.3 0-24 10.7-24 24 0 18 24 52 24 52s24-34 24-52c0-13.3-10.7-24-24-24z" fill="none" stroke="%23bbb" stroke-width="3"/><circle cx="50" cy="36" r="8" fill="none" stroke="%23bbb" stroke-width="3"/></svg>') center 24px / 80px no-repeat;
  border: 1px dashed #d1d1d1; border-radius: 12px;
  padding: 120px 1.5rem 1.75rem; min-height: 320px; color: #555;
}
.map-placeholder__title { font-weight: 600; color: #2a2a2a; margin: 0; }
.map-placeholder__lede  { margin: 0; font-size: .92rem; max-width: 42ch; line-height: 1.55; }
.map-placeholder__buttons { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .25rem; }
.map-placeholder .consent-btn { font-size: .88rem; padding: .55rem 1rem; }

/* ============== Trigger en footer ============== */
.footer__cookie-trigger {
  background: none; border: none; padding: 0; font: inherit; color: inherit;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--smoke);
}
.footer__cookie-trigger:hover { color: var(--white); text-decoration-color: var(--white); }

/* =====================================================
   /donaciones — Formulario de donación online (v2)
   ===================================================== */
.section--donate {
  background: linear-gradient(180deg, var(--paper) 0%, #efece5 100%);
  position: relative;
}
.grid--split.donate {
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.donate__perks {
  list-style: none;
  padding: 0;
  font-size: .95rem;
  color: var(--smoke);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.donate__perks li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.55;
}
.donate__perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
}
.donate__perks strong { color: var(--ink); font-weight: 700; }

/* Card del formulario — flotante con sombra */
.donate-form--v2 {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 10px 30px -8px rgba(0,0,0,.12),
    0 30px 60px -20px rgba(0,0,0,.08);
}

/* Toggle frecuencia */
.donate-form__frequency {
  display: flex;
  background: var(--paper);
  border-radius: 999px;
  padding: 4px;
  align-self: center;
  gap: 2px;
  border: 1px solid var(--line-dark);
}
.donate-form__freq-btn {
  padding: .7rem 1.6rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--smoke);
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.donate-form__freq-btn:hover { color: var(--ink); opacity: 1; }
.donate-form__freq-btn.is-active {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.3);
}

/* Importes sugeridos como cards visuales */
.donate-form__amounts {
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.donate-form__suggestions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
}
.amount-card {
  position: relative;
  padding: 1.1rem 0;
  border: 1.5px solid var(--line-dark);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}
.amount-card:hover {
  border-color: var(--ink);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.12);
}
.amount-card.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.25);
}
.amount-card__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.03em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: .1rem;
}
.amount-card__currency {
  font-size: .65em;
  opacity: .7;
}

/* Input importe libre — secundario */
.donate-form__custom {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.donate-form__custom-label {
  font-size: .72rem;
  color: var(--silver);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.donate-form__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line-dark);
  border-radius: 10px;
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.donate-form__input-wrap:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}
.donate-form__input-wrap input {
  flex: 1;
  border: 0;
  padding: .95rem 1.25rem;
  font-size: 1.5rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.02em;
  background: transparent;
  outline: none;
  color: var(--ink);
  -moz-appearance: textfield;
  width: 100%;
}
.donate-form__input-wrap input::-webkit-outer-spin-button,
.donate-form__input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.donate-form__input-wrap input::placeholder { color: var(--silver); }
.donate-form__currency {
  padding-right: 1.25rem;
  font-size: 1.5rem;
  font-family: var(--display);
  font-weight: 700;
  color: var(--silver);
}

/* Sección fiscal desplegable */
.donate-form__fiscal {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.25rem;
}
.donate-form__fiscal summary {
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .4rem 0;
  color: var(--ink);
}
.donate-form__fiscal summary::-webkit-details-marker { display: none; }
.donate-form__fiscal summary::after {
  content: "";
  width: 22px;
  height: 22px;
  margin-left: auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .25s var(--ease);
}
.donate-form__fiscal[open] summary::after { transform: rotate(180deg); }
.donate-form__fiscal-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 8px;
  color: var(--ink);
}
.donate-form__fiscal-icon svg { width: 18px; height: 18px; }
.donate-form__fiscal-tag {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--smoke);
  background: var(--paper);
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-left: .25rem;
}
.donate-form__fiscal-body {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-top: 1.1rem;
}
.donate-form__fiscal-hint {
  font-size: .85rem;
  color: var(--smoke);
  line-height: 1.55;
}
.donate-form__field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.donate-form__field > span {
  font-size: .7rem;
  color: var(--silver);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}
.donate-form__field input {
  border: 1.5px solid var(--line-dark);
  border-radius: 8px;
  padding: .8rem 1rem;
  font-size: 1rem;
  font-family: var(--body);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.donate-form__field input:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}

/* Aviso Bizum no disponible en mensual */
.donate-form__bizum-notice {
  padding: .85rem 1.1rem;
  background: var(--paper);
  border-radius: 8px;
  border-left: 3px solid var(--ink);
  font-size: .85rem;
  color: var(--smoke);
  line-height: 1.5;
}
.donate-form__bizum-notice span { color: var(--ink); margin-right: .4rem; font-weight: 700; }

/* Submit CTA — grande, full-width */
.donate-form__submit {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 1.15rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: 0 4px 12px -2px rgba(0,0,0,.2);
}
.donate-form__submit:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -2px rgba(0,0,0,.28);
  background: #000;
}
.donate-form__submit[disabled] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.donate-form__submit .arrow {
  display: inline-block;
  transition: transform .2s var(--ease);
}
.donate-form__submit:hover .arrow { transform: translateX(3px); }
.donate-form__submit-text [data-cta-amount]:not(:empty)::before { content: ""; }

/* Separador "o" entre Stripe y PayPal */
.donate-form__divider {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: .25rem 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
}
.donate-form__divider::before,
.donate-form__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-dark);
}
.donate-form__divider span {
  padding: 0 .15rem;
}

/* CTA secundario — PayPal (wordmark en texto, sin SVG) */
.donate-form__paypal {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: .45rem;
  padding: .95rem 1.5rem;
  background: #ffc439;       /* PayPal yellow oficial */
  color: #003087;            /* PayPal navy */
  border: 1px solid #f0b32f;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: 0 3px 10px -2px rgba(0,0,0,.1);
}
.donate-form__paypal:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: #f5b921;
  box-shadow: 0 5px 15px -2px rgba(0,0,0,.15);
}
.donate-form__paypal[disabled] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.donate-form__paypal-text {
  color: #003087;
  font-weight: 600;
}
/* Wordmark PayPal: bicolor oficial, italic, sans-serif clásica */
.donate-form__paypal-brand {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 1.1em;
  letter-spacing: -.015em;
}
.donate-form__paypal-brand-pay { color: #003087; } /* azul oscuro */
.donate-form__paypal-brand-pal { color: #009cde; } /* azul claro */

/* Logos de métodos de pago (reales) */
.donate-form__methods {
  display: flex;
  gap: .85rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-top: .25rem;
}
.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 .55rem;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  opacity: .8;
  transition: opacity .2s var(--ease);
}
.pay-logo:hover { opacity: 1; }
.pay-logo svg { display: block; height: 18px; width: auto; }
.pay-logo--bizum svg { height: 16px; }
.pay-logo--paypal svg { height: 16px; }

.donate-form__trust {
  font-size: .76rem;
  color: var(--silver);
  text-align: center;
  line-height: 1.6;
  margin-top: -.35rem;
}
.donate-form__trust strong { color: var(--smoke); font-weight: 600; }

/* Responsive */
@media (max-width: 760px) {
  .donate-form__suggestions { grid-template-columns: repeat(2, 1fr); }
  .donate-form__input-wrap input,
  .donate-form__currency { font-size: 1.3rem; }
  .amount-card { min-height: 72px; }
  .amount-card__value { font-size: 1.55rem; }
}

/* =====================================================
   /donaciones-gracias y /donaciones-cancelada
   ===================================================== */
.donate-status { padding-block: clamp(5rem, 12vw, 9rem); }
.donate-status__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.donate-status__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line-dark);
  box-shadow: 0 10px 25px -10px rgba(0,0,0,.18);
}
.donate-status__icon svg { width: 44px; height: 44px; }
.donate-status--success .donate-status__icon { color: var(--ink); }
.donate-status--cancel .donate-status__icon { color: var(--smoke); }

.donate-status__title {
  margin-top: .5rem;
  font-size: clamp(2.75rem, 8vw, 5rem);
  letter-spacing: -.04em;
  line-height: .95;
}
.donate-status__lede {
  max-width: 56ch;
  margin: 0 auto;
}
.donate-status__steps {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  text-align: left;
}
.donate-status__step {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
}
.donate-status__step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--silver);
  display: block;
  margin-bottom: .5rem;
}
.donate-status__step h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
  color: var(--ink);
}
.donate-status__step p {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--smoke);
}
.donate-status__step a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-dark);
}
.donate-status__ctas {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 760px) {
  .donate-status__steps { grid-template-columns: 1fr; }
  .donate-status__icon { width: 64px; height: 64px; }
  .donate-status__icon svg { width: 32px; height: 32px; }
}

/* ---------- Foco visible con teclado (al final: pisa los outline:none de arriba) ---------- */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.form__input:focus-visible,
.form__textarea:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.donate-form__input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(10,10,10,.35); }
.donate-form__field input:focus-visible { box-shadow: 0 0 0 3px rgba(10,10,10,.35); }

/* ---------- Botón flotante de WhatsApp (lo crea main.js) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 8990;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float:hover { opacity: 1; transform: scale(1.06); box-shadow: 0 8px 26px rgba(0,0,0,.34); }
.wa-float:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0a0a0a; }
.wa-float svg { width: 30px; height: 30px; }
/* El aviso del directo (portada) se coloca encima del botón */
body.has-wa .aviva-live { bottom: 84px; }
@media (max-width: 600px) {
  .wa-float { right: 12px; bottom: 12px; width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
  body.has-wa .aviva-live { bottom: 76px; }
}
body.menu-open .wa-float { display: none; }
@media print { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float:hover { transition: none; transform: none; } }

/* Páginas legales (aviso legal, privacidad, cookies): el contenido empieza bajo el header fijo.
   Su <style> propio solo daba 2–4rem arriba y el logo tapaba las migas de pan. */
main > .legal:first-child { padding-top: clamp(7.5rem, 10vw, 9.5rem); }

/* ---------- Predicaciones (páginas que genera scripts/predicaciones.mjs) ---------- */
.page-header__title--s { font-size: clamp(2.4rem, 6.5vw, 5rem); max-width: 18ch; }
.sermon__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) {
  .sermon__grid { grid-template-columns: 7fr 5fr; }
  .sermon__aside { position: sticky; top: 7rem; }
}
.sermon__text { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; margin-top: .5rem; }
.sermon__idea { margin-top: .75rem; padding-left: 1.25rem; border-left: 3px solid var(--ink); font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.45; max-width: 40ch; }
.sermon__points { list-style: decimal; margin-top: 1rem; padding-left: 1.4rem; display: grid; gap: 1rem; font-size: 1.1rem; line-height: 1.6; max-width: 62ch; }
.sermon__points li::marker { font-weight: 700; }
.sermon__reto { background: var(--paper); padding: 1.5rem 1.75rem; border-radius: 14px; }
.sermon__reto p { margin-top: .6rem; font-size: 1.1rem; line-height: 1.6; }
.sermon__note { font-size: .9rem; color: var(--smoke); }
.sermon__back { display: inline-block; margin-top: 1.25rem; font-weight: 600; }
.sermon-video { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--ink); color: var(--white); }
.sermon-video:hover { opacity: 1; }
.sermon-video img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: .88; transition: opacity .25s var(--ease); }
.sermon-video:hover img { opacity: 1; }
.sermon-video__play { position: absolute; left: 50%; top: calc(50% - 1.5rem); transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(10,10,10,.78); display: grid; place-items: center; }
.sermon-video__play svg { width: 28px; height: 28px; margin-left: 3px; }
.sermon-video__label { display: block; padding: .9rem 1.1rem; font-weight: 600; font-size: .95rem; }
.sermon-list { list-style: none; }
.sermon-item { padding-block: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line-dark); }
.sermon-item:last-child { border-bottom: 1px solid var(--line-dark); }
.sermon-item__title { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: .6rem; }
.sermon-item__idea { margin-top: .75rem; font-size: 1.05rem; line-height: 1.6; max-width: 70ch; }
.sermon-item__meta, .sermon-home__meta { margin-top: .5rem; font-size: .92rem; color: var(--smoke); }

/* ---------- Slider de la portada (lo mueve assets/js/hero-slider.js) ----------
   El slide activo marca la altura del slider (el de evento ocupa la pantalla; el de bienvenida,
   con su tipografía gigante, es más alto en escritorio). Los demás quedan encima, invisibles,
   y cambian con un fundido. Sin JS se ve solo el slide .is-active. */
.hero-slider { position: relative; overflow: hidden; background: var(--ink); }
.hero-slider .hero-slide:not(.is-active) { position: absolute; top: 0; left: 0; right: 0; opacity: 0; visibility: hidden; }
.hero-slide.is-active { z-index: 1; }
.hero-slider.is-ready .hero-slide { transition: opacity .9s var(--ease), visibility 0s linear .9s; }
.hero-slider.is-ready .hero-slide.is-active { transition: opacity .9s var(--ease), visibility 0s; }
/* Con más de un slide, sitio abajo para los controles */
.hero-slider:has(.hero-slide + .hero-slide) .hero-slide { padding-bottom: clamp(6rem, 9vw, 7.5rem); }
.hero-slider:has(.hero-slide + .hero-slide) .hero__scroll { display: none; }

/* Slide de evento: cartel entero (nunca se recorta su texto) sobre el mismo cartel difuminado */
.hero-slide--evento {
  justify-content: center;
  padding-top: clamp(5.5rem, 9vw, 7rem);
}
.evento__dato { white-space: nowrap; }
.evento__lugar { margin-top: .9rem; font-size: clamp(1rem, 1.3vw, 1.125rem); color: rgba(255,255,255,.82); }
.evento__fondo { position: absolute; inset: 0; z-index: -1; display: block; }
.evento__fondo img { width: 100%; height: 100%; max-width: none; object-fit: cover; transform: scale(1.08); }
.evento__fondo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,.55), rgba(10,10,10,0) 30%, rgba(10,10,10,0) 60%, rgba(10,10,10,.7)),
    radial-gradient(ellipse at center, rgba(10,10,10,0) 40%, rgba(10,10,10,.55));
}
.evento {
  /* El cartel cabe a lo alto de la pantalla (proporción 5:3) sin bajar de 320 px */
  width: min(100%, 1080px, max(320px, calc((100vh - 22rem) * 1.6677)));
  width: min(100%, 1080px, max(320px, calc((100svh - 22rem) * 1.6677)));
  margin-inline: auto;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.evento__cartel { display: block; }
.evento__cartel img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
}
.evento__info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.evento__titulo {
  margin-top: .6rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .95;
  text-transform: lowercase;
}
@media (max-width: 599px) {
  /* En el móvil el cartel va de borde a borde */
  .evento__cartel { margin-inline: calc(var(--gutter) * -1); }
  .evento__cartel img { border-radius: 0; }
}

/* Controles: pausa, anterior, puntos (con barra de progreso) y siguiente */
.hero-slider__controls {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  bottom: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
}
.hero-slider__controls[hidden] { display: none; }
.hero-slider__btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(10,10,10,.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
@media (hover: hover) {
  .hero-slider__btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
  .hero-slider__dot:hover::before { background: rgba(255,255,255,.7); }
}
.hero-slider__btn svg { width: 18px; height: 18px; fill: currentColor; }
.hero-slider__icon-play { display: none; }
.hero-slider.is-paused .hero-slider__icon-pause { display: none; }
.hero-slider.is-paused .hero-slider__icon-play { display: block; }
.hero-slider__dots { display: flex; align-items: center; gap: .35rem; padding-inline: .25rem; }
.hero-slider__dot { position: relative; width: 26px; height: 44px; transition: width .4s var(--ease); }
.hero-slider__dot[aria-current="true"] { width: 52px; }
.hero-slider__dot::before,
.hero-slider__dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
}
.hero-slider__dot::after { background: var(--white); transform: scaleX(0); transform-origin: left center; }
.hero-slider__dot[aria-current="true"]::after { transform: scaleX(1); }
.hero-slider.is-playing .hero-slider__dot[aria-current="true"]::after {
  animation: hero-slider-progreso var(--slide-ms, 7000ms) linear both;
}
@keyframes hero-slider-progreso {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider.is-ready .hero-slide,
  .hero-slider.is-ready .hero-slide.is-active { transition: none; }
  .hero-slider__dot { transition: none; }
  .hero-slider.is-playing .hero-slider__dot[aria-current="true"]::after { animation: none; }
}
@media print {
  .hero-slider__controls { display: none; }
}

/* Portada con foto de fondo (slide «Bienvenida»): foto en blanco y negro, oscurecida para que el
   texto blanco se lea bien. Para verla en color, quitar el filter. */
.hero__foto { position: absolute; inset: 0; z-index: -2; display: block; }
.hero__foto img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; filter: grayscale(1) contrast(1.05); }
.hero__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.7) 38%, rgba(10,10,10,.5) 70%, rgba(10,10,10,.75) 100%),
    linear-gradient(to right, rgba(10,10,10,.65) 0%, rgba(10,10,10,0) 75%);
}

/* Pantallas apaisadas (ordenador, tablet y móvil en horizontal): el cartel ocupa todo el slide,
   de borde a borde como la foto de la bienvenida, y fecha, lugar y botón van encima, abajo a la
   izquierda. Se recorta lo justo por los bordes; el título del cartel queda siempre a la vista.
   En vertical se queda el cartel entero arriba y los datos debajo. */
@media (min-aspect-ratio: 5/4) {
  .hero-slide--evento { justify-content: flex-end; }
  .hero-slide--evento .container { max-width: none; }
  .evento__fondo { display: none; }
  .evento { width: auto; display: block; }
  .evento__cartel { position: absolute; inset: 0; z-index: -1; margin: 0; }
  .evento__cartel img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 0% 55%;
    border-radius: 0;
    box-shadow: none;
  }
  .evento__cartel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(10,10,10,.6) 0%, rgba(10,10,10,0) 22%),
      radial-gradient(ellipse 60% 75% at 0% 100%, rgba(10,10,10,.8) 0%, rgba(10,10,10,0) 100%),
      linear-gradient(to right, rgba(10,10,10,.7) 0%, rgba(10,10,10,.35) 22%, rgba(10,10,10,0) 40%);
  }
  .evento__info {
    max-width: min(21rem, 34vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .evento__titulo { font-size: clamp(1.5rem, 3.2vw, 3rem); text-wrap: balance; }
}
/* Móvil en horizontal (pantalla baja): todo más compacto para que quepa sin hacer scroll */
@media (min-aspect-ratio: 5/4) and (max-height: 540px) {
  .hero-slider:has(.hero-slide + .hero-slide) .hero-slide--evento,
  .hero-slide--evento { padding-top: 4.5rem; padding-bottom: 3.6rem; }
  .evento .eyebrow { display: none; }
  .evento__info { gap: .9rem; }
  .evento__titulo { margin-top: 0; font-size: clamp(1.3rem, 3.4vw, 2rem); }
  .evento__lugar { margin-top: .4rem; font-size: .85rem; }
  .evento .btn { padding: .75rem 1.3rem; font-size: .88rem; }
  .hero-slider__controls { bottom: .6rem; gap: .4rem; }
  .hero-slider__btn { width: 38px; height: 38px; }
  .hero-slider__dot { height: 38px; }
  /* Sin flechas: se pasa con el dedo o con los puntos */
  .hero-slider__btn[data-slider-prev],
  .hero-slider__btn[data-slider-next] { display: none; }
}
/* Muy apaisadas (móvil en horizontal, monitores ultrapanorámicos): a pantalla completa el
   recorte se comería las caras o el título. El cartel va entero, pegado a la derecha y con todo
   el alto, fundido por la izquierda con su versión difuminada, que es donde van los datos. */
@media (min-aspect-ratio: 2/1) {
  .evento__fondo { display: block; }
  .evento__cartel { inset: 0 0 0 auto; height: 100%; width: auto; max-width: 100%; aspect-ratio: 5 / 3; }
  .evento__cartel img {
    object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
    mask-image: linear-gradient(to right, transparent 0%, #000 28%);
  }
  .evento__cartel::after { background: linear-gradient(to bottom, rgba(10,10,10,.5) 0%, rgba(10,10,10,0) 22%); }
}

/* Vertical (móvil, tablet en vertical, ventana estrecha): como en la bienvenida, la imagen llena
   la pantalla. El cartel ocupa todo el ancho arriba (recortado por los lados lo justo para que
   el título quepa entero) y se funde con su versión difuminada, que llega hasta abajo; fecha,
   lugar y botón van encima, al pie. */
@media (max-aspect-ratio: 1249/1000) {
  .hero-slide--evento {
    --alto-cartel: min(125vw, 64vh);
    --alto-cartel: min(125vw, 64svh);
    justify-content: flex-end;
    padding-top: calc(var(--alto-cartel) + 1rem);
  }
  .evento { width: 100%; display: block; }
  .evento__cartel { position: absolute; top: 0; left: 0; right: 0; height: var(--alto-cartel); z-index: -1; margin: 0; }
  .evento__cartel img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50.5% 50%;
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .evento__cartel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 20%);
  }
  .evento__info { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

