/* ============================================
   ESTILOS PERSONALIZADOS — F.I.S.M Technology
   ============================================
   V4 — Light Theme Only · WCAG AAA · Performance Optimized
   No dark theme · No scrollbar-color (unsupported property removed)
*/

/* ===== VARIABLES CSS ===== */
:root {
    --color-primary: #9333ea;
    --color-primary-dark: #7e22ce;
    --color-primary-light: #c084fc;
    --transition-speed: 300ms;
    --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.16);
    --blur-glass: 12px;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

/* ===== ANIMATION CLASSES ===== */
.animate-fade-in { animation: fadeIn var(--transition-speed) var(--transition-ease); }
.animate-slide-in-right { animation: slideInRight var(--transition-speed) var(--transition-ease); }
.animate-slide-in-left { animation: slideInLeft var(--transition-speed) var(--transition-ease); }
.animate-shake { animation: shake 0.5s ease-in-out; }

/* ===== GLASSMORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== SCROLLBAR (Webkit only) ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #EDEDF0; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== LOADING SPINNER ===== */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== UTILITIES ===== */
.smooth-transition { transition: all var(--transition-speed) var(--transition-ease); }
.page-transition { animation: fadeIn 0.4s ease-in-out; }
.hover-lift { transition: transform var(--transition-speed) var(--transition-ease); }
.hover-lift:hover { transform: translateY(-4px); }
.hover-glow:hover { box-shadow: 0 0 20px rgba(147, 51, 234, 0.4); }

/* ===== FOCUS STATES ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===== GRADIENTS ===== */
.gradient-primary { background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%); }
.gradient-success { background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); }
.gradient-danger { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.text-gradient {
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider-gradient {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
}

/* ===== SCROLL HELPERS ===== */
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ===== PRINT ===== */
@media print {
    .no-print { display: none !important; }
    .glass { background: white; backdrop-filter: none; }
}
