/* ============================================================
   PARROQUIA SAN ANTONIO DE PADUA — IQUIQUE
   Premium Design System
   Identity: "Tradición y Esperanza"
   Palette extracted from the parish logo + franciscan warmth
   ============================================================ */

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

:root {
  /* Palette — derived from logo: chocolate brown, deep blue, cream,
     with a refined franciscan gold for warmth */
  --brown-900: #2a1608;
  --brown:    #3f240e;   /* logo chocolate */
  --brown-2:  #5c3418;
  --brown-3:  #7c5230;
  --brown-soft:#8b6a4f;
  --gold:     #c69a4b;   /* franciscan gold */
  --gold-2:   #d9b879;
  --gold-3:   #efd9a7;
  --gold-bg:  #f7ecd7;
  --blue:     #0050a0;   /* logo blue */
  --blue-2:   #083f77;
  --blue-soft: #eaf2fa;
  --cream:    #faf6ee;   /* warm paper cream */
  --cream-2:  #f3ecdd;
  --ink:      #2c1f13;
  --muted:    #6b5744;
  --line:     #e7dcc9;

  /* Typography */
  --ff-body:  "DM Sans", sans-serif;
  --ff-head:  "Outfit", sans-serif;
  --ff-script:"Dancing Script", cursive;

  /* Spacing (4pt scale) */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:20px;--sp-6:24px;
  --sp-8:32px;--sp-10:40px;--sp-12:48px;--sp-16:64px;--sp-20:80px;

  /* Radius */
  --r-sm:12px; --r:20px; --r-lg:30px; --r-pill:999px;

  /* Shadows — warm, layered */
  --sh-sm:  0 2px 10px rgba(63,36,14,.06);
  --sh-md:  0 10px 30px rgba(63,36,14,.10);
  --sh-lg:  0 24px 60px rgba(63,36,14,.14);
  --sh-gold:0 12px 34px rgba(198,154,75,.22);
  --sh-blue:0 12px 34px rgba(0,80,160,.22);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);   /* ease-out, refined */
  --ease-snap: cubic-bezier(.34,1.4,.64,1);
  --dur: .32s;
  --dur-fast: .22s;

  /* Layout */
  --header-h: 124px;
  --container: 1240px;
}

/* --- Base --- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); overflow-x: clip }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit }
button,input,textarea,select { font: inherit; color: inherit }
img { max-width: 100%; display: block }
ul,ol { list-style: none }

/* Subtle paper grain over the whole page (via body background layering) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(rgba(63,36,14,.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

.container { width: min(var(--container), calc(100% - 48px)); margin: auto }

/* --- Reduced motion: respect user preference --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   SCROLL REVEAL — refined
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(.985);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0) scale(1) }

.stagger > * {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.stagger.in-view > * { opacity: 1; transform: none }
.stagger.in-view > *:nth-child(1){ transition-delay:.05s }
.stagger.in-view > *:nth-child(2){ transition-delay:.12s }
.stagger.in-view > *:nth-child(3){ transition-delay:.19s }
.stagger.in-view > *:nth-child(4){ transition-delay:.26s }
.stagger.in-view > *:nth-child(5){ transition-delay:.33s }
.stagger.in-view > *:nth-child(6){ transition-delay:.40s }

/* --- Keyframes --- */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(26px) }
  to   { opacity:1; transform: translateY(0) }
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes breathe {
  0%,100% { transform: translateY(0); opacity:1 }
  50%     { transform: translateY(-10px); opacity:.9 }
}
@keyframes rayspin {
  from { transform: translate(-50%,-50%) rotate(0deg) }
  to   { transform: translate(-50%,-50%) rotate(360deg) }
}
@keyframes shimmer {
  0%   { background-position: -200% center }
  100% { background-position: 200% center }
}
@keyframes ripple {
  0%   { transform: scale(1); opacity:.5 }
  100% { transform: scale(1.9); opacity:0 }
}
@keyframes barIn {
  from { transform: scaleX(0) }
  to   { transform: scaleX(1) }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%) }
  to   { opacity: 1; transform: translateY(0) }
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: .85 }
  50%      { transform: scale(1.14); opacity: 1 }
}

/* ============================================================
   TOPBAR — barra utilitaria (nota + redes sociales)
   ============================================================ */
