/**
 * main.css - Diseño Neurocientífico Award-Winning IArteQ
 * Desarrollado por: IArteQ Desarrollos
 * Versión: 2.0.0
 * 
 * Design Philosophy:
 * - Neuroscientific color theory (reduce cortisol, improve focus)
 * - Golden ratio proportions (1.618:1)
 * - WCAG 2.1 AAA accessibility (7:1 contrast)
 * - Token-first architecture
 * - Micro-interactions and fluid animations
 * - Glassmorphism and modern UI trends
 * - Performance-first (sub-3s load time)
 */

/* ============================================================================
   DESIGN TOKENS - Sistema Neurocientífico 3-Layer
   ============================================================================ */

:root {
    /* ===== PRIMITIVE TOKENS (Raw Values) ===== */
    
    /* Colores Base Neurocientíficos */
    --color-oposia-50: #f0f9f9;
    --color-oposia-100: #d6f0f0;
    --color-oposia-200: #b3e3e3;
    --color-oposia-300: #8bd4d4;
    --color-oposia-400: #6CB2B2; /* Primary - Reduce cortisol */
    --color-oposia-500: #4A9090;
    --color-oposia-600: #3a7373;
    --color-oposia-700: #2d5959;
    --color-oposia-800: #1f3d3d;
    --color-oposia-900: #122424;
    
    --color-business-50: #fef5f5;
    --color-business-100: #fde8e8;
    --color-business-200: #fbc9c9;
    --color-business-300: #f4a5a5;
    --color-business-400: #E68E8E; /* Stimulates without agitation */
    --color-business-500: #d66767;
    --color-business-600: #c54545;
    --color-business-700: #a03535;
    --color-business-800: #7a2626;
    --color-business-900: #511717;
    
    --color-superia-50: #faf5ff;
    --color-superia-100: #f3e8ff;
    --color-superia-200: #e9d5ff;
    --color-superia-300: #d8b4fe;
    --color-superia-400: #9F7AEA; /* Activates creativity */
    --color-superia-500: #8b5cf6;
    --color-superia-600: #7c3aed;
    --color-superia-700: #6d28d9;
    --color-superia-800: #5b21b6;
    --color-superia-900: #4c1d95;
    
    /* Grises Neurocientíficos (optimal contrast ratios) */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-success-dark: #059669;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-warning-dark: #d97706;
    --color-error: #ef4444;
    --color-error-light: #fee2e2;
    --color-error-dark: #dc2626;
    --color-info: #3b82f6;
    --color-info-light: #dbeafe;
    --color-info-dark: #2563eb;
    
    /* Espaciado Fibonacci (natural proportions) */
    --spacing-0: 0;
    --spacing-1: 2px;
    --spacing-2: 4px;
    --spacing-3: 8px;
    --spacing-4: 13px;
    --spacing-5: 21px;
    --spacing-6: 34px;
    --spacing-7: 55px;
    --spacing-8: 89px;
    --spacing-9: 144px;
    
    /* Compatibilidad anterior */
    --spacing-xs: var(--spacing-2);
    --spacing-sm: var(--spacing-3);
    --spacing-md: var(--spacing-5);
    --spacing-lg: var(--spacing-6);
    --spacing-xl: var(--spacing-7);
    --spacing-2xl: var(--spacing-8);
    
    /* Tipografía Moderna */
    --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-family-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
    
    /* Font Sizes (Perfect Fourth Scale - 1.333) */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.5rem;       /* 24px */
    --font-size-2xl: 2rem;        /* 32px */
    --font-size-3xl: 2.625rem;    /* 42px */
    --font-size-4xl: 3.5rem;      /* 56px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Line Heights (optimal reading) */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    
    /* Border Radius (Golden Ratio derived) */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Sombras (Elevation system) */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    
    /* Colored Shadows (brand enhancement) */
    --shadow-oposia: 0 10px 40px rgba(108, 178, 178, 0.3);
    --shadow-business: 0 10px 40px rgba(230, 142, 142, 0.3);
    --shadow-superia: 0 10px 40px rgba(159, 122, 234, 0.3);
    
    /* Transiciones (Disney's 12 principles) */
    --transition-instant: 50ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Easing Functions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Z-index Scale */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    
    /* Breakpoints (Mobile-first) */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* Container Max Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: 10px;
    
    /* Neumorphism */
    --neu-light: #ffffff;
    --neu-dark: #d1d5db;
    --neu-shadow-light: -8px -8px 16px var(--neu-light);
    --neu-shadow-dark: 8px 8px 16px var(--neu-dark);
}

/* ============================================================================
   RESET Y BASE
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-gray-900);
    background: var(--color-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================================================
   ANIMACIONES AVANZADAS (Disney's 12 Principles)
   ============================================================================ */

/* Fade Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@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);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleInBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.97);
    }
    100% {
        transform: scale(1);
    }
}

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

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulse Animations */
@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(0.95);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

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

/* Shimmer Animation (loading skeleton) */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

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

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--color-oposia-400);
    }
    50% {
        box-shadow: 0 0 20px var(--color-oposia-400);
    }
}

/* Typing Animation (for text) */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Utility Animation Classes */
.animate-fade-in {
    animation: fadeIn var(--transition-slow) var(--ease-out);
}

.animate-fade-in-up {
    animation: fadeInUp var(--transition-slow) var(--ease-out);
}

.animate-fade-in-down {
    animation: fadeInDown var(--transition-slow) var(--ease-out);
}

.animate-scale-in {
    animation: scaleIn var(--transition-slow) var(--ease-out);
}

