/* 
 * Animaciones Keyframes para TuChamba
 * Colores y gradientes fantásticos con animaciones suaves
 */

/* Gradientes animados principales con colores azules */
@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    }
    25% {
        background: linear-gradient(135deg, #5BA0F2 0%, #4A90E2 100%);
    }
    50% {
        background: linear-gradient(135deg, #74B9FF 0%, #5BA0F2 100%);
    }
    75% {
        background: linear-gradient(135deg, #A8D8FF 0%, #74B9FF 100%);
    }
    100% {
        background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    }
}

@keyframes gradientShiftSoft {
    0% {
        background: linear-gradient(135deg, #E3F2FD 0%, #A8D8FF 100%);
    }
    33% {
        background: linear-gradient(135deg, #A8D8FF 0%, #74B9FF 100%);
    }
    66% {
        background: linear-gradient(135deg, #74B9FF 0%, #5BA0F2 100%);
    }
    100% {
        background: linear-gradient(135deg, #E3F2FD 0%, #A8D8FF 100%);
    }
}

@keyframes cardGlow {
    0% {
        box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 15px 35px rgba(74, 144, 226, 0.25);
        transform: translateY(-5px);
    }
    100% {
        box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
        transform: translateY(0);
    }
}

@keyframes buttonPulse {
    0% {
        background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, #357ABD 0%, #4A90E2 100%);
        transform: scale(1.05);
    }
    100% {
        background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
        transform: scale(1);
    }
}

@keyframes rainbowText {
    0% {
        color: #4A90E2;
    }
    16% {
        color: #5BA0F2;
    }
    32% {
        color: #74B9FF;
    }
    48% {
        color: #A8D8FF;
    }
    64% {
        color: #6BA3E8;
    }
    80% {
        color: #357ABD;
    }
    100% {
        color: #4A90E2;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes borderGlow {
    0% {
        border-color: #4A90E2;
        box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
    }
    50% {
        border-color: #357ABD;
        box-shadow: 0 0 20px rgba(53, 122, 189, 0.6);
    }
    100% {
        border-color: #4A90E2;
        box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Clases de animación para aplicar */
.animated-bg {
    animation: gradientShift 8s ease-in-out infinite;
    background-size: 400% 400%;
}

.animated-bg-soft {
    animation: gradientShiftSoft 6s ease-in-out infinite;
    background-size: 400% 400%;
}

.animated-card {
    animation: cardGlow 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.animated-card:hover {
    animation-play-state: paused;
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.3) !important;
}

.animated-button {
    animation: buttonPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    border: none;
    color: white;
    cursor: pointer;
}

.animated-button:hover {
    animation-play-state: paused;
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.animated-text {
    animation: rainbowText 4s ease-in-out infinite;
    font-weight: bold;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

.animated-border {
    animation: borderGlow 2s ease-in-out infinite;
    border: 2px solid;
}

.shimmer-effect {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Efectos especiales */
.gradient-text {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    background-size: 400% 400%;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: cardGlow 4s ease-in-out infinite;
}

/* Responsive animations */
@media (max-width: 768px) {
    .animated-card {
        animation-duration: 4s;
    }
    
    .animated-button {
        animation-duration: 3s;
    }
    
    .floating-element {
        animation-duration: 4s;
    }
}

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