/* ================================================================
   MISSION EMANUEL - Sistema de Gestión de Talento Humano (GHT)
   Archivo: design-system.css - Sistema de diseño completo
   Incluye: variables, componentes, módulos y utilidades
   Actualizado: Diciembre 2025 - Nuevo diseño Mission Emanuel
   ================================================================ */

/* ==================== VARIABLES GLOBALES MISSION EMANUEL ==================== */
:root {
    /* ========== COLORES DE MARCA MISSION EMANUEL ========== */
    --brand-navy: #1E3A7B;
    --brand-navy-light: #2D4A8C;
    --brand-navy-dark: #152A5C;
    --brand-navy-accessible: #0F1D3A;
    /* Para contraste WCAG AA (7.1:1 sobre gold) */
    --brand-gold: #F5C518;
    --brand-gold-light: #FFD54F;
    --brand-gold-dark: #D4A017;

    /* Aliases para compatibilidad */
    --primary-blue: #1E3A7B;
    --primary-blue-dark: #152A5C;
    --primary-blue-light: #2D4A8C;
    --accent-yellow: #F5C518;

    /* Modo Claro - Mission Emanuel */
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-primary: #1E3A7B;
    --text-secondary: #64748B;
    --accent-color: #1E3A7B;
    --accent-hover: #2D4A8C;
    --accent-secondary: #F5C518;
    --header-bg: rgba(255, 255, 255, 0.9);
    --header-text: #1E3A7B;
    --border-color: #E2E8F0;
    --kpi-bg: #FFFFFF;
    --chart-bg: #FFFFFF;

    /* Sidebar - Navy Brand */
    --sidebar-bg: #1E3A7B;
    --sidebar-text: #FFFFFF;
    --sidebar-text-hover: #F5C518;
    --sidebar-active-bg: #F5C518;
    --sidebar-active-text: #0F1D3A;
    /* WCAG AA compliant */
    --sidebar-hover-bg: rgba(255, 255, 255, 0.1);

    /* Colores de estado */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    --info-text: #1E40AF;
    --info-border: #BFDBFE;
    --success-text: #047857;
    --success-border: #A7F3D0;
    --warning-text: #B45309;
    --warning-border: #FDE68A;
    --error-text: #B91C1C;

    /* Grises */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* ========== SISTEMA DE ESPACIADO CONSISTENTE ========== */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.5rem;
    /* 24px */
    --space-6: 2rem;
    /* 32px */
    --space-8: 3rem;
    /* 48px */

    /* Aliases legacy para compatibilidad */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;

    /* ========== BORDER RADIUS UNIFICADO (3 TAMAÑOS) ========== */
    --radius-sm: 6px;
    /* inputs, badges, elementos pequeños */
    --radius-md: 12px;
    /* botones, cards pequeñas */
    --radius-lg: 20px;
    /* containers principales, modales */
    --radius-full: 9999px;
    /* círculos, pills */

    /* Aliases legacy (deprecados, usar nuevos) */
    --radius-xl: 16px;

    /* ========== SOMBRAS CONSOLIDADAS (3 VARIANTES) ========== */
    --shadow-sm: 0 1px 3px rgba(30, 58, 123, 0.08);
    --shadow-md: 0 4px 12px rgba(30, 58, 123, 0.12);
    --shadow-lg: 0 8px 24px rgba(30, 58, 123, 0.16);
}

/* ==================== ESTILOS BASE DE PERFIL ==================== */
/* Nota: Estos estilos también están en mi_perfil.css */
body,
.portal-header,
.perfil-header,
.info-card,
.stat-box,
.btn,
.nav-tabs,
.tab-content,
.badge-estado {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.perfil-banner {
    background: linear-gradient(135deg, #1E3A7B 0%, #2D4A8C 100%);
    height: 180px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    position: relative;
    margin-bottom: -60px;
    z-index: 1;
    box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10);
}

.profile-card {
    background: linear-gradient(135deg, #1E3A7B, #2D4A8C);
    color: white;
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem 2.5rem 3rem;
    position: relative;
    top: -60px;
    z-index: 2;
    margin-bottom: 3rem;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 18px rgba(25, 118, 210, 0.18);
    background: #e3eafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E3A7B;
}

.profile-edit-btn {
    position: absolute;
    top: 18px;
    right: 24px;
    z-index: 3;
}

.profile-card h4 {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.profile-card p,
.profile-card small {
    color: #e3eafc;
}

.badge-estado {
    background: #43a047;
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
}

.stat-box {
    background: linear-gradient(145deg, #E3F2FD, #FFFFFF);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    transition: transform 0.3s;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1rem;
}

.stat-box:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.13);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1976D2;
    margin-bottom: 0.2rem;
}

.stat-label {
    color: #6B7280;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.nav-tabs .nav-link.active {
    color: #1976D2;
    background: #e3f2fd;
    border-bottom: 3px solid #1976D2;
    border-radius: 12px 12px 0 0;
}

.nav-tabs .nav-link {
    color: #6B7280;
    font-weight: 600;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    margin-right: 2px;
}

.tab-content {
    padding: 2.5rem 0 0 0;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: var(--brand-gold, #F5C518);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    color: var(--brand-navy-dark, #152A5C);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.4);
    background: var(--brand-gold-hover, #E5B516);
    color: var(--brand-navy-dark, #152A5C);
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
}

.alert-dismissible {
    border-radius: 10px;
    border: none;
}

.tab-content {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    color: #6b7280;
    font-weight: 600;
    border: none;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    background: transparent;
    border-bottom: 3px solid #667eea;
}

.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-circle.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.icon-circle.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/*
=========================================
SISTEMA DE DISEÑO - GHT MISSION EMANUEL
=========================================
Variables consolidadas arriba en líneas 8-95
*/

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
}

/* ==================== ACCESIBILIDAD - FOCUS STATES ==================== */
/* WCAG 2.4.7: Focus Visible - Todos los elementos interactivos deben tener indicador visible */

/* Focus global para navegación por teclado */
*:focus-visible {
    outline: 3px solid var(--brand-gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Focus para botones */
.btn:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--brand-gold);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.2);
}

/* Focus para links */
a:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
    text-decoration: underline;
}

/* Focus para inputs y selects */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 0;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.15);
}

/* Focus para elementos del sidebar */
.sidebar a:focus-visible,
.sidebar button:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: -2px;
}

/* Remover outline default solo si :focus-visible está soportado */
*:focus:not(:focus-visible) {
    outline: none;
}

/* ==================== UTILIDADES ==================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--error) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.bg-danger {
    background-color: var(--error) !important;
}


/*
=========================================
MÓDULO DE CONFIGURACIÓN
=========================================
*/

/* Tarjetas y layouts genéricos */
.content-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 60px rgba(26, 35, 126, 0.08);
}

.highlight-card {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.08), rgba(25, 118, 210, 0.02));
    border: 1px solid rgba(25, 118, 210, 0.15);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

@media (max-width: 1100px) {
    .settings-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: var(--spacing-lg);
    }
}

@media (max-width: 640px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.card-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    color: var(--primary-blue-dark);
    font-weight: 600;
}

.card-title h3 {
    margin: 0;
    font-size: 20px;
}

.card-title p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--gray-600);
}

.card-title.with-icon {
    display: flex;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.card-icon.info {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
}

.inline-alert {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.inline-alert.info {
    background: rgba(25, 118, 210, 0.08);
    color: var(--primary-blue-dark);
}

.address-summary {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
}

.address-summary .label {
    font-weight: 600;
    color: var(--gray-700);
    display: block;
    margin-bottom: 4px;
}

.address-summary p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Grid para herramientas administrativas */
.admin-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.tool-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.15);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: white;
    font-size: 24px;
}

