/* ============================================================
   Súmate por Anserma — sistema de diseño
   Fundación sin ánimo de lucro. Cálido, comunitario, esperanzador.
   ============================================================ */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F3EEE4;
  --bg-dark: #1B4332;
  --bg-dark-2: #0F2A1D;
  --dorado: #E8A716;
  --dorado-dark: #C6900E;
  --rojo: #D62828;
  --verde-oliva: #86B49B;
  --verde-medio: #4E8F72;
  --texto: #2A2A2A;
  --texto-muted: #5C6459;
  --texto-claro: #FFFFFF;
  --texto-claro-muted: rgba(255, 255, 255, 0.78);
  --card-bg: #FFFFFF;
  --borde: rgba(42, 42, 42, 0.1);
  --borde-claro: rgba(255, 255, 255, 0.16);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 29, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 42, 29, 0.18);
  --container: 1180px;
  --font-heading: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 575.98px) {
  .container { padding: 0 1.1rem; }
}

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dorado-dark);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--dorado);
}
section.dark .eyebrow { color: var(--dorado); }
section.dark .eyebrow::before { background: var(--dorado); }

h2.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--texto-muted);
  max-width: 62ch;
}
section.dark p.lead, .page-hero p.lead { color: var(--texto-claro-muted); }
.section-head {
  max-width: 720px;
  margin: 0 0 2.75rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-dorado {
  background: linear-gradient(135deg, #F0B830, var(--dorado) 60%, var(--dorado-dark));
  color: #23180A;
  box-shadow: 0 10px 24px rgba(232, 167, 22, 0.35);
}
.btn-dorado:hover {
  background: linear-gradient(135deg, var(--dorado), var(--dorado-dark) 60%, #A87A0B);
  box-shadow: 0 14px 30px rgba(232, 167, 22, 0.42);
}
.btn-dorado.pulse { animation: btn-glow 2.6s ease-in-out infinite; }
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 10px 24px rgba(232, 167, 22, 0.35); }
  50% { box-shadow: 0 10px 34px rgba(232, 167, 22, 0.6), 0 0 0 6px rgba(232, 167, 22, 0.12); }
}
@media (prefers-reduced-motion: reduce) { .btn-dorado.pulse { animation: none; } }
.btn-outline-light {
  border-color: var(--borde-claro);
  color: var(--texto-claro);
  background: transparent;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.btn-outline-dark {
  border-color: rgba(27, 67, 50, 0.3);
  color: var(--bg-dark);
  background: transparent;
}
.btn-outline-dark:hover { background: rgba(27, 67, 50, 0.06); border-color: var(--bg-dark); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(250, 247, 242, 0.92);
  border-color: var(--borde);
  box-shadow: 0 8px 24px rgba(15, 42, 29, 0.06);
}
.site-header .container { display: flex; align-items: center; gap: 1rem; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 40px; width: auto; flex-shrink: 0; }
.brand-text { font-family: var(--font-heading); line-height: 1.15; white-space: nowrap; }
.brand-text strong { display: block; font-size: 0.95rem; font-weight: 800; color: var(--bg-dark); letter-spacing: 0.01em; }
.brand-text span { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; color: var(--texto-muted); text-transform: uppercase; }

/* La "+" dorada que reemplaza la "t" de "Súmate" en títulos, como en el isotipo del logo */
.mas-dorado { color: var(--dorado); font-weight: 800; }
/* El .eyebrow tiene letter-spacing amplio (tracking de mayúsculas); sin este
   ajuste el "+" queda visualmente separado de "Súma"/"e" y se pierde el
   efecto de "Súma+e" del isotipo. */
.eyebrow .mas-dorado { letter-spacing: normal; margin-left: -0.14em; }
.footer-grid h4 .mas-dorado { letter-spacing: normal; margin-left: -0.06em; }

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: nowrap;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: var(--texto);
  position: relative;
  padding: 0.3rem 0;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--dorado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover { color: var(--bg-dark); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active {
  color: var(--bg-dark);
  font-weight: 700;
}
.main-nav a.active::after { transform: scaleX(1); }

.nav-sep {
  width: 1px;
  height: 16px;
  background: var(--borde);
  flex-shrink: 0;
}

.header-cta { margin-left: 0.35rem; flex-shrink: 0; }
.header-cta .btn { white-space: nowrap; }

@media (max-width: 1199.98px) {
  .brand-text span { display: none; }
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid var(--borde);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bg-dark);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 991.98px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--borde);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 0.85rem 0.1rem; font-size: 0.95rem; border-bottom: 1px solid var(--borde); }
  .main-nav a.active { color: var(--dorado-dark); }
  .nav-sep { display: none; }
  .header-cta { margin: 1rem 0 0; }
  .header-cta .btn { width: 100%; }
  .nav-toggle { display: flex; }
}

