/* === CONFIGURACIÓN GENERAL === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #222;
  background-color: #fff;
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 15px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo img {
  height: 70px;
  width: auto;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #8B0000;
}

.btn-donar {
  background: #8B0000;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-donar:hover {
  background: #a31212;
}

/* === HERO (FONDO CON TEXTO) === */
.hero {
  position: relative;
  height: 90vh;
  background: url("../img/Gemini_Generated_Image_9u5x0h9u5x0h9u5x_edited_edited_edited_edited.jpg") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
}

.hero-contenido h1 {
  font-size: 3.8em;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-contenido p {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.btn-rojo {
  background: #8B0000;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-rojo:hover {
  background: #a31212;
}

/* === ESTADÍSTICAS === */
.estadisticas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 70px 40px;
  background: #f8f8f8;
  text-align: center;
}

.stat h2 {
  color: #8B0000;
  font-size: 2.6em;
  margin-bottom: 10px;
}

.stat p {
  color: #444;
}

/* === SECCIONES DE INFORMACIÓN === */
.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 70px 40px;
  gap: 25px;
}

.bloque {
  border-radius: 15px;
  padding: 30px;
  color: white;
  text-align: center;
  font-weight: 500;
}

.bloque img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.amarillo {
  background: #E3A600;
}

.rojo {
  background: #8B0000;
}

/* === AYUDAR === */
.ayudar {
  text-align: center;
  padding: 80px 20px;
  background: #8B0000;
  color: white;
}

.cards-ayuda {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: white;
  color: #222;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card h3 {
  color: #8B0000;
  margin-top: 15px;
}

.card p {
  padding: 0 15px 20px;
}

/* === CONTACTO === */
.contacto {
  background: #f9f9f9;
  text-align: center;
  padding: 70px 20px;
}

.contacto h2 {
  color: #8B0000;
  margin-bottom: 15px;
}

/* === BOTÓN WHATSAPP === */
.btn-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s;
  z-index: 99;
}

.btn-whatsapp:hover {
  background-color: #1ebf5b;
}


/* === SECCIÓN: CÓMO AYUDAR === */
.ayudar {
  position: relative;
  background: linear-gradient(to bottom right, rgba(165, 0, 0, 0.9), rgba(230, 0, 0, 0.85)),
              url("img/fondo_ayuda.jpg") center/cover no-repeat;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
}

.ayudar .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.ayudar .contenedor-ayuda {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.ayudar h2 {
  font-size: 2.8em;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #FFD700; /* Amarillo institucional */
}

.ayudar .texto-intro {
  font-size: 1.25em;
  margin-bottom: 60px;
  color: #fff6cc;
  font-weight: 400;
}

.bloques-ayuda {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  align-items: stretch;
}

/* === BLOQUES GENERALES === */
.bloque {
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(5px);
}

.bloque:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.bloque h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bloque p {
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.7;
}

/* === BLOQUES AMARILLOS Y ROJOS === */
.bloque.amarillo {
  background-color: #FFD700;
  color: #5c0000; /* texto rojo oscuro */
}

.bloque.amarillo h3 {
  color: #8B0000;
}

.bloque.rojo {
  background-color: #8B0000;
  color: #fff;
}

.bloque.rojo h3 {
  color: #FFD700;
}

.imagen-ayuda {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.imagen-ayuda:hover {
  transform: scale(1.03);
}


/* === CONTACTO === */
.contacto {
  background-color: #ffffff;
  color: #333;
  padding: 60px 20px;
  text-align: center;
}

.contacto-container {
  max-width: 900px;
  margin: 0 auto;
}

.contacto h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #b30000;
  font-weight: bold;
}

.contacto .intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #444;
}

.contacto-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  margin-bottom: 30px;
}

.info-item {
  flex: 1 1 250px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.info-item:hover {
  transform: translateY(-5px);
}

.info-item h3 {
  color: #b30000;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-icons img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.btn-volver {
  display: inline-block;
  background-color: #b30000;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  transition: background-color 0.3s;
}

.btn-volver:hover {
  background-color: #ffb300;
  color: #333;
}


/* === PÁGINA: ¿QUÉ HACEMOS? === */

/* HERO específico */
.hero.que-hacemos {
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: white;
}

.hero.que-hacemos .overlay {
  background: linear-gradient(to bottom right, rgba(0,0,0,0.6), rgba(90,0,0,0.7));
}

.hero.que-hacemos h1 {
  font-size: 4em;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
  letter-spacing: 1.5px;
}

.hero.que-hacemos p {
  font-size: 1.3em;
  color: #fff6e6;
  margin-bottom: 25px;
}

/* === PROGRAMAS === */
.programas {
  padding: 100px 40px;
  background: #fafafa;
}

.titulo-seccion {
  text-align: center;
  margin-bottom: 60px;
}

.titulo-seccion h2 {
  font-size: 2.8em;
  color: #8B0000;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.titulo-seccion p {
  font-size: 1.15em;
  color: #444;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.6;
}

.grid-programas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
}