.topbar {
  display: block;
  background: rgba(63,36,14,.05);
  border-bottom: 1px solid rgba(63,36,14,.06);
  transition: max-height .35s var(--ease), opacity .3s var(--ease), padding .35s var(--ease), margin .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar-note {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--brown-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-note .tq {
  display: inline-block;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.topbar-note.tq-swap .tq { opacity: 0; transform: translateY(-55%) }
.topbar-social { display: flex; align-items: center; gap: 6px }
.topbar-social a {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  color: var(--brown-2);
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.topbar-social a:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}
.topbar-social svg { width: 17px; height: 17px }
.site-header.scrolled .topbar {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  border-color: transparent;
}
.site-header.scrolled .topbar-inner { padding-top: 0; padding-bottom: 0 }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  display: flex;
  flex-direction: column;
  height: var(--header-h);
  background: rgba(250,246,238,.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(63,36,14,.06);
  animation: slideDown .55s var(--ease) both;
  transition: height .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.site-header.scrolled {
  height: 84px;
  background: rgba(255,253,248,.96);
  box-shadow: 0 6px 24px rgba(63,36,14,.09);
}
.nav-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  transition: height .4s var(--ease);
}
.brand img {
  width: 178px;                /* rectangular logo — spans wide */
  height: auto;
  max-height: 58px;
  object-fit: contain;
  transition: width .4s var(--ease), height .4s var(--ease);
  filter: drop-shadow(0 3px 10px rgba(63,36,14,.12));
}
.brand--historia img {
  width: 78px;                 /* square logo — circular chip */
  height: 78px;
  border-radius: 50%;
  padding: 4px;
  background: var(--cream);
  filter: drop-shadow(0 3px 10px rgba(63,36,14,.16));
}
.site-header.scrolled .brand img { width: 104px; max-height: 62px }
.site-header.scrolled .brand--historia img { width: 62px; height: 62px }

/* Menú principal — ítems icono + label */
.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--brown);
}
.main-nav > a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 14px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.main-nav > a .nav-ico {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 13px;
  background: rgba(0,80,160,.09);
  color: var(--blue);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.main-nav > a .nav-ico svg { width: 21px; height: 21px }
.main-nav > a:hover { color: var(--blue) }
.main-nav > a:hover .nav-ico {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}
.main-nav > a.active { color: var(--blue) }
.main-nav > a.active .nav-ico {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,80,160,.28);
}

/* CTA de aportes — píldora dorada liviana, icono compacto al lado del texto */
.main-nav > a.nav-donate {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  margin-left: 8px;
  padding: 5px 18px 5px 6px;
  background: var(--gold-bg);
  color: var(--brown-2) !important;
  border: 1px solid rgba(198,154,75,.55);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 2px 10px rgba(198,154,75,.14);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.main-nav > a.nav-donate .nav-ico {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.main-nav > a.nav-donate .nav-ico svg { width: 16px; height: 16px }
.main-nav > a.nav-donate:hover,
.main-nav > a.nav-donate.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(198,154,75,.32);
}
.main-nav > a.nav-donate:hover .nav-ico,
.main-nav > a.nav-donate.active .nav-ico {
  background: rgba(255,255,255,.24);
  color: #fff;
  transform: none;
}

/* Hamburger */
.menu-toggle {
  display: none;
  border: 0; background: none;
  width: 46px; height: 46px;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: var(--brown);
  margin: 6px 0;
  border-radius: 3px;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(9px) rotate(45deg) }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0 }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-9px) rotate(-45deg) }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  cursor: pointer;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .6px;
  min-height: 50px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left .55s var(--ease);
}
.btn:hover::after { left: 130% }
.btn:active { transform: translateY(0) scale(.97) }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: var(--sh-blue);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0,80,160,.32);
}
.btn-outline {
  border: 1.8px solid var(--brown);
  color: var(--brown);
  background: #fff;
}
.btn-outline:hover {
  background: var(--brown);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.btn-light {
  background: #fff;
  color: var(--brown);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
/* Gold CTA with a subtle shimmer sweep */
.btn-gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-2) 45%, var(--gold));
  background-size: 200% auto;
  color: var(--brown-900);
  font-weight: 800;
  box-shadow: var(--sh-gold);
  animation: shimmer 6s linear infinite;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(198,154,75,.38);
}

/* ============================================================
   HERO — logo protagonista
   ============================================================ */