/* ---------- Secciones oscuras / claras ---------- */
section { padding: 5.5rem 0; position: relative; overflow: hidden; }
section.tight { padding: 3.5rem 0; }
section.dark {
  background:
    radial-gradient(circle at 12% 18%, rgba(232, 167, 22, 0.20), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(134, 180, 155, 0.18), transparent 48%),
    linear-gradient(165deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--texto-claro);
}
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--texto-claro); }
section.dark p { color: var(--texto-claro-muted); }
section.darker {
  background:
    radial-gradient(circle at 82% 12%, rgba(232, 167, 22, 0.16), transparent 40%),
    radial-gradient(circle at 8% 88%, rgba(214, 40, 40, 0.10), transparent 42%),
    var(--bg-dark-2);
}
section.alt { background: var(--bg-alt); }
section > .container { position: relative; z-index: 2; }

/* ---------- Objetos flotantes decorativos ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: blob-float 12s ease-in-out infinite;
}
.blob.dorado { background: radial-gradient(circle, rgba(232,167,22,0.55), rgba(232,167,22,0) 70%); }
.blob.rojo { background: radial-gradient(circle, rgba(214,40,40,0.45), rgba(214,40,40,0) 70%); }
.blob.oliva { background: radial-gradient(circle, rgba(134,180,155,0.55), rgba(134,180,155,0) 70%); }
.blob.verde { background: radial-gradient(circle, rgba(78,143,114,0.5), rgba(78,143,114,0) 70%); }
.blob.delay { animation-delay: -4s; }
.blob.delay2 { animation-delay: -8s; }
.blob.slow { animation-duration: 18s; }

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-22px, 26px) scale(1.08); }
  66% { transform: translate(18px, -18px) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }
@media (max-width: 767.98px) { .blob { filter: blur(50px); } }

/* ---------- Divisores tipo montaña ---------- */
.divider-mountains {
  display: block;
  width: 100%;
  height: 54px;
  line-height: 0;
  position: relative;
  z-index: 2;
}
.divider-mountains svg { width: 100%; height: 100%; display: block; }
@media (max-width: 575.98px) { section { padding: 3.75rem 0; } }

/* ---------- Hero ---------- */
.hero {
  padding-top: 3rem;
  padding-bottom: 4.75rem;
  overflow: hidden;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 0.75fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.hero-photo-bleed {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: clamp(320px, 34vw, 460px);
  margin-left: calc(50% - 50vw);
  width: calc(100% + (50vw - 50%));
}
.hero-photo-bleed img {
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  display: block;
}
.hero-photo-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(15, 42, 29, 0.6) 80%, var(--bg-dark-2) 100%);
  pointer-events: none;
}
@media (max-width: 767.98px) {
  .hero-photo-bleed::after { background: linear-gradient(180deg, transparent 50%, var(--bg-dark-2) 100%); }
}
@media (max-width: 1199.98px) {
  .hero-grid { grid-template-columns: 1.05fr 1.5fr; }
  .hero-art { display: none; }
}
@media (max-width: 767.98px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
  .hero-photo-bleed { height: 240px; margin-left: calc(50% - 50vw); width: 100vw; }
  .hero-photo-bleed img { height: 100%; max-height: none; width: 100%; object-fit: cover; object-position: 25% 28%; }
}
.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  letter-spacing: -0.01em;
}
.hero .accent { color: var(--dorado); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
@media (max-width: 991.98px) { .hero-actions { justify-content: center; } }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--borde-claro);
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-badge {
  position: relative;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rojo);
  box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.25);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(214, 40, 40, 0.12); }
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 167, 22, 0.28), rgba(232, 167, 22, 0) 68%);
  filter: blur(6px);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 1; }
}
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; position: relative; z-index: 1; }
.hero-brand img {
  width: min(100%, 140px);
  height: auto;
  animation: hero-float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}
