.bento-gallery {
    padding: 5rem 0;
    background: var(--white);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 1.5rem;
    margin: 3rem 0;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(44, 106, 131, 0.85) 0%, 
        rgba(238, 94, 49, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 2rem;
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

.bento-content {
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.bento-item:hover .bento-content {
    transform: translateY(0);
}

.bento-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.bento-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.bento-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.medium {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-item.medium.vertical {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-item.small {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-grid .bento-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.bento-grid .bento-item:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.bento-grid .bento-item:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.bento-grid .bento-item:nth-child(4) {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

.bento-grid .bento-item:nth-child(5) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.bento-grid .bento-item:nth-child(6) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.bento-grid .bento-item:nth-child(7) {
    grid-column: 3 / 5;
    grid-row: 3 / 4;
}

.bento-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    border: 1px solid rgba(44, 106, 131, 0.1);
}

.bento-cta p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .bento-grid {
        grid-template-rows: repeat(3, 180px);
        gap: 1.2rem;
    }
    
    .bento-content h3 {
        font-size: 1.2rem;
    }
    
    .bento-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 160px);
    }
    
    .bento-grid .bento-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .bento-grid .bento-item:nth-child(2) {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }
    
    .bento-grid .bento-item:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .bento-grid .bento-item:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    
    .bento-grid .bento-item:nth-child(5) {
        grid-column: 3 / 4;
        grid-row: 2 / 4;
    }
    
    .bento-grid .bento-item:nth-child(6) {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    
    .bento-grid .bento-item:nth-child(7) {
        grid-column: 2 / 4;
        grid-row: 4 / 5;
    }
}

@media (max-width: 768px) {
    .bento-gallery {
        padding: 3rem 0;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 140px);
        gap: 1rem;
    }
    
    /* Reorganizar layout para móvil */
    .bento-grid .bento-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .bento-grid .bento-item:nth-child(2) {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }
    
    .bento-grid .bento-item:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    
    .bento-grid .bento-item:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
    }
    
    .bento-grid .bento-item:nth-child(5) {
        grid-column: 1 / 3;
        grid-row: 5 / 6;
    }
    
    .bento-grid .bento-item:nth-child(6) {
        grid-column: 1 / 2;
        grid-row: 6 / 7;
    }
    
    .bento-grid .bento-item:nth-child(7) {
        grid-column: 2 / 3;
        grid-row: 6 / 7;
    }
    
    .bento-content h3 {
        font-size: 1.1rem;
    }
    
    .bento-content p {
        font-size: 0.8rem;
    }
    
    .bento-content i {
        font-size: 1.5rem;
    }
    
    .bento-overlay {
        padding: 1rem;
    }
    
    .bento-cta {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .bento-cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-rows: repeat(6, 120px);
        gap: 0.8rem;
    }
    
    .bento-item {
        border-radius: 15px;
    }
    
    .bento-content h3 {
        font-size: 1rem;
    }
    
    .bento-content p {
        font-size: 0.75rem;
    }
    
    .bento-content i {
        font-size: 1.3rem;
    }
    
    .bento-overlay {
        padding: 0.8rem;
    }
}

@media (max-width: 360px) {
    .bento-grid {
        grid-template-rows: repeat(6, 100px);
        gap: 0.6rem;
    }
    
    .bento-content h3 {
        font-size: 0.9rem;
    }
    
    .bento-content p {
        font-size: 0.7rem;
    }
    
    .bento-content i {
        font-size: 1.1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-item {
    animation: fadeInUp 0.6s ease forwards;
}

.bento-item:nth-child(1) { animation-delay: 0.1s; }
.bento-item:nth-child(2) { animation-delay: 0.2s; }
.bento-item:nth-child(3) { animation-delay: 0.3s; }
.bento-item:nth-child(4) { animation-delay: 0.4s; }
.bento-item:nth-child(5) { animation-delay: 0.5s; }
.bento-item:nth-child(6) { animation-delay: 0.6s; }
.bento-item:nth-child(7) { animation-delay: 0.7s; }