.eyebrow, .section-kicker {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow::before, .section-kicker::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../assets/hero-fondo.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(20,12,6,.55) 50%, rgba(10,6,3,.65) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 64px 0 72px;
  max-width: 860px;
}
.hero-inner > * {
  animation: fadeUp .9s var(--ease) backwards;
}
.hero-inner > *:nth-child(1) { animation-delay: .08s }
.hero-inner > *:nth-child(2) { animation-delay: .18s }
.hero-inner > *:nth-child(3) { animation-delay: .28s }
.hero-inner > *:nth-child(4) { animation-delay: .38s }
.hero-inner > *:nth-child(5) { animation-delay: .48s }
.hero-inner .eyebrow {
  color: #f5d9a8;
  margin-bottom: 18px;
}
.hero-inner .eyebrow::before {
  background: linear-gradient(90deg, rgba(255,255,255,.85), var(--gold-2));
}
.hero h1 {
  font-family: var(--ff-head);
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #fff;
  font-weight: 750;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero h1 strong {
  color: transparent;
  background: linear-gradient(90deg, #7cc0ff, #fff);
  -webkit-background-clip: text;
  background-clip: text;
}
.script {
  font-family: var(--ff-script);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.1;
  color: var(--gold-3);
  margin: 10px 0 18px;
  transform: rotate(-2deg);
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
  transition: transform var(--dur) var(--ease);
}
.script:hover { transform: rotate(0deg) }
.hero-text {
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,.92);
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center }

/* ============================================================
   QUICK LINKS
   ============================================================ */
.quick-section {
  padding: 84px 0 90px;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(32px, 4vw, 42px);
  color: var(--brown-900);
  line-height: 1.06;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.quick-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: #fff;
  padding: 20px 14px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.quick-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.quick-card:hover {
  border-color: var(--gold-3);
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
}
.quick-card:hover::before { transform: scaleX(1) }
.icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.quick-card:hover .icon {
  transform: translateY(-3px) scale(1.06);
  background: linear-gradient(135deg, var(--grey,#f0e9d8), var(--gold-2));
}
.icon svg { width: 26px; height: 26px }
.quick-card span:last-child {
  font-size: 14px;
  color: var(--brown);
  font-weight: 600;
  line-height: 1.35;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-kicker { color: var(--gold); }
.body-copy {
  color: var(--muted);
  max-width: 600px;
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 40px;
}

/* ============================================================
   HISTORIA — Timeline
   ============================================================ */
.history-section { padding: 96px 0; background: var(--cream) }
.timeline {
  position: relative;
  max-width: 820px;
  margin: 40px auto 0;
  padding-left: 56px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 22px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--blue), var(--gold));
  border-radius: 3px;
  transform-origin: top;
  animation: barIn 1.2s var(--ease) both;
}
.timeline-item {
  position: relative;
  margin-bottom: 26px;
  padding: 30px 32px;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.timeline-item:hover {
  transform: translateX(6px);
  box-shadow: var(--sh-md);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -47px; top: 34px;
  width: 18px; height: 18px;
  background: var(--gold);
  border: 4px solid var(--cream);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 0 rgba(198,154,75,.35);
  transition: box-shadow var(--dur) var(--ease);
}
.timeline-item:hover::before { box-shadow: 0 0 0 2px var(--gold), 0 0 0 8px rgba(198,154,75,.15) }
.timeline-date {
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline-item h3 {
  font-family: var(--ff-head);
  font-size: 22px;
  color: var(--brown-900);
  margin-bottom: 10px;
  line-height: 1.2;
}
.timeline-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.history-note {
  max-width: 780px;
  margin: 24px auto 0;
  padding: 20px 26px;
  background: linear-gradient(180deg, var(--gold-bg), #fbf3e3);
  border-radius: var(--r);
  border-left: 4px solid var(--gold);
  font-size: 14px;
  color: var(--brown);
  line-height: 1.75;
  box-shadow: var(--sh-sm);
}

/* ============================================================
   ARQUITECTURA
   ============================================================ */
.arch-section { padding: 96px 0; background: #fff }
.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.arch-card {
  padding: 34px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--cream);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.arch-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--blue));
  border-radius: 4px 0 0 4px;
  transition: width .35s var(--ease);
}
.arch-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md) }
.arch-card:hover::before { width: 6px }
.arch-icon {
  display: inline-grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 16px;
  color: var(--gold);
  background: linear-gradient(160deg, #fff, var(--gold-bg));
  margin-bottom: 18px;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease);
}
.arch-card:hover .arch-icon { transform: translateY(-3px) rotate(-3deg) }
.arch-icon svg { width: 28px; height: 28px }
.arch-card h3 {
  font-family: var(--ff-head);
  font-size: 21px;
  color: var(--brown-900);
  margin-bottom: 10px;
}
.arch-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ---- Cards con foto de fondo clicable (lightbox) ---- */
.arch-card.has-photo {
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  cursor: zoom-in;
}
.arch-card.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,14,7,.18) 0%, rgba(22,14,7,.55) 58%, rgba(22,14,7,.82) 100%);
  pointer-events: none;
  z-index: 0;
}
.arch-card.has-photo > * { position: relative; z-index: 1 }
.arch-card.has-photo .arch-icon { margin-bottom: 14px }
.arch-card.has-photo h3 { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35) }
.arch-card.has-photo p { color: rgba(255,255,255,.93); text-shadow: 0 1px 4px rgba(0,0,0,.3) }
.arch-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.arch-zoom {
  position: absolute;
  top: 14px; right: 14px;
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #fff;
  background: rgba(22,14,7,.55);
  backdrop-filter: blur(3px);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 1;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.arch-zoom svg { width: 20px; height: 20px }
.arch-card.has-photo:hover .arch-zoom,
.arch-card.has-photo:focus-visible .arch-zoom {
  background: var(--gold);
  transform: scale(1.08);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12,7,3,.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--gold);
  transform: scale(1.06);
  outline: none;
}
.lightbox-figure {
  max-width: 1100px;
  max-height: 92vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox-figure img {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.lightbox-figure figcaption {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
body.lb-open { overflow: hidden }

@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none }
}

/* ============================================================
   CAMPAIGN — Levantemos San Antonio
   ============================================================ */
.campaign-section {
  padding: 96px 0;
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(198,154,75,.18) 0%, transparent 55%),
    linear-gradient(rgba(42,22,8,.72), rgba(42,22,8,.84)),
    url("../assets/campana-jardin.jpg") center / cover no-repeat,
    linear-gradient(135deg, var(--brown-900), var(--brown-2));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.campaign-section::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,217,169,.14), transparent 70%);
  pointer-events: none;
}
.campaign-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: auto;
}
.campaign-section .section-kicker { color: var(--gold-3); }
.campaign-section h2 {
  font-family: var(--ff-head);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.06;
  margin-bottom: 22px;
  color: #fff;
}
.campaign-section p {
  font-size: 16px;
  line-height: 1.8;
  opacity: .92;
  margin-bottom: 18px;
}
.campaign-status {
  display: inline-block;
  padding: 11px 26px;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  margin: 18px 0 32px;
  border: 1px solid rgba(255,255,255,.22);
  color: var(--gold-3);
  backdrop-filter: blur(4px);
}

