/* ================================================================
   Sistema Holstein - Estilos personalizados
   Complementan a Tailwind CSS (cargado via CDN)
   ================================================================ */

/* Scroll suave */
html { scroll-behavior: smooth; }

/* Focus visible mejorado para accesibilidad */
*:focus-visible {
    outline: 2px solid #2E75B6;
    outline-offset: 2px;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

main > * {
    animation: fadeIn 0.25s ease-out;
}

/* Tablas con scroll horizontal en móvil */
table {
    -webkit-overflow-scrolling: touch;
}

/* Hover en cards */
.kpi-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

/* Print friendly */
@media print {
    aside, header, footer, .no-print {
        display: none !important;
    }
    main {
        padding: 0 !important;
    }
}

/* Responsive: stack columns on mobile */
@media (max-width: 640px) {
    table {
        font-size: 0.75rem;
    }
}
