/*
 * ============================================================
 *  Fundación Aprender sin Temer — styles.css
 *  aprendersintemer.org
 *  Versión: 1.0.0
 *
 *  Tabla de contenidos
 *  ─────────────────────────────────────────────────────────
 *   1.  Variables & Reset
 *   2.  Tipografía base
 *   3.  Utilidades generales
 *   4.  Botones
 *   5.  Animaciones de entrada (reveal)
 *   6.  Navbar
 *   7.  Hero
 *   8.  Barra de estadísticas
 *   9.  Sección Nosotros
 *  10.  Sección Programas
 *  11.  Sección Impacto
 *  12.  Sección Proyectos
 *  13.  Sección Aliados
 *  14.  Sección Donar
 *  15.  Sección Voluntariado
 *  16.  Formularios
 *  17.  Sección Contacto
 *  18.  Footer
 *  19.  Toast (notificaciones)
 *  20.  Botón Scroll to Top
 *  21.  Responsive — Tablets (≤ 900px)
 *  22.  Responsive — Móviles (≤ 600px)
 * ============================================================
 */


/* ============================================================
   1. VARIABLES & RESET
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de colores — extraída del logo */
  --azul:         #29B8E0;
  --azul-oscuro:  #1B2E7A;
  --azul-claro:   #E8F7FD;
  --naranja:      #F7941D;
  --amarillo:     #F9E22B;
  --verde:        #8DC63F;
  --verde-oscuro: #3a7d1c;
  --rojo:         #E63329;
  --rosa:         #EE3C96;

  /* Neutros */
  --gris-suave:   #F7F9FC;
  --texto:        #1a1a2e;
  --texto-medio:  #444;
  --blanco:       #ffffff;
  --footer-bg:    #0d1a4a;

  /* Bordes & sombras */
  --radio-btn:    50px;
  --radio-card:   20px;
  --sombra:       0 4px 24px rgba(27, 46, 122, 0.10);
  --sombra-hover: 0 12px 40px rgba(27, 46, 122, 0.16);

  /* Tipografía */
  --font-display: 'Fredoka One', sans-serif;
  --font-body:    'Nunito', sans-serif;

  /* Espaciado de secciones */
  --section-padding: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--blanco);
  color: var(--texto);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}


/* ============================================================
   2. TIPOGRAFÍA BASE
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--azul-oscuro);
}

p {
  font-family: var(--font-body);
}


/* ============================================================
   3. UTILIDADES GENERALES
   ============================================================ */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Secciones */
.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--gris-suave);
}

/* Etiqueta de categoría superior */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--azul);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Título de sección */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  color: var(--azul-oscuro);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Descripción de sección */
.section-desc {
  font-size: 16px;
  color: var(--texto-medio);
  line-height: 1.8;
  max-width: 580px;
}


/* ============================================================
   4. BOTONES
   ============================================================ */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radio-btn);
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition:
    transform   0.18s ease,
    box-shadow  0.18s ease,
    opacity     0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

/* Variantes */
.btn-primary {
  background: var(--azul-oscuro);
  color: var(--blanco);
}

.btn-secondary {
  background: transparent;
  color: var(--azul-oscuro);
  border: 2px solid var(--azul-oscuro);
}

.btn-naranja {
  background: var(--naranja);
  color: var(--blanco);
}

.btn-outline-blanco {
  background: transparent;
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, 0.55);
}


/* ============================================================
   5. ANIMACIONES DE ENTRADA (REVEAL)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.65s ease,
    transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Retrasos escalonados */
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }


/* ============================================================
   6. NAVBAR
   ============================================================ */

#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--azul);
  box-shadow: 0 2px 16px rgba(41, 184, 224, 0.12);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--blanco);
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--azul-oscuro);
  line-height: 1.15;
}

.nav-logo-sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--azul);
  text-transform: uppercase;
}

/* Links de navegación */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--azul-oscuro);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  border-color: var(--azul);
  color: var(--azul);
}

/* Botón donar en nav */
.nav-donar {
  background: var(--naranja) !important;
  color: var(--blanco) !important;
  padding: 9px 22px !important;
  border-radius: var(--radio-btn) !important;
  border-bottom: none !important;
  font-weight: 800 !important;
  transition: opacity 0.2s ease !important;
}

