/*------ FONTS ------*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* =========== ESTILOS 0KM HUB =========== */


a{
    text-decoration: none !important;
}

body{
    background-image: url("https://tolkachier.com/imagenes/wall-usados.webp");
    background-size: cover;
}


.sc3{
    opacity: 0;
    margin-top: 105px;
    animation: ani-ent 500ms ease-in-out forwards;
    animation-delay: 250ms;
    z-index: 40 !important;
}

.cabecera{
    height: 95px !important;
}

.cabecera0km{
    width: 100%;
    max-height: 200px;
    max-width: 900px;
    color: #fff;
    background: linear-gradient(15deg, #0084f0 0%, #008cff 50%, #0084f0 100%) !important;
    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;
}
.cabecera0km img{
    max-height: 150px;
}

.boxes{
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    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: #ffffff80;
    backdrop-filter: blur(15px);
    border-radius: 10px;
    grid-column: 1/2;
    text-decoration: none;

    transition: 250ms ease-in-out;
}


.marcas-2 img{
    aspect-ratio: 2 / 1;
    width: 100%;
    /*height: 100%;*/
    max-height: 150px;
    object-fit: cover;
    border-radius: 10px;
    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.96;
    border-radius: 16px;
}

.inactive:hover {
    opacity: .6;
    cursor: pointer;
}

.cabecera-btns{
    width: 100%;
    max-width: 900px;
    height: 40px;
    /*display: inline-block;*/
    text-align: center;
    margin: 0 auto;
    margin-bottom: 13px;
}

.btn-volver{
    width: 40px;
    border-radius: 50%;
    margin-left: 10px;

    background-color: #002458;
    cursor: pointer;
    transition: 250ms ease-in-out;
    float: right;
}

.btn-volver:hover{
    background-color: rgba(0,155,245,1);
}

.btn-zerousado{
    width: auto;
    height: 40px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 10px;

    font-family: Roboto;
    font-weight: 500;
    font-size: 18px;
    color: #fff;
    line-height: 40px;

    border-radius: 10px;
    background-color: #002458;
    cursor: pointer;
    transition: 250ms ease-in-out;
    float: right;
}

.btn-zerousado-inactivo{
    width: auto;
    height: 40px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 10px;

    font-family: Roboto;
    font-weight: 500;
    font-size: 18px;
    color: #fff;
    line-height: 40px;

    border-radius: 10px;
    background-color: #002458;
    cursor: default;
    transition: 250ms ease-in-out;
    float: right;

    animation: activo-btn 2000ms linear infinite;
}

.btn-zerousado:hover{
    background-color: rgba(0,155,245,1);
}



@keyframes ani-ent{
    from{
        margin-top: 50vh;
    }
    to{
        margin-top: none;
        opacity: 1;
    }
}



@keyframes activo-btn{
    0%{
        background-color: #002458;
    }
    50%{
        background-color: rgba(0,155,245,1);
    }
    10%{
        background-color: #002458;
    }
}

/* =========== RESPONSIVE =========== */

@media screen and (max-width:1024px){

    .sc3{
        margin-top: 20px;
    }

    .boxes{
        max-width: 90%;
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .cabecera-btns{
        width: 90%;
    }
    
    .cabecera0km{
        max-width: 90%;
    }

    .cabecera{
    height: 0px !important;
    }

}

@media screen and (max-width:750px){

    .boxes{
        grid-template-columns: 1fr 1fr;
    }


}