/* ============================================================
   Iglesia Bíblica Reflejo — diseño claro minimalista
   Tipografía protagonista: Fraunces (títulos) + Inter (cuerpo)
   ============================================================ */

:root {
  --ink: #191c22;
  --muted: #586579;
  --faint: #667085;
  --navy: #1e3a5f;
  --navy-deep: #142840;
  --gold: #b7791f;
  --gold-soft: #f5eeda;
  --bg: #ffffff;
  --bg-warm: #faf9f7;
  --hairline: #eaecf0;
  --radius: 1rem;
  --maxw: 1120px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  max-width: 100%;
  overflow-x: clip;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ---------- Movimiento: solo transform/opacity y siempre reducible ---------- */
html.js .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.992);
  transition: opacity 0.52s ease, transform 0.64s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { --reveal-delay: 0.06s; }
.reveal-delay-2 { --reveal-delay: 0.12s; }
.reveal-delay-3 { --reveal-delay: 0.18s; }

.ui-icon { width: 1.05em; height: 1.05em; flex: 0 0 auto; display: inline-block; overflow: visible; }
.btn .ui-icon { width: 1.1rem; height: 1.1rem; transition: transform 0.25s ease; }
.btn:hover .ui-icon-arrow { transform: translateX(3px); }

/* Fondo SVG ligero para los heroes principales. */
.hero-orbit {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(920px, 96vw); height: auto; left: 50%; top: 47%;
  transform: translate(-50%, -50%); opacity: 0.18;
}
.hero-orbit .orbit-a, .hero-orbit .orbit-b { transform-box: view-box; transform-origin: 400px 230px; }
.hero-orbit .orbit-a { animation: orbitSpin 28s linear infinite; }
.hero-orbit .orbit-b { animation: orbitSpinReverse 36s linear infinite; }
.hero-orbit .orbit-dot { transform-box: fill-box; transform-origin: center; animation: orbitPulse 3.8s ease-in-out infinite alternate; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitSpinReverse { to { transform: rotate(-360deg); } }
@keyframes orbitPulse { to { opacity: .32; transform: scale(1.35); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--hairline);
}
/* El blur vive en un pseudo-elemento: backdrop-filter directo en el header lo
   volvía containing block del menú móvil (position:fixed) y el panel colapsaba a 80px. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.4rem); flex-shrink: 0; }
.nav-links a {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); padding: 0.4rem 0; position: relative; transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--gold); transition: right 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta {
  background: var(--navy); color: #fff !important; padding: 0.55rem 1.2rem !important;
  border-radius: 999px; letter-spacing: 0.09em;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy-deep); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: 0.25s; }

@media (max-width: 1300px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 2.5rem 2rem; gap: 0.25rem;
    transform: translateX(100%); visibility: hidden; pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), visibility 0s linear 0.3s;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-links.open {
    transform: translateX(0); visibility: visible; pointer-events: auto;
    transition-delay: 0s;
  }
  .nav-links { box-shadow: 0 24px 40px -28px rgba(20,40,64,0.25) inset; }
  .nav-links a { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--hairline); font-size: 0.9rem; }
  .nav-links a:first-child {
    background: var(--gold-soft); color: var(--navy-deep);
    padding: 1rem 1.1rem; border-radius: 0.75rem; border-bottom: none;
    margin-bottom: 0.5rem; font-weight: 700;
  }
  .nav-links a:first-child::after { display: none; }
  .nav-cta { text-align: center; margin-top: 1rem; border-bottom: none !important; }
  body.menu-open { overflow: hidden; }
  .nav-toggle { min-width: 44px; min-height: 44px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { padding: 6.5rem 0 4rem; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.hero > .container, .hero > .hero-media { position: relative; z-index: 1; }
.hero .kicker {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.75rem; display: block;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 480;
  max-width: 880px; margin: 0 auto 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--navy); }
.hero .sub { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 auto 2.25rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.85rem 1.9rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer; border: 1px solid transparent; font-family: var(--sans);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: -50% auto -50% -45%; width: 32%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); transition: left .5s cubic-bezier(.16,1,.3,1);
}
.btn:hover::before { left: 120%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: #d6dae1; }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.24); }
.text-link {
  font-weight: 600; font-size: 0.92rem; color: var(--navy);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease;
}
.text-link:hover { border-bottom-color: var(--gold); }

/* Video frame under hero */
.hero-media { margin: 3.5rem auto 0; max-width: 980px; padding: 0 1.5rem; }
.hero-media .frame {
  border-radius: 1.4rem; overflow: hidden; position: relative;
  box-shadow: 0 40px 80px -40px rgba(20, 40, 64, 0.45);
}
.hero-media video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; max-width: 680px; margin: 2.75rem auto 0; }
.stat { text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2rem; font-weight: 550; color: var(--navy); line-height: 1.1; }
.stat .label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-top: 0.3rem; }

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }
.section-warm { background: var(--bg-warm); }
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 500; }
.section-head p { color: var(--muted); font-size: 1.04rem; margin-top: 0.75rem; }
.head-left { text-align: left; margin-left: 0; }

