/* ====================================================================
   ESTILOS PERSONALIZADOS - CERTIFICADOC
   ==================================================================== */
:root {
    --primary-color: #1e3a8a;
    --primary-hover: #1e40af;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --sidebar-bg: #0f172a;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

/* NAVBAR Y NAVEGACIÓN */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

/* TARJETAS KPI */
.card-kpi {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* BADGES Y PULSOS */
.pulse-badge {
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* TABLAS */
.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

/* EXPEDIENTE Y TIMELINE */
.timeline {
    border-left: 2px solid #e2e8f0;
    padding-left: 20px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #3b82f6;
    border: 2px solid #ffffff;
}

/* IMPRESIÓN Y EXPORTACIÓN A PDF LIMPIO */
@media print {
    .no-print, nav, footer, .btn, .dropdown, .pagination, .alert {
        display: none !important;
    }
    
    body {
        background-color: #ffffff;
        color: #000000;
        font-size: 11pt;
    }

    .container, .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .print-header {
        display: block !important;
        margin-bottom: 20px;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
    }

    .table th {
        background-color: #eee !important;
        color: #000 !important;
    }
}

.print-header {
    display: none;
}
