* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --azul: #1a5c96;
  --azul-oscuro: #0d3a63;
  --verde: #2e7d32;
  --verde-oscuro: #1b5e20;
  --blanco: #ffffff;
  --gris-claro: #f8f9fa;
  --gris-texto: #666666;
  --texto: #1a1a1a;

  /* Escala áurea: 16 × 1.618 */
  --s1: 16px;
  --s2: 26px;
  --s3: 42px;
  --s4: 68px;
  --s5: 110px;
  --s6: 178px;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--texto);
  line-height: 1.618;
  font-size: var(--s1);
}
/* ===== SCROLL OFFSET PARA NAVBAR ===== */
section, footer {
  scroll-margin-top: 80px;
}

/* ===== NAVBAR ===== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blanco);
  border-bottom: 1px solid #e0e0e0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--s3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-nombre {
  font-size: 19px;
  font-weight: 600;
  color: var(--azul);
  line-height: 1.3;
}

.nav-logo-slogan {
  font-size: 15px;
  color: var(--gris-texto);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  font-size: 19px;
  color: var(--texto);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--azul);
}

.nav-btn {
  background: var(--verde);
  color: var(--blanco);
  padding: 20px var(--s3);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--verde-oscuro);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-hamburger span {
  width: var(--s2);
  height: 2px;
  background: var(--texto);
  border-radius: 2px;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 618px;
  background-image: url('../img/chicoral.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 58, 99, 0.65);
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--blanco);
  padding: 0 var(--s3);
  max-width: 860px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--blanco);
  font-size: 13px;
  padding: 8px var(--s2);
  border-radius: 20px;
  margin-bottom: var(--s2);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: var(--s4);
  font-weight: 700;
  margin-bottom: var(--s2);
  line-height: 1.2;
}

.hero-content p {
  font-size: var(--s2);
  opacity: 0.88;
  margin-bottom: var(--s3);
  line-height: 1.618;
}

.hero-btns {
  display: flex;
  gap: var(--s1);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--blanco);
  color: var(--azul);
  padding: 16px var(--s4);
  border-radius: 8px;
  font-size: var(--s1);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  background: var(--verde);
  color: var(--blanco);
  padding: 16px var(--s4);
  border-radius: 8px;
  font-size: var(--s1);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-secondary:hover { background: var(--verde-oscuro); }

/* ===== STATS ===== */
#stats {
  background: var(--azul);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  text-align: center;
  padding: var(--s3) var(--s2);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-size: var(--s4);
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: var(--s1);
  color: rgba(255, 255, 255, 0.75);
}

/* ===== SECTION HEADER — compartido ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--s4);
}

.section-tag {
  display: inline-block;
  background: #eaf3de;
  color: #1b5e20;
  font-size: 13px;
  font-weight: 700;
  padding: 8px var(--s2);
  border-radius: 20px;
  margin-bottom: var(--s1);
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1.5px solid #c5e1a5;
}

.section-header h2 {
  font-size: var(--s3);
  font-weight: 700;
  color: var(--texto);
  margin-bottom: var(--s1);
}

.section-header p {
  font-size: var(--s2);
  color: var(--gris-texto);
  max-width: 618px;
  margin: 0 auto;
  line-height: 1.618;
}

/* ===== HISTORIA ===== */
#historia {
  background: var(--blanco);
  padding: var(--s4) var(--s3);
}

.historia-container {
  max-width: 1200px;
  margin: 0 auto;
}

.historia-timeline {
  position: relative;
  margin: var(--s3) 0;
  padding-left: var(--s3);
  border-left: 3px solid var(--azul);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--s3);
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--s3) - 8px);
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--azul);
  border-radius: 50%;
  border: 3px solid var(--blanco);
  box-shadow: 0 0 0 3px var(--azul);
}

