/* ============================================================
   FUNDACIÓN SALVEMOS VIDA — Hoja de estilos principal
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;500;600&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,400&display=swap');
@import url('variables.css');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--negro-tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Utilidades ── */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Antetítulo (manual: Poppins Medium 9-10pt, versalitas, track +34%) ── */
.overtitle {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--azul-vida);
}

/* ── Titulares ── */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }
h1 { font-weight: 200; font-size: var(--fs-h1); color: var(--azul-profundo); }
h2 { font-weight: 600; font-size: var(--fs-h2); color: var(--azul-profundo); }
h3 { font-weight: 600; font-size: var(--fs-h3); color: var(--azul-profundo); }

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  height: var(--nav-height);
  background: var(--blanco);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }
.site-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 1.1rem; color: var(--azul-profundo);
}
.nav-logo .logo-icon {
  width: 38px; height: 38px;
}
.nav-logo img.logo-img {
  height: 42px; width: auto;
}
.nav-links { display: flex; align-items: center; gap: var(--space-md); }
.nav-links a {
  font-family: var(--font-heading); font-weight: 500;
  font-size: 0.875rem; letter-spacing: 0.02em;
  color: var(--azul-profundo);
  position: relative; padding: 0.25rem 0;
  transition: color var(--duration) var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--azul-vida);
  transition: width var(--duration) var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--azul-vida); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* nav-cta removed — WhatsApp floating button is the CTA */

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; }
.nav-toggle span { display: block; height: 2px; background: var(--azul-profundo); border-radius: 2px; transition: var(--duration) var(--ease); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blanco); border-bottom: 1px solid rgba(0,0,0,.08);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { padding: var(--space-sm) 5%; border-bottom: 1px solid var(--gris-bruma); }
  .nav-cta { margin: var(--space-sm) 5%; text-align: center; justify-content: center; }
}

/* ============================================================
   HERO — Video fullscreen + overlay
   ============================================================ */
.hero {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  color: var(--blanco);
}
.hero-video {
  position: absolute; inset: 0; z-index: 0;
}
.hero-video video {
  width: 100%; height: 100%; object-fit: cover;
}
/* Overlay Azul Profundo #002B38 */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(0, 43, 56, 0.88) 0%,
    rgba(0, 43, 56, 0.75) 40%,
    rgba(0, 43, 56, 0.82) 100%
  );
}
.hero .container { position: relative; z-index: 2; }
.hero-content {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: var(--space-xl) 0;
}
.hero-logo {
  width: 320px; max-width: 70vw;
  margin-bottom: var(--space-lg);
  animation: heroFadeDown 1s var(--ease) both;
}
.hero h1 {
  font-size: var(--fs-hero); color: var(--blanco);
  margin-bottom: var(--space-sm);
  max-width: 800px;
  animation: heroFadeUp 1s 0.2s var(--ease) both;
}
.hero p {
  font-size: 1.15rem; line-height: 1.75;
  color: rgba(255,255,255,.85);
  max-width: 600px; margin-bottom: var(--space-lg);
  animation: heroFadeUp 1s 0.4s var(--ease) both;
}
.hero .overtitle {
  color: var(--azul-vida); margin-bottom: var(--space-xs);
  animation: heroFadeUp 1s 0.1s var(--ease) both;
}
.hero-buttons {
  display: flex; gap: var(--space-sm); flex-wrap: wrap;
  justify-content: center;
  animation: heroFadeUp 1s 0.6s var(--ease) both;
}
.hero-scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: bounceDown 2s infinite;
  color: rgba(255,255,255,.4);
}
.hero-scroll-hint svg { width: 28px; height: 28px; }

@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .4; }
  50% { transform: translateX(-50%) translateY(10px); opacity: .8; }
}

@media (max-width: 768px) {
  .hero { min-height: 85vh; }
  .hero-logo { width: 220px; }
  .hero-content { padding: var(--space-lg) 0; }
}

/* ============================================================
   NAV — semi-transparent dark on hero, solid white on scroll
   ============================================================ */
