/* CustomBanners.css - VERSIÓN FINAL CON CORRECCIONES DE TAMAÑO */

.bannerHomeImageContainer {
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .bannerHomeImageContainer:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.10);
        transform: scale(1.02);
    }

/* El wrapper que define la altura fija del banner */
.hero-slider-item-wrapper--bannerHome {
    height: 250px;
}


/* --- INICIO DE LAS CORRECCIONES IMPORTANTES --- */

/* 1. El contenedor de la imagen */
.bannerHomeImageContainer .single-slider-product__image {
    display: block; /* Asegura que se comporte como un bloque */
    height: 100%; /* Ocupa toda la altura del wrapper (250px) */
    width: 100%;
    line-height: 0; /* CORRECCIÓN: Elimina cualquier espacio vertical extra causado por la línea de texto */
    font-size: 0; /* CORRECCIÓN: Ayuda a eliminar espacios en blanco de elementos inline */
}

    /* 2. El enlace (<a>) que envuelve la imagen */
    .bannerHomeImageContainer .single-slider-product__image a {
        display: block; /* CORRECCIÓN: El enlace debe ser un bloque para tener dimensiones */
        width: 100%;
        height: 100%;
    }

    /* 3. La imagen (<img>) en sí */
    .bannerHomeImageContainer .single-slider-product__image img {
        display: block;
        width: 100%;
        height: 100% !important; /* CORRECCIÓN: Forzamos la altura al 100% para anular a .img-fluid (height: auto) */
        object-fit: cover; /* Clave para que la imagen llene el espacio sin deformarse */
        transition: transform 0.5s ease;
    }

.bannerHomeImageContainer:hover .single-slider-product__image img {
    transform: scale(1.1);
}

/* --- FIN DE LAS CORRECCIONES --- */


/* REGLAS PARA EL TÍTULO SUPERPUESTO (sin cambios) */
.bannerHomeImageContainer .banner-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    padding: 25px 15px 15px 15px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bannerHomeImageContainer:hover .banner-title-overlay {
    opacity: 1;
    transform: translateY(0);
}