.timeline-fecha {
  font-size: var(--s1);
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.timeline-content h3 {
  font-size: var(--s2);
  font-weight: 700;
  color: var(--texto);
  margin-bottom: var(--s1);
}

.timeline-content p {
  font-size: var(--s1);
  color: var(--gris-texto);
  line-height: 1.618;
  margin-bottom: 12px;
}

.timeline-fotos {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: var(--s1);
  margin-top: var(--s2);
}

.timeline-fotos img {
  width: 100%;
  height: 300px;
  border-radius: 10px;
}

.timeline-fotos img:first-child {
  object-fit: contain;
  background: #000;
}

.timeline-fotos img:last-child {
  object-fit: cover;
  object-position: center;
}

.timeline-fotos img:hover {
  transform: scale(1.02);
}

.tres-fotos {
  grid-template-columns: 1fr 1fr 1fr !important;
}

.tres-fotos img {
  height: 220px !important;
  object-fit: cover !important;
  background: var(--gris-claro) !important;
}

.tres-fotos img:nth-child(2) {
  object-fit: contain !important;
  background: #fff !important;
}

.tres-fotos img:nth-child(3) {
  object-fit: cover;
  object-position: center 60%;
}

.btn-rues {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--azul);
  color: var(--blanco);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: var(--s1);
  font-weight: 600;
  text-decoration: none;
  margin: var(--s1) 0 var(--s2);
  transition: background 0.2s;
}

.btn-rues:hover { background: var(--azul-oscuro); }

.historia-mision {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin-top: var(--s3);
}

.mision-card {
  background: var(--gris-claro);
  border-radius: 12px;
  padding: var(--s3) var(--s2);
  border-top: 4px solid var(--azul);
}

.mision-card:nth-child(2) { border-top-color: var(--verde); }
.mision-card:nth-child(3) { border-top-color: var(--azul-oscuro); }

.mision-card h3 {
  font-size: var(--s2);
  font-weight: 700;
  color: var(--azul);
  margin-bottom: var(--s1);
  border-bottom: 2px solid var(--azul);
  padding-bottom: 8px;
}

.mision-card:nth-child(2) h3 {
  color: var(--verde);
  border-bottom-color: var(--verde);
}

.mision-card:nth-child(3) h3 {
  color: var(--azul-oscuro);
  border-bottom-color: var(--azul-oscuro);
}

.mision-card p {
  font-size: var(--s1);
  color: var(--gris-texto);
  line-height: 1.618;
}

/* ===== PILARES ===== */
#pilares {
  background: var(--azul-oscuro);
  padding: var(--s4) var(--s3);
}

#pilares .section-header h2 {
  color: var(--blanco);
}

#pilares .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

#pilares .section-tag {
  background: rgba(255,255,255,0.12);
  color: #a5d6a7;
  border-color: rgba(255,255,255,0.2);
}

.pilares-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s2);
}

.pilar {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 4px solid var(--azul);
  border-radius: 12px;
  padding: var(--s3) var(--s2);
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}

.pilar:nth-child(even) { border-top-color: #66bb6a; }

.pilar:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.1);
}

.pilar-icon {
  font-size: var(--s3);
  margin-bottom: var(--s1);
}

.pilar h3 {
  font-size: var(--s2);
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 10px;
}

.pilar p {
  font-size: var(--s1);
  color: rgba(255,255,255,0.65);
  line-height: 1.618;
}

/* ===== IMPACTO ===== */
#impacto {
  background: var(--gris-claro);
  padding: var(--s4) var(--s3);
}

.impacto-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 61.8% 38.2%;
  gap: var(--s4);
  align-items: center;
}

.impacto-text h2 {
  font-size: var(--s3);
  font-weight: 700;
  color: var(--texto);
  margin: var(--s1) 0 var(--s2);
  line-height: 1.2;
}

.impacto-text p {
  font-size: var(--s1);
  color: var(--gris-texto);
  line-height: 1.618;
  margin-bottom: var(--s2);
}

.impacto-galeria { width: 100%; }

.galeria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.galeria-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}

.galeria-grid img:hover { transform: scale(1.04); }

