/* ==========================================================================
   Iglesia Pentecostal El Tabernáculo de Salvación
   Design: vintage evangelistic broadsheet — midnight navy + aged brass gold
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --navy-deep: #13274E;
  --navy-mid: #1D3768;
  --navy-soft: #294C8A;
  --navy-line: #365BA0;

  --gold: #C9A24B;
  --gold-bright: #E4C27A;
  --gold-deep: #8C6F2E;
  --gold-glow: rgba(201, 162, 75, 0.18);

  --cream: #E8DFC9;
  --cream-soft: #F2E8D5;
  --parchment: #D9C79F;
  --wine: #8B2E2A;

  --text: #E8DFC9;
  --text-muted: #AB9D7E;
  --text-dim: #7A7056;

  --rule: rgba(201, 162, 75, 0.28);
  --rule-soft: rgba(201, 162, 75, 0.12);

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-deep: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 0 60px rgba(201, 162, 75, 0.12);

  --serif-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --serif-body: "EB Garamond", "Cormorant Garamond", Georgia, serif;

  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 8px;

  --container: 1200px;
  --reading: 680px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-deep);
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background atmosphere: subtle radial + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201, 162, 75, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 110%, rgba(139, 46, 42, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(201, 162, 75, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Paper grain overlay — subtle SVG noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78   0 0 0 0 0.65   0 0 0 0 0.35   0 0 0 0.28 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

main, header, footer { position: relative; z-index: 2; }

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--cream-soft); }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cream-soft);
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  color: var(--gold-bright);
}

p { max-width: 62ch; }

em, i { font-style: italic; color: var(--cream); }

::selection { background: var(--gold); color: var(--navy-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-variation-settings: "opsz" 24;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--rule);
}
.eyebrow--center { justify-content: center; }

.bilingual {
  display: block;
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.86em;
  font-weight: 400;
  margin-top: 0.35em;
  letter-spacing: 0.02em;
}

.dropcap::first-letter {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  margin: 0.15rem 0.6rem 0 0;
  color: var(--gold-bright);
  font-feature-settings: "dlig";
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
}

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.reading { max-width: var(--reading); margin-inline: auto; }

.center { text-align: center; }

/* ---------- Ornamental Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-block: clamp(2rem, 4vw, 3.5rem);
  color: var(--gold);
}
.divider::before,
.divider::after {
  content: "";
  flex: 0 1 160px;
  height: 1px;
  background: linear-gradient(to var(--_dir, right), transparent, var(--gold) 80%);
}
.divider::after { --_dir: left; }

.divider__mark {
  font-family: var(--serif-display);
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.4em;
  padding-left: 0.4em;
}

/* Cross / fleuron SVG slot */
.divider svg { width: 22px; height: 22px; color: var(--gold); flex: 0 0 auto; }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--ink, #070A14);
  border-bottom: 1px solid var(--navy-line);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--serif-display);
  font-variation-settings: "opsz" 12;
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  flex-wrap: wrap;
}
.topbar__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar__sep { color: var(--gold-deep); }
.topbar__socials { display: flex; gap: 0.9rem; align-items: center; }
.topbar__socials a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s var(--ease);
}
.topbar__socials a:hover { color: var(--gold-bright); }
.topbar__socials svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .topbar__row { justify-content: center; text-align: center; }
  .topbar__meta { justify-content: center; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 39, 78, 0.88);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--rule-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--cream-soft);
}
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.06);
  flex: 0 0 auto;
  background: var(--navy-mid);
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__title {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--cream-soft);
  font-variation-settings: "opsz" 24;
}
.brand__subtitle {
  font-family: var(--serif-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
  font-variation-settings: "opsz" 12;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav__link {
  position: relative;
  font-family: var(--serif-display);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
  padding-block: 0.35rem;
  font-variation-settings: "opsz" 14;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.35s var(--ease-out), left 0.35s var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--gold-bright); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; left: 0; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--gold);
}
.nav__toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--navy-deep);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 0 1.25rem;
    display: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__link {
    display: block;
    width: 100%;
    padding: 1.5rem 2rem;
    margin: 0;
    border: none;
    letter-spacing: 0.26em;
    font-size: 1rem;
    min-height: 56px;
  }
  .nav__link:active { background: rgba(201, 162, 75, 0.08); }
  .nav__link::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero__inner { position: relative; z-index: 2; }

