/* Estilos específicos para la galería */
.gallery-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.gallery-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
    font-weight: 300;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 2px solid #3498db;
    padding: 8px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #3498db;
    transition: all 0.3s ease;
    border-radius: 30px;
    font-weight: 600;
}

.filter-btn.active, .filter-btn:hover {
    background: #3498db;
    color: white;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    padding: 20px;
    width: 100%;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.overlay-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.overlay-content i {
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.overlay-content i:hover {
    transform: scale(1.2);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

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

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Estilos para el modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-content {
    display: block;
    margin: 60px auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 5px;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.9);}
    to {transform: scale(1);}
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 1.2rem;
    max-width: 80%;
    margin: 0 auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 80px auto 30px;
    }
    
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        margin: 5px;
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-section {
        padding: 60px 0;
    }
}