#hero{
    height: 100vh;
    background-image: url("./imagenes/img-hero.jpg");
    background-position: left;
    background-size: 100%;
    width: 100%;
}
.hero-content{
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.644);
    padding: 40px;
    border-radius: 10px;
    color: white;
}
h1{
    font-size: 112px;
    line-height: 112px;
}
#about{
    margin-top: 112px;
}
.article-content{
    flex: 1;
}

.article-img{
    flex: 1;
    max-width: 40%;
    height: 100%;
    object-fit: cover;
}
#video{
    background-color: rgb(31, 31, 31);
}
.video-container iframe{
    width: 80vw;
    height: 80vh;
    object-fit: cover;
    border-radius: 20px;
}

@media (max-width: 880px) {
    #hero{
        height: auto;
        min-height: 100vh;
        background-position: top;
        background-size: cover;
    }
    h1{
        font-size: 48px;
        line-height: 48px;
    }
    section#proyects{
        padding: 0 !important;
    }
    #proyects article{
        justify-content: center;
        align-items: center;

    }
    .article-content{
        padding-left: 0;
        text-align: center;
        align-items: center;
    }
    .article-img{
        max-width: 100%;
        height: 50vh;
        object-position: left;
    }
    #video{
        padding: 40px 20px;
    }
    .video-container{
        padding: 0;
    }
    .video-container iframe{
        width: 100%;
        height: auto;
    }
    
}

/* carrusel de imágenes */
.images-section{
    width: 100%;
    height: 140vh;
    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;
    }
}
/* noticias */
#news {
    width: 100%;
    padding: 112px 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-content {
    display: flex;
    gap: 80px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.news-list {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.new-card {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    max-width: 300px;
    border-radius: 30px;
    border: 1px solid rgb(164, 164, 164);
    padding: 40px 20px 40px 20px;
    gap: 20px;
}

.new-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.new-card-text {
    display: -webkit-box;
    /* comportamiento tipo caja flexible */
    -webkit-line-clamp: 3;
    /* 👈 cantidad de líneas visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* oculta el resto del texto */
}

@media (max-width: 779px) {
    #news {
        padding: 112px 20px;
    }

    .news-list {
        flex-wrap: nowrap;
        overflow: scroll;
        justify-content: start;
        align-items: start;
    }

    .new-card {
        min-width: 200px;
        max-width: none;
        width: 200px;
    }

    .new-card-img {
        height: 80px;
    }
}
/* contactar */


.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%;
}



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;
    }

}