
/* Nacemos con un propósito */
.intro-carousel-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
  }
  
  .intro-carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .intro-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* oscurece para que destaque el texto */
  }
  
  .intro-carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 800px;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
  }
  
  .intro-carousel-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
  }
  
  .intro-carousel-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #eee;
  }
  
  @media (max-width: 768px) {
    .intro-carousel-content h2 {
      font-size: 2rem;
    }
  
    .intro-carousel-content p {
      font-size: 1rem;
    }
  }












 
/* About Section */
.about-banner {    
    background-image: url('image/poblado-general-ong-ama.jpg');

    background-size: cover;
    background-position: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.about-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.about-banner h2 {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    font-weight: 700;
}

.about-content {
    display: flex;
    justify-content: space-between;
    padding: 4rem 0;
    gap: 3rem;
}

.about-image {
    flex: 0 0 45%;
    position: relative;
} 
  


















.section-problema {
    padding: 80px 0;
    background-color: #fdfdfd;
  }
  
  .problema-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
  }
  
  .problema-image {
    flex: 1;
    min-width: 300px;
  }
  
  .problema-image img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  .problema-texto {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    color: #444;
    text-align: left;
  }
  
  .problema-texto h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
  }
  
  .problema-texto h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #f5a623;
    bottom: -10px;
    left: 0;
    transform: translateX(0); /* No centrar: alinear a la izquierda */
  }
  
  .problema-texto p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin-bottom: 15px;
    line-height: 1.7;
  }















.proyectos-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    color: white;
    background-image: url('image/mapa-mundi-ong-ama.jpg');

    position: relative; 
}

.proyectos-section::before {
    content: ''; /* Obligatorio para que el pseudo-elemento aparezca */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.64); /* Color negro con 60% de opacidad - ajusta el 0.6 según necesites */
    z-index: 1; /* Asegura que esté por encima de la imagen pero por debajo del contenido */
}



.proyectos-header {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.proyectos-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.proyectos-header p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}






/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Reduced gap */
    padding: 15px; /* Reduced padding */
    max-width: 1200px; /* Reduced max-width */
    margin: 50px auto 0; /* Reduced negative margin */
    position: relative;
    z-index: 2;
  }
  
  .grid-item {
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
  
  /* Info Boxes */
  .info-box {
    padding: 25px 20px; /* Reduced padding */
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  #box-01, #box-02 {
    background-color: #f5a623;
  }
  
  #box-03 {
    background-color: #0092e8;
  }
  
  .box-number {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4.5rem; /* Reduced font size */
    font-weight: 900;
    opacity: 0.15;
    color: #000;
  }
  
  h2 {
    font-size: 1.5rem; /* Reduced font size */
    margin-bottom: 20px; /* Reduced margin */
    position: relative;
    z-index: 1;
  }
  
  .info-list {
    list-style: none;
    position: relative;
    z-index: 1;
  }
  
  .info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px; /* Reduced margin */
    font-size: 0.9rem; /* Reduced font size */
  }
  
  .icon {
    width: 20px; /* Reduced size */
    height: 20px; /* Reduced size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px; /* Reduced margin */
  }
  
  /* Image Boxes */
  .image-box,
  .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  
  
  /* Media Queries */
  @media (max-width: 992px) {
    .grid-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .grid-container {
      grid-template-columns: 1fr;
      margin-top: -30px; /* Reduced negative margin */
    }
    
    .main-title {
      font-size: 1.8rem;
    }
    
    .grid-item {
      min-height: 200px;
    }
  }




  .projects-final-banner {
    width: 100%;
    margin-top: 40px;
}

.projects-final-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}







.grid-highlight-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.grid-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background-image: url('image/como-ayudar-transforma-vida-ong-ama.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transition: transform 0.3s ease-out;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.grid-highlight-content {
    max-width: 700px;
    margin: 0 auto;
    z-index: 1;
}

.grid-highlight-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.grid-highlight-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}





.raices-title {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
    color: white;
    z-index: 1;
}

.raices-title h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.raices-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #f5a623;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.raices-title p {
    font-size: 1.1rem;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto;
}