.tool-card h4 {
    color: var(--primary-blue-dark);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.tool-card p {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

/* Herramientas de mantenimiento */
.maintenance-tools {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.tool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
}

.tool-info h4 {
    color: var(--primary-blue-dark);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.tool-info p {
    color: var(--gray-600);
    font-size: 14px;
    margin: 0;
}

/* Grid de información */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-blue);
}

.info-item strong {
    color: var(--gray-700);
    font-weight: 600;
}

.info-item span {
    color: var(--primary-blue-dark);
    font-weight: 500;
}

.info-grid.compact {
    gap: var(--spacing-sm);
}

.settings-section .section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.section-eyebrow {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary-blue);
    display: inline-block;
    margin-bottom: 6px;
}

.section-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--primary-blue-dark);
}

.section-header p {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.5;
}

.section-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.section-icon.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
}

.section-icon.warning {
    background: linear-gradient(135deg, #FF9800, #FFC107);
}

.section-icon.success {
    background: linear-gradient(135deg, #2E7D32, #66BB6A);
}

.section-icon.info {
    background: linear-gradient(135deg, var(--primary-blue), #42A5F5);
}

.settings-form {
    margin-top: var(--spacing-lg);
}

.settings-section:hover {
    transform: translateY(-2px);
}

/* Estilos para logs */
.logs-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.log-entry {
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-left: 4px solid var(--gray-300);
    background: var(--gray-50);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
}

.log-entry.log-error {
    border-left-color: var(--error);
    background: var(--error-light);
}

.log-entry.log-warning {
    border-left-color: var(--warning);
    background: var(--warning-light);
}

.log-entry.log-success {
    border-left-color: var(--success);
    background: var(--success-light);
}

.log-entry.log-info {
    border-left-color: var(--info);
    background: var(--info-light);
}

.log-date {
    color: var(--gray-600);
    font-weight: 600;
    margin-right: var(--spacing-sm);
}

.log-message {
    color: var(--gray-800);
}

/* Estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Estilos específicos para configuración */
.form-grid.single-column {
    grid-template-columns: 1fr;
}

.form-grid.two-columns {
    grid-template-columns: 1fr 1fr;
}

.form-grid.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.form-help {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
    display: block;
}

.narrow-card {
    max-width: 500px;
    margin: 0 auto var(--spacing-lg);
}

/* Mejoras para alertas */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.alert.alert-info {
    background: var(--info-light);
    border-left-color: var(--info);
    color: var(--primary-blue-dark);
}

.alert.alert-success {
    background: var(--success-light);
    border-left-color: var(--success);
    color: #2e7d32;
}

.alert.alert-danger {
    background: var(--error-light);
    border-left-color: var(--error);
    color: #c62828;
}

.alert.alert-warning {
    background: var(--warning-light);
    border-left-color: var(--warning);
    color: #ef6c00;
}

/*
=========================================
CENTRO DE REPORTES
=========================================
*/

.reports-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.report-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(26, 35, 126, 0.08);
}

.report-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.report-card__title {
    margin: 0;
    font-size: 18px;
    color: var(--primary-blue-dark);
}

.report-card__description {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.report-card__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.report-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    box-shadow: 0 10px 24px rgba(25, 118, 210, 0.18);
}

.report-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(25, 118, 210, 0.12);
    color: var(--primary-blue);
}

.report-card--export .report-icon {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    box-shadow: 0 10px 24px rgba(46, 125, 50, 0.18);
}

.report-card--gov {
    border-left: 4px solid #fbbf24;
}

.report-card--gov .report-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.18);
}

.card-description {
    margin: 0 0 var(--spacing-lg);
    color: var(--gray-600);
}

.reports-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.reports-form .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.reports-form label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

