/* ========================================= */
/* ESTILOS ESPECÍFICOS PARA OFERTAS G502     */
/* Seccion: #ofertas-proporcionales-9        */
/* ========================================= */

#ofertas-proporcionales-9 {
    /* Fondo opcional para destacar la sección */
    background-color: #f8f9fa; /* Gris muy claro */
}

/* ----------------------------------------- */
/* A. ESTILO DEL PRODUCTO DESTACADO (GRANDE) */
/* ----------------------------------------- */

.promo-grande-contenedor {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

.promo-grande-contenedor:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.promo-grande-contenedor .promo-imagen {
    /* La imagen debe ocupar todo el contenedor */
    object-fit: cover;
    height: 100%;
    width: 100%;
    /* Filtro para oscurecer la imagen y mejorar la legibilidad del texto */
  
    transition: filter 0.5s ease; /*uuuuuuuuuuuuuuuu*/
}

.promo-grande-contenedor:hover .promo-imagen {
    filter: brightness(80%); /* Aclara ligeramente al pasar el mouse */
}

.promo-grande-contenedor a {
    text-decoration: none;
}

/* Capa de información superpuesta (título y descripción) */
.item-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px !important;
    z-index: 5;
    /* Efecto de degradado sutil en la parte inferior para el texto */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    width: 100%;
}

.promo-tag {
    /* Etiqueta de "Más Vendido" */
    border-radius: 0 0 10px 0;
    padding: 8px 15px;
    font-weight: 700;
}

/* Ajuste para que la grilla de miniaturas ocupe todo el espacio */
#mini-grid-ajuste-9 {
    height: 100%;
    align-content: stretch; /* Estira las filas para ocupar el 100% de la altura */
}

/* ----------------------------------------- */
/* B. ESTILO DE LOS PRODUCTOS MINIATURA      */
/* ----------------------------------------- */

.mini-promo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 100%;
    min-height: 150px; /* Altura mínima para asegurar visibilidad */
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.mini-promo-item .promo-link-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
}

.mini-promo-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.mini-promo-item .promo-imagen {
    /* Asegura que las imágenes llenen sus contenedores sin distorsión */
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mini-promo-item:hover .promo-imagen {
    transform: scale(1.05); /* Zoom sutil al pasar el mouse */
}

/* Información estática de la miniatura (visible siempre) */
.mini-info-static {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Fondo para contrastar el texto */
    background: rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.mini-info-static p {
    font-size: 0.9rem;
}

/* Capa de efecto hover */
.item-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(35, 47, 62, 0.6); /* Azul oscuro de tu header con transparencia */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.mini-promo-item:hover .item-hover-overlay {
    opacity: 1;
}

/* ----------------------------------------- */
/* C. ESTILO DEL PLACEHOLDER DE RELLENO      */
/* ----------------------------------------- */

.mini-promo-item.bg-light {
    /* Estilo para los bloques de "Próximamente" */
    min-height: 150px;
    border: 2px dashed #ccc;
    color: #6c757d;
}

/* ----------------------------------------- */
/* D. RESPONSIVE (Ajustes para móviles)      */
/* ----------------------------------------- */

@media (max-width: 991.98px) {
    /* En tabletas y móviles, la promo grande ocupa menos alto */
    .promo-grande-contenedor {
        height: 350px !important; 
        margin-bottom: 1rem;
    }
    
    /* En móviles, las miniaturas pueden ser un poco más grandes */
    .mini-promo-item {
        min-height: 120px;
    }

    .item-info-overlay {
        padding: 15px !important;
    }

    .item-info-overlay .display-6 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    /* En móviles muy pequeños, la grilla de miniaturas se ajusta mejor */
    #mini-grid-ajuste-9 .col-4 {
        /* Para que en el col-12 el col-4 sea responsive */
        width: 33.333333%; 
    }
}