

/*Banner*/

.banner{
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background: url(../img/servicios.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 16rem 0 0rem 0;
    position: relative;
}

.banner::before{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner .cont{
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 2;
}

.banner .cont h2{
    color: var(--text-white);
}

@media screen and (max-width:1500px) {
    .banner{
        height: 450px;
    }
}

@media screen and (max-width:1350px) {
    .banner{
        height: 400px;
    }
}

@media screen and (max-width:1200px) {
    .banner{
        height: 350px;
    }
}

@media screen and (max-width:675px) {
    .banner{
        height: 300px;
    }
}

@media screen and (max-width:600px) {
    .banner{
        height: 250px;
    }
}

/*Servicios*/

.servicios{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
}


.servicios .cont{
    width: 90%;
    max-width: 1400px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.servicios .cont .text{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.servicios .cont .text h2{
    width: 50%;
}

.servicios .cont .text h4{
    width: 50%;
}

.servicios .cont .item-cont{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.servicios .cont .item-cont .item{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch; 
    gap: 2rem;
}

.servicios .cont .item-cont .item:nth-child(2){
    flex-direction: row-reverse;
}


.servicios .cont .item-cont .item .text{
    width: 50%;
    max-width: 650px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 2rem;
}

.servicios .cont .item-cont .item .text .tittle{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.servicios .cont .item-cont .item .text .tittle h2{
    width: fit-content;
    color: var(--text-yellow);
    font-weight: 900;
}

.servicios .cont .item-cont .item .text .tittle h3{
    width: fit-content;
}

.servicios .cont .item-cont .item .text .subitem{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.5rem;
}

.servicios .cont .item-cont .item .text .subitem h5{
    width: 100%;
}


.servicios .cont .item-cont .item .img{
    width: 50%;
    max-width: 650px;
    height: 100%;
}

.servicios .cont .item-cont .item .img img{
    width: 100%;
    height: 100%; /* Añadido */
    object-fit: cover; /* Añadido */
}


@media screen and (max-width:1030px) {

    .servicios .cont .text{
        display: none;
    }

    .servicios .cont .text h2{
        width: 100%;
    }

    .servicios .cont .text h2 br{
        display: none;
    }

    .servicios .cont .text h4{
        width: 100%;
    }
    
    .servicios .cont .item-cont .item{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }

    .servicios .cont .item-cont .item:nth-child(2){
        flex-direction: column;}

    .servicios .cont .item-cont .item .text{
        width: 100%;
        max-width: 950px;
        height: fit-content;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 2rem;
    }

    .servicios .cont .item-cont .item .img{
        width: 100%;
        height: auto;
    }

    .servicios .cont .item-cont .item .img img{
        width: 100%;
        height: auto;
    }

}

@media screen and (max-width:1030px) and (min-width:500px) {
    .servicios .cont .item-cont .item .img{
        display: none;
    }
}

@media screen and (max-width:500px) {
    .servicios .cont .item-cont .item .img{
        display: block;
    }
    
}


