@font-face {
  font-family: "Oswald Brand";
  src: url("./assets/fonts/oswald-brand.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --navy: #031c2d; --navy-2: #082d42; --ink: #0c2230;
  --ivory: #f4efe3; --paper: #e9e1d1; --gold: #e4b968; --gold-soft: #f2cf88;
  --line: rgba(244,239,227,.3); --sans: "Manrope", "Avenir Next", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif; --header-height: 100px;
}
/* Estándar de color: la cabecera de cada página y los llamados a la acción van en azul;
   el contenido va en crema (claro principal) o papel (claro alterno). Los componentes
   usan --fg, --muted, --accent, --rule y --panel para verse bien sobre cualquiera de los dos. */
:root, .surface-dark { --fg: var(--ivory); --muted: #c8d3d9; --accent: var(--gold-soft); --rule: var(--line); --rule-strong: rgba(244,239,227,.55); --panel: var(--navy-2); }
.surface-light, .surface-light-alt { --fg: var(--ink); --muted: #4b5a62; --accent: #775326; --rule: rgba(12,34,48,.22); --rule-strong: rgba(12,34,48,.55); --panel: var(--paper); }
.surface-light-alt { --panel: var(--ivory); }
.surface-dark { background: var(--navy); color: var(--ivory); }
.surface-light { background: var(--ivory); color: var(--ink); }
.surface-light-alt { background: var(--paper); color: var(--ink); }
.surface-light :focus-visible, .surface-light-alt :focus-visible { outline-color: #775326; }
/* Sobre fondo claro el botón principal va relleno en azul para distinguirse bien. */
.surface-light .button-gold, .surface-light-alt .button-gold { background: var(--navy); color: var(--ivory); }
.surface-light .button-gold:hover, .surface-light-alt .button-gold:hover { background: var(--navy-2); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
body { margin: 0; background: var(--navy); color: var(--ivory); font-family: var(--sans); overflow-x: clip; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
figure { margin: 0; }
figcaption { font-size: .75rem; line-height: 1.5; padding-top: .65rem; }
.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; }
.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .8rem 1rem; background: var(--gold); color: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

/* Keep the church identity and useful destinations within reach. */
.site-header { position: fixed; z-index: 30; inset: 0 0 auto; height: var(--header-height); padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: rgba(3,28,45,.78); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: clamp(.5rem, 1vw, .9rem); min-width: 0; }
.brand-mark { width: 104px; height: 70px; object-fit: contain; flex: 0 0 auto; }
.brand-name { display: grid; gap: .2rem; color: var(--ivory); font: 400 1.22rem/1.25 "Oswald Brand", "Arial Narrow", sans-serif; text-transform: uppercase; }
.brand-name > span { display: block; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 2rem); font-size: .9rem; font-weight: 600; }
.main-nav > a { padding: .8rem 0; white-space: nowrap; }
.main-nav > a:hover { color: var(--gold-soft); }
.main-nav > a[aria-current="page"] { color: var(--gold-soft); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .6em; }
.main-nav .nav-cta { border: 1px solid var(--gold); padding: .8rem 1.6rem; }
.nav-cta:hover, .main-nav .nav-cta[aria-current="page"] { background: var(--gold); color: var(--navy) !important; text-decoration: none; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: min(100svh, 56.25vw); padding-top: var(--header-height); display: flex; align-items: center; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; background: var(--navy); }
.hero-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, var(--navy) 5%, rgba(3,28,45,.96) 28%, rgba(3,28,45,.55) 48%, transparent 75%); }

.hero-carousel-track { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.hero-slide.is-active img { animation: hero-ken-burns 7.5s cubic-bezier(.2,.4,.3,1) forwards; }
.hero-slide:nth-child(even).is-active img { animation-name: hero-ken-burns-alt; }
@keyframes hero-ken-burns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes hero-ken-burns-alt { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(1.5%, 1%); } }

.hero-carousel-controls { position: absolute; z-index: 3; right: 7vw; bottom: 1.75rem; display: flex; align-items: center; gap: .75rem; }
.hero-carousel-arrow { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(244,239,227,.4); background: rgba(3,28,45,.4); color: var(--ivory); font-size: 1.2rem; line-height: 1; transition: background .25s ease, border-color .25s ease, color .25s ease, transform .2s ease; }
.hero-carousel-arrow:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); transform: translateY(-2px); }
.hero-carousel-dots { display: flex; gap: .45rem; }
.hero-carousel-count { display: none; font: 700 .8rem var(--sans); color: var(--ivory); letter-spacing: .04em; min-width: 3.5em; text-align: center; }
.hero-dot { width: 26px; height: 4px; padding: 0; border: 0; background: rgba(244,239,227,.35); position: relative; overflow: hidden; cursor: pointer; }
.hero-dot-fill { position: absolute; inset: 0; width: 0; background: var(--gold-soft); }
.hero-dot.is-active .hero-dot-fill { animation: hero-dot-fill 7.5s linear forwards; }
@keyframes hero-dot-fill { from { width: 0; } to { width: 100%; } }
.hero-content { position: relative; z-index: 2; width: min(640px, 49vw); margin: 4.5rem 0 5rem 7vw; }
.hero h1 { margin: 0 0 1.7rem; font: 500 clamp(3.6rem, 5.8vw, 5.6rem)/1.04 var(--serif); letter-spacing: -.025em; }
.hero h1 i { display: block; }
.hero h1 i { color: var(--gold-soft); font-weight: 400; }
.hero-content > p { max-width: 43ch; margin: 0; font-size: 1.05rem; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 52px; padding: .9rem 1.5rem; border: 1px solid transparent; font-size: .95rem; font-weight: 700; transition: background .2s, color .2s; }
.button-gold { background: var(--gold-soft); color: var(--navy); }
.button-gold:hover { background: var(--ivory); }
.button-outline { border-color: var(--ink); color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--ivory); }
.button-light { background: var(--navy); color: var(--ivory); }
.arrow { display: inline-block; width: 1.2rem; height: 1px; background: currentColor; position: relative; }
.arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.text-link { display: inline-block; padding: .6rem 0; font-size: .93rem; text-decoration: underline; text-underline-offset: .4em; line-height: 1.6; }
.subpage-back { padding: calc(var(--header-height) + 1.5rem) 7vw 0; }
.page-header { padding: calc(var(--header-height) + 1.5rem) 7vw 3.5rem; }
.page-back { margin-bottom: 1.5rem; }
.page-kicker { margin: 0 0 .7rem; color: var(--gold-soft); font-size: 1.05rem; font-weight: 600; }
.page-header-main { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 6vw; align-items: center; }
/* En una sede el nombre y su resumen se leen de corrido, uno debajo del otro. */
.page-header-main:has(.sede-summary) { grid-template-columns: 1fr; gap: 1rem; }
.page-header .sede-summary { max-width: 62ch; font-size: 1.15rem; }
.page-header + .section-shell { padding-top: 3rem; }
.page-header + .section-shell > .history-document:first-child { margin-top: 0; }
.page-header h1 { margin: 0; font: 500 clamp(2.6rem, 3.8vw, 3.8rem)/1.1 var(--serif); letter-spacing: -.025em; }
.page-header h1 i { color: var(--gold-soft); font-weight: 400; }
.page-intro p, .page-header-main > p { margin: 0; max-width: 52ch; font-size: 1.1rem; line-height: 1.75; }
.page-intro p + p { margin-top: 1rem; }
.page-header-actions { margin-top: 2rem; }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link-dark { color: #775326; font-weight: 700; }
/* The film is a full-bleed sticky backdrop so the text reads as part of the same scene, not a boxed photo beside it. */
.journey-film { position: relative; background: var(--navy); overflow: clip; }
.journey-film-frame { position: sticky; top: var(--header-height); height: calc(100svh - var(--header-height)); overflow: hidden; }
.journey-film video { opacity: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.journey-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(3,28,45,.95) 34%, rgba(3,28,45,.68) 58%, rgba(3,28,45,.22) 78%, transparent 96%); }