/* ============================================================
   COMUNIDAD
   ============================================================ */
.community-section { padding: 96px 0; background: var(--cream) }
.community-section h2 {
  font-family: var(--ff-head);
  font-size: clamp(30px, 3.6vw, 40px);
  color: var(--brown-900);
  line-height: 1.06;
  letter-spacing: -1px;
}
.community-section h2 strong {
  color: transparent;
  background: linear-gradient(90deg, var(--blue), #0070c9);
  -webkit-background-clip: text;
  background-clip: text;
}
.community-subtitle {
  font-family: var(--ff-head);
  font-size: 23px;
  color: var(--brown-900);
  margin: 48px 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.community-subtitle::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}
.chapel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.chapel-card {
  padding: 28px;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chapel-card.has-photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  border-color: rgba(198,154,75,.45);
  background: radial-gradient(circle at 30% 25%, var(--brown-2), var(--brown-900));
}
.chapel-card.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,26,10,0.12) 0%, rgba(46,26,10,0.40) 50%, rgba(46,26,10,0.94) 100%);
  z-index: 1;
  pointer-events: none;
}
.chapel-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--dur) var(--ease);
}
.chapel-card.has-photo:hover .chapel-photo { transform: scale(1.04) }
.chapel-card.has-photo .chapel-icon,
.chapel-card.has-photo h3,
.chapel-card.has-photo .chapel-addr,
.chapel-card.has-photo > p,
.chapel-card.has-photo .chapel-loc { position: relative; z-index: 2 }
.chapel-card.has-photo h3 { color: #fff; text-shadow: 0 1px 6px rgba(46,26,10,.55) }
.chapel-card.has-photo .chapel-addr { color: var(--gold-2) }
.chapel-card.has-photo > p { color: rgba(255,248,238,.88) }
.chapel-card.has-photo .chapel-loc { border-top-color: rgba(255,248,238,.25) }
.chapel-card.has-photo .chapel-icon { background: rgba(255,255,255,.14); color: var(--gold-2) }
.chapel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: var(--gold-3);
}
.chapel-icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  color: var(--blue);
  background: var(--blue-soft);
  margin-bottom: 14px;
  transition: transform var(--dur) var(--ease);
}
.chapel-card:hover .chapel-icon { transform: translateY(-3px) }
.chapel-icon svg { width: 24px; height: 24px }
.chapel-card h3 {
  font-family: var(--ff-head);
  font-size: 19px;
  color: var(--brown-900);
  margin-bottom: 4px;
}
.chapel-card .chapel-addr {
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}
.chapel-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.chapel-loc {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.chapel-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.chapel-map svg { width: 15px; height: 15px }
.chapel-map:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-2px);
}
.chapel-waze {
  color: var(--brown);
  background: rgba(198,154,75,.14);
}
.chapel-waze:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: #fff;
}
.movements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 6px;
}
.movement-card {
  padding: 26px;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.movement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.movement-icon {
  width: 52px; height: 52px;
  min-width: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--gold-3), var(--gold-bg));
  color: var(--brown);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease);
}
.movement-card:hover .movement-icon { transform: translateY(-3px) rotate(-4deg) }
.movement-icon svg { width: 26px; height: 26px }
.movement-card h3 {
  font-family: var(--ff-head);
  font-size: 17px;
  color: var(--brown-900);
  margin-bottom: 4px;
}
.movement-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   HORARIOS
   ============================================================ */
