/**
 * Estilos para el carrusel de servicios en móvil
 */
@media (max-width: 768px) {
    /* Contenedor principal del carrusel */
    .mobile-services-carousel-container {
        width: 100%;
        position: relative;
        overflow: hidden;
        padding: 15px 0;
        margin-bottom: 30px;
    }
    
    /* Carrusel de servicios - Optimizado para móviles */
    .mobile-services-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        /* Removido scroll-behavior: smooth para mejorar rendimiento */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        padding: 15px 0;
        cursor: grab;
        /* Optimizaciones de rendimiento para móviles */
        will-change: scroll-position;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0); /* Forzar aceleración por hardware */
        contain: layout style paint; /* Optimización de contenido */
        -webkit-transform: translate3d(0, 0, 0); /* iOS optimization */
    }
    
    /* Ocultar scrollbar */
    .mobile-services-carousel::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-services-carousel:active {
        cursor: grabbing;
    }
    
    /* Estilo para las cards de servicios */
    .mobile-services-carousel .service-block {
        flex: 0 0 85%;
        min-width: 85%;
        width: 85%;
        margin: 0 10px;
        height: 450px;
        scroll-snap-align: center;
        border-radius: 15px;
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease, opacity 0.2s ease;
        will-change: transform, opacity;
        position: relative;
        overflow: hidden;
        /* Mejorar rendimiento */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Card activa */
    .mobile-services-carousel .service-block.active {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        opacity: 1;
    }
    
    /* Paginación */
    .mobile-services-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 25px;
        margin-bottom: 25px;
        width: 100%;
        z-index: 10;
        position: relative;
        padding: 10px 0;
    }
    
    /* Flechas de navegación */
    .mobile-pagination-arrow {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        transition: all 0.3s ease;
        opacity: 0.7;
    }
    
    .mobile-pagination-arrow:hover {
        opacity: 1;
        transform: scale(1.05);
    }
    
    .mobile-pagination-arrow:active {
        transform: scale(0.95);
    }
    
    .mobile-pagination-prev {
        margin-right: 15px;
    }
    
    .mobile-pagination-next {
        margin-left: 15px;
    }
    
    .mobile-pagination-dots-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-pagination-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-pagination-dot.active {
        background-color: #ffffff;
        transform: scale(1.3);
        box-shadow: 0 3px 8px rgba(255, 255, 255, 0.3);
    }
    
    /* Indicador de arrastre */
    .carousel-drag-indicator {
        position: absolute;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 14px;
        z-index: 100;
        pointer-events: none;
        opacity: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    
    .carousel-drag-indicator span {
        display: inline-block;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
}
