body {
    background-color: #f2f2f2;
}

header {
    background-color: rgb(255, 255, 255);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 1px 3px 8px 0px rgba(53, 53, 53, 0.1);
    -webkit-box-shadow: 1px 3px 8px 0px rgba(53, 53, 53, 0.1);
    -moz-box-shadow: 1px 3px 8px 0px rgba(53, 53, 53, 0.1);
}

.logo {
    max-width: 300px;
}

#main-nav {
    gap: 20px;
}

.burger-menu {
    display: none;
}


@media (max-width:880px) {
    .logo-burgericon-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    header {
        flex-direction: column;
        padding: 10px;
        justify-content: center;
        align-items: center;
    }

    .logo {
        max-width: none;
        width: 180px;
    }

    #main-nav {
        display: none;
        width: 100%;
        height: 100vh;
    }

    .burger-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        background: none;
        border: none;
        border-radius: 6px;
        padding: 4px;
        transition: transform 2s ease;
        background-color: #fff;


    }

    /* cuando se despliega el menu */
    header:has(.active) {
        align-items: start;
    }

    #main-nav.active {
        display: flex;
        flex-direction: column;
    }

    header:has(.active) .burger-menu {
        background-color: #fff;
    }


}
/* hero */
.hero-img {
    max-width: 690px;
    border-radius: 10px;
}

.hero-content {
    gap: 40px;
}

.hero-text {
    gap: 10px;
}
@media (max-width:880px) {
    .hero-img{
        max-width: 100%;
    }
}

/* about */
.banner {
    background-color: #AA2F26;
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    color: #fff;
    gap: 20px;
}

.about-content {
    gap: 80px;
    padding: 112px 20px;
}

#about .content h2 {
    color: #AA2F26;
}
@media (max-width:880px) {
    .about-content {
        padding:  0px;
        gap: 40px;
    }
}
/* galeria de imagenes */
#gallery {
    width: 100%;
    /* ancho de la sección visible */
    overflow: hidden;
    /* oculta lo que se sale */
    position: relative;
}

.img-container {
    display: inline-block;
    animation: scrollX 10s linear infinite alternate;
}

.img-container img {
    display: block;
    width: 3000px;
    /* ancho total de las imágenes */
}

/* Animación */
@keyframes scrollX {
    from {
        transform: translateX(-55%);
    }

    to {
        transform: translateX(5%);
    }
}
/* donations */
#donations {
    height: 800px;
}
@media (max-width:880px) {
    #donations {
        height: 80vh;
    }
}
.donations-content {
    position: relative;
    text-align: center;
    gap: 20px;
}

.donation-video-text {
    max-width: 600px;
}

/* videos */
@media (max-width: 880px) {
    .video-container iframe {
        width: 100%;
        height: auto;
    }
    .video-container, .video-fundacion{
    flex-wrap: wrap-reverse;
    max-width: 100%;
}
.video-fundacion{
        flex-wrap: wrap;
    max-width: 100%;
}
}
/* carrusel de imágenes */
.images-section{
    width: 100%;
    height: 100vh;
    padding: 0;
    overflow: hidden;
}
.carrusel{
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 20px;
    background-color: #212121;
    padding: 80px 0;

}
.gallery-container{
    height: 100%;
    display: flex;
    transition: transform 0.5s ease; 
}
.carrusel-img{
    min-width: 100vw;
    object-fit: contain;
}
.videos-content{
    padding: 112px 20px;
}
@media (max-width:880px) {
    .videos-content{
        padding: 0;
    }
    .video-gallery {
        flex-wrap: wrap;
        gap: 40px;
    }
}
/* contactar */
#contact {
    padding: 112px 120px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1280px;
    width: 100%;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1280px;
    width: 100%;
}

.contact-main {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    width: 100%;
}

.contact-info {
    display: flex;
    width: 314px;
    gap: 24px;
    flex-direction: column;

}

.info-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.contact-item {
    display: flex;
    align-items: center;
    gap: 17px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1
}

.form-row {
    width: 100%;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.form-field {
    flex: 1 0 0;
    min-width: 238px;
}

.field-label {
    width: 100%;
    color: #232323;
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.form-input {
    display: flex;
    height: 48px;
    padding: 8px 0px;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(12, 10, 10, 0.15);
    background-color: rgba(255, 255, 255, 0);
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    outline: none;
}

.form-input:focus {
    border-bottom-color: #4d372e;
}

.form-btn {
    width: min-content;

}

.message-field {
    width: 100%;
}

.message-input {
    flex: 1 0 0;
    color: rgba(12, 10, 10, 0.6);
    font-family: "Rubik", sans-serif;
    font-size: 16px;
    font-weight: 400;
    height: 180px;
    padding: 12px 12px 12px 0px;
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(12, 10, 10, 0.15);
    background-color: rgba(255, 255, 255, 0);
    resize: vertical;
    outline: none;
}

.message-input:focus {
    border-bottom-color: #4d372e;
}

.message-input::placeholder {
    color: rgba(12, 10, 10, 0.6);
}

.contact-info-section {
    display: flex;
    width: 503px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
}

.contact-info-container {
    display: flex;
    padding: 8px 0px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

@media (max-width: 779px) {
    #contact {
        padding: 112px 40px;
    }
}


footer {
    background-color: #fff;
    display: flex;
    padding: 20px !important;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-logo {
    color: #000;
}

.redes,
.links {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
}

.links p,
.links a {
    max-width: 100%;
    /* no se salga del contenedor padre */
    word-wrap: break-word;
    /* permite cortar palabras largas */
    overflow-wrap: break-word;
}

@media (max-width: 779px) {
    footer {
        padding: 40px 20px !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

}