.nav-donar:hover {
  opacity: 0.88;
  border-color: transparent !important;
}

/* Menú hamburguesa (móvil) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
  z-index: 1001;
  position: relative;
  touch-action: manipulation; /* Evita el delay de 300ms en móviles */
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--azul-oscuro);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

/* Animación hamburguesa → X */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú desplegable móvil */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--blanco);
  border-top: 1px solid rgba(41, 184, 224, 0.2);
  padding: 20px 24px;
  gap: 16px;
  position: relative;
  z-index: 999;
}

.nav-mobile.open {
  display: flex;
  animation: menuSlideDown 0.22s ease forwards;
}

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-mobile a {
  font-size: 15px;
  font-weight: 700;
  color: var(--azul-oscuro);
}


/* ============================================================
   7. HERO
   ============================================================ */

#hero {
  background: var(--azul-claro);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

/* Círculos decorativos de fondo */
#hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(41, 184, 224, 0.12);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(249, 226, 43, 0.18);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--azul);
  color: var(--blanco);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radio-btn);
  margin-bottom: 20px;
}

/* Título héroe con letras de colores */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  color: var(--azul-oscuro);
  margin-bottom: 20px;
}

.hero-title .c-a   { color: var(--naranja);     }
.hero-title .c-p   { color: #d4b800;            }
.hero-title .c-r   { color: var(--verde-oscuro);}
.hero-title .c-e1  { color: var(--rojo);        }
.hero-title .c-n   { color: var(--rosa);        }
.hero-title .c-d   { color: var(--azul);        }
.hero-title .c-e2  { color: var(--verde);       }
.hero-title .c-r2  { color: var(--naranja);     }
.hero-title .c-sin   { font-size: 0.55em; color: var(--azul-oscuro); }
.hero-title .c-temer { color: var(--azul); }

.hero-desc {
  font-size: 17px;
  color: #3a3a5c;
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Elemento visual del hero */
.hero-visual {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Blob animado */
.blob {
  width: 240px;
  height: 240px;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  background: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: morph 7s ease-in-out infinite;
  box-shadow: 0 8px 40px rgba(41, 184, 224, 0.35);
}

.blob-inner {
  font-size: 80px;
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
  33%       { border-radius: 40% 60% 45% 55% / 55% 45% 50% 50%; }
  66%       { border-radius: 50% 50% 60% 40% / 45% 60% 40% 55%; }
}

/* Chips informativos bajo el blob */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  background: var(--blanco);
  border: 1.5px solid var(--azul);
  color: var(--azul-oscuro);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radio-btn);
}


/* ============================================================
   8. BARRA DE ESTADÍSTICAS
   ============================================================ */

#stats {
  background: var(--azul-oscuro);
  padding: 28px 24px;
}

.stats-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--amarillo);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}


/* ============================================================
   9. SECCIÓN NOSOTROS
   ============================================================ */

.nosotros-inner {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.nosotros-text {
  flex: 1;
  min-width: 280px;
}

/* Misión / Visión */
.mision-vision {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.mv-card {
  flex: 1;
  padding: 20px;
  border-radius: var(--radio-card);
  border-left: 4px solid;
}

.mv-card.mision {
  background: #FFF5E8;
  border-color: var(--naranja);
}

.mv-card.vision {
  background: var(--azul-claro);
  border-color: var(--azul);
}

.mv-card h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--azul-oscuro);
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.mv-card p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* Grid de valores */
.valores-grid {
  flex: 1;
  min-width: 280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.valor-card {
  border-radius: var(--radio-card);
  padding: 22px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.valor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra);
}

.valor-card.v1 { background: #FFF5E8; }
.valor-card.v2 { background: var(--azul-claro); }
.valor-card.v3 { background: #F0F9E0; }
.valor-card.v4 { background: #FEF0F0; }

.valor-icon  { font-size: 32px; margin-bottom: 10px; }
.valor-title { font-size: 14px; font-weight: 800; color: var(--azul-oscuro); margin-bottom: 4px; }
.valor-text  { font-size: 12px; color: #666; line-height: 1.55; }


/* ============================================================
   10. SECCIÓN PROGRAMAS
   ============================================================ */

.programas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.prog-card {
  border-radius: var(--radio-card);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-hover);
}

.prog-card.steam { border-color: var(--azul); }
.prog-card.agro  { border-color: var(--verde); }

/* Cabecera de tarjeta */
.prog-header {
  padding: 32px 28px;
}

.prog-header.steam {
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, #1e4a9a 100%);
}

.prog-header.agro {
  background: linear-gradient(135deg, #2f6a15 0%, #5aad2a 100%);
}

.prog-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.prog-icon {
  font-size: 44px;
}

.prog-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radio-btn);
  background: rgba(255, 255, 255, 0.2);
  color: var(--blanco);
  text-transform: uppercase;
}

.prog-name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--blanco);
  margin: 12px 0 6px;
}

.prog-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

/* Cuerpo de tarjeta */
.prog-body {
  background: var(--blanco);
  padding: 24px 28px;
}

.prog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prog-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #444;
}

