/* Estilos Generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/**/
header {
    background-color: #333;
    padding: 10px 0;
    width: 100%;
}

/* ====== Menú en computadoras ====== */
.desktop-nav {
    background-color: #333;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 180px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav-links a:hover {
    color: #9ccc65;
}

/* ====== Menú en móviles ====== */
.mobile-header {
    display: none; /* Se oculta en computadoras */
}

/* ====== Menú móvil con logo centrado ====== */
@media (max-width: 768px) {
    /* Oculta el menú de escritorio */
    .desktop-nav {
        display: none;
    }

    /* Contenedor del logo y menú en móviles */
    .mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #333;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    /* Estilos del logo */
    .mobile-header .logo img {
        height: 60px;
    }

    /* Menú móvil debajo del logo */
    .mobile-nav ul {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 10px 0;
    }

    .mobile-nav li {
        list-style: none;
        text-align: center;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: white;
        text-decoration: none;
        font-size: 0.9em;
    }

    .mobile-nav a:hover {
        color: #9ccc65;
    }

    /* Ajuste del espacio para que el contenido no quede tapado */
    body {
        padding-top: 100px;
    }
}

/*Sección Principal*/
.program {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f4f4f4;
}

.program h1 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.program p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/*------------Detalles del Programa------------*/
/* Contenedor principal */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px 0;
}

/* Estilos de las secciones enmarcadas */
.box {
    background: white;
    border: 5px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Diseño de cada sección */
.section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Alternar imagen y texto */
.image {
    flex: 1;
    text-align: center;
}

.image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    border: 3px solid #ddd;
}

.text {
    flex: 1;
    padding: 20px;
}

.text h2 {
    color: #333;
    font-size: 28px;
}

.text p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

/* Alternar diseño para secciones pares */
.reverse {
    flex-direction: row-reverse;
}

/* Adaptable a celulares */
@media (max-width: 768px) {
    .section {
        flex-direction: column;
        text-align: center;
    }

    .reverse {
        flex-direction: column;
    }

    .text {
        padding: 10px;
    }
}

/**/
.iniciativas {
  text-align: center;
  padding: 100px 20px 60px;
  background: white;
}

.iniciativas h1 {
  font-size: 50px;
  margin-bottom: 60px;
  color: #333;
}

.contenedor-columnas {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.columna {
  background: white;
  padding: 40px 30px;
  width: 320px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.columna:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.15);
}

.columna img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 10px;
}

.columna a {
  text-decoration: none;
  color: #2b2b2b;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.4;
  transition: color 0.3s ease;
  display: block;
}

.columna a:hover {
  color: #e94f37;
}

/* Estilo para los párrafos en columna y sección */
.columna p,
.section .text p {
  font-size: 0.95em;
  color: #444;
  line-height: 1.6;
  margin-top: 15px;
  max-height: 0;
  opacity: 0;
  transition: all 0.5s ease;
  overflow: hidden;
}

/* Mostrar párrafos al hacer hover */
.columna:hover p,
.section:hover .text p {
  max-height: 500px;
  opacity: 1;
}

/**/
.cifras {
    padding: 60px 20px;
    text-align: center;
}

.contenedor-texto h4 {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
    text-transform: uppercase;
}

.contenedor-texto h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.contenedor-texto p {
    font-size: 18px;
    line-height: 1.5;
}

.contenedor-datos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
    gap: 30px;
}

.dato {
    max-width: 250px;
}

.dato h2 {
    font-size: 50px;
    margin-bottom: 10px;
    font-weight: bold;
}

.dato p {
    font-size: 16px;
    line-height: 1.4;
}


/* Espacio entre la sección de información y los videos */
.info-section {
    margin-bottom: 30px; /* Agrega un pequeño espacio debajo de la sección */
}

/**/

.contenido {
  text-align: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  color: #006400;
  font-size: 2em;
  margin-bottom: 10px;
}

p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
}

.imagen {
  margin-top: 30px;
}

img {
  width: 100%;
  max-width: 900px;
  height: auto;
}

/**/

.contenido-2 { 
  text-align: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  color: #006400;
  font-size: 2em;
  margin-bottom: 10px;
}

p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
}

