/* 
 * SISTEMA SINCRO - Estilos Personalizados Premium
 * Complementa a Tailwind CSS para efectos de cristal, animaciones y maquetación de impresión.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: #f8fafc; /* Slate 50 */
    color: #1e293b; /* Slate 800 */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* --- Personalización de Scrollbars --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* Slate 300 */
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* Slate 400 */
}

/* --- Utilidades de Cristal (Glassmorphism) --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-modal {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* --- Efectos de Resplandor y Acentos Premium --- */
.accent-glow-violet {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.15);
}

.accent-glow-emerald {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
}

/* --- Micro-animaciones y Estados --- */
.hover-scale {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.transition-smooth {
    transition: all 0.25s ease-in-out;
}

/* Animación de pulso lento para elementos de progreso activo */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .7; transform: scale(1.03); }
}

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

/* --- Estilos y Ajustes de Impresión Nativos --- */
@media print {
    /* Ocultar barra lateral, botones y encabezados de navegación */
    header, 
    nav, 
    aside, 
    .no-print, 
    button, 
    .btn,
    .print-hidden {
        display: none !important;
    }
    
    body {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 11pt !important;
    }
    
    .print-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* Evitar saltos de página a mitad de elementos de tabla */
    tr {
        page-break-inside: avoid !important;
        page-break-after: auto !important;
    }
    
    .page-break {
        page-break-before: always !important;
    }
    
    /* Configurar bordes limpios para tablas de impresión */
    table {
        border-collapse: collapse !important;
        width: 100% !important;
    }
    
    th, td {
        border: 1px solid #e2e8f0 !important;
        padding: 6px 10px !important;
        font-size: 10pt !important;
    }
    
    /* Forzar fondo blanco y texto oscuro en elementos con estilo */
    .bg-slate-50, .bg-gray-50 {
        background-color: #f8fafc !important;
    }
}