.reports-form input {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reports-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.report-card__forms {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.report-card__forms form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media (max-width: 720px) {
    .report-card__header {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .report-card__actions {
        width: 100%;
    }
}

:root {
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(26, 35, 126, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 35, 126, 0.12);
    --shadow-lg: 0 8px 24px rgba(26, 35, 126, 0.16);
    --shadow-xl: 0 12px 32px rgba(26, 35, 126, 0.20);

    /* Tipografía */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;

    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 50%, #e8eaf6 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.5;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-wrap {
    flex: 1;
    padding: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Botón de regreso */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-secondary, #64748B);
    background: var(--bg-body, #F8FAFC);
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 6px;
    margin-bottom: var(--spacing-md);
    padding: 6px 14px;
    border: 1px solid var(--border-color, #E2E8F0);
    transition: all 0.2s ease;
    cursor: pointer;
    width: fit-content;
}

.back-button:hover {
    background: var(--brand-navy, #1E3A7B);
    color: white;
    border-color: var(--brand-navy, #1E3A7B);
}

/* Header de página */
.page-header {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.page-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.page-title h1 {
    color: var(--primary-blue-dark);
    font-size: var(--font-size-xxl);
    font-weight: 600;
}

.page-title .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(238, 236, 124);
    font-size: var(--font-size-xl);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: calc(var(--spacing-sm) + 2px) calc(var(--spacing-md) + 6px);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    font-size: var(--font-size-sm);
    line-height: 1.3;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.btn i {
    font-size: 0.95em;
}

.btn-primary {
    background: var(--brand-gold, #F5C518);
    color: var(--brand-navy-dark, #152A5C);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(245, 197, 24, 0.35);
    background: var(--brand-gold-hover, #E5B516);
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #e68900;
}

.btn-error {
    background: var(--error);
    color: white;
}

.btn-error:hover {
    background: #da190b;
}

/* Filtros */
.filters {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    transition: var(--transition-normal);
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Tabla */
.table-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.table-header {
    padding: var(--spacing-lg);
    background: var(--bg-card, #FFFFFF);
    color: var(--text-primary, #1E293B);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.table-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary, #1E293B);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.table-title i {
    color: var(--brand-gold, #F5C518);
}

.table-count {
    background: var(--bg-body, #F8FAFC);
    color: var(--text-secondary, #64748B);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    font-size: var(--font-size-sm);
    border: 1px solid var(--border-color, #E2E8F0);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead tr {
    background: var(--gray-50);
}

th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--gray-600);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

tbody tr {
    transition: var(--transition-fast);
}

tbody tr:hover {
    background: var(--gray-50);
}

/* Badges */
.badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success,
.badge-activo {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning,
.badge-suspendido {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-error,
.badge-desvinculado {
    background: var(--error-light);
    color: var(--error);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.15);
    color: #64748B;
}

/* Acciones */
.actions {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.btn-view {
    background: var(--info-light);
    color: var(--info);
}

.btn-edit {
    background: var(--warning-light);
    color: var(--warning);
}

.btn-delete {
    background: var(--error-light);
    color: var(--error);
}

.btn-success-action {
    background: var(--success-light);
    color: var(--success);
}

.btn-action:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.page-link {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--gray-600);
    transition: var(--transition-normal);
    min-width: 35px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
}

.page-link:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.page-link.active {
    background: var(--brand-gold, #F5C518);
    color: var(--brand-navy-dark, #152A5C);
    font-weight: 600;
}

.page-info {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin: 0 var(--spacing-md);
}

/* Estados vacíos */
.empty-state {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--gray-500);
}

.empty-state i {
    font-size: 60px;
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
    display: block;
}

.empty-state h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-600);
}

.empty-state p {
    font-size: var(--font-size-md);
}

/* Formularios */
.form-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.form-header {
    padding: var(--spacing-lg);
    background: var(--bg-card, #FFFFFF);
    color: var(--text-primary, #1E293B);
    font-size: var(--font-size-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.form-header i {
    color: var(--brand-gold, #F5C518);
}

.form-body {
    padding: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    transition: var(--transition-normal);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    border-radius: 14px 14px 0 0;
}

/* Form Container Centered */
.form-container-centered {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Form Header Centered */
.form-header-centered {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-100);
}

.form-header-icon {
    width: 64px;
    height: 64px;
    background: var(--brand-navy, #1E3A7B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 28px;
}

.form-header-centered h2 {
    font-size: 24px;
    color: var(--gray-900);
    margin: 0 0 8px 0;
}

.form-header-centered p {
    color: var(--gray-600);
    margin: 0;
}

/* Form Grid 2 Columns */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .form-container-centered {
        padding: 24px;
    }
}

/* Form Label Enhanced */
.form-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--error, #EF4444);
}

.form-label .badge-optional {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    background: var(--gray-200);
    color: var(--gray-600);
}

/* Form Input Enhanced */
.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
    background: white;
}

.form-input:hover,
.form-select:hover {
    border-color: var(--gray-400);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--brand-navy, #1E3A7B);
    box-shadow: 0 0 0 4px rgba(30, 58, 123, 0.1);
}

.form-input.error {
    border-color: var(--error, #EF4444);
}

.form-input::placeholder {
    color: var(--gray-400);
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.input-with-icon .form-input {
    padding-left: 44px;
}

.input-action {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.input-action:hover {
    color: var(--brand-navy, #1E3A7B);
}

/* Form Section */
.form-section {
    border-top: 2px solid var(--gray-100);
    padding-top: 28px;
    margin-top: 12px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section-title i {
    width: 36px;
    height: 36px;
    background: rgba(30, 58, 123, 0.1);
    color: var(--brand-navy, #1E3A7B);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Help Text */
.help-text {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-text i {
    font-size: 12px;
    color: var(--gray-500);
}

/* Password Strength */
.password-strength {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.4s ease;
    border-radius: 3px;
}

.password-strength-bar.weak {
    background: var(--error, #EF4444);
}

.password-strength-bar.medium {
    background: var(--warning, #F59E0B);
}

.password-strength-bar.strong {
    background: var(--success, #10B981);
}

/* Password Requirements */
.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 13px;
}

.password-requirements ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.password-requirements li {
    margin: 4px 0;
    color: var(--gray-600);
}

.password-requirements li.valid {
    color: var(--success, #10B981);
}

.password-requirements li i {
    margin-right: 6px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.checkbox-group:hover {
    background: var(--gray-100);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--brand-navy, #1E3A7B);
}

.checkbox-group label {
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    color: var(--gray-700);
}

/* Role Description */
.role-description {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 8px;
    padding: 10px;
    background: var(--gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--brand-navy, #1E3A7B);
}

/* Colaborador Preview */
.colaborador-preview {
    margin-top: 12px;
    padding: 12px;
    background: rgba(30, 58, 123, 0.05);
    border-radius: 8px;
    display: none;
}

.colaborador-preview.active {
    display: block;
}

.colaborador-preview-title {
    font-weight: 600;
    color: var(--brand-navy, #1E3A7B);
    margin-bottom: 8px;
}

.colaborador-preview-info {
    font-size: 13px;
    color: var(--gray-700);
}

/* Error List */
.error-list {
    margin: 0;
    padding-left: 20px;
}

.error-list li {
    margin: 4px 0;
}

/* Form Input States */
.form-input.success,
.form-select.success {
    border-color: var(--success, #10B981);
}

.form-input.success:focus,
.form-select.success:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Alertas */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-error {
    background: var(--error-light);
    color: var(--error);
    border-left: 4px solid var(--error);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: var(--info-light);
    color: var(--info);
    border-left: 4px solid var(--info);
}

/* ================================================================
   Avatar de colaborador - Mission Emanuel Design
   ================================================================ */
.colaborador-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md, 16px);
}

.colaborador-avatar {
    width: 40px;
    height: 40px;
    background: var(--brand-gold, #F5C518);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-navy, #1E3A7B);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

.colaborador-details {
    display: flex;
    flex-direction: column;
}

.colaborador-details strong {
    font-weight: 600;
    color: var(--text-primary, #1E3A7B);
    font-size: 0.9rem;
}

.colaborador-details small {
    font-size: 0.75rem;
    color: var(--text-secondary, #64748B);
}

.colaborador-nombre {
    font-weight: 500;
    color: var(--text-primary, #1E3A7B);
}

.colaborador-cedula {
    font-size: 0.75rem;
    color: var(--text-secondary, #64748B);
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrap {
        padding: var(--spacing-lg);
    }

    .header-top {
        flex-direction: column;
        align-items: stretch;
    }

    .filters {
        flex-direction: column;
    }

    .filter-group {
        min-width: auto;
    }

    .table-container {
        overflow-x: auto;
    }

    .actions {
        flex-wrap: wrap;
    }

    .form-actions {
        flex-direction: column;
    }

    .pagination {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: var(--font-size-xl);
    }

    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }

    th,
    td {
        padding: var(--spacing-xs);
        font-size: var(--font-size-xs);
    }
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.activo {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.suspendido {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.desvinculado {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge i {
    font-size: 0.5rem;
}

/* ------------------------------------- */
/*   DISEÑO UNIFICADO PARA MÓDULOS       */
/* ------------------------------------- */

.layout .main-content {
    background: var(--gray-50);
    padding: 0;
}

.content-wrapper {
    background: white;
    margin: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.module-header {
    background: var(--bg-card, #FFFFFF);
    color: var(--text-primary, #1E293B);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.module-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
}

.module-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary, #1E293B);
}

.module-title i {
    font-size: 24px;
    color: var(--brand-gold, #F5C518);
}

.module-subtitle {
    font-size: 15px;
    margin: 0;
    color: var(--text-secondary, #64748B);
}

.module-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.module-meta-item,
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-body, #F8FAFC);
    color: var(--text-secondary, #64748B);
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-color, #E2E8F0);
}

.module-meta-item i,
.meta-item i {
    color: var(--brand-gold, #F5C518);
}

.module-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Botones en header del módulo */
.module-actions .btn {
    background: white;
    color: var(--text-primary, #1E293B);
    border: 1px solid var(--border-color, #E2E8F0);
    box-shadow: var(--shadow-sm);
}

.module-actions .btn-primary {
    background: var(--brand-gold, #F5C518);
    color: var(--brand-navy-dark, #152A5C);
    border: none;
    font-weight: 600;
}

.module-actions .btn-primary:hover {
    background: var(--brand-gold-hover, #E5B516);
    color: var(--brand-navy-dark, #152A5C);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4);
}

.module-actions .btn-success {
    background: white;
    color: var(--success-green);
}

.module-actions .btn-success:hover {
    background: #f0fdf4;
    color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.content-body {
    background: #f7f9fc;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    margin: 0;
    font-size: 20px;
    color: var(--primary-blue-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stats-summary .stat-card {
    border: 1px solid var(--border-color, #F1F5F9);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(30, 58, 123, 0.08));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stats-summary .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(30, 58, 123, 0.12));
}

/* Clean SaaS: Sin bordes gruesos de color en stat-cards */
.stat-card.info,
.stat-card.success,
.stat-card.warning {
    border: 1px solid var(--border-color, #F1F5F9);
}

/* Stat card content */
.stat-card .stat-content {
    flex: 1;
    min-width: 0;
}

.stat-card .stat-content .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-card .stat-content .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-navy, #1E3A7B);
    line-height: 1;
}

/* Iconos de stat-card mantienen colores distintivos */
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(30, 58, 123, 0.1);
    color: var(--brand-navy, #1E3A7B);
}

.stat-card.success .stat-icon {
    background: var(--success-light);
    color: var(--success);
}

.stat-card.info .stat-icon {
    background: var(--info-light);
    color: var(--info);
}

.stat-card.warning .stat-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card.primary .stat-icon {
    background: rgba(30, 58, 123, 0.1);
    color: var(--brand-navy, #1E3A7B);
}

.stat-card.danger .stat-icon {
    background: var(--danger-light, #FEE2E2);
    color: var(--danger, #DC2626);
}

/* Utility: padding-0 */
.p-0 {
    padding: 0 !important;
}

/* ================================================================
   Filters Form - Mission Emanuel Design
   ================================================================ */
.filters-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

@media (max-width: 768px) {
    .filters-form {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   Charts Grid - Mission Emanuel Design
   ================================================================ */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.chart-canvas {
    max-height: 300px;
}

@media (max-width: 992px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   Table Utilities - Mission Emanuel Design
   ================================================================ */
.table-footer {
    background: var(--gray-50, #F9FAFB);
    font-weight: 600;
}

.table-footer td {
    padding: 16px !important;
}

.col-colaborador {
    min-width: 200px;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--gray-400, #9CA3AF);
}

.text-success {
    color: var(--success, #10B981);
}

.text-warning {
    color: var(--warning, #F59E0B);
}

.text-danger {
    color: var(--danger, #EF4444);
}

.fw-semibold {
    font-weight: 600;
}

.small {
    font-size: 13px;
}

.mx-1 {
    margin-left: 4px;
    margin-right: 4px;
}

.col-narrow {
    width: 100px;
}

/* ================================================================
   Dashboard Principal - Clean SaaS Components
   ================================================================ */

/* Grid del Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Chart Container */
.chart-container {
    height: 250px;
}

/* Accesos Rápidos Grid */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.quick-access-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.quick-access-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-navy);
}

.quick-access-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-navy);
    font-size: 20px;
    margin-bottom: 12px;
}

.quick-access-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

/* List Items */
.list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning);
    margin-right: 12px;
    flex-shrink: 0;
}

.list-content {
    flex: 1;
    min-width: 0;
}

.list-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-subtitle {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.list-action {
    font-size: 13px;
    color: var(--brand-navy);
    text-decoration: none;
    font-weight: 500;
    margin-left: 12px;
    flex-shrink: 0;
}

.list-action:hover {
    text-decoration: underline;
}

.list-date {
    font-size: 11px;
    color: var(--gray-500);
    margin-left: 12px;
    flex-shrink: 0;
}

/* Avatar Circle */
.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-600);
    margin-right: 12px;
    flex-shrink: 0;
}

/* Birthday Icon Circle */
.birthday-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--warning-light);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Badge Days */
.badge-days {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    background: var(--brand-navy);
    color: white;
    font-weight: 600;
    margin-left: 12px;
    flex-shrink: 0;
}

.badge-count {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    background: var(--warning);
    color: white;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    font-size: 13px;
    text-align: center;
    padding: 20px;
    color: var(--gray-500);
}

/* Developer Footer */
.developer-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 40px;
    padding: 20px 0;
}

/* FAB - Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--brand-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
    border: none;
}

.fab:hover {
    background: var(--brand-navy-light);
    transform: scale(1.05);
}

.fab.active {
    background: var(--gray-600);
}

.fab i {
    font-size: 20px;
    transition: transform 0.3s;
}

.fab.active i {
    transform: rotate(45deg);
}

/* FAB Menu */
.fab-menu {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 99;
}

.fab-menu.show {
    display: flex;
}

.fab-option {
    background: var(--bg-card);
    padding: 10px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.fab-option:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-lg);
}

.fab-option i {
    color: var(--brand-navy);
    width: 16px;
    text-align: center;
}

.fab-option span {
    font-size: 13px;
    font-weight: 500;
}

/* ================================================================
   Clima Dashboard - Clean SaaS Components
   ================================================================ */
.encuesta-info-card {
    margin-bottom: 24px;
}

.encuesta-titulo {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-navy, #1E3A7B);
}

.encuesta-meta {
    color: var(--gray-600);
    font-size: 14px;
}

.fecha-rango {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color, #E2E8F0);
}

.chart-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--brand-navy, #1E3A7B);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pregunta-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--brand-navy, #1E3A7B);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    margin-right: 12px;
}

.respuestas-container {
    margin-top: 24px;
}

.respuesta-barra {
    display: flex;
    align-items: center;
    height: 32px;
    background: var(--gray-100);
    border-radius: 6px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.respuesta-barra-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--brand-navy, #1E3A7B);
    transition: width 0.6s ease;
    z-index: 1;
}

.respuesta-barra-fill.success,
.respuesta-barra-fill.respuesta-si {
    background: #11998e;
}

.respuesta-barra-fill.danger,
.respuesta-barra-fill.respuesta-no {
    background: #f5576c;
}

.respuesta-barra-label {
    position: relative;
    z-index: 2;
    padding-left: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    white-space: nowrap;
}

.respuesta-barra-value {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-navy, #1E3A7B);
}

.texto-abierto-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 16px;
}

.texto-abierto-item {
    padding: 12px;
    background: var(--gray-50);
    border-left: 3px solid var(--brand-navy, #1E3A7B);
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--gray-800);
    line-height: 1.6;
}

.texto-abierto-item:last-child {
    margin-bottom: 0;
}

.promedio-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-navy, #1E3A7B);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 600;
    margin: 16px 0;
}

.categoria-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.empty-responses {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
}

.empty-responses i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}

.respuesta-count {
    background: var(--brand-navy, #1E3A7B);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    margin-left: 12px;
}

.pregunta-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pregunta-respuestas-count {
    font-size: 13px;
    color: var(--gray-600);
}

.obligatoria-badge {
    font-size: 12px;
    color: var(--danger, #EF4444);
}

/* ================================================================
   Filters Card - Mission Emanuel Design
   ================================================================ */
.filters-card {
    background: var(--bg-card, #FFFFFF);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(30, 58, 123, 0.08));
    border: 1px solid var(--border-color, #E2E8F0);
    margin-bottom: 24px;
}

.filters-card .filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: end;
}

.filters-card .filter-group label {
    font-weight: 600;
    color: var(--text-primary, #1E3A7B);
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: block;
}

/* ==================== BENEFICIOS - HISTORIAL ==================== */
.beneficios-historial .card-table {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(26, 35, 126, 0.08);
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid #e3e8ee;
}

.beneficios-historial .card-header {
    font-size: 20px;
    font-weight: 700;
    padding: 22px 24px;
    border-bottom: 2px solid #e3e8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.beneficios-historial .card-body {
    padding: 0 24px 18px 24px;
    text-align: center;
}

.beneficios-historial .stat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(26, 35, 126, 0.08);
    padding: 24px;
    text-align: center;
    margin-bottom: 18px;
}

.beneficios-historial .stat-value {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.beneficios-historial .stat-label {
    color: #666;
    font-size: 15px;
}

.beneficios-historial .history-table {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(26, 35, 126, 0.08);
    padding: 24px;
    margin-top: 20px;
    border: 1px solid #e3e8ee;
}

.beneficios-historial .history-table h4 {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--primary-blue);
}

.beneficios-historial .table-responsive {
    margin-top: 18px;
}

.beneficios-historial .table-hover th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 1px solid #e3e8ee;
    text-align: center;
}

.beneficios-historial .table-hover td {
    padding: 10px 8px;
    border-bottom: 1px solid #e3e8ee;
    vertical-align: middle;
    text-align: center;
}

.badge-beneficio {
    background: #eafaf1;
    color: #197d4c;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
}

.badge-deduccion {
    background: #fbeaea;
    color: #a94442;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
}

.badge-bonificacion {
    background: #eaf0fb;
    color: var(--primary-blue);
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 500;
}


.filters-card .filter-group select,
.filters-card .filter-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: var(--bg-body, #F8FAFC);
    color: var(--text-primary, #1E3A7B);
}

.filters-card .filter-group select:focus,
.filters-card .filter-group input:focus {
    outline: none;
    border-color: var(--brand-navy, #1E3A7B);
    box-shadow: 0 0 0 3px rgba(30, 58, 123, 0.12);
    background: var(--bg-card, #FFFFFF);
}

.filters-card .filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.filters-card .btn-secondary {
    background: var(--brand-gold, #F5C518);
    color: var(--brand-navy, #1E3A7B);
    border: none;
    padding: 12px 18px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.filters-card .btn-secondary:hover {
    background: var(--brand-gold-light, #FFD54F);
    transform: translateY(-1px);
}

/* ================================================================
   Table Card - Mission Emanuel Design
   ================================================================ */
.table-card {
    background: var(--bg-card, #FFFFFF);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(30, 58, 123, 0.08));
    border: 1px solid var(--border-color, #E2E8F0);
    margin-bottom: 24px;
}

.table-card .table-header {
    background: var(--bg-card, #FFFFFF);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.table-card .table-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #1E293B);
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-card .table-title i {
    font-size: 1.25rem;
    color: var(--brand-gold, #F5C518);
}

.table-card .table-count {
    background: var(--bg-body, #F8FAFC);
    color: var(--text-secondary, #64748B);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color, #E2E8F0);
}

.table-responsive {
    overflow-x: auto;
}

/* Celda de motivo/descripción con ancho máximo */
.motivo-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .motivo-cell {
        max-width: 200px;
    }
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.item-name {
    font-weight: 600;
    color: var(--gray-900);
}

.item-detail {
    font-size: 13px;
    color: var(--gray-600);
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--gray-600);
}

.date-info .date {
    font-weight: 600;
    color: var(--gray-800);
}

.date-info .time {
    font-size: 12px;
    color: var(--gray-500);
}

/* Celdas de tablas especiales */
.col-acciones {
    width: 130px;
    text-align: center;
}

.comentario-cell {
    max-width: 350px;
}

.participants-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary-blue);
}

.participants-count i {
    font-size: 14px;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.badge.tipo-presencial,
.calendar-event.tipo-presencial {
    background: var(--info-light);
    color: var(--info);
}

.badge.tipo-online,
.calendar-event.tipo-online {
    background: rgba(33, 150, 243, 0.15);
    color: var(--info);
}

.badge.tipo-externa,
.calendar-event.tipo-externa {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.badge.estado-planificada {
    background: var(--warning-light);
    color: var(--warning);
}

.badge.estado-en_curso {
    background: var(--info-light);
    color: var(--info);
}

.badge.estado-completada {
    background: var(--success-light);
    color: var(--success);
}

.badge.estado-cancelada {
    background: var(--error-light);
    color: var(--error);
}

.calendar-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calendar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    border: none;
    background: var(--primary-blue);
    color: white;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-normal);
}

.calendar-nav button:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.calendar-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue-dark);
    margin: 0;
}

.calendar-subtitle {
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.calendar-day-header {
    background: var(--primary-blue);
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.calendar-day:hover {
    background: var(--gray-50);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transform: translateY(-2px);
}

.calendar-day.other-month {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: default;
}

.calendar-day.today {
    border-top: 3px solid var(--primary-blue);
    background: var(--info-light);
}

.day-number {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 14px;
}

.calendar-event {
    background: var(--primary-blue-light);
    color: var(--primary-blue-dark);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-fast);
    border: none;
}

.calendar-event:hover {
    background: var(--primary-blue);
    color: white;
}

.calendar-event.estado-completada {
    opacity: 0.85;
}

.grid-panels {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.upcoming-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition-normal);
    cursor: pointer;
    background: white;
}

.timeline-item:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.timeline-date {
    min-width: 84px;
    text-align: center;
    background: var(--info-light);
    color: var(--info);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-day {
    font-size: 18px;
}

.timeline-month {
    font-size: 12px;
    letter-spacing: 1px;
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-content h3 {
    margin: 0;
    color: var(--gray-900);
    font-size: 18px;
}

.timeline-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.timeline-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--gray-600);
}

.timeline-status {
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--info-light);
    color: var(--info);
    text-transform: capitalize;
}

.timeline-status.planificada {
    background: var(--warning-light);
    color: var(--warning);
}

.timeline-status.en_curso {
    background: var(--info-light);
    color: var(--info);
}

.timeline-status.completada {
    background: var(--success-light);
    color: var(--success);
}

.timeline-status.cancelada {
    background: var(--error-light);
    color: var(--error);
}

.event-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.event-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    width: min(520px, 90vw);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.event-modal-content.modal-lg {
    width: min(720px, 95vw);
}

.event-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition-fast);
}

.event-modal-close:hover {
    color: var(--error);
    transform: scale(1.1);
}

.modal-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.section-block {
    margin-top: var(--spacing-xl);
}

.section-block+.section-block {
    margin-top: var(--spacing-xl);
}

/* Option cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.card-option {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.card-option:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.card-option .card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.card-option strong {
    font-size: 18px;
    color: var(--text-primary);
}

.card-option span {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-option .card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-weight: 600;
}

.card-option.primary .card-icon {
    background: rgba(30, 58, 123, 0.1);
    color: var(--brand-navy, #1E3A7B);
}

.card-option.info .card-icon {
    background: var(--info-light);
    color: var(--info);
}

.card-option.success .card-icon {
    background: var(--success-light);
    color: var(--success);
}

.card-option.warning .card-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.card-option.danger .card-icon {
    background: var(--error-light);
    color: var(--error);
}

.card-option.neutral .card-icon {
    background: var(--bg-secondary, #F8FAFC);
    color: var(--brand-navy, #1E3A7B);
}

@media (max-width: 1200px) {
    .grid-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .module-header {
        flex-direction: column;
    }

    .module-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        margin: 16px;
    }

    .content-body {
        padding: 24px;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .calendar-day {
        min-height: 100px;
    }
}

@media (max-width: 600px) {
    .module-title {
        font-size: 26px;
    }

    .module-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .module-actions .btn,
    .module-actions .btn-primary,
    .module-actions .btn-outline-light {
        width: 100%;
        text-align: center;
    }

    .filters-card .filters {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .timeline-item {
        flex-direction: column;
        align-items: stretch;
    }

    .timeline-date {
        width: 100%;
    }
}

/* Filters container */
.filters-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* Stats summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Table container */
.table-container {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* ================================================================
   Data Table - Mission Emanuel Design
   ================================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-body, #F8FAFC);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary, #64748B);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
    vertical-align: middle;
    color: var(--text-primary, #1E3A7B);
    font-size: 0.9rem;
}

.data-table tr:hover td {
    background: var(--bg-body, #F8FAFC);
}

.actions-column {
    width: 140px;
    text-align: center;
}

/* Colaborador info - Unificado con Clean SaaS */
.colaborador-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.colaborador-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5C518, #D4A017);
    color: #1E3A7B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.colaborador-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    /* Permitir que el texto se trunque si es necesario */
}

.colaborador-nombre,
.colaborador-details strong {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.4;
}

.colaborador-cedula,
.colaborador-details small {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.3;
}

/* ================================================================
   Action Buttons - Mission Emanuel Design
   ================================================================ */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(30, 58, 123, 0.12));
}

.btn-view {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.btn-view:hover {
    background: #3B82F6;
    color: white;
}

.btn-edit {
    background: #fef3c7;
    color: #92400e;
}

.btn-edit:hover {
    background: #f59e0b;
    color: white;
}

.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

/* Icon Buttons - Clean SaaS Style */
.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-icon-view {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.btn-icon-view:hover {
    background: #3B82F6;
    color: white;
}

.btn-icon-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.btn-icon-success:hover {
    background: #10B981;
    color: white;
}

.btn-icon-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: #64748B;
}

.btn-icon-secondary:hover {
    background: #64748B;
    color: white;
}

.btn-icon-warning {
    background: rgba(245, 197, 24, 0.15);
    color: #D4A017;
}

.btn-icon-warning:hover {
    background: #F5C518;
    color: #152A5C;
}

.btn-icon-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.btn-icon-danger:hover {
    background: #EF4444;
    color: white;
}

/* Cell styles for tables */
.cell-main {
    font-weight: 500;
    color: var(--text-primary, #1E293B);
    font-size: 0.9rem;
}

.cell-sub {
    font-size: 0.75rem;
    color: var(--text-secondary, #64748B);
    margin-top: 2px;
}

/* No data message */
.no-data {
    text-align: center;
    padding: 3rem 2rem;
}

.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-data-message i {
    font-size: 3rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.no-data-message h3 {
    margin: 0;
    color: var(--text-primary);
}

.no-data-message p {
    margin: 0;
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-container .form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--gray-25);
    border-radius: 12px 12px 0 0;
}

.modal-container .form-header span {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-modal:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

/* Additional responsive styles for new components */
@media (max-width: 768px) {
    .filters {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        justify-content: stretch;
    }

    .filter-actions .btn {
        flex: 1;
    }

    .stats-summary {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.875rem;
    }

    .colaborador-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .modal-container {
        width: 95%;
        margin: 1rem;
    }
}

/* Reports specific styles */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.report-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976D2, #42a5f5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.report-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.report-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.report-actions {
    margin-top: auto;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.badge-info {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ================================
   DRAWER / MODAL LATERAL
   ================================ */

.drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 9999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.drawer.drawer-light {
    background: transparent;
    box-shadow: none;
    padding: 24px 0;
}

.drawer.drawer-light .drawer-content {
    background: #fff;
    border-radius: 20px 0 0 20px;
    box-shadow: -12px 0 35px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.drawer.drawer-light .drawer-header {
    background: #fff;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
}

.drawer.drawer-light .btn-close {
    color: var(--gray-500);
}

.drawer.drawer-light .btn-close:hover {
    background: rgba(15, 23, 42, 0.05);
}

.drawer.drawer-light .drawer-body {
    background: #fff;
}

.drawer.drawer-light .drawer-footer {
    background: #fff;
    border-top: 1px solid var(--gray-200);
}

.drawer.open {
    right: 0;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drawer-header {
    padding: 24px 32px;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
}

.drawer-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.btn-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.drawer-body {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.drawer-footer {
    padding: 24px 32px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--gray-300);
    transform: translateY(-1px);
}

/* Overlay para cerrar el drawer */
.drawer::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: -1;
}

.drawer.open::before {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .drawer {
        width: 100vw;
        right: -100vw;
    }

    .drawer.drawer-light {
        padding: 0;
    }

    .drawer.drawer-light .drawer-content {
        border-radius: 0;
    }

    .drawer-header,
    .drawer-body,
    .drawer-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   MÓDULOS: COLABORADORES Y CANDIDATOS
   ============================================= */

/* ================================================================
   Dashboard de Estadísticas - Mission Emanuel Design
   Actualizado: Diciembre 2025
   ================================================================ */
.stats-dashboard {
    margin-bottom: var(--spacing-xl, 32px);
}

.stats-dashboard .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg, 24px);
}

@media (max-width: 1200px) {
    .stats-dashboard .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-dashboard .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stats-dashboard .stat-card {
    background: var(--bg-card, #FFFFFF);
    border-radius: 12px;
    padding: var(--spacing-lg, 24px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(30, 58, 123, 0.08));
    border: 1px solid var(--border-color, #F1F5F9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md, 16px);
    position: relative;
    overflow: hidden;
}

.stats-dashboard .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.08) 0%, transparent 70%);
    border-radius: 0 0 0 80px;
    opacity: 0;
    transition: opacity 0.2s;
}

.stats-dashboard .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(30, 58, 123, 0.12));
}

.stats-dashboard .stat-card:hover::before {
    opacity: 1;
}

/* Clean SaaS: Stat cards sin borde de color - estilo minimalista */
.stat-card.stat-primary,
.stat-card.stat-info,
.stat-card.stat-success,
.stat-card.stat-warning {
    border: 1px solid var(--border-color, #F1F5F9);
}

/* Stat icon - soporte para icono directo en stat-card */
.stat-card>.stat-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: var(--brand-navy, #1E3A7B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(30, 58, 123, 0.15);
}

.stat-card.stat-primary>.stat-icon {
    background: var(--brand-navy, #1E3A7B);
}

.stat-card.stat-info>.stat-icon {
    background: var(--info, #3B82F6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.stat-card.stat-success>.stat-icon {
    background: var(--success, #10B981);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.stat-card.stat-warning>.stat-icon {
    background: var(--brand-gold, #F5C518);
    color: var(--brand-navy-dark, #152A5C);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.15);
}

.stat-card.stat-danger>.stat-icon {
    background: var(--danger, #EF4444);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.stat-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md, 16px);
}

.stat-header .stat-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 12px;
    background: var(--brand-navy, #1E3A7B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(30, 58, 123, 0.15);
}

.stat-card.stat-info .stat-icon {
    background: var(--info, #3B82F6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.stat-card.stat-success .stat-icon {
    background: var(--success, #10B981);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.stat-card.stat-danger .stat-icon {
    background: var(--danger, #EF4444);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.stat-card.stat-warning .stat-icon {
    background: var(--brand-gold, #F5C518);
    color: var(--brand-navy-dark, #152A5C);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.15);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-content .stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-content .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #1E3A7B);
    line-height: 1;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--success-light, #D1FAE5);
    color: var(--success, #10B981);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

/* Stat List - Para listas dentro de stat cards */
.stat-list {
    margin-top: var(--spacing-sm, 8px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary, #64748B);
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color, #F1F5F9);
}

.stat-list-item:last-child {
    border-bottom: none;
}

.stat-list-item i {
    color: var(--brand-gold, #F5C518);
    font-size: 0.7rem;
    width: 16px;
    text-align: center;
}

.stat-list-item span {
    flex: 1;
    white-space: normal;
    overflow: visible;
    line-height: 1.3;
    font-size: 0.75rem;
}

/* Mini Chart */
.stat-mini-chart {
    margin-top: var(--spacing-md, 12px);
    padding-top: var(--spacing-sm, 8px);
    border-top: 1px solid var(--border-color, #E2E8F0);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.chart-label {
    min-width: 90px;
    font-weight: 500;
    color: var(--text-secondary, #64748B);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-track {
    flex: 1;
    height: 8px;
    background: var(--gray-100, #F1F5F9);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--brand-navy, #1E3A7B);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.chart-value {
    min-width: 28px;
    text-align: right;
    font-weight: 700;
    color: var(--brand-navy, #1E3A7B);
    font-size: 13px;
}

/* Botones de Acción Mejorados */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.btn-action {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    pointer-events: auto;
    z-index: 10;
}

a.btn-action {
    pointer-events: auto;
    cursor: pointer;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-action.btn-view {
    background: var(--info-light);
    color: var(--info);
    border-color: transparent;
}

.btn-action.btn-view:hover {
    background: var(--info);
    color: white;
    border-color: var(--info);
}

.btn-action.btn-edit {
    background: var(--warning-light);
    color: var(--warning);
    border-color: transparent;
}

.btn-action.btn-edit:hover {
    background: var(--warning);
    color: white;
    border-color: var(--warning);
}

.btn-action.btn-delete {
    background: var(--error-light);
    color: var(--error);
    border-color: transparent;
}

.btn-action.btn-delete:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.btn-action.btn-quick {
    background: var(--primary-blue-light);
    color: var(--primary-blue-dark);
    border-color: transparent;
}

.btn-action.btn-quick:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-action.btn-copy {
    background: var(--success-light);
    color: var(--success);
    border-color: transparent;
}

.btn-action.btn-copy:hover {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-action.btn-download {
    background: #E3F2FD;
    color: #1565C0;
    border-color: transparent;
}

.btn-action.btn-download:hover {
    background: #1565C0;
    color: white;
    border-color: #1565C0;
}

.btn-action.btn-success-action {
    background: var(--success-light);
    color: var(--success);
    border-color: transparent;
}

.btn-action.btn-success-action:hover {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

/* Tooltip para botones */
.btn-action[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--gray-900);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

.btn-action[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 5px solid transparent;
    border-top-color: var(--gray-900);
    z-index: 1000;
    pointer-events: none;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Modal Overlay y Contenido */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--spacing-lg);
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    color: white;
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--spacing-xl);
    overflow-y: auto;
    flex: 1;
}

/* Loading Spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--me-blue-700);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Info Grid en Modal */
.modal-body .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-md);
}

.info-card {
    background: var(--gray-50);
    padding: 2rem 2.5rem;
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--primary-blue);
    transition: all 0.2s ease;
    margin-bottom: 2rem;
}

.info-card:hover {
    background: var(--gray-100);
    transform: translateX(2px);
}

.info-card.info-primary {
    border-left-color: var(--primary-blue);
}

.info-card.info-success {
    border-left-color: var(--success);
}

.info-card.info-warning {
    border-left-color: var(--warning);
}

.info-card.info-info {
    border-left-color: var(--info);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    color: var(--gray-500);
    gap: var(--spacing-sm);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.toast-success {
    border-left-color: var(--success);
}

.toast.toast-success .toast-icon {
    color: var(--success);
}

.toast.toast-error {
    border-left-color: var(--error);
}

.toast.toast-error .toast-icon {
    color: var(--error);
}

.toast.toast-warning {
    border-left-color: var(--warning);
}

.toast.toast-warning .toast-icon {
    color: var(--warning);
}

.toast.toast-info {
    border-left-color: var(--info);
}

.toast.toast-info .toast-icon {
    color: var(--info);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 14px;
}

/* Badges de Estado para Candidatos */
.badge.badge-nuevo {
    background: #E3F2FD;
    color: #1565C0;
}

.badge.badge-en_proceso {
    background: var(--warning-light);
    color: var(--warning);
}

.badge.badge-rechazado {
    background: var(--error-light);
    color: var(--error);
}

.badge.badge-contratado {
    background: var(--success-light);
    color: var(--success);
}

.badge.badge-descartado {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* Badges de Estado para Colaboradores */
.badge.badge-inactivo {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* Estado sin resultados */
.no-results {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--gray-500);
}

.no-results i {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
    display: block;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-700);
}

.no-results p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

/* Tabla mejorada para módulos */
.table-container table tbody tr {
    transition: all 0.2s ease;
}

.table-container table tbody tr:hover {
    background: var(--info-light);
    box-shadow: inset 0 0 0 1px rgba(25, 118, 210, 0.2);
}

/* Responsive para módulos */
@media (max-width: 768px) {
    .stats-dashboard .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }

    .btn-action {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .modal-content {
        max-width: 95%;
        margin: var(--spacing-md);
    }

    .modal-body .info-grid {
        grid-template-columns: 1fr;
    }

    .toast-container {
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* ==========================================
   BOTÓN FLOTANTE (FAB - Floating Action Button)
   ========================================== */
.fab-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    cursor: pointer;
}

.fab-button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.fab-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fab-button i {
    transition: transform 0.3s ease;
}

.fab-button:hover i {
    transform: rotate(90deg);
}

/* Variantes de color para FAB */
.fab-button.fab-success {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.fab-button.fab-warning {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.fab-button.fab-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

/* FAB responsivo */
@media (max-width: 768px) {
    .fab-button {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* ==================== NOMINA ==================== */
/* Estilos extraídos de modulos/nomina/index.php y generar.php */

/* Tarjetas de estadísticas */
.nomina-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.nomina-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    padding: 24px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nomina-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-blue-dark));
    opacity: 0;
    transition: opacity 0.3s;
}

.nomina-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 35, 126, 0.15);
    border-color: var(--primary-blue);
}

.nomina-stat-card:hover::before {
    opacity: 1;
}

.nomina-stat-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.nomina-stat-card .value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue-dark);
    margin-bottom: 6px;
    line-height: 1.2;
}

.nomina-stat-card .label {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

/* Acciones rápidas */
.quick-actions-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 36px;
}

.quick-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    padding: 24px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.quick-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(26, 35, 126, 0.14);
    border-color: var(--primary-blue);
}

.quick-card:hover::after {
    transform: scaleX(1);
}

.quick-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
    transition: transform 0.3s;
}

.quick-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.quick-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.5;
}

/* Tabla de nóminas */
.table-card {
    background: var(--bg-card);
    border-radius: 18px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.08);
    overflow: hidden;
}

.nomina-table {
    width: 100%;
    border-collapse: collapse;
}

.nomina-table thead {
    background: var(--bg-body, #F8FAFC);
}

.nomina-table th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #64748B);
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.nomina-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}

.nomina-table tbody tr {
    transition: background-color 0.2s;
}

.nomina-table tbody tr:hover {
    background-color: var(--gray-50);
}

.nomina-table tbody tr:last-child td {
    border-bottom: none;
}

.periodo-label {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 15px;
    margin-bottom: 4px;
}

/* Acciones de tabla */
.table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.table-actions .btn-action {
    width: auto;
    height: auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.table-actions .btn-primary {
    background: var(--primary-blue);
    color: white;
}

.table-actions .btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.table-actions .btn-success {
    background: #10b981;
    color: white;
}

.table-actions .btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 18px;
    border: 2px dashed var(--gray-300);
}

.empty-state i {
    font-size: 64px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--gray-600);
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* Parámetros Grid - 4 columnas en desktop */
.nomina-config-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 1200px) {
    .nomina-config-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nomina-config-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards de parámetros mejorados */
.nomina-config-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 16px rgba(26, 35, 126, 0.08);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nomina-config-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.nomina-config-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 35, 126, 0.15);
    border-color: var(--primary-blue);
}

.nomina-config-card:hover::before {
    opacity: 1;
}

.nomina-config-card .label {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nomina-config-card .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.nomina-config-card .hint {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Sección de parámetros */
.parametros-section {
    background: #fff;
    border-radius: 20px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px rgba(26, 35, 126, 0.1);
    padding: 32px;
    margin-bottom: 32px;
}

.parametros-section .section-header {
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
}

.parametros-section .section-header i {
    font-size: 28px;
    color: var(--primary-blue);
}

.parametros-section .section-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-800);
}

.parameter-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    border: 1px solid #93c5fd;
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-top: 24px;
}

.parameter-note i {
    color: var(--primary-blue);
    font-size: 18px;
    margin-top: 2px;
}

.parameter-note strong {
    color: var(--primary-blue-dark);
}

/* Formulario mejorado */
.nomina-form-card {
    background: #fff;
    border-radius: 20px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px rgba(26, 35, 126, 0.1);
    padding: 32px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.form-section-title i {
    font-size: 24px;
    color: var(--primary-blue);
}

.form-section-title h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--gray-800);
}

/* Radio buttons mejorados */
.form-group .radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.form-group .radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--gray-50);
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s;
}

.form-group .radio-group label:hover {
    background: var(--primary-blue-light);
    border-color: var(--primary-blue);
}

.form-group .radio-group input[type="radio"]:checked+label,
.form-group .radio-group label:has(input[type="radio"]:checked) {
    background: var(--primary-blue);
    border-color: var(--primary-blue-dark);
    color: white;
}

.form-group .radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: white;
    cursor: pointer;
}

/* Alert mejorado */
.alert-info-enhanced {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    border: 2px solid #fbbf24;
    margin: 24px 0;
}

.alert-info-enhanced i {
    font-size: 24px;
    color: #d97706;
    margin-top: 2px;
}

.alert-info-enhanced .alert-content {
    flex: 1;
    line-height: 1.6;
}

.alert-info-enhanced strong {
    color: #92400e;
    font-weight: 700;
}

.alert-info-enhanced code {
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #92400e;
    font-weight: 600;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nomina-config-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.nomina-config-card:nth-child(1) {
    animation-delay: 0.05s;
}

.nomina-config-card:nth-child(2) {
    animation-delay: 0.1s;
}

.nomina-config-card:nth-child(3) {
    animation-delay: 0.15s;
}

.nomina-config-card:nth-child(4) {
    animation-delay: 0.2s;
}

.nomina-config-card:nth-child(5) {
    animation-delay: 0.25s;
}

.nomina-config-card:nth-child(6) {
    animation-delay: 0.3s;
}

.nomina-config-card:nth-child(7) {
    animation-delay: 0.35s;
}

.nomina-config-card:nth-child(8) {
    animation-delay: 0.4s;
}

/* ==================== ASISTENCIA ==================== */
/* Estilos extraídos de modulos/asistencia/index.php */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 4px;
}

/* Filtros Asistencia */
.asistencia-filters-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

@media (max-width: 992px) {
    .asistencia-filters-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .asistencia-filters-form {
        grid-template-columns: 1fr;
    }
}

/* Botón flotante */
.fab-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    transition: all 0.3s;
    z-index: 100;
    text-decoration: none;
}

.fab-button:hover {
    transform: scale(1.1);
    background: var(--primary-blue-dark);
    color: white;

}

.beneficios-assigned-empty {
    padding: 20px;
    text-align: center;
    color: #666;
}

.beneficios-assigned-empty i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 10px;
}


/* ==================== FORMS & INPUTS (COLABORADORES) ==================== */
.form-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.segment-card {
    background: var(--bg-card, #FFFFFF);
    border-radius: 12px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(30, 58, 123, 0.08));
    overflow: hidden;
    border: 1px solid var(--border-color, #E2E8F0);
}

.segment-header {
    background: var(--bg-card, #FFFFFF);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.segment-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #1E293B);
    margin: 0;
}

.segment-header p {
    color: var(--text-secondary, #64748B);
    font-size: 0.85rem;
    margin: 4px 0 0 0;
}

.segment-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 197, 24, 0.15);
    color: var(--brand-gold-dark, #D4A017);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.segment-body {
    padding: 24px;
}

.input-grid {
    display: grid;
    gap: 20px;
}

.input-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.input-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .input-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .input-grid-2,
    .input-grid-3 {
        grid-template-columns: 1fr;
    }
}

.input-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-control label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary, #1E293B);
}

.input-control input,
.input-control select,
.input-control textarea {
    padding: 10px 14px;
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 8px;
    font-size: 0.9rem;
    background: var(--bg-card, #FFFFFF);
    color: var(--text-primary, #1E293B);
    transition: all 0.2s;
    width: 100%;
}

.input-control input:focus,
.input-control select:focus,
.input-control textarea:focus {
    border-color: var(--brand-navy, #1E3A7B);
    box-shadow: 0 0 0 3px rgba(30, 58, 123, 0.1);
    outline: none;
}

.input-control input::placeholder,
.input-control textarea::placeholder {
    color: var(--text-secondary, #94A3B8);
}

.required {
    color: #EF4444;
    margin-left: 2px;
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-secondary, #64748B);
}

.link-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary, #64748B);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--bg-body, #F8FAFC);
    border: 1px solid var(--border-color, #E2E8F0);
    margin-bottom: 20px;
    transition: all 0.2s;
    width: fit-content;
}

.link-back:hover {
    color: var(--brand-navy, #1E3A7B);
    background: var(--bg-body, #F8FAFC);
    border-color: var(--brand-navy, #1E3A7B);
}

/* Radio Groups Inline */
.radio-group-inline {
    display: flex;
    gap: 16px;
    align-items: center;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary, #1E293B);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-navy, #1E3A7B);
    cursor: pointer;
}

/* Sub-section titles */
.sub-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1E293B);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}

/* Dynamic Tables */
.dynamic-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.dynamic-table th {
    background: var(--bg-body, #F8FAFC);
    padding: 10px 12px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.dynamic-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color, #E2E8F0);
}

.dynamic-table input {
    padding: 8px 10px;
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 6px;
    font-size: 0.85rem;
    width: 100%;
    background: var(--bg-card, #FFFFFF);
}

.dynamic-table input:focus {
    border-color: var(--brand-navy, #1E3A7B);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 58, 123, 0.1);
}

/* Form Submit Button */
.form-submit-section {
    background: var(--bg-card, #FFFFFF);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid var(--border-color, #E2E8F0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.form-submit-section .btn-submit {
    background: var(--brand-gold, #F5C518);
    color: var(--brand-navy-dark, #152A5C);
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.form-submit-section .btn-submit:hover {
    background: var(--brand-gold-hover, #E5B516);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.3);
}

.form-submit-section .btn-cancel {
    background: transparent;
    color: var(--text-secondary, #64748B);
    padding: 12px 24px;
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.form-submit-section .btn-cancel:hover {
    border-color: var(--text-secondary, #64748B);
    background: var(--bg-body, #F8FAFC);
}

/* Alert styles for forms */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
}

.alert i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Checkbox styling */
.checkbox-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-body, #F8FAFC);
    border-radius: 8px;
    border: 1px solid var(--border-color, #E2E8F0);
}

.checkbox-control input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-navy, #1E3A7B);
    cursor: pointer;
}

.checkbox-control label {
    font-size: 0.9rem;
    color: var(--text-primary, #1E293B);
    cursor: pointer;
}

select,
select option {
    text-transform: uppercase;
}