        /* =========================================
           VARIABLES BASE: DARK NEON & GLASSMORPHISM
           ========================================= */
        :root {
            --bg-dark: #0f172a;      /* Azul/Gris espacial */
            --accent-cyan: #06b6d4;  /* Neón Celeste */
            --accent-gold: #fbbf24;  /* Dorado */
            --text-main: #f8fafc;    /* Blanco puro */
            --text-muted: #94a3b8;   /* Gris azulado */
            
            /* Curva de animación Premium */
            --premium-ease: cubic-bezier(0.175, 0.885, 0.32, 1.275);
            --smooth-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--bg-dark);
            color: var(--text-main);
            overflow-x: hidden;
        }

        h1, h2, h3 { font-family: 'Teko', sans-serif; text-transform: uppercase; letter-spacing: 1px; }


/* =========================================
   HEADER TIPO BANNER (REFERENCIA COLEGIO ALEMÁN)
   ========================================= */

.page-banner {
    position: relative;
    width: 100%;
    height: 50vh; /* Altura media (Panorámica), no pantalla completa */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* IMAGEN DE FONDO PANORÁMICA */
    /* Asegúrate de usar una foto ancha del colegio aquí */
    background: url('../Image/Headers/header-galeria.jpg') no-repeat center center;
    background-size: cover;
    
    /* Ajuste para que empiece detrás del menú fijo */
    margin-top: 0; 
}

/* Capa oscura encima de la foto para que el texto blanco resalte */
.banner-overlay {
    position: absolute;
    inset: 0;
    /* Degradado Dark Neon: De azul oscuro transparente a azul sólido abajo */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), var(--navy-dark));
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 60px; /* Compensación visualn por el navbar */
}

