/* ===================================================================
   CHI · Congregación de los Hijos de Israel · Dubái
   Sistema de diseño — basado en Geometría Reverente · Vol. I
   =================================================================== */

/* ============ 1 · TOKENS ============ */
:root {
  /* Paleta · Manual de Marca */
  --indigo:    #1A2545;
  --petroleo:  #1E4A4D;
  --bronce:    #A87C42;
  --terracota: #B36A4A;
  --lino:      #ECE7DC;
  --crema:     #F7F4EE;

  /* Tipografía */
  --serif-display: 'Italiana', serif;
  --serif-quote:   'Instrument Serif', serif;
  --sans:          'Outfit', sans-serif;
  --mono:          'Geist Mono', monospace;

  /* Espaciado base */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Layout */
  --topbar-h: 64px;
  --container: 1240px;
  --content: 1100px;

  /* Tiempos */
  --t-fast:   .18s;
  --t-base:   .28s;
  --t-slow:   .5s;
  --ease:     cubic-bezier(.2,.7,.2,1);
}

/* ============ 2 · RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); }
body {
  background: var(--crema);
  color: var(--indigo);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(179,106,74,.25); }

/* ============ 3 · TIPOGRAFÍA UTILIDADES ============ */
.display-xl {
  font-family: var(--serif-display);
  font-size: clamp(56px, 11vw, 128px);
  line-height: .95;
  letter-spacing: .015em;
  color: var(--indigo);
}
.display-l {
  font-family: var(--serif-display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: .01em;
  color: var(--indigo);
  margin-bottom: var(--space-3);
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .32em;
  color: var(--bronce);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.eyebrow.center { display: block; text-align: center; }
.lede {
  font-family: var(--serif-quote);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--petroleo);
  margin-bottom: var(--space-3);
}
.lede.center { text-align: center; }
.body {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--indigo);
  max-width: 52ch;
}
.body + .body { margin-top: 14px; }
.quote {
  font-family: var(--serif-quote);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--petroleo);
}
.quote .ref,
.scripture-ref,
.pillar-ref {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .36em;
  color: var(--bronce);
  text-transform: uppercase;
}
.micro-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .26em;
  color: var(--bronce);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.dash {
  display: block;
  width: 1px;
  height: 56px;
  background: var(--bronce);
  margin: var(--space-4) auto;
}

/* ============ 4 · TOPBAR ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  padding: 0 var(--space-4);
  background: rgba(247, 244, 238, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168,124,66,.25);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  transition: background var(--t-base) var(--ease);
}
.topbar .brand-mark {
  font-family: var(--serif-display);
  font-size: 26px;
  letter-spacing: .08em;
  color: var(--indigo);
}
.topnav { display: flex; gap: var(--space-4); }
.topnav a {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--indigo);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.topnav a:hover,
.topnav a.active {
  color: var(--terracota);
  border-color: var(--terracota);
}
.topright { display: flex; align-items: center; gap: var(--space-3); }
.lang { display: flex; gap: 4px; }
.lang button {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--bronce);
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease);
}
.lang button.active,
.lang button:hover { border-color: var(--bronce); color: var(--indigo); }
.cta-mini {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--crema);
  background: var(--indigo);
  padding: 10px 18px;
  border: 1px solid var(--indigo);
  transition: all var(--t-fast) var(--ease);
}
.cta-mini:hover { background: var(--terracota); border-color: var(--terracota); }

.burger { display: none; width: 28px; height: 22px; position: relative; }
.burger span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--indigo); transition: all var(--t-base) var(--ease);
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 2px; }
.burger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Drawer mobile */
.drawer {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; bottom: 0;
  background: var(--crema); padding: var(--space-5) var(--space-4);
  transform: translateY(-100%); opacity: 0;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
  z-index: 99; pointer-events: none; overflow-y: auto;
}
.drawer.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer a {
  font-family: var(--serif-display);
  font-size: 28px;
  color: var(--indigo);
  padding: 12px 0;
  border-bottom: 1px solid rgba(168,124,66,.25);
  letter-spacing: .01em;
}

/* ============ 5 · SECTIONS BASE ============ */
.section {
  padding: var(--space-8) var(--space-7);
  position: relative;
  border-bottom: 1px solid rgba(168,124,66,.18);
  scroll-margin-top: var(--topbar-h);
}
.section-crema { background: var(--crema); }
.section-lino  { background: var(--lino); }

.marker {
  position: absolute; top: var(--space-5); left: var(--space-7); right: var(--space-7);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 9px; letter-spacing: .28em;
  color: var(--bronce); text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 1px solid rgba(168,124,66,.35);
}

.twocol {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7);
  align-items: center; max-width: var(--content); margin: 0 auto;
}
.container-tight { max-width: var(--content); margin: 0 auto; width: 100%; }
.center { text-align: center; }

