.container-products {
    background-image: url("https://jikiu.pe/images/logo/jikiu-blue-50.webp"), url("https://jikiu.pe/images/backgrounds/background-products.webp");
    background-size: 300px auto, cover;
    background-position: 0 calc(50% + 50px), center;
    background-repeat: no-repeat, no-repeat;
}

.contain-products {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
    padding: 150px 0 50px;
}

.title-products{
    color: var(--blue-low-color);
    text-align: left;
    font-size: var(--font-size-lg);
    margin-bottom: 32px;    
    font-size: 1.8rem;
    text-align: center;
}

.title-products span{
    color: var(--red-color);
}

.slogan{
    font-family: var(--font-text-bold);
    color: var(--text-gray-color);
    text-align: center;
    line-height: var(--line-height-pc);
}
    

.products{
    display: flex;
    justify-content: center;
    /* flex-wrap: wrap; */
    gap: 1.2rem;
    margin: 40px 0;
}

.product-item{
    width: 33%;
    min-width: 285px;
    height: 350px;
    background-image: url("../../images/products/products-home/bg-products1.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    text-align: center;
    position: relative;
}

.link-product{
    filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
    text-decoration: none;
    color: var(--blue-low-color);
}

.link-product:hover{
    display: block;
    transform: scale(110%);
    filter: drop-shadow(12px 12px 12px rgba(0, 0, 0, 0.4));
    color: var(--blue-medium-color);
}

.link-product img{
    margin-top: 45px;
    width: 80%;
}  

.link-product span{
    display: block;
    margin-top: 3.6rem;
    font-size: 1.4rem;
}

.car-brand{   
    padding-top: 5.2rem;
}

.brands{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background-color: var(--white-color);
    padding: 20px;
    gap: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.car-brand h3{
    font-family: var(--font-text-bold);
    color: var(--text-gray-color);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    margin: 0 0 30px 0;
    padding-top: 20px; 
    text-align: center;
}

.brands a:hover {
    outline: 1px solid var(--blue-low-color); /* Azul */    
    box-shadow: 0 0 5px var(--blue-low-color); /* Agrega un efecto de sombra */
    transition: border .4s, box-shadow 0.3s; /* Animación suave */
    transform: scale(120%);
}

#scrollTopBtn {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--red-light-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 110;
}

#scrollTopBtn img{
    width: 40%;
}

/* Animación al aparecer */
#scrollTopBtn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Animación al ocultarse */
#scrollTopBtn.hide {
    opacity: 0;
    transform: translateY(20px);
}

#scrollTopBtn:hover {
    transform: scale(1.1);
    background-color: #ff2332;
}

@media(max-width: 1200px){
    .car-brand{   
        padding-top: 3.2rem;
    }
}

@media(max-width: 920px){
    .products{ 
        flex-wrap: wrap; 
        justify-content: center;
    }    
}

@media(max-width: 525px){
    .products{
        flex-direction: column;
        gap: 4.8rem;
    }
    
    .product-item{
        width: 100%
    }

    .link-product span {   
        margin-top: 2rem;
    }
}