/* ============================================================================
   STYLES.CSS — Aposento Alto Espíritu Santo y Fuego · dirección "Brasa"
   Orden: barra lateral → botones → portada → cinta → secciones → tarjetas →
          eventos → ministerios → filtros → detalle → formularios → dar →
          pie → galería → responsive
   Colores, tipos y espacios viven en tokens.css.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   Barra lateral (escritorio) / barra superior (móvil)
--------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 100;
  background: var(--char);
  color: var(--paper);
  border-right: 3px solid var(--ember);
  overflow-y: auto;
  scrollbar-width: thin;
}
.header-inner {
  display: flex; flex-direction: column;
  min-height: 100%;
  padding: 1.9rem 1.5rem 1.6rem;
  gap: 2rem;
}

.brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
  flex-shrink: 0;
}
.brand img {
  height: 46px; width: 46px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--char), 0 0 0 4px var(--flame);
}
.brand small {
  display: block;
  font-family: var(--font-script);
  font-style: italic; font-weight: 400;
  font-size: 1.08rem; letter-spacing: 0;
  color: var(--saffron);
  margin-top: 0.3rem;
}
.site-header .brand { flex-direction: column; align-items: flex-start; gap: 1.1rem; font-size: 1.7rem; }
.site-header .brand img { height: 68px; width: 68px; }

nav.main-nav { display: flex; flex-direction: column; flex: 1; gap: 1.75rem; }
nav.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  counter-reset: nav;
  border-top: 1px solid rgba(245,248,254,0.18);
}
nav.main-nav li { counter-increment: nav; border-bottom: 1px solid rgba(245,248,254,0.18); }
nav.main-nav ul a {
  display: flex; align-items: baseline; gap: 0.8rem;
  min-height: var(--tap);
  padding: 0.7rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.08rem; letter-spacing: -0.015em;
  color: rgba(245,248,254,0.82);
  border-left: 3px solid transparent;
  transition: color var(--dur-1) ease, background var(--dur-2) ease, padding var(--dur-2) var(--ease-out), border-color var(--dur-1) ease;
}
nav.main-nav ul a::before {
  content: counter(nav, decimal-leading-zero);
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--flame);
  min-width: 1.4rem;
}
nav.main-nav ul a:hover { color: #fff; padding-left: 1rem; background: rgba(245,248,254,0.05); }
nav.main-nav ul a.active { color: var(--flame); border-left-color: var(--flame); background: rgba(244,123,32,0.12); }
.nav-cta { display: grid; gap: 0.75rem; margin-top: auto; }
.nav-addr {
  display: flex; gap: 0.5rem; align-items: flex-start;
  margin: 0; font-size: 0.82rem; line-height: 1.45; color: rgba(245,248,254,0.7);
}
.nav-addr svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--flame); }

/* ---------------------------------------------------------------------------
   Botones
--------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.92rem; line-height: 1.2; letter-spacing: 0.01em;
  text-align: center;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out),
              background var(--dur-2) ease, color var(--dur-1) ease, border-color var(--dur-1) ease;
  white-space: nowrap; flex-shrink: 0;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(1px, 1px); }

.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-gold:hover { box-shadow: 6px 6px 0 var(--ink); background: var(--gold-hover); }
.btn-gold:active { box-shadow: 2px 2px 0 var(--ink); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-dark { background: var(--white); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--ember); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Sobre superficies oscuras o de color */
.site-header .btn-outline, .section-dark .btn-outline, .site-footer .btn-outline, .detail-hero .btn-outline {
  color: var(--paper); border-color: rgba(245,248,254,0.75);
}
.site-header .btn-outline:hover, .section-dark .btn-outline:hover, .site-footer .btn-outline:hover, .detail-hero .btn-outline:hover {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.site-header .btn-gold, .section-dark .btn-gold, .site-footer .btn-gold { border-color: var(--flame); box-shadow: 4px 4px 0 var(--ember); }
.site-header .btn-gold:hover, .section-dark .btn-gold:hover, .site-footer .btn-gold:hover { box-shadow: 6px 6px 0 var(--ember); }
.detail-hero .btn-gold { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 4px 4px 0 var(--flame); }
.detail-hero .btn-gold:hover { background: var(--char-2); box-shadow: 6px 6px 0 var(--flame); }

.btn.is-loading::before {
  content: ""; width: 1em; height: 1em; flex-shrink: 0;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);
  background: transparent;
  border: 2px solid rgba(245,248,254,0.6);
  border-radius: var(--radius-s);
  color: var(--paper); cursor: pointer;
  transition: background var(--dur-2) ease, color var(--dur-1) ease;
}
.nav-toggle:hover { background: var(--flame); color: var(--ink); border-color: var(--flame); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
body.nav-open { overflow: hidden; }

/* ---------------------------------------------------------------------------
   Portada — póster tipográfico + boleto de horarios
--------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }

.hero-home {
  background: var(--paper);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3.25rem, 6vw, 5.5rem);
  min-height: min(90vh, 820px);
  display: flex; align-items: center;
}
.hero-home > .wrap { width: 100%; }
/* El sol: un círculo de brasa que asoma detrás del boleto */
.hero-home::before {
  content: ""; position: absolute; z-index: -1;
  width: min(700px, 95vw); aspect-ratio: 1;
  right: -14%; top: -20%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, var(--saffron) 0%, var(--flame) 42%, var(--flame-hot) 80%);
  border: 3px solid var(--ink);
}
/* Cuadrícula de puntos de tinta */
.hero-home::after {
  content: ""; position: absolute; z-index: -1;
  right: 2rem; bottom: 1.25rem; width: 200px; height: 120px;
  background-image: radial-gradient(var(--ink) 1.3px, transparent 1.6px);
  background-size: 17px 17px; opacity: 0.28;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-main { min-width: 0; }
.hero h1 {
  font-size: clamp(2.9rem, 1rem + 5.4vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 0.4rem 0 1.5rem;
}
.hero h1 .line { display: block; }
.hero h1 .rise {
  font-family: var(--font-script); font-style: italic; font-weight: 400;
  font-size: 1.12em; letter-spacing: -0.02em; line-height: 0.95;
  color: var(--ember-ink);
}
.hero-lede { font-size: 1.15rem; max-width: 46ch; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.9rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-home h1 .line { animation: rise-in 800ms var(--ease-out) both; }
  .hero-home h1 .rise { animation-delay: 160ms; }
  .hero-card { animation: rise-in 900ms var(--ease-out) 260ms both; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(0.5em); }
  to   { opacity: 1; transform: none; }
}

/* El "boleto": panel oscuro con borde de tinta y sombra dura */
.hero-card {
  position: relative;
  background: var(--char); color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 10px 10px 0 var(--ink);
}
.hero-card::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 10px;
  background: repeating-linear-gradient(135deg, var(--flame) 0 12px, var(--char) 12px 24px);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
}
.hero-card-title {
  font-size: 1.45rem; color: var(--flame);
  margin: 0.6rem 0 1rem; letter-spacing: -0.02em;
}
.next-service {
  display: flex; flex-direction: column; gap: 0.2rem;
  margin: 0 0 1.1rem; padding: 0.95rem 1.1rem;
  border-radius: var(--radius-m);
  background: var(--flame); color: var(--ink);
  border: 2px solid var(--flame);
}
.next-service .k { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.next-service .v { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.02em; }
.next-service .when { font-size: 0.95rem; font-weight: 500; }
.service-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.75rem 0; border-bottom: 1px dashed rgba(245,248,254,0.3); gap: 1rem;
}
.service-row:last-of-type { border-bottom: none; }
.service-row .label { font-weight: 700; }
.service-row .time { color: rgba(245,248,254,0.92); text-align: right; font-variant-numeric: tabular-nums; }
.badge-tbd {
  display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink); background: var(--saffron); padding: 0.18rem 0.5rem; border-radius: 2px; margin-left: 0.5rem;
}
.hero-card .addr { margin: 1rem 0 0; font-size: 0.92rem; color: rgba(245,248,254,0.82); }
.hero-card .addr a { color: var(--flame); font-weight: 700; text-decoration: underline; text-underline-offset: 0.22em; }
.hero-card .addr a:hover { color: var(--saffron); }
.hero-card .addr svg { display: inline; vertical-align: -2px; }