.schedule-section { padding: 96px 0; background: #fff }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.schedule-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.schedule-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #0070c9, var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.schedule-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md) }
.schedule-card:hover::after { transform: scaleX(1) }
.schedule-card .day {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--blue);
  font-weight: 800;
  display: block;
  margin-bottom: 12px;
}
.schedule-card strong {
  font-family: var(--ff-head);
  font-size: 28px;
  color: var(--brown-900);
  display: block;
  font-weight: 700;
}
.schedule-card p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
}
.schedule-extra {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.extra-info {
  padding: 22px 26px;
  background: linear-gradient(180deg, var(--gold-bg), #fcf4e5);
  border-radius: var(--r);
  border-left: 4px solid var(--gold);
  box-shadow: var(--sh-sm);
}
.extra-info strong {
  font-family: var(--ff-head);
  font-size: 15px;
  color: var(--brown-900);
  display: block;
  margin-bottom: 4px;
}
.extra-info p {
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   SACRAMENTOS — inscripción
   ============================================================ */
.sacrament-section { padding: 96px 0; background: #fff }
.sacrament-section .body-copy { max-width: 760px }
.sacrament-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.sacrament-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 22px;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.sacrament-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: var(--gold-3);
}
.sacrament-icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  color: var(--blue);
  background: var(--blue-soft);
  margin-bottom: 14px;
  transition: transform var(--dur) var(--ease);
}
.sacrament-card:hover .sacrament-icon { transform: translateY(-3px) }
.sacrament-icon svg { width: 24px; height: 24px }
.sacrament-card h3 {
  font-family: var(--ff-head);
  font-size: 19px;
  color: var(--brown-900);
  margin-bottom: 10px;
}
.sacrament-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.sacrament-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--brown-2);
  line-height: 1.55;
}
.sacrament-softnote {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.sacrament-form-wrap {
  margin-top: 44px;
  padding: 32px 34px;
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--gold-bg), #fcf4e5);
  border: 1px solid var(--line);
}
.sacrament-form-wrap h3 {
  font-family: var(--ff-head);
  font-size: 21px;
  color: var(--brown-900);
  margin-bottom: 4px;
}
.sacrament-form-wrap > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.sacrament-form-wrap .contact-form { grid-template-columns: 1fr 1fr }
.sacrament-form-wrap .contact-form label:first-child,
.sacrament-form-wrap .contact-form label:nth-child(4),
.sacrament-form-wrap .contact-form label:nth-child(5),
.sacrament-form-wrap .contact-form .btn,
.sacrament-form-wrap .contact-form .form-message { grid-column: 1 / -1 }

/* ============================================================
   EQUIPO
   ============================================================ */
.team-section { padding: 96px 0; background: var(--cream) }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.team-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  padding: 26px;
  background: radial-gradient(circle at 30% 25%, var(--brown-2), var(--brown-900));
  border-radius: var(--r);
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.team-card::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 70px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  border-radius: 0 0 3px 3px;
  opacity: 0;
  z-index: 3;
  transition: opacity var(--dur) var(--ease), width var(--dur) var(--ease);
}
.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,26,10,0.05) 0%, rgba(46,26,10,0.30) 45%, rgba(46,26,10,0.94) 100%);
  z-index: 1;
  pointer-events: none;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md) }
.team-card:hover::before { opacity: 1; width: 100% }
/* Fondo de la card: foto real o placeholder con iniciales */
.team-photo,
.team-avatar {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  transition: transform var(--dur) var(--ease);
}
.team-photo { object-fit: cover }
.team-avatar {
  display: grid;
  place-items: center;
  font-family: var(--ff-head);
  font-size: 56px;
  font-weight: 800;
  color: rgba(255,244,224,.92);
  background: radial-gradient(circle at 30% 25%, var(--brown-2), var(--brown-900));
}
.team-card:hover .team-photo,
.team-card:hover .team-avatar { transform: scale(1.04) }
/* Contenido por encima del fondo */
.team-card .team-role,
.team-card h3,
.team-card p { position: relative; z-index: 2 }
.team-card .team-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--gold-2);
  font-weight: 800;
  margin-bottom: 6px;
}
.team-card h3 {
  font-family: var(--ff-head);
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 1px 6px rgba(46,26,10,.55);
}
.team-card p {
  font-size: 13px;
  color: rgba(255,248,238,.88);
  line-height: 1.6;
}
.team-contact {
  margin-top: 40px;
  text-align: center;
  padding: 26px;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.team-contact p { font-size: 14px; color: var(--muted) }
.team-contact p + p { margin-top: 8px }
.team-contact a { color: var(--blue); font-weight: 700 }

/* ============================================================
   DONACIONES
   ============================================================ */
/* ============================================================
   ACTIVIDADES / BOLETÍN
   ============================================================ */
.actividades-section {
  padding: 96px 0;
  background: var(--cream);
}
.actividades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.actividad-card {
  padding: 30px 22px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(63,36,14,.08);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.actividad-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: rgba(198,154,75,.45);
}
.actividad-icon {
  display: inline-grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brown), var(--brown-2));
  margin-bottom: 16px;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease);
}
.actividad-card:hover .actividad-icon { transform: translateY(-3px) scale(1.06) }
.actividad-icon svg { width: 28px; height: 28px }
.actividad-card h3 {
  font-family: var(--ff-head);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--brown);
}
.actividad-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.boletin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  background:
    radial-gradient(600px 260px at 0% 0%, rgba(255,255,255,.14) 0%, transparent 60%),
    linear-gradient(135deg, var(--brown), var(--brown-2));
  color: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.boletin-card::before {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,154,75,.35), transparent 70%);
  pointer-events: none;
}
.boletin-info {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.boletin-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: var(--r);
  color: var(--gold-3);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
}
.boletin-icon svg { width: 30px; height: 30px }
.boletin-info h3 {
  font-family: var(--ff-head);
  font-size: 22px;
  margin-bottom: 6px;
  color: #fff;
}
.boletin-info p {
  font-size: 14px;
  opacity: .9;
  max-width: 560px;
  line-height: 1.6;
}
.boletin-card .btn {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/* ============================================================
   DONACIONES
   ============================================================ */
.donate-section {
  padding: 96px 0;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255,255,255,.10) 0%, transparent 55%),
    linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.donate-section::before {
  content: "";
  position: absolute;
  left: -60px; bottom: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
  pointer-events: none;
}
.campaign-section::before,
.donate-section::before {
  animation: glowPulse 8s ease-in-out infinite;
}
.donate-inner { position: relative; z-index: 2 }
.donate-section .section-kicker { color: #a8d2ff; }
.donate-section h2 {
  font-family: var(--ff-head);
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.06;
  margin-bottom: 22px;
  color: #fff;
}
.donate-section > .container > p:not(.donate-methods) {
  font-size: 16px;
  opacity: .92;
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.donate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.donate-card {
  padding: 30px 22px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r);
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.donate-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.32);
}
.donate-icon {
  display: inline-grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  color: #ffd981;
  background: rgba(255,255,255,.12);
  margin-bottom: 16px;
  transition: transform var(--dur) var(--ease);
}
.donate-card:hover .donate-icon { transform: translateY(-3px) scale(1.06) }
.donate-icon svg { width: 28px; height: 28px }
.donate-card h3 {
  font-family: var(--ff-head);
  font-size: 18px;
  margin-bottom: 8px;
  color: #fff;
}
.donate-card p {
  font-size: 13px;
  opacity: .85;
  margin-bottom: 20px;
  line-height: 1.55;
}
.donate-card .btn { width: 100% }
.donate-methods {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  opacity: .7;
  margin-top: 22px;
  letter-spacing: .3px;
}

