/* ===== CSS OPTIMIZADO PARA MÓVIL ===== */
/* Aplicar solo en dispositivos móviles para mejor rendimiento */

@media screen and (max-width: 768px) {
    
    /* ===== CONFIGURACIÓN BASE MÓVIL ===== */
    :root {
        /* Tamaños de fuente optimizados para móvil */
        --font-size-xs: 0.75rem;
        --font-size-sm: 0.875rem;
        --font-size-base: 1rem;
        --font-size-lg: 1.125rem;
        --font-size-xl: 1.25rem;
        --font-size-2xl: 1.5rem;
        --font-size-3xl: 1.875rem;
        --font-size-4xl: 2.25rem;
        
        /* Espaciado optimizado */
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }
    
    /* ===== UTILIDADES MÓVILES ===== */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* ===== NAVEGACIÓN MÓVIL OPTIMIZADA ===== */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--bg-primary) !important;
        backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(124, 152, 133, 0.2);
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(45, 62, 45, 0.3) !important;
        transition: all 0.3s ease !important;
    }
    

    
    /* Forzar que el header siempre sea oscuro */
    .header[style*="background"] {
        background: var(--bg-primary) !important;
    }
    
    .nav {
        padding: 1.2rem 1.5rem;
        min-height: 70px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .nav-brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .nav-logo {
          width: 55px;
          height: 55px;
          object-fit: contain;
          filter: brightness(1.1);
      }
    
    .nav-brand h2 {
        font-size: 1.5rem;
        margin: 0;
        background: linear-gradient(135deg, #7c9885 0%, #8fbc8f 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--bg-primary);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 3rem 1rem 2rem;
        gap: 1.5rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        list-style: none;
        margin: 0;
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
        border-right: 1px solid rgba(124, 152, 133, 0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 1.25rem 1.5rem;
        font-size: 1.125rem;
        font-weight: 600;
        border-radius: 12px;
        color: var(--text-primary);
        text-decoration: none;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(124, 152, 133, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(124, 152, 133, 0.3), transparent);
        transition: left 0.5s;
    }
    
    .nav-menu a:hover::before,
    .nav-menu a:focus::before {
        left: 100%;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus,
    .nav-menu a:active {
        background: linear-gradient(135deg, #7c9885 0%, #8fbc8f 100%);
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(124, 152, 133, 0.4);
        border-color: rgba(124, 152, 133, 0.5);
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, rgba(124, 152, 133, 0.8) 0%, rgba(143, 188, 143, 0.8) 100%);
        border: 2px solid rgba(124, 152, 133, 0.4);
        border-radius: 10px;
        cursor: pointer;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(124, 152, 133, 0.4);
        z-index: 1001;
    }
    
    .nav-toggle:hover {
        background: var(--gradient-primary);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(124, 152, 133, 0.5);
    }
    
    .nav-toggle:active {
        transform: scale(0.95);
    }
    
    .nav-toggle span {
        width: 22px;
        height: 3px;
        background: var(--text-primary);
        margin: 2px 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
        transform-origin: center;
    }
    
    .nav-toggle.active {
        background: linear-gradient(135deg, var(--error-color) 0%, #dc2626 100%);
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* ===== HERO MÓVIL ===== */
    .hero {
        padding: 110px 0 50px;
        min-height: 100vh;
        background: 
            linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%),
            radial-gradient(circle at 20% 80%, rgba(124, 152, 133, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(143, 188, 143, 0.15) 0%, transparent 50%);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
        color: var(--text-secondary);
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
        text-align: center;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, rgba(124, 152, 133, 0.8) 0%, rgba(143, 188, 143, 0.8) 100%);
        color: #ffffff;
        border: 2px solid rgba(124, 152, 133, 0.4);
        box-shadow: 0 4px 15px rgba(124, 152, 133, 0.2);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(124, 152, 133, 0.4);
    }
    
    .btn-secondary {
        background: transparent;
        color: var(--text-primary);
        border: 2px solid rgba(124, 152, 133, 0.5);
    }
    
    .btn-secondary:hover {
        background: rgba(124, 152, 133, 0.1);
        border-color: rgba(124, 152, 133, 0.8);
    }
    
    /* ===== SERVICIOS MÓVIL ===== */
    .services {
        padding: 3rem 0;
        background: 
            linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%),
            radial-gradient(circle at 20% 80%, rgba(124, 152, 133, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(143, 188, 143, 0.15) 0%, transparent 50%);
    }
    
    .services-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }
    
    /* Ocultar carrusel desktop en móvil */
    .services-carousel {
        display: none;
    }
    
    /* Mostrar servicios en grid móvil */
    .mobile-services-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    /* ===== CONTROLES DEL CARRUSEL MÓVIL ===== */
    .mobile-carousel-track {
        display: flex;
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        width: 600%; /* 6 cards × 100% each */
        will-change: transform;
        transform: translate3d(0, 0, 0); /* Forzar aceleración por hardware */
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    .mobile-carousel-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-top: 40px;
        margin-bottom: 20px;
        padding: 20px 30px;
        position: relative;
        z-index: 10;
        overflow: visible;
        min-height: 90px;
    }
    
    .mobile-carousel-btn {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        max-width: 50px;
        max-height: 50px;
        background: var(--gradient-primary);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        color: var(--text-primary);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
        font-size: 1.2rem;
        box-shadow: 0 4px 15px rgba(124, 152, 133, 0.4);
        position: relative;
        overflow: visible;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        will-change: transform;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
        /* Específico para iOS */
        font-family: "Font Awesome 6 Free", sans-serif;
        font-weight: 900;
    }
    
    .mobile-carousel-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
        border-radius: 50%;
        overflow: hidden;
    }
    
    .mobile-carousel-btn:hover::before,
    .mobile-carousel-btn:focus::before {
        left: 100%;
    }
    
    .mobile-carousel-btn:hover,
    .mobile-carousel-btn:focus {
        background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
        border-color: rgba(255, 255, 255, 0.5);
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(124, 152, 133, 0.5);
    }
    
    .mobile-carousel-btn:active {
        transform: scale(0.95);
    }
    
    .mobile-carousel-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        background: rgba(124, 152, 133, 0.3);
    }
    
    /* Estilos específicos para iconos Font Awesome en iOS */
    .mobile-carousel-btn i {
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        font-style: normal !important;
        font-variant: normal !important;
        text-rendering: auto !important;
        line-height: 1 !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        display: inline-block !important;
        font-size: 1.2rem !important;
    }
    
    /* Fallback para iOS si Font Awesome no carga */
    .mobile-carousel-btn.prev::after {
        content: "‹";
        font-size: 1.5rem;
        font-weight: bold;
        display: none;
    }
    
    .mobile-carousel-btn.next::after {
        content: "›";
        font-size: 1.5rem;
        font-weight: bold;
        display: none;
    }
    
    /* Mostrar fallback si el icono no se carga */
    .mobile-carousel-btn i:empty + .mobile-carousel-btn::after,
    .mobile-carousel-btn:not(:has(i))::after {
        display: inline-block;
    }
    
    /* ===== ESTILOS ESPECÍFICOS PARA IPHONE 12 PRO (390x844) ===== */
    @media screen and (max-width: 390px) and (min-width: 375px) and (max-height: 844px) and (min-height: 800px) {
        .mobile-carousel-btn {
            width: 42px;
            height: 42px;
            min-width: 42px;
            min-height: 42px;
            max-width: 42px;
            max-height: 42px;
            font-size: 1rem;
            box-shadow: 0 2px 8px rgba(124, 152, 133, 0.3);
            border-width: 1.5px;
        }
        
        .mobile-carousel-btn i {
            font-size: 1rem !important;
        }
        
        .mobile-carousel-btn:hover,
        .mobile-carousel-btn:focus {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(124, 152, 133, 0.4);
        }
        
        .mobile-carousel-btn:active {
            transform: scale(0.98);
            box-shadow: 0 1px 4px rgba(124, 152, 133, 0.2);
        }
        
        .mobile-carousel-btn.prev::after,
         .mobile-carousel-btn.next::after {
             font-size: 1.2rem;
             color: var(--text-white);
             font-weight: bold;
             text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
         }
         
         /* Mejorar visibilidad de iconos Font Awesome en iPhone 12 Pro */
         .mobile-carousel-btn i {
             color: var(--text-white) !important;
             text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
             -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.8) !important;
         }
         
         /* Fallback más visible para iPhone 12 Pro */
         .mobile-carousel-btn.prev {
             position: relative;
         }
         
         .mobile-carousel-btn.next {
             position: relative;
         }
         
         /* Si Font Awesome falla, mostrar fallback inmediatamente */
         .mobile-carousel-btn.prev:not(:has(i:not(:empty)))::before {
             content: "‹";
             position: absolute;
             top: 50%;
             left: 50%;
             transform: translate(-50%, -50%);
             font-size: 1.4rem;
             font-weight: bold;
             color: var(--text-white);
             text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
             z-index: 1;
         }
         
         .mobile-carousel-btn.next:not(:has(i:not(:empty)))::before {
             content: "›";
             position: absolute;
             top: 50%;
             left: 50%;
             transform: translate(-50%, -50%);
             font-size: 1.4rem;
             font-weight: bold;
             color: var(--text-primary);
             text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
             z-index: 1;
         }
        
        /* Header y navegación específicos para iPhone 12 Pro */
        .nav {
            padding: 1rem 1.2rem;
            min-height: 65px;
        }
        
        .nav-logo {
            width: 48px;
            height: 48px;
        }
        
        .nav-brand h2 {
            font-size: 1.3rem;
        }
        
        .nav-menu {
            top: 85px;
            height: calc(100vh - 85px);
            padding: 2rem 1rem 1.5rem;
        }
        
        .nav-menu li {
            margin: 0.8rem 0;
        }
        
        .nav-menu a {
            font-size: 1.1rem;
            padding: 0.8rem 1.5rem;
        }
        
        /* Botón hamburguesa más pequeño */
        .nav-toggle {
            width: 35px;
            height: 35px;
        }
        
        .nav-toggle span {
            width: 20px;
            height: 2px;
        }
        
        .nav-toggle span:nth-child(1) {
            top: 8px;
        }
        
        .nav-toggle span:nth-child(2) {
            top: 16px;
        }
        
        .nav-toggle span:nth-child(3) {
             top: 24px;
         }
         
         /* Indicadores del carrusel más pequeños para iPhone 12 Pro */
         .mobile-indicator {
             width: 38px;
             height: 38px;
             min-width: 38px;
             min-height: 38px;
             max-width: 38px;
             max-height: 38px;
         }
         
         .mobile-indicator::before {
             width: 10px;
             height: 10px;
         }
         
         .mobile-indicator:hover::before {
             transform: scale(1.1);
         }
         
         .mobile-indicator.active::before {
             transform: scale(1.1);
         }
         
         .mobile-indicator.active {
             transform: scale(1.2);
         }
         
         .mobile-indicator:hover,
         .mobile-indicator:focus {
             transform: scale(1.1);
         }
         
         .mobile-carousel-indicators {
              gap: 8px;
          }
      }
      
      /* ===== FALLBACK ADICIONAL PARA IPHONE 12 PRO ===== */
      @media screen and (max-width: 414px) and (max-height: 896px) {
          .mobile-carousel-btn {
              width: 42px !important;
              height: 42px !important;
              min-width: 42px !important;
              min-height: 42px !important;
              max-width: 42px !important;
              max-height: 42px !important;
              font-size: 1rem !important;
              box-shadow: 0 2px 8px rgba(124, 152, 133, 0.3) !important;
              border-width: 1.5px !important;
          }
          
          .mobile-carousel-btn i {
              font-size: 1rem !important;
              color: var(--text-primary) !important;
              text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
          }
          
          .nav {
              padding: 1rem 1.2rem !important;
              min-height: 65px !important;
          }
          
          .nav-logo {
              width: 48px !important;
              height: 48px !important;
          }
          
          .mobile-indicator {
              width: 38px !important;
              height: 38px !important;
              min-width: 38px !important;
              min-height: 38px !important;
              max-width: 38px !important;
              max-height: 38px !important;
          }
      }
    
    .mobile-carousel-indicators {
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    .mobile-indicator {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        max-width: 44px;
        max-height: 44px;
        border-radius: 50%;
        background: transparent;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid transparent;
        position: relative;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        will-change: transform, background-color;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
        aspect-ratio: 1 / 1;
    }
    
    .mobile-indicator::before {
        content: '';
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-indicator:hover::before {
        background: rgba(124, 152, 133, 0.8);
        transform: scale(1.2);
    }
    
    .mobile-indicator.active::before {
        background: linear-gradient(135deg, rgba(124, 152, 133, 0.8) 0%, rgba(143, 188, 143, 0.8) 100%);
        box-shadow: 0 0 15px rgba(124, 152, 133, 0.4);
        transform: scale(1.2);
    }
    
    .mobile-indicator.active {
        border-color: rgba(255, 255, 255, 0.6);
        transform: scale(1.3);
    }
    
    .mobile-indicator:hover,
    .mobile-indicator:focus {
        background: rgba(124, 152, 133, 0.8);
        transform: scale(1.2);
    }
    
    .mobile-service-card {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        border: 2px solid rgba(124, 152, 133, 0.3);
        padding: 1.5rem;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(124, 152, 133, 0.15);
        text-align: center;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        will-change: transform;
        min-width: 100%;
        flex-shrink: 0;
    }
    
    .mobile-service-card:hover {
        transform: translate3d(0, -5px, 0);
        box-shadow: 0 8px 25px rgba(124, 152, 133, 0.25);
        border-color: rgba(124, 152, 133, 0.5);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .mobile-service-icon {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, rgba(124, 152, 133, 0.2) 0%, rgba(143, 188, 143, 0.2) 100%);
        border: 2px solid rgba(124, 152, 133, 0.4);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        color: #7c9885;
        font-size: 1.5rem;
        box-shadow: 0 4px 15px rgba(124, 152, 133, 0.15);
    }
    
    .mobile-service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }
    
    .mobile-service-card p {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .mobile-service-features {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .mobile-feature-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        color: var(--text-secondary);
    }
    
    .mobile-feature-item i {
        color: var(--primary-color);
        font-size: 0.75rem;
    }
    
    .mobile-service-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .mobile-service-tags span {
        background: rgba(124, 152, 133, 0.2);
        color: var(--primary-color);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 500;
        border: 1px solid rgba(124, 152, 133, 0.3);
    }
    
    .mobile-btn-service {
        background: linear-gradient(135deg, rgba(124, 152, 133, 0.8) 0%, rgba(143, 188, 143, 0.8) 100%);
        color: #ffffff;
        border: 2px solid rgba(124, 152, 133, 0.4);
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
        box-shadow: 0 4px 15px rgba(124, 152, 133, 0.2);
    }
    
    .mobile-btn-service:hover {
        background: linear-gradient(135deg, rgba(164, 195, 162, 0.9) 0%, rgba(124, 152, 133, 0.9) 100%);
        transform: translate3d(0, -2px, 0);
        box-shadow: 0 6px 20px rgba(124, 152, 133, 0.3);
        border-color: rgba(124, 152, 133, 0.6);
    }
    
    /* ===== ABOUT MÓVIL ===== */
    .about {
        padding: 3rem 0;
        background: 
            linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%),
            radial-gradient(circle at 20% 80%, rgba(124, 152, 133, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(143, 188, 143, 0.15) 0%, transparent 50%);
    }
    
    .about-content-improved {
        margin-top: 2rem;
    }
    
    .about-story-section {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .story-card {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(124, 152, 133, 0.2);
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(124, 152, 133, 0.2);
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        transition: all 0.3s ease;
    }
    
    .story-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(124, 152, 133, 0.3);
        border-color: rgba(124, 152, 133, 0.4);
    }
    
    .story-number {
        background: var(--gradient-primary);
        color: var(--text-primary) !important;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700 !important;
        font-size: 1.125rem !important;
        flex-shrink: 0;
        box-shadow: 0 4px 15px rgba(124, 152, 133, 0.3);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        z-index: 10;
        position: relative;
    }
    
    .story-content h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }
    
    .story-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }
    
    /* ===== CONTACTO MÓVIL ===== */
    .contact {
        padding: 3rem 0;
        background: 
            linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%),
            radial-gradient(circle at 20% 80%, rgba(124, 152, 133, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(143, 188, 143, 0.15) 0%, transparent 50%);
    }
    
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-methods {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-method {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(124, 152, 133, 0.2);
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        gap: 1rem;
        transition: all 0.3s ease;
    }
    
    .contact-method:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(124, 152, 133, 0.3);
        border-color: rgba(124, 152, 133, 0.4);
    }
    
    .method-icon {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #7c9885 0%, #8fbc8f 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 1.25rem;
        flex-shrink: 0;
        box-shadow: 0 4px 15px rgba(124, 152, 133, 0.3);
    }
    
    .method-content h4 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
        color: var(--text-primary);
    }
    
    .method-content p {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin-bottom: 0.25rem;
    }
    
    .response-time {
        font-size: 0.75rem;
        color: var(--primary-color);
        font-weight: 500;
    }
    
    /* ===== FORMULARIO MÓVIL ===== */
    .contact-form {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(124, 152, 133, 0.2);
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(124, 152, 133, 0.2);
    }
    
    .form-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }
    
    .form-header p {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }
    
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        border: 2px solid rgba(124, 152, 133, 0.3);
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color 0.3s ease;
        background: rgba(255, 255, 255, 0.8);
        color: var(--text-primary);
        backdrop-filter: blur(10px);
    }
    
    /* Mejorar legibilidad del select en móvil */
    .form-group select {
        background: rgba(255, 255, 255, 0.8);
        color: var(--text-primary);
    }
    
    .form-group select option {
        background: var(--bg-primary);
        color: var(--text-primary);
        padding: 8px;
    }
    
    .form-group select option:hover,
    .form-group select option:focus {
        background: var(--bg-primary);
        color: var(--text-primary);
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(124, 152, 133, 0.2);
    }
    
    .form-group textarea {
        resize: vertical;
        min-height: 120px;
    }
    
    .word-counter {
        text-align: right;
        font-size: 0.75rem;
        color: var(--text-secondary);
        margin-top: 0.25rem;
    }
    
    .form-actions {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .form-actions .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, #7c9885 0%, #8fbc8f 100%);
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(124, 152, 133, 0.3);
    }
    
    .form-actions .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(124, 152, 133, 0.4);
    }
    
    /* ===== FOOTER MÓVIL CENTRADO ===== */
    .footer-compact {
        background: 
            linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%),
            radial-gradient(circle at 50% 50%, rgba(124, 152, 133, 0.1) 0%, transparent 70%);
        color: var(--text-primary);
        padding: 2rem 0 1rem;
        border-top: 1px solid rgba(124, 152, 133, 0.2);
        text-align: center;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
        justify-content: center;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-brand {
        text-align: center;
        width: 100%;
    }
    
    .footer-brand-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo {
        width: 45px;
        height: 45px;
        object-fit: contain;
        filter: brightness(1.1);
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
        margin: 0;
        background: linear-gradient(135deg, #7c9885 0%, #8fbc8f 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-align: center;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
        color: var(--text-secondary);
        text-align: center;
        margin: 0 auto;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
    }
    
    .footer-section {
        text-align: center;
        width: 100%;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
        text-align: center;
    }
    
    .footer-section a,
    .footer-section span {
        display: block;
        font-size: 0.9rem;
        color: var(--text-secondary);
        text-decoration: none;
        margin-bottom: 0.25rem;
        transition: color 0.3s ease;
        text-align: center;
    }
    
    .footer-section a:hover {
        color: var(--primary-color);
    }
    
    .footer-social {
        display: flex;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        background: rgba(124, 152, 133, 0.2);
        border: 1px solid rgba(124, 152, 133, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .social-icon:hover {
        background: linear-gradient(135deg, #7c9885 0%, #8fbc8f 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(124, 152, 133, 0.3);
    }
    
    .footer-bottom {
        border-top: 1px solid rgba(124, 152, 133, 0.2);
        margin-top: 1.5rem;
        padding-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        color: var(--text-secondary);
        text-align: center;
        margin: 0;
    }
    
    .footer-legal {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .footer-legal a {
        font-size: 0.8rem;
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.3s ease;
        text-align: center;
    }
    
    .footer-legal a:hover {
        color: var(--primary-color);
    }
    
    /* ===== OPTIMIZACIONES DE RENDIMIENTO ===== */
    
    /* Reducir animaciones para mejor rendimiento */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }
    
    /* Optimizar para conexiones lentas */
    @media (max-width: 480px) {
        .container {
            padding: 0 0.75rem;
        }
        
        .hero-title {
            font-size: 1.75rem;
        }
        
        .section-title {
            font-size: 1.75rem;
        }
        
        .mobile-service-card {
            padding: 1rem;
        }
        
        .story-card {
            padding: 1rem;
        }
        
        .contact-form {
            padding: 1rem;
        }
        
        .footer-content {
            max-width: 300px;
            padding: 0 1rem;
        }
    }
}

/* ===== MEJORAS PARA DISPOSITIVOS TÁCTILES ===== */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .mobile-btn-service,
    .nav-menu a {
        min-height: 44px; /* Tamaño mínimo recomendado para táctil */
    }
    
    /* Eliminar efectos hover en dispositivos táctiles */
    .btn:hover,
    .mobile-btn-service:hover,
    .nav-menu a:hover {
        transform: none;
    }
}