/* GALERIA SECTION */
.galeria-section {
    padding: 100px 0;
    background: #f8f9fa;
}

/* Filtros */
.galeria-filters {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid #e74c3c;
    background: transparent;
    color: #e74c3c;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

/* Contenedor galería */
.galeria-category {
    display: none;
    animation: fadeIn 0.5s ease;
}

.galeria-category.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Items de galería */
.galeria-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.galeria-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

/* Overlay */
.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.galeria-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.overlay-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.btn-view-more {
    width: 50px;
    height: 50px;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-view-more:hover {
    background: white;
    color: #e74c3c;
    transform: scale(1.1);
}

/* Botón Ver Más */
.btn-ver-mas {
    padding: 12px 35px;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-ver-mas:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-3px);
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Botones lightbox */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #e74c3c;
    transform: translateY(-50%) scale(1.1);
}

/* Contenedor imagen lightbox 
.lightbox-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

#lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-info {
    padding: 1.5rem;
    background: white;
    text-align: center;
}

.lightbox-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.lightbox-info p {
    color: #7f8c8d;
    margin-bottom: 0;
}

.lightbox-counter {
    margin-top: 0.5rem;
    color: #95a5a6;
    font-size: 0.9rem;
}*/

/* LIGHTBOX SIMPLIFICADO */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

#lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .galeria-section {
        padding: 60px 0;
    }
    
    .galeria-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    #lightbox-image {
        max-height: 60vh;
    }
}

@media (max-width: 576px) {
    .galeria-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .overlay-content h5 {
        font-size: 1rem;
    }
    
    .overlay-content p {
        font-size: 0.9rem;
    }
}