/* ============================================
   SERVICES SLIDER - SIN SCROLL HORIZONTAL
   ============================================ */

.services-section {
    padding: 3rem 1rem;
    background: var(--bg-dark);
    overflow: hidden; /* CRÍTICO: Evita scroll horizontal */
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.section-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
}

.services-slider {
    position: relative;
    overflow: hidden;
    max-width: 100vw; /* No exceder viewport */
    margin: 0 auto;
}

.slider-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 1rem 1rem 1rem;
    
    /* Evitar que se salga del contenedor */
    max-width: 100%;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

/* ========== SERVICE CARDS CON IMAGEN DE FONDO ========== */

.service-card-modern {
    flex: 0 0 300px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--gradient-card); /* Fallback si no hay imagen */
}

.service-card-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 205, 17, 0.3);
}

/* Imagen de fondo opcional */
.card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Si no hay imagen, usar color de fondo */
.service-card-modern:not(:has(.card-image)) {
    background: var(--gradient-card);
}

/* Overlay oscuro sobre la imagen */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--cat-yellow);
    color: var(--dark-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 205, 17, 0.4);
    z-index: 3;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.card-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========== SLIDER DOTS ========== */

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: var(--cat-yellow);
    width: 24px;
    border-radius: 4px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .service-card-modern {
        flex: 0 0 280px;
    }
}

@media (max-width: 480px) {
    .service-card-modern {
        flex: 0 0 260px;
        height: 380px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
}