/* ============================================================
   RECURSOS — Stickers y wallpapers
   ============================================================ */
.resources-section {
  padding: 96px 0;
  background:
    radial-gradient(700px 320px at 88% 0%, rgba(198,154,75,.10) 0%, transparent 55%),
    var(--cream);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
  gap: 20px;
}
.resource-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: var(--gold-3);
}
.resource-preview {
  position: relative;
  width: 100%;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.resource-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(63,36,14,.07) 1px, transparent 1px);
  background-size: 9px 9px;
}
.resource-preview svg {
  position: relative;
  width: 44px;
  height: 44px;
  color: #fff;
  opacity: .92;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.20));
}
.resource-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform .6s var(--ease);
}
.resource-card:hover .resource-preview img { transform: scale(1.045) }
.phone-preview img { object-position: center 30% }
.pc-preview img { object-position: center 40% }
.sticker-preview {
  height: 210px;
  background: linear-gradient(135deg, var(--brown), var(--brown-3));
}
.phone-preview {
  height: 280px;
  background: linear-gradient(160deg, var(--blue), var(--blue-2));
}
.pc-preview {
  height: 210px;
  background: linear-gradient(135deg, var(--gold), var(--brown-3));
}
.resource-preview::after {
  content: "";
  position: absolute;
  bottom: -34px; right: -34px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none;
}
.resource-soon {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.resource-card h3 {
  font-family: var(--ff-head);
  font-size: 19px;
  color: var(--brown-900);
  margin-top: 4px;
}
.resource-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.resource-card .btn {
  margin-top: auto;
  width: 100%;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-section { padding: 96px 0; background: #fff }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-grid > * { min-width: 0 }
.contact-info p, .contact-info a { overflow-wrap: anywhere }
.contact-info {
  margin-top: 0;
  padding: 24px 26px;
  background: var(--cream);
  border-radius: var(--r);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.contact-info p { font-size: 15px; color: var(--brown) }
.contact-info strong { font-weight: 700; color: var(--brown-900) }
.contact-info a { color: var(--blue); font-weight: 600 }
.contact-form { display: grid; gap: 18px }
.contact-form label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1.6px solid var(--line);
  background: #fff;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  outline: 0;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,80,160,.10);
  transform: translateY(-1px);
}
.contact-form textarea { resize: vertical }
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233f240e' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-message {
  font-size: 14px;
  color: var(--blue);
  font-weight: 700;
  min-height: 22px;
}
.form-message.success { color: #2a7d3f }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--brown-900), #1d0e04);
  color: #fff;
  position: relative;
  padding-top: 60px;
}
.wave {
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 46px;
  background: var(--cream);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 34px;
  padding-bottom: 36px;
}

/* Marca: logo sobre tarjeta crema para lucir sus colores reales */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo-card {
  width: 110px;
  padding: 10px;
  background: var(--cream);
  border-radius: var(--r-sm);
  box-shadow: 0 10px 26px rgba(0,0,0,.25), 0 0 0 1px rgba(198,154,75,.35);
}
.footer-logo-card img {
  width: 100%; height: auto;
  display: block;
}
.footer-name {
  font-family: var(--ff-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
}
.footer-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--gold-2);
  font-weight: 600;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 820px;
  margin-top: 14px;
}
.footer-col-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: .55;
  font-weight: 700;
  display: block;
}
.footer-col p {
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.7;
  opacity: .9;
}
.footer-col a { color: inherit; transition: color var(--dur) var(--ease) }
.footer-col a:hover { color: var(--gold-2) }
.socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: center;
}
.socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color:#fff;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.socials a:hover {
  background: var(--gold);
  color: var(--brown-900);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* CTA píldora dorada — mismo lenguaje que el menú */
