/**
 * ANIMATIONS - StreamingCuba
 * ============================
 * Animaciones suaves y profesionales
 */

/* ========================================
   FADE ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn var(--transition-base) ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp var(--transition-base) ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown var(--transition-base) ease-out;
}

/* ========================================
   SLIDE ANIMATIONS
   ======================================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slideInLeft {
    animation: slideInLeft var(--transition-base) ease-out;
}

.animate-slideInRight {
    animation: slideInRight var(--transition-base) ease-out;
}

/* ========================================
   SCALE ANIMATIONS
   ======================================== */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-scaleIn {
    animation: scaleIn var(--transition-base) ease-out;
}

.animate-pop {
    animation: pop var(--transition-fast) ease-in-out;
}

/* ========================================
   LOADING ANIMATIONS
   ======================================== */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */
.hover-lift {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hover-scale {
    transition: transform var(--transition-fast);
}

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

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

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* ========================================
   STAGGER ANIMATIONS
   ======================================== */
.stagger-item {
    opacity: 0;
    animation: fadeInUp var(--transition-base) ease-out forwards;
}

.stagger-item:nth-child(1) {
    animation-delay: 0.05s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.15s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.25s;
}

.stagger-item:nth-child(6) {
    animation-delay: 0.3s;
}

/* ========================================
   NUMBER COUNT-UP (requires JS)
   ======================================== */
.count-up {
    font-variant-numeric: tabular-nums;
}

/* ========================================
   PAGE TRANSITIONS
   ======================================== */
.page-enter {
    animation: fadeInUp var(--transition-slow) ease-out;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.transition-all {
    transition: all var(--transition-base);
}

.transition-colors {
    transition: background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base);
}

.transition-transform {
    transition: transform var(--transition-base);
}

.transition-opacity {
    transition: opacity var(--transition-base);
}