/* ============ 6 · HERO ============ */
.hero {
  min-height: 100vh;
  padding: var(--space-8) var(--space-7);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: var(--crema);
  position: relative;
  border-bottom: 1px solid rgba(168,124,66,.18);
}

/* ============ 30 · HERO CON VIDEO DE FONDO ============ */
.hero-with-video {
  background: var(--indigo); /* Fallback mientras el video carga */
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Ligero filtro: sutil saturación + leve calidez para integrar con el branding */
  filter: saturate(0.95) brightness(0.92);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Capa 1: gradient vertical (legibilidad del texto) en colores de la paleta */
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(26, 37, 69, 0) 0%, rgba(26, 37, 69, 0.55) 100%),
    linear-gradient(180deg, rgba(26, 37, 69, 0.35) 0%, rgba(30, 74, 77, 0.25) 50%, rgba(26, 37, 69, 0.45) 100%);
}
/* Línea decorativa horizontal sutil (memoria del estilo editorial del sitio) */
.hero-overlay::before {
  content: '';
  position: absolute;
  top: 24%;
  left: 50%;
  width: 1px;
  height: 52%;
  background: linear-gradient(180deg, transparent 0%, rgba(168, 124, 66, 0.18) 50%, transparent 100%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-with-video .hero-inner {
  position: relative;
  z-index: 2;
}
.hero-with-video .eyebrow,
.hero-with-video .display-xl,
.hero-with-video .hero-subtitle,
.hero-with-video .quote,
.hero-with-video .quote .ref,
.hero-with-video .ns-label,
.hero-with-video .ns-time {
  color: var(--crema);
  text-shadow: 0 2px 18px rgba(10, 18, 36, 0.55);
}
.hero-with-video .display-xl {
  text-shadow: 0 4px 28px rgba(10, 18, 36, 0.55);
}
.hero-with-video .quote .ref {
  color: var(--lino);
  opacity: 0.92;
}
.hero-with-video .dash {
  background: rgba(232, 211, 178, 0.5);
}
/* "Próximo servicio" con glassmorphism sutil — respeta el branding */
.hero-with-video .next-service {
  border-color: rgba(232, 211, 178, 0.38);
  background: rgba(26, 37, 69, 0.28);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 6px 26px rgba(10, 18, 36, 0.18);
}
.hero-with-video .btn-ghost {
  border-color: rgba(232, 211, 178, 0.55);
  color: var(--crema);
  background: rgba(26, 37, 69, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.hero-with-video .btn-ghost:hover {
  background: rgba(232, 211, 178, 0.18);
  border-color: var(--lino);
}
.hero-with-video .btn-primary {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.hero-with-video .scroll-hint,
.hero-with-video .scroll-hint .arrow {
  color: var(--crema);
}
.hero-with-video .scroll-hint span:first-child {
  text-shadow: 0 1px 6px rgba(10, 18, 36, 0.5);
}

/* Móvil: optimizar carga del video y ajustar legibilidad */
@media (max-width: 720px) {
  .hero-video { filter: saturate(0.9) brightness(0.78); }
  .hero-overlay {
    background:
      radial-gradient(ellipse 90% 70% at 50% 50%, rgba(26, 37, 69, 0.1) 0%, rgba(26, 37, 69, 0.62) 100%),
      linear-gradient(180deg, rgba(26, 37, 69, 0.45) 0%, rgba(26, 37, 69, 0.55) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-with-video { background: var(--indigo); }
}
.hero-inner { max-width: 760px; }
.hero .eyebrow { font-size: 11px; letter-spacing: .42em; margin-bottom: var(--space-4); }
.hero .display-xl { margin-bottom: var(--space-3); }
.hero .quote { max-width: 600px; margin: 0 auto; }
.hero-subtitle {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 2.1vw, 19px);
  line-height: 1.55;
  max-width: 540px;
  margin: var(--space-3) auto 0;
  color: var(--indigo);
}
.next-service {
  margin: var(--space-5) auto 0;
  padding: 18px var(--space-4);
  border: 1px solid rgba(168,124,66,.4);
  display: inline-flex; flex-direction: column; gap: 6px;
}
.ns-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .32em;
  color: var(--bronce); text-transform: uppercase;
}
.ns-time {
  font-family: var(--serif-display); font-size: 24px; color: var(--indigo);
  letter-spacing: .02em;
}

/* — Cuenta regresiva al próximo servicio — */
.ns-countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 44px;
}
.cd-num {
  font-family: var(--serif-display);
  font-size: 32px;
  line-height: 1;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bronce);
}
.cd-sep {
  font-family: var(--serif-display);
  font-size: 26px;
  line-height: 1;
  color: var(--bronce);
  opacity: .55;
  margin-top: 1px;
}

/* — Mensaje "en vivo" durante el servicio — */
.ns-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bronce);
}
.ns-live[hidden] { display: none; }
.ns-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bronce);
  box-shadow: 0 0 0 0 rgba(168, 124, 66, .55);
  animation: ns-live-pulse 1.8s ease-out infinite;
}
@keyframes ns-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(168, 124, 66, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(168, 124, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 124, 66, 0); }
}