.history-steps { position: relative; z-index: 1; margin-top: calc(-1 * (100svh - var(--header-height))); padding: 5rem 7vw; max-width: 780px; }
.history-step { padding: 2rem 0; border-top: 1px solid var(--line); }
.history-step:first-child { padding-top: 0; border: 0; }
.history-step:last-child { padding-bottom: 0; }
.history-step-copy { min-width: 0; }
.history-step h1, .history-step h2 { margin: 0 0 1.2rem; font: 500 clamp(2.1rem, 3vw, 3rem)/1.12 var(--serif); letter-spacing: -.02em; }
.history-step i { color: var(--gold-soft); font-weight: 400; }
.history-step p { max-width: 54ch; font-size: 1rem; line-height: 1.8; margin: 0; }
.history-step p + p { margin-top: 1.1rem; }
.history-step .text-link { color: var(--gold-soft); margin-top: .8rem; }

.section-shell { padding: 5rem 7vw; }
.history-archive h2 { margin: 0 0 1rem; font: 500 clamp(2.6rem, 4vw, 4rem)/1.12 var(--serif); }
.history-archive > p { max-width: 65ch; line-height: 1.8; }
.history-document { margin-top: 2rem; border-block: 1px solid var(--rule); }
.history-document summary { padding: 1.5rem 0; cursor: pointer; font-weight: 700; line-height: 1.6; }
.history-document summary:hover { color: var(--accent); }
.history-document-body { max-width: 72ch; margin-inline: auto; padding-bottom: 3rem; }
.history-document-body h3 { margin: 3rem 0 1rem; font: 600 2.2rem/1.15 var(--serif); }
.history-document-body p { font-size: 1rem; line-height: 1.9; }
.history-source { margin-top: 1.5rem; font-size: .9rem; }
.history-source a { text-decoration: underline; text-underline-offset: .25em; }

