/* =========================================
   SST-HUB · CSS MAESTRO v4
   Estructura:
   1. Reset
   2. Login
   3. Alertas
   4. Layout con sidebar
   5. Sidebar
   6. Main content
   7. Headers
   8. Botones
   9. Cards
   10. Tablas
   11. Badges y tags
   12. Panel de filtros
   13. Dropdown de presets
   14. Barra de resultados
   15. Empty state
   16. Formulario trabajador
   17. Dashboard
   18. Importar/Exportar
   19. FIX z-index (dropdown encima)
   ========================================= */

/* =========================================
   1. RESET
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    min-height: 100vh;
    color: #1e293b;
}

/* =========================================
   2. LOGIN
   ========================================= */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    padding: 12px 22px;
    border-radius: 12px;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.login-header h1 {
    color: #1e3a8a;
    font-size: 26px;
    margin-bottom: 6px;
}

.login-header p {
    color: #64748b;
    font-size: 13px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-form label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.login-form input {
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.login-form input:focus {
    border-color: #1e3a8a;
}

.login-form button {
    margin-top: 10px;
    padding: 13px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px #1e3a8a;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: #94a3b8;
}

/* =========================================
   3. ALERTAS
   ========================================= */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-error {
    background: rgba(254, 226, 226, 0.9);
    color: #991b1b;
    border: 1px solid rgba(153, 27, 27, 0.2);
}

.alert-success {
    background: rgba(220, 252, 231, 0.9);
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.2);
}

/* =========================================
   4. LAYOUT CON SIDEBAR
   ========================================= */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eefc 50%, #f5f0ff 100%);
    color: #1e293b;
}

/* =========================================
   5. SIDEBAR
   ========================================= */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
    color: #fff;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 500;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.sidebar-logo {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.sidebar-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-nav a:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
    transform: translateX(4px);
    box-shadow: inset 3px 0 0 #3b82f6;
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #fff;
    box-shadow: inset 3px 0 0 #3b82f6;
}

.sidebar-logout {
    color: #fca5a5;
    text-decoration: none;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    background: rgba(239, 68, 68, 0.15);
    transition: background 0.15s;
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* =========================================
   6. MAIN CONTENT
   ========================================= */
.main-content {
    flex: 1;
    padding: 20px 28px;
    max-width: 1400px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* =========================================
   7. HEADERS
   ========================================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header h1 {
    color: #0f172a;
    font-size: 26px;
}

.premium-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 18px 24px;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px -12px rgba(30, 58, 138, 0.2);
    position: relative;
    overflow: hidden;
}

.premium-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.premium-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.premium-subtitle {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================
   8. BOTONES
   ========================================= */
.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -6px #1e3a8a;
}

.btn-secondary {
    background: #fff;
    color: #1e3a8a;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: #1e3a8a;
}

.btn-link {
    background: transparent;
    color: #64748b;
    text-decoration: underline;
    padding: 10px 8px;
}

.btn-sm {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 5px 11px;
    font-size: 11px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(30, 58, 138, 0.5);
}

.btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px -4px rgba(30, 58, 138, 0.4);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    box-shadow: 0 8px 24px -6px rgba(30, 58, 138, 0.6);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1e3a8a;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px -4px rgba(30, 58, 138, 0.15);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(30, 58, 138, 0.25);
}

.btn-export {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(16, 185, 129, 0.4);
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(16, 185, 129, 0.6);
}

/* =========================================
   9. CARDS
   ========================================= */
.card-white {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.08);
}

.card-white h2 {
    color: #1e3a8a;
    font-size: 20px;
    margin-bottom: 12px;
}

.card-white h3 {
    color: #334155;
    font-size: 15px;
    margin: 16px 0 8px;
}

.card-white p {
    color: #475569;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* =========================================
   10. TABLAS
   ========================================= */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.data-table th {
    text-align: left;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.premium-table-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 4px;
    box-shadow: 0 8px 32px -12px rgba(30, 58, 138, 0.15);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.premium-table thead th {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 11px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.premium-table thead th:first-child {
    border-top-left-radius: 12px;
}

.premium-table thead th:last-child {
    border-top-right-radius: 12px;
}

.premium-table tbody tr {
    transition: all 0.15s;
}

.premium-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.4) 0%, rgba(237, 233, 254, 0.4) 100%);
}

.premium-table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    font-size: 13px;
}

.premium-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.premium-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* =========================================
   11. BADGES Y TAGS
   ========================================= */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    box-shadow: 0 2px 6px -1px rgba(22, 101, 52, 0.2);
}

.badge-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    box-shadow: 0 2px 6px -1px rgba(153, 27, 27, 0.2);
}

