/* Estilos adicionales para el menú móvil y mejoras responsive */

/* Menú móvil activo */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        display: block;
        margin: 0.5rem 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Mejoras para la animación de carga */
.launch-message {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 162, 97, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 162, 97, 0);
    }
}

/* Estilos para notificaciones */
.notification {
    font-family: 'Roboto', sans-serif;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mejoras para el formulario */
.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.1);
}

.newsletter-form button:active {
    transform: translateY(0);
}

/* Efectos hover adicionales */
.feature:hover i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.time-unit:hover span {
    color: white;
    transition: color 0.3s ease;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejoras de accesibilidad */
.nav-link:focus,
.newsletter-form input:focus,
.newsletter-form button:focus,
.social-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Preloader adicional */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos responsive para el fondo outdoor */
@media (max-width: 768px) {
    .outdoor-background {
        overflow: hidden;
    }
    
    .mountains-layer {
        width: 150%;
        animation-duration: 20s;
    }
    
    .cloud {
        transform: scale(0.7);
    }
    
    .cloud-1 { animation-duration: 20s; }
    .cloud-2 { animation-duration: 25s; }
    .cloud-3 { animation-duration: 30s; }
    .cloud-4 { animation-duration: 15s; }
    
    .star {
        width: 1px;
        height: 1px;
    }
    
    .mist {
        height: 60px;
        animation-duration: 15s;
    }
}

@media (max-width: 480px) {
    .mountains-layer {
        width: 200%;
        animation-duration: 25s;
    }
    
    .cloud {
        transform: scale(0.5);
    }
    
    .mist {
        height: 40px;
    }
    
    .sky-gradient {
        animation-duration: 30s;
    }
}

/* Optimizaciones de rendimiento para dispositivos móviles */
@media (max-width: 768px) {
    .outdoor-background * {
        will-change: transform;
        backface-visibility: hidden;
        transform-style: preserve-3d;
    }
}
