.galeria-filtros {
    text-align: center;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 12px 18px;
    margin: 5px;
    border: 2px solid rgba(224,153,0,0.5);
    background: transparent;
    color: rgba(224,153,0,0.5);
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(224,153,0,0.5);
    color: black;
}

/* Contenedor de la galería con diseño de cuadrícula */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajuste automático */
    gap: 15px;
    justify-items: center;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Estilos para las imágenes */
.gallery-item {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

/* Animación para que aparezcan con efecto */
.gallery-item.show {
    opacity: 1;
    transform: scale(1);
}

/* Efecto hover */
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

/* Fondo del lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* Imagen ampliada */
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

/* Mostrar el lightbox */
.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox.active img {
    transform: scale(1);
}

/* Botón de cierre */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: transparent;
    border: none;
}