.site-nav--transparent {
  background: rgba(0, 43, 56, 0.65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom-color: rgba(255,255,255,.08);
}
.site-nav--transparent .nav-logo span { color: var(--blanco); }
.site-nav--transparent .nav-links a {
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.site-nav--transparent .nav-links a:hover,
.site-nav--transparent .nav-links a.active { color: var(--blanco); }
.site-nav--transparent .nav-toggle span { background: var(--blanco); }
/* Scrolled → solid white */
.site-nav--transparent.scrolled {
  background: var(--blanco);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom-color: rgba(0,0,0,.06);
}
.site-nav--transparent.scrolled .nav-logo span { color: var(--azul-profundo); }
.site-nav--transparent.scrolled .nav-links a {
  color: var(--azul-profundo); text-shadow: none;
}
.site-nav--transparent.scrolled .nav-links a:hover,
.site-nav--transparent.scrolled .nav-links a.active { color: var(--azul-vida); }
.site-nav--transparent.scrolled .nav-toggle span { background: var(--azul-profundo); }
/* Mobile dropdown on transparent nav */
@media (max-width: 768px) {
  .site-nav--transparent .nav-links {
    background: rgba(0, 43, 56, 0.95);
  }
  .site-nav--transparent .nav-links a {
    border-bottom-color: rgba(255,255,255,.1);
  }
  .site-nav--transparent.scrolled .nav-links {
    background: var(--blanco);
  }
  .site-nav--transparent.scrolled .nav-links a {
    border-bottom-color: var(--gris-bruma);
  }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-50px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(50px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* Staggered children */
.reveal-stagger > * {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.revealed > * { opacity: 1; transform: translateY(0); }

/* ============================================================
   FUNDADORA SECTION
   ============================================================ */
.founder-section {
  padding: var(--space-2xl) 0;
  background: var(--gris-bruma);
  overflow: hidden;
}
.founder-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-xl); align-items: center;
}
.founder-image-wrapper {
  position: relative;
}
.founder-image {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.founder-image img {
  width: 100%; display: block;
  transition: transform 0.6s var(--ease);
}
.founder-image:hover img { transform: scale(1.03); }
/* Decorative elements */
.founder-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,43,56,.15) 0%, transparent 40%);
  pointer-events: none;
}
.founder-decor-line {
  position: absolute; bottom: -16px; right: -16px;
  width: 120px; height: 120px;
  border: 2px solid var(--azul-vida);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.founder-decor-dot {
  position: absolute; top: -12px; left: -12px;
  width: 24px; height: 24px;
  background: var(--rojo-pulso);
  border-radius: 50%;
  z-index: 1;
}
.founder-content .overtitle { margin-bottom: var(--space-xs); }
.founder-content h2 {
  font-size: var(--fs-h1); font-weight: 200;
  margin-bottom: var(--space-xs);
}
.founder-name {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 1.3rem; color: var(--azul-vida);
  margin-bottom: var(--space-xs);
}
.founder-role {
  font-size: 0.95rem; color: var(--gris-acero);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}
.founder-credentials {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: var(--space-md);
}
.credential-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--azul-vida-10);
  color: var(--azul-profundo);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.02em;
}
.credential-tag svg { width: 14px; height: 14px; color: var(--azul-vida); }
.founder-quote {
  border-left: 3px solid var(--rojo-pulso);
  padding-left: var(--space-md);
  font-family: var(--font-heading); font-weight: 300;
  font-size: 1.1rem; font-style: italic;
  color: var(--azul-profundo);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-image-wrapper { max-width: 400px; margin: 0 auto; }
  .founder-content { text-align: center; }
  .founder-credentials { justify-content: center; }
  .founder-quote { text-align: left; }
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}
.btn-primary {
  background: var(--rojo-pulso); color: var(--blanco);
}
.btn-primary:hover { background: #b01012; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent; color: var(--blanco);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-secondary:hover { border-color: var(--blanco); background: rgba(255,255,255,.08); }
.btn-outline {
  background: transparent; color: var(--azul-vida);
  border: 1.5px solid var(--azul-vida);
}
.btn-outline:hover { background: var(--azul-vida); color: var(--blanco); }
.hero-buttons { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
@media (max-width: 768px) { .hero-buttons { justify-content: center; } }

/* ============================================================
   SECCIONES
   ============================================================ */
.section {
  padding: var(--space-2xl) 0;
}
.section--gray { background: var(--gris-bruma); }
.section--dark { background: var(--azul-profundo); color: var(--blanco); }
.section--dark h2,
.section--dark h3 { color: var(--blanco); }
.section--dark .overtitle { color: var(--azul-vida); }

.section-header {
  text-align: center; max-width: 640px; margin: 0 auto var(--space-xl);
}
.section-header p {
  color: var(--gris-acero); margin-top: var(--space-xs);
  font-size: 1.05rem;
}
.section--dark .section-header p { color: rgba(255,255,255,.7); }

/* ============================================================
   TARJETAS — Valores / Programas / Equipo
   ============================================================ */
.cards-grid {
  display: grid; gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--blanco); border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--azul-vida-10);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--azul-vida);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--gris-acero); font-size: 0.95rem; line-height: 1.65; }
