/* ============================================================
   DATA CORE — Design System v3.0
   Paleta: Charcoal #0E0F14 | Accent #8A9BB8 | Surface #F1F5F9
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
    /* ── Marca DATA CORE: tonos carbón / acero / plateado ── */
    --it-navy:        #1A2030;   /* antes azul navy → ahora carbón oscuro */
    --it-navy-dark:   #0E0F14;   /* negro carbón profundo */
    --it-navy-light:  #2A3147;   /* carbón medio */
    --it-accent:      #8A9BB8;   /* acero azulado (del logo) */
    --it-accent-dark: #5D7094;   /* acero oscuro */
    --it-accent-deep: #44567A;   /* acero profundo para énfasis */
    --it-indigo:      #7B8FB5;   /* variante acero */
    --it-surface:     #F1F5F9;
    --it-surface2:    #E6EBF2;
    --it-white:       #FFFFFF;
    --it-text:        #1E293B;
    --it-muted:       #6B7686;
    --it-success:     #10B981;
    --it-warning:     #F59E0B;
    --it-danger:      #EF4444;
    --it-border:      #E3E8F0;        /* hairline más fina y elegante */
    --it-border-strong:#D4DBE6;       /* borde de énfasis */
    --it-radius:      14px;
    --it-radius-lg:   18px;
    --it-radius-sm:   9px;
    /* Sombras en capas para una profundidad más suave y premium */
    --it-shadow-xs:   0 1px 2px rgba(16,24,40,.05);
    --it-shadow:      0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.06);
    --it-shadow-lg:   0 2px 6px rgba(16,24,40,.05), 0 16px 44px rgba(16,24,40,.13);
    --it-ring:        0 0 0 3px rgba(138,155,184,.20);
    --sidebar-w:      260px;
    --topbar-h:       64px;
    --font:           'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

html, body {
    font-family: var(--font) !important;
    background: linear-gradient(180deg, #F6F8FC 0%, #EDF1F7 100%) fixed !important;
    color: var(--it-text) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Selección de texto en tono de marca */
::selection { background: rgba(138,155,184,.30); color: var(--it-navy-dark); }

/* Scrollbar global discreta y elegante */
* { scrollbar-width: thin; scrollbar-color: #C2CCDB transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #C9D2E0;
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #AEB9CC; background-clip: content-box; }

/* Foco accesible y consistente para teclado */
:focus-visible {
    outline: 2px solid var(--it-accent);
    outline-offset: 2px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.it-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-w);
    background: linear-gradient(185deg, #101218 0%, #14171F 55%, #181C27 100%);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: width .3s ease, transform .3s ease;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,.05);
}

.it-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    height: var(--topbar-h);
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}

/* logo completo que llena el brand del sidebar */
.it-sidebar-brand-logo {
    max-height: 44px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.05);
}

.it-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}

.it-sidebar-nav::-webkit-scrollbar { width: 4px; }
.it-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.it-sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.it-nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    padding: 16px 20px 6px;
}

.it-nav-item {
    list-style: none;
    margin: 0;
}

.it-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1px 12px;
    padding: 10px 16px;
    color: rgba(255,255,255,.62) !important;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 10px;
    transition: color .2s ease, background .2s ease;
    cursor: pointer;
    position: relative;
}

.it-nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.06);
}

.it-nav-link.active {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(138,155,184,.26), rgba(138,155,184,.10));
    box-shadow: inset 0 0 0 1px rgba(176,189,212,.14);
}

.it-nav-link.active::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, #c4d0e4, #8a9bb8);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(176,189,212,.55);
}

.it-nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.it-nav-link .it-arrow {
    margin-left: auto;
    font-size: 11px;
    transition: transform .25s;
}

.it-nav-submenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease;
    list-style: none;
    padding: 0;
}

.it-nav-submenu.open { max-height: 400px; }