.card-programa {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-programa img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-programa .contenido-card {
  padding: 25px;
}

.card-programa h3 {
  font-size: 1.5em;
  margin-bottom: 12px;
}

.card-programa p {
  color: #333;
  line-height: 1.6;
}

.card-programa.rojo {
  background: #8B0000;
  color: white;
}

.card-programa.rojo h3 {
  color: #FFD700;
}

.card-programa.amarillo {
  background: #FFD700;
  color: #5c0000;
}

.card-programa.amarillo h3 {
  color: #8B0000;
}

.card-programa:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* === CITA FINAL === */
.mensaje-final {
  background: linear-gradient(to right, #8B0000, #b30000);
  color: white;
  text-align: center;
  padding: 100px 30px;
}

.mensaje-final blockquote {
  font-size: 1.8em;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.mensaje-final .btn-rojo {
  background: #FFD700;
  color: #8B0000;
  font-weight: bold;
  border-radius: 30px;
  padding: 14px 30px;
  transition: background 0.3s ease, color 0.3s ease;
}

.mensaje-final .btn-rojo:hover {
  background: #fff;
  color: #8B0000;
}

/* === HERO BLANCO === */
.hero-blanco {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  text-align: center;
  background-color: #fff;
}

.hero-blanco .overlay-blanco {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
}

.hero-contenido-blanco {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background: rgba(255,255,255,0.6);
  padding: 40px;
  border-radius: 15px;
  backdrop-filter: blur(6px);
}

.hero-contenido-blanco h1 {
  font-size: 3.5em;
  color: #8B0000;
  margin-bottom: 20px;
}

.hero-contenido-blanco p {
  font-size: 1.3em;
  color: #333;
  line-height: 1.6;
}

/* === PROGRAMAS EN BLANCO === */
.programas-blanco {
  padding: 100px 40px;
  background: #ffffff;
  color: #222;
}

.programas-blanco h2 {
  font-size: 2.8em;
  color: #8B0000;
  text-align: center;
  margin-bottom: 40px;
}

.programas-blanco .intro {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 25px;
  line-height: 1.6;
  color: #444;
}

.lista-programas {
  margin-top: 60px;
  display: grid;
  gap: 35px;
}

.lista-programas .item h3 {
  color: #8B0000;
  font-size: 1.6em;
  margin-bottom: 10px;
}

.lista-programas .item p {
  color: #333;
  line-height: 1.7;
}

/* === COLLAGE FINAL === */
.collage-final {
  position: relative;
  background: url("img/collage-familias.jpg") center/cover no-repeat;
  text-align: center;
  color: white;
  padding: 160px 20px;
}

.collage-final .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.collage-final h2 {
  position: relative;
  z-index: 2;
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
}

.collage-final p {
  position: relative;
  z-index: 2;
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === CONTACTO FINAL === */
.contacto-final {
  background: #f9f9f9;
  padding: 100px 20px;
  text-align: center;
}

.contacto-final h2 {
  color: #8B0000;
  font-size: 2.5em;
  margin-bottom: 25px;
}

.intro-contacto {
  max-width: 800px;
  margin: 0 auto 60px;
  color: #444;
  font-size: 1.1em;
  line-height: 1.6;
}

.grid-contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}

.grid-contacto .col {
  background: white;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  padding: 30px;
  max-width: 300px;
  flex: 1 1 280px;
}

.grid-contacto h3 {
  color: #8B0000;
  margin-bottom: 10px;
}

.grid-contacto p {
  color: #333;
  font-size: 1em;
  line-height: 1.6;
}

.icono-red {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}
/* === CONFIGURACIÓN GENERAL === */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #222;
  background-color: #fff;
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 15px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo img {
  height: 70px;
  width: auto;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #8B0000;
}

.btn-donar {
  background: #8B0000;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-donar:hover {
  background: #a31212;
}

/* === HERO (FONDO CON TEXTO) === */
.hero {
  position: relative;
  height: 90vh;
  background: url("../img/Gemini_Generated_Image_9u5x0h9u5x0h9u5x_edited_edited_edited_edited.jpg") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
}

.hero-contenido h1 {
  font-size: 3.8em;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-contenido p {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.btn-rojo {
  background: #8B0000;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-rojo:hover {
  background: #a31212;
}

/* === SECCIÓN PROGRAMAS Y PROYECTOS SIN FONDOS === */
.programas-proyectos {
  padding: 100px 40px;
  text-align: center;
  background: #ffffff;
  color: #222;
}

.programas-proyectos h2 {
  font-size: 2.8em;
  color: #8B0000;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.programas-proyectos .contenedor-textos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  justify-items: center;
}

.programas-proyectos .bloque-texto {
  max-width: 500px;
  text-align: center;
  line-height: 1.8;
}

.programas-proyectos .bloque-texto h3 {
  color: #8B0000;
  margin-bottom: 10px;
  font-size: 1.6em;
}

.programas-proyectos .bloque-texto p {
  color: #333;
  font-size: 1.1em;
}

/* === CITA FINAL === */
.mensaje-final {
  background: linear-gradient(to right, #8B0000, #b30000);
  color: white;
  text-align: center;
  padding: 100px 30px;
}

.mensaje-final blockquote {
  font-size: 1.8em;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.mensaje-final .btn-rojo {
  background: #FFD700;
  color: #8B0000;
  font-weight: bold;
  border-radius: 30px;
  padding: 14px 30px;
  transition: background 0.3s ease, color 0.3s ease;
}

.mensaje-final .btn-rojo:hover {
  background: #fff;
  color: #8B0000;
}

/* === PROGRAMAS Y PROYECTOS (centrado general) === */
#programas-proyectos {
  padding: 100px 40px;
  background: #fff;
  text-align: center;
}

#programas-proyectos h2 {
  font-size: 2.8em;
  color: #8B0000;
  margin-bottom: 25px;
}

#programas-proyectos p {
  max-width: 850px;
  margin: 0 auto 25px;
  font-size: 1.15em;
  color: #444;
  line-height: 1.8;
  text-align: center;
}

#programas-proyectos .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

#programas-proyectos .grid .p-6 {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 35px 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

#programas-proyectos .grid .p-6:hover {
  transform: translateY(-5px);
}

#programas-proyectos h3 {
  color: #8B0000;
  margin-bottom: 15px;
}

#programas-proyectos .text-gray-700 {
  color: #333;
  text-align: center;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 700px;
}

.collage {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: white;
  padding: 120px 20px;
  z-index: 1;
  font-family: 'Poppins', sans-serif;
}

.collage .overlay-collage {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* Oscurece el fondo */
  z-index: 0;
}

.collage h2, 
.collage p {
  position: relative;
  z-index: 1;
}

.collage h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.collage p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}


