/* ===== GALLERY SECTION ===== */
.gallery-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/peluqueria-belladona-blurr.webp') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.gallery-section .container {
    position: relative;
    z-index: 1;
}

.gallery-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-section .section-header h2 {
    color: #FFD700;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.gallery-section .subtitle {
    color: #FFFFFF;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #FFD700;
    color: #FFD700;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #FFD700;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover,
.view-btn.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
    transform: scale(1.1);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item.hidden {
    display: none;
}

/* Comparison Cards */
.comparison-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.comparison-card:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.comparison-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: col-resize;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: inset(0 0 0 50%);
}

.image-label {
    position: absolute;
    top: 15px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.before-label {
    left: 15px;
    border: 2px solid #FF6B35;
}

.after-label {
    right: 15px;
    border: 2px solid #008000;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #FFD700;
    cursor: col-resize;
    z-index: 3;
    transform: translateX(-50%);
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #FFD700;
    transform: translateX(-50%);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    color: #000000;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.slider-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* Card Content */
.card-content {
    padding: 25px;
}

.card-content h3 {
    color: #FFD700;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-content p {
    color: #FFFFFF;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Gallery Slider View */
.gallery-slider {
    margin-bottom: 60px;
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.slider-wrapper {
    overflow: hidden;
    border-radius: 15px;
}

.slider-item {
    display: none;
}

.slider-item.active {
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.9);
    border: none;
    border-radius: 50%;
    color: #000000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: #FFD700;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #FFD700;
    border-color: #FFD700;
}

/* Gallery CTA */
.gallery-cta {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin-top: 40px;
}

.cta-content h3 {
    color: #FFD700;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.cta-content p {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    border: 2px solid #FFD700;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .comparison-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }
    
    .gallery-controls {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-container {
        height: 300px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .cta-content h3 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-section .section-header h2 {
        font-size: 2.2rem;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .comparison-container {
        height: 250px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-content h3 {
        font-size: 1.2rem;
    }
    
    .gallery-cta {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .cta-content .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .slider-button {
        transform: translate(-50%, -50%) scale(1.2);
    }
    
    .filter-btn,
    .view-btn {
        transform: scale(1.05);
    }
}
