.gallery-header {
    padding-top: 150px;
    text-align: center;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 5% 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.4s;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 242, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--led-blue);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.1);
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border: 1px solid var(--led-blue);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.lightbox-content img, .lightbox-content video {
    display: block;
    max-width: 100%;
    max-height: 80vh;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    opacity: 0.7;
}

.close-lightbox:hover { opacity: 1; color: var(--led-blue); }

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* --- FILTROS --- */
.filter-section {
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-label {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #111;
    border: 1px solid #333;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover {
    border-color: var(--led-blue);
    color: var(--led-blue);
}

.filter-btn.active {
    background: var(--led-blue);
    color: black;
    border-color: var(--led-blue);
    box-shadow: 0 0 15px var(--led-blue);
}

/* --- INFO DE CADA ITEM --- */
.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    z-index: 5;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.4s;
}

.item-info span {
    font-size: 0.6rem;
    color: var(--led-blue);
    font-weight: 900;
    letter-spacing: 2px;
}

.item-info h3 {
    margin: 5px 0 0;
    font-size: 1rem;
    font-weight: 700;
}

.gallery-item:hover .item-info {
    transform: translateY(0);
}

/* Transición suave para el filtrado */
.gallery-item {
    transition: transform 0.4s, opacity 0.3s, box-shadow 0.4s;
}