/* Sobre el video del hero: números en crema con sombra, como ns-time */
.hero-with-video .cd-num {
  color: var(--crema);
  text-shadow: 0 2px 18px rgba(10, 18, 36, 0.55);
}
.hero-with-video .ns-live {
  color: var(--lino);
}

@media (prefers-reduced-motion: reduce) {
  .ns-live-dot { animation: none; }
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }
.scroll-hint {
  position: absolute; bottom: var(--space-4); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .3em;
  color: var(--bronce); text-transform: uppercase;
}
.scroll-hint .arrow { font-family: var(--sans); animation: bounce 2s var(--ease) infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============ 7 · BOTONES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase;
  border: 1px solid var(--indigo);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.btn-primary { background: var(--indigo); color: var(--crema); }
.btn-primary:hover { background: var(--terracota); border-color: var(--terracota); }
.btn-ghost { background: transparent; color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: var(--crema); }
.btn-terra { background: var(--terracota); border-color: var(--terracota); color: var(--crema); }
.btn-terra:hover { background: var(--indigo); border-color: var(--indigo); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 9px; }

/* ============ 8 · SCRIPTURE CARD ============ */
.scripture-card {
  background: var(--crema); border: 1px solid rgba(168,124,66,.4);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}
.section-crema .scripture-card { background: var(--lino); }
.scripture-text {
  font-family: var(--serif-quote); font-style: italic;
  font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35;
  color: var(--indigo);
}

/* ============ 9 · CREENCIAS · grid pilares ============ */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(168,124,66,.3);
  border: 1px solid rgba(168,124,66,.3);
}
.pillar {
  background: var(--crema);
  padding: var(--space-4);
  display: flex; flex-direction: column;
  transition: background var(--t-base) var(--ease);
}
.pillar:hover { background: var(--lino); }
.pillar-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .26em;
  color: var(--bronce); text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 1px solid rgba(168,124,66,.4);
  margin-bottom: 14px;
}
.pillar-title {
  font-family: var(--serif-display); font-size: 28px; letter-spacing: .01em;
  color: var(--indigo); margin-bottom: 10px;
}
.pillar-text {
  font-size: 13.5px; line-height: 1.65; color: var(--indigo);
  flex: 1;
}
.pillar-ref { margin-top: 18px; }

/* ============ 10 · PORTRAIT FRAME ============ */
.portrait-frame {
  aspect-ratio: 4/5;
  background: var(--lino);
  border: 1px solid rgba(168,124,66,.4);
  display: flex; align-items: center; justify-content: center;
}
.section-lino .portrait-frame { background: var(--crema); }
.portrait-inner { text-align: center; }
.portrait-initial {
  display: block;
  font-family: var(--serif-display); font-size: 160px; line-height: 1;
  color: var(--bronce); letter-spacing: 0;
}
.portrait-caption {
  display: block; margin-top: 18px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .3em;
  color: var(--bronce); text-transform: uppercase;
}
/* — Variante con foto real — */
.portrait-frame.portrait-photo {
  overflow: hidden;
  padding: 0;
  background: var(--lino);
}
.portrait-frame.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--ease);
}
.portrait-frame.portrait-photo:hover img {
  transform: scale(1.04);
}

/* — Carrusel de Identidad (3 fotos rotando, horizontal sin recortar) — */
.identity-carousel {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(168,124,66,.4);
  background: var(--lino);
}
.section-lino .identity-carousel { background: var(--crema); }
.identity-slides { position: absolute; inset: 0; }
.identity-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Llenar el marco completo — todas las fotos iguales */
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  will-change: opacity;
}
.identity-slide.is-active {
  opacity: 1;
}
.identity-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.identity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(247, 244, 238, 0.35);
  box-shadow: 0 0 0 1px rgba(247, 244, 238, 0.75);
  transition: background var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.identity-dot.is-active {
  background: var(--bronce);
  box-shadow: 0 0 0 1px var(--bronce);
  transform: scale(1.25);
}
@media (prefers-reduced-motion: reduce) {
  .identity-slide { transition: opacity .4s linear; transform: none; }
  .identity-slide.is-active { transform: none; }
}