/* === SECCIONES INFO === */
.seccion-info {
  padding: 100px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contenedor-info {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
}

.contenedor-info.invertido {
  flex-direction: row-reverse;
}

.texto-izquierda h2 {
  font-size: 2.6em;
  font-weight: 800;
  color: #111;
  margin: 0;
}

.texto-derecha p {
  font-size: 1.15em;
  line-height: 1.7;
  color: #333;
}

.fondo-gris {
  background: #f9f9f9;
  border-top: 2px solid #eee;
  border-bottom: 2px solid #eee;
}

/* === GALERÍA HERO === */
.galeria-hero {
  width: 100%;
  overflow: hidden;
}

.galeria-imagenes {
  display: flex;
  width: 100%;
  animation: mover 30s linear infinite;
}

.galeria-imagenes img {
  width: 20%;
  height: 350px;
  object-fit: cover;
  filter: brightness(0.95);
}

@keyframes mover {
  0% { transform: translateX(0); }
  100% { transform: translateX(-20%); }
}

/* === ALIADOS === */
.aliados {
  background: #fff;
  text-align: center;
  padding: 100px 20px;
}

.aliados h2 {
  color: #8B0000;
  font-size: 2.8em;
  margin-bottom: 25px;
}

.aliados p {
  max-width: 900px;
  margin: 0 auto 50px;
  font-size: 1.1em;
  color: #444;
}

.logos-aliados {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.logos-aliados img {
  width: 200px;
  height: auto;
  object-fit: contain;
  filter: brightness(0.9);
  transition: transform 0.3s ease;
}

.logos-aliados img:hover {
  transform: scale(1.08);
}