.hero__glow {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}
.hero__glow::before {
  content: "";
  width: min(640px, 90vw);
  height: min(640px, 90vw);
  background: radial-gradient(circle at center,
    rgba(228, 194, 122, 0.22) 0%,
    rgba(201, 162, 75, 0.12) 30%,
    transparent 65%);
  filter: blur(8px);
}

.hero__logo {
  width: min(540px, 84vw);
  margin: 0 auto 1.75rem;
  position: relative;
  animation: flicker 7s ease-in-out infinite;
}
.hero__logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  47% { opacity: 1; }
  48% { opacity: 0.94; }
  49% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.96; }
  94% { opacity: 1; }
}

.hero__scripture {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--gold-bright);
  letter-spacing: 0.01em;
  margin: 0.5rem auto 1.5rem;
  max-width: 36ch;
  font-variation-settings: "opsz" 72;
}
.hero__scripture small {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.hero__headline {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  line-height: 1.15;
  color: var(--cream-soft);
  max-width: 22ch;
  margin: 0 auto 0.6rem;
  font-variation-settings: "opsz" 144, "SOFT" 70;
}
.hero__headline em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
}

.hero__sub {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0.5rem auto 0;
}

.hero__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--serif-display);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: transparent;
  transition: all 0.3s var(--ease);
  font-variation-settings: "opsz" 14;
}
.btn:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-1px);
}
.btn--solid {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--solid:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}
.btn__arrow {
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Schedule ---------- */
.schedule {
  position: relative;
}

.schedule__card {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3.5vw, 3rem);
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-deep), var(--shadow-gold);
}
.schedule__card::before,
.schedule__card::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--rule-soft);
}
.schedule__card::before { top: 0.5rem; }
.schedule__card::after { bottom: 0.5rem; }

.schedule__header {
  text-align: center;
  margin-bottom: 2rem;
}
.schedule__header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.35rem;
}

.schedule__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.schedule__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 1.08rem;
  transition: background 0.3s var(--ease);
}
.schedule__row:last-child { border-bottom: none; }
.schedule__row:hover { background: rgba(201, 162, 75, 0.04); }

.schedule__day-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.schedule__day {
  font-family: var(--serif-display);
  font-weight: 600;
  color: var(--cream-soft);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 36;
}
.schedule__activity {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.schedule__time {
  text-align: right;
  font-family: var(--serif-display);
  color: var(--gold-bright);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variation-settings: "opsz" 36;
  white-space: nowrap;
}

.schedule__row--closed .schedule__day {
  color: var(--text-dim);
  font-weight: 400;
}
.schedule__row--closed .schedule__time {
  color: var(--text-dim);
  font-style: italic;
  font-weight: 400;
}

.schedule__row--active {
  background: linear-gradient(90deg, transparent, rgba(201, 162, 75, 0.06), transparent);
}

@media (max-width: 520px) {
  .schedule__row { padding: 0.85rem 0.25rem; }
  .schedule__day { font-size: 1.02rem; }
  .schedule__activity { font-size: 0.85rem; }
  .schedule__time { font-size: 0.95rem; }
}

/* ---------- Info / Map ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
@media (max-width: 820px) {
  .info-grid { grid-template-columns: 1fr; }
}

.map-frame {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow-soft);
  background: var(--navy-mid);
  position: relative;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: sepia(0.15) saturate(0.8) brightness(0.9);
}

.info-card {
  background: var(--navy-mid);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.info-card h3 {
  color: var(--gold-bright);
  margin-bottom: 1.25rem;
}
.info-card dl {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.info-card dt {
  font-family: var(--serif-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
  font-variation-settings: "opsz" 12;
}
.info-card dd {
  font-family: var(--serif-body);
  font-size: 1.08rem;
  color: var(--cream-soft);
  line-height: 1.5;
}
.info-card dd a {
  color: var(--cream-soft);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.info-card dd a:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ---------- Quote ---------- */
.quote {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding-inline: 1rem;
}
.quote blockquote {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.3;
  color: var(--cream-soft);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.quote blockquote::before,
.quote blockquote::after {
  font-family: var(--serif-display);
  color: var(--gold);
  font-size: 1.4em;
  font-weight: 700;
  line-height: 0;
  opacity: 0.7;
}
.quote blockquote::before { content: "“"; margin-right: 0.1em; }
.quote blockquote::after { content: "”"; margin-left: 0.1em; }
.quote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--serif-display);
  font-variation-settings: "opsz" 12;
}