/* Variante clara (sobre fondo blanco) */
.hero-card--light {
  background: var(--white); color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.hero-card--light::before { display: none; }
.hero-card--light .hero-card-title { color: var(--ember-ink); margin-top: 0; }
.hero-card--light p { color: var(--ink); }

/* ---------------------------------------------------------------------------
   Cinta de horarios (reemplaza al divisor)
--------------------------------------------------------------------------- */
.ribbon {
  overflow: hidden; background: var(--ink); color: var(--paper);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ember);
  padding: 0.95rem 0;
}
.ribbon-track { display: flex; width: max-content; animation: ribbon 38s linear infinite; }
.ribbon-track span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
  padding-right: 2.5rem;
}
.ribbon-track span::after { content: "✦"; margin-left: 2.5rem; color: var(--flame); }
@keyframes ribbon { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }

/* ---------------------------------------------------------------------------
   Secciones
--------------------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section-dark { background: var(--char); color: var(--paper); }
.section-cream { background: var(--paper); }
.section-white { background: var(--white); }
.sermon-album + .sermon-album { margin-top: 3rem; }

/* Encabezado editorial: regla gruesa arriba, etiqueta a la izquierda, título a la derecha */
.section-head {
  display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); column-gap: 2rem;
  border-top: 3px solid var(--ink);
  padding-top: 1.1rem;
  margin-bottom: var(--space-7);
}
.section-head > .eyebrow { grid-column: 1; grid-row: 1; margin: 0.7rem 0 0; align-self: start; }
.section-head > h2, .section-head > p { grid-column: 2; max-width: 60ch; }
.section-head h2 { font-size: var(--step-2); margin-bottom: 0.4em; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.section-dark .section-head { border-top-color: rgba(245,248,254,0.5); }
.section-dark .eyebrow { color: var(--flame); }
.section-dark .section-head p:not(.eyebrow) { color: rgba(245,248,254,0.82); }
.section-foot { margin-top: 2.5rem; }
.section-center { text-align: left; }
.section-center h2 { font-size: clamp(2.3rem, 1.2rem + 4vw, 4.6rem); max-width: 17ch; letter-spacing: -0.04em; }
.section-center p:not(.eyebrow) { max-width: 52ch; }

/* Banda de ofrenda: bloque de brasa con arcos de ventana */
.give-band {
  color: #fff;
  background:
    repeating-radial-gradient(circle at 100% 130%, transparent 0 40px, rgba(11,23,64,0.16) 40px 43px),
    var(--ember);
  border-top: 3px solid var(--ink);
}
.give-band .eyebrow { color: #fff; }
.give-band .btn-gold { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 4px 4px 0 var(--flame); }
.give-band .btn-gold:hover { background: var(--char-2); box-shadow: 6px 6px 0 var(--flame); }
.give-band p { font-size: 1.1rem; }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.9rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* "Últimos mensajes": el primero más ancho; todos conservan la miniatura 16:9 completa arriba */
.grid-feature { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.grid-feature > :first-child h3 { font-size: 1.5rem; }
.grid-detail { grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.grid-contact { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; }

/* ---------------------------------------------------------------------------
   Tarjetas
--------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.card-link { transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link h3 a:focus-visible { outline: none; }
.card-link h3 a:focus-visible::after { outline: 3px solid var(--focus-ring); outline-offset: -5px; }
.card-link .btn, .card-link .card-foot .tag { position: relative; z-index: 2; }
@media (hover: hover) {
  .card-link:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
  .card-link:hover h3 a { color: var(--ember-ink); }
}

.card-thumb {
  display: block; aspect-ratio: 16/9;
  background: var(--char);
  border-bottom: 2px solid var(--ink);
  position: relative; overflow: hidden;
}
.card-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
.card-thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(11,23,64,0.45));
}
.card-thumb .play {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: var(--flame); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-2) var(--ease-out), background var(--dur-2) ease;
}
.card-thumb .play svg { margin-left: 2px; }
@media (hover: hover) {
  .card-link:hover .card-thumb img { transform: scale(1.05); }
  .card-link:hover .card-thumb .play { transform: scale(1.1); background: var(--saffron); }
}
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-meta { font-size: 0.82rem; color: var(--ink-soft); display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.card-meta svg { flex-shrink: 0; }
.card-body h3 { font-size: 1.2rem; line-height: 1.12; margin: 0; }
.card-body p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.card-foot { margin-top: auto; padding-top: 0.6rem; }
.tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
  background: var(--ink); color: var(--paper); padding: 0.3rem 0.6rem; border-radius: 2px;
}
.tag-sample { background: var(--saffron); color: var(--ink); }

/* Evento: la fecha es un sello de brasa */
.event-card { flex-direction: row; }
.event-date {
  flex: 0 0 auto; width: 88px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  background: var(--ember); color: #fff;
  border-right: 2px solid var(--ink);
}
.event-date::before { content: attr(data-d); font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: -0.04em; }
.event-date::after { content: attr(data-m); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.grid-3 > .event-card.has-image { grid-column: 1 / -1; }
.event-card.has-image {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "thumb thumb" "date body";
  align-items: stretch;
}
.event-card.has-image .event-thumb { grid-area: thumb; border-bottom: 2px solid var(--ink); }
.event-card.has-image .event-date { grid-area: date; }
.event-card.has-image .card-body { grid-area: body; justify-content: center; padding: 1.25rem 1.5rem 1.5rem; }
.event-card.has-image .card-body h3 { font-size: 1.5rem; }
.event-thumb {
  width: 100%; aspect-ratio: 16 / 9; position: relative; display: block; overflow: hidden;
  background: var(--char);
}
.event-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  transition: transform 500ms var(--ease-out);
}
@media (hover: hover) { .card-link:hover .event-thumb img { transform: scale(1.03); } }
.event-hero-img {
  margin: 0 0 var(--space-5, 2rem);
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-m); border: 2px solid var(--ink);
  box-shadow: var(--shadow-lift); background: var(--char);
}
.event-hero-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.event-card .card-body { min-width: 0; }

.events-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 22rem);
  gap: var(--space-6); align-items: start;
}
.events-layout.no-aside { grid-template-columns: minmax(0, 1fr); }
.events-main { min-width: 0; }
.event-list { display: grid; gap: 1.75rem; }
.regular-panel {
  position: sticky; top: calc(var(--header-h) + 1.25rem);
  background: var(--char); color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-l);
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
  box-shadow: 8px 8px 0 var(--ember);
}
.regular-panel .eyebrow { color: var(--flame); margin-bottom: 0.2rem; }
.regular-title { font-size: 1.55rem; color: var(--white); margin: 0 0 1rem; }
.svc-list { display: grid; gap: 1rem; }
.svc-card {
  background: rgba(245,248,254,0.06);
  border: 1px solid rgba(245,248,254,0.28);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.svc-thumb {
  display: block; aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background: var(--char-2); border-bottom: 2px solid var(--flame);
}
.svc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.svc-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.45rem; }
.svc-every { display: flex; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--flame); }
.svc-every svg { flex-shrink: 0; }
.svc-body h3 { font-size: 1.2rem; line-height: 1.15; margin: 0; color: var(--white); }
.svc-body h3 a { color: inherit; }
.svc-body h3 a:hover { color: var(--flame); }
.svc-desc { margin: 0; font-size: 0.9rem; color: rgba(245,248,254,0.82); }
.svc-next { margin: 0.2rem 0 0; font-size: 0.92rem; color: rgba(245,248,254,0.86); }
.svc-next strong { color: var(--saffron); }
.svc-notice {
  margin: 0.35rem 0 0; padding: 0.6rem 0.8rem;
  border-radius: var(--radius-s); border-left: 5px solid var(--err);
  background: #FBE9E6; color: #6E1B12;
  font-size: 0.88rem; line-height: 1.4;
}
.svc-notice strong { font-weight: 700; }
.svc-notice-time { border-left-color: var(--saffron); background: #FFF6D6; color: #5E4208; }
.svc-notice-note { border-left-color: var(--ink); background: var(--paper-deep); color: var(--ink); }
.next-service .svc-notice { margin-top: 0.6rem; }
.wrap-prose > .svc-notice { margin: 0 0 var(--space-5, 1.5rem); font-size: 1rem; }

/* ---------------------------------------------------------------------------
   Ministerios
--------------------------------------------------------------------------- */
.ministry-card .icon, .mission-item .icon {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: var(--flame); color: var(--ink);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.ministry-card .icon { margin-bottom: 0.5rem; }

.ministry-logo {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: var(--logo-size, 68px); height: var(--logo-size, 68px);
  flex-shrink: 0; border-radius: 50%; overflow: hidden;
  background: var(--flame); color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.ministry-logo svg { width: 46%; height: 46%; }
.ministry-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.card-body > .ministry-logo { margin-bottom: 0.7rem; }

.ministry-hero, .detail-hero > .wrap.ministry-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
}
.ministry-hero-text { flex: 1; min-width: 0; }
.ministry-hero-logo { --logo-size: 124px; flex-shrink: 0; }
.ministry-hero-logo .ministry-logo { border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }

/* Misión: lista numerada editorial sobre carbón */
.mission { border-top: 3px solid var(--ember); }
.mission-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.5rem;
}
.mission-item {
  display: grid; grid-template-columns: 3.4rem auto minmax(0, 1fr); gap: 1rem; align-items: start;
  padding: 1.6rem 0; border-top: 1px solid rgba(245,248,254,0.24);
}
.mission-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 0.9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--flame);
}
.mission-text h3 { font-size: 1.3rem; margin: 0 0 0.35rem; color: var(--white); }
.mission-text h3 a:hover { color: var(--flame); }
.mission-text p { margin: 0; font-size: 0.95rem; color: rgba(245,248,254,0.78); }
.mission .ministry-logo { box-shadow: 3px 3px 0 var(--ember); }