.hero-brand-text { text-align: center; font-family: var(--font-heading); line-height: 1.2; }
.hero-brand-text strong { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; }
.hero-brand-text span { display: block; font-size: 0.9rem; color: var(--texto-claro-muted); margin-top: 0.1rem; }
.hero-brand-text em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-claro-muted);
  opacity: 0.65;
  margin-top: 0.3rem;
}
.hero-divider { width: 1px; align-self: stretch; margin: 0.5rem 2.5rem 0.5rem 0; background: rgba(255, 255, 255, 0.18); }
.hero-urlbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  background: var(--card-bg);
  border-top-left-radius: 140px 70px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 3rem;
  box-shadow: 0 -12px 30px rgba(15, 42, 29, 0.18);
}
.hero-urlbar span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--texto);
  letter-spacing: 0.01em;
}
@media (max-width: 767.98px) {
  .hero-urlbar { border-top-left-radius: 80px 40px; padding: 0 1.5rem; height: 54px; }
  .hero-urlbar span { font-size: 0.78rem; }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge .dot, .hero-art::before, .hero-brand img { animation: none; }
}
@media (max-width: 1199.98px) {
  .hero-art { display: none; }
}

/* ---------- Tarjetas ---------- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Tarjetas "de vidrio" sobre fondos oscuros: transparencia + blur en vez de
   bloque sólido, para que el degradado/los blobs de la sección se noten a
   través. */
section.dark .card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
section.dark .card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}
section.dark .card h3 { color: var(--texto-claro); }
section.dark .card p { color: var(--texto-claro-muted); }

.grid {
  display: grid;
  gap: 1.75rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991.98px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27, 67, 50, 0.08);
  color: var(--bg-dark);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}
section.dark .icon-badge { background: rgba(232, 167, 22, 0.14); color: var(--dorado); }
.icon-badge.gold { background: rgba(232, 167, 22, 0.14); color: var(--dorado-dark); }
.icon-badge.rojo { background: rgba(214, 40, 40, 0.1); color: var(--rojo); }

.action-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.action-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Timeline (emergencia) ---------- */
.timeline {
  border-left: 2px solid var(--borde-claro);
  margin-left: 0.4rem;
  padding-left: 1.75rem;
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.02rem; top: 0.35rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--dorado);
  box-shadow: 0 0 0 4px rgba(15, 42, 29, 1), 0 0 0 5px rgba(232, 167, 22, 0.4);
}
.timeline-item .t-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dorado);
  display: block;
  margin-bottom: 0.35rem;
}
.timeline-item p { margin-bottom: 0; color: var(--texto-claro-muted); }

/* Variante clara: cuando la línea de tiempo NO está dentro de una sección
   oscura (p. ej. "La emergencia" sobre fondo crema), se ajustan los colores
   pensados para fondo oscuro por unos legibles sobre claro. */
section:not(.dark) .timeline { border-left-color: var(--borde); }
section:not(.dark) .timeline-item::before { box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 5px rgba(232, 167, 22, 0.35); }
section:not(.dark) .timeline-item .t-label { color: var(--dorado-dark); }
section:not(.dark) .timeline-item p { color: var(--texto-muted); }

.note-box {
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--texto-claro-muted);
  margin-top: 2rem;
}
.note-box.light {
  border-color: rgba(42, 42, 42, 0.25);
  color: var(--texto-muted);
}

/* ---------- Placeholder de foto ---------- */
.photo-placeholder {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
  padding: 1.5rem;
  background:
    repeating-linear-gradient(135deg, rgba(27,67,50,0.06) 0 14px, rgba(134,180,155,0.1) 14px 28px);
  border: 1.5px dashed rgba(27, 67, 50, 0.3);
  color: var(--texto-muted);
}
.photo-placeholder i { font-size: 1.8rem; color: var(--verde-medio); }
.photo-placeholder span { font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Junta directiva ---------- */
.persona-card { text-align: center; }
.persona-avatar {
  width: 76px; height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--bg-dark), var(--verde-medio));
  color: var(--texto-claro);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}