.card-number {
  position: absolute; top: var(--space-sm); right: var(--space-md);
  font-family: var(--font-heading); font-weight: 200;
  font-size: 2.5rem; color: var(--azul-vida-10);
  line-height: 1;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md); text-align: center;
  padding: var(--space-xl) 0;
}
.stat-item {}
.stat-number {
  font-family: var(--font-heading); font-weight: 200;
  font-size: 2.75rem; color: var(--azul-vida);
  line-height: 1.1;
}
.section--dark .stat-number { color: var(--blanco); }
.stat-label {
  font-size: var(--fs-small); color: var(--gris-acero);
  margin-top: 0.25rem;
}
.section--dark .stat-label { color: rgba(255,255,255,.6); }

/* ============================================================
   TIMELINE (Historia)
   ============================================================ */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 2px; height: 100%; background: var(--azul-vida-20);
}
.timeline-item { position: relative; margin-bottom: var(--space-lg); }
.timeline-item::before {
  content: ''; position: absolute; left: -2.5rem; top: 0.35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--azul-vida); border: 3px solid var(--blanco);
  box-shadow: 0 0 0 2px var(--azul-vida);
}
.timeline-year {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.85rem; color: var(--azul-vida);
  margin-bottom: 0.25rem;
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.timeline-item p { color: var(--gris-acero); font-size: 0.95rem; }

/* ============================================================
   MISION/VISION SPLIT
   ============================================================ */
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg);
}
.split-card {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}
.split-card--mission {
  background: var(--azul-profundo); color: var(--blanco);
}
.split-card--vision {
  background: var(--blanco); border: 1px solid rgba(0,0,0,.06);
}
.split-card .overtitle { margin-bottom: var(--space-xs); }
.split-card--mission .overtitle { color: var(--azul-vida); }
.split-card h2 { font-size: 1.4rem; margin-bottom: var(--space-sm); }
.split-card--mission h2 { color: var(--blanco); }
.split-card p { line-height: 1.7; }
.split-card--mission p { color: rgba(255,255,255,.8); }
.split-card--vision p { color: var(--gris-acero); }

@media (max-width: 768px) {
  .split-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   QUOTE / PROMISE
   ============================================================ */
.quote-block {
  text-align: center; padding: var(--space-xl) var(--space-md);
}
.quote-block blockquote {
  font-family: var(--font-heading); font-weight: 200;
  font-size: var(--fs-h2); color: var(--azul-profundo);
  max-width: 700px; margin: 0 auto;
  line-height: 1.35;
}
.section--dark .quote-block blockquote,
.section--dark.quote-block blockquote { color: var(--blanco); }
.quote-block .quote-mark {
  display: block; font-size: 4rem; color: var(--rojo-pulso);
  line-height: 0.6; margin-bottom: var(--space-xs);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--azul-vida) 0%, var(--azul-profundo) 100%);
  color: var(--blanco); text-align: center;
  padding: var(--space-xl) var(--space-md);
}
.cta-section h2 { color: var(--blanco); margin-bottom: var(--space-xs); }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: var(--space-md); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { background: var(--rojo-pulso); }
.cta-section .btn-primary:hover { background: #b01012; }

/* ============================================================
   CONTACTO FORM
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl);
  align-items: start;
}
.contact-info-item {
  display: flex; gap: var(--space-sm); margin-bottom: var(--space-md);
}
.contact-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: var(--radius-sm); background: var(--azul-vida-10);
  display: flex; align-items: center; justify-content: center;
  color: var(--azul-vida);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-info-item h4 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.95rem; margin-bottom: 0.15rem;
}
.contact-info-item p { color: var(--gris-acero); font-size: 0.9rem; }

.form-group { margin-bottom: var(--space-sm); }
.form-group label {
  display: block; font-family: var(--font-heading);
  font-weight: 500; font-size: 0.85rem;
  margin-bottom: 0.35rem; color: var(--azul-profundo);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color var(--duration) var(--ease);
  background: var(--blanco);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--azul-vida);
  box-shadow: 0 0 0 3px var(--azul-vida-10);
}
.form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--azul-profundo); color: rgba(255,255,255,.7);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg); margin-bottom: var(--space-lg);
}
.footer-brand p { margin-top: var(--space-xs); font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--blanco);
  margin-bottom: var(--space-sm);
}
.footer-col a {
  display: block; font-size: 0.9rem; padding: 0.2rem 0;
  transition: color var(--duration) var(--ease);
}
.footer-col a:hover { color: var(--azul-vida); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-sm);
  display: flex; justify-content: space-between;
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PÁGINAS INTERIORES
   ============================================================ */
.page-hero {
  margin-top: var(--nav-height);
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, rgba(0,43,56,.88) 0%, rgba(61,149,183,.72) 100%),
              url('../img/page-hero-bg.png') center/cover no-repeat;
  color: var(--blanco);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(61,149,183,.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--blanco); margin-bottom: var(--space-xs); }
.page-hero p { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto; }