/* ============ 11 · SERVICE LIST ============ */
.service-tz {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--bronce); margin: 12px 0 0;
}
.service-list { margin-top: var(--space-3); }
.service-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-3);
  padding: 16px 0;
  border-bottom: 1px solid rgba(168,124,66,.3);
}
.sl-when {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  color: var(--bronce); text-transform: uppercase; padding-top: 3px;
}
.sl-what { font-size: 14px; color: var(--indigo); line-height: 1.55; }
.sl-body { display: flex; flex-direction: column; gap: 8px; }
.sl-join {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terracota);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.sl-join svg { width: 15px; height: 15px; }
.sl-join:hover { border-bottom-color: var(--terracota); }
.sl-key {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--bronce); opacity: .85;
}
/* Email largo de la tarjeta Pastoral: que no desborde */
.cc-title { word-break: break-word; }

/* ============ 12 · MAP ============ */
.map-frame {
  width: 100%; aspect-ratio: 1/1;
  background: var(--lino);
  border: 1px solid rgba(168,124,66,.4);
  overflow: hidden;
}
.map-frame iframe { filter: grayscale(.6) contrast(.9); }

/* ============ 13 · EVENT LIST ============ */
.event-list { display: flex; flex-direction: column; gap: var(--space-3); }
.event {
  display: grid; grid-template-columns: 92px 1fr; gap: var(--space-3);
  padding: var(--space-3);
  background: var(--crema);
  border: 1px solid rgba(168,124,66,.4);
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.section-lino .event { background: rgba(247,244,238,.7); }
.event:hover { transform: translateY(-2px); border-color: var(--terracota); }
.event-date {
  text-align: center;
  padding-right: var(--space-3);
  border-right: 1px solid rgba(168,124,66,.4);
  display: flex; flex-direction: column; justify-content: center;
}
.ed-day {
  display: block; font-family: var(--serif-display);
  font-size: 44px; line-height: 1; color: var(--indigo);
}
.ed-month {
  display: block; margin-top: 4px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .28em;
  color: var(--bronce); text-transform: uppercase;
}
.event-tag {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .28em;
  color: var(--bronce); text-transform: uppercase;
}
.event-title {
  font-family: var(--serif-display); font-size: 26px; color: var(--indigo);
  letter-spacing: .01em; margin: 6px 0 8px;
}
.event-desc { font-size: 13.5px; line-height: 1.55; color: var(--indigo); margin-bottom: 12px; }

/* ============ 14 · MINISTERIOS ============ */
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(168,124,66,.3);
  border: 1px solid rgba(168,124,66,.3);
}
.ministry {
  background: var(--crema);
  padding: var(--space-4) var(--space-3);
  display: flex; flex-direction: column;
  transition: background var(--t-base) var(--ease);
}
.section-lino .ministry { background: var(--lino); }
.ministry:hover { background: var(--lino); }
.section-lino .ministry:hover { background: var(--crema); }
.ministry-num {
  font-family: var(--mono); font-size: 10px; letter-spacing: .26em;
  color: var(--bronce); text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 1px solid rgba(168,124,66,.4);
  margin-bottom: 14px;
}
.ministry-title {
  font-family: var(--serif-display); font-size: 24px; color: var(--indigo);
  letter-spacing: .01em; margin-bottom: 8px;
}
.ministry-desc { font-size: 13px; line-height: 1.6; color: var(--indigo); flex: 1; margin-bottom: 16px; }
.ministry-cta {
  font-family: var(--mono); font-size: 9px; letter-spacing: .28em;
  color: var(--bronce); text-transform: uppercase;
  padding-top: 10px; border-top: 1px solid rgba(168,124,66,.3);
}
.ministry-cta:hover { color: var(--terracota); }

