/* ============================================================
   MODALIDADES BENTO - DISTORTION CODE STYLE (WITH IMAGES)
   ============================================================ */

:root {
    --cherry: #D61E43;
    --violet: #7E22CE;
    --orange: #F97316;
    --text-main: #1d1d1f;
    --text-sec: #6e6e73;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mod-bento-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 140px 5% 80px;
}

.mod-bento-intro { margin-bottom: 60px; }
.mod-bento-intro h1 { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 900; line-height: 1; margin-bottom: 20px; }
.mod-bento-intro span.grad-text {
    background: linear-gradient(135deg, var(--orange), var(--cherry), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* GRID CORE */
.mod-bento-grid {
    display: grid;
    gap: 25px;
    grid-template-areas: 
        "presencial presencial online online"
        "neural neural neural neural"
        "company company executive executive"
        "cta cta cta cta";
    grid-template-columns: repeat(4, 1fr);
}

.mod-bento-card {
    background: #ffffff;
    border-radius: 45px;
    padding: 50px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Importante para las imágenes */
}

.mod-bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

/* --- ESTILOS DE IMÁGENES EN BENTO --- */
.mod-bento-card.has-image {
    padding: 0; /* Quitamos padding para que la imagen llene */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Pantalla partida */
    align-items: center;
}

.bento-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.mod-bento-card:hover .bento-img img {
    transform: scale(1.08); /* Efecto zoom suave */
}

.bento-content {
    padding: 50px;
}

/* Variante imagen a la derecha */
.mod-bento-card.image-right {
    grid-template-columns: 1fr 1fr;
}
.mod-bento-card.image-right .bento-content { order: 1; }
.mod-bento-card.image-right .bento-img { order: 2; }


/* --- VARIANTES DE COLOR DE TARJETAS --- */
.mod-card-dark { background: #1d1d1f; color: white; }
.mod-card-dark p { color: #a1a1a6; }
.mod-card-dark .card-icon { color: var(--orange); }

.mod-card-full { background: #f5f5f7; border: none; padding: 60px; }

.neural-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.neural-content i { font-size: 4rem; color: var(--violet); }

.mod-card-cherry { background: var(--cherry); color: white; text-align: center; border: none; }

/* ICONOS Y TEXTO */
.card-icon { font-size: 2rem; margin-bottom: 25px; color: var(--violet); }
.mod-bento-card h3, .mod-bento-card h4 { font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; color: inherit; }

/* BOTÓN INDUSTRIAL WHITE */
.btn-industrial-white {
    margin-top: 25px;
    display: inline-block;
    padding: 18px 40px;
    background: white;
    color: var(--cherry);
    border-radius: 100px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}
.btn-industrial-white:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .mod-bento-card.has-image,
    .mod-bento-card.image-right {
        grid-template-columns: 1fr; /* Apilamos en tablet/móvil */
    }
    
    .bento-img {
        height: 250px; /* Altura fija para la imagen en móvil */
        order: -1; /* Imagen siempre arriba */
    }
}

@media (max-width: 900px) {
    .mod-bento-grid {
        grid-template-areas: 
            "presencial"
            "online"
            "neural"
            "company"
            "executive"
            "cta";
        grid-template-columns: 1fr;
    }
    
    .neural-content { flex-direction: column; text-align: center; gap: 20px;}
    .mod-bento-card { padding: 40px; }
    .mod-card-full { padding: 40px; }
}