/**
 * Mobile Enhancements - Expo 2 Ruedas 2025
 * Mejoras específicas para dispositivos móviles
 */

/* Mejoras para dispositivos móviles pequeños */
@media (max-width: 480px) {
    /* Hero Section - Mejor escalado */
    .hero-text h1 {
        font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 15px !important;
    }
    
    .hero-text .subtitle {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Event Info más compacta */
    .event-info {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .event-info h3 {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    .event-info p {
        font-size: 0.85rem !important;
        margin: 3px 0 !important;
    }
    
    /* Botones más accesibles en móvil */
    .cta-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }
    
    .btn {
        min-width: 250px !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
    
    /* Tarjetas de productos ultra optimizadas */
    .product-card-expo {
        max-width: 100% !important;
        margin: 0 auto 15px !important;
        border-radius: 8px !important;
    }
    
    .product-image-expo {
        height: 140px !important;
    }
    
    .product-info-expo {
        padding: 12px !important;
    }
    
    .product-name-expo {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
    }
    
    .product-category-expo {
        font-size: 0.7rem !important;
        margin-bottom: 10px !important;
    }
    
    .product-specs {
        gap: 6px !important;
        margin-bottom: 10px !important;
        flex-wrap: wrap !important;
    }
    
    .spec-item {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
        border-radius: 6px !important;
    }
    
    .feature-tag-expo {
        padding: 3px 8px !important;
        font-size: 0.65rem !important;
        border-radius: 8px !important;
    }
    
    .product-features-expo {
        gap: 6px !important;
        margin-bottom: 12px !important;
    }
    
    .product-price-expo {
        margin-bottom: 12px !important;
    }
    
    .price-expo {
        font-size: 1.1rem !important;
    }
    
    .price-label-expo {
        font-size: 0.65rem !important;
    }
    
    .product-actions-expo {
        gap: 8px !important;
    }
    
    .btn-expo-primary,
    .btn-expo-secondary {
        padding: 10px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }
    
    /* Grid de productos optimizado */
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 0 5px !important;
    }
    
    /* Filtros removidos - Solo 3 productos destacados */
    
    /* FAQ mejorado para móvil */
    .faq-expo-section .faq-question {
        padding: 15px !important;
    }
    
    .faq-expo-section .faq-question-text {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }
    
    .faq-expo-section .faq-answer-content {
        padding: 15px !important;
    }
    
    .faq-expo-section .faq-answer-content p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Testimoniales más compactos */
    .testimonial-card {
        padding: 20px 15px !important;
        margin: 12px 0 !important;
    }
    
    .testimonial-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }
    
    .testimonial-text {
        font-size: 0.95rem !important;
        padding-left: 15px !important;
    }
    
    /* Mapa de sucursales optimizado */
    .sucursales-map-preview {
        height: 250px !important;
        margin: 20px 0 !important;
    }
    
    .pin-tooltip {
        min-width: 240px !important;
        font-size: 0.8rem !important;
        max-width: 90vw !important;
    }
    
    .tooltip-content {
        padding: 12px !important;
    }
    
    .store-item {
        font-size: 0.8rem !important;
        padding: 8px 0 !important;
    }
    
    /* Stats más compactas */
    .sucursales-stats {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .stat-item {
        padding: 20px 15px !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem !important;
    }
    
    /* Contacto optimizado */
    .contact-info {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .contact-item {
        padding: 20px 15px !important;
    }
    
    .contact-item h4 {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }
    
    .contact-item p {
        font-size: 0.9rem !important;
    }
}

/* Mejoras para tablets en portrait */
@media (max-width: 768px) and (min-width: 481px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .product-card-expo {
        max-width: 100% !important;
    }
    
    .hero-text h1 {
        font-size: clamp(2rem, 4vw, 2.8rem) !important;
    }
    
    .filter-tabs {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    /* Filtros removidos - Solo 3 productos destacados */
}

/* Optimizaciones para touch */
@media (hover: none) and (pointer: coarse) {
    /* Áreas de toque más grandes */
    .btn, .filter-tab, .faq-question {
        min-height: 44px !important;
        padding: 12px 20px !important;
    }
    
    /* Eliminar hover effects problemáticos */
    .product-card-expo:hover,
    .benefit-card:hover,
    .testimonial-card:hover {
        transform: none !important;
    }
    
    .product-card-expo:hover .product-image-expo img {
        transform: none !important;
    }
    
    /* Mejor feedback visual para touch */
    .btn:active,
    .filter-tab:active,
    .faq-question:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* Tooltips más accesibles en touch */
    .pin-tooltip {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-width: 90vw !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        z-index: 10000 !important;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .product-card-expo,
    .benefit-card,
    .testimonial-card {
        transition: none !important;
    }
    
    .loading-spinner {
        animation: none !important;
    }
    
    .pin-pulse {
        animation: none !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .product-card-expo {
        border: 2px solid #000 !important;
    }
    
    .btn-expo-primary {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #fff !important;
    }
    
    .btn-expo-secondary {
        background: #fff !important;
        color: #000 !important;
        border: 2px solid #000 !important;
    }
    
    .filter-tab.active {
        background: #000 !important;
        color: #fff !important;
    }
}

/* Optimizaciones específicas para iOS */
@supports (-webkit-touch-callout: none) {
    .product-card-expo,
    .benefit-card,
    .testimonial-card {
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    body {
        -webkit-overflow-scrolling: touch !important;
    }
    
    .header {
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
    }
}

/* Mejoras para pantallas muy pequeñas */
@media (max-width: 320px) {
    .u__container {
        padding: 0 10px !important;
    }
    
    .hero-text h1 {
        font-size: 1.4rem !important;
    }
    
    .btn {
        min-width: 200px !important;
        font-size: 0.8rem !important;
    }
    
    .product-name-expo {
        font-size: 0.9rem !important;
    }
    
    .price-expo {
        font-size: 1rem !important;
    }
    
    /* Estilos de filtros removidos */
}