/* ============ 15 · RECURSOS ============ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(168,124,66,.3);
  border: 1px solid rgba(168,124,66,.3);
}
.resource {
  background: var(--crema);
  padding: var(--space-4) var(--space-3);
  display: flex; flex-direction: column;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.section-lino .resource { background: var(--lino); }
.resource:hover { background: var(--indigo); color: var(--crema); }
.resource:hover .res-tag,
.resource:hover .res-arrow { color: var(--bronce); }
.res-tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: .28em;
  color: var(--bronce); text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 1px solid rgba(168,124,66,.4);
  margin-bottom: 14px;
}
.res-title {
  font-family: var(--serif-display); font-size: 26px; letter-spacing: .01em;
  margin-bottom: 8px;
}
.res-desc { font-size: 13px; line-height: 1.6; flex: 1; margin-bottom: 16px; }
.res-arrow {
  font-family: var(--mono); font-size: 9px; letter-spacing: .26em;
  color: var(--terracota); text-transform: uppercase;
  padding-top: 10px; border-top: 1px solid rgba(168,124,66,.3);
}

/* ============ 16 · FORMS ============ */
.form-card {
  background: var(--crema);
  border: 1px solid rgba(168,124,66,.4);
  padding: var(--space-4);
}
.section-lino .form-card,
.section-crema .form-card { background: var(--crema); }
.section-crema .form-card { background: var(--lino); }
.form-label {
  display: block;
  font-family: var(--mono); font-size: 9px; letter-spacing: .32em;
  color: var(--bronce); text-transform: uppercase;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(168,124,66,.35);
}
.form-title {
  font-family: var(--serif-display); font-size: 30px; color: var(--indigo);
  letter-spacing: .01em; margin-bottom: 6px;
}
.form-sub {
  font-family: var(--serif-quote); font-style: italic;
  font-size: 15px; color: var(--petroleo); margin-bottom: var(--space-3);
}
.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block;
  font-family: var(--mono); font-size: 9px; letter-spacing: .24em;
  color: var(--bronce); text-transform: uppercase;
  margin-bottom: 6px;
}
.field-label em { font-style: normal; opacity: .7; text-transform: none; letter-spacing: .12em; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans); font-size: 14px;
  color: var(--indigo);
  background: var(--crema);
  border: 1px solid rgba(168,124,66,.4);
  transition: border-color var(--t-fast) var(--ease);
}
.section-crema .field input,
.section-crema .field textarea,
.section-crema .field select { background: var(--lino); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none; border-color: var(--terracota);
}
.radios { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.radios label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; cursor: pointer;
}
.radios input[type=radio] { accent-color: var(--terracota); }
.form-foot {
  margin-top: var(--space-2);
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  color: var(--bronce); text-transform: uppercase;
  line-height: 1.6;
}

/* ============ 17 · DONATE ============ */
.donate-card {
  background: var(--crema);
  border: 1px solid var(--bronce);
  padding: var(--space-4);
}
.section-lino .donate-card { background: var(--crema); }
.donate-label {
  display: block; font-family: var(--mono);
  font-size: 9px; letter-spacing: .32em; color: var(--bronce);
  text-transform: uppercase; margin-bottom: 8px;
}
.donate-title {
  font-family: var(--serif-display); font-size: 32px; color: var(--indigo);
  letter-spacing: .01em; margin-bottom: 6px;
}
.donate-sub {
  font-family: var(--serif-quote); font-style: italic;
  font-size: 15px; color: var(--petroleo); margin-bottom: var(--space-3);
}
.donate-amounts {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.amt {
  padding: 14px 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  color: var(--indigo); border: 1px solid var(--bronce);
  background: transparent;
  transition: all var(--t-fast) var(--ease);
}
.amt:hover { background: var(--lino); }
.amt.active { background: var(--terracota); color: var(--crema); border-color: var(--terracota); }

/* ============ 18 · FAQ ============ */
.faq { margin-top: var(--space-3); }
.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(168,124,66,.3);
}
.faq-item dt {
  font-family: var(--serif-display); font-size: 20px;
  color: var(--indigo); letter-spacing: .01em; margin-bottom: 6px;
}
.faq-item dd { font-size: 13.5px; color: var(--indigo); line-height: 1.6; }

/* ============ 19 · CONTACT CARDS ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(168,124,66,.3);
  border: 1px solid rgba(168,124,66,.3);
}
.contact-card {
  background: var(--crema);
  padding: var(--space-4);
  display: flex; flex-direction: column;
  transition: background var(--t-base) var(--ease);
}
.section-lino .contact-card { background: var(--lino); }
.contact-card:hover { background: var(--indigo); color: var(--crema); }
.contact-card:hover .cc-label,
.contact-card:hover .cc-cta { color: var(--bronce); }
.cc-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .3em;
  color: var(--bronce); text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 1px solid rgba(168,124,66,.4);
  margin-bottom: 14px;
}
.cc-title {
  font-family: var(--serif-display); font-size: 22px; letter-spacing: .01em;
  margin-bottom: 8px;
}
.cc-desc { font-size: 13px; line-height: 1.55; flex: 1; margin-bottom: 14px; opacity: .85; }
.cc-cta {
  font-family: var(--mono); font-size: 9px; letter-spacing: .26em;
  color: var(--terracota); text-transform: uppercase;
  padding-top: 10px; border-top: 1px solid rgba(168,124,66,.3);
}
.social-row {
  margin-top: var(--space-5); text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .26em;
  color: var(--bronce); text-transform: uppercase;
}
.social-row a {
  color: var(--indigo);
  transition: color var(--t-fast) var(--ease), transform var(--t-base) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-row a:hover { color: var(--terracota); transform: translateY(-2px); }
.social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.dot-sep { margin: 0 var(--space-2); color: var(--bronce); }

/* — Iconos en tarjetas de Recursos — */
.res-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  color: var(--bronce);
  margin-bottom: var(--space-3);
  transition: color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.res-icon svg { width: 100%; height: 100%; display: block; }
.resource:hover .res-icon {
  color: var(--bronce);
  transform: translateY(-3px) rotate(-4deg);
}