/* ===== DONACIONES ===== */
#donaciones {
  background: var(--blanco);
  padding: var(--s4) var(--s3);
}

.donaciones-container {
  max-width: 1200px;
  margin: 0 auto;
}

.donaciones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin-top: var(--s3);
}

.donacion-card {
  background: var(--gris-claro);
  border-radius: 16px;
  padding: var(--s3) var(--s2);
  text-align: center;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.donacion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.donacion-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s1);
  font-size: 28px;
  font-weight: 800;
  color: var(--blanco);
}

.nequi-color { background: #7c3aed; }
.daviplata-color { background: #dc2626; }
.wapp-color { background: #25D366; }

.donacion-card h3 {
  font-size: var(--s2);
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 8px;
}

.donacion-numero {
  font-size: var(--s2);
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 6px;
}

.donacion-nombre {
  font-size: 13px;
  color: var(--gris-texto);
}

/* ===== VOLUNTARIADO ===== */
#voluntariado {
  background: var(--gris-claro);
  padding: var(--s4) var(--s3);
}

.voluntariado-container {
  max-width: 1200px;
  margin: 0 auto;
}

.voluntariado-grid {
  display: grid;
  grid-template-columns: 38.2% 61.8%;
  gap: var(--s4);
  align-items: start;
  margin-top: var(--s3);
}

.voluntariado-info h3 {
  font-size: var(--s2);
  font-weight: 700;
  color: var(--texto);
  margin-bottom: var(--s2);
}

.voluntariado-lista {
  list-style: none;
  margin-bottom: var(--s3);
}

.voluntariado-lista li {
  font-size: var(--s1);
  color: var(--gris-texto);
  line-height: 1.618;
  margin-bottom: var(--s1);
  padding-left: var(--s2);
  position: relative;
}

.voluntariado-lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--verde);
  border-radius: 50%;
}

.voluntariado-form {
  background: var(--blanco);
  border-radius: 16px;
  padding: var(--s3);
  border: 1px solid #e0e0e0;
}

.form-group {
  margin-bottom: var(--s2);
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px var(--s1);
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: var(--s1);
  color: var(--texto);
  font-family: 'Segoe UI', Arial, sans-serif;
  transition: border-color 0.2s;
  background: var(--blanco);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--azul);
}

.btn-form {
  width: 100%;
  background: var(--verde);
  color: var(--blanco);
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: var(--s1);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.btn-form:hover { background: var(--verde-oscuro); }

/* ===== CTA ===== */
#cta {
  background: var(--verde-oscuro);
  padding: var(--s4) var(--s3);
  text-align: center;
}

.cta-container {
  max-width: 760px;
  margin: 0 auto;
}

#cta h2 {
  font-size: var(--s3);
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--s2);
  line-height: 1.2;
}

#cta p {
  font-size: var(--s2);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.618;
  margin-bottom: var(--s3);
}

.cta-btns {
  display: flex;
  gap: var(--s2);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btns a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--s2) var(--s4);
  border-radius: 8px;
  font-size: var(--s2);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cta-btns a:hover { opacity: 0.88; }

.btn-wapp {
  background: var(--blanco);
  color: var(--verde-oscuro);
}

/* ===== FOOTER ===== */
#footer {
  background: var(--azul-oscuro);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--s4) var(--s3) 0;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s3);
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s1);
}

.footer-brand img {
  width: var(--s5);
  height: var(--s5);
  object-fit: contain;
}

.footer-nombre {
  font-size: 20px;
  font-weight: 600;
  color: var(--blanco);
  line-height: 1.3;
}

