/* ------------ inicio hmservicios ----------------------- */

.hmservicios{
    display: flex;
    flex-direction: column;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    container-type: inline-size;
    container-name: hmservicios;
    overflow-x: hidden;
}

.hmservicios__services-title-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    background-image: url(imagenes/imagenmh3.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 40vh;
    position: relative;
    cursor: default;
}

.hmservicios__services-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00002f5a;
    z-index: 1;
}

.hmservicios__services-title-container > * {
    z-index: 2;
}

.hmservicios__services-title{
    font-size: 1.9rem;
    color: #fff;
}

@container hmservicios (min-width:56.25rem){
    .hmservicios__services-title-container{
        height: 50vh;
    }

    .hmservicios__services-title{
        font-size: 2.2rem;
        color: #fff;
    }
}

/* ---------------- hmservicios__services---------------- */

.hmservicios__services{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    overflow: hidden;
}

.hmservicios__services-subtitle{
    padding: 20px 10px;
    text-align: center;
    text-wrap: balance;
    color: #FFF;
    background-color: #224477;
    width: 100%;
    opacity: 0;
    font-size: 1.4rem;
    transform: translateY(-75%);
    transition: transform 1s ease, opacity .3s ease;
    cursor: default;
}

.hmservicios__services-subtitle.visible{
    transform: translateY(0);
    opacity: 1;
}

.hmservicios__services-list{
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    padding: 40px 10px;
    gap: 30px 15px;
}

.services__list-item{
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 250px;
    max-width: 330px;
    background-color: #224477;
    padding: 30px 20px;
    border-radius: 9px;
    opacity: 0;
    transition: opacity 1s ease, transform .6s ease;
}

.services__list-item.visible{
    opacity: 1;
}

.services__list-item:hover{
    transform: scale(1.02);
}

.services__list-item-title{
    font-size: 1.7rem;
    color: #FFF;
    text-align: center;
    text-wrap: pretty;
    text-decoration: underline;
}

.services__list-item-text-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services__list-item-text{
    font-size: 1rem;
    color: #FFF;
    text-align: left;
    text-wrap: pretty;
    word-break:keep-all;
}

.services__list-item-text i{
    width: 20px;
    margin-right: 2px;
    display: inline-flex;
    justify-content: center;
}

/* --------------- hmservicios__services queries ------------- */

@container hmservicios (min-width:1150px){
    .hmservicios__services-list{
        gap: 30px;
    }

    .services__list-item{
        max-width: 350px;
    }
}

/* ------------ fin hmservicios__services ---------------- */

/* ----------- hmservicios__limit ---------------- */

.hmservicios__limit{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 50px 10px;
}

.hmservicios__limit-title{
    font-size: 1.7rem;
    color: #224499;
}

.hmservicios__limit-text{
    font-size: 1.2rem;
    font-weight: 500
}

.hmservicios__limit-text a{
    color: #2244bb;
    font-size: 1.3rem;
}

.hmservicios__limit-text a:hover{
    text-decoration: underline;
}

/* ------------ hmservicios__limit queries ---------- */

/* ------------ fin hmservicios__limit ----------- */

/* ----------- hmservicios__collage-services --------------*/

.hmservicios__collage-services{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 25px;
    padding: 40px 0;
}

.hmservicios__collage-services-title{
    font-size: 1.7rem;
    color: #fff;
    background-color: #224477;
    padding: 20px 10px;
    text-align: center;
    text-wrap: pretty;
    opacity: 0;
    transition: opacity 1s ease, transform 1.5s ease
}

.hmservicios__collage-services-title.visible{
    opacity: 1;
}

.hmservicios__collage-services-container{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-content: center;
    gap: 20px 10px;
    padding: 0 10px 20px 10px;
    position: relative;
    overflow: hidden;
}

.hmservicios__collage-services-container img{
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-bottom: 2px solid #2244bb;
    padding-bottom: 10px;
    opacity: 0;
    position: relative;
}

.hmservicios__collage-services-container img:nth-child(odd){
    transition: opacity .8s ease;
}

.hmservicios__collage-services-container img:nth-child(even){
    transition: opacity 1.5s ease;
}

.hmservicios__collage-services-container img.visible{
    opacity: 1;
}

.hmservicios__collage-services-container video{
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-bottom: 2px solid #2244bb;
    padding-bottom: 10px;
    opacity: 0;
    transition: opacity .8s ease;
    position: relative;
}

.hmservicios__collage-services-container video.visible{
    opacity: 1;
}

/* ------------- hmservicios__collage-services queries ---------- */

@container hmservicios (min-width:56.25rem){
    .hmservicios__collage-services-container{
        grid-template-columns: repeat(4, minmax(200px, 1fr));
    }

    .hmservicios__collage-services-container img{
        transform: translateY(60%);
        opacity: 1;
    }

    .hmservicios__collage-services-container img:nth-child(odd){
        transition: transform .8s ease;
    }
    
    .hmservicios__collage-services-container img:nth-child(even){
        transition: transform .8s ease;;
    }

    .hmservicios__collage-services-container video{
        transform: translateY(60%);
        opacity: 1;
        transition: transform .8s ease
    }

    .hmservicios__collage-services-container img.visible{
        transform: translateY(0);
    }

    .hmservicios__collage-services-container img:hover{
        transform: translateY(2%);
        cursor: pointer;
    }

    .hmservicios__collage-services-container video.visible{
        transform: translateY(0);
        opacity: 1;
    }

    .hmservicios__collage-services-container video:hover{
        transform: translateY(2%);
        cursor: pointer;
    }

}

/* ------------- fin hmservicios__collage-services ------------ */