.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 20px 20px 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
}

.bento-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.1),
            transparent);
    z-index: 1;
}

.container-grid {
    background-color: #f8f2fb;
    min-height: calc(100vh - 70px);
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-main {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .bento-wide {
        grid-column: auto !important;
    }

    .bento-tall {
        grid-row: auto !important;
    }

    .bento-card {
        height: 250px;
    }
    .container-grid{
        height: auto !important;
    }
    .square-bottom-right-more::before{
        background-position-y: 60px !important;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card{
        padding-inline: 0 !important;
        display: flex;
        justify-content: center;
        align-items: top;
        text-align: center;
        padding-top: 25px !important;
    }
    .bento-card h2{
        font-size: 30px !important;
        width: 300px !important
    }
    .cmsii{
        text-align: center !important;
    }
    .bento-main::before{
        background-position-y: 80px !important ;
    }
    .square-top-left::before{
        background-size: 400px 151px !important;
    }
    .square-top-right::before{
        background-size: 200px !important;
        
    }
    .square-midle-left::before{
        background-size: 150px !important;
        background-position-x: center !important;
    }
    .square-midle-right::before{
        background-position-x: center !important;
    }
    .cmss,.cmsss{
        width: auto !important;
        
    }
    .bento-empty{
        align-items: baseline !important;
    }
    .square-bottom-left::before{
        background-position-x: -74px !important;
        background-position-y: 94px !important;
    }
    .square-bottom-right-more::before{
        background-position-y: 90px !important;
    }
    .square-bottom-right-plus::before{
        background-position-x: 15px !important;
        background-position-y: 90px !important;
    }
}

/* Base */
.bento-card {
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;

}




.bento-card h2 {
    position: relative;
    z-index: 2;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.bento-card::before {
    content: "";
    background-size: contain;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-repeat: no-repeat no-repeat;
    background-position-y: bottom;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3)
}


/* Variantes */
.bento-main {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #5a2be8, #2b6cf6);
    padding: 60px;
    background-size: cover;


}

.bento-main h2 {
    font-weight: bold;
}

.bento-main::before {
    background-image: url('/add/img/girshopping-2.png');
    background-position-x: right;

}

.bento-wide {
    grid-column: span 2;

}

.bento-tall {
    grid-row: span 2;
}

.bento-empty {
    border-radius: 22px;
    display: flex;
    align-items: center;

    color: white;
}

.cmss {
    width: 150px;
}

.cmsss {
    width: 200px;
}




.cmsii {
    text-align: right;
}