/*
 * ============================================
 * GRUPO DEGA - Página de Galería
 * ============================================
 */

/* ============================================
   HERO SECTION - GRANDE COMO INICIO
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(233, 160, 51, 0.2);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius-xl);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero h1 {
    color: var(--text-light);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FILTROS DE GALERÍA
   ============================================ */

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius-xl);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-secondary);
    border-color: var(--secondary-color);
    color: var(--text-light);
}

/* ============================================
   GALLERY GRID
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.gallery-overlay i {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
    transform: scale(0);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-overlay span {
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.stat-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: var(--gradient-secondary);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.cta-section p {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-section .btn-outline {
    border-color: var(--text-light);
}

.cta-section .btn-outline:hover {
    background: var(--text-light);
    color: var(--secondary-color);
}

/* ============================================
   RESPONSIVE - GALERÍA
   ============================================ */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        padding-bottom: 80px;
    }

    .hero-content {
        margin-top: -60px;
    }

    .scroll-indicator {
        bottom: 25px;
    }

    .scroll-indicator span {
        font-size: 0.75rem;
    }

    .scroll-indicator i {
        font-size: 1rem;
    }

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-item::after {
        display: none;
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.scroll-indicator a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
}

.scroll-indicator span {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator:hover a {
    color: var(--secondary-color);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius-md);
    transition: opacity 0.2s ease;
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 2010;
    background: rgba(0, 0, 0, 0.4);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    color: var(--secondary-color);
    background: rgba(233, 160, 51, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 20px;
    transition: var(--transition-normal);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
}

.lightbox-nav:hover {
    color: var(--secondary-color);
    background: rgba(233, 160, 51, 0.3);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-counter {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 25px;
    border-radius: var(--border-radius-xl);
    z-index: 2010;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }

    .lightbox-counter {
        bottom: 25px;
    }

    .scroll-indicator {
        bottom: 20px;
    }
}

/* ============================================
   PAGINACIÓN DE GALERÍA
   ============================================ */

.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: nowrap;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.pagination-num {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    background: transparent;
    color: var(--text-dark);
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pagination-num:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.pagination-num.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
}

.pagination-info {
    display: none;
}

/* Clase para items filtrados */
.gallery-item.filtered-out {
    display: none !important;
}

/* Responsividad de paginación en móvil */
@media (max-width: 480px) {
    .gallery-pagination {
        gap: 6px;
    }

    .pagination-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .pagination-numbers {
        gap: 5px;
    }

    .pagination-num {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}