/* ============================================
   ASQUEROSAMENTERICO PV - ANIMACIONES AAA
   Efectos visuales avanzados y dinámicos
   ============================================ */

/* ========== KEYFRAME ANIMATIONS ========== */

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Zoom In */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce In */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 229, 255, 0.8);
        transform: scale(1.05);
    }
}

/* Neon Flicker */
@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 10px rgba(0, 229, 255, 0.8),
            0 0 20px rgba(0, 229, 255, 0.5),
            0 0 40px rgba(0, 229, 255, 0.3);
    }
    20%, 24%, 55% {
        text-shadow: 
            0 0 5px rgba(0, 229, 255, 0.3);
    }
}

/* Neon Glow Animation */
@keyframes neonGlow {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(0, 229, 255, 0.4),
            inset 0 0 10px rgba(0, 229, 255, 0.1);
        text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(0, 229, 255, 0.8),
            inset 0 0 20px rgba(0, 229, 255, 0.3);
        text-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
    }
}

/* Rotating Glow */
@keyframes rotatingGlow {
    0% {
        box-shadow: 
            0 0 0 0 rgba(0, 229, 255, 0.7),
            0 0 0 0 rgba(0, 255, 204, 0.5),
            0 0 0 0 rgba(123, 97, 255, 0.3);
    }
    100% {
        box-shadow: 
            0 0 0 40px rgba(0, 229, 255, 0),
            0 0 0 50px rgba(0, 255, 204, 0),
            0 0 0 60px rgba(123, 97, 255, 0);
    }
}

/* Border Glow */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(0, 229, 255, 0.3);
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
    }
    50% {
        border-color: rgba(0, 229, 255, 0.8);
        box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    }
}

/* Floating Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Spin Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Jello Shake */
@keyframes jello {
    0%, 11.1%, 100% {
        transform: skewX(0deg) skewY(0deg);
    }
    22.2% {
        transform: skewX(-12.5deg) skewY(-12.5deg);
    }
    33.3% {
        transform: skewX(6.25deg) skewY(6.25deg);
    }
    44.4% {
        transform: skewX(-3.125deg) skewY(-3.125deg);
    }
    55.5% {
        transform: skewX(1.5625deg) skewY(1.5625deg);
    }
    66.6% {
        transform: skewX(-0.78125deg) skewY(-0.78125deg);
    }
    77.7% {
        transform: skewX(0.390625deg) skewY(0.390625deg);
    }
    88.8% {
        transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
    }
}

/* Heart Beat */
@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
}

/* Wiggle */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    75% {
        transform: rotate(-2deg);
    }
}

/* Scale Pulse */
@keyframes scalePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Glitch Effect */
@keyframes glitch {
    0% {
        text-shadow: 3px 0 0 #ff4655, -3px 0 0 #00e5ff;
    }
    50% {
        text-shadow: -3px 0 0 #ff4655, 3px 0 0 #00e5ff;
    }
    100% {
        text-shadow: 3px 0 0 #ff4655, -3px 0 0 #00e5ff;
    }
}

/* Cyber Pulse */
@keyframes cyberPulse {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(0, 229, 255, 0.5),
            0 0 10px rgba(0, 229, 255, 0.3),
            inset 0 0 5px rgba(0, 229, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(0, 229, 255, 0.8),
            0 0 30px rgba(0, 229, 255, 0.5),
            inset 0 0 10px rgba(0, 229, 255, 0.2);
    }
}

/* Gradient Flow */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Rainbow Gradient */
@keyframes rainbow {
    0% {
        background: linear-gradient(135deg, #ff4655 0%, #00e5ff 50%, #7b61ff 100%);
    }
    50% {
        background: linear-gradient(135deg, #00e5ff 0%, #7b61ff 50%, #00ffcc 100%);
    }
    100% {
        background: linear-gradient(135deg, #7b61ff 0%, #00ffcc 50%, #ff4655 100%);
    }
}

/* Strobe Effect */
@keyframes strobe {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Shimmer */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Text Glow */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(0, 229, 255, 0.5),
            0 0 10px rgba(0, 229, 255, 0.3);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(0, 229, 255, 0.8),
            0 0 20px rgba(0, 229, 255, 0.5),
            0 0 30px rgba(0, 229, 255, 0.3);
    }
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ANIMATION UTILITY CLASSES ========== */

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.6s ease-out forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease-out forwards;
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

.animate-neon-flicker {
    animation: neonFlicker 1.5s ease-in-out infinite;
}

.animate-neon-glow {
    animation: neonGlow 2s ease-in-out infinite;
}

.animate-floating {
    animation: floating 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-spin {
    animation: spin 3s linear infinite;
}

.animate-jello {
    animation: jello 0.9s ease-in-out;
}

.animate-heart-beat {
    animation: heartBeat 1.3s ease-in-out infinite;
}

.animate-wiggle {
    animation: wiggle 0.8s ease-in-out infinite;
}

.animate-scale-pulse {
    animation: scalePulse 1s ease-in-out infinite;
}

.animate-glitch {
    animation: glitch 2s ease-in-out infinite;
}

.animate-cyber-pulse {
    animation: cyberPulse 2s ease-in-out infinite;
}

.animate-strobe {
    animation: strobe 1s ease-in-out infinite;
}

.animate-text-glow {
    animation: textGlow 2s ease-in-out infinite;
}

.animate-rotating-glow {
    animation: rotatingGlow 2s ease-out forwards;
}

.animate-border-glow {
    animation: borderGlow 2s ease-in-out infinite;
}

/* ========== DELAY UTILITIES ========== */

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

/* ========== MEDIA QUERIES - PERFORMANCE OPTIMIZATION ========== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .animate-neon-flicker,
    .animate-floating,
    .animate-pulse-glow,
    .animate-cyber-pulse {
        animation: none !important;
    }
}