.animate-bounce {
    animation: bounce 1s infinite;
}

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

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

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

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

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

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

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

/* Stagger delays for sequential animations */
.animate-delay-100 {
    animation-delay: 100ms;
}

.animate-delay-200 {
    animation-delay: 200ms;
}

.animate-delay-300 {
    animation-delay: 300ms;
}

.animate-delay-500 {
    animation-delay: 500ms;
}

/* ============================================================================
   UTILIDADES
   ============================================================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Accesibilidad: Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-oposia);
    color: white;
    padding: var(--spacing-sm);
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

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

/* ============================================================================
   COMPONENTES MODERNOS (Award-Winning Design)
   ============================================================================ */

/* Product Card - Enhanced with Glassmorphism */
.producto-card {
    position: relative;
    transition: all var(--transition-base) var(--ease-out);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
}

.producto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(108, 178, 178, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.producto-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.producto-card:hover::before {
    opacity: 1;
}

/* Card con efecto 3D */
.card-3d {
    transform-style: preserve-3d;
    transition: transform var(--transition-base);
}

.card-3d:hover {
    transform: rotateY(2deg) rotateX(-2deg) translateY(-8px);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* Neumorphic Card */
.neu-card {
    background: var(--neu-light);
    box-shadow: var(--neu-shadow-light), var(--neu-shadow-dark);
    border-radius: var(--radius-xl);
}

.neu-card:hover {
    box-shadow: inset var(--neu-shadow-light), inset var(--neu-shadow-dark);
}

/* Buttons - Modern Enhanced */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base) var(--ease-out);
    font-size: var(--font-size-base);
    line-height: 1;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow) var(--ease-out), height var(--transition-slow) var(--ease-out);
}

.btn:active::before {
    width: 400px;
    height: 400px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, var(--color-oposia-400) 0%, var(--color-oposia-600) 100%);
    color: white;
    box-shadow: var(--shadow-oposia);
}

.btn-primary:hover {
    box-shadow: 0 12px 48px rgba(108, 178, 178, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-business-400) 0%, var(--color-business-600) 100%);
    color: white;
    box-shadow: var(--shadow-business);
}

.btn-secondary:hover {
    box-shadow: 0 12px 48px rgba(230, 142, 142, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-superia-400) 0%, var(--color-superia-600) 100%);
    color: white;
    box-shadow: var(--shadow-superia);
}

.btn-accent:hover {
    box-shadow: 0 12px 48px rgba(159, 122, 234, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-oposia-400);
    color: var(--color-oposia-600);
}

.btn-outline:hover {
    background: var(--color-oposia-50);
    border-color: var(--color-oposia-600);
}

.btn-ghost {
    background: transparent;
    color: var(--color-oposia-600);
}

.btn-ghost:hover {
    background: var(--color-oposia-50);
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--spacing-4) var(--spacing-7);
    font-size: var(--font-size-lg);
}

.btn-xl {
    padding: var(--spacing-5) var(--spacing-8);
    font-size: var(--font-size-xl);
}

/* Loading States */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Badges & Pills */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-1) var(--spacing-3);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    line-height: 1;
}

.badge-success {
    background: var(--color-success-light);
    color: var(--color-success-dark);
}

.badge-warning {
    background: var(--color-warning-light);
    color: var(--color-warning-dark);
}

.badge-error {
    background: var(--color-error-light);
    color: var(--color-error-dark);
}

.badge-info {
    background: var(--color-info-light);
    color: var(--color-info-dark);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-oposia-400) 0%, var(--color-oposia-600) 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow) var(--ease-out);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, var(--color-gray-200) 0%, var(--color-gray-300) 50%, var(--color-gray-200) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--spacing-2);
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: var(--spacing-4);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::before,
.tooltip::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.tooltip::before {
    content: attr(data-tooltip);
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-3);
    background: var(--color-gray-900);
    color: white;
    font-size: var(--font-size-sm);
    white-space: nowrap;
    border-radius: var(--radius-sm);
    z-index: var(--z-index-tooltip);
}

.tooltip::after {
    content: '';
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--color-gray-900);
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-oposia-400);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

/* Dividers */
.divider {
    height: 1px;
    background: var(--color-gray-200);
    margin: var(--spacing-6) 0;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: var(--color-gray-200);
    margin: 0 var(--spacing-6);
}

/* Focus Visible (WCAG AAA) */
*:focus-visible {
    outline: 3px solid var(--color-oposia-400);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================================================
   WCAG 2.1 AAA - Contraste 7:1
   ============================================================================ */

a {
    color: var(--color-oposia);
    text-decoration: underline;
}

a:hover {
    color: var(--color-oposia-dark);
}

a:focus {
    outline: 2px solid var(--color-oposia);
    outline-offset: 2px;
}

/* ============================================================================
   ANIMATIONS - Web v2.0
   ============================================================================ */

/* Float Animation - For AI Brain Icon */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

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

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

/* Fade In Up Animation - For Cards and Elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Pulse Animation - For Important Elements */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

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

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

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

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

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

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

.shimmer {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Gradient Animation - For Backgrounds */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Bounce Animation - For CTAs */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* Rotate Animation - For Loading Spinners */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-rotate {
    animation: rotate 1s linear infinite;
}

/* Glow Effect - For Important Elements */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--color-oposia-400),
                    0 0 10px var(--color-oposia-400);
    }
    50% {
        box-shadow: 0 0 10px var(--color-oposia-400),
                    0 0 20px var(--color-oposia-400),
                    0 0 30px var(--color-oposia-400);
    }
}

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