/* =========================================
   Nosotros Bento Box Grid Styles
   ========================================= */

.bento-grid-wrapper {
    width: 100%;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Bento Item Base */
.bento-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.bento-inner {
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.bento-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.bento-item p {
    color: #a0a0a8;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.bento-item .abstract-icon-small {
    font-size: 2.5rem;
    margin-bottom: auto; /* Pushes the text to the bottom */
    padding-bottom: 2rem;
}

/* 
 * Specific Block Layouts 
 */

/* Block 1: Featured Double Wide */
.bento-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.8) 0%, rgba(10, 10, 15, 0.9) 100%);
}

.bento-featured .bento-inner {
    justify-content: center;
}

.bento-featured .bento-content {
    max-width: 80%;
}

.bento-featured h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.bento-featured p {
    font-size: 1.2rem;
    line-height: 1.7;
}

/* Background icon for featured block */
.bento-bg-icon {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    font-size: 18rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
    transform: rotate(-15deg);
}

/* Block 3: Tall Vertical Box */
.bento-tall {
    grid-row: span 2;
}

/* 
 * Responsive Adjustments
 */

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-featured {
        grid-column: span 2;
    }
    
    .bento-tall {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-featured {
        grid-column: 1;
    }

    .bento-featured h3 {
        font-size: 2rem;
    }
    
    .bento-inner {
        padding: 2rem;
    }
}

/* =========================================
   Animated Ambient Background
   ========================================= */

.ambient-mesh-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    pointer-events: none;
    /* Concentric black lines (Vinyl Disc effect) */
    background-image: repeating-radial-gradient(
        circle at center,
        transparent 0,
        transparent 28px,
        rgba(0, 0, 0, 0.08) 29px,
        rgba(0, 0, 0, 0.08) 30px
    );
    /* Fade out the edges so it seamlessly blends into the page */
    mask-image: radial-gradient(circle at center, black 10%, transparent 40%);
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 40%);
    /* Slow rotation to give it life if we ever add an imperfection, but mostly static */
    animation: spin-vinyl-bg 60s linear infinite;
}

@keyframes spin-vinyl-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ambient-glow-blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    /* Very soft light/platinum tint */
    background: radial-gradient(circle, rgba(160, 160, 170, 0.08) 0%, transparent 60%);
    top: 10%;
    left: 20%;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: float-blob 20s infinite alternate ease-in-out;
}

@keyframes float-blob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 15vh) scale(1.2); }
}