/* ── Programs intro (Home) ── */
.programs-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
}
.programs-intro-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.programs-intro-visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.programs-intro-visual::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 40px rgba(0,43,56,.15);
  pointer-events: none;
}
.programs-intro-text h2 { margin-bottom: var(--space-xs); }
.programs-intro-text p { color: var(--gris-acero); max-width: 480px; }
@media (max-width: 768px) {
  .programs-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .programs-intro-visual {
    max-width: 220px;
    margin: 0 auto;
  }
  .programs-intro-text p { margin: 0 auto; }
}

/* Programa cards */
.program-card {
  display: grid; grid-template-columns: auto 1fr;
  gap: var(--space-md); align-items: start;
  padding: var(--space-lg);
  background: var(--blanco); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); margin-bottom: var(--space-md);
  transition: box-shadow var(--duration) var(--ease);
}
.program-card:hover { box-shadow: var(--shadow-md); }
.program-number {
  font-family: var(--font-heading); font-weight: 200;
  font-size: 3rem; color: var(--azul-vida-20); line-height: 1;
  min-width: 60px; text-align: center;
}
.program-card h3 { margin-bottom: 0.4rem; }
.program-card p { color: var(--gris-acero); line-height: 1.65; }

@media (max-width: 480px) {
  .program-card { grid-template-columns: 1fr; }
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.faq-question {
  width: 100%; text-align: left; padding: var(--space-sm) 0;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 1rem; color: var(--azul-profundo);
  display: flex; justify-content: space-between; align-items: center;
}
.faq-question .faq-icon {
  font-size: 1.4rem; color: var(--azul-vida);
  transition: transform var(--duration) var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer-inner {
  padding: 0 0 var(--space-sm);
  color: var(--gris-acero); line-height: 1.7;
}

/* Allies logo grid */
.allies-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md); align-items: center; justify-items: center;
}
.ally-logo {
  width: 120px; height: 60px; background: var(--gris-bruma);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gris-acero); font-size: 0.75rem; text-align: center;
  padding: 0.5rem;
}

/* ============================================================
   WHATSAPP — Floating button
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: whatsappPulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
/* Tooltip */
.whatsapp-float::before {
  content: 'Escríbenos'; position: absolute; right: 72px; top: 50%;
  transform: translateY(-50%); background: var(--azul-profundo);
  color: #fff; padding: 0.4rem 0.9rem; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.whatsapp-float:hover::before { opacity: 1; }

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.08); }
}

/* WhatsApp inline CTA button (green) */
.btn-whatsapp {
  background: #25D366; color: #fff !important;
}
.btn-whatsapp:hover {
  background: #1fba59; transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp svg { width: 18px; height: 18px; fill: #fff; }

/* ============================================================
   PARALLAX TEXT MARQUEE
   ============================================================ */
.marquee-section {
  overflow: hidden; background: var(--azul-profundo);
  padding: var(--space-sm) 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 25s linear infinite;
}
.marquee-track span {
  font-family: var(--font-heading); font-weight: 200;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: rgba(255,255,255,.15);
  white-space: nowrap; padding: 0 2rem;
  text-transform: uppercase; letter-spacing: 0.2em;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   ANIMATED GRADIENT DIVIDER
   ============================================================ */
.gradient-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--azul-vida), var(--rojo-pulso), var(--azul-vida));
  background-size: 200% 100%;
  animation: gradientSlide 4s ease infinite;
}
@keyframes gradientSlide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================================
   TYPEWRITER EFFECT (JS-driven)
   ============================================================ */
.typewriter-cursor::after {
  content: '|'; color: var(--rojo-pulso);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================================
   CARD HOVER GLOW
   ============================================================ */
.card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; opacity: 0;
  background: linear-gradient(135deg, var(--azul-vida-10), transparent);
  transition: opacity 0.4s var(--ease);
  z-index: 0; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* ============================================================
   FLOATING PARTICLES (CSS-only decorative)
   ============================================================ */
.particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.particle {
  position: absolute; border-radius: 50%;
  background: rgba(61, 149, 183, 0.12);
  animation: floatParticle linear infinite;
}
.particle:nth-child(1) { width: 8px; height: 8px; left: 10%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { width: 12px; height: 12px; left: 30%; animation-duration: 22s; animation-delay: 3s; }
.particle:nth-child(3) { width: 6px; height: 6px; left: 55%; animation-duration: 16s; animation-delay: 1s; }
.particle:nth-child(4) { width: 10px; height: 10px; left: 75%; animation-duration: 20s; animation-delay: 5s; }
.particle:nth-child(5) { width: 7px; height: 7px; left: 90%; animation-duration: 24s; animation-delay: 2s; }
.particle:nth-child(6) { width: 5px; height: 5px; left: 45%; animation-duration: 19s; animation-delay: 7s; background: rgba(206, 20, 23, 0.08); }

@keyframes floatParticle {
  0% { transform: translateY(110vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}