/* ============ 20 · FOOTER ============ */
.footer {
  background: var(--indigo);
  color: var(--crema);
  padding: var(--space-7) var(--space-7) var(--space-4);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-6);
  max-width: var(--container); margin: 0 auto;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(168,124,66,.3);
}
.foot-brand {
  display: block;
  font-family: var(--serif-display); font-size: 56px;
  letter-spacing: .08em; line-height: 1; margin-bottom: var(--space-3);
}
.foot-quote {
  font-family: var(--serif-quote); font-style: italic;
  font-size: 18px; line-height: 1.4; color: var(--lino);
  max-width: 32ch;
}
.foot-ref {
  display: block; margin-top: 12px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .32em;
  color: var(--bronce); text-transform: uppercase;
}
.foot-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .3em;
  color: var(--bronce); text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 1px solid rgba(168,124,66,.3);
  margin-bottom: 14px; display: block;
}
.foot-nav,
.foot-contact { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a,
.foot-contact li {
  font-size: 13px; color: var(--lino); line-height: 1.5;
  transition: color var(--t-fast) var(--ease);
}
.foot-nav a:hover { color: var(--bronce); }
.lang-foot { margin-top: 8px; }
.lang-foot button { color: var(--lino); }
.lang-foot button.active,
.lang-foot button:hover { border-color: var(--bronce); color: var(--bronce); }
.foot-bottom {
  max-width: var(--container); margin: var(--space-4) auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .26em;
  color: rgba(230,217,191,.6); text-transform: uppercase;
}

/* ============ 21 · ANIMACIONES REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint .arrow { animation: none; }
  html { scroll-behavior: auto; }
}

/* — Motion: estado inicial oculto (solo con JS activo, clase .anim en <html>).
     Motion los anima hasta verse; el failsafe quita .anim si algo falla. — */
.anim [data-hero] > *,
.anim [data-fade],
.anim [data-stagger] > .eyebrow,
.anim [data-stagger] > h2,
.anim [data-stagger] > .lede,
.anim [data-stagger] > .social-row,
.anim [data-stagger] .grid-6 > *,
.anim [data-stagger] .grid-5 > *,
.anim [data-stagger] .grid-3 > * {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  /* Por si acaso: con "reducir movimiento" todo se ve, sin ocultar nada. */
  .anim [data-hero] > *,
  .anim [data-fade],
  .anim [data-stagger] > .eyebrow,
  .anim [data-stagger] > h2,
  .anim [data-stagger] > .lede,
  .anim [data-stagger] > .social-row,
  .anim [data-stagger] .grid-6 > *,
  .anim [data-stagger] .grid-5 > *,
  .anim [data-stagger] .grid-3 > * {
    opacity: 1;
  }
}

/* ============ 22 · RESPONSIVE ============ */
@media (max-width: 1080px) {
  .section { padding: var(--space-7) var(--space-5); }
  .marker { left: var(--space-5); right: var(--space-5); }
  .twocol { gap: var(--space-5); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .topnav { display: none; }
  .burger { display: block; }
  .lang { display: none; }
  .cta-mini { display: none; }
}

@media (max-width: 720px) {
  .section { padding: var(--space-6) var(--space-3); }
  .marker {
    position: static; flex-wrap: wrap; gap: 6px;
    left: auto; right: auto;
    margin-bottom: var(--space-4);
  }
  .twocol { grid-template-columns: 1fr; gap: var(--space-5); }
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 { grid-template-columns: 1fr; }
  .hero { padding: calc(var(--topbar-h) + var(--space-5)) var(--space-3) var(--space-7); }
  .service-list li { grid-template-columns: 1fr; gap: 4px; }
  .event { grid-template-columns: 72px 1fr; }
  .ed-day { font-size: 34px; }
  .footer { padding: var(--space-6) var(--space-3); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .foot-brand { font-size: 42px; }
  /* En móvil: centrar la columna del logo (logo + versículo) */
  .footer-inner > .foot-col:first-child { text-align: center; }
  .footer-inner > .foot-col:first-child .foot-brand-img { margin-left: auto; margin-right: auto; }
  /* El versículo tiene un ancho máximo; centrar también su cajita */
  .footer-inner > .foot-col:first-child .foot-quote { margin-left: auto; margin-right: auto; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}

/* ============ 23 · ACCESIBILIDAD ============ */
:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
}

/* ============ 24 · VERSÍCULO DEL DÍA ============ */
.verse-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.verse-section .container-tight {
  max-width: 880px;
  position: relative;
  z-index: 2;
}

/* — Partículas atmosféricas — */
.verse-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.verse-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--bronce);
  box-shadow: 0 0 6px rgba(168,124,66,.45);
  opacity: 0;
  animation: particleFloat 14s ease-in-out infinite;
}
.verse-particles .particle.p1 { top: 18%; left: 12%; animation-delay: 0s; }
.verse-particles .particle.p2 { top: 30%; right: 14%; animation-delay: 2.6s; width: 2px; height: 2px; }
.verse-particles .particle.p3 { top: 64%; left: 20%; animation-delay: 5.4s; width: 4px; height: 4px; }
.verse-particles .particle.p4 { top: 78%; right: 18%; animation-delay: 8.2s; }
.verse-particles .particle.p5 { top: 52%; left: 50%; animation-delay: 10.8s; width: 2px; height: 2px; }

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) translateX(0); }
  15% { opacity: 0.5; }
  50% { opacity: 0.9; transform: translateY(-36px) translateX(10px); }
  85% { opacity: 0.4; }
}