.it-nav-submenu .it-nav-link {
    padding-left: 46px;
    font-size: 13px;
    color: rgba(255,255,255,.48) !important;
}

.it-nav-submenu .it-nav-link:hover { color: rgba(255,255,255,.9) !important; }
.it-nav-submenu .it-nav-link.active { color: #fff !important; }

.it-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.it-topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--topbar-h);
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--it-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1030;
    transition: left .3s;
    box-shadow: 0 1px 0 rgba(16,24,40,.02), 0 6px 18px rgba(16,24,40,.04);
}

.it-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.it-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.it-page-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--it-text);
    margin: 0;
}

.it-topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: var(--it-surface);
    border-radius: 10px;
    color: var(--it-muted);
    font-size: 16px;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.it-topbar-btn:hover {
    background: var(--it-surface2);
    color: var(--it-text);
}

.it-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--it-surface);
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s;
    border: none;
    font-family: var(--font);
}

.it-user-chip:hover { background: var(--it-surface2); }

.it-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #6E83A8, #46587C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.it-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--it-text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.it-main {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    min-height: calc(100vh - var(--topbar-h));
    padding: 28px;
    transition: margin-left .3s;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.it-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.it-page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--it-navy-dark);
    margin: 0;
    letter-spacing: -.3px;
}

.it-page-header p {
    font-size: 13px;
    color: var(--it-muted);
    margin: 2px 0 0;
}

