/* =========================
   CONTAINER
   ========================= */

.cardsbanner-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    /* evita comportamientos raros en algunos layouts de PS */
    width: 100%;
    box-sizing: border-box;
}

/* =========================
   ITEM BASE
   ========================= */

.cardsbanner-item {
    flex: 1 1 320px;
    min-width: 280px;

    box-sizing: border-box;
    overflow: hidden;

    /* opcional: mejora visual sin romper layout */
    border-radius: 8px;
}

/* =========================
   IMAGE
   ========================= */

.cardsbanner-item img {
    display: block;
    width: 100%;
    height: auto;

    /* evita micro saltos visuales en lazy load */
    background-color: transparent;
}

/* =========================
   LINK RESET
   ========================= */

.cardsbanner-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* =========================
   HOVER (SUAVE, SIN ROMPER UX)
   ========================= */

.cardsbanner-item:hover img {
    transform: scale(1.02);
    transition: transform 0.25s ease;
}

/* =========================
   RESPONSIVE BEHAVIOR
   ========================= */

/* Tablet */
@media (max-width: 992px) {
    .cardsbanner-item {
        flex: 1 1 45%;
        min-width: 260px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .cardsbanner-container {
        gap: 12px;
    }

    .cardsbanner-item {
        flex: 1 1 100%;
        min-width: 100%;
    }
}