.empresa-tag {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* =========================================
   12. PANEL DE FILTROS
   ========================================= */
.premium-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 14px;
    box-shadow: 0 8px 32px -12px rgba(30, 58, 138, 0.15);
    position: relative;
    overflow: visible;
    z-index: 100;
}

.premium-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6, #8b5cf6, #3b82f6, #1e3a8a);
    background-size: 200% 100%;
    animation: gradient-shift 4s ease infinite;
    border-radius: 18px 18px 0 0;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.filtros-form-full {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filtros-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filtro-search {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    opacity: 0.6;
}

.filtro-search input {
    width: 100%;
    padding: 9px 12px 9px 38px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.9);
}

.filtro-search input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #fff;
}

.filtro-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.chip:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.chip-active {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
    box-shadow: 0 4px 12px -2px rgba(30, 58, 138, 0.4);
}

.chip-success {
    color: #166534;
    background: #dcfce7;
}

.chip-success:hover {
    background: #bbf7d0;
}

.chip-success.chip-active {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.chip-danger {
    color: #991b1b;
    background: #fee2e2;
}

.chip-danger:hover {
    background: #fecaca;
}

.chip-danger.chip-active {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.filtro-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}

.filtro-group label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtro-group select,
.filtro-group input[type="date"] {
    padding: 9px 12px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s;
    cursor: pointer;
}

.filtro-group select:focus,
.filtro-group input[type="date"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #fff;
}

.filtro-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
    align-items: flex-end;
}

/* =========================================
   13. DROPDOWN DE PRESETS
   ========================================= */
.filtro-presets-dropdown {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.preset-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(147, 197, 253, 0.4);
    border-radius: 12px;
    color: #1e40af;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 4px 12px -4px rgba(30, 58, 138, 0.1);
}

.preset-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.3);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.25s;
    opacity: 0.7;
}

.preset-dropdown-btn:has(+ .preset-dropdown-menu.open) .dropdown-arrow {
    transform: rotate(180deg);
}

.preset-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 8px;
    box-shadow:
        0 20px 40px -12px rgba(30, 58, 138, 0.25),
        0 0 0 1px rgba(147, 197, 253, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.97);
    transform-origin: top left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    filter: drop-shadow(0 20px 40px rgba(30, 58, 138, 0.25));
}

.preset-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: dropdown-pop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
}

@keyframes dropdown-pop {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    60% {
        transform: translateY(2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: #334155;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: #1e40af;
    transform: translateX(4px);
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.4), transparent);
    margin: 6px 4px;
}

.dropdown-item-clear {
    color: #991b1b;
}

.dropdown-item-clear:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

/* =========================================
   14. BARRA DE RESULTADOS (compacta)
   ========================================= */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 16px -8px rgba(30, 58, 138, 0.15);
    margin: 0 0 12px 0;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.4;
}

.results-count {
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.results-count strong {
    color: #1e3a8a;
    font-size: 20px;
    font-weight: 800;
    margin-right: 2px;
}

.results-header .btn-export {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.filter-tag {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: #1e40af;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
}

/* =========================================
   15. EMPTY STATE
   ========================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #334155;
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    color: #94a3b8;
    font-size: 14px;
}

.empty-state a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* =========================================
   16. FORMULARIO TRABAJADOR
   ========================================= */
.form-trabajador {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.08);
}

.form-section legend {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
    padding: 0 10px;
    margin-left: -4px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1e3a8a;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
}

.form-actions-sticky {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, #f1f5f9 60%, transparent);
    padding: 16px 0;
    z-index: 10;
}

/* =========================================
   17. DASHBOARD
   ========================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.main-content .card {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.08);
    transition: all 0.15s;
}

.card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.main-content .card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -15px rgba(30, 58, 138, 0.5);
    border-color: #1e3a8a;
}

.card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.card-desc {
    font-size: 13px;
    color: #64748b;
}

.main-content .user-info {
    font-size: 13px;
    color: #475569;
}

/* =========================================
   18. IMPORTAR / EXPORTAR
   ========================================= */
.import-export-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 800px) {
    .import-export-grid {
        grid-template-columns: 1fr;
    }
}

.file-input-wrapper {
    margin-bottom: 16px;
}

/* =========================================
   PAGINACIÓN
   ========================================= */
.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 16px -8px rgba(30, 58, 138, 0.15);
    margin-top: 12px;
}

.pagination-info {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.pagination-info strong {
    color: #1e3a8a;
    font-weight: 700;
}

.pagination-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    color: #1e3a8a;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-btn:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -4px rgba(59, 130, 246, 0.3);
}

.page-btn-active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    border-color: #1e3a8a;
    box-shadow: 0 4px 14px -4px rgba(30, 58, 138, 0.5);
}

.page-btn-active:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(30, 58, 138, 0.6);
}

.page-btn-nav {
    font-size: 16px;
    font-weight: 700;
}