.persona-card h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.persona-card .cargo { color: var(--dorado-dark); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.fundadores-line { text-align: center; color: var(--texto-muted); font-size: 0.92rem; margin-top: 2.5rem; }

/* ---------- Bandera / Anserma nuestra tierra ---------- */
.flag-strip { display: flex; height: 14px; border-radius: 6px; overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.flag-strip .white { flex: 2; background: #FFFFFF; }
.flag-strip .y1, .flag-strip .y2, .flag-strip .y3 { flex: 1; background: var(--dorado); }
.flag-strip .r1, .flag-strip .r2 { flex: 1; background: var(--rojo); }

.stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 1rem; }
.stat-row .stat strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--bg-dark); }
.stat-row .stat span { font-size: 0.82rem; color: var(--texto-muted); }

.story-callout {
  background: var(--bg-dark);
  color: var(--texto-claro);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.story-callout i { color: var(--dorado); font-size: 1.5rem; flex-shrink: 0; }
.story-callout p { color: var(--texto-claro-muted); margin: 0; }

/* ---------- Modal "Cómo donar" ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 26, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center; justify-content: center;
  padding: 1.25rem;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}
.modal-box {
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1.2);
}
.modal-overlay.is-open .modal-box { transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-box { transition: none; }
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-box h3 { font-size: 1.35rem; }
.donar-channel {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--borde);
}
.donar-channel:last-of-type { border-bottom: none; }
.donar-channel .icon-badge { margin: 0; width: 42px; height: 42px; font-size: 1.05rem; flex-shrink: 0; }
.donar-channel strong { display: block; font-size: 0.92rem; }
.donar-channel span { font-size: 0.85rem; color: var(--texto-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark-2);
  color: var(--texto-claro-muted);
  padding: 3.5rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 767.98px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--texto-claro); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid a { display: block; text-decoration: none; font-size: 0.92rem; padding: 0.3rem 0; color: var(--texto-claro-muted); }
.footer-grid a:hover { color: var(--dorado); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 1.75rem;
  font-size: 0.8rem;
}
.social-row { display: flex; gap: 0.6rem; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--texto-claro);
}
.social-row a:hover { background: var(--dorado); color: #23180A; border-color: var(--dorado); }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--borde);
  background: var(--card-bg);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--texto);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(232, 167, 22, 0.18);
}
.form-note { font-size: 0.82rem; color: var(--texto-muted); margin-top: 0.75rem; }
.form-status { font-size: 0.9rem; font-weight: 600; margin-top: 1rem; display: none; }
.form-status.ok { display: block; color: var(--verde-medio); }
.form-status.err { display: block; color: var(--rojo); }

/* ---------- Página secundaria (transparencia / noticias) ---------- */
.page-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(232, 167, 22, 0.20), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(134, 180, 155, 0.16), transparent 48%),
    linear-gradient(165deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--texto-claro);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 0.5rem; }
.breadcrumb { font-size: 0.85rem; color: var(--texto-claro-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--texto-claro-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--dorado); }

.legal-block { margin-bottom: 2.75rem; }
.legal-block h2 { font-size: 1.35rem; }
.legal-block dl { display: grid; grid-template-columns: 220px 1fr; gap: 0.6rem 1.5rem; margin: 0; }
.legal-block dt { font-weight: 700; color: var(--texto-muted); font-size: 0.9rem; }
.legal-block dd { margin: 0; font-size: 0.96rem; }
@media (max-width: 575.98px) { .legal-block dl { grid-template-columns: 1fr; } .legal-block dt { margin-top: 0.5rem; } }

.pending-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rojo);
  background: rgba(214, 40, 40, 0.08);
  border-radius: 999px;
  padding: 0.2em 0.7em;
}

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.empty-state i { font-size: 2.4rem; color: var(--verde-medio); margin-bottom: 1rem; display: block; }
.empty-state h2 { font-size: 1.3rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2rem; }
@media (max-width: 767.98px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante donar (móvil) ---------- */
.donar-flotante {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 300;
  display: none;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 767.98px) { .donar-flotante { display: inline-flex; } }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Animación al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(.16,.84,.44,1), transform 0.6s cubic-bezier(.16,.84,.44,1);
}
.reveal-group > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.26s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1; transform: none; transition: none; }
}