.imagenes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.imagenes img {
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Espacio entre la sección de información y los videos */
.info-section {
    margin-bottom: 110%; /* Agrega un pequeño espacio debajo de la sección */
}

/**/

.contenedor {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  font-family: Arial, sans-serif;
  padding: 20px;
  flex-wrap: wrap; /* importante para adaptación */
}

.imagen-circular {
  width: 600px;
  max-width: 300px;
  height: auto;
  border-radius: 80%;
  object-fit: cover;
  flex: 1 1 300px;
}

.texto {
  flex: 1 1 400px;
  font-size: 1.1em;
  line-height: 1.5;
  color: #333;
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 768px) {
  .contenedor {
    flex-direction: column;
    text-align: center;
  }

  .imagen-circular {
    border-radius: 50%;
    max-width: 80%;
  }

  .texto {
    padding-top: 15px;
    font-size: 1em;
  }
}

/**/

.contenedor-3 {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  font-family: Arial, sans-serif;
  padding: 20px;
  flex-wrap: wrap; /* importante para adaptación */
}

.imagen-circular-3 {
  width: 600px;
  max-width: 300px;
  height: auto;
  border-radius: 80%;
  object-fit: cover;
  flex: 1 1 300px;
  float: right; /* Mueve la imagen al lado derecho */
  margin-left: 20px; /* Espacio con el texto u otros elementos */
}

.texto-3 {
  flex: 1 1 400px;
  font-size: 1.1em;
  line-height: 1.5;
  color: #333;
}

/* Adaptabilidad para pantallas pequeñas */
@media (max-width: 768px) {
  .contenedor-3 {
    flex-direction: column;
    text-align: center;
  }

  .imagen-circular-3 {
    border-radius: 50%;
    max-width: 80%;
  }

  .texto-3 {
    padding-top: 15px;
    font-size: 1em;
  }
}

/**/
.section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
}

.conteiner {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.imag img {
  width: 300px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);

  /* --- Marco aplicado con máscara --- */
  -webkit-mask-image: url("marco.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;

  mask-image: url("marco.png");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
}

.text {
  flex: 1;
  color: #333;
}

.text h1 {
  font-size: 24px;
  color: #7cb342;
  margin-bottom: 15px;
}

.text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.boton-descarga {
  display: inline-block;
  background-color: #7cb342;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.boton-descarga:hover {
  background-color: #0079b0;
}


/* Espacio entre la sección de información y los videos */
.info-section {
    margin-bottom: 110%; /* Agrega un pequeño espacio debajo de la sección */
}

/**/

.contenido-aliados {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  gap: 20px;
}

.texto-aliados {
  flex: 1 1 45%;
  min-width: 300px;
}

.texto-aliados h1 {
  font-size: 1.8em;
  font-weight: 500; /* grosor intermedio */
  color: #2e7d32;
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  padding-left: 14px;
  line-height: 1.4;
  text-transform: none;
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 1s ease forwards;
}

/* Línea decorativa verde natural */
.texto-aliados h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 85%;
  background: linear-gradient(180deg, #81c784, #388e3c);
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(56, 142, 60, 0.3);
}

/* ✨ Animación de entrada suave */
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.texto-aliados h2 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333;
}

.lista-org {
  list-style-type: none;
  padding: 0;
}

.lista-org li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.lista-org img {
  width: 50px;
  height: auto;
  border: 1px solid #ccc;
  padding: 3px;
  background-color: #f9f9f9;
}

.mapa-container {
  flex: 1 1 50%;
  min-width: 300px;
  position: relative;
}

.mapa-img {
  width: 75%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Espacio entre la sección de información y los videos */
.info-section {
    margin-bottom: 30px; /* Agrega un pequeño espacio debajo de la sección */
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a472a, #2a6041);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
.footer-heading {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Raleway', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.social-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.social-link:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.social-link svg {
    width: 30px;
    height: 30px;
    fill: white;
    transition: transform 0.3s ease;
}
.footer-text {
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    opacity: 0.9;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }
    
    .footer-heading {
        font-size: 1.5rem;
    }
    
    .social-container {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .social-link svg {
        width: 25px;
        height: 25px;
    }
}