.page-btn.disabled {
    background: #f1f5f9;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-btn.disabled:hover {
    background: #f1f5f9;
    transform: none;
    box-shadow: none;
}

.page-dots {
    color: #94a3b8;
    font-weight: 700;
    padding: 0 4px;
    user-select: none;
}

/* =========================================
   ACCIONES DE LA BARRA DE RESULTADOS
   ========================================= */
.results-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.results-actions .btn-glass {
    padding: 9px 14px;
    font-size: 12px;
    white-space: nowrap;
}

/* =========================================
   DASHBOARD · CONTADORES Y GRAFICOS
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px -12px rgba(30, 58, 138, 0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -12px rgba(30, 58, 138, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
}

.stat-blue::before { background: linear-gradient(90deg, #1e3a8a, #3b82f6); }
.stat-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-orange::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-green::before { background: linear-gradient(90deg, #10b981, #34d399); }

.stat-icon {
    font-size: 42px;
    line-height: 1;
    flex-shrink: 0;
}

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

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-sub {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-success { background: #dcfce7; color: #166534; }
.tag-danger { background: #fee2e2; color: #991b1b; }
.tag-warning { background: #fef3c7; color: #92400e; }
.tag-info { background: #dbeafe; color: #1e40af; }

/* ===== GRAFICOS ===== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 32px -12px rgba(30, 58, 138, 0.15);
}

.chart-card h3 {
    font-size: 13px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

/* Gráficos chicos: 1 columna */
.chart-small {
    grid-column: span 1;
}

/* Gráfico grande: ancho completo (3 columnas) */
.chart-wide {
    grid-column: span 3;
}

