.banner-media {
    display: grid;
    grid-template-areas: "stack";
    width: 100%;
    height: 100%;          /* clave */
    overflow: hidden;
}

/* Ambos viven en la misma celda */
.banner-img,
.banner-content {
    grid-area: stack;
}

/* Imagen */
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Texto */
.banner-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* texto abajo */
    pointer-events: none;     /* evita bloquear el link */
}

/* Si el CTA es clickable */
.banner-content a {
    pointer-events: auto;
}


@media (max-width: 640px) {
    .banners-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .banner-principal {
        width: 100%;
        aspect-ratio: 21/9;
    }

    .mobile-scroll-banners {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        width: 100%;
    }

    .banner-small {
        flex: 0 0 80%;
        min-width: 260px;
        aspect-ratio: 3/1;
        scroll-snap-align: start;
    }

    .grid-rows-4.grid-cols-5 {
        display: flex;
        flex-direction: column;
    }
}
@media (min-width: 641px) {
    .mobile-scroll-banners {
        display: contents;
    }
}