.footer-slogan {
  font-size: var(--s1);
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

.footer-redes {
  display: flex;
  gap: var(--s1);
  margin-top: var(--s1);
}

.footer-redes a {
  width: var(--s3);
  height: var(--s3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.footer-redes a svg {
  width: var(--s2);
  height: var(--s2);
}

.footer-redes a:hover { opacity: 0.85; }
.red-instagram { background: #E1306C; }
.red-facebook { background: #1877F2; }
.red-wapp { background: #25D366; }

.footer-col { display: flex; flex-direction: column; }

.footer-title {
  font-size: var(--s1);
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--blanco); }

.footer-bottom {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--s2) 0;
  font-size: var(--s1);
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== RESPONSIVE ===== */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .pilares-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .impacto-container {
    grid-template-columns: 1fr;
  }

  .historia-mision {
    grid-template-columns: 1fr 1fr;
  }

  .donaciones-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .voluntariado-grid {
    grid-template-columns: 1fr;
  }
}

/* Móvil — 768px */
@media (max-width: 768px) {

  /* Navbar */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco);
    border-bottom: 1px solid #e0e0e0;
    padding: var(--s1) var(--s2);
    gap: 4px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-btn {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-logo-nombre {
    font-size: 14px;
  }

  .nav-logo-slogan {
    display: none;
  }

  .nav-logo img {
    width: 40px;
    height: 40px;
  }

  /* Hero */
  #hero {
    height: auto;
    min-height: 420px;
    padding: var(--s3) var(--s2);
  }

  .hero-tag {
    font-size: 11px;
    padding: 6px 14px;
    letter-spacing: 1px;
  }

  .hero-content h1 {
    font-size: var(--s3);
  }

  .hero-content p {
    font-size: var(--s1);
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px var(--s2);
    font-size: 15px;
  }

  /* Stats */
  #stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .stat-num {
    font-size: var(--s3);
  }

  /* Historia */
  #historia {
    padding: var(--s3) var(--s2);
  }

  .historia-timeline {
    padding-left: var(--s2);
  }

  .timeline-fotos {
    grid-template-columns: 1fr;
  }

  .timeline-fotos img {
    height: 200px;
  }

  .tres-fotos {
    grid-template-columns: 1fr !important;
  }

  .tres-fotos img {
    height: 180px !important;
  }

  .historia-mision {
    grid-template-columns: 1fr;
  }

  /* Pilares */
  #pilares {
    padding: var(--s3) var(--s2);
  }

  .pilares-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s1);
  }

  /* Impacto */
  #impacto {
    padding: var(--s3) var(--s2);
  }

  .impacto-container {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  .galeria-grid img {
    height: 150px;
  }

  /* Donaciones */
  #donaciones {
    padding: var(--s3) var(--s2);
  }

  .donaciones-grid {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  /* Voluntariado */
  #voluntariado {
    padding: var(--s3) var(--s2);
  }

  .voluntariado-grid {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  /* CTA */
  #cta {
    padding: var(--s3) var(--s2);
  }

  #cta h2 {
    font-size: var(--s2);
  }

  #cta p {
    font-size: var(--s1);
  }

  .cta-btns a {
    padding: var(--s1) var(--s2);
    font-size: var(--s1);
  }

  /* Footer */
  #footer {
    padding: var(--s3) var(--s2) 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  .section-header h2 {
    font-size: var(--s2);
  }

  .section-header p {
    font-size: var(--s1);
  }
}

/* Móvil pequeño — 480px */
@media (max-width: 480px) {
  .pilares-grid {
    grid-template-columns: 1fr;
  }

  .stat-num {
    font-size: var(--s2);
  }

  .hero-content h1 {
    font-size: var(--s2);
  }

  .timeline-content h3 {
    font-size: var(--s1);
  }
}
/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.btn-flotante-wapp {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-flotante-wapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ===== ANIMACIONES SCROLL ===== */
#historia,
#pilares,
#impacto,
#donaciones,
#voluntariado,
#cta {
  opacity: 1;
  transform: none;
}

