.itesa__main{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    container-type: inline-size;
    container-name: itesa__main;
}

.us__container{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1500px;
    background-color: #fff;
    margin-top: 60px;
    gap: 25px;
}

.us__title{
    font-size: 1.9rem;
    padding: 0 10px;
    letter-spacing: 1px;
    font-weight: bold;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 1.3s ease;
}

.us__title.visible{
    opacity: 1;
}

.us__info-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.us__subtitle{
    font-size: 1.5rem;
    text-align: center;
    text-wrap: balance;
    padding: 0 10px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 1.3s ease;
}

.us__subtitle.visible{
    opacity: 1;
}

.us__img-container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 500px;
    overflow: hidden;
}

.us__img-container img{
    width: 100%;
    padding: 0 10px;
    opacity: 0;
    transform: translateX(-15%);
    transition: transform 1.5s ease, opacity 1s ease;
    object-fit: cover;
    max-height: 325px;
    object-position: center
}

.us__img-container img.visible{
    opacity: 1;
    transform: translateX(0);
}

.us__info{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.us__text{
    padding: 0 10px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    font-weight: 400;
    font-size: 1rem;
    text-align: start;
    opacity: 0;
    transform: translateY(10%);
    transition: opacity .8s ease, transform 1s ease;
}

.us__text.visible{
    opacity: 1;
    transform: translateY(0);
}

/* ----------- queries us --------- */

@container itesa__main (min-width:800px){

    .us__container{
        padding: 0 10px;
        gap: 30px;
    }

    .us__title{
        width: 100%;
        max-width: none;
    }

    .us__subtitle{
        font-size: 1.7rem;
    }

    .us__info-container{
        flex-direction: row;
    }

    .us__img-container{
        max-width: none;
        flex: 3;
        padding: 0px;
        max-width: 500px;
    }

    .us__img-container img{
        max-height: 400px;
    }

    .us__info{
        flex: 4;
    }

    .us__text{
        font-size: 1.1rem;
        line-height: 1.5rem;
    }
}

/* ------------- fin us ---------------- */

/* ------------ inicio points ------------ */

.points__background{
    margin-top: 60px;
    background-color: #005b33;
    width: 100%;
    color: #fff;
    display: flex;
    justify-content: center;
}

.points__container{
    width: 100%;
    max-width: 1500px;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.points__title{
    font-size: 1.9rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.points__title.visible{
    opacity: 1;
}

.points__grid{
    display: grid;
    grid-template-columns: repeat(1, minmax(250px, 300px));
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.points__grid-item{
    display: flex;
    flex-direction: column;
    justify-content: last baseline;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20%);
    transition: transform 1s ease, opacity 1s ease;
}

.points__grid-item.visible{
    opacity: 1;
    transform: translateY(0%);
}

.points__grid-item:hover{
    transform: translateY(-5%);
}

.points__item-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    aspect-ratio: 1/1;
    border-radius: 100%;
    width: 100px;
}

.points__grid-item i{
    font-size: 3rem;
    border-radius: 100%;
    color: #005b33;
}

.grid__item-name{
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    text-wrap: balance;
}

/* ------------ points queries ----------- */

@container itesa__main (min-width:400px){
    .points__grid{
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 40px 20px;
        width: 100%;
        max-width: 600px;
    }
}

@container itesa__main (min-width:56.25rem){

    .points__container{
        gap: 60px;
        margin: 30px 0;
    }

    .points__grid{
        grid-template-columns: repeat(4, minmax(180px, 1fr));
        gap: 30px;
        width: 100%;
        max-width: 1300px;
        align-items: stretch;
    }
}

/* ------------ fin points --------------- */

/* ------------ inicio services ---------- */

.services__container{
    width: 100%;
    max-width: 1500px;
    padding: 0px 10px;
    display: flex;
    flex-direction: column;
    margin: 60px 0;
    align-items: center;
}

.services__title{
    font-size: 1.9rem;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.services__title.visible{
    opacity: 1;
}

.services__subtitle{
    font-size: 1rem;
    text-align: center;
    font-weight: 400;
    padding-top: 5px;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.services__subtitle.visible{
    opacity: 1;
}

.services__grid{
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(1, minmax(200px, 260px));
    align-items: center;
    justify-content: center;
    gap: 35px;
    width: 100%;
    max-width: 1300px;
}

.services__grid-item{
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    overflow: hidden;
    position: relative;
    color: #fff;
    min-height: 320px;
    border-radius: 16px;
    opacity: 0;
    transform: translateY(15%);
    transition: transform 1s ease, opacity 1.2s ease;
}

.services__grid-item.visible{
    transform: translateY(0);
    opacity: 1;
}

.services__grid-item:hover{
    transform: scale(1.009)
}

.services__grid-item a{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sbk1{
    background-image: url("imagenes/extincion.webp");
}

.sbk2{
    background-image: url("imagenes/domotica.webp");
}

.sbk3{
    background-image: url("imagenes/climatizacion.webp");
}

.sbk4{
    background-image: url("imagenes/generador.webp");
}

.services__grid-item::after{
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #0008;
    z-index: -2;
}

.services__grid-item a:hover{
    cursor: pointer;
}

.services__item-name{
    text-align: center;
    text-wrap: balance;
    font-size: 1.3rem;
    transition: color .6s ease, transform .3s ease;
    padding: 0 5px;
}

.services__item-name:hover{
    color: #03ca50;
    transform: translateY(-5%);
}

/* ------------ queries services ------------ */

@container itesa__main (min-width:400px){
    .services__grid{
        grid-template-columns: repeat(2, minmax(180px, 260px));
        gap: 20px 15px;
    }

    .services__grid-item{
        min-height: 370px;
    }
}

@container itesa__main (min-width:768px){
    .services__grid{
        grid-template-columns: repeat(4, minmax(180px, 260px));
        gap: 25px;
    }

    .services__grid-item{
        min-height: 400px;
    }
}

@container itesa__main (min-width:56.25rem){
    .services__title{
        font-size: 2.4rem;
    }

    .services__subtitle{
        font-size: 1.2rem;
    }
}

/* -------- services__contact-background --------- */

.services__contact-background{
    margin-top: 0;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url("imagenes/instalacion-electrica.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 40vh;
}

.services__contact-background::after{
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #005b33c9;
    z-index: -2;
}

.services__contact-title{
    color: #fff;
    font-size: 1.7rem;
    text-align: center;
    text-wrap: balance;
}

.services__btn{
    margin-top: 30px;
    font-size: 1.2rem;
    padding: 15px 10px;
    background-color: #fff;
    color: #005b33;
    font-weight: bold;
    border-radius: 24px;
    animation: services-btn 1s linear infinite alternate backwards;
}

@keyframes services-btn{
    from{
        transform: scale(1);
    }

    to{
        transform: scale(1.05);
    }
}

@container itesa__main (min-width:56.25rem){
    .services__contact-title{
        font-size: 1.9rem;
        max-width: 800px;
    }

    .services__btn{
        font-size: 1.4rem;
    }
}

/* ------------ fin services -------------- */

/* ------------ inicio portfolio ---------- */

.portfolio__container{
    width: 100%;
    margin: 0 auto;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.portfolio__title{
    font-size: 1.9rem;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.portfolio__title.visible{
    opacity: 1;
}

.portfolio__subtitle{
    font-size: 1rem;
    font-weight: 400;
    padding-top: 5px;
    text-align: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.portfolio__subtitle.visible{
    opacity: 1;
}

.portfolio__gallery{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    min-height: 50vh;
    padding: 10px;
    color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 60px;
}

.portfolio__gallery-item{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    transition: transform 1s ease;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.portfolio__gallery-item::after{
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #0006;
    z-index: -2;
}

.portfolio__gallery-item.currentP {
    transform: translateX(0%);
}

.portfolio__gallery-item.nextP {
    transform: translateX(100%);
}

.portfolio__gallery-text{
    text-align: center;
    padding: 0 5px;
    text-wrap: pretty;
    font-size: 1.3rem;
}

/* ------------ queries portfolio ----------- */

@container itesa__main (min-width:56.25rem){

    .portfolio__gallery{
        min-height: 65vh;
    }

    .portfolio__title{
        font-size: 2.4rem;
    }

    .portfolio__subtitle{
        font-size: 1.2rem;
    }

    .portfolio__gallery-text{
        font-size: 1.7rem;
    }
}

/* ------------ fin portfolio ------------ */

/* ----------- inicio contact --------------- */

.contact__container{
    display: flex;
    flex-direction: column;
    margin: 60px auto;
    width: 100%;
    max-width: 600px;
    gap: 40px;
    overflow: hidden;
    align-items: center;
}

.contact__title{
    font-size: 1.9rem;
    font-weight: bold;
    padding: 0 10px;
    position: relative;
    text-align: center;
    width: 140px;
    opacity: 0;
    transition: opacity 1s ease;
}

.contact__title.visible{
    opacity: 1;
}

.contact__title::before{
    content: '';
    bottom: -5px;
    position: absolute;
    width: 100%;
    border-bottom: 3px solid #000;
    border-radius: 24px;
}

.contact__flex{
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.contact__list{
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.contact__list-item{
    opacity: 0;
    transform: translateX(30%);
    transition: transform 1.2s ease, opacity 1.2s ease;
}

.contact__list-item.visible{
    opacity: 1;
    transform: translateX(0);
}

.contact__list-item a{
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 1.2rem;
    transition: color .3s ease;
}

.contact__list-item a:hover{
    color: #039a30;
}

.contact__list-item a i{
    font-size: 1.8rem;
}

.contact__list-item a i.w{
    font-size: 2.3rem;
}

/* ----------- contact queries ------------- */

@container itesa__main (min-width:56.25rem){
    .contact__title{
        font-size: 2.4rem;
        width: 175px;
    }

    .contact__list-item a{
        font-size: 1.5rem;
    }
}

/* ----------- fin contact ---------------- */