.rule-gold { width: 44px; height: 2px; background: var(--gold); border: none; margin: 1.4rem auto; }
.head-left .rule-gold { margin-left: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-5px); border-color: #d9dde3;
  box-shadow: 0 24px 48px -28px rgba(20,40,64,0.25);
}

/* Profundidad 3D de baja amplitud, activada por JS solo con puntero fino. */
.motion-tilt { --rx: 0deg; --ry: 0deg; --lift: 0px; transform-style: preserve-3d; }
.motion-tilt,
html.js .reveal.visible.motion-tilt {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
}
.motion-tilt:hover { --lift: -4px; }
.motion-tilt.is-tilting { will-change: transform; }
.motion-tilt .card-body, .motion-tilt .sede-body { transform: translateZ(12px); }
.card .card-img { height: 200px; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); filter: saturate(0.92); }
.card:hover .card-img img { transform: scale(1.05); }

/* Logos vectoriales de ministerios */
.ministry-logo {
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
}
.ministry-logo img {
  object-fit: contain !important;
  filter: none !important;
  padding: 0;
  width: 100%; height: 100%;
}
.card .ministry-logo { height: 210px; }
.card:hover .ministry-logo img { transform: scale(1.03); }
article .ministry-logo {
  border-radius: 1.25rem;
  height: 280px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}
article .ministry-logo img {
  border-radius: 1.25rem;
  width: 100%; height: 100%;
  object-fit: cover !important;
}
.card .card-body { padding: 1.5rem 1.6rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.card .card-body h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.card .card-body p { color: var(--muted); font-size: 0.93rem; flex: 1; margin-bottom: 1rem; }
.card .card-link { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.card .card-link::after { content: "→"; margin-left: 0.4rem; display: inline-block; transition: transform 0.25s ease; }
.card:hover .card-link::after { transform: translateX(5px); }
.feature-icon {
  width: 2.6rem; height: 2.6rem; border-radius: .8rem; margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy); background: var(--gold-soft); border: 1px solid rgba(183,121,31,.16);
}
.feature-icon .ui-icon { width: 1.25rem; height: 1.25rem; }

/* ---------- Tabs ---------- */
.tabs-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--hairline); margin-bottom: 2.5rem; }
.tab-btn {
  background: none; border: none; padding: 0.8rem 1.2rem; font-family: var(--sans);
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-panel { display: none; animation: fadeUp 0.4s cubic-bezier(0.16,1,0.3,1); }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Misión / visión ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 700px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-box { padding: 1.9rem 2rem; border: 1px solid var(--hairline); border-radius: var(--radius); background: #fff; }
.mv-box h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: 0.5rem; }
.mv-box p { color: var(--ink); font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; margin: 0; }

.quote-block {
  margin: 2.5rem 0 0; padding: 2.75rem 3rem; background: var(--navy); color: #fff;
  border-radius: 1.25rem; position: relative;
}
.quote-block p {
  font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 450;
  font-style: italic; line-height: 1.55; margin-bottom: 1.1rem;
}
.quote-block p:last-child { margin-bottom: 0; }
.quote-block::before {
  content: "\201C"; font-family: var(--serif); font-size: 5rem; color: var(--gold);
  position: absolute; top: -1.4rem; left: 1.6rem; line-height: 1;
}
@media (max-width: 560px) { .quote-block { padding: 2rem 1.5rem; } }

/* ---------- Personas ---------- */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .people-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .people-grid { grid-template-columns: 1fr; } }
.person { text-align: center; }
.person .avatar { aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto 1.1rem; max-width: 190px; border: 1px solid var(--hairline); }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); transition: transform 0.5s ease; }
.person:hover .avatar img { transform: scale(1.06); }
.person h4 { font-size: 1.08rem; margin-bottom: 0.15rem; }
.person .role { color: var(--gold); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.4rem; }
.person p.desc { font-size: 0.88rem; color: var(--muted); max-width: 260px; margin: 0 auto; }