/* Persona: retrato en forma de arco de ventana */
.person-card { align-items: center; text-align: center; padding: 1.9rem 1.25rem 1.6rem; }
.person-card .card-body { padding: 1.3rem 0 0; align-items: center; gap: 0.35rem; }
.person-card h3 { font-size: 1.2rem; }
.person-card .role { color: var(--ember-ink); font-weight: 700; font-size: 0.92rem; margin: 0; }
.person-card .bio { font-size: 0.88rem; color: var(--ink-soft); margin: 0.3rem 0 0; }
.avatar {
  position: relative;
  width: 128px; aspect-ratio: 3 / 4;
  border-radius: 999px 999px 6px 6px;
  overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--char); color: var(--flame);
  font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -0.02em;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ember);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------------
   Filtros / búsqueda
--------------------------------------------------------------------------- */
.tab-pills { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tab-pills .btn {
  background: var(--white); color: var(--ink); border: 2px solid var(--ink);
  font-size: 0.88rem; padding: 0.5rem 1.05rem;
}
.tab-pills .btn:hover { background: var(--paper-deep); color: var(--ink); }
.tab-pills .btn[aria-pressed="true"] {
  background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--ember);
}
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 1rem;
  background: var(--paper); border: 2px solid var(--ink);
  padding: 1.15rem; border-radius: var(--radius-m); margin-bottom: 1.75rem;
}
.filter-field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; min-width: 180px; }
.filter-field label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
input, select, textarea { font-family: var(--font-body); font-size: 1rem; color: var(--ink); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  border-radius: var(--radius-s); border: 2px solid var(--field-border); background: #fff;
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #5A6490; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--ember); box-shadow: 4px 4px 0 var(--ember); outline: none; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23161210' stroke-width='2.6' 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 0.9rem center; cursor: pointer;
}
input[type="checkbox"] { width: 1.35rem; height: 1.35rem; accent-color: var(--ember); flex-shrink: 0; cursor: pointer; }
.filter-actions { display: flex; align-items: flex-end; }
.result-count { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.empty-state {
  text-align: center; padding: 3rem 1.5rem; color: var(--ink-soft);
  border: 2px dashed var(--ink); border-radius: var(--radius-m); background: var(--paper);
  grid-column: 1 / -1;
}
.empty-state h3 { color: var(--ink); margin-bottom: 0.4rem; }
.empty-state p { margin: 0; }

/* ---------------------------------------------------------------------------
   Encabezado de páginas internas — banda de brasa con arcos
--------------------------------------------------------------------------- */
.detail-hero {
  color: #fff;
  background:
    repeating-radial-gradient(circle at 104% 125%, transparent 0 36px, rgba(11,23,64,0.15) 36px 39px),
    var(--ember);
  border-bottom: 3px solid var(--ink);
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 clamp(2.25rem, 4vw, 3.5rem);
}
.detail-hero > .wrap {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  column-gap: 3rem; align-items: end;
}
.detail-hero .breadcrumb, .detail-hero .eyebrow, .detail-hero .hero-actions { grid-column: 1 / -1; }
.detail-hero .eyebrow { color: #fff; }
.detail-hero h1 {
  grid-column: 1; margin: 0;
  font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5rem); line-height: 0.95; letter-spacing: -0.045em;
  color: #fff; max-width: 20ch;
}
.detail-hero .hero-lede { grid-column: 2; margin: 0 0 0.4rem; color: rgba(255,255,255,0.95); max-width: 44ch; }
.detail-hero .hero-lede.script { font-size: 1.5rem; line-height: 1.2; }
.detail-hero .ministry-hero-text h1 { max-width: none; margin-bottom: 0.5rem; }
.detail-hero .ministry-hero-text .hero-lede { max-width: 56ch; }
.breadcrumb { font-size: 0.86rem; color: rgba(255,255,255,0.88); margin-bottom: 1rem; }
.breadcrumb a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.breadcrumb a:hover { text-decoration-thickness: 3px; }

.video-frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--char); border-radius: var(--radius-m); overflow: hidden;
  border: 2px solid var(--ink); box-shadow: var(--shadow-lift);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; color: var(--flame); text-align: center; padding: 1.5rem;
}
.detail-title-sm { font-size: 1.3rem; margin-top: 2rem; }

