/* Keyframes Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -40px);
    }
    50% {
        transform: translate(-40px, 30px);
    }
    75% {
        transform: translate(-30px, -30px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Partículas flotantes */
@keyframes particleFloat {
    0% {
        transform: translate(0, 0);
        opacity: 0.8;
    }
    25% {
        transform: translate(15px, -20px);
        opacity: 0.6;
    }
    50% {
        transform: translate(-15px, 20px);
        opacity: 0.4;
    }
    75% {
        transform: translate(10px, -15px);
        opacity: 0.6;
    }
    100% {
        transform: translate(0, 0);
        opacity: 0.8;
    }
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00D4FF;
    border-radius: 50%;
    opacity: 0.8;
    animation: particleFloat 5s infinite ease-in-out;
}

.particle--small {
    width: 5px;
    height: 5px;
    animation-duration: 4s;
}

.particle--large {
    width: 12px;
    height: 12px;
    animation-duration: 6s;
}

/* Estrella fugaz */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 150px;
    background: linear-gradient(
        45deg, 
        rgba(0, 212, 255, 1) 0%,
        rgba(0, 212, 255, 1) 50%,
        transparent 100%
    );
    opacity: 0;
    top: 20%;
    left: 0;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(50, 215, 218, 0.8),
                0 0 20px rgba(148, 203, 203, 0.7);
    transform-origin: center;
}

.animate-shooting-star {
    animation: shootingStar 10s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-50deg) scale(0.5);
    }
    5% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
        transform: translateX(150vw) translateY(150vh) rotate(-45deg) scale(1);
    }
}

/* Animation Utility Classes */
.animate {
    animation-duration: 10s;
    animation-fill-mode: both;
}

.animate--slow {
    animation-duration: 1s;
}

.animate--fast {
    animation-duration: 0.3s;
}

.animate--delay-1 { animation-delay: 0.1s; }
.animate--delay-2 { animation-delay: 0.2s; }
.animate--delay-3 { animation-delay: 0.3s; }
.animate--delay-4 { animation-delay: 0.10s; }

.fade-in { animation-name: fadeIn; }
.slide-up { animation-name: slideUp; }
.slide-in { animation-name: slideIn; }
.scale-in { animation-name: scaleIn; }
.float { animation: float 10s ease-in-out infinite; }

/* Hover Effects */
.hover-scale {
    transition: var(--transition-transform);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: var(--transition-all);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-third);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-hidden {
    opacity: 0;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Variaciones de animación */
.reveal-fade {
    transform: none;
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-delay-1 {
    transition-delay: 0.2s;
}

.reveal-delay-2 {
    transition-delay: 0.4s;
}

.reveal-delay-3 {
    transition-delay: 0.6s;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .shooting-star {
        display: none;
        
    }

  
}