/* ---------- Declaración de fe ---------- */
.belief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .belief-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .belief-grid { grid-template-columns: 1fr; } }
.belief-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: border-color 0.25s ease; }
.belief-card:hover { border-color: #d0d5dd; }
.belief-card .num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; display: block; margin-bottom: 0.35rem; }
.belief-card h4 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.belief-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.45rem; }
.belief-card .refs { font-size: 0.74rem; color: var(--faint); letter-spacing: 0.02em; }

/* ---------- Catecismo Heidelberg ---------- */
.catechism-hero {
  background: var(--navy); color: #fff; border-radius: 1.4rem; padding: 3.5rem 3rem; margin-bottom: 3.5rem;
}
@media (max-width: 620px) { .catechism-hero { padding: 2.25rem 1.5rem; } }
.catechism-hero .q-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; display: block; margin-bottom: 1rem; }
.catechism-hero h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500; margin-bottom: 1.5rem; }
.catechism-hero .answer { font-family: var(--serif); font-size: clamp(1.02rem, 1.8vw, 1.18rem); line-height: 1.75; color: rgba(255,255,255,0.92); }
.catechism-hero .answer { font-family: var(--sans); line-height: 1.7; }
.catechism-hero .refs { margin-top: 1.5rem; font-size: 0.78rem; color: rgba(255,255,255,0.55); font-family: var(--sans); }

.part-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 3.5rem; }
@media (max-width: 720px) { .part-band { grid-template-columns: 1fr; } }
.part-card { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.6rem 1.7rem; background: var(--bg-warm); }
.part-card .part-num { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--gold); line-height: 1; }
.part-card h4 { margin-top: 0.6rem; font-size: 1.12rem; }
.part-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.part-card .range { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 0.75rem; display: block; }