.footer-donate {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  padding: 5px 18px 5px 6px;
  background: var(--gold-bg);
  color: var(--brown-2);
  border: 1px solid rgba(198,154,75,.55);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 2px 10px rgba(198,154,75,.14);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.footer-donate-ico {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer-donate-ico svg { width: 15px; height: 15px }
.footer-donate:hover,
.footer-donate:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(198,154,75,.32);
}
.footer-donate:hover .footer-donate-ico,
.footer-donate:focus-visible .footer-donate-ico {
  background: rgba(255,255,255,.24);
  color: #fff;
  transform: none;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  font-size: 11px;
  opacity: .55;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet / small desktop --- */
@media (max-width: 1180px) {
  .site-header { --header-h: 112px; height: 112px }
  .site-header.scrolled { height: 76px }
  .brand img { width: 150px }
  .brand--historia img { width: 66px; height: 66px }
  .site-header.scrolled .brand img { width: 96px; max-height: 56px }
  .site-header.scrolled .brand--historia img { width: 54px; height: 54px }
  .main-nav { gap: 2px; font-size: 11.5px }
  .main-nav > a { padding: 4px 8px }
  .main-nav > a .nav-ico { width: 34px; height: 34px; border-radius: 11px }
  .main-nav > a .nav-ico svg { width: 18px; height: 18px }
  .main-nav > a.nav-donate { padding: 4px 14px 4px 5px; margin-left: 4px; gap: 7px }
  .main-nav > a.nav-donate .nav-ico { width: 28px; height: 28px }
  .main-nav > a.nav-donate .nav-ico svg { width: 14px; height: 14px }
  .donate-grid { grid-template-columns: repeat(2, 1fr) }
  .actividades-grid { grid-template-columns: repeat(2, 1fr) }
}

/* --- Nav collapses to hamburger + drawer lateral --- */
@media (max-width: 1010px) {
  .site-header { --header-h: 84px; height: 84px }
  .site-header.scrolled { height: 70px }
  .brand img { width: 122px }
  .brand--historia img { width: 56px; height: 56px }
  .site-header.scrolled .brand img { width: 90px; max-height: 52px }
  .site-header.scrolled .brand--historia img { width: 50px; height: 50px }

  .topbar { display: none }

  .menu-toggle { display: block; position: fixed; top: 19px; right: max(12px, calc((100% - 1010px)/2)); }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(340px, 88vw);
    height: 100dvh;
    background: rgba(255,253,248,.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: stretch;
    padding: 110px 24px 28px;
    gap: 4px;
    box-shadow: -24px 0 48px rgba(63,36,14,.18);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .38s var(--ease), visibility .38s;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); visibility: visible }
  .main-nav a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    border-radius: 12px;
  }
  .main-nav > a { flex-direction: row; gap: 14px; padding: 12px 14px }
  .main-nav a .nav-ico { width: 38px; height: 38px; flex: 0 0 auto; transform: none !important }
  .main-nav a:hover { background: var(--blue-soft); color: var(--blue) }
  .main-nav a.active { background: var(--blue-soft); color: var(--blue) }
  .main-nav a.nav-donate { margin-top: 16px; justify-content: center; border-bottom: none !important; align-self: center; min-width: min(280px, 90%) }
  .main-nav a.nav-donate .nav-ico { width: 38px; height: 38px }

  body.nav-open { overflow: hidden }

  .hero { min-height: auto; padding: 48px 0 }
  .cards { grid-template-columns: repeat(3, 1fr) }
  .arch-grid, .chapel-grid, .movements-grid { grid-template-columns: 1fr }
  .quick-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px }
  .resource-card .btn { white-space: normal; line-height: 1.3 }
  .footer-info { grid-template-columns: 1fr 1fr }
  .footer-col--social { grid-column: 1 / -1; margin-top: 6px }
}

/* --- Mobile --- */
@media (max-width: 720px) {
  .container { width: min(100% - 30px, 600px) }
  .site-header, .site-header.scrolled { height: 76px }
  .brand img { width: 108px; max-width: 50vw }
  .brand--historia img { width: 52px; height: 52px }
  .site-header.scrolled .brand img { width: 86px; max-height: 52px }
  .site-header.scrolled .brand--historia img { width: 46px; height: 46px }
  .menu-toggle { top: 15px; right: max(10px, calc((100% - 600px)/2)) }
  .main-nav { padding-top: 96px }

  .hero { padding: 44px 0 }
  .hero h1 { font-size: clamp(34px, 9vw, 44px) }
  .script { margin: 8px 0 16px }
  .hero-text { font-size: 16px }
  .hero-actions { flex-direction: column; align-items: stretch }
  .hero-actions .btn { width: 100% }

  .quick-section, .history-section, .arch-section,
  .campaign-section, .community-section, .schedule-section,
  .team-section, .actividades-section, .donate-section,
  .resources-section, .contact-section { padding: 60px 0 }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px }

  .history-note { font-size: 13px }

  .schedule-grid { grid-template-columns: 1fr }
  .schedule-extra { grid-template-columns: 1fr }

  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px }

  .actividades-grid { grid-template-columns: repeat(2, 1fr); gap: 14px }
  .boletin-card { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px 22px }

  .donate-grid { grid-template-columns: 1fr }
  .resources-grid { grid-template-columns: 1fr }

  .timeline { padding-left: 40px }
  .timeline::before { left: 16px }
  .timeline-item::before { left: -33px; width: 14px; height: 14px }
  .timeline-item { padding: 24px 20px }

  .contact-info { margin-top: 0 }
}