.audio-player {
  margin-top: 1.2rem; background: var(--white); border-radius: var(--radius-m);
  border: 2px solid var(--ink); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.audio-player button.play-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer;
  background: var(--flame); color: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.audio-track { flex: 1; min-width: 180px; }
.audio-bar { height: 8px; border-radius: 2px; background: var(--paper-deep); border: 1px solid var(--ink); position: relative; cursor: pointer; margin-top: 0.4rem; }
.audio-bar-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--ember); }
.audio-time { font-size: 0.76rem; color: var(--ink-soft); display: flex; justify-content: space-between; margin-top: 0.25rem; }
.volume-row { display: flex; align-items: center; gap: 0.4rem; }
.volume-row input[type="range"] { width: 90px; accent-color: var(--ember); }
.related-grid { margin-top: 1rem; }
.related-title { font-size: 1.4rem; margin-top: 3rem; }

/* ---------------------------------------------------------------------------
   Formularios
--------------------------------------------------------------------------- */
.form-card {
  background: var(--white); border-radius: var(--radius-l); border: 2px solid var(--ink);
  box-shadow: var(--shadow-lift); padding: clamp(1.4rem, 3.5vw, 2.4rem); max-width: 660px;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.form-row label { font-weight: 700; font-size: 0.9rem; }
.form-row .hint { font-size: 0.84rem; color: var(--ink-soft); }
.form-row .check { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; line-height: 1.4; cursor: pointer; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note {
  font-size: 0.88rem; color: var(--ink-soft); background: var(--paper);
  border-radius: var(--radius-s); padding: 0.8rem 1rem; margin-bottom: 1.2rem;
  border-left: 5px solid var(--flame);
}
.form-note a { color: var(--ember-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.form-success { display: none; text-align: center; padding: 2.2rem 1rem; }
.form-success.show { display: block; }
.form-success h3 { outline: none; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.1rem;
  background: var(--flame); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.error-text { color: var(--err); font-size: 0.86rem; font-weight: 700; display: none; }
.form-row.has-error input, .form-row.has-error textarea, .form-row.has-error select { border-color: var(--err); background: var(--err-bg); }
.form-row.has-error .error-text { display: block; }
.form-error-note { color: var(--err); border-left-color: var(--err); background: var(--err-bg); margin-top: 0.9rem; margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   Dar / Ofrendar
--------------------------------------------------------------------------- */
.give-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.give-card {
  background: var(--white); border-radius: var(--radius-m); border: 2px solid var(--ink);
  padding: 1.9rem; box-shadow: var(--shadow-soft);
}
.give-card h3 { margin-top: 0.85rem; }
.give-card.available { background: #FFF6DB; box-shadow: 6px 6px 0 var(--ember); }
.status {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem; border-radius: 2px; border: 1.5px solid currentColor;
}
.status.ready { color: var(--ok); background: rgba(47,107,67,0.08); }
.status.pending { color: var(--warn); background: rgba(154,90,18,0.08); }
.zelle-box {
  margin-top: 1rem; padding: 0.9rem 1.1rem; background: var(--char); color: var(--flame);
  border-radius: var(--radius-s); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: var(--tap); padding: 0.5rem 1rem;
  background: transparent; border: 2px solid var(--flame); color: var(--flame);
  border-radius: var(--radius-s); font: 700 0.85rem var(--font-body); cursor: pointer;
  transition: background var(--dur-1) ease, color var(--dur-1) ease;
}
.copy-btn:hover { background: var(--flame); color: var(--ink); }

/* ---------------------------------------------------------------------------
   Eventos — detalle
--------------------------------------------------------------------------- */
.event-meta-row {
  display: flex; gap: 2.25rem; flex-wrap: wrap; margin: 0 0 1.75rem;
  padding: 1.25rem 1.5rem; background: var(--paper); border-radius: var(--radius-m);
  border: 2px solid var(--ink); box-shadow: var(--shadow-soft);
}
.event-meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
.event-meta-item .label { font-size: 0.72rem; color: var(--ember-ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.event-meta-item span:not(.label) { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }

.strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--saffron); color: var(--ink); padding: 1.1rem 1.6rem;
  border: 2px solid var(--ink); border-radius: var(--radius-m); box-shadow: var(--shadow-soft); margin-bottom: 2rem;
}
.strip strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }

/* ---------------------------------------------------------------------------
   Pie de página — póster tipográfico
--------------------------------------------------------------------------- */
.site-footer {
  background: var(--char); color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
  border-top: 3px solid var(--ember);
  overflow: hidden;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid rgba(245,248,254,0.22);
}
.footer-verse { font-size: clamp(1.6rem, 1rem + 2vw, 2.7rem); line-height: 1.05; color: var(--saffron); margin: 0; max-width: 24ch; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { font-size: 1.4rem; }
.footer-addr { margin: 1.2rem 0 0; font-size: 0.95rem; color: rgba(245,248,254,0.85); }
.footer-addr a:hover { color: var(--flame); }
.footer-title {
  color: var(--flame); font-family: var(--font-body); font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 0.9rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.1rem; font-size: 1rem; color: rgba(245,248,254,0.9); }
.footer-grid li a { display: inline-block; padding: 0.3rem 0; font-weight: 500; }
.footer-grid li a:hover { color: var(--flame); }
.footer-mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 9.5vw, 9rem); line-height: 0.82; letter-spacing: -0.055em;
  color: transparent; -webkit-text-stroke: 2px rgba(245,248,254,0.22);
  white-space: nowrap; margin: 3rem 0 0; padding: 0 clamp(1.25rem, 3vw, 2.25rem);
  user-select: none;
}
.footer-bottom {
  margin-top: 1.5rem; padding-top: 1.2rem; padding-bottom: 1.6rem; border-top: 1px solid rgba(245,248,254,0.22);
  font-size: 0.84rem; color: rgba(245,248,254,0.72);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem;
}
.social-links { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); border-radius: var(--radius-s);
  border: 2px solid rgba(245,248,254,0.4); color: var(--paper);
  transition: background var(--dur-1) ease, color var(--dur-1) ease, transform var(--dur-1) var(--ease-out), border-color var(--dur-1) ease;
}
.social-links a:hover { background: var(--flame); border-color: var(--flame); color: var(--ink); transform: translate(-2px, -2px); }

/* ---------------------------------------------------------------------------
   Quiénes Somos / varios
--------------------------------------------------------------------------- */
.leader-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.75rem; margin-top: 1.5rem; }
.subhead { font-size: 1.5rem; margin-top: 3rem; padding-top: 0.9rem; border-top: 3px solid var(--ink); }
.subhead:first-child { margin-top: 0; }
.placeholder-callout {
  border: 2px dashed var(--err); background: var(--err-bg);
  color: #7c2a20; padding: 1.1rem 1.3rem; border-radius: var(--radius-s); font-size: 0.94rem; margin-top: 1.5rem;
}
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.9rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.55; }
.checklist li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.55em;
  width: 0.7rem; height: 0.7rem; background: var(--ember); transform: rotate(45deg);
}
.prose-lg { font-size: 1.15rem; }
.stack-sm > * + * { margin-top: 0.6rem; }
.contact-lines p { margin-bottom: 0.6rem; }
.contact-lines a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: var(--tap); font-weight: 700; }
.contact-lines a:hover { color: var(--ember-ink); }
.contact-lines svg { flex-shrink: 0; color: var(--ember-ink); }
.contact-note { color: var(--ink-soft); font-size: 0.94rem; }
.prayer-card { margin-top: 1.5rem; }
.prayer-card ul { margin: 0.4rem 0 0 1.2rem; }
.hero-actions.on-light { margin-top: 1.5rem; }
main:focus, h1:focus, .form-success h3:focus { outline: none; }
.label-strong { font-weight: 700; margin: 0.6rem 0 0; }
.avatar::before { content: attr(data-initials); }
.section > .wrap + .wrap { margin-top: var(--space-7); }