.prog-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.steam .prog-dot { background: var(--azul); }
.agro  .prog-dot { background: var(--verde); }

/* Botón de programa */
.prog-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  border-radius: var(--radio-btn);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid;
  transition: background 0.2s ease, color 0.2s ease;
}

.steam .prog-btn {
  border-color: var(--azul);
  color: var(--azul);
}

.steam .prog-btn:hover {
  background: var(--azul);
  color: var(--blanco);
}

.agro .prog-btn {
  border-color: var(--verde-oscuro);
  color: var(--verde-oscuro);
}

.agro .prog-btn:hover {
  background: var(--verde-oscuro);
  color: var(--blanco);
}


/* ============================================================
   11. SECCIÓN IMPACTO
   ============================================================ */

.impacto-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.impacto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.imp-card {
  border-radius: var(--radio-card);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.imp-card:hover {
  transform: translateY(-4px);
}

.imp-card.i1 { background: var(--azul-claro); }
.imp-card.i2 { background: #FFF5E8; }
.imp-card.i3 { background: #F0F9E0; }
.imp-card.i4 { background: #FEF0F0; }

.imp-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.imp-num {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}

.i1 .imp-num { color: var(--azul); }
.i2 .imp-num { color: var(--naranja); }
.i3 .imp-num { color: var(--verde-oscuro); }
.i4 .imp-num { color: var(--rojo); }

.imp-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--azul-oscuro);
  line-height: 1.4;
}


/* ============================================================
   12. SECCIÓN PROYECTOS
   ============================================================ */

.proyectos-header {
  text-align: center;
  margin-bottom: 48px;
}

.proyectos-header .section-desc {
  margin: 0 auto;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.proy-card {
  border-radius: var(--radio-card);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.proy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}

/* Imagen/ícono del proyecto */
.proy-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.proy-img.p1 { background: linear-gradient(135deg, var(--azul-claro), #b5e6f7); }
.proy-img.p2 { background: linear-gradient(135deg, #F0F9E0, #c7e895); }
.proy-img.p3 { background: linear-gradient(135deg, #FFF5E8, #fdd49a); }
.proy-img.p4 { background: linear-gradient(135deg, #FEF0F0, #f9b9b9); }
.proy-img.p5 { background: linear-gradient(135deg, #F3EFFE, #cbbef7); }
.proy-img.p6 { background: linear-gradient(135deg, var(--azul-claro), #8de0f5); }

/* Cuerpo de tarjeta proyecto */
.proy-body {
  background: var(--blanco);
  padding: 18px 20px;
}

.proy-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.proy-cat.c-steam { color: var(--azul); }
.proy-cat.c-agro  { color: var(--verde-oscuro); }

.proy-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--azul-oscuro);
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.proy-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

/* Barra de filtros (generada por JS) */
#filtros-proyectos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

#filtros-proyectos button {
  padding: 8px 22px;
  border-radius: var(--radio-btn);
  border: 2px solid var(--azul);
  background: transparent;
  color: var(--azul-oscuro);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#filtros-proyectos button.activo,
#filtros-proyectos button:hover {
  background: var(--azul);
  color: var(--blanco);
}


/* ============================================================
   13. SECCIÓN ALIADOS
   ============================================================ */

.aliados-section {
  text-align: center;
}

.aliados-section .section-desc {
  margin: 0 auto 40px;
}

.aliados-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.aliado-card {
  border: 1.5px solid rgba(41, 184, 224, 0.25);
  border-radius: 14px;
  padding: 18px 28px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--azul-oscuro);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aliado-card:hover {
  border-color: var(--azul);
  box-shadow: 0 4px 16px rgba(41, 184, 224, 0.18);
}

.aliado-icon {
  font-size: 20px;
}


/* ============================================================
   14. SECCIÓN DONAR
   ============================================================ */

#donar {
  background: var(--azul-oscuro);
  padding: var(--section-padding) 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#donar::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

#donar .section-title {
  color: var(--blanco);
  position: relative;
}

#donar .section-desc {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto 36px;
  position: relative;
}

/* Opciones de monto */
.opciones-monto {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
}

.monto-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radio-btn);
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.monto-btn:hover,
.monto-btn.activo {
  background: var(--naranja);
  border-color: var(--naranja);
}

/* Input monto personalizado */
#monto-personalizado {
  display: block;
  margin: 16px auto 0;
  padding: 10px 20px;
  border-radius: var(--radio-btn);
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: var(--blanco);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  text-align: center;
  outline: none;
  width: 220px;
}

.donar-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}


/* ============================================================
   15. SECCIÓN VOLUNTARIADO
   ============================================================ */

#voluntariado {
  background: var(--gris-suave);
}

.vol-inner {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.vol-text {
  flex: 1;
  min-width: 280px;
}

.vol-text .section-desc {
  margin-bottom: 28px;
}

.vol-form {
  flex: 1;
  min-width: 280px;
}

/* Items de voluntariado */
.vol-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.vol-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.vol-item-icon.ico-azul   { background: var(--azul-claro); }
.vol-item-icon.ico-verde  { background: #F0F9E0; }
.vol-item-icon.ico-orange { background: #FFF5E8; }

.vol-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--azul-oscuro);
}

.vol-item-desc {
  font-size: 12px;
  color: #666;
}


/* ============================================================
   16. FORMULARIOS
   ============================================================ */

.form-card {
  background: var(--blanco);
  border-radius: var(--radio-card);
  padding: 32px;
  box-shadow: var(--sombra);
}

.form-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--azul-oscuro);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--azul-oscuro);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid rgba(41, 184, 224, 0.3);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--blanco);
  transition: border-color 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--azul);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--rojo);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-submit {
  width: 100%;
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 13px;
  border: none;
  border-radius: var(--radio-btn);
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s ease;
}

.form-submit:hover {
  opacity: 0.88;
}


/* ============================================================
   17. SECCIÓN CONTACTO
   ============================================================ */

#contacto {
  background: var(--blanco);
}

.contacto-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contacto-info {
  flex: 1;
  min-width: 240px;
}

.contacto-info .section-desc {
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.ci-azul   { background: var(--azul-claro); }
.ci-orange { background: #FFF5E8; }
.ci-verde  { background: #F0F9E0; }

.contact-label {
  font-size: 11px;
  font-weight: 800;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--azul-oscuro);
}

.contact-val a {
  color: var(--azul);
}

.contacto-form {
  flex: 1;
  min-width: 280px;
}


/* ============================================================
   18. FOOTER
   ============================================================ */

footer {
  background: var(--footer-bg);
  padding: 60px 24px 24px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

/* Logo del footer */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--blanco);
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--blanco);
  line-height: 1.2;
}

.footer-logo-sub {
  font-size: 10px;
  color: var(--azul);
  font-weight: 700;
  letter-spacing: 1.5px;
}

.footer-about {
  font-size: 13px;
  line-height: 1.75;
  max-width: 260px;
}

/* Columnas del footer */
.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--blanco);
}

