/* CSS Document */

.carousel-multi-item .carousel-item-inner {
    display: flex;
}
.category-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: none;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-card:hover img {
    transform: scale(1.1);
}
.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0.1));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #ffffff;
}
.product-card-premium {
    border: 1px solid #e8eef5;
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
    height: 100%;
}
.product-card-premium .img-container {
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.product-card-premium .img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.product-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--insac-primary);
}
.brand-logo-card {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0.6;
    transition: 0.3s;
}
.brand-logo-card:hover {
    opacity: 1;
    border-color: var(--insac-primary);
}
.trend-card-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 30px;
    color: #ffffff;
    height: 100%;
}

/* Personalizaci?n de Controles del Carrusel */
.custom-carousel-controls .carousel-control-prev,
.custom-carousel-controls .carousel-control-next {
    width: 4%;
    opacity: 0.7;
    transition: 0.3s;
}
.custom-carousel-controls .carousel-control-prev:hover,
.custom-carousel-controls .carousel-control-next:hover {
    opacity: 1;
}
.custom-carousel-controls .control-icon-box {
    width: 40px;
    height: 40px;
    background: var(--insac-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.custom-carousel-controls .carousel-indicators {
    bottom: -45px;
}
.custom-carousel-controls .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
}
.custom-carousel-controls .carousel-indicators .active {
    background-color: var(--insac-primary);
    width: 24px;
    border-radius: 5px;
}
.trend-carousel-fix .carousel-indicators li {
    background-color: rgba(255,255,255,0.3);
}
.trend-carousel-fix .carousel-indicators .active {
    background-color: #ffffff;
}


@media (max-width: 767.98px) {
    /* Oculta la segunda y tercera tarjeta de cada bloque en móviles */
    .custom-mobile-carousel-row .col-md-4:not(:first-child) {
        display: none !important;
    }
    
    /* Evita que los controles laterales de ancho 4% queden demasiado al centro en pantallas chicas */
    .custom-carousel-controls .carousel-control-prev,
    .custom-carousel-controls .carousel-control-next {
        width: 12%;
    }
    
    /* Da espacio inferior seguro para que tus indicadores a -45px no pisen el siguiente bloque */
    .custom-carousel-controls {
        margin-bottom: 60px !important;
    }
}