.pilar,
.mision-card,
.donacion-card,
.timeline-item,
.galeria-grid img {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pilar:nth-child(1) { transition-delay: 0.1s; }
.pilar:nth-child(2) { transition-delay: 0.2s; }
.pilar:nth-child(3) { transition-delay: 0.3s; }
.pilar:nth-child(4) { transition-delay: 0.4s; }
.pilar:nth-child(5) { transition-delay: 0.5s; }

.mision-card:nth-child(1) { transition-delay: 0.1s; }
.mision-card:nth-child(2) { transition-delay: 0.2s; }
.mision-card:nth-child(3) { transition-delay: 0.3s; }

.donacion-card:nth-child(1) { transition-delay: 0.1s; }
.donacion-card:nth-child(2) { transition-delay: 0.2s; }
.donacion-card:nth-child(3) { transition-delay: 0.3s; }

.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== EQUIPO ===== */
#equipo {
  background: var(--blanco);
  padding: var(--s4) var(--s3);
}

.equipo-container {
  max-width: 1200px;
  margin: 0 auto;
}

.equipo-bloque {
  margin-bottom: var(--s4);
}

.equipo-titulo {
  font-size: var(--s2);
  font-weight: 700;
  color: var(--azul);
  margin-bottom: var(--s2);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--azul);
  display: inline-block;
}

.equipo-grid {
  display: grid;
  gap: var(--s2);
}

.junta-grid {
  grid-template-columns: repeat(3, 1fr);
}

.miembros-grid {
  grid-template-columns: repeat(4, 1fr);
}

.miembro-card {
  background: var(--gris-claro);
  border-radius: 12px;
  padding: var(--s2);
  text-align: center;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.miembro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.miembro-card.junta {
  background: var(--blanco);
  border: 2px solid var(--azul);
}

.miembro-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s1);
}

.miembro-card.junta .miembro-avatar {
  width: 80px;
  height: 80px;
  font-size: 22px;
  background: var(--azul-oscuro);
}

.miembro-nombre {
  font-size: var(--s1);
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 4px;
  line-height: 1.4;
}

.miembro-cargo {
  font-size: 13px;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 4px;
}

.miembro-profesion {
  font-size: 13px;
  color: var(--gris-texto);
}

@media (max-width: 1024px) {
  .miembros-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .junta-grid {
    grid-template-columns: 1fr;
  }
  .miembros-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .miembros-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  height: 300px;
  background-image: url('../img/chicoral.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 58, 99, 0.72);
}

.page-hero-content {
  position: relative;
  text-align: center;
  color: var(--blanco);
  padding: 0 var(--s3);
}

.page-hero-content h1 {
  font-size: var(--s3);
  font-weight: 700;
  margin: var(--s1) 0;
  line-height: 1.2;
  color: var(--blanco);
}

.page-hero-content p {
  font-size: var(--s2);
  opacity: 0.85;
  color: var(--blanco);
}

.nav-links a.active {
  color: var(--azul);
  font-weight: 600;
}
#historia {
  padding-top: var(--s3);
}

/* ===== FOTOS EQUIPO ===== */
.miembro-foto-container {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--s1);
  position: relative;
}

.miembro-foto {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--azul);
}

.miembro-card.junta .miembro-foto {
  width: 96px;
  height: 96px;
  border-width: 3px;
}

.miembro-card.junta .miembro-foto-container {
  width: 96px;
  height: 96px;
}

.miembro-frase {
  font-size: 13px;
  color: var(--gris-texto);
  font-style: italic;
  margin-top: var(--s1);
  line-height: 1.5;
  border-top: 1px solid #e0e0e0;
  padding-top: var(--s1);
}

/* ===== MAPA FOOTER ===== */
.footer-mapa {
  margin-top: 0;
  border-radius: 8px;
  overflow: hidden;
}

.footer-mapa iframe {
  opacity: 0.9;
  transition: opacity 0.2s;
  border-radius: 12px;
}

.footer-mapa iframe:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-mapa iframe {
    height: 150px;
  }
}

/* ===== PROYECTOS ===== */
#proyectos {
  background: var(--gris-claro);
  padding: var(--s4) var(--s3);
}