.it-breadcrumb {
    font-size: 12px;
    color: var(--it-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.it-breadcrumb a { color: var(--it-accent-dark); text-decoration: none; }

/* ============================================================
   CARDS
   ============================================================ */
.it-card {
    background: var(--it-white);
    border-radius: var(--it-radius);
    box-shadow: var(--it-shadow);
    border: 1px solid var(--it-border);
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.it-card:hover {
    box-shadow: var(--it-shadow-lg);
}

.it-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(180deg, #FCFDFE 0%, #F7F9FC 100%);
    border-bottom: 1px solid var(--it-border);
    flex-wrap: wrap;
    gap: 12px;
}

.it-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--it-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.it-card-title i {
    color: var(--it-accent-dark);
    font-size: 16px;
}

.it-card-body { padding: 24px; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.it-stat-card {
    background: var(--it-white);
    border-radius: var(--it-radius);
    padding: 20px 24px;
    box-shadow: var(--it-shadow);
    border: 1px solid var(--it-border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform .2s, box-shadow .2s;
}

.it-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--it-shadow-lg);
}

.it-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.it-stat-icon.blue { background: rgba(138,155,184,.14); color: var(--it-accent); }
.it-stat-icon.indigo { background: rgba(99,102,241,.12); color: var(--it-indigo); }
.it-stat-icon.green { background: rgba(16,185,129,.12); color: var(--it-success); }
.it-stat-icon.amber { background: rgba(245,158,11,.12); color: var(--it-warning); }

.it-stat-value { font-size: 26px; font-weight: 800; color: var(--it-text); line-height: 1; }
.it-stat-label { font-size: 12px; color: var(--it-muted); margin-top: 4px; font-weight: 500; }

/* ============================================================
   BUTTONS
   ============================================================ */
.it-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--it-radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .2s;
    white-space: nowrap;
}

.it-btn-primary {
    background: linear-gradient(135deg, #6E83A8 0%, #46587C 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(68,87,124,.38), inset 0 1px 0 rgba(255,255,255,.16);
}

.it-btn-primary:hover {
    background: linear-gradient(135deg, #7B91B6 0%, #51648B 100%);
    box-shadow: 0 8px 22px rgba(68,87,124,.45), inset 0 1px 0 rgba(255,255,255,.2);
    transform: translateY(-1px);
    color: #fff !important;
}

.it-btn-primary:active { transform: translateY(0); }

.it-btn-secondary {
    background: var(--it-white);
    color: var(--it-text) !important;
    border: 1px solid var(--it-border-strong);
    box-shadow: var(--it-shadow-xs);
}

.it-btn-secondary:hover {
    background: var(--it-surface);
    border-color: var(--it-accent);
    color: var(--it-accent-dark) !important;
    transform: translateY(-1px);
}

.it-btn-danger {
    background: linear-gradient(135deg, #F87171, var(--it-danger));
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(239,68,68,.3);
}

.it-btn-danger:hover { transform: translateY(-1px); color: #fff !important; }

.it-btn-success {
    background: linear-gradient(135deg, #34D399, var(--it-success));
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(16,185,129,.3);
}

.it-btn-success:hover { transform: translateY(-1px); color: #fff !important; }

.it-btn-warning {
    background: linear-gradient(135deg, #FCD34D, var(--it-warning));
    color: var(--it-text) !important;
}

.it-btn-sm { padding: 5px 12px; font-size: 12px; }
.it-btn-lg { padding: 12px 28px; font-size: 15px; }

.it-btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: var(--it-radius-sm);
    font-size: 14px;
}

/* ============================================================
   FORMS
   ============================================================ */
.it-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--it-text);
    margin-bottom: 6px;
    display: block;
}

.it-form-control {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 13.5px;
    color: var(--it-text);
    background: var(--it-white);
    border: 1.5px solid var(--it-border-strong);
    border-radius: var(--it-radius-sm);
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    appearance: none;
}

.it-form-control:hover { border-color: #C2CCDB; }

.it-form-control:focus {
    border-color: var(--it-accent);
    box-shadow: var(--it-ring);
}

.it-form-control::placeholder { color: #94A3B8; }

.it-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.it-input-group .it-input-icon {
    position: absolute;
    left: 13px;
    color: var(--it-muted);
    font-size: 15px;
    pointer-events: none;
}

.it-input-group .it-form-control { padding-left: 38px; }

.it-input-group .it-input-icon-right {
    position: absolute;
    right: 13px;
    color: var(--it-muted);
    font-size: 15px;
    cursor: pointer;
}

.it-form-group { margin-bottom: 20px; }

.it-form-text { font-size: 11.5px; color: var(--it-muted); margin-top: 4px; }
.it-form-error { font-size: 11.5px; color: var(--it-danger); margin-top: 4px; }

/* ============================================================
   TABLES
   ============================================================ */
.it-table-wrap {
    border-radius: var(--it-radius);
    overflow: hidden;
    border: 1px solid var(--it-border);
}

.it-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.it-table thead th {
    background: var(--it-surface);
    color: var(--it-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 12px 16px;
    border-bottom: 2px solid var(--it-border);
    white-space: nowrap;
}

.it-table tbody tr {
    border-bottom: 1px solid var(--it-surface2);
    transition: background .15s;
}

.it-table tbody tr:last-child { border-bottom: none; }
.it-table tbody tr:hover { background: rgba(138,155,184,.05); }

.it-table td {
    padding: 13px 16px;
    color: var(--it-text);
    vertical-align: middle;
}

.it-table tfoot th {
    background: var(--it-surface);
    color: var(--it-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 10px 16px;
    border-top: 2px solid var(--it-border);
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid var(--it-border);
    border-radius: var(--it-radius-sm);
    padding: 7px 14px;
    font-family: var(--font);
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--it-accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.dataTables_wrapper .dataTables_length select {
    border: 1.5px solid var(--it-border);
    border-radius: var(--it-radius-sm);
    padding: 6px 10px;
    font-family: var(--font);
    font-size: 13px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--it-radius-sm) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 5px 10px !important;
    font-family: var(--font) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--it-accent) !important;
    border-color: var(--it-accent-dark) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
    background: var(--it-surface2) !important;
    border-color: var(--it-border) !important;
    color: var(--it-text) !important;
}

/* ============================================================
   BADGES / STATUS
   ============================================================ */
.it-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 11px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid transparent;
}

.it-badge-success { background: rgba(16,185,129,.12); color: #059669; border-color: rgba(16,185,129,.22); }
.it-badge-danger  { background: rgba(239,68,68,.12);  color: #DC2626; border-color: rgba(239,68,68,.22); }
.it-badge-warning { background: rgba(245,158,11,.12); color: #D97706; border-color: rgba(245,158,11,.22); }
.it-badge-info    { background: rgba(138,155,184,.15); color: #5d7094; border-color: rgba(138,155,184,.28); }

/* ============================================================
   ACTION BUTTONS (inline table)
   ============================================================ */
.it-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    font-size: 13px;
    text-decoration: none !important;
}

.it-action-btn.edit { background: rgba(138,155,184,.12); color: var(--it-accent); }
.it-action-btn.edit:hover { background: var(--it-accent); color: #fff; }
.it-action-btn.view { background: rgba(123,143,181,.1); color: var(--it-indigo); }
.it-action-btn.view:hover { background: var(--it-indigo); color: #fff; }
.it-action-btn.delete { background: rgba(239,68,68,.1); color: var(--it-danger); }
.it-action-btn.delete:hover { background: var(--it-danger); color: #fff; }

/* ============================================================
   MODALS
   ============================================================ */
.it-modal .modal-content {
    border: none;
    border-radius: var(--it-radius);
    box-shadow: var(--it-shadow-lg);
    font-family: var(--font);
}

.it-modal .modal-header {
    background: linear-gradient(135deg, #0e0f14, #1a2030);
    color: #fff;
    border-bottom: none;
    border-radius: var(--it-radius) var(--it-radius) 0 0;
    padding: 18px 24px;
}

.it-modal .modal-title { font-size: 16px; font-weight: 700; }

.it-modal .modal-header .close,
.it-modal .modal-header .btn-close {
    color: rgba(255,255,255,.7);
    filter: none;
    opacity: 1;
}

.it-modal .modal-body { padding: 24px; }

.it-modal .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--it-surface2);
    gap: 10px;
}

/* ============================================================
   SELECT / DROPDOWN overrides
   ============================================================ */
select.it-form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* ============================================================
   ALERTS
   ============================================================ */
.it-alert {
    padding: 12px 16px;
    border-radius: var(--it-radius-sm);
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.it-alert-danger { background: rgba(239,68,68,.08); color: #B91C1C; border-left: 3px solid var(--it-danger); }
.it-alert-success { background: rgba(16,185,129,.08); color: #065F46; border-left: 3px solid var(--it-success); }
.it-alert-info { background: rgba(138,155,184,.10); color: #3d5070; border-left: 3px solid var(--it-accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.it-footer {
    margin-left: var(--sidebar-w);
    background: var(--it-white);
    border-top: 1px solid var(--it-border);
    padding: 14px 28px;
    font-size: 12px;
    color: var(--it-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: margin-left .3s;
}

/* ============================================================
   LOGIN PAGE — DATA CORE metallic dark theme
   ============================================================ */
.it-login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* fondo carbón base */
    background-color: #1c1c1e;
    /* patrón de circuito SVG inline */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg stroke='%23ffffff' stroke-opacity='0.045' fill='none' stroke-width='1'%3E%3C!-- líneas horizontales --%3E%3Cline x1='0' y1='40' x2='70' y2='40'/%3E%3Cline x1='130' y1='40' x2='200' y2='40'/%3E%3Cline x1='0' y1='100' x2='60' y2='100'/%3E%3Cline x1='140' y1='100' x2='200' y2='100'/%3E%3Cline x1='0' y1='160' x2='80' y2='160'/%3E%3Cline x1='120' y1='160' x2='200' y2='160'/%3E%3C!-- líneas verticales --%3E%3Cline x1='40' y1='0' x2='40' y2='30'/%3E%3Cline x1='40' y1='50' x2='40' y2='90'/%3E%3Cline x1='40' y1='110' x2='40' y2='200'/%3E%3Cline x1='100' y1='0' x2='100' y2='60'/%3E%3Cline x1='100' y1='80' x2='100' y2='140'/%3E%3Cline x1='100' y1='170' x2='100' y2='200'/%3E%3Cline x1='160' y1='0' x2='160' y2='50'/%3E%3Cline x1='160' y1='70' x2='160' y2='150'/%3E%3Cline x1='160' y1='170' x2='160' y2='200'/%3E%3C!-- nodos en intersecciones --%3E%3Ccircle cx='40' cy='40' r='2.5' fill='%23ffffff' fill-opacity='0.07'/%3E%3Ccircle cx='100' cy='40' r='2' fill='%23ffffff' fill-opacity='0.055'/%3E%3Ccircle cx='160' cy='40' r='2.5' fill='%23ffffff' fill-opacity='0.07'/%3E%3Ccircle cx='40' cy='100' r='2.5' fill='%23ffffff' fill-opacity='0.07'/%3E%3Ccircle cx='100' cy='100' r='2' fill='%23ffffff' fill-opacity='0.055'/%3E%3Ccircle cx='160' cy='100' r='2.5' fill='%23ffffff' fill-opacity='0.07'/%3E%3Ccircle cx='40' cy='160' r='2.5' fill='%23ffffff' fill-opacity='0.07'/%3E%3Ccircle cx='100' cy='160' r='2' fill='%23ffffff' fill-opacity='0.055'/%3E%3Ccircle cx='160' cy='160' r='2.5' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    position: relative;
}

/* viñeta oscura en bordes para efecto profundidad */
.it-login-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.72) 100%);
}

/* Panel izquierdo: oculto — formulario centrado */
.it-login-left {
    display: none;
}

.it-login-left::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,.018);
    top: -150px;
    right: -150px;
    pointer-events: none;
}

.it-login-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(160,175,200,.04);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.it-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    z-index: 1;
}

.it-login-brand-img {
    max-height: 90px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(0,0,0,.7));
}

.it-login-headline {
    font-size: 32px;
    font-weight: 800;
    color: #d8dde8;
    line-height: 1.25;
    margin-bottom: 16px;
    z-index: 1;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.it-login-sub {
    font-size: 15px;
    color: rgba(180,190,210,.70);
    text-align: center;
    max-width: 360px;
    z-index: 1;
    line-height: 1.7;
}

.it-login-features {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1;
    width: 100%;
    max-width: 340px;
}

.it-login-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(180,190,210,.06);
    border: 1px solid rgba(180,190,210,.12);
    border-radius: 12px;
    padding: 14px 18px;
}

.it-login-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(180,190,210,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8b8d0;
    font-size: 16px;
    flex-shrink: 0;
}

.it-login-feature-text  { font-size: 13px;   color: rgba(190,200,218,.75); font-weight: 500; }
.it-login-feature-title { font-size: 13.5px; color: #cdd5e2;               font-weight: 600; }

/* Panel derecho: card centrado sobre el fondo de circuito */
.it-login-right {
    width: min(460px, 94vw);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: rgba(20, 22, 28, 0.88);
    backdrop-filter: blur(4px);
    z-index: 1;
    border: 1px solid rgba(180,190,210,.12);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,.65);
}

.it-login-form-wrap { width: 100%; max-width: 360px; }

/* Título de bienvenida */
.it-login-welcome {
    font-size: 24px;
    font-weight: 800;
    color: #d4dae6;
    margin-bottom: 6px;
}

/* Subtítulo */
.it-login-hint {
    font-size: 13.5px;
    color: rgba(160,175,200,.80);
    margin-bottom: 32px;
}

/* Labels de los campos */
.it-login-form-wrap .it-form-label {
    color: #b8c4d8;
}

/* Inputs dentro del login */
.it-login-form-wrap .it-form-control {
    background: linear-gradient(180deg, #0f1219 0%, #141820 100%);
    border: 1px solid rgba(180,195,220,.22);
    color: #cdd5e5;
}

.it-login-form-wrap .it-form-control::placeholder {
    color: rgba(180,195,220,.45);
}

.it-login-form-wrap .it-form-control:focus {
    border-color: rgba(170,185,215,.55);
    box-shadow: 0 0 0 3px rgba(160,180,215,.12);
}

/* Íconos dentro de los inputs */
.it-login-form-wrap .it-input-icon,
.it-login-form-wrap .it-input-icon-right {
    color: rgba(170,185,215,.65);
}

/* Botón INICIAR SESIÓN — plateado metálico */
.it-login-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(180deg, #dde2ea 0%, #bec6d2 40%, #adb6c4 100%);
    color: #0f1219 !important;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: var(--it-radius-sm);
    cursor: pointer;
    transition: all .2s;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.6),
        inset 0 -1px 0 rgba(0,0,0,.2),
        0 4px 16px rgba(0,0,0,.45);
}

.it-login-submit:hover {
    background: linear-gradient(180deg, #e8ecf2 0%, #ccd3dc 40%, #bbc3d0 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.7),
        inset 0 -1px 0 rgba(0,0,0,.2),
        0 6px 22px rgba(0,0,0,.5);
    transform: translateY(-1px);
}

/* Alerta de error */
.it-login-form-wrap .it-alert-danger {
    background: rgba(239,68,68,.10);
    color: #fca5a5;
    border-left-color: #ef4444;
}

/* Footer del login */
.it-login-footer {
    margin-top: 40px;
    font-size: 12px;
    color: rgba(150,165,190,.55);
    text-align: center;
}

/* ============================================================
   HOME / DASHBOARD
   ============================================================ */
.it-welcome-banner {
    background: linear-gradient(125deg, #0c0d12 0%, #1a2030 58%, #2c3650 100%);
    border-radius: var(--it-radius-lg);
    padding: 34px 38px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 18px 44px rgba(14,15,20,.30);
}

.it-welcome-banner::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}

.it-welcome-banner::before {
    content: '';
    position: absolute;
    right: 80px;
    bottom: -100px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(138,155,184,.12);
}

.it-welcome-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.it-welcome-sub {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.it-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 13px;
    color: rgba(255,255,255,.9);
    font-weight: 500;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 991px) {
    .it-login-left { display: none; }
    .it-login-right { width: min(460px, 94vw); padding: 36px 24px; }

    .it-sidebar {
        transform: translateX(-100%);
        z-index: 1050;
    }

    .it-sidebar.open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0,0,0,.25);
    }

    .it-topbar { left: 0; }
    .it-main  { margin-left: 0; }
    .it-footer { margin-left: 0; }

    .it-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 1045;
    }

    .it-sidebar-overlay.show { display: block; }
}

@media (max-width: 576px) {
    .it-main { padding: 16px; }
    .it-card-body { padding: 16px; }
    .it-welcome-banner { padding: 22px 20px; }
}

/* ============================================================
   MISC UTILS
   ============================================================ */
.it-divider {
    height: 1px;
    background: var(--it-border);
    margin: 20px 0;
}

.it-skeleton {
    background: linear-gradient(90deg, var(--it-surface) 25%, var(--it-surface2) 50%, var(--it-surface) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: 6px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Spinner */
.it-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Glassmorphism card */
.it-glass {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.6);
}

/* ============================================================
   DATA TABLES — Estilo unificado Bootstrap 5
   ============================================================ */

/* Cabecera de tabla */
.it-dt-head th {
    background: var(--it-surface) !important;
    color: var(--it-muted) !important;
    font-family: var(--font) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .9px !important;
    padding: 13px 16px !important;
    border-bottom: 2px solid var(--it-border) !important;
    white-space: nowrap;
}

/* Filas del body */
.table-hover tbody tr {
    border-bottom: 1px solid var(--it-surface2) !important;
    transition: background .15s !important;
}

.table-hover tbody tr:last-child { border-bottom: none !important; }

.table-hover tbody tr:hover > td {
    background: rgba(59, 130, 246, .04) !important;
}

.table-hover tbody td {
    padding: 14px 16px !important;
    font-family: var(--font) !important;
    font-size: 13.5px !important;
    color: var(--it-text) !important;
    vertical-align: middle !important;
    border-bottom: none !important;
}

/* Pie de tabla */
.table tfoot th {
    background: var(--it-surface) !important;
    color: var(--it-muted) !important;
    font-family: var(--font) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .9px !important;
    padding: 11px 16px !important;
    border-top: 2px solid var(--it-border) !important;
}

/* Avatar de fila */
.it-dt-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.it-dt-avatar-blue   { background: rgba(59, 130, 246, .12); color: var(--it-accent); }
.it-dt-avatar-indigo { background: rgba(99, 102, 241, .12); color: var(--it-indigo); }

/* DataTables controles */
.dataTables_wrapper {
    font-family: var(--font) !important;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 12px 20px !important;
}

.dataTables_wrapper .dataTables_filter { text-align: right; }

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--it-muted);
    font-weight: 500;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid var(--it-border) !important;
    border-radius: var(--it-radius-sm) !important;
    padding: 7px 12px !important;
    font-family: var(--font) !important;
    font-size: 13px !important;
    outline: none !important;
    transition: border-color .2s, box-shadow .2s !important;
    color: var(--it-text) !important;
    background: var(--it-white) !important;
    min-width: 200px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--it-accent) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .13) !important;
}

.dataTables_wrapper .dataTables_length select {
    border: 1.5px solid var(--it-border) !important;
    border-radius: var(--it-radius-sm) !important;
    padding: 6px 28px 6px 10px !important;
    font-family: var(--font) !important;
    font-size: 13px !important;
    color: var(--it-text) !important;
    background: var(--it-white) !important;
    outline: none !important;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_info {
    font-size: 12.5px !important;
    color: var(--it-muted) !important;
}

/* Paginación */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--it-radius-sm) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 5px 11px !important;
    font-family: var(--font) !important;
    border: 1.5px solid transparent !important;
    margin: 0 2px !important;
    transition: all .15s !important;
    color: var(--it-muted) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
    background: var(--it-surface2) !important;
    border-color: var(--it-border) !important;
    color: var(--it-text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, var(--it-accent), var(--it-accent-dark)) !important;
    border-color: var(--it-accent) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(59, 130, 246, .3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: var(--it-border) !important;
    cursor: not-allowed !important;
}

/* Separador superior/inferior entre controles y tabla */
.dataTables_wrapper .row:first-child {
    border-bottom: 1px solid var(--it-surface2);
    margin: 0 !important;
}

.dataTables_wrapper .row:last-child {
    border-top: 1px solid var(--it-surface2);
    margin: 0 !important;
}

/* No data row */
.dataTables_empty {
    color: var(--it-muted) !important;
    font-size: 13.5px !important;
    padding: 32px !important;
    text-align: center !important;
}

/* card sin padding para que la tabla ocupe todo el ancho */
.it-card .it-card-body.p-0 { padding: 0 !important; }

/* JS-generated table content */
.fa-check[title="Activo"] { color: var(--it-success) !important; font-size: 16px; }
.fa-times[title="Inactivo"] { color: var(--it-danger) !important; font-size: 16px; }
.btnEditar { cursor: pointer; color: var(--it-accent); font-size: 15px; }
.btnEditar:hover { color: var(--it-accent-dark); }

/* Smooth page load */
body { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Fix DataTables + Bootstrap 5 */
.dataTables_wrapper .row { margin: 0; }
.dataTables_wrapper .dataTables_info { font-size: 12px; color: var(--it-muted); }