/* ---------------------------------------------------------------------------
   Galería
--------------------------------------------------------------------------- */
.btn-wrap { white-space: normal; }
.album-card[hidden], .lightbox[hidden], .lb-btn[hidden], .lb-error[hidden] { display: none !important; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0.85rem; }
.photo-tile {
  position: relative; display: block; padding: 0; border: 2px solid var(--ink); cursor: pointer;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-s);
  background: var(--char); color: var(--flame);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-tile.is-broken img { display: none; }
@media (hover: hover) { .photo-tile:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ember); } }
.video-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(11,23,64,0.55)); }
.video-tile .play {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: var(--flame); color: var(--ink); border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.video-tile .play svg { margin-left: 2px; }

.mosaic {
  display: grid; gap: 0.75rem;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 16 / 7;
}
.mosaic-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-s);
  background: var(--char); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.mosaic-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.mosaic-main { grid-row: 1 / span 2; }
@media (hover: hover) { .mosaic-tile:hover img { transform: scale(1.05); } }
.mosaic-more {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  background: rgba(11,23,64,0.68); color: #fff; font-family: var(--font-display); font-size: 2rem; font-weight: 800;
}
.mosaic-caption { margin: 1rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.moments-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,10,30,0.96);
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; padding: 3.5rem 4.5rem 1rem; box-sizing: border-box; }
.lb-img { display: block; max-width: 100%; max-height: calc(100vh - 8.5rem); max-height: calc(100dvh - 8.5rem); object-fit: contain; border-radius: 2px; background: rgba(255,255,255,0.04); }
.lb-error { color: var(--flame); margin: 1rem 0 0; }
.lb-caption { margin-top: 0.8rem; color: rgba(245,248,254,0.88); font-size: 0.92rem; text-align: center; }
.lb-count { margin-left: 0.6rem; color: var(--flame); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--char); color: #fff; border: 2px solid rgba(245,248,254,0.6);
  transition: background var(--dur-1) ease, color var(--dur-1) ease;
}
.lb-btn:hover { background: var(--flame); color: var(--ink); border-color: var(--flame); }
.lb-btn:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.lb-close { top: max(0.9rem, env(safe-area-inset-top, 0px)); right: 0.9rem; }
.lb-prev { left: 0.9rem; top: 50%; margin-top: -24px; }
.lb-next { right: 0.9rem; top: 50%; margin-top: -24px; }

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .events-layout { grid-template-columns: minmax(0, 1fr); }
  .regular-panel { position: static; }
  .svc-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

  /* La barra lateral pasa a ser barra superior con menú a pantalla completa */
  .site-header {
    position: sticky; top: 0; left: auto; bottom: auto; width: auto;
    border-right: 0; border-bottom: 3px solid var(--ember); overflow: visible;
  }
  .header-inner { flex-direction: row; align-items: center; justify-content: space-between; min-height: var(--header-h); padding: 0.5rem 1.1rem; gap: 1rem; }
  .site-header .brand { flex-direction: row; align-items: center; gap: 0.7rem; font-size: 1.15rem; }
  .site-header .brand img { height: 42px; width: 42px; }
  .site-header .brand small { font-size: 0.95rem; margin-top: 0.2rem; }
  .nav-toggle { display: inline-flex; }
  nav.main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    gap: 1.5rem; padding: 1.25rem 1.5rem 2.5rem;
    background: var(--char);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  nav.main-nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  nav.main-nav ul a { font-size: 1.7rem; padding: 0.85rem 0.4rem; min-height: 60px; }
  nav.main-nav ul a:hover { padding-left: 0.4rem; }
  .nav-cta { grid-template-columns: 1fr 1fr; margin-top: 0; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-home::before { width: min(460px, 110vw); right: -52%; top: -30%; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-feature > :first-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .give-grid, .form-two, .grid-detail, .grid-contact { grid-template-columns: 1fr; }
  .mission-list { grid-template-columns: 1fr; }
  .detail-hero > .wrap { grid-template-columns: 1fr; }
  .detail-hero h1, .detail-hero .hero-lede { grid-column: 1; }
  .detail-hero .hero-lede { margin-top: 1rem; }
  .moments-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head > .eyebrow, .section-head > h2, .section-head > p { grid-column: 1; grid-row: auto; }
}

@media (max-width: 680px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .strip { flex-direction: column; align-items: flex-start; }
  .ministry-hero, .detail-hero > .wrap.ministry-hero { gap: 1rem; }
  .ministry-hero-logo { --logo-size: 76px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .filter-field { min-width: 100%; }
  .zelle-box { font-size: 1.25rem; }
  .event-date { width: 72px; }
  .event-date::before { font-size: 2rem; }
  .event-card.has-image .card-body { padding: 1.1rem 1.15rem 1.3rem; }
  .event-card.has-image .card-body h3 { font-size: 1.25rem; }
  .leader-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .avatar { width: 104px; font-size: 1.7rem; }
  .person-card { padding: 1.5rem 0.9rem 1.3rem; }
  .grid-feature { grid-template-columns: 1fr; }
  .mission-item { grid-template-columns: auto minmax(0, 1fr); }
  .mission-num { display: none; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; aspect-ratio: auto; }
  .mosaic-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .mosaic-tile:not(.mosaic-main) { aspect-ratio: 1; }
  .moments-strip { display: flex; overflow-x: auto; gap: 1rem; padding: 0 0.5rem 0.9rem 0; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .moments-strip > * { flex: 0 0 78%; scroll-snap-align: start; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .lb-stage { padding: 4rem 0.5rem 0.75rem; }
  .lb-prev, .lb-next { top: auto; bottom: 0.9rem; margin-top: 0; }
  .lb-prev { left: 0.9rem; } .lb-next { right: 0.9rem; }
  .hero-card { box-shadow: 6px 6px 0 var(--ink); }
}

@media (max-width: 400px) {
  .leader-row { grid-template-columns: 1fr; }
  .site-header .brand small { display: none; }
  .nav-cta { grid-template-columns: 1fr; }
}