/* ==========================================================================
   CSS STYLE - galeria.css
   Estilos premium para la Galería de la Academia STEAMS
   ========================================================================== */

:root {
    --galeria-primary: #2563eb;
    --galeria-primary-hover: #1e40af;
    --galeria-accent: #3b82f6;
    --galeria-text-dark: #1e293b;
    --galeria-text-slate: #64748b;
    --galeria-bg-light: #f8fafc;
    --galeria-border: #e2e8f0;
    --galeria-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --galeria-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body.galeria-page {
    background-color: #ffffff;
    color: var(--galeria-text-dark);
}

/* ========================================
   HERO BANNER
   ======================================== */
.galeria-hero {
    height: 45vh;
    min-height: 300px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.85)), url('../img/IEEEUnivalle/IEEE1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 80px;
}

.galeria-hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.galeria-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    color: white;
    letter-spacing: -0.5px;
}

.galeria-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.galeria-breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.galeria-breadcrumb a:hover {
    color: var(--galeria-accent);
}

.galeria-breadcrumb span {
    margin: 0 10px;
    opacity: 0.6;
}

/* ========================================
   GALLERY FILTER CONTROLS
   ======================================== */
.galeria-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid var(--galeria-border);
    color: var(--galeria-text-slate);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--galeria-shadow);
}

.filter-btn:hover {
    background: var(--galeria-bg-light);
    color: var(--galeria-primary);
    border-color: var(--galeria-primary);
}

.filter-btn.active {
    background: var(--galeria-primary);
    color: white;
    border-color: var(--galeria-primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* ========================================
   GALLERY GRID Layout
   ======================================== */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.galeria-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--galeria-shadow);
    border: 1px solid var(--galeria-border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.galeria-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: all 0.3s ease;
}

.galeria-item-info {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.item-category {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--galeria-accent);
    margin-bottom: 5px;
    display: inline-block;
}

.item-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* Hover effects */
.galeria-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--galeria-shadow-hover);
    border-color: rgba(37, 99, 235, 0.15);
}

.galeria-item:hover img {
    transform: scale(1.08);
}

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

.galeria-item:hover .galeria-item-info {
    transform: translateY(0);
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.lightbox-close:hover {
    color: white;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.lightbox-arrow:hover {
    color: white;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .lightbox-prev {
        left: -40px;
    }
    .lightbox-next {
        right: -40px;
    }
}

@media (max-width: 768px) {
    .galeria-hero {
        height: 35vh;
        min-height: 250px;
    }
    .galeria-hero h1 {
        font-size: 32px;
    }
    .galeria-section {
        padding: 50px 0;
    }
    .filter-controls {
        gap: 10px;
        margin-bottom: 35px;
    }
    .filter-btn {
        padding: 8px 18px;
        font-size: 14px;
    }
    .lightbox-prev, .lightbox-next {
        top: auto;
        bottom: -60px;
        transform: none;
    }
    .lightbox-prev {
        left: 30%;
    }
    .lightbox-next {
        right: 30%;
    }
}
