.filiales-block{
    display: flex;
    width: 100%;
    /* mobile defaults use CSS variables set inline on the wrapper */
    margin-top: var(--sb-mt-mobile, 0);
    margin-bottom: var(--sb-mb-mobile, 0);
}
@media (min-width: 768px) {
    .filiales-block {
        /* desktop defaults use CSS variables set inline on the wrapper */
        margin-top: var(--sb-mt-desktop, 0);
        margin-bottom: var(--sb-mb-desktop, 0);
    }
}
.filiales-block__wrap{
    display: flex;
    flex-direction: column;
    width: 100%;
}
.filiales-block__subs_head{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 3rem;
}
@media(max-width:768px){
    .filiales-block__subs_head{
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
.filiales-block__subs_head h2{
    margin: 0;
}
.filiales-block__subs-list{
    display: flex;
    width: 100%;
    gap: 1rem;
    height: 500px;
}
@media(max-width:768px){
    .filiales-block__subs-list{
        flex-direction: column;
        height: auto;
    }
}

.sub-card{
    display: flex;
    flex-direction: column;
    width: 33%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: width .6s ease, height .6s ease;
}
@media(max-width:768px){
    .sub-card{
        width: 100%;
        height: 400px;
    }
    .sub-card:last-child{
        & .sub-card__text-logo{
            & img{
                width: 50%;
            }
        }
    }
}
@media(min-width:768px){
    .filiales-block__subs-list{
        transition: margin-bottom .6s ease;
    }
    .filiales-block__subs-list:has(.sub-card:hover){
        margin-bottom: 50px;
    }
     .sub-card:hover{
        height: 120%;
     }
}
.sub-card__media{
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.sub-card__image{
    display: flex;
    width: 100%;
    height: 100%;

}
.sub-card__image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sub-card__logo{
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 1;
    transition: opacity .6s ease;
}
.sub-card__bkg{
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Vertical gradient: top dark -> bottom almost transparent */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.05) 100%
    );
    transition: background .6s ease;
}
.sub-card__text {
    position: relative;
    margin-top: auto;
    padding: 2rem;
    z-index: 2;
    opacity: 0;
    
}
.sub-card__text p{
    width: 100%;
}
.sub-card__text *{
    color: var(--wp--preset--color--blanc);
}
.sub-card:hover {
    width: 50%;
}

@media(max-width:768px){
    .sub-card:hover {
        width: 100%;
    }
}
.sub-card:hover .sub-card__logo{
    opacity: 0;
}
.sub-card.is-hovered .sub-card__text{
    opacity: 1;
    transition: opacity .6s ease;
    & .btn-cta::before{
        background-color: var(--wp--preset--color--blanc);
    }
}
@media(max-width:768px){
    .sub-card__logo {
        opacity: 0;
    }
    .btn-cta{
        justify-content: flex-start;
    }
}