.proyectos-container {
  max-width: 1200px;
  margin: 0 auto;
}

.proyectos-filtros {
  display: flex;
  gap: var(--s1);
  flex-wrap: wrap;
  margin-bottom: var(--s3);
  justify-content: center;
}

.filtro {
  background: var(--blanco);
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px var(--s2);
  font-size: var(--s1);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--texto);
}

.filtro:hover {
  border-color: var(--azul);
  color: var(--azul);
}

.filtro.active {
  background: var(--azul);
  border-color: var(--azul);
  color: var(--blanco);
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
}

.proyecto-card {
  background: var(--blanco);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.proyecto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.proyecto-card.oculto {
  display: none;
}

.proyecto-foto {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.proyecto-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.proyecto-card:hover .proyecto-foto img {
  transform: scale(1.05);
}

.proyecto-pilar {
  position: absolute;
  top: var(--s1);
  left: var(--s1);
  background: rgba(0,0,0,0.6);
  color: var(--blanco);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.proyecto-pilar.ciencia { background: rgba(26,92,150,0.85); }
.proyecto-pilar.arte { background: rgba(46,125,50,0.85); }
.proyecto-pilar.deporte { background: rgba(211,84,0,0.85); }
.proyecto-pilar.social { background: rgba(142,68,173,0.85); }
.proyecto-pilar.comunidad { background: rgba(23,92,63,0.85); }

.proyecto-info {
  padding: var(--s2);
}

.proyecto-fecha {
  font-size: 13px;
  color: var(--azul);
  font-weight: 600;
  margin-bottom: 6px;
}

.proyecto-info h3 {
  font-size: var(--s2);
  font-weight: 700;
  color: var(--texto);
  margin-bottom: var(--s1);
  line-height: 1.3;
}

.proyecto-info p {
  font-size: var(--s1);
  color: var(--gris-texto);
  line-height: 1.618;
  margin-bottom: var(--s1);
}

.btn-proyecto {
  background: var(--azul);
  color: var(--blanco);
  border: none;
  padding: 10px var(--s2);
  border-radius: 8px;
  font-size: var(--s1);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Segoe UI', Arial, sans-serif;
  width: 100%;
}

.btn-proyecto:hover { background: var(--azul-oscuro); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: var(--s2);
}

.modal-overlay.activo {
  display: flex;
}

.modal-content {
  background: var(--blanco);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: var(--s3);
}

.modal-cerrar {
  position: absolute;
  top: var(--s1);
  right: var(--s1);
  background: var(--gris-claro);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: var(--s2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-cerrar:hover { background: #e0e0e0; }

.modal-galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s1);
  margin: var(--s2) 0;
}

.modal-galeria img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-titulo {
  font-size: var(--s3);
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 8px;
}

.modal-fecha {
  font-size: var(--s1);
  color: var(--azul);
  font-weight: 600;
  margin-bottom: var(--s2);
}

.modal-descripcion p {
  font-size: var(--s1);
  color: var(--gris-texto);
  line-height: 1.618;
  margin-bottom: var(--s1);
}

.modal-aliados {
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid #e0e0e0;
}

.modal-aliados h4 {
  font-size: var(--s1);
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 8px;
}

.modal-aliados p {
  font-size: var(--s1);
  color: var(--gris-texto);
}

/* Responsive proyectos */
@media (max-width: 1024px) {
  .proyectos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .proyectos-grid {
    grid-template-columns: 1fr;
  }
  .modal-galeria {
    grid-template-columns: 1fr;
  }
}

.impacto-btns {
  display: flex;
  gap: var(--s1);
  flex-wrap: wrap;
  margin-top: var(--s2);
}

.modal-galeria.galeria-grande {
  grid-template-columns: repeat(4, 1fr);
}

.modal-galeria.galeria-grande img {
  height: 150px;
}

/* ===== IMPACTO LOGROS ===== */
.impacto-logros {
  display: flex;
  gap: var(--s2);
  margin: var(--s2) 0;
  flex-wrap: wrap;
}

.logro {
  display: flex;
  flex-direction: column;
  background: var(--blanco);
  border-left: 4px solid var(--azul);
  padding: var(--s1) var(--s2);
  border-radius: 0 8px 8px 0;
  min-width: 140px;
}

.logro-num {
  font-size: var(--s3);
  font-weight: 700;
  color: var(--azul);
  line-height: 1;
}

.logro-label {
  font-size: 13px;
  color: var(--gris-texto);
  margin-top: 4px;
}

.impacto-cta-texto {
  font-size: var(--s1);
  color: var(--gris-texto);
  line-height: 1.618;
  margin-bottom: var(--s1);
}

@media (max-width: 768px) {
  .impacto-logros {
    gap: var(--s1);
  }
  .logro {
    min-width: 120px;
  }
  .logro-num {
    font-size: var(--s2);
  }
}

.logro {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.logro.visible {
  opacity: 1;
  transform: translateX(0);
}

.logro:nth-child(1) { transition-delay: 0.1s; }
.logro:nth-child(2) { transition-delay: 0.2s; }
.logro:nth-child(3) { transition-delay: 0.3s; }

/* ===== DONACIONES LAYOUT ===== */
.donaciones-layout {
  display: grid;
  grid-template-columns: 61.8% 38.2%;
  gap: var(--s4);
  align-items: start;
  margin-top: var(--s3);
}

.donaciones-sueno {
  background: linear-gradient(135deg, #e8f4fd, #eaf3de);
  border-radius: 12px;
  padding: var(--s2);
  border-left: 4px solid var(--azul);
  margin-bottom: var(--s3);
}

.donaciones-sueno h3 {
  font-size: var(--s2);
  font-weight: 700;
  color: var(--azul);
  margin-bottom: var(--s1);
}

.donaciones-sueno p {
  font-size: var(--s1);
  color: var(--gris-texto);
  line-height: 1.618;
}

.donaciones-proyectos {
  margin-bottom: var(--s3);
}

.donaciones-proyectos h3 {
  font-size: var(--s2);
  font-weight: 700;
  color: var(--texto);
  margin-bottom: var(--s1);
}

.donaciones-proyectos p {
  font-size: var(--s1);
  color: var(--gris-texto);
  line-height: 1.618;
}

.donaciones-card-container {
  position: sticky;
  top: 100px;
}

.donacion-gracias {
  text-align: center;
  font-size: 14px;
  color: var(--gris-texto);
  margin-top: var(--s1);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .donaciones-layout {
    grid-template-columns: 1fr;
  }
  .donaciones-card-container {
    position: static;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ===== DONACIONES HEADER ===== */
.donaciones-header {
  background: var(--azul-oscuro);
  text-align: center;
  padding: var(--s4) var(--s3);
}

.donaciones-header h2 {
  font-size: var(--s3);
  font-weight: 700;
  color: var(--blanco);
  margin: var(--s1) 0;
}

.donaciones-header p {
  font-size: var(--s2);
  color: rgba(255,255,255,0.75);
  max-width: 618px;
  margin: 0 auto;
  line-height: 1.618;
}

/* ===== PASTILLAS PROYECTOS ===== */
.proyectos-pastillas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s2);
}

.pastilla {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.pastilla.deporte {
  background: #e3f2fd;
  color: #1565c0;
}

.pastilla.comunidad {
  background: #e8f5e9;
  color: #2e7d32;
}

.pastilla.arte {
  background: #fce4ec;
  color: #c62828;
}

.pastilla.ciencia {
  background: #e8eaf6;
  color: #283593;
}

.pastilla.social {
  background: #fff3e0;
  color: #e65100;
}

.pastilla.navidad {
  background: #f3e5f5;
  color: #6a1b9a;
}

.pastilla.mas {
  background: var(--gris-claro);
  color: var(--gris-texto);
  font-style: italic;
}

.footer-col {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: var(--s3);
}