/* =========== ESTILOS 0KM HUB =========== */

a{
    text-decoration: none !important;
}

.supercontenedor2{
    opacity: 0;
    /*margin-top: 20px !important;*/
    animation: ani-ent 500ms ease-in-out forwards;
    animation-delay: 250ms;
}

.cabecera0km{
    width: 100%;
    max-width: 900px;
    color: #002458;
    background-color: #fff;
    font-family: Roboto;
    font-size: 2rem;
    font-weight: 800;
    border-radius: 10px;
    padding: 10px;
    margin: 0 auto;
    margin-bottom: 10px;
    text-align: center;
    cursor: default;
}

.boxes{
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 24% 24% 24% 24%;
    text-decoration: none;
    gap: 10px;
    justify-content: space-between;
}

.boxes-2{
    height: 100%;
    width: 100%;
    text-decoration: none;
    
    transition: 250ms ease-in-out;
}

.marcas-2{
    width: 100%;
    background-color: #ffffffd0;
    border-radius: 15px;
    grid-column: 1/2;
    text-decoration: none;

    transition: 250ms ease-in-out;
}


.marcas-2 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    background-color: #fff;
    margin-bottom: 5px;
    /*overflow: hidden;*/
}

.titulo-marca{
    width: 100%;
    color: #002458;
    font-size: 1rem;
    font-weight: 700;
    font-family: Roboto;
    grid-column: 1/2;
    text-align: center;
    text-decoration: none;
    cursor: default;
    padding-bottom: 5px;
}

.active:hover .marcas-2 .titulo-marca{
    color: #fff;
    cursor: pointer;
    
}
.active:hover .marcas-2 {
    background-color: rgba(0,155,245,1);
    scale: 0.9;
    border-radius: 16px;
}

.inactive:hover {
    opacity: .6;
    cursor: pointer;
}


@keyframes ani-ent{
from{
    margin-top: 50vh;
}
to{
    margin-top: 20px;
    opacity: 1;
}
}


/* =========== RESPONSIVE =========== */

@media screen and (max-width:1000px){

    .boxes{
        max-width: 90%;
        grid-template-columns: 32% 32% 32%;
    }
    
    
    .cabecera0km{
        max-width: 90%;
    }

}

@media screen and (max-width:750px){

    .boxes{
        grid-template-columns: 49% 49%;
    }


}