/* ============================================
   BEAT+SPORT - ANIMACIONES AVANZADAS
   ============================================ */

/* Entrada Rápida */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Glow y Brillo */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(15, 255, 20, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(15, 255, 20, 0.5);
    }
}

@keyframes glowText {
    0%, 100% {
        text-shadow: 0 0 20px rgba(15, 255, 20, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(15, 255, 20, 0.6);
    }
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 20px rgba(15, 255, 20, 0.4), 0 0 40px rgba(15, 255, 20, 0.2);
    }
    20%, 24%, 55% {
        text-shadow: 0 0 10px rgba(15, 255, 20, 0.2);
    }
}

/* Movimiento */
@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes swing {
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Rotación */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

/* Ripple */
@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Pulse */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Border Animation */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(15, 255, 20, 0.3);
        box-shadow: 0 0 5px rgba(15, 255, 20, 0.1);
    }
    50% {
        border-color: rgba(15, 255, 20, 0.8);
        box-shadow: 0 0 20px rgba(15, 255, 20, 0.3);
    }
}

/* Typing Effect */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 49%, 100% {
        border-right-color: transparent;
    }
    50% {
        border-right-color: #0FFF14;
    }
}

/* Rainbow */
@keyframes rainbow {
    0% {
        color: #0FFF14;
    }
    25% {
        color: #00ff00;
    }
    50% {
        color: #00ffff;
    }
    75% {
        color: #ff00ff;
    }
    100% {
        color: #0FFF14;
    }
}

/* Shake */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Heartbeat */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* Wobble */
@keyframes wobble {
    0%, 100% {
        transform: translateX(0);
    }
    15% {
        transform: translateX(-5px) rotate(-5deg);
    }
    30% {
        transform: translateX(3px) rotate(3deg);
    }
    45% {
        transform: translateX(-3px) rotate(-3deg);
    }
    60% {
        transform: translateX(2px) rotate(2deg);
    }
    75% {
        transform: translateX(-1px) rotate(-1deg);
    }
}

/* Jello */
@keyframes jello {
    11.1% {
        transform: none;
    }
    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);
    }
    100% {
        transform: none;
    }
}

/* Flip */
@keyframes flipX {
    from {
        transform: perspective(400px) rotateX(0);
    }
    to {
        transform: perspective(400px) rotateX(360deg);
    }
}

@keyframes flipY {
    from {
        transform: perspective(400px) rotateY(0);
    }
    to {
        transform: perspective(400px) rotateY(360deg);
    }
}

/* Slide In */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Rotate */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Classes para aplicar animaciones */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.animate-zoom-in {
    animation: zoomIn 0.8s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-swing {
    animation: swing 1s ease-in-out;
}

.animate-spin {
    animation: spin 2s linear infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-heartbeat {
    animation: heartbeat 1.3s ease-in-out infinite;
}

.animate-wobble {
    animation: wobble 0.8s ease-in-out;
}

.animate-jello {
    animation: jello 0.9s ease-in-out;
}

.animate-flip-x {
    animation: flipX 1s ease-in-out;
}

.animate-flip-y {
    animation: flipY 1s ease-in-out;
}

/* Transiciones suaves */
.smooth-transition {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.smooth-transition-slow {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Effects */
.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 255, 20, 0.2);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(15, 255, 20, 0.5);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Color Transitions */
.color-transition {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Text Effects */
.text-glow {
    animation: glowText 2s ease-in-out infinite;
}

.text-neon-flicker {
    animation: neonFlicker 1.5s ease-in-out infinite;
}

/* Responsive Animations */
@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-float {
        animation: float 2s ease-in-out infinite;
    }
    
    .card-1, .card-2 {
        animation-duration: 4s !important;
    }
}
