/* ============================================
   animations.css — Animaciones y efectos adicionales
   Para mejorar aún más la experiencia visual
   ============================================ */

/* Pulso sutil */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Brillo */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Movimiento suave arriba-abajo */
@keyframes float-subtle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Giro sutil */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Clases de utilidad */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
    animation: float-subtle 3s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.animate-spin {
    animation: spin-slow 3s linear infinite;
}

/* Efectos de texto */
.text-gradient {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Efectos de sombra */
.shadow-glow {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.shadow-glow-purple {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.shadow-glow-pink {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

/* Efecto de borde animado */
.border-animated {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.border-animated::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #ec4899);
    z-index: -1;
}

/* Backdrop blur mejorado */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Contenedores con gradiente de fondo */
.container-gradient {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(139, 92, 246, 0.03));
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 14px;
    padding: 24px;
}

.container-gradient:hover {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.1);
}

/* Badge con color dinámico */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-primary {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Enlace mejorado */
.link-fancy {
    position: relative;
    text-decoration: none;
    color: #0ea5e9;
    transition: color 0.3s ease;
}

.link-fancy::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
    transition: width 0.3s ease;
}

.link-fancy:hover {
    color: #0284c7;
}

.link-fancy:hover::after {
    width: 100%;
}

/* Efecto de card elevada */
.card-elevated {
    border: 1px solid rgba(14, 165, 233, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 252, 0.95));
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-elevated:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.15);
}

/* Divisor decorativo */
.divider-gradient {
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, #8b5cf6, #ec4899, transparent);
    margin: 24px 0;
}

/* Grid con efecto hover */
.grid-hover {
    display: grid;
    gap: 16px;
}

.grid-hover > * {
    transition: all 0.3s ease;
}

.grid-hover:hover > * {
    opacity: 0.7;
}

.grid-hover > *:hover {
    opacity: 1 !important;
}

/* Responsive para animaciones */
@media (prefers-reduced-motion: reduce) {
    .animate-pulse,
    .animate-float,
    .animate-spin,
    .link-fancy::after,
    .card-elevated {
        animation: none !important;
    }
}