/* --- Small mobile --- */
@media (max-width: 460px) {
  .team-grid { grid-template-columns: 1fr }
  .actividades-grid { grid-template-columns: 1fr }
  .boletin-card { padding: 22px 18px }
  .boletin-info { flex-direction: column; text-align: center; gap: 14px }
  .boletin-card .btn { width: 100%; justify-content: center }
  .campaign-section .btn { white-space: normal; line-height: 1.3 }
  .resource-card .btn { white-space: normal; line-height: 1.3 }
  .footer-info { grid-template-columns: 1fr }
  .footer-logo-card { width: 96px }
  .cards { gap: 10px }
  .contact-form input, .contact-form textarea, .contact-form select { font-size: 16px }
}

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 2000;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,80,160,.35);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  z-index: 1500;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(0,80,160,.45);
}
.back-to-top svg { width: 22px; height: 22px }

@media (max-width: 600px) {
  .back-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px }
}

/* ============================================================
   HISTORIA — Página historia.html
   ============================================================ */
.page-hero {
  min-height: 480px;
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}
.page-hero .hero-inner {
  padding: 56px 0 64px;
}

/* Imagen en ítems de línea de tiempo (historia.html) */
.timeline-media {
  position: relative;
  margin-top: 18px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-2);
}
.timeline-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.timeline-ph {
  display: grid;
  place-items: center;
  height: 200px;
  padding: 18px;
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 50%, rgba(63,36,14,.07) 1px, transparent 1px);
  background-size: 14px 14px;
}
.timeline-credit {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 12px;
  font-size: 11px;
  color: rgba(255,255,255,.95);
  background: rgba(20,12,6,.55);
  backdrop-filter: blur(3px);
}

/* ============================================================
   HISTORIA — Resumen en portada (index.html)
   ============================================================ */
.history-summary { text-align: center }
.history-summary .body-copy {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.milestone-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
  text-align: center;
}
.milestone {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 20px;
  box-shadow: var(--sh-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.milestone:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: var(--gold-3);
}
.milestone-year {
  display: block;
  font-family: var(--ff-head);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--blue);
  margin-bottom: 6px;
}
.milestone h3 {
  font-family: var(--ff-head);
  font-size: 17px;
  color: var(--brown-900);
  margin-bottom: 6px;
  line-height: 1.2;
}
.milestone p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* --- Milestones con foto de fondo (index resumen) --- */
.milestone.has-photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  border-color: rgba(198,154,75,.45);
  background: radial-gradient(circle at 30% 25%, var(--brown-2), var(--brown-900));
}
.milestone.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,26,10,0.12) 0%, rgba(46,26,10,0.40) 50%, rgba(46,26,10,0.94) 100%);
  z-index: 1;
  pointer-events: none;
}
.milestone-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--dur) var(--ease);
}
.milestone.has-photo:hover .milestone-photo { transform: scale(1.04) }
.milestone.has-photo .milestone-year,
.milestone.has-photo h3,
.milestone.has-photo p { position: relative; z-index: 2 }
.milestone.has-photo .milestone-year { color: var(--gold-2) }
.milestone.has-photo h3 { color: #fff; text-shadow: 0 1px 6px rgba(46,26,10,.55) }
.milestone.has-photo p { color: rgba(255,248,238,.88) }
.history-summary-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}

/* ============================================================
   CAMPAÑA — acciones (index resumen + historia.html)
   ============================================================ */
.campaign-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Responsive: historial + resumen de portada --- */
@media (max-width: 1010px) {
  .page-hero { min-height: 420px }
  .milestone-row { grid-template-columns: repeat(2, 1fr) }
  .sacrament-grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 720px) {
  .page-hero { min-height: 340px }
  .timeline-media img { height: 200px }
  .timeline-ph { height: 170px }
  .sacrament-form-wrap { padding: 26px 22px }
  .sacrament-form-wrap .contact-form { grid-template-columns: 1fr }
}
@media (max-width: 460px) {
  .milestone-row { grid-template-columns: 1fr }
  .campaign-actions { flex-direction: column; align-items: stretch }
  .campaign-actions .btn { width: 100%; justify-content: center }
  .sacrament-grid { grid-template-columns: 1fr }
}