/* — Saludo con icono temporal — */
.verse-greeting-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-4);
}
.verse-icon-wrap {
  width: 26px;
  height: 26px;
  color: var(--bronce);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.verse-icon-wrap svg {
  width: 100%;
  height: 100%;
  animation: iconBreath 4s ease-in-out infinite;
}
@keyframes iconBreath {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* — Cuerpo de la cita con comillas decorativas — */
.verse-quote-wrap {
  position: relative;
  padding: var(--space-3) var(--space-4);
  margin: 0 auto var(--space-3);
  max-width: 760px;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.verse-quote-wrap.swap-out { opacity: 0; transform: translateY(-6px); }

.quote-mark {
  position: absolute;
  font-family: var(--serif-display);
  font-size: clamp(54px, 9vw, 110px);
  line-height: 1;
  color: var(--bronce);
  opacity: 0.13;
  user-select: none;
  pointer-events: none;
  font-style: normal;
  z-index: 1;
}
.quote-mark.quote-open { top: -0.55em; left: -0.2em; }
.quote-mark.quote-close { bottom: -0.6em; right: -0.2em; }
@media (max-width: 720px) {
  .quote-mark.quote-open { top: -0.4em; left: -0.05em; }
  .quote-mark.quote-close { bottom: -0.45em; right: -0.05em; }
}

.verse-text {
  font-family: var(--serif-quote);
  font-style: italic;
  font-size: clamp(24px, 3.8vw, 42px);
  line-height: 1.42;
  color: var(--petroleo);
  margin: 0;
  position: relative;
  z-index: 2;
  transition: transform var(--t-slow) var(--ease), color var(--t-slow) var(--ease);
}
.verse-quote-wrap:hover .verse-text {
  transform: scale(1.015);
  color: var(--indigo);
}

/* — Cascada palabra por palabra — */
.verse-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.verse-word.in {
  opacity: 1;
  transform: translateY(0);
}

/* — Línea decorativa que se dibuja — */
.verse-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronce), transparent);
  margin: var(--space-4) auto var(--space-2);
  width: 0;
  max-width: 160px;
  transition: width 1.4s var(--ease) .9s;
}
.reveal.in .verse-line { width: 160px; }

/* — Referencia — */
.verse-ref {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bronce);
  margin-top: var(--space-2);
  transition: opacity .35s var(--ease);
}
.verse-ref.swap-out { opacity: 0; }

/* — Meta info (día + progress) — */
.verse-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: var(--space-3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronce);
  opacity: 0.65;
}
.verse-meta-sep { opacity: 0.4; }

/* — Acciones — */
.verse-actions {
  margin-top: var(--space-5);
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.verse-actions .btn { position: relative; }
.verse-actions .btn .btn-icon {
  display: inline-block;
  margin-right: 4px;
  transition: transform var(--t-base) var(--ease);
}
#verse-random:hover .btn-icon { transform: rotate(180deg); }
#verse-share:hover .btn-icon { transform: translate(2px, -2px); }

@media (prefers-reduced-motion: reduce) {
  .verse-particles .particle,
  .verse-icon-wrap svg { animation: none; opacity: 0.6; }
  .verse-word { transition: none; }
  .verse-line { transition: none; }
}

/* ============ 25 · LOGOS (header + footer) ============ */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-height: var(--topbar-h);
}
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
@media (max-width: 860px) {
  .brand-logo { height: 44px; max-width: 170px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 38px; max-width: 140px; }
}
.foot-brand-img {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  margin-bottom: var(--space-3);
}

/* ============ 26 · NOMBRES DE PASTORES (destacados) ============ */
.pastors-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--bronce);
  padding-left: var(--space-3);
}
.pastor-name {
  font-family: var(--serif-quote);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--indigo);
  line-height: 1.25;
  letter-spacing: .005em;
}

/* ============ 27 · FIELDSET RESET (alinea Visibilidad con los otros campos) ============ */
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
}
fieldset.field > legend.field-label {
  padding: 0;
  width: 100%;
  float: none;
}
/* Los radios/checkboxes NO deben recibir el estilo de input "grande" del formulario */
.field input[type="radio"],
.field input[type="checkbox"] {
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  margin: 0;
  flex-shrink: 0;
}
.radios label {
  width: fit-content;
}

