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

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.subheading {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #333;
}

.green-bar {
    display: inline-block;
    width: 20px;
    height: 3px;
    background-color: #FFA500;
    margin-right: 10px;
}

.description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    padding: 3rem 0 1rem;
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.hero-text {
    flex: 0 0 60%;
}

.hero-number {
    flex: 0 0 35%;
    text-align: right;
}

.hero-number h1 {
    font-size: 7rem;
    font-weight: 900;
}


/* Elephant Section */
.elephant-section {
    padding: 3rem 0;
}

.elephant-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.elephant-image {
    flex: 0 0 55%;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.link-button {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #f5a623;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-button a {
    color: white;
}

.elephant-text {
    flex: 0 0 40%;
}

/* Donation Stats */
.donation-stats {
    margin-top: 2rem;
}

.stat-item {
    margin-bottom: 1rem;
}

.stat-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.progress-bar {
    background-color: #f0f0f0;
    border-radius: 5px;
    height: 12px;
    position: relative;
}

.progress {
    background-color: #f5a623;
    height: 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-out;
}

.percentage {
    position: absolute;
    right: 10px;
    top: -22px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* About Section */
.about-banner {
    
    background-image: url('image/poblado-general-ong-ama.jpg');
    background-color: rgba(0, 0, 0, 0.6);
    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.4);
}

.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;
}

.donation-counter {
    position: absolute;
    right: -30px;
    bottom: 100px;
    background-color: #f5a623;
    color: white;
    padding: 2rem;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.donation-counter .icon {
    margin-bottom: 1rem;
}

.donation-counter svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.counter h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.counter p {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.about-text {
    flex: 0 0 50%;
}

.text-columns {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.column {
    flex: 1;
}

.column p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #555;
}

/* Testimonial */
.testimonial {
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.testimonial-info {
    margin-right: auto;
}

.testimonial-info h4 {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: #666;
}

.testimonial-signature img {
    height: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-content, .elephant-content, .about-content {
        flex-direction: column;
    }

    .hero-number {
        margin-top: 2rem;
        text-align: left;
    }

    .elephant-text, .about-text {
        margin-top: 2rem;
    }

    .donation-counter {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -60px;
        margin-left: 20px;
        width: 150px;
        height: 150px;
    }

    .navigation ul {
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .navigation li {
        margin-right: 2rem;
        white-space: nowrap;
    }
}



@media (max-width: 768px) {
    .text-columns {
        flex-direction: column;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-number h1 {
        font-size: 4rem;
    }
}

/* 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.45); /* 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;
    }
  }




/*El desafío: pobreza que obliga a migrar*/

.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;
  }





  

  .fondo-gris {
    background-color: #f3f3f3;
    padding: 80px 0;
  }



/*solucion*/
.banner-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 580px;
    overflow: hidden;
  }
  
  .banner-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
  }
  
  .banner-slide.active {
    opacity: 1;
    visibility: visible;
  }
  
  .banner-image {
    flex: 2;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  
  .banner-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
  }
  
  .banner-content {
    position: absolute;
    bottom: 120px;
    left: 120px;
    color: white;
    padding: 20px 30px;
    max-width: 600px;
    z-index: 2;
  }
  
  .banner-title {
    font-size: 50px;
    line-height: 1.1;
    margin-bottom: 30px;
  }
  
  .banner-text {
    font-size: 20px;
    margin-bottom: 30px;
  }
  
  .banner-info {
    flex: 1;
    background-color: #f5a623;
    color: white;
    padding: 120px 60px;
    display: flex;
    flex-direction: column;
  }
  
  .banner-info-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
  }
  
  .banner-info-text {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
  }
  
  .progress-container {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 20px 0;
  }
  
  .progress-bar {
    height: 100%;
    background-color: white;
    border-radius: 5px;
  }
  
  .progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
  }
  
  .raised, .goal {
    font-size: 24px;
    font-weight: bold;
  }
  
  .percentage {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .view-more-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid white;
    border-radius: 50px;
    color: white;
    font-size: 18px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
  }
  
  .view-more-btn:hover {
    background-color: white;
    color: #f0b429;
  }
  
  .banner-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
  }
  
  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .dot.active {
    opacity: 1;
    background-color: #f0b429;
  }


@media (max-width: 768px) {
    .banner-container {
        position: relative;
        overflow: hidden;
        width: 100%;
        height: auto;
    }

    .banner-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: none; /* Ocultar por defecto */
        flex-direction: column;
        background-color: white;
    }

    .banner-slide.active {
        display: flex; /* Mostrar solo la activa */
        position: relative;
    }

    .banner-image {
        width: 100%;
        height: 220px;
        background-size: cover;
        background-position: center;
    }


    .banner-content {
        position: static;
        padding: 15px;
        text-align: center;
        color: white;
        text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }



    .banner-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .banner-text {
        font-size: 15px;
    }

    .banner-info {
        padding: 40px 20px;
        text-align: center;
        background-color: #f5a623;
        color: white;
    }

    .banner-info-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .banner-info-text {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .view-more-btn {
        font-size: 15px;
        padding: 10px 25px;
        border: 2px solid white;
        border-radius: 25px;
        background-color: transparent;
        color: white;
        text-decoration: none;
        display: inline-block;
        transition: background 0.3s ease;
    }

    .view-more-btn:hover {
        background-color: white;
        color: #f5a623;
    }

    .banner-dots {
        margin-top: 15px;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
        background-color: #ddd;
        border-radius: 50%;
        cursor: pointer;
    }

    .dot.active {
        background-color: #ffffff;
    }


    .view-more-btn {
        font-size: 16px;
        padding: 12px 30px;
        align-self: center;
    }

    .banner-dots {
        bottom: 15px;
        gap: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .section-title {
        padding: 0 20px; /* márgenes laterales para móvil */
        text-align: center;
    }

    .section-title p {
        font-size: 16px;
        line-height: 1.5;
    }
}








/*Nuestros valores fundacionales*/


.featured-section {
    text-align: center;
    background-color: #f9f9f9;
    padding: 20px 0 60px;
}

.featured-title {
    font-size: 42px;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
}

.featured-description {
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

.causes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; /* menos separación */
  }
  
.cause-item {
    width: 260px; /* tamaño exacto */
    margin: 0; /* elimina margen lateral automático */
    padding: 10px;
    text-align: center;
    }

.cause-icon {
    background-color: #f3f3f3;
    width: 100px;           /* MÁS GRANDE */
    height: 100px;          /* MÁS GRANDE */
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cause-icon svg {
    width: 60px;
    height: 60px;
    stroke: #f5a623;
    fill: none;
    stroke-width: 2px;
}

.cause-title {
    font-size: 22px;       /* Ligeramente más compacto */
    font-weight: bold;
    margin-bottom: 12px;
    color: #222;
}

.cause-description {
    color: #777;
    font-size: 15px;
    line-height: 1.5;
    max-width: 250px;
    margin: 0 auto;
}

.cause-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .causes-container {
        flex-direction: column;
        align-items: center;
    }

    .cause-item {
        margin-bottom: 40px;
    }
}


/*Futuros con raices*/

.raices-section {
    position: relative;
    height: 450px;
    overflow: hidden; /* por si tarda en cargar el fondo */
  }
  
  .raices-parallax-bg {
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 150%;
    width: 100%;
    z-index: -2;
    transform: translateY(0px);
    transition: transform 0.1s ease-out;
  }
  
  .raices-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* opcional, puedes quitarlo */
    z-index: -1;
  }




.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;
}