/* style.css - Estilos personalizados mínimos */

/* Animaciones suaves */
* {
    transition: all 0.3s ease;
}

/* Mejoras para el spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Hover effects mejorados */
button:hover, a:hover {
    transform: translateY(-2px);
}

/* Sombras suaves para cards */
.shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Progress bar animado */
#progressBar {
    transition: width 0.5s ease;
}

/* Validación visual */
input:focus:invalid {
    border-color: #ef4444;
}

input:focus:valid {
    border-color: #10b981;
}

/* Charts responsive */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* Mejoras para móvil */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
}

/* Print styles */
@media print {
    header, footer, button, select, .no-print {
        display: none !important;
    }
    
    .bg-gradient-to-br {
        background: #f3f4f6 !important;
        color: #111827 !important;
    }
}

/* Loading overlay mejorado */
#loadingSpinner {
    backdrop-filter: blur(4px);
}

/* Tooltips (si los necesitas) */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
}

/* Mejoras de accesibilidad */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Card hover effects */
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text (para títulos especiales) */
.gradient-text {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