/* ============ 28 · ICONOS EN CARDS + HOVER ENRIQUECIDO ============ */
.cc-icon,
.pillar-icon {
  display: inline-flex;
  margin-bottom: var(--space-3);
  color: var(--bronce);
  transition: color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.cc-icon { width: 36px; height: 36px; }
.pillar-icon { width: 32px; height: 32px; }
.cc-icon svg,
.pillar-icon svg { width: 100%; height: 100%; display: block; }

.contact-card:hover .cc-icon {
  transform: translateY(-3px) rotate(-4deg);
}
.pillar:hover .pillar-icon {
  transform: translateY(-2px) scale(1.08);
}

/* Iconos de Ministerios (mismo estilo que los pilares de Creencias) */
.ministry-icon {
  display: inline-flex;
  width: 30px; height: 30px;
  color: var(--bronce);
  margin-bottom: 14px;
  transition: color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.ministry-icon svg { width: 100%; height: 100%; display: block; }
.ministry:hover .ministry-icon { transform: translateY(-2px) scale(1.08); }

/* Iconos de las preguntas (Primera visita) */
.faq-item dt { display: flex; align-items: center; gap: 10px; }
.faq-icon {
  width: 22px; height: 22px;
  color: var(--bronce);
  flex-shrink: 0;
}

/* Hover enriquecido en las cards: elevación + sombra + línea bronce */
.contact-card,
.pillar,
.ministry,
.resource {
  position: relative;
  overflow: hidden;
  transition: background var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              color var(--t-base) var(--ease);
}
.contact-card::before,
.pillar::before,
.ministry::before,
.resource::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--bronce);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .45s var(--ease);
  z-index: 1;
}
.contact-card:hover::before,
.pillar:hover::before,
.ministry:hover::before,
.resource:hover::before {
  transform: scaleY(1);
}
.contact-card:hover,
.pillar:hover,
.ministry:hover,
.resource:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(26, 37, 69, 0.09);
}

/* ============ 29 · PATRONES DECORATIVOS SUTILES ============ */
.section-lino {
  position: relative;
  isolation: isolate;
}
.section-lino::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(168, 124, 66, 0.07) 1px, transparent 1.5px);
  background-size: 36px 36px;
  background-position: 0 0;
  pointer-events: none;
  z-index: -1;
}
.section-crema:not(.verse-section) {
  position: relative;
  isolation: isolate;
}
.section-crema:not(.verse-section)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(168, 124, 66, 0.035) 1px, transparent 1px),
    linear-gradient(45deg, rgba(168, 124, 66, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ 23b · CIFRAS · nuestra familia en números ============ */
/* Mapa del mundo (puntos) con países y líneas hacia Dubái */
.stats-map {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto var(--space-5);
  aspect-ratio: 360 / 140;
}
.stats-map-dots,
.stats-map-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.stats-map-lines { overflow: visible; }
.arc {
  fill: none; stroke: var(--bronce); stroke-width: 0.5;
  stroke-opacity: .45; stroke-linecap: round;
}
.arc-flow {
  fill: none; stroke: var(--bronce); stroke-width: 0.9; stroke-linecap: round;
  stroke-dasharray: 3 97;
  animation: arc-flow 3s linear infinite;
}
@keyframes arc-flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.mk { fill: #C28A3D; }
.mk-home { fill: var(--bronce); }
.ping {
  fill: #C28A3D; opacity: .5;
  transform-box: fill-box; transform-origin: center;
  animation: mk-ping 2.6s ease-out infinite;
}
.ping-home { fill: var(--bronce); }
@keyframes mk-ping {
  0%   { transform: scale(1); opacity: .5; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .arc-flow, .ping { animation: none; }
  .ping { opacity: 0; }
}

.stats-section .eyebrow.center { display: block; margin-bottom: var(--space-4); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: 760px;
  margin: 0 auto;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif-display);
  font-size: clamp(46px, 7vw, 66px);
  line-height: .95;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}
.stat-lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronce);
  max-width: 130px;
}
.stats-countries {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--petroleo);
  opacity: .82;
  margin: var(--space-4) auto 0;
  max-width: 620px;
  line-height: 1.7;
}
/* Tablet: el globo y los números se apilan */
@media (max-width: 900px) {
  .stats-layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    max-width: 560px;
  }
  .stats-globe-wrap { max-width: 320px; }
}
@media (max-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) var(--space-3);
  }
}

/* ============ 24 · RTL · árabe ============ */
html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] .topnav { flex-direction: row-reverse; }
html[dir="rtl"] .marker { flex-direction: row-reverse; }
