/* ==========================================================================
   GALLERY STYLES - Servidiesel PREMIUM DARK
   ========================================================================== */

.gallery-page {
    background-color: #030712;
    color: white;
}

#gallery-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #030712 0%, #0f172a 100%);
    text-align: center;
    overflow: hidden;
}

#gallery-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
}

#gallery-hero h1 {
    color: white;
    font-size: clamp(2.8rem, 10vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    letter-spacing: -2px;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff6a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

#gallery-hero p {
    color: #94A3B8;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.badge {
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-orange);
    border: 1px solid rgba(255, 140, 0, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 25px;
    display: inline-flex;
    text-transform: uppercase;
}

#gallery-content {
    padding: 20px 0 100px;
    background-color: #030712;
}

/* Grid de Galería Moderno */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    background: #111827;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.gallery-item-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Overlay sutil al hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    z-index: 2;
    text-align: left;
    margin: 0;
}

/* Estilos específicos para Videos */
.video-thumbnail-wrapper {
    position: relative;
    height: 100%;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.5);
}

.gallery-item:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: #ff9d26;
}

/* Lightbox Refinado */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(10px);
    padding: 40px;
    display: none; /* Se maneja por JS */
}

.lightbox.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

.video-iframe {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover { transform: scale(1.2) rotate(90deg); color: var(--primary-orange); }

/* CTA Gallery Premium */
#cta-gallery {
    padding: 100px 0;
    background-color: #030712;
}

#cta-gallery .container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 80px 40px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}

#cta-gallery h2 {
    color: white;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    font-weight: 800;
}

#cta-gallery p {
    color: #94A3B8;
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#cta-gallery .btn {
    background: var(--primary-orange);
    color: white !important;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.4s ease;
    display: inline-block;
    border: none;
}

#cta-gallery .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 140, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .filter-buttons {
        border-radius: 20px;
        padding: 8px;
        gap: 8px;
    }
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    #gallery-hero { padding: 80px 0 60px; }
    .lightbox { padding: 20px; }
}