.banner-content h1 {
    font-family: 'Teko', sans-serif;
    font-size: 5rem; /* Título Gigante */
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Línea decorativa debajo del título (Estilo Neon) */
.banner-line {
    width: 120px;
    height: 6px;
    background: var(--accent-cyan); /* Cyan Neón */
    margin: 0 auto;
    border-radius: 3px;
    box-shadow: 0 0 15px var(--accent-cyan);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .page-banner {
        height: 40vh;
        min-height: 300px;
    }
    .banner-content h1 {
        font-size: 3.5rem;
    }
 }

        /* =========================================
           3. MENÚ STICKY DE FILTROS (Glassmorphism)
           ========================================= */
        .filter-menu-container {
            position: sticky;
            top: 75px; /* Altura del navbar aproximada */
            z-index: 100;
            display: flex;
            justify-content: center;
            padding: 15px 0;
            background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9) 50%, transparent);
            backdrop-filter: blur(10px);
            margin-bottom: 30px;
        }

        .filter-menu {
            display: flex; gap: 15px;
            background: rgba(255, 255, 255, 0.05);
            padding: 8px 15px;
            border-radius: 50px;
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .filter-btn {
            background: transparent; border: none;
            color: var(--text-muted); font-family: 'Poppins', sans-serif;
            font-size: 0.9rem; font-weight: 500; padding: 8px 25px;
            border-radius: 30px; cursor: pointer; transition: 0.4s var(--smooth-ease);
        }

        .filter-btn:hover { color: #fff; }
        .filter-btn.active {
            background: var(--accent-cyan); color: var(--bg-dark); font-weight: 600;
            box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
        }

/* =========================================
           4. MASONRY GRID (ESTILO PINTEREST)
           ========================================= */
        .gallery-container {
            max-width: 1400px; margin: 0 auto; padding: 0 20px 100px;
        }

        .bento-grid {
            /* Usamos CSS Columns para el efecto Pinterest fluido */
            column-count: 4;
            column-gap: 20px;
            width: 100%;
        }

        .gallery-item {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid rgba(255,255,255,0.05);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            
            /* PROPIEDADES CLAVE PARA MASONRY */
            break-inside: avoid; /* Evita que la tarjeta se parta entre dos columnas */
            margin-bottom: 20px; /* Reemplaza el gap vertical del grid */
            display: inline-block; /* Estabiliza el renderizado en columnas */
            width: 100%;
            
            /* Animación al filtrar */
            transition: all 0.5s var(--smooth-ease);
            transition: opacity 0.4s ease, transform 0.4s var(--premium-ease), visibility 0.4s;
        }
        
        /* Ocultar elementos filtrados */
        /* Ocultar elementos filtrados (Optimizado para Masonry) */
        .gallery-item.hide { 
            position: absolute;
            opacity: 0;
            transform: scale(0.5);
            pointer-events: none;
            visibility: hidden;
            margin: 0;
            padding: 0;
            border: none;
            height: 0;
        }

        .gallery-img {
            width: 100%; 
            height: auto; /* ¡CLAVE! Permite que la imagen tome su proporción natural */
            object-fit: cover;
            display: block; /* Elimina márgenes fantasma debajo de la imagen */
            transition: transform 0.8s var(--smooth-ease);
        }
        /* =========================================
           5. HOVER EFFECTS (El toque Premium)
           ========================================= */
        .gallery-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.2) 50%, transparent 100%);
            display: flex; flex-direction: column; justify-content: flex-end; padding: 25px;
            /* La capa baja por debajo del límite inicialmente */
            transform: translateY(100%);
            transition: transform 0.6s var(--premium-ease);
        }

        .gallery-item:hover .gallery-img { transform: scale(1.1); filter: brightness(0.7); }
        .gallery-item:hover .gallery-overlay { transform: translateY(0); }

        .item-category {
            color: var(--accent-cyan); font-size: 0.8rem; font-weight: 600;
            letter-spacing: 2px; text-transform: uppercase; margin-bottom: 5px;
        }
        .item-title { font-family: 'Teko', sans-serif; font-size: 2rem; color: #fff; line-height: 1; margin-bottom: 10px; }
        .item-likes { color: var(--accent-gold); font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }

        /* =========================================
           6. TARJETAS DE VIDEO (Diseño Especial)
           ========================================= */
        .item-video .gallery-img { filter: brightness(0.6); /* Más oscura por defecto */ }
        .play-btn {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1);
            width: 70px; height: 70px; border-radius: 50%;
            background: rgba(6, 182, 212, 0.2); border: 2px solid var(--accent-cyan);
            backdrop-filter: blur(5px); color: var(--accent-cyan);
            display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
            box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
            transition: all 0.5s var(--premium-ease); z-index: 2;
        }
        .item-video:hover .play-btn {
            transform: translate(-50%, -50%) scale(1.1);
            background: var(--accent-cyan); color: var(--bg-dark);
            box-shadow: 0 0 30px rgba(6, 182, 212, 0.8);
        }

        /* =========================================
           7. LIGHTBOX HÍBRIDO AVANZADO
           ========================================= */
        .lightbox-overlay {
            position: fixed; inset: 0; z-index: 2000;
            background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px);
            display: flex; align-items: center; justify-content: center;
            opacity: 0; pointer-events: none;
            transition: opacity 0.5s var(--smooth-ease);
        }
        .lightbox-overlay.active { opacity: 1; pointer-events: auto; }

        .lightbox-close {
            position: absolute; top: 30px; right: 40px;
            color: #fff; font-size: 2rem; cursor: pointer; transition: 0.3s;
            background: rgba(255,255,255,0.1); width: 50px; height: 50px;
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
        }
        .lightbox-close:hover { background: var(--accent-cyan); color: var(--bg-dark); transform: rotate(90deg); }

        .lightbox-content {
            max-width: 90vw; max-height: 85vh;
            border-radius: 10px; overflow: hidden;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(6, 182, 212, 0.1);
            transform: scale(0.9); transition: transform 0.6s var(--premium-ease);
        }
        .lightbox-overlay.active .lightbox-content { transform: scale(1); }

        .lightbox-content img, .lightbox-content video {
            width: 100%; height: 100%; max-height: 85vh; object-fit: contain; display: block;
        }

        /* =========================================
   SISTEMA DE LIKES Y FAVORITOS (INTERACCIÓN)
   ========================================= */
.interaction-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Poppins', sans-serif;
}

.like-count {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Efectos Hover */
.action-btn:hover {
    transform: scale(1.1);
}
.btn-like:hover { color: #f43f5e; } /* Rosa brillante */
.btn-fav:hover { color: var(--accent-gold); } /* Dorado */

/* ESTADOS ACTIVOS (Cuando el usuario ya dio like o favorito) */
.btn-like.active {
    color: #f43f5e;
    text-shadow: 0 0 15px rgba(244, 63, 94, 0.6); /* Resplandor Neón */
}
.btn-like.active i {
    animation: heartBeat 0.5s ease-in-out;
}

.btn-fav.active {
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

/* Animación de latido para el corazón */
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

        /* Responsive */
        @media (max-width: 992px) {
            .nav-links, .brand-phrase, .brand-separator { display: none; }
            .span-2-col { grid-column: span 1; } /* Quita columnas dobles en móvil */
            .span-2-row { grid-row: span 1; } /* Quita filas dobles en móvil */
            .gallery-header h1 { font-size: 3rem; }
        }

/* Responsive */
        @media (max-width: 1200px) {
            .bento-grid { column-count: 3; }
        }
        @media (max-width: 992px) {
            .nav-links, .brand-phrase, .brand-separator { display: none; }
            .gallery-header h1 { font-size: 3rem; }
            .bento-grid { column-count: 2; }
        }
        @media (max-width: 600px) {
            .bento-grid { column-count: 1; }
        }