/* ---------- Page Header (non-home) ---------- */
.page-header {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  text-align: center;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, var(--gold-glow), transparent 60%);
  pointer-events: none;
}
.page-header__title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1;
  color: var(--cream-soft);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  letter-spacing: -0.015em;
}
.page-header__sub {
  margin-top: 0.75rem;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ---------- Pastor Card ---------- */
.pastor {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  background: linear-gradient(180deg, var(--navy-mid), var(--navy-deep));
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 720px) {
  .pastor { grid-template-columns: 1fr; text-align: center; }
  .pastor__portrait { margin-inline: auto; }
}
.pastor__portrait {
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 280px;
  background:
    repeating-linear-gradient(45deg, rgba(201, 162, 75, 0.04) 0, rgba(201, 162, 75, 0.04) 2px, transparent 2px, transparent 6px),
    linear-gradient(180deg, var(--navy-soft), var(--navy-deep));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
}
.pastor__portrait::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}
.pastor__portrait svg {
  width: 56px; height: 56px; opacity: 0.5;
}
.pastor__portrait--photo {
  padding: 0;
  overflow: hidden;
  aspect-ratio: auto;
  width: auto;
  max-width: 100%;
  height: auto;
  display: inline-block;
  background: transparent;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(201, 162, 75, 0.15);
}
.pastor__portrait--photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.05) saturate(0.98) contrast(1.02);
  transition: filter 0.5s var(--ease);
}
.pastor__portrait--photo:hover img {
  filter: sepia(0.02) saturate(1) contrast(1.03);
}
.pastor__portrait--photo::before {
  border-color: rgba(201, 162, 75, 0.38);
  z-index: 2;
}
.pastor__name {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  color: var(--cream-soft);
  margin-bottom: 0.25rem;
  font-family: var(--serif-display);
  font-weight: 500;
  line-height: 1.1;
  font-variation-settings: "opsz" 144;
}
.pastor__role {
  font-family: var(--serif-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-variation-settings: "opsz" 12;
}
.pastor__bio {
  font-size: 1.08rem;
  color: var(--cream);
  line-height: 1.7;
}

/* ---------- History / Timeline ---------- */
.history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.history__item {
  text-align: center;
  padding: 2rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(30, 42, 74, 0.35);
  position: relative;
}
.history__year {
  font-family: var(--serif-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--gold-bright);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  display: block;
}
.history__label {
  font-family: var(--serif-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 0.75rem;
  display: block;
  font-variation-settings: "opsz" 12;
}
.history__label-en {
  display: block;
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ---------- Description Block ---------- */
.description {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .description { grid-template-columns: 1fr; }
}
.description__block {
  position: relative;
  padding-left: 1.5rem;
}
.description__block::before {
  content: "";
  position: absolute;
  left: 0; top: 0.4rem; bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.description__lang {
  font-family: var(--serif-display);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
  font-variation-settings: "opsz" 12;
}
.description__block p {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--cream);
  max-width: none;
}
.description__block--en p {
  font-style: italic;
  color: var(--text-muted);
}

/* ---------- Congregation Photo ---------- */
.congregation-photo {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem;
  background: linear-gradient(180deg, var(--navy-soft), var(--navy-deep));
  border: 1px solid rgba(201, 162, 75, 0.22);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(201, 162, 75, 0.12);
}
.congregation-photo::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border: 1px solid rgba(201, 162, 75, 0.38);
  pointer-events: none;
  z-index: 2;
}
.congregation-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
  image-rendering: auto;
}

/* ---------- Activities / Event Cards ---------- */
.activities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.activity {
  background: linear-gradient(180deg, var(--navy-mid), rgba(20, 29, 54, 0.6));
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}
.activity::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
  transition: opacity 0.3s var(--ease);
}
.activity:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-soft), 0 0 40px rgba(201, 162, 75, 0.1);
}
.activity:hover::before { opacity: 1; }