.qa-item { border-bottom: 1px solid var(--hairline); padding: 2.2rem 0; }
.qa-item:first-child { border-top: 1px solid var(--hairline); }
.qa-item .q-num { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; display: block; margin-bottom: 0.5rem; }
.qa-item h4 { font-size: 1.3rem; font-weight: 520; margin-bottom: 0.9rem; }
.qa-item .answer { font-size: 0.98rem; color: #333a45; line-height: 1.75; }
.qa-item .refs { font-size: 0.76rem; color: var(--faint); margin-top: 0.9rem; }

/* ---------- Steps discipulado ---------- */
.steps { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.step-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.75rem; align-items: flex-start;
  padding: 2.5rem 0; border-bottom: 1px solid var(--hairline);
}
.step-card:first-child { border-top: 1px solid var(--hairline); }
.step-num {
  width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-weight: 550; font-size: 1.5rem; color: #fff;
}
.step-card h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.step-card .tagline { font-style: italic; font-family: var(--serif); color: var(--gold); font-size: 1rem; margin-bottom: 0.8rem; }
.step-card p { color: #333a45; font-size: 0.96rem; }
.step-card ul { margin: 0.6rem 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.step-card li { margin-bottom: 0.25rem; }
.step-card .verses { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin-top: 0.8rem; }
@media (max-width: 560px) { .step-card { grid-template-columns: 1fr; gap: 1rem; } .step-num { width: 52px; height: 52px; font-size: 1.15rem; } }

/* ---------- Eventos ---------- */
.events-toolbar-wrap { max-width: 760px; margin: 0 auto 1.5rem; }
.events-toolbar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.event-search {
  display: flex; align-items: center; gap: 0.65rem;
  border: 1px solid var(--hairline); border-radius: 999px; background: #fff;
  padding: 0.35rem 0.95rem; min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.event-search:focus-within {
  border-color: #c9d3e2;
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.08);
}
.event-search-icon { color: var(--faint); font-size: 1rem; line-height: 1; }
.event-search input {
  width: 100%; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 0.95rem; color: var(--ink); min-width: 0;
}
.event-search input::placeholder { color: #98a2b3; }
.filters, .filter-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.filters .btn, .filter-chips .btn {
  padding: 0.55rem 1rem; min-height: 44px; font-size: 0.78rem;
}
.events-meta {
  min-height: 1.2em; margin: 0; text-align: center;
  font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em;
}
.events-empty {
  text-align: center; padding: 2.5rem 1rem 1rem;
  border: 1px dashed var(--hairline); border-radius: 1rem; margin: 0.5rem 0 1.5rem;
}
.events-empty p { color: var(--muted); margin-bottom: 1rem; }
.month-block { border-bottom: 1px solid var(--hairline); }
.month-block:first-of-type { border-top: 1px solid var(--hairline); }
.month-head {
  width: 100%; text-align: left; padding: 1.35rem 0.25rem; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--serif); font-weight: 550; font-size: 1.25rem; color: var(--ink);
}
.month-head .chev { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.3s ease; color: var(--faint); font-size: 0.9rem; }
.month-block.open .month-head .chev { transform: rotate(180deg); }
.month-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); }
.month-block.open .month-body { max-height: 1400px; }
.event-row { display: flex; gap: 1.25rem; align-items: baseline; padding: 0.7rem 0.25rem 0.7rem 1rem; }
.event-row .date { min-width: 92px; font-weight: 700; color: var(--gold); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.event-row .detail { font-size: 0.94rem; color: #333a45; }
.event-row .cat { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-left: auto; white-space: nowrap; padding-left: 0.75rem; }
@media (max-width: 560px) {
  .event-row { gap: 0.75rem; padding-left: 0.15rem; }
  .event-row .date { min-width: 72px; font-size: 0.76rem; }
  .event-row .cat {
    display: inline-block; margin-left: 0; padding-left: 0;
    width: 100%; order: 3; margin-top: 0.15rem;
  }
  .event-row { flex-wrap: wrap; }
  .filter-chips { justify-content: flex-start; }
  .filter-chips .btn { flex: 1 1 calc(50% - 0.5rem); min-width: calc(50% - 0.5rem); }
}

/* ---------- Ubicación ---------- */
.sede-card { border: 1px solid var(--hairline); border-radius: 1.25rem; overflow: hidden; background: #fff; transition: box-shadow 0.3s ease; }
.sede-card:hover { box-shadow: 0 24px 48px -30px rgba(20,40,64,0.3); }
.sede-card iframe { width: 100%; height: 250px; border: 0; filter: grayscale(0.35); transition: filter 0.4s ease; }
.sede-card:hover iframe { filter: grayscale(0); }
.sede-card .sede-body { padding: 1.75rem; }
.sede-card h3 { font-size: 1.4rem; }
.sede-card .addr { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.schedule-list { display: flex; flex-direction: column; gap: 0.55rem; }
.schedule-row { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.89rem; color: #333a45; }
.schedule-row .day { font-weight: 700; min-width: 84px; color: var(--navy); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.15rem; }

/* ---------- Predicaciones ---------- */
.video-frame { border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--hairline); background: #000; }
.video-frame iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.video-caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.9rem; }
.video-caption b { color: var(--ink); font-weight: 600; }

.archive-card {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--bg-warm); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.archive-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(20,40,64,0.35); }
.archive-card-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: 1.05rem;
}
.archive-card b { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 0.2rem; }
.archive-card > span > span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Donar ---------- */
.donate-card { background: #fff; border: 1px solid var(--hairline); border-radius: 1.25rem; padding: 2.25rem; max-width: 480px; margin: 0 auto; }
.donate-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline);
}
.donate-row:last-child { border-bottom: none; }
.donate-row .label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint);
  align-self: start; padding-top: 0.2rem;
}
.donate-row .value {
  font-weight: 600;
  font-family: "SFMono-Regular", Consolas, ui-monospace, monospace;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.donate-row .value:last-child { grid-column: 2 / -1; }
.donate-row .copy-btn { grid-column: 3; grid-row: 1; justify-self: end; }
.copy-btn {
  background: none; border: 1px solid #d6dae1; color: var(--ink); border-radius: 999px; padding: 0.32rem 0.85rem;
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.copied { background: #16a34a; border-color: #16a34a; color: #fff; }
@media (max-width: 480px) {
  .donate-card { padding: 1.4rem 1.15rem; }
  .donate-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label copy"
      "value value";
  }
  .donate-row .label { grid-area: label; padding-top: 0; align-self: center; }
  .donate-row .value { grid-area: value; font-size: 0.9rem; line-height: 1.45; }
  .donate-row .value:last-child { grid-column: auto; }
  .donate-row .copy-btn { grid-area: copy; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 5.5rem 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 480; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 540px; margin: 0.75rem auto 2rem; }

/* ---------- Compartir ---------- */
.share-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 2.5rem; }
.share-row .share-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-right: 0.25rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; border: 1px solid var(--hairline); border-radius: 999px; padding: 0.45rem 1rem;
  font-size: 0.8rem; font-weight: 600; color: var(--muted); background: #fff; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

/* ---------- FAQ / detalles ---------- */
details.faq { border-bottom: 1px solid var(--hairline); }
details.faq:first-of-type { border-top: 1px solid var(--hairline); }
details.faq summary {
  cursor: pointer; list-style: none; padding: 1.3rem 0.25rem;
  font-family: var(--serif); font-size: 1.12rem; font-weight: 550;
  min-height: 52px; display: flex; justify-content: space-between; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--faint); font-size: 1.3rem; font-family: var(--sans); transition: transform 0.25s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
.icons-ready details.faq summary::after { display: none; }
.faq-icon { width: 44px; height: 44px; margin: -10px 0 -10px 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--faint); transition: transform .22s ease, color .22s ease; }
.faq-icon .ui-icon { width: 1.05rem; height: 1.05rem; }
details.faq[open] .faq-icon { transform: rotate(45deg); color: var(--gold); }
details.faq .faq-body { padding: 0 0.25rem 1.4rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--hairline); padding: 4rem 0 2rem; font-size: 0.9rem; color: var(--muted); background: var(--bg-warm); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--sans); color: var(--ink); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--navy); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand img { height: 32px; }
.footer-brand span { font-family: var(--serif); color: var(--ink); font-weight: 600; }
.social-row { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.social-row .ui-icon { width: 1rem; height: 1rem; }
.social-row a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 1.75rem; text-align: center; font-size: 0.78rem; color: var(--faint); }
.footer-verse { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--muted); margin-top: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .reveal { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .motion-tilt, html.js .reveal.visible.motion-tilt { transform: none !important; }
}