@media (max-width: 1100px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .chart-wide {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .chart-small,
    .chart-wide {
        grid-column: span 1;
    }
}

/* =========================================
   SIDEBAR · DATOS DEL USUARIO
   ========================================= */
.sidebar-user {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 20px;
    margin-top: -18px;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* =========================================
   SIDEBAR PREMIUM · GLASSMORPHISM + COLAPSABLE
   ========================================= */
:root {
    --sidebar-width: 240px;
    --sidebar-width-collapsed: 64px;
}

.sidebar {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 50%, rgba(30, 58, 138, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
}

/* Datos del usuario */
.sidebar-user {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 20px;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s, height 0.3s;
}

.sidebar-user-role {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

/* Botón toggle */
.sidebar-toggle {
    position: absolute;
    top: 24px;
    right: -14px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
    line-height: 1;
}

.sidebar-toggle:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.sidebar-toggle .arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

/* ===== ESTADO COLAPSADO ===== */
body.sidebar-collapsed .sidebar {
    width: var(--sidebar-width-collapsed);
    padding: 20px 10px;
}

body.sidebar-collapsed .sidebar-logo,
body.sidebar-collapsed .sidebar-user {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: opacity 0.15s;
}

body.sidebar-collapsed .sidebar-toggle .arrow {
    transform: rotate(180deg);
}

/* Links colapsados: solo icono via emoji del texto */
body.sidebar-collapsed .sidebar-nav a {
    font-size: 0;
    padding: 12px 8px;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

body.sidebar-collapsed .sidebar-nav a::before {
    font-size: 20px;
    display: inline-block;
}

/* Asignar icono segun posicion */
body.sidebar-collapsed .sidebar-nav a:nth-of-type(1)::before { content: '👤'; }
body.sidebar-collapsed .sidebar-nav a:nth-of-type(2)::before { content: '🏠'; }
body.sidebar-collapsed .sidebar-nav a:nth-of-type(3)::before { content: '👥'; }
body.sidebar-collapsed .sidebar-nav a:nth-of-type(4)::before { content: '🚜'; }
body.sidebar-collapsed .sidebar-nav a:nth-of-type(5)::before { content: '🏢'; }

body.sidebar-collapsed .sidebar-nav a:hover {
    transform: none;
    box-shadow: none;
}

body.sidebar-collapsed .sidebar-logout {
    font-size: 0;
    padding: 10px 8px;
    position: relative;
}

body.sidebar-collapsed .sidebar-logout::before {
    content: '🚪';
    font-size: 18px;
}
/* ===== Botones de acción para Empresas ===== */
.btn-warning {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  margin-left: 4px;
}
.btn-warning:hover { background: #d97706; }

.btn-success {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  margin-left: 4px;
}
.btn-success:hover { background: #15803d; }

.btn-secondary {
  background: #64748b;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: #475569; }

/* ===== Modal de pago ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-card {
    background: #fff;
    border-radius: 14px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
}
.modal-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}
.modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}
.modal-close:hover {
    opacity: 1;
}
.modal-body {
    padding: 20px;
}
.modal-sub {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin: 0 0 4px 0;
}
.modal-empresa {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 18px 0;
}
.modal-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.modal-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.modal-input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.modal-hint {
    font-size: 12px;
    color: #64748b;
    margin: 12px 0 0 0;
    line-height: 1.5;
    padding: 10px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 3px solid #16a34a;
}
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* ============================================
   EPCC - Elementos de Protección Contra Caídas
   ============================================ */

/* Stats cards */
.epcc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.epcc-stat {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    border-left: 4px solid #3b82f6;
    transition: transform .15s ease, box-shadow .15s ease;
}
.epcc-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.epcc-stat.disponible     { border-left-color: #16a34a; }
.epcc-stat.asignado       { border-left-color: #3b82f6; }
.epcc-stat.mantenimiento  { border-left-color: #f59e0b; }
.epcc-stat.baja           { border-left-color: #dc2626; }
.epcc-stat .label {
    font-size: 12px;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: .5px;
}
.epcc-stat .num {
    font-size: 28px;
    font-weight: 700;
    margin-top: 4px;
}
.epcc-stat.disponible .num     { color: #16a34a; }
.epcc-stat.asignado .num       { color: #3b82f6; }
.epcc-stat.mantenimiento .num  { color: #f59e0b; }
.epcc-stat.baja .num           { color: #dc2626; }

/* Acciones tipo botón cuadrado */
.acciones-cell {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
/* Alineación de columnas Estado y Acciones */
.data-table th.col-estado {
    text-align: left;
    padding-left: 10px;
}

.data-table th.col-acciones {
    text-align: right;
    padding-right: 100px;
}

.data-table td.col-estado {
    text-align: left;
    padding-left: -50px;
    white-space: nowrap;
}

.data-table td.col-acciones {
    text-align: right;
    padding-right: 40px;
}

.data-table td.col-acciones .acciones-cell {
    display: inline-flex;
    justify-content: flex-end;
    gap: 6px;
    min-width: 180px;
}
.btn-accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 15px;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    background: #f1f5f9;
    color: #334155;
    padding: 0;
}
.btn-accion:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
}
.btn-accion.editar {
    background: #dbeafe;
    color: #1e40af;
}
.btn-accion.editar:hover { background: #bfdbfe; }

.btn-accion.mantenimiento {
    background: #fef3c7;
    color: #b45309;
}
.btn-accion.mantenimiento:hover { background: #fde68a; }

.btn-accion.disponible {
    background: #dcfce7;
    color: #166534;
}
.btn-accion.disponible:hover { background: #bbf7d0; }

.btn-accion.baja {
    background: #fee2e2;
    color: #991b1b;
}
.btn-accion.baja:hover { background: #fecaca; }

.btn-accion.reactivar {
    background: #ede9fe;
    color: #6d28d9;
}
.btn-accion.reactivar:hover { background: #ddd6fe; }

.btn-accion.eliminar {
    background: #f8fafc;
    color: #64748b;
}
.btn-accion.eliminar:hover {
    background: #fee2e2;
    color: #991b1b;
}

/* Badges de estado */
.badge-estado {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.badge-estado.disponible     { background: #dcfce7; color: #166534; }
.badge-estado.asignado       { background: #dbeafe; color: #1e40af; }
.badge-estado.mantenimiento  { background: #fef3c7; color: #b45309; }
.badge-estado.baja           { background: #fee2e2; color: #991b1b; }

/* Fila hover */
.data-table tbody tr {
    transition: background .1s ease;
}
.data-table tbody tr:hover {
    background: #f8fafc;
}
/* ============================================
   EPCC - Filtros tipo pill
   ============================================ */

.filtros-pills {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filtros-pills-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filtros-pills-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: .8px;
    min-width: 90px;
}

.filtros-pills-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filtro-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.filtro-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.filtro-pill.active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.25);
}

.filtro-pill.active:hover {
    background: #15803d;
    border-color: #15803d;
}

.filtro-pill .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.filtro-pill.active .count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Colores por estado */
.filtro-pill.estado-disponible.active       { background: #16a34a; border-color: #16a34a; }
.filtro-pill.estado-asignado.active         { background: #3b82f6; border-color: #3b82f6; box-shadow: 0 3px 8px rgba(59, 130, 246, 0.25); }
.filtro-pill.estado-mantenimiento.active    { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25); }
.filtro-pill.estado-baja.active             { background: #dc2626; border-color: #dc2626; box-shadow: 0 3px 8px rgba(220, 38, 38, 0.25); }

/* Botón limpiar */
.filtro-limpiar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
    margin-left: auto;
}
.filtro-limpiar:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .filtros-pills-label {
        min-width: auto;
        width: 100%;
    }
    .filtro-limpiar {
        margin-left: 0;
    }
}
.file-input-wrapper input[type