/* Línea inferior del footer */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
}

.footer-domain {
  color: var(--azul);
  font-weight: 700;
}

/* Redes sociales */
.social-links {
  display: flex;
  gap: 10px;
}

.soc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.soc:hover {
  background: var(--azul);
  color: var(--blanco);
  border-color: var(--azul);
}


/* ============================================================
   19. TOAST (NOTIFICACIONES)
   ============================================================ */

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}


/* ============================================================
   20. BOTÓN SCROLL TO TOP
   ============================================================ */

#scrollTop {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--blanco);
  font-size: 20px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(41, 184, 224, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 999;
}

#scrollTop.visible {
  opacity: 1;
  pointer-events: all;
}

#scrollTop:hover {
  transform: scale(1.1);
}


/* ============================================================
   21. RESPONSIVE — TABLETS (≤ 900px)
   ============================================================ */

@media (max-width: 900px) {

  :root {
    --section-padding: 60px;
  }

  /* Navbar — mostrar hamburguesa desde tablets */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-visual {
    flex: none;
  }

  /* Programas */
  .programas-grid {
    grid-template-columns: 1fr;
  }

  /* Impacto */
  .impacto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Proyectos */
  .proyectos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Nosotros */
  .nosotros-inner {
    flex-direction: column;
  }

  .mision-vision {
    flex-direction: column;
  }

  /* Voluntariado */
  .vol-inner {
    flex-direction: column;
  }

  /* Contacto */
  .contacto-inner {
    flex-direction: column;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}


/* ============================================================
   22. RESPONSIVE — MÓVILES (≤ 600px)
   ============================================================ */

@media (max-width: 600px) {

  :root {
    --section-padding: 48px;
  }

  /* Navbar */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Stats */
  .stats-inner {
    gap: 28px;
  }

  /* Impacto */
  .impacto-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Proyectos */
  .proyectos-grid {
    grid-template-columns: 1fr;
  }

  /* Nosotros — valores */
  .valores-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
  }

  /* Formularios */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Toast */
  .toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  /* Scroll Top */
  #scrollTop {
    bottom: 70px;
  }
}