@media (max-width: 620px) {
  section { padding: 4.5rem 0; }
  .hero { padding: 4.75rem 0 3.25rem; }
  .hero-media { margin-top: 2.5rem; }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; margin-top: 2rem; }
  .stat .num { font-size: clamp(1.25rem, 6vw, 1.6rem); white-space: nowrap; }
  .stat .label { font-size: .6rem; letter-spacing: .09em; }
  article.grid-2 > .card-img { order: 0 !important; }
  article.grid-2 > div:not(.card-img) { order: 1 !important; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .filters .btn { width: 100%; min-height: 44px; justify-content: center; padding-inline: .7rem; }
  .event-row { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: .15rem 1rem; align-items: start; padding: .8rem .25rem; }
  .event-row .date { min-width: 0; grid-row: 1 / span 2; }
  .event-row .cat { display: block; grid-column: 2; margin: .15rem 0 0; padding: 0; white-space: normal; color: var(--navy); opacity: .72; }
  .donate-card { padding: 1.5rem; }
  .donate-row { grid-template-columns: 48px minmax(0,1fr) auto; gap: .5rem; }
  .donate-row .value { font-size: clamp(.75rem, 3.35vw, .86rem); letter-spacing: -.015em; }
  .donate-row:last-child .label, .donate-row:last-child .value { grid-column: 1 / -1; }
  .donate-row:last-child .value { margin-top: .15rem; }
  .copy-btn { padding-inline: .65rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-grid h4 { margin-bottom: .8rem; }
}

/* ---------- Formulario de voluntarios ---------- */
.vol-form {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2.25rem clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 30px 60px -40px rgba(20, 40, 64, 0.25);
}
.vol-field { margin-bottom: 1.4rem; }
.vol-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.vol-field .req { color: var(--gold); }
.vol-field input,
.vol-field select,
.vol-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg-warm);
  border: 1px solid var(--hairline);
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.vol-field textarea { resize: vertical; min-height: 5.5rem; }
.vol-field input:hover,
.vol-field select:hover,
.vol-field textarea:hover { border-color: #cfd5de; }
.vol-field input:focus,
.vol-field select:focus,
.vol-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.vol-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='%23586579' d='M5.5 7.5l4.5 4.5 4.5-4.5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
  padding-right: 2.4rem;
}
.vol-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}
@media (max-width: 640px) {
  .vol-grid-2 { grid-template-columns: 1fr; }
}
.vol-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vol-note { font-size: 0.82rem; color: var(--faint); margin: 0.5rem 0 1.5rem; }
.vol-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.vol-status { font-size: 0.9rem; color: var(--muted); }
.vol-status.is-error { color: #b3413a; font-weight: 600; }
.vol-success {
  background: var(--gold-soft);
  border: 1px solid #e6d7ad;
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  margin-top: 1.5rem;
}
.vol-success h3 { margin-bottom: 0.4rem; }
.vol-success p { color: var(--muted); margin: 0; }

/* ---------- Tarjeta QR para imprimir/compartir ---------- */
.qr-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 1.4rem;
  padding: 2rem 2.25rem 1.75rem;
  color: #fff;
  text-align: center;
}
.qr-card img { border-radius: 0.9rem; background: #fff; padding: 0.6rem; width: 220px; height: 220px; }
.qr-card .qr-title { font-family: var(--serif); font-size: 1.15rem; }
.qr-card .qr-sub { font-size: 0.8rem; color: rgba(255,255,255,0.72); letter-spacing: 0.04em; }