.identity { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; align-items: center; }
.community-photo img { aspect-ratio: 4 / 5; max-height: 530px; object-fit: cover; }
.identity h2, .ministries h2, .sede-main h2 { margin: 0; font: 500 clamp(2.6rem, 3.8vw, 3.8rem)/1.1 var(--serif); letter-spacing: -.025em; }
.identity h2 i { color: #775326; font-weight: 400; }
.identity-intro > p { font-size: 1.05rem; line-height: 1.75; }
.principles { display: grid; gap: 1.1rem; margin: 2rem 0 1rem; }
.principles article { display: grid; grid-template-columns: 85px 1fr; gap: 1rem; align-items: baseline; border-top: 1px solid rgba(12,34,48,.22); padding-top: 1.1rem; }
.principles h3 { margin: 0; color: #775326; font: 500 1.8rem/1.2 var(--serif); }
.principles p { margin: 0; font-size: 1rem; line-height: 1.75; }
.identity-intro > .text-link { margin-right: 1.5rem; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.section-heading > p { margin: 0; max-width: 45ch; font-size: 1.05rem; line-height: 1.75; }
.structure-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 1.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--rule); }
.structure-path dt { display: block; color: var(--accent); font: 500 1.8rem/1.2 var(--serif); }
.structure-path dd { display: block; margin: .8rem 0 0; max-width: 23ch; font-size: .95rem; line-height: 1.7; }
.ministries { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 7vw; padding: 5rem 7vw; }
.ministry-content > p { max-width: 40ch; line-height: 1.75; margin: 1.5rem 0; }
.ministry-photo img { aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; }
.ministry-areas { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.ministry-areas li { padding: 1rem 0; border-top: 1px solid rgba(12,34,48,.25); }
.ministry-areas h3 { margin: 0 0 .4rem; font: 600 1rem/1.4 var(--sans); }
.ministry-areas p { margin: 0; max-width: 43ch; font-size: .95rem; line-height: 1.65; }
.locations { padding: 3rem 7vw 5rem; }
[hidden] { display: none !important; }

/* Buscador pensado para personas mayores: textos grandes, pasos claros y botones amplios. */
.finder { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 3rem; padding: 2rem; margin-bottom: 2.5rem; background: #fffdf8; border: 1px solid var(--rule); box-shadow: 0 18px 40px -30px rgba(12,34,48,.6); }
.finder-search label { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.finder-hint { margin: .45rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.finder-input { position: relative; display: flex; align-items: center; margin-top: 1rem; background: #fff; color: var(--ink); border: 2px solid var(--rule-strong); }
.finder-input:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(228,185,104,.6); }
.finder-input svg { flex: 0 0 auto; margin-left: 1rem; color: #44525b; }
.finder-input input { flex: 1; min-width: 0; min-height: 64px; padding: .9rem 1rem; border: 0; background: transparent; color: var(--ink); font: 500 1.3rem var(--sans); outline: none; }
.finder-input input::placeholder { color: #5f6b72; opacity: 1; }
.finder-input input::-webkit-search-cancel-button { display: none; }
.finder-clear { flex: 0 0 auto; min-height: 48px; margin-right: .5rem; padding: .5rem 1rem; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-size: 1rem; font-weight: 700; }
.finder-clear:hover { background: var(--ink); color: var(--ivory); }
.finder-near > p:first-child { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 700; }
.finder-near .button { gap: .7rem; width: 100%; min-height: 64px; font-size: 1.1rem; text-align: left; }
.finder-near .button:disabled { opacity: .7; cursor: progress; }
.finder-regions { grid-column: 1 / -1; margin: 0; padding: 1.5rem 0 0; border: 0; border-top: 1px solid var(--rule); min-width: 0; }
.finder-regions legend { float: left; width: 100%; margin-bottom: 1rem; font-size: 1.1rem; font-weight: 700; }
.finder-regions div { clear: both; display: flex; flex-wrap: wrap; gap: .7rem; }
.finder-regions button { min-height: 52px; padding: .6rem 1.2rem; border: 2px solid var(--rule-strong); border-radius: 999px; background: transparent; color: var(--fg); font-size: 1.05rem; font-weight: 600; }
.finder-regions button span { margin-left: .35rem; color: var(--accent); font-weight: 500; }
.finder-regions button:hover { border-color: var(--navy); }
.finder-regions button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.finder-regions button[aria-pressed="true"] span { color: var(--gold-soft); }

.locations-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.locations-results { min-width: 0; }
.location-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.location-status p { margin: 0; color: var(--accent); font-size: 1.1rem; font-weight: 600; line-height: 1.5; }
.text-button { min-height: 44px; padding: .4rem 0; border: 0; background: none; color: var(--fg); font-size: 1rem; text-decoration: underline; text-underline-offset: .3em; }
.locations-directory { list-style: none; margin: 0; padding: 0; }
.location-entry { display: grid; grid-template-columns: 112px 1fr; gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-height) + 20px); }
.location-entry.is-selected { background: var(--panel); box-shadow: 0 0 0 .8rem var(--panel); }
.location-photo img { width: 112px; height: 112px; object-fit: cover; }
.location-photo-empty { display: grid; place-items: center; width: 112px; height: 112px; background: var(--navy); }
.location-photo-empty img { width: 70px; height: auto; opacity: .55; }
.location-body { min-width: 0; }
.location-entry h3 { margin: 0; font: 700 1.3rem/1.35 var(--sans); }
.location-entry h3 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.location-city { margin: .3rem 0 .5rem; color: var(--accent); font-size: 1rem; line-height: 1.5; }
.location-entry address { margin: 0; font-style: normal; font-size: 1.05rem; line-height: 1.6; overflow-wrap: anywhere; }
.location-distance { margin: .5rem 0 0; display: inline-block; padding: .25rem .7rem; background: var(--navy); color: var(--ivory); font-size: .95rem; font-weight: 700; }
.location-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 1rem; }
.location-open { min-height: 52px; gap: 1rem; font-size: 1.02rem; }
.location-map-button, .map-toolbar button { min-height: 52px; padding: .6rem 1rem; border: 2px solid var(--rule-strong); background: transparent; color: var(--fg); font-size: 1rem; font-weight: 600; }
.location-map-button:hover, .map-toolbar button:hover:not(:disabled), .location-map-button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.location-map-link { display: inline-flex; align-items: center; min-height: 52px; color: var(--accent); font-size: 1rem; text-decoration: underline; text-underline-offset: .25em; }
.locations-empty { padding: 2rem; background: #fffdf8; border: 1px solid var(--rule); font-size: 1.1rem; line-height: 1.7; }
.locations-empty p { margin: 0 0 .6rem; }
.locations-empty .button { margin-top: .8rem; }
.locations-more { width: 100%; min-height: 60px; margin-top: 1rem; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-size: 1.1rem; }
.locations-more:hover { background: var(--navy); color: var(--ivory); }

.locations-map { position: sticky; top: calc(var(--header-height) + 1.5rem); min-width: 0; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.map-toolbar button:disabled { opacity: .45; cursor: default; }
#church-map { height: min(640px, calc(100svh - var(--header-height) - 9rem)); min-height: 380px; width: 100%; z-index: 0; background: var(--navy-2); font-family: var(--sans); }
.locations-map figcaption { padding-top: .8rem; color: var(--muted); font-size: .95rem; line-height: 1.6; }
#map-status:not(:empty) { margin: .8rem 0 0; color: var(--accent); font-size: 1rem; }
#map-status:empty { display: none; }
.church-pin, .church-cluster, .user-pin { display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--navy); border: 2px solid var(--navy); font: 700 13px var(--sans); }
.church-cluster { font-size: 16px; background: var(--navy); color: var(--gold-soft); border: 2px solid var(--gold-soft); }
.church-pin-approx { border-style: dashed; }
.user-pin { background: #2f7fd1; color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(47,127,209,.35); font-size: 12px; }
#church-map .leaflet-popup-content-wrapper { background: var(--ivory); color: var(--navy); border-radius: 12px; }
#church-map .leaflet-popup-tip { background: var(--ivory); }
#church-map .church-popup strong { display: block; padding-right: .5rem; font-size: 1.1rem; line-height: 1.4; }
#church-map .church-popup p { margin: .5rem 0; font-size: .95rem; line-height: 1.5; }
#church-map .church-popup .church-popup-note { font-size: .85rem; color: #44525b; }
#church-map .church-popup-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .3rem; padding: .4rem 1rem; background: var(--navy); color: var(--ivory); font-size: .95rem; font-weight: 700; }
#church-map .leaflet-control-zoom a { background: var(--ivory); color: var(--navy); width: 48px; height: 48px; line-height: 48px; font-size: 24px; }
#church-map .leaflet-control-attribution { max-width: calc(100% - 64px); font-size: 10px; }
#church-map a:focus-visible, #church-map .leaflet-marker-icon:focus-visible { outline: 3px solid #a35400; outline-offset: 3px; }

/* Sede principal en la portada. */
.sede-main { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6vw; align-items: center; padding: 5rem 7vw; }
.sede-main-copy > p:not(.sede-kicker) { max-width: 46ch; font-size: 1.15rem; line-height: 1.75; }
.sede-main address { font-style: normal; }
.sede-main dd a { text-decoration: underline; text-underline-offset: .2em; }
.sede-main-all { margin-top: 1.4rem; color: var(--accent); font-size: 1.05rem; }
.sede-main-visual img { aspect-ratio: 4 / 3; object-fit: cover; }
.sede-main-visual { padding: 0; }
.sede-locator-svg { display: block; width: 100%; max-width: 300px; margin-inline: auto; height: auto; }
/* Página de cada sede. */
.sede { padding: 3rem 7vw 5rem; }
.sede-kicker { margin: 0 0 .6rem; color: var(--accent); font-size: 1.05rem; font-weight: 600; }
.sede-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.sede-actions .button { min-height: 60px; gap: .7rem; font-size: 1.1rem; }
.button-outline-light { border-color: var(--ivory); color: var(--ivory); }
.button-outline-light:hover { background: var(--ivory); color: var(--navy); }
.sede-gallery { margin: 0; }
.sede-photos { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.sede-photos li:first-child { grid-column: span 2; grid-row: span 2; }
.sede-photos-1 { grid-template-columns: 1fr; grid-auto-rows: min(60vh, 520px); }
.sede-photos-1 li:first-child { grid-column: auto; grid-row: auto; }
.sede-photos-2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 360px; }
.sede-photos-2 li:first-child { grid-column: auto; grid-row: auto; }
.sede-photos a { display: block; height: 100%; overflow: hidden; background: var(--navy-2); }
.sede-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sede-photos a:hover img { transform: scale(1.04); }
.sede-photos a:focus-visible { outline-offset: -4px; outline-width: 4px; }
.sede-gallery-hint { margin: .8rem 0 0; color: var(--muted); font-size: 1rem; }
.sede-photos-empty { display: flex; align-items: center; gap: 1.5rem; padding: 2rem; background: var(--panel); border: 1px dashed var(--rule-strong); }
.sede-photos-empty img { width: 110px; }
.sede-photos-empty p { margin: 0; font-size: 1.15rem; line-height: 1.6; }
.sede-details { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem 5rem; margin-top: 3.5rem; }
.sede-details section { min-width: 0; }
.sede-details h2, .sede-nearby h2 { margin: 0 0 1.2rem; font: 500 clamp(2rem, 3vw, 2.6rem)/1.15 var(--serif); }
.sede-details p { font-size: 1.1rem; line-height: 1.75; }
.sede-details p a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.sede-facts { margin: 0 0 1.2rem; }
.sede-facts div { padding: 1rem 0; border-top: 1px solid var(--rule); }
.sede-facts dt { color: var(--accent); font-size: .95rem; font-weight: 700; }
.sede-facts dd { margin: .3rem 0 0; font-size: 1.2rem; line-height: 1.55; overflow-wrap: anywhere; }
.sede-note { padding: 1rem 1.2rem; background: var(--panel); border-left: 4px solid var(--gold); }
.sede-locator { grid-row: span 2; align-self: start; padding: 1.5rem; background: var(--navy); color: var(--ivory); }
.sede-locator svg { display: block; width: 100%; max-width: 260px; margin-inline: auto; height: auto; }
.sede-locator path, .sede-locator-svg path { fill: rgba(228,185,104,.15); stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; }
.sede-locator-halo { fill: rgba(242,207,136,.3); }
.sede-locator-dot { fill: var(--gold-soft); stroke: var(--navy); stroke-width: 2; }
.sede-locator figcaption { text-align: center; color: #c8d3d9; font-size: .95rem; }
.sede-people, .sede-schedule { list-style: none; margin: 0; padding: 0; }
.sede-people li, .sede-schedule li { padding: 1rem 0; border-top: 1px solid var(--rule); font-size: 1.15rem; line-height: 1.5; }
.sede-people strong { display: block; font-size: 1.25rem; }
.sede-people span { color: var(--accent); font-size: 1rem; }
.sede-nearby { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--rule); }
.sede-nearby ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.sede-nearby a:not(.text-link) { display: block; height: 100%; padding: 1.2rem; background: var(--panel); border: 2px solid transparent; }
.sede-nearby a:not(.text-link):hover { border-color: var(--navy); }
.sede-nearby strong { display: block; font-size: 1.15rem; }
.sede-nearby span { display: block; margin-top: .3rem; color: var(--accent); font-size: 1rem; }

.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2,12,20,.97); color: var(--ivory); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(2,12,20,.9); }
.lightbox-bar, .lightbox-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 4vw; }
.lightbox-bar p { margin: 0; font-size: 1.15rem; font-weight: 700; }
.lightbox figure { display: grid; place-items: center; min-height: 0; padding: 0 4vw; }
.lightbox figure img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { min-height: 56px; padding: .6rem 1.4rem; border: 2px solid var(--ivory); background: transparent; color: var(--ivory); font-size: 1.1rem; font-weight: 700; }
.lightbox button:hover { background: var(--ivory); color: var(--navy); }
.lightbox-nav button { flex: 1; max-width: 260px; }

@media (max-width: 1000px) {
  .finder { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; }
  .page-header-main { grid-template-columns: 1fr; }
  .locations-layout { grid-template-columns: 1fr; gap: 2rem; }
  .locations-map { position: static; }
  #church-map { height: 440px; }
  .sede-details { grid-template-columns: 1fr; gap: 3rem; }
  .sede-main { grid-template-columns: 1fr; gap: 2.5rem; }
  .sede-main-visual { max-width: 420px; }
  .sede-locator { grid-row: auto; }
  .sede-nearby ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .finder { padding: 1.25rem; }
  .finder-search label, .finder-near > p:first-child { font-size: 1.15rem; }
  .finder-input input { font-size: 1.15rem; min-height: 58px; padding-inline: .6rem; }
  .finder-input svg { margin-left: .7rem; }
  .finder-regions button { flex: 1 1 calc(50% - .7rem); padding-inline: .6rem; }
  .location-entry { grid-template-columns: 72px 1fr; gap: .9rem; }
  .location-photo img, .location-photo-empty { width: 72px; height: 72px; }
  .location-photo-empty img { width: 46px; }
  .location-open { flex: 1 1 100%; }
  .location-map-button { flex: 1 1 100%; }
  #church-map { height: 380px; }
  .sede { padding: 2rem 1.5rem 3.5rem; }
  .page-header { padding: calc(var(--header-height) + 1rem) 1.5rem 2.5rem; }
  .page-header h1 { font-size: clamp(2.5rem, 10vw, 3rem); }
  .sede-main { padding: 3.5rem 1.5rem; }
  .sede-actions .button { flex: 1 1 100%; }
  .sede-photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .sede-photos-1 { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .sede-photos-2 { grid-auto-rows: 200px; }
  .sede-photos-empty { flex-direction: column; text-align: center; }
  .sede-nearby ul { grid-template-columns: 1fr; }
  .lightbox-nav button { max-width: none; }
}

.site-footer { padding: 3rem 5vw; background: #021522; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .9rem; }
.site-footer > p { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; line-height: 1.6; }

.news-card { max-width: 62ch; padding: 2.5rem; background: var(--panel); border-top: 4px solid var(--gold); }
.news-card h2 { margin: 0 0 1rem; font: 500 2.4rem/1.15 var(--serif); }
.news-card p { margin: 0 0 1.8rem; font-size: 1.1rem; line-height: 1.75; }
.news-card .text-link { padding: 0; color: var(--accent); font-weight: 700; }
.footer-contact { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; font-style: normal; padding-top: 2rem; border-top: 1px solid var(--line); }
.footer-contact > div { display: grid; align-content: start; gap: .6rem; min-width: 0; }
.footer-contact > div > span { font-size: .85rem; color: var(--gold-soft); }
.footer-contact a { width: fit-content; max-width: 100%; padding-block: .35rem; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: .25em; }
.facebook-link { display: inline-flex; align-items: center; gap: .6rem; }
.facebook-link svg { flex: 0 0 20px; color: var(--gold-soft); }

@media (max-width: 1200px) {
  .site-footer { grid-template-columns: 1fr; }
  :root { --header-height: 92px; }
  .site-header .brand-mark { width: 96px; height: 64px; }
  .site-header .brand-name { font-size: 1.3rem; }
  .menu-open .site-header { background: var(--navy); }
  .menu-toggle { position: relative; z-index: 2; display: grid; gap: 5px; width: 44px; height: 44px; flex-shrink: 0; place-content: center; border: 1px solid var(--line); background: var(--navy); color: var(--ivory); }
  .menu-toggle span:not(.sr-only) { width: 19px; height: 1px; background: currentColor; }
  .main-nav { position: fixed; inset: var(--header-height) 0 0; flex-direction: column; justify-content: safe center; gap: 1rem; background: var(--navy); font-size: 1.6rem; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .main-nav.is-open { visibility: visible; opacity: 1; }
  .main-nav .nav-cta { font-size: 1rem; margin-top: .7rem; }
  .hero h1 { font-size: clamp(3.3rem, 6vw, 4.6rem); }

  .identity { gap: 4vw; }
  .principles article { grid-template-columns: 1fr; gap: .5rem; }
}

@media (max-width: 680px) {
  :root { --header-height: 76px; }
  .site-header { padding-inline: 1.25rem; gap: .5rem; }
  .site-header .brand-mark { width: 65px; height: 44px; }
  .site-header .brand-name { font-size: clamp(.8rem, 3.6vw, 1rem); }
  .brand-mark { width: 65px; height: 44px; }
  .brand-name { font-size: 1rem; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 4rem); line-height: 1.06; }
  .hero-actions { gap: 1rem; margin-top: 1.5rem; }
  .journey-film { padding: 3.5rem 1.5rem; }
  .journey-film-frame { position: relative; top: 0; height: auto; aspect-ratio: 16 / 9; margin: 0 0 2rem; z-index: 1; background: var(--navy); }
  .journey-film video { height: 100%; object-fit: cover; object-position: center; }
  .journey-shade { background: linear-gradient(180deg, transparent 55%, rgba(3,28,45,.85) 100%); }
  .history-steps { margin-top: 0; padding: 0; max-width: none; }

  .history-step, .history-step:first-child { padding: 1.5rem 0; }

  .history-step h1, .history-step h2 { font-size: 2.2rem; }
  .history-step p { font-size: 1rem; line-height: 1.8; }
  .section-shell { padding: 3.5rem 1.5rem; }
  .identity, .ministries { grid-template-columns: 1fr; gap: 2.5rem; }
  .identity-intro { grid-row: 1; }
  .community-photo img { aspect-ratio: 4 / 3; object-position: center 60%; }
  .identity h2, .ministries h2, .sede-main h2 { font-size: clamp(2.5rem, 10vw, 3rem); }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .structure-path { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; margin-top: 2.5rem; }
  .structure-path dt { font-size: 1.45rem; overflow-wrap: anywhere; }
  .structure-path dd { font-size: .95rem; }
  .ministries { padding: 3.5rem 1.5rem; }
  .ministry-photo img { aspect-ratio: 4 / 3; }
  .locations { padding: 2.5rem 1.5rem 3.5rem; }
  .news-card { padding: 1.6rem; }
  .footer-contact { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .site-footer nav { gap: 1rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .journey-film-frame { position: relative; top: 0; height: auto; aspect-ratio: 16 / 9; }
  .journey-film video { height: 100%; }
  .history-steps { margin-top: 0; }
  .hero-dot.is-active .hero-dot-fill { width: 100%; }
}

/* Institutional content uses the existing editorial typography and dividers. */
.faith-carousel { position: relative; margin-top: 2.5rem; }
.faith-carousel-toolbar { display: flex; justify-content: flex-end; gap: .6rem; margin-bottom: 1.2rem; }
.faith-carousel-toolbar button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(12,34,48,.3); background: var(--ivory); color: var(--ink); font-size: 1.3rem; line-height: 1; transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease; }
.faith-carousel-toolbar button:hover:not(:disabled) { background: var(--ink); color: var(--ivory); border-color: var(--ink); box-shadow: 0 10px 18px -10px rgba(12,34,48,.45); transform: translateY(-2px); }
.faith-carousel-toolbar button:active:not(:disabled) { transform: translateY(0); }
.faith-carousel-toolbar button:disabled { opacity: .3; cursor: default; }
.faith-carousel-track { display: flex; gap: 1.5rem; list-style: none; margin: 0 -7vw; padding: 1.5rem 7vw 2rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 7vw; scrollbar-width: none; }
.faith-carousel-track::-webkit-scrollbar { display: none; }
.faith-article {
  position: relative; flex: 0 0 auto; width: min(360px, 84vw);
  scroll-snap-align: start; background: var(--ivory); border-top: 4px solid #a8824a;
  box-shadow: 0 16px 30px -22px rgba(12,34,48,.5);
  padding: 1.85rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: .6rem;
  transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease;
}
.faith-article:hover { border-top-color: var(--gold-soft); box-shadow: 0 24px 40px -20px rgba(12,34,48,.55); }
.faith-carousel.js-ready .faith-article { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease, box-shadow .35s ease, border-color .35s ease; }
.faith-carousel.js-ready .faith-article.is-revealed { opacity: 1; transform: translateY(0); }
.faith-carousel.js-ready .faith-article.is-revealed.is-active { transform: scale(1.03); border-top-color: var(--gold-soft); box-shadow: 0 28px 46px -18px rgba(12,34,48,.6); }
.faith-article::before {
  content: attr(data-number); position: absolute; top: .2rem; right: .9rem;
  font: 600 3.8rem/1 var(--serif); color: rgba(119,83,38,.09); pointer-events: none;
}
.faith-article-number { position: relative; z-index: 1; flex: 0 0 auto; font: 700 .8rem var(--sans); color: #775326; letter-spacing: .05em; }
.faith-article h2 { position: relative; z-index: 1; flex: 0 0 auto; margin: 0; font: 600 1.3rem/1.3 var(--serif); }
.faith-article-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; margin: .5rem 0; font-size: 1rem; line-height: 1.7; }
.faith-article > .text-link { margin-top: auto; align-self: flex-start; }
.faith-index ol { columns: 2; column-gap: 3rem; margin: 0 0 1.5rem; padding-left: 1.8rem; }
.faith-index li { break-inside: avoid; padding: .15rem 0; line-height: 1.6; }
.faith-index a { display: inline-block; padding: .45rem 0; text-decoration: underline; text-underline-offset: .2em; }
.faith-reading article { padding-top: 2.5rem; }
.faith-reading article + article { margin-top: 2rem; border-top: 1px solid rgba(12,34,48,.28); }
.faith-reading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.faith-reading h3 { margin: 2rem 0 .8rem; font: 700 1.1rem/1.5 var(--sans); }
.organization-heading { margin: 3rem 0 1.5rem; font: 500 2.2rem/1.2 var(--serif); }
.organization-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; margin: 0; }
.organization-list > div { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.organization-list dt { color: var(--accent); font: 500 1.65rem/1.3 var(--serif); }
.organization-list dd { margin: .6rem 0 0; line-height: 1.7; }
.organization-list .region-territory { color: var(--muted); font-size: .9rem; }
.organization-details { padding-bottom: 0; }
.organization-details summary:hover { color: var(--accent); }
.organization-details h3 { margin: 1.5rem 0; font: 500 1.8rem/1.3 var(--serif); }
.council-members { padding-left: 1.2rem; line-height: 1.9; }
.directory-note, .ministry-content > .directory-note { max-width: 70ch; margin-top: 1.5rem; font-size: .85rem; line-height: 1.7; }
@media (max-width: 680px) {
  .organization-list { grid-template-columns: 1fr; }
  .faith-index ol { columns: 1; }
  .principles article { grid-template-columns: 1fr; gap: .25rem; }
}

/* A calm welcome connects the cinematic opening to practical information. */
.welcome { display: grid; grid-template-columns: 1.2fr 1fr; gap: 7vw; padding: 5rem 7vw; }
.welcome h2 { margin: 0 0 .6rem; font: 500 2.4rem/1.1 var(--serif); }
.welcome h3 { margin: 0 0 .5rem; font: 700 1rem/1.5 var(--sans); }
.welcome p { max-width: 53ch; margin: 0; font-size: .95rem; line-height: 1.75; }
.welcome-visit { padding-left: 2rem; border-left: 1px solid rgba(12,34,48,.25); }
.welcome .text-link { margin-top: .3rem; }
.welcome .arrow { margin-left: .75rem; }
.organization-details + .organization-details { margin-top: -1px; }
.organization-details[open] { padding-bottom: 1.5rem; }
@media (max-width: 900px) and (min-width: 681px) {
  .history-steps { padding-inline: 5vw; }
  .history-step h1, .history-step h2 { font-size: 2.2rem; }
}
@media (max-width: 900px) {
  .hero { min-height: 100svh; align-items: flex-start; }
  .hero-image { top: var(--header-height); height: auto; aspect-ratio: 16 / 9; }
  .hero-carousel-controls { right: 1.25rem; bottom: 1rem; }
  .hero-carousel-arrow { width: 34px; height: 34px; font-size: 1.05rem; }
  .hero-shade { background: linear-gradient(180deg, transparent calc(var(--header-height) + 44vw), var(--navy) calc(var(--header-height) + 56.25vw)); }
  .hero-content { width: calc(100% - 3rem); margin: calc(56.25vw + 1rem) 1.5rem 5rem; }
}
@media (max-width: 680px) {
  .welcome { grid-template-columns: 1fr; gap: 1.5rem; padding: 3.5rem 1.5rem; }
  .welcome-visit { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid rgba(12,34,48,.25); }
  .welcome h2 { font-size: 2.2rem; }
  .faith-carousel-track { margin: 0 -1.5rem; padding: .3rem 1.5rem 1.5rem; scroll-padding-inline: 1.5rem; }
  .hero-carousel-dots { display: none; }
  .hero-carousel-count { display: block; }
}