/* ============================================================
   23. BANNER DE CONSENTIMIENTO DE COOKIES
   ============================================================ */

/* Overlay / fondo oscuro */
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 18, 50, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 32px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.cookie-overlay.cookie-hide {
  opacity: 0;
  pointer-events: none;
}

/* Tarjeta del banner */
.cookie-banner {
  background: var(--blanco);
  border-radius: 24px 24px 24px 24px;
  padding: 32px 36px;
  max-width: 680px;
  width: calc(100% - 32px);
  box-shadow: 0 -4px 60px rgba(27, 46, 122, 0.22), 0 20px 60px rgba(0,0,0,0.25);
  animation: cookieSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cookieSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Cabecera */
.cookie-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.cookie-icon {
  font-size: 40px;
  flex-shrink: 0;
  line-height: 1;
}

.cookie-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--azul-oscuro);
  margin: 0 0 2px;
}

.cookie-subtitle {
  font-size: 12px;
  color: #999;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Descripción general */
.cookie-desc {
  font-size: 14px;
  color: var(--texto-medio);
  line-height: 1.75;
  margin-bottom: 22px;
}

/* Lista de tipos de cookies */
.cookie-tipos {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid rgba(41, 184, 224, 0.2);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}

.cookie-tipo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(41, 184, 224, 0.12);
  transition: background 0.2s;
}

.cookie-tipo:last-child {
  border-bottom: none;
}

.cookie-tipo:hover {
  background: rgba(41, 184, 224, 0.04);
}

.cookie-tipo-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.cookie-tipo-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-tipo-nombre {
  font-size: 13px;
  font-weight: 800;
  color: var(--azul-oscuro);
  margin-bottom: 2px;
}

.cookie-tipo-desc {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 50px;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: background 0.25s ease;
  padding: 0;
  flex-shrink: 0;
}

.cookie-toggle--on {
  background: var(--azul);
}

.cookie-toggle--disabled {
  background: var(--verde) !important;
  cursor: not-allowed;
  opacity: 0.8;
}

.cookie-toggle-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blanco);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.25s ease;
}

.cookie-toggle--on .cookie-toggle-dot {
  transform: translateX(20px);
}

