/* Banner: tarjetas categoría - evitar desbordes y ajustar imagen al bloque */
.sec-banner .block1 {
    height: 300px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
}

.sec-banner .block1 img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* ajustar la imagen dentro del cuadro sin recortar */
    object-position: center center;
    /* centrar imagen */
    display: block;
    background-color: #f7f7f7;
    /* color de fondo para las zonas vacías */
}

.sec-banner .block1 .block1-txt {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

/* Productos: evitar desbordes y mantener la imagen ajustada al contenedor */
.isotope-grid .isotope-item .block2 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.block2 .block2-pic {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    width: 100%;
    display: block;
    background-color: #fff;
}

.block2 .block2-pic img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* mostrar toda la imagen sin recortar */
    object-position: center center;
    display: block;
    background-color: transparent;
}

.block2-txt {
    flex: 0 0 auto;
}

/* Responsive: ajustar alturas */
@media (min-width: 992px) {
    .sec-banner .block1 {
        height: 300px;
    }

    .block2 .block2-pic {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 991px) {
    .sec-banner .block1 {
        height: 260px;
    }

    .block2 .block2-pic {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 575px) {
    .sec-banner .block1 {
        height: 200px;
    }

    .block2 .block2-pic {
        aspect-ratio: 16 / 9;
    }
}

/* Centrar overlay "Quick View" */
.block2 .block2-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    z-index: 2;
}