.activity__day {
  font-family: var(--serif-display);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-variation-settings: "opsz" 12;
}
.activity__title {
  font-family: var(--serif-display);
  font-size: 1.4rem;
  color: var(--cream-soft);
  font-weight: 500;
  line-height: 1.25;
  font-variation-settings: "opsz" 72;
}
.activity__title-en {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
}
.activity__time {
  font-family: var(--serif-display);
  color: var(--gold-bright);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  font-variation-settings: "opsz" 36;
}
.activity__desc {
  font-size: 1rem;
  color: var(--cream);
  line-height: 1.6;
  margin-top: 0.5rem;
}
.activity--featured {
  border-color: rgba(201, 162, 75, 0.45);
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(201, 162, 75, 0.08), transparent 60%),
    linear-gradient(180deg, var(--navy-mid), rgba(20, 29, 54, 0.6));
}

/* Events list variant */
.event {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.75rem;
  padding: 1.75rem 1.25rem;
  border-bottom: 1px solid var(--rule-soft);
  align-items: center;
}
.event:last-child { border-bottom: none; }
@media (max-width: 600px) {
  .event { grid-template-columns: 1fr; gap: 0.5rem; }
}
.event__date {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(30, 42, 74, 0.4);
}
.event__day {
  display: block;
  font-family: var(--serif-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1;
  font-variation-settings: "opsz" 72;
}
.event__month {
  display: block;
  font-family: var(--serif-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
  font-variation-settings: "opsz" 12;
}
.event__body h3 {
  font-size: 1.45rem;
  color: var(--cream-soft);
  margin-bottom: 0.25rem;
}
.event__meta {
  font-family: var(--serif-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-variation-settings: "opsz" 12;
  margin-bottom: 0.5rem;
}
.event__desc {
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Announcement / Note ---------- */
.note {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(30, 42, 74, 0.3);
}
.note p {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: none;
}
.note__label {
  font-family: var(--serif-display);
  font-style: normal;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-variation-settings: "opsz" 12;
}
.note__link {
  color: var(--gold-bright);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.note__link:hover {
  color: var(--cream-soft);
  border-color: var(--gold-bright);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  background: var(--ink, #070A14);
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.footer__brand .brand__mark {
  width: 64px;
  height: 64px;
}
.footer__brand-text h4 {
  font-family: var(--serif-display);
  font-size: 1.2rem;
  color: var(--cream-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
  font-variation-settings: "opsz" 72;
}
.footer__brand-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 32ch;
}

.footer__col h5 {
  font-family: var(--serif-display);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
  font-variation-settings: "opsz" 12;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col a { color: var(--cream); }
.footer__col a:hover { color: var(--gold-bright); }
.footer__col p {
  color: var(--cream);
  font-size: 0.98rem;
  line-height: 1.55;
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.footer__socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all 0.3s var(--ease);
}
.footer__socials a:hover {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.footer__socials svg { width: 16px; height: 16px; }

.footer__meta {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--serif-display);
  letter-spacing: 0.05em;
  font-variation-settings: "opsz" 12;
}
.footer__omip {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.footer__omip strong {
  color: var(--gold);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-family: var(--serif-display);
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__logo { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Utilities ---------- */
.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;
}

/* ---------- Language Toggle ---------- */
html[data-lang="es"] [lang="en"] { display: none; }
html[data-lang="en"] [lang="es"] { display: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: var(--serif-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  font-variation-settings: "opsz" 12;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-toggle:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.06);
}
.lang-toggle svg { width: 13px; height: 13px; opacity: 0.85; }

.nav__lang { display: inline-flex; align-items: center; }
.nav__lang .lang-toggle {
  color: var(--cream);
  border-color: rgba(231, 220, 195, 0.28);
  background: transparent;
}
.nav__lang .lang-toggle:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.08);
}

@media (max-width: 820px) {
  .nav__lang {
    padding: 0.75rem 2rem 0.25rem;
    margin: 0 1.25rem;
    justify-content: flex-start;
  }
  .nav__lang .lang-toggle { padding: 0.55rem 0.9rem; }
}

html[data-lang="es"] .lang-toggle__to-es,
html[data-lang="en"] .lang-toggle__to-en { display: none; }