.cookie-toggle-label {
  font-size: 10px;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Texto legal */
.cookie-legal {
  font-size: 12px;
  color: #aaa;
  line-height: 1.65;
  margin-bottom: 22px;
}

.cookie-link {
  color: var(--azul);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-link:hover {
  color: var(--azul-oscuro);
}

/* Botones de acción */
.cookie-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 10px 22px;
  border-radius: var(--radio-btn);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn--outline {
  background: transparent;
  border-color: #ddd;
  color: #888;
}

.cookie-btn--outline:hover {
  border-color: var(--rojo);
  color: var(--rojo);
}

.cookie-btn--secondary {
  background: transparent;
  border-color: var(--azul);
  color: var(--azul);
}

.cookie-btn--secondary:hover {
  background: var(--azul-claro);
}

.cookie-btn--primary {
  background: var(--azul-oscuro);
  color: var(--blanco);
}

.cookie-btn--primary:hover {
  background: var(--azul);
}

/* Botón flotante para reabrir */
.cookie-reabrir {
  position: fixed;
  bottom: 28px;
  left: 80px; /* junto al scrollTop */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blanco);
  border: 2px solid rgba(41, 184, 224, 0.3);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(27,46,122,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 997;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-reabrir.visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-reabrir:hover {
  transform: scale(1.1);
  border-color: var(--azul);
}

/* Responsivo */
@media (max-width: 600px) {
  .cookie-banner {
    padding: 24px 20px;
    border-radius: 20px 20px 0 0;
  }

  .cookie-overlay {
    align-items: flex-end;
    padding-bottom: 0;
  }

  .cookie-btns {
    flex-direction: column-reverse;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .cookie-header {
    gap: 12px;
  }

  .cookie-icon {
    font-size: 32px;
  }

  .cookie-title {
    font-size: 18px;
  }

  .cookie-reabrir {
    left: 80px;
    bottom: 16px;
  }
}


/* ============================================================
   24. SECCIÓN DONAR — INTERACTIVA (index.html)
   ============================================================ */

/* Botones de monto mejorados */
.opciones-monto {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative;
}

.monto-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.10);
  color: var(--blanco);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  min-width: 90px;
  transition: background 0.22s ease, border-color 0.22s ease,
              transform 0.18s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

/* Ripple de selección */
.monto-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.monto-btn:hover {
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.monto-btn.activo {
  background: var(--naranja);
  border-color: var(--naranja);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 28px rgba(247, 148, 29, 0.50);
}

.monto-btn.activo::after { opacity: 1; }

.mb-valor {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

.mb-desc {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.75;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.monto-btn--otro .mb-valor { font-size: 16px; }

/* Input monto personalizado */
.monto-custom-wrap {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 20px;
  animation: fadeInDown 0.25s ease;
}

.monto-custom-wrap.visible { display: flex; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.monto-custom-signo {
  font-family: var(--font-display);
  font-size: 26px;
  color: rgba(255,255,255,0.85);
}

.monto-custom-wrap input {
  width: 150px;
  padding: 11px 16px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.40);
  background: rgba(255, 255, 255, 0.12);
  color: var(--blanco);
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-body);
  text-align: center;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.monto-custom-wrap input:focus {
  border-color: var(--naranja);
  background: rgba(255, 255, 255, 0.18);
}

.monto-custom-wrap input::placeholder {
  color: rgba(255,255,255,0.40);
}

/* Preview de impacto dinámico */
.donar-impacto-preview {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.20);
  border-radius: 50px;
  padding: 10px 22px;
  margin: 0 auto 28px;
  max-width: 520px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dip-ico {
  font-size: 22px;
  flex-shrink: 0;
}

.dip-texto {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  text-align: left;
  font-family: var(--font-body);
}

.dip-texto strong {
  color: var(--amarillo);
}

/* Botones de métodos de pago rápido */
.donar-metodos-rapido {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dmr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  border: none;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
  white-space: nowrap;
}

.dmr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.dmr-btn:active { transform: scale(0.97); }

.dmr-btn--naranja { background: var(--naranja);  color: #fff; }
.dmr-btn--banco   { background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.35); }
.dmr-btn--paypal  { background: #003087; color: #fff; }
.dmr-btn--wp      { background: #25D366; color: #fff; }

.dmr-ico   { font-size: 16px; }
.dmr-label { font-size: 13px; }

/* Responsive */
@media (max-width: 600px) {
  .donar-metodos-rapido {
    gap: 8px;
  }
  .dmr-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  .donar-impacto-preview {
    flex-direction: column;
    text-align: center;
    border-radius: 16px;
    padding: 14px 20px;
  }
}
/* =========================================
   SELECTOR DE IDIOMAS
   ========================================= */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    margin: 0 15px;
}

.lang-active {
    color: var(--azul); /* Color principal para el idioma actual */
    pointer-events: none;
}

.lang-sep {
    color: #ccc;
}

.lang-link {
    color: var(--azul-oscuro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-link:hover {
    color: var(--celeste);
}

/* Ajuste para el menú móvil */
#nav-mobile .lang-switch {
    margin: 20px 0;
    justify-content: center;
    font-size: 18px;
}
