/* ----------- 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__client-title-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    background-image: url(imagenes/clientes-background.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 40vh;
    position: relative;
    cursor: default;
}

.hmservicios__client-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00002f5f;
    z-index: 1;
}

.hmservicios__client-title-container > * {
    z-index: 2;
}

.hmservicios__client-title{
    font-size: 1.9rem;
    color: #fff;
}

@container hmservicios (min-width:56.25rem){
    .hmservicios__client-title-container{
        height: 50vh;
    }

    .hmservicios__client-title{
        font-size: 2.2rem;
        color: #fff;
    }
}

/* --------- hmservicios__client ------------- */

.hmservicios__client{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    overflow: hidden;
}

.hmservicios__client-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__client-subtitle.visible{
    transform: translateY(0);
    opacity: 1;
}

.hmservicios__client-carrousel-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px 10px;
    justify-content: center;
    overflow: hidden;
}

.hmservicios__client-carrousel{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
    padding: 40px 0px;
    overflow-x: hidden;
    width: 125%;
}

.hmservicios__client-carrousel:nth-child(odd){
    animation: scroll1 30s linear infinite;
}

.hmservicios__client-carrousel:nth-child(even){
    animation: scroll2 30s linear infinite;
}

@keyframes scroll1 {
    0% { 
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); 
    }
}

@keyframes scroll2 {
    0% { 
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0); 
    }
}

.hmservicios__client-carrousel img{
    width: 175px;
    height: 150px;
    border-radius: 16px;
    flex-shrink: 0;
}

/* -------------- hmservicios__client queries ----------- */

@container hmservicios (min-width:56.25rem){
    .hmservicios__client-carrousel{
        width: 175%;
    }
    
    .hmservicios__client-carrousel img{
        width: 225px;
        height: 175px;
    }

    .hmservicios__client-carrousel:nth-child(odd){
        animation: scroll1 40s linear infinite;
    }
    
    .hmservicios__client-carrousel:nth-child(even){
        animation: scroll2 40s linear infinite;
    }
}

/* ------------- hmservicios__client fin --------------- */

/* --------------- hmservicios__compromise inicio ------------- */

.hmservicios__compromise{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 60px 10px;
}

.hmservicios__compromise-background{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    border-radius: 6px;
    background-color: #2244771f;
}

.hmservicios__compromise-title{
    font-size: 1.7rem;
    color: #224499;
    text-align: center;
    text-wrap: pretty;
}

.hmservicios__compromise-text{
    font-size: 1.1rem;
    color: #224477;
    font-weight: 300;
    text-align: left;
    text-wrap: pretty;
    max-width: 550px;    
}



/* --------------- fin hmservicios__compromise ----------------- */