      :root {
        --sidebar-width: 240px;
        --topbar-height: 60px;
        --info-bar-height: 40px;
        --primary-color: #065b96;
        --dark-sidebar: #074d7e;
        --blue-light: #0883da;
        --black-bar: #343a40; /* Color de la barra de fecha/breadcrumbs */
        --blackhard-bar: #2d3238; /* Color de la barra de fecha/breadcrumbs 2a2f34*/
        --bg-light: #e9ecef;
        --bg-light-os:#fff;
        --input-bg: #fff;
        --input-border: rgba(0, 0, 0, 0.15);
        --input-border-muted: #d8e0e8;
        --input-text: #495057;
        --input-placeholder: #8a96a3;
        --input-disabled-bg: #e9ecef;
        --input-disabled-text: #8793a0;
        --input-focus-ring: rgba(8, 131, 218, 0.14);
        --input-radius: 2px;
        /* Override Bootstrap 5 border-radius variables */
        --bs-border-radius: 2px;
        --bs-border-radius-sm: 2px;
        --bs-border-radius-lg: 2px;
        --bs-border-radius-xl: 2px;
        --bs-border-radius-xxl: 2px;
        --bs-border-radius-pill: 50rem;
        --bs-btn-border-radius: 2px;
        --bs-btn-border-radius-sm: 2px;
        --bs-btn-border-radius-lg: 2px;
      }

      body {
        font-family: "Roboto", sans-serif;
        background-color: var(--bg-light);
        overflow-x: hidden;
        margin: 0;
      }

      /* Sidebar Styles */
      #sidebar {
        width: var(--sidebar-width);
        height: 100vh;
        position: fixed;
        left: 0;
        top: 0;
        display: grid;
        grid-template-rows: var(--topbar-height) var(--info-bar-height) auto minmax(0, 1fr);
        background: var(--bg-light-os);
        color: #fff;
        transition: all 0.3s;
        z-index: 2000;
        /* box-shadow: 1px 0 1px -1px #494949; */
        overflow: hidden;
      }

      #sidebar.active {
        margin-left: calc(-1 * var(--sidebar-width));
      }

      .sidebar-header {
        height: var(--topbar-height);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        min-height: 0;
        box-shadow: inset -2px 0px 1px -1px #9b9b9b70;
        flex-shrink: 0;
      }

      .sidebar-header .logo {
        font-size: 22px;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: none;
        color: #fff;
        letter-spacing: 2px;
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
      }

      .sidebar-header .logo img {
        max-width: 65%;
        max-height: 75%;
        object-fit: contain;
      }

      /* Clases para diferentes tamaños de logo */
      .sidebar-header .logo img.logo-s1 {
        max-width: 70%;
        max-height: 65%;
      }

      .sidebar-header .logo img.logo-s2 {
        max-width: 85%;
        max-height: 75%;
      }

      .sidebar-header .logo img.logo-s3 {
        max-width: 95%;
        max-height: 85%;
      }

      .sidebar-header .logo2{
        text-align: center;
      }

      .sidebar-header .logo2 img {
        max-width: 67%;
        max-height: 75%;
        object-fit: contain;
      }

      /* ELEMENTO NUEVO: Barra de búsqueda en Sidebar nivelada con Info Bar */
      .sidebar-search-container {
        height: var(--info-bar-height);
        background: var(--blackhard-bar); /* Mismo color que la info-bar */
        display: flex;
        align-items: center;
        padding: 0 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        min-height: 0;
        box-shadow: inset -2px 0px 1px -1px #9b9b9b70;
        flex-shrink: 0;
      }

      .sidebar-search-container .input-group {
        background: #fff;
        border-radius: 2px;
        overflow: hidden;
      }

      .sidebar-search-container input {
        border: none;
        font-size: 11px;
        padding: 2px 8px;
        box-shadow: none !important;
      }

      .sidebar-search-container .btn {
        padding: 0 8px;
        background: #fff;
        border: none;
        color: #666;
      }

      .nav-label {
        padding: 10px 20px 10px;
        font-size: 11px;
        text-transform: uppercase;
        color: #6b727a;
        font-weight: 700;
        opacity: 0.8;
        min-height: 0;
        box-shadow: inset -2px 0px 1px -1px #9b9b9bb5 ;
        flex-shrink: 0;
      }

      .sidebar-nav {
        min-height: 0;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 18px;
        overscroll-behavior: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
      }

      .sidebar-nav::-webkit-scrollbar {
        width: 0;
        height: 0;
      }

      .sidebar-nav::-webkit-scrollbar-thumb {
        background: transparent;
      }

      .sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
      }

      .sidebar-nav .nav-link {
        color: #6b727a;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        transition: 0.2s;
        text-decoration: none;
        margin-left: 0 !important;
        box-shadow: inset -2px 0px 1px -1px #9b9b9b73;
      }

      .sidebar-nav .collapse .nav-link {
        padding-left: 2rem;
      }

      .sidebar-nav .sidebar-submenu.show {
        box-shadow: inset 1px 0 0 rgb(123 123 123 / 30%);
      }

      .sidebar-nav .sidebar-submenu.show > .nav-link {
        animation: sidebarSubmenuSlideIn 180ms ease-out both;
      }

      @keyframes sidebarSubmenuSlideIn {
        from {
          transform: translateX(-16px);
          opacity: 0;
        }

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

      .sidebar-nav .collapse .collapse .nav-link {
        padding-left: 3rem;
      }

      .sidebar-nav .collapse .collapse .collapse .nav-link {
        padding-left: 4rem;
      }

      .sidebar-nav .nav-link .chevron {
        transition: transform 0.1s ease;
        margin-left: auto;
      }

      .sidebar-nav .nav-link[aria-expanded="true"] .chevron {
        transform: rotate(90deg);
      }

      /* Estado colapsado (Desktop) / Estado oculto (Mobile) */
      #sidebar.inactive {
        margin-left: calc(-1 * var(--sidebar-width));
      }
      /* Content Wrapper */
      #content {
        width: 100%;
        padding-left: var(--sidebar-width);
        transition: all 0.3s;
      }

      #content.full-width {
        padding-left: 0;
      }

      /* Top Navbar */
      .topbar {
        height: var(--topbar-height);
        background: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        color: white;
        position: sticky;
        top: 0;
        z-index: 1020;
      }

      /* Info Bar */
      .info-bar {
        background: var(--black-bar);
        color: #bbbec2;
        height: var(--info-bar-height);
        display: flex;
        align-items: center;
        padding: 0 20px;
        font-size: 11px;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 1010;
      }
      .info-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(6, 91, 150, 0) 0%,
        rgba(124, 200, 255, 0.2) 20%,
        rgb(14 164 208) 50%,
        rgba(124, 200, 255, 0.2) 80%,
        rgba(6, 91, 150, 0) 100%
    );
    filter: blur(0.5px); /* Suaviza el efecto para un look más profesional */
    transition: opacity 0.3s ease;
}

      .kt-date-today {
        font-family: "Roboto", sans-serif;
        color: #d9d9d9;
        text-transform: uppercase;
        font-size: 10px;
        padding: 0 15px;
        height: 40px;
        display: flex;
        align-items: center;
      }

      .kt-breadcrumb {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .kt-breadcrumb a {
        color: #949ca5;
        text-decoration: none;
      }

      .breadcrumb-separator {
        color: #555;
      }

      /* Page Content */
      .page-body {
        padding: 25px;
      }

      .card {
        border: 1px solid rgba(225, 229, 235, 0.2);
        border-radius: 4px;
        margin-bottom: 25px;
      }

      .card-header-custom {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(225, 229, 235, 0.1);
        background: #fff;
      }

      .card-title-custom {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        margin: 0;
        color: #333;
      }

      .required::after {
        content: " *";
        color: #dc3545;
      }

      .form-control,
      .form-select,
      .choices__inner,
      .choices[data-type*="select-one"] .choices__inner {
        display: block;
        width: 100%;
        padding: 0.65rem 0.75rem;
        font-size: 0.875rem;
        line-height: 1.25;
        color: var(--input-text);
        background-color: var(--input-bg);
        background-image: none;
        background-clip: padding-box;
        border: 1px solid var(--input-border);
        border-radius: var(--input-radius);
        box-shadow: none;
        transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
      }

      .form-control-sm,
      .form-select-sm,
      .input-group-sm > .form-control,
      .input-group-sm > .form-select,
      .input-group-sm > .input-group-text {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
        border-radius: var(--input-radius);
      }

      textarea.form-control {
        min-height: 106px;
        resize: vertical;
      }

      .form-control::placeholder {
        color: var(--input-placeholder);
        opacity: 1;
      }

      .form-select {
        padding-right: 2.25rem;
        background-position: right 0.75rem center;
        background-size: 15px 11px;
      }

      .form-control:hover,
      .form-select:hover,
      .choices:hover .choices__inner {
        border-color: rgba(6, 91, 150, 0.32);
      }

      .form-control:focus,
      .form-select:focus,
      .choices.is-focused .choices__inner,
      .choices.is-open .choices__inner {
        color: var(--input-text);
        background-color: var(--input-bg);
        border-color: #80bdff;
        box-shadow: 0 0 0 3px var(--input-focus-ring);
        outline: none;
      }

      .form-control:disabled,
      .form-control[readonly],
      .form-select:disabled,
      .choices.is-disabled .choices__inner {
        background-color: var(--input-disabled-bg);
        border-color: var(--input-border-muted);
        color: var(--input-disabled-text);
        box-shadow: none;
        opacity: 1;
      }

      .form-control[readonly] {
        cursor: default;
      }

      .input-group-text {
        padding: 0.65rem 0.75rem;
        color: #667482;
        background-color: #f7f9fb;
        border: 1px solid var(--input-border);
        border-radius: var(--input-radius);
      }

      .input-group:focus-within .input-group-text {
        color: var(--primary-color);
        background-color: #f2f8fc;
        border-color: #80bdff;
      }

      .form-control.is-valid,
      .form-select.is-valid {
        border-color: #38c172;
        background-image: none;
        padding-right: 0.75rem;
        box-shadow: inset 0 0 0 1px rgba(56, 193, 114, 0.12);
      }

      .form-control.is-valid:focus,
      .form-select.is-valid:focus {
        border-color: #38c172;
        box-shadow: 0 0 0 3px rgba(56, 193, 114, 0.14);
      }

      .form-control.is-invalid,
      .form-select.is-invalid {
        border-color: #ff5b6d;
        background-image: none;
        padding-right: 0.75rem;
        box-shadow: inset 0 0 0 1px rgba(255, 91, 109, 0.1);
      }

      .form-control.is-invalid:focus,
      .form-select.is-invalid:focus {
        border-color: #ff5b6d;
        box-shadow: 0 0 0 3px rgba(255, 91, 109, 0.14);
      }

      .form-control.is-warning,
      .form-select.is-warning {
        border-color: #ffc107 !important;
        background-image: none;
        padding-right: 0.75rem;
        box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.12);
      }

      .form-control.is-warning:focus,
      .form-select.is-warning:focus {
        border-color: #ffc107 !important;
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.16);
      }

      .form-check-input {
        width: 1rem;
        height: 1rem;
        margin-top: 0.18rem;
        border: 1px solid rgba(6, 91, 150, 0.24);
        box-shadow: none;
      }

      .form-check-input:focus {
        border-color: rgba(6, 91, 150, 0.55);
        box-shadow: 0 0 0 3px rgba(8, 131, 218, 0.12);
      }

      .form-check-input:checked {
        background-color: #0d6efd;
        border-color: #0d6efd;
      }

      .choices__inner {
        padding-right: 2.25rem;
      }

      .choices[data-type*="select-one"]::after {
        right: 12px;
      }

      .choices__list--dropdown,
      .choices__list[aria-expanded] {
        border: 1px solid var(--input-border-muted);
        border-radius: 0 0 var(--input-radius) var(--input-radius);
        box-shadow: 0 14px 26px rgba(15, 35, 54, 0.08);
      }

      .choices__list--dropdown .choices__item,
      .choices__list[aria-expanded] .choices__item {
        font-size: 0.875rem;
      }

      .valid-feedback,
      .invalid-feedback {
        font-size: 0.78rem;
        margin-top: 0.35rem;
      }

      /* =========================================================
         UI COMPONENTS — Estandarización visual basada en Katniss
         Cubre: buttons, badges, alerts, tables, typography, cards,
         list-groups, progress, nav, dropdowns, modals, tooltips,
         popovers, pagination, breadcrumbs.
         NO toca menú/sidebar/topbar/footer.
         ========================================================= */

      /* ----- BUTTONS (base + variantes) ----- */

      .btn {
        display: inline-block;
        font-weight: 400;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        user-select: none;
        border: 1px solid transparent;
        padding: 0.65rem 0.75rem;
        font-size: 0.875rem;
        line-height: 1.25;
        border-radius: 2px;
        transition: all 0.15s ease-in-out;
      }
      .btn:focus,
      .btn.focus {
        outline: 0;
      }
      .btn:disabled,
      .btn.disabled {
        opacity: 0.65;
        pointer-events: none;
      }

      .btn-primary {
        color: #fff;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
      }
      .btn-primary:hover {
        color: #fff;
        background-color: #054a7a;
        border-color: #043d66;
      }
      .btn-primary:focus {
        box-shadow: 0 0 0 3px rgba(6, 91, 150, 0.35);
      }
      .btn-primary:active,
      .btn-primary.active {
        background-color: #043d66;
        border-color: #033254;
      }

      .btn-secondary {
        color: #fff;
        background-color: #868e96;
        border-color: #868e96;
      }
      .btn-secondary:hover {
        color: #fff;
        background-color: #727b84;
        border-color: #6c757d;
      }
      .btn-secondary:focus {
        box-shadow: 0 0 0 3px rgba(134, 142, 150, 0.5);
      }

      .btn-success {
        color: #fff;
        background-color: #28a745;
        border-color: #28a745;
      }
      .btn-success:hover {
        color: #fff;
        background-color: #218838;
        border-color: #1e7e34;
      }
      .btn-success:focus {
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.5);
      }

      .btn-info {
        color: #fff;
        background-color: #17a2b8;
        border-color: #17a2b8;
      }
      .btn-info:hover {
        color: #fff;
        background-color: #138496;
        border-color: #117a8b;
      }
      .btn-info:focus {
        box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.5);
      }

      .btn-warning {
        color: #111;
        background-color: #ffc107;
        border-color: #ffc107;
      }
      .btn-warning:hover {
        color: #111;
        background-color: #e0a800;
        border-color: #d39e00;
      }
      .btn-warning:focus {
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.5);
      }

      .btn-danger {
        color: #fff;
        background-color: #dc3545;
        border-color: #dc3545;
      }
      .btn-danger:hover {
        color: #fff;
        background-color: #c82333;
        border-color: #bd2130;
      }
      .btn-danger:focus {
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.5);
      }

      .btn-light {
        color: #111;
        background-color: #f8f9fa;
        border-color: #f8f9fa;
      }
      .btn-light:hover {
        color: #111;
        background-color: #e2e6ea;
        border-color: #dae0e5;
      }
      .btn-light:focus {
        box-shadow: 0 0 0 3px rgba(248, 249, 250, 0.5);
      }

      .btn-dark {
        color: #fff;
        background-color: #343a40;
        border-color: #343a40;
      }
      .btn-dark:hover {
        color: #fff;
        background-color: #23272b;
        border-color: #1d2124;
      }
      .btn-dark:focus {
        box-shadow: 0 0 0 3px rgba(52, 58, 64, 0.5);
      }

      /* Outline variants */
      .btn-outline-primary {
        color: var(--primary-color);
        background-color: transparent;
        border-color: var(--primary-color);
      }
      .btn-outline-primary:hover {
        color: #fff;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
      }
      .btn-outline-primary:focus {
        box-shadow: 0 0 0 3px rgba(6, 91, 150, 0.35);
      }

      .btn-outline-secondary {
        color: #868e96;
        background-color: transparent;
        border-color: #868e96;
      }
      .btn-outline-secondary:hover {
        color: #fff;
        background-color: #868e96;
      }

      .btn-outline-success {
        color: #28a745;
        background-color: transparent;
        border-color: #28a745;
      }
      .btn-outline-success:hover {
        color: #fff;
        background-color: #28a745;
      }

      .btn-outline-info {
        color: #17a2b8;
        background-color: transparent;
        border-color: #17a2b8;
      }
      .btn-outline-info:hover {
        color: #fff;
        background-color: #17a2b8;
      }

      .btn-outline-warning {
        color: #ffc107;
        background-color: transparent;
        border-color: #ffc107;
      }
      .btn-outline-warning:hover {
        color: #111;
        background-color: #ffc107;
      }

      .btn-outline-danger {
        color: #dc3545;
        background-color: transparent;
        border-color: #dc3545;
      }
      .btn-outline-danger:hover {
        color: #fff;
        background-color: #dc3545;
      }

      .btn-outline-light {
        color: #f8f9fa;
        background-color: transparent;
        border-color: #f8f9fa;
      }
      .btn-outline-light:hover {
        color: #111;
        background-color: #f8f9fa;
      }

      .btn-outline-dark {
        color: #343a40;
        background-color: transparent;
        border-color: #343a40;
      }
      .btn-outline-dark:hover {
        color: #fff;
        background-color: #343a40;
      }

      .btn-link {
        font-weight: 400;
        color: var(--primary-color);
        background-color: transparent;
        border-color: transparent;
        box-shadow: none;
      }
      .btn-link:hover {
        color: #043d66;
        text-decoration: none;
      }
      .btn-link:disabled {
        color: #868e96;
      }

      /* Extra color variants (Katniss compat) */
      .btn-indigo {
        color: #fff;
        background-color: #6610f2;
        border-color: #6610f2;
      }
      .btn-indigo:hover { background-color: #560bd0; border-color: #4e0ab9; }
      .btn-indigo:focus { box-shadow: 0 0 0 3px rgba(102, 16, 242, 0.5); }
      .btn-indigo:active, .btn-indigo.active { background-color: #4e0ab9; }

      .btn-purple {
        color: #fff;
        background-color: #6f42c1;
        border-color: #6f42c1;
      }
      .btn-purple:hover { background-color: #5e37a6; border-color: #59339d; }
      .btn-purple:focus { box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.5); }
      .btn-purple:active, .btn-purple.active { background-color: #59339d; }

      .btn-pink {
        color: #fff;
        background-color: #e83e8c;
        border-color: #e83e8c;
      }
      .btn-pink:hover { background-color: #e41c78; border-color: #d91a72; }
      .btn-pink:focus { box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.5); }
      .btn-pink:active, .btn-pink.active { background-color: #d91a72; }

      .btn-teal {
        color: #fff;
        background-color: #1abc9c;
        border-color: #1abc9c;
      }
      .btn-teal:hover { background-color: #17a689; border-color: #148f77; }
      .btn-teal:focus { box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.5); }
      .btn-teal:active, .btn-teal.active { background-color: #148f77; }

      /* Outline extra variants */
      .btn-outline-indigo { color: #6610f2; border-color: #6610f2; background-color: transparent; }
      .btn-outline-indigo:hover { color: #fff; background-color: #6610f2; }
      .btn-outline-purple { color: #6f42c1; border-color: #6f42c1; background-color: transparent; }
      .btn-outline-purple:hover { color: #fff; background-color: #6f42c1; }
      .btn-outline-pink { color: #e83e8c; border-color: #e83e8c; background-color: transparent; }
      .btn-outline-pink:hover { color: #fff; background-color: #e83e8c; }
      .btn-outline-teal { color: #1abc9c; border-color: #1abc9c; background-color: transparent; }
      .btn-outline-teal:hover { color: #fff; background-color: #1abc9c; }

      .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        border-radius: 2px;
      }
      .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
        border-radius: 2px;
      }
      .btn-block {
        display: block;
        width: 100%;
      }
      .btn-block + .btn-block {
        margin-top: 0.5rem;
      }

      .btn-group {
        position: relative;
        display: inline-flex;
        vertical-align: middle;
      }
      .btn-group > .btn {
        position: relative;
        flex: 0 1 auto;
      }
      .btn-group > .btn:not(:first-child) {
        margin-left: -1px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
      }
      .btn-group > .btn:not(:last-child) {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
      }

      /* ----- BADGES ----- */

      .badge {
        display: inline-block;
        padding: 0.25em 0.4em;
        font-size: 75%;
        font-weight: 700;
        line-height: 1;
        color: #fff;
        text-align: center;
        white-space: nowrap;
        vertical-align: baseline;
        border-radius: 2px;
      }
      .badge:empty {
        display: none;
      }
      .badge-pill,
      .rounded-pill.badge {
        padding-right: 0.6em;
        padding-left: 0.6em;
        border-radius: 10rem;
      }

      .badge-primary,
      .bg-primary.badge { color: #fff; background-color: var(--primary-color); }
      .badge-secondary,
      .bg-secondary.badge { color: #fff; background-color: #868e96; }
      .badge-success,
      .bg-success.badge { color: #fff; background-color: #28a745; }
      .badge-info,
      .bg-info.badge { color: #fff; background-color: #17a2b8; }
      .badge-warning,
      .bg-warning.badge { color: #111; background-color: #ffc107; }
      .badge-danger,
      .bg-danger.badge { color: #fff; background-color: #dc3545; }
      .badge-light,
      .bg-light.badge { color: #111; background-color: #f8f9fa; }
      .badge-dark,
      .bg-dark.badge { color: #fff; background-color: #343a40; }

      /* ----- ALERTS ----- */

      .alert {
        position: relative;
        padding: 0.75rem 1.25rem;
        margin-bottom: 1rem;
        border: 1px solid transparent;
        border-radius: 2px;
      }
      .alert-heading {
        color: inherit;
      }
      .alert-link {
        font-weight: 700;
      }
      .alert-dismissible .btn-close {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 2;
        padding: 1rem 1.25rem;
      }

      .alert-primary   { color: #004085; background-color: #cce5ff; border-color: #b8daff; }
      .alert-secondary  { color: #464a4e; background-color: #e7e8ea; border-color: #dddfe2; }
      .alert-success    { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
      .alert-info       { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; }
      .alert-warning    { color: #856404; background-color: #fff3cd; border-color: #ffeeba; }
      .alert-danger     { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
      .alert-light      { color: #818182; background-color: #fefefe; border-color: #fdfdfe; }
      .alert-dark       { color: #1b1e21; background-color: #d6d8d9; border-color: #c6c8ca; }

      .alert-primary .alert-link   { color: #002752; }
      .alert-secondary .alert-link { color: #2e3133; }
      .alert-success .alert-link   { color: #0b2e13; }
      .alert-info .alert-link      { color: #062c33; }
      .alert-warning .alert-link   { color: #533f03; }
      .alert-danger .alert-link    { color: #491217; }

      /* ----- TABLES ----- */

      .table {
        width: 100%;
        margin-bottom: 1rem;
        color: #868ba1;
        border-collapse: collapse;
      }
      .table th,
      .table td {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
      }
      .table thead th {
        vertical-align: bottom;
        border-bottom: 2px solid #dee2e6;
        font-size: 0.875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #3b4863;
      }
      .table-sm th,
      .table-sm td {
        padding: 0.3rem;
      }
      .table-bordered {
        border: 1px solid #dee2e6;
      }
      .table-bordered th,
      .table-bordered td {
        border: 1px solid #dee2e6;
      }
      .table-striped tbody tr:nth-of-type(odd) {
        background-color: rgba(0, 0, 0, 0.03);
      }
      .table-hover tbody tr:hover {
        background-color: rgba(0, 0, 0, 0.055);
      }

      /* DataTables overrides */
      table.dataTable {
        border: 1px solid #dee2e6;
        margin-bottom: 15px;
      }
      table.dataTable thead th {
        padding: 0.75rem;
        border-bottom: 1px solid #dee2e6;
        position: relative;
      }
      .dataTables_wrapper .dataTables_filter input {
        border: 1px solid var(--input-border);
        border-radius: var(--input-radius);
        padding: 0.55rem 0.75rem;
        font-size: 0.875rem;
        transition: border-color 0.15s ease;
      }
      .dataTables_wrapper .dataTables_filter input:focus {
        border-color: #80bdff;
        box-shadow: 0 0 0 3px var(--input-focus-ring);
        outline: none;
      }

      /* ----- TYPOGRAPHY ----- */

      h1, h2, h3, h4, h5, h6,
      .h1, .h2, .h3, .h4, .h5, .h6 {
        margin-bottom: 0.5rem;
        font-family: inherit;
        font-weight: 500;
        line-height: 1.1;
        color: inherit;
      }
      h1, .h1 { font-size: 2.5rem; }
      h2, .h2 { font-size: 2rem; }
      h3, .h3 { font-size: 1.75rem; }
      h4, .h4 { font-size: 1.5rem; }
      h5, .h5 { font-size: 1.25rem; }
      h6, .h6 { font-size: 1rem; }

      .display-1 { font-size: 6rem;   font-weight: 300; line-height: 1.1; }
      .display-2 { font-size: 5.5rem; font-weight: 300; line-height: 1.1; }
      .display-3 { font-size: 4.5rem; font-weight: 300; line-height: 1.1; }
      .display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.1; }

      .lead {
        font-size: 1.25rem;
        font-weight: 300;
      }

      .blockquote {
        margin-bottom: 1rem;
        font-size: 1.09375rem;
      }
      .blockquote-footer {
        display: block;
        font-size: 80%;
        color: #868e96;
      }
      .blockquote-footer::before {
        content: "\2014 \00A0";
      }

      code {
        padding: 0.2rem 0.4rem;
        font-size: 90%;
        color: #bd4147;
        background-color: #f8f9fa;
        border-radius: 2px;
      }
      a > code {
        padding: 0;
        color: inherit;
        background-color: inherit;
      }
      kbd {
        padding: 0.2rem 0.4rem;
        font-size: 90%;
        color: #fff;
        background-color: #212529;
        border-radius: 2px;
      }
      pre {
        display: block;
        margin-top: 0;
        margin-bottom: 1rem;
        font-size: 90%;
        color: #212529;
      }
      pre code {
        padding: 0;
        font-size: inherit;
        color: inherit;
        background-color: transparent;
        border-radius: 0;
      }

      /* ----- CARDS (enhancement) ----- */

      .card {
        position: relative;
        display: flex;
        flex-direction: column;
        min-width: 0;
        word-wrap: break-word;
        background-color: #fff;
        background-clip: border-box;
        border: 1px solid rgba(0, 0, 0, 0.125);
        border-radius: 2px;
      }
      .card-body {
        flex: 1 1 auto;
        padding: 1.25rem;
      }
      .card-header {
        padding: 0.75rem 1.25rem;
        margin-bottom: 0;
        background-color: rgba(0, 0, 0, 0.03);
        border-bottom: 1px solid rgba(0, 0, 0, 0.125);
      }
      .card-header:first-child {
        border-radius: 1px 1px 0 0;
      }
      .card-footer {
        padding: 0.75rem 1.25rem;
        background-color: rgba(0, 0, 0, 0.03);
        border-top: 1px solid rgba(0, 0, 0, 0.125);
      }
      .card-footer:last-child {
        border-radius: 0 0 1px 1px;
      }
      .card-title {
        margin-bottom: 0.75rem;
      }
      .card-subtitle {
        margin-top: -0.375rem;
        margin-bottom: 0;
      }
      .card-text:last-child {
        margin-bottom: 0;
      }
      .card-link + .card-link {
        margin-left: 1.25rem;
      }
      .card-img-top {
        width: 100%;
        border-top-left-radius: 1px;
        border-top-right-radius: 1px;
      }
      .card-img-bottom {
        width: 100%;
        border-bottom-right-radius: 1px;
        border-bottom-left-radius: 1px;
      }
      .card-header-tabs {
        margin-right: -0.625rem;
        margin-bottom: -0.75rem;
        margin-left: -0.625rem;
        border-bottom: 0;
      }
      .card-header-pills {
        margin-right: -0.625rem;
        margin-left: -0.625rem;
      }

      /* ----- LIST GROUPS ----- */

      .list-group {
        display: flex;
        flex-direction: column;
        padding-left: 0;
        margin-bottom: 0;
      }
      .list-group-item {
        position: relative;
        display: block;
        padding: 0.75rem 1.25rem;
        margin-bottom: -1px;
        background-color: #fff;
        border: 1px solid rgba(0, 0, 0, 0.125);
      }
      .list-group-item:first-child {
        border-top-left-radius: 2px;
        border-top-right-radius: 2px;
      }
      .list-group-item:last-child {
        margin-bottom: 0;
        border-bottom-right-radius: 2px;
        border-bottom-left-radius: 2px;
      }
      .list-group-item.active {
        z-index: 2;
        color: #fff;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
      }
      .list-group-item-action {
        width: 100%;
        color: #495057;
        text-align: inherit;
      }
      .list-group-item-action:hover,
      .list-group-item-action:focus {
        color: #495057;
        text-decoration: none;
        background-color: #f8f9fa;
      }

      .list-group-item-primary { color: #004085; background-color: #b8daff; }
      .list-group-item-success { color: #155724; background-color: #c3e6cb; }
      .list-group-item-info    { color: #0c5460; background-color: #bee5eb; }
      .list-group-item-warning { color: #856404; background-color: #ffeeba; }
      .list-group-item-danger  { color: #721c24; background-color: #f5c6cb; }

      /* ----- PROGRESS BARS ----- */

      .progress {
        display: flex;
        overflow: hidden;
        font-size: 0.75rem;
        line-height: 1rem;
        text-align: center;
        background-color: #e9ecef;
        border-radius: 2px;
      }
      .progress-bar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: #fff;
        text-align: center;
        white-space: nowrap;
        background-color: var(--primary-color);
        transition: width 0.6s ease;
      }
      .progress-bar-striped {
        background-image: linear-gradient(
          45deg, rgba(255,255,255,0.15) 25%, transparent 25%,
          transparent 50%, rgba(255,255,255,0.15) 50%,
          rgba(255,255,255,0.15) 75%, transparent 75%, transparent
        );
        background-size: 1rem 1rem;
      }
      .progress-bar-animated {
        animation: progress-bar-stripes 1s linear infinite;
      }
      @keyframes progress-bar-stripes {
        from { background-position: 1rem 0; }
        to   { background-position: 0 0; }
      }

      /* ----- NAV TABS & PILLS ----- */

      .nav-tabs {
        border-bottom: 1px solid #dee2e6;
      }
      .nav-tabs .nav-link {
        border: 1px solid transparent;
        border-top-left-radius: 2px;
        border-top-right-radius: 2px;
      }
      .nav-tabs .nav-link:focus,
      .nav-tabs .nav-link:hover {
        border-color: #e9ecef #e9ecef #dee2e6;
      }
      .nav-tabs .nav-link.active,
      .nav-tabs .nav-item.show .nav-link {
        color: #495057;
        background-color: #fff;
        border-color: #dee2e6 #dee2e6 #fff;
      }
      .nav-pills .nav-link {
        border-radius: 2px;
      }
      .nav-pills .nav-link.active,
      .show > .nav-pills .nav-link {
        color: #fff;
        background-color: var(--primary-color);
      }

      /* ----- DROPDOWN MENU ----- */

      .dropdown-menu {
        font-size: 0.875rem;
        color: #868ba1;
        background-color: #fff;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 2px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.21);
      }
      .dropdown-divider {
        height: 0;
        margin: 0.5rem 0;
        overflow: hidden;
        border-top: 1px solid #e9ecef;
      }
      .dropdown-item {
        display: block;
        width: 100%;
        padding: 0.25rem 1.5rem;
        clear: both;
        font-weight: 400;
        color: #212529;
        text-align: inherit;
        white-space: nowrap;
        background: none;
        border: 0;
      }
      .dropdown-item:focus,
      .dropdown-item:hover {
        color: #16181b;
        text-decoration: none;
        background-color: #f8f9fa;
      }
      .dropdown-item.active,
      .dropdown-item:active {
        color: #fff;
        text-decoration: none;
        background-color: var(--primary-color);
      }
      .dropdown-item.disabled,
      .dropdown-item:disabled {
        color: #868e96;
        background-color: transparent;
      }
      .dropdown-header {
        display: block;
        padding: 0.5rem 1.5rem;
        margin-bottom: 0;
        font-size: 0.875rem;
        color: #868e96;
        white-space: nowrap;
      }

      /* ----- MODALS ----- */

      .modal-content {
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 4px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      }
      .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        border-bottom: 1px solid #e9ecef;
      }
      .modal-title {
        margin-bottom: 0;
        line-height: 1.5;
      }
      .modal-body {
        position: relative;
        flex: 1 1 auto;
        padding: 15px;
      }
      .modal-footer {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 15px;
        border-top: 1px solid #e9ecef;
      }

      /* ----- TOOLTIPS ----- */

      .tooltip-inner {
        max-width: 200px;
        padding: 3px 8px;
        color: #fff;
        text-align: center;
        background-color: #000;
        border-radius: 2px;
      }

      /* ----- POPOVERS ----- */

      .popover {
        font-size: 0.875rem;
        background-color: #fff;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.21);
      }
      .popover-header {
        padding: 8px 14px;
        font-size: 0.875rem;
        color: inherit;
        background-color: #f7f7f7;
        border-bottom: 1px solid #ebebeb;
        border-top-left-radius: 3px;
        border-top-right-radius: 3px;
      }
      .popover-body {
        padding: 9px 14px;
        color: #868ba1;
      }

      /* ----- PAGINATION ----- */

      .pagination {
        display: flex;
        padding-left: 0;
        list-style: none;
        border-radius: 2px;
      }
      .page-link {
        position: relative;
        display: block;
        padding: 0.5rem 0.75rem;
        margin-left: -1px;
        line-height: 1.25;
        color: var(--primary-color);
        background-color: #fff;
        border: 1px solid #dee2e6;
      }
      .page-link:focus,
      .page-link:hover {
        color: #043d66;
        text-decoration: none;
        background-color: #e9ecef;
        border-color: #dee2e6;
      }
      .page-item.active .page-link {
        z-index: 2;
        color: #fff;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
      }
      .page-item.disabled .page-link {
        color: #868e96;
        pointer-events: none;
        background-color: #fff;
        border-color: #dee2e6;
      }
      .pagination-lg .page-link {
        padding: 0.75rem 1.5rem;
        font-size: 1.25rem;
      }
      .pagination-sm .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
      }

      /* ----- BREADCRUMBS ----- */

      .breadcrumb {
        display: flex;
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        list-style: none;
        background-color: #e9ecef;
        border-radius: 2px;
      }
      .breadcrumb-item + .breadcrumb-item {
        padding-left: 0.5rem;
      }
      .breadcrumb-item + .breadcrumb-item::before {
        display: inline-block;
        padding-right: 0.5rem;
        color: #868e96;
        content: "/";
      }
      .breadcrumb-item.active {
        color: #868e96;
      }

      /* ----- FORM LABEL / FORM GROUP ----- */

      .form-label,
      label {
        font-size: 0.875rem;
        font-weight: 500;
        color: #495057;
      }
      .form-group {
        margin-bottom: 1rem;
      }
      .form-text {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.875rem;
        color: #868e96;
      }

      /* ----- CLOSE BUTTON ----- */

      .close,
      .btn-close {
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 1;
        color: #000;
        text-shadow: 0 1px 0 #fff;
        opacity: 0.5;
      }
      .close:hover,
      .btn-close:hover {
        opacity: 0.75;
      }

      /* ----- INPUT GROUP (addon compat) ----- */

      .input-group-addon {
        padding: 0.65rem 0.75rem;
        font-size: 0.875rem;
        font-weight: 400;
        line-height: 1.25;
        color: #495057;
        text-align: center;
        background-color: #e9ecef;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 2px;
      }

      /* ----- UTILITY: text muted color match ----- */

      .text-muted { color: #868e96; }

      @media (max-width: 992px) {
        #sidebar {
          left: -100%; /* Totalmente oculto al inicio */
          margin-left: 0 !important;
        }
        .kt-footer {
                display: none !important; /* Oculta el footer en móviles para evitar el empalme */
            }
        #sidebar.mobile-open {
          left: 0;
        }

        #content {
          width: 100% !important;
          padding-left: 0 !important;
          padding-bottom: 60px; /* Espacio para la barra bottom */
        }

        #sidebar-overlay.active {
          display: block;
        }

        .info-bar::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 2px;
          background: linear-gradient(to right, rgba(6, 91, 150, 0) 0%, rgba(124, 200, 255, 0.2) 20%, rgb(14 164 208) 50%, rgba(124, 200, 255, 0.2) 80%, rgba(6, 91, 150, 0) 100%);
          filter: blur(0.5px);
          transition: opacity 0.3s ease;
        }

        .kt-footer {
          left: 0;
          width: 100%;
        }
      }

      /* NOTIFICATIONS DROPDOWN CUSTOMIZATION */
      .dropdown-notifications {
        width: 320px;
        padding: 0;
        border: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      }
      .dropdown-menu-header {
        padding: 12px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(238, 238, 238, 0.1);
        background: #f8f9fa;
      }
      .dropdown-menu-header label {
        margin: 0;
        font-weight: 700;
        font-size: 13px;
        color: #333;
      }
      .dropdown-menu-header a {
        font-size: 11px;
        text-decoration: none;
        color: var(--primary-color);
      }

      .media-list {
        max-height: 350px;
        overflow-y: auto;
      }
      .media-list-link {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(240, 240, 240, 0.1);
        text-decoration: none;
        color: #555;
        transition: background 0.2s;
      }
      .media-list-link:hover {
        background: #f4f7f9;
      }
      .media-list-link .media {
        display: flex;
        gap: 12px;
      }
      .media-list-link img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
      }
      .media-list-link p {
        margin: 0;
        font-size: 13px;
        line-height: 1.4;
        color: #333;
      }
      .media-list-link span {
        font-size: 11px;
        color: #999;
      }

      .media-list-footer {
        padding: 10px;
        text-align: center;
        background: #f8f9fa;
      }
      .media-list-footer a {
        font-size: 12px;
        text-decoration: none;
        color: #666;
      }
      /* OVERLAY PARA MÓVIL */
      #sidebar-overlay {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1500;
        top: 0;
        left: 0;
      }

      /* Estilos de elementos internos (Sidebar) */
      .sidebar-header {
        height: var(--topbar-height);
        display: flex;
        align-items: center;
        padding: 0 20px;
        background: var(--dark-sidebar);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }
      .sidebar-search-container {
        height: var(--info-bar-height);
        background: var(--blackhard-bar);
        display: flex;
        align-items: center;
        padding: 0 15px;
      }
      .nav-link {
        color: #ced4da;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        font-size: 14px;
      }
      .nav-link:hover,
      .nav-link.active {
        background: rgb(123 123 123 / 10%);
        color: #343a40;
      }

      /* Dropdowns */
      .dropdown-profile {
        width: 200px;
        border: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      }
      .user-profile-nav {
        list-style: none;
        padding: 0;
        margin: 0;
      }
      .user-profile-nav li a {
        display: block;
        padding: 10px 15px;
        color: #555;
        text-decoration: none;
        font-size: 13px;
        transition: all 0.2s;
      }
      .user-profile-nav li a:hover {
        background: #f4f7f9;
        color: var(--primary-color);
      }
      .user-profile-nav li a i {
        margin-right: 10px;
        font-size: 16px;
        vertical-align: middle;
      }
      .user-profile-nav {
        list-style: none;
        padding: 0;
        margin: 0;
      }
      .user-profile-nav li a {
        display: block;
        padding: 10px 15px;
        color: #555;
        text-decoration: none;
        font-size: 13px;
        transition: all 0.2s;
      }
      .user-profile-nav li a:hover {
        background: #f4f7f9;
        color: var(--primary-color);
      }
      .user-profile-nav li a i {
        margin-right: 10px;
        font-size: 16px;
        vertical-align: middle;
      }
      .info-bar {
        background: var(--black-bar);
        color: #bbbec2;
        height: var(--info-bar-height);
        display: flex;
        align-items: center;
        padding: 0 20px;
        font-size: 11px;
        position: relative;
      }

      /* Logos adaptables */
      .logo-mobile-container {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }
      .logo-mobile {
        height: 100%;
        display: flex;
        align-items: center;
      }
      .logo-mobile img {
        max-width: 40%;
        max-height: 60%;
        object-fit: contain;
      }
      /* Barra bottom flotante para móvil */
      #mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #fff;
        border-top: 1px solid rgba(225, 229, 235, 0.1);
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
      }

      .bottom-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px;
        border: none;
        background: none;
        color: #666;
        font-size: 12px;
        transition: 0.2s;
        position: relative;
        cursor: pointer;
      }

      .bottom-btn:hover {
        color: var(--primary-color);
        background: rgba(6, 91, 150, 0.1);
        border-radius: 8px;
      }

      .bottom-btn:active {
        transform: scale(0.95);
      }

      .bottom-btn.active {
        color: var(--primary-color);
      }

      .bottom-btn.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 2px;
      }

      .bottom-btn i {
        font-size: 20px;
        margin-bottom: 2px;
      }

      /* Menú flotante de más opciones */
      #more-options-menu {
        position: fixed;
        bottom: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
        transform: translateY(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 1100;
        max-height: 70vh;
        overflow-y: auto;
      }

      #more-options-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
      }

      .more-options-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(225, 229, 235, 0.1);
        font-weight: 600;
      }

      #close-more-menu {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: #f8f9fa;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      #close-more-menu:hover {
        background: #e9ecef;
        color: #333;
      }

      #close-more-menu:active {
        transform: scale(0.9);
      }

      .more-options-content {
        padding: 10px 0;
      }

      .option-btn {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 15px 20px;
        border: none;
        background: none;
        text-align: left;
        color: #555;
        font-size: 14px;
        transition: all 0.2s ease;
        cursor: pointer;
        position: relative;
      }

      .option-btn:hover {
        background: #f8f9fa;
        padding-left: 25px;
      }

      .option-btn:hover::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 20px;
        background: var(--primary-color);
        border-radius: 2px;
      }

      .option-btn:active {
        transform: scale(0.98);
      }

      .option-btn i {
        margin-right: 15px;
        font-size: 18px;
      }

      .option-btn.text-danger {
        color: #dc3545;
      }

      .option-btn.text-danger:hover {
        background: #f8d7da;
      }

      /* Línea vertical para menús desplegados */
      .sidebar-nav > .collapse.show {
        position: relative;
      }

      .sidebar-nav > .collapse.show::before {
        content: '';
        position: absolute;
        left: 20px;
        top: -12px;
        width: 1px;
        height: calc(100% + 12px);
        background: rgb(123 123 123 / 30%);
        z-index: 20;
      }

      .sidebar-nav .collapse .collapse.show {
        position: relative;
      }

      .sidebar-nav .collapse .collapse.show::before {
        content: '';
        position: absolute;
        left: 36px;
        top: -12px;
        width: 1px;
        height: calc(100% + 12px);
        background: rgb(123 123 123 / 30%);
      }

      .sidebar-nav .collapse .collapse .collapse.show {
        position: relative;
      }

      .sidebar-nav .collapse .collapse .collapse.show::before {
        content: '';
        position: absolute;
        left: 52px;
        top: -12px;
        width: 1px;
        height: calc(100% + 12px);
        background: rgb(123 123 123 / 30%);
      }
      /* Reemplaza o modifica estas clases en tu <style> */

.sidebar-search-container {
    height: var(--info-bar-height);
    background: var(--blackhard-bar);
    display: flex;
    align-items: center;
    padding: 0 15px;
    /* Quitamos el border-bottom sólido y lo manejamos con una línea de luz */
  position: relative;
  min-height: 0;
  flex-shrink: 0;
}

/* El efecto de "Luz" desvanecida */
.sidebar-search-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0; /* Ahora cubre todo el ancho */
    width: 100%; /* Cubre todo el contenedor */
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(6, 91, 150, 0) 0%,
        rgba(124, 200, 255, 0.2) 20%,
        rgba(226, 239, 255, 0.723) 50%,
        rgba(124, 200, 255, 0.2) 80%,
        rgba(6, 91, 150, 0) 100%
    );
    filter: blur(0.5px); /* Suaviza el efecto para un look más profesional */
    transition: opacity 0.3s ease; /* Agregamos transición para efectos dinámicos */
}

/* También puedes aplicarlo a la separación del Header si quieres */
.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
  justify-content: space-between;
    padding: 0 20px;
    background: var(--dark-sidebar);
    position: relative;
    border-bottom: none; /* Quitamos el borde sólido original */
  min-height: 0;
  flex-shrink: 0;
  background-color: var(--dark-sidebar);
}

.sidebar-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(6, 91, 150, 0) 0%,
        rgba(124, 200, 255, 0.2) 20%,
        rgb(25 197 230) 50%,
        rgba(124, 200, 255, 0.2) 80%,
        rgba(6, 91, 150, 0) 100%
    );
    filter: blur(0.5px); /* Suaviza el efecto para un look más profesional */
    transition: opacity 0.3s ease;
}

.info-bar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(6, 91, 150, 0) 0%,
        rgba(124, 200, 255, 0.2) 20%,
        rgba(124, 200, 255, 0.723) 50%,
        rgba(124, 200, 255, 0.2) 80%,
        rgba(6, 91, 150, 0) 100%
    );
    filter: blur(0.5px); /* Suaviza el efecto para un look más profesional */
    transition: opacity 0.3s ease;
}


    .sidebar-nav > a.nav-link.active,
    .sidebar-nav > a.nav-link.active-unified {
      background-color: var(--bg-light) !important;
      color: #343a40 !important;
      font-weight: 500;
      border: none !important;
      position: relative;
      margin-right: -3px;
      padding-right: 20px;
      z-index: 10;
      border-radius: 0;
      box-shadow: none !important;
      outline: none !important;
    }

    .sidebar-nav > a.nav-link.active i,
    .sidebar-nav > a.nav-link.active-unified i {
      color: #343a40 !important;
    }

    .sidebar-nav > a.nav-link.active::after,
    .sidebar-nav > a.nav-link.active-unified::after {
      content: "";
      position: absolute;
      top: 0;
      right: -4px;
      width: 8px;
      height: 100%;
      background: var(--bg-light);
      pointer-events: none;
    }

    .sidebar-nav > a.nav-link[aria-expanded="true"]:not(.active):not(.active-unified) {
      background: rgba(123, 123, 123, 0.05);
      color: #3f4a54;
      box-shadow: inset -2px 0px 1px -1px #9b9b9b73, inset 3px 0 0 rgba(52, 58, 64, 0.12);
    }

    .sidebar-nav > a.nav-link[aria-expanded="true"]:not(.active):not(.active-unified) i {
      color: #3f4a54;
    }

  .sidebar-nav .collapse .nav-link.menu-leaf-active {
    background: rgba(123, 123, 123, 0.07) !important;
    color: #4a525a !important;
    font-weight: 600;
    /* border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(52, 58, 64, 0.04); */
  }

  .sidebar-nav .collapse .nav-link.menu-leaf-active i {
    color: #4a525a !important;
  }

  .sidebar-nav .collapse .nav-link.menu-leaf-active:hover {
    background: rgba(123, 123, 123, 0.1) !important;
    color: #343a40 !important;
  }

  .sidebar-nav .collapse .nav-link.menu-leaf-active:hover i {
    color: #1f252b !important;
  }

  .sidebar-nav .collapse .nav-link:hover {
    background: rgba(123, 123, 123, 0.08);
    color: #343a40;
  }
#content {
    /* ... otros estilos ... */
    background-color: var(--bg-light);
}
.info-bar {
    background: var(--black-bar);
    /* ... otros estilos ... */
    margin-left: 0;
    border-top: none; /* Elimina cualquier línea blanca superior aquí también */
}

/* Footer Styles */
.kt-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    background: var(--black-bar);
    color: #bbbec2;
    padding: 10px 20px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s; /* Para animación suave */
}

#sidebar.inactive ~ .kt-footer {
    left: 0;
    width: 100%;
}

.kt-footer span {
    flex: 1;
    text-align: center;
}

.kt-footer span:first-child {
    text-align: left;
}

.kt-footer span:last-child {
    text-align: right;
}

.kt-footer a {
    color: white;
    text-decoration: none;
}

.kt-footer a:hover {
    color: #949ca5;
}

/* Footer hide on scroll */
.kt-footer.hidden {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Adjust content to account for footer */
#content {
    padding-bottom: 50px; /* Height of footer + some padding */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-body {
    flex: 1;
    padding: 18px;
}
.text-white {
    color: #ffffff !important;
}

/* Modifica esta parte en tu CSS */
.info-bar {
  background: var(--black-bar);
  color: #bbbec2;
  height: var(--info-bar-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 11px;
  justify-content: space-between;

  /* CAMBIO CLAVE: */
  position: sticky;
  top: var(--topbar-height); /* En lugar de 0, ahora es 60px */
  z-index: 1010;
}

.kt-footer {
    /* ... tus estilos actuales ... */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.kt-footer.hidden {
    transform: translateY(100%); /* Lo saca de la pantalla hacia abajo */
    opacity: 0;
    pointer-events: none; /* Evita que el usuario haga click accidentalmente si está oculto */
}

.nav-label{
  border-bottom: 1px solid #6d6d6d3d;
}


/* Estilos para la barra de progreso (Pace.js) */
.pace {
  pointer-events: none;
  user-select: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: visible;
  margin: 0;
  padding: 0;
  z-index: 3000;
}

.pace-inactive {
  display: none;
}

.pace .pace-progress {
  background: #0070e0; /* Azul cian brillante para el efecto destello */
  position: fixed;
  z-index: 2000; /* Siempre por encima de todo */
  top: 0;
  right: 100%;
  width: 100%;
  height: 3px;
  box-shadow: 0 0 10px #0074e8, 0 0 5px #0074e8; /* Efecto neón/destello */
  transition: background-color 0.3s ease;
}

/* Opcional: un pequeño "fuego" en la punta de la barra */
.pace .pace-progress-inner {
  display: block;
  position: absolute;
  right: 0px;
  width: 100px;
  height: 100%;
  box-shadow: 0 0 10px #0074e8, 0 0 5px #0074e8;
  opacity: 1.0;
  transform: rotate(3deg) translate(0px, -4px);
}
h6.fw-normal{
  color:#d9d9d9;
}

/* Cards Showcase */
.cards-page .page-body.cards-showcase {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(1, 62, 105, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
}

.cards-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(12, 34, 54, 0.08);
  border-radius: 24px;
  background: linear-gradient(135deg, #0c2b45 0%, #155a8c 48%, #edf5fb 48%, #f9fbfd 100%);
  box-shadow: 0 24px 60px rgba(12, 43, 69, 0.12);
}

.cards-hero::before,
.cards-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cards-hero::before {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -70px;
  background: rgba(255, 255, 255, 0.12);
}

.cards-hero::after {
  width: 190px;
  height: 190px;
  bottom: -100px;
  left: 35%;
  background: rgba(25, 135, 84, 0.12);
}

.cards-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.cards-eyebrow,
.cards-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cards-eyebrow {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f5fbff;
}

.cards-kicker {
  color: #5f7690;
}

.cards-hero__title {
  margin: 14px 0 12px;
  max-width: 720px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cards-hero__text {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.75;
}

.cards-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: min(100%, 340px);
}

.cards-stat {
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #fff;
}

.cards-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.cards-stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.cards-section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.cards-section__title {
  margin: 6px 0 0;
  color: #13263c;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cards-section__text {
  max-width: 520px;
  margin: 0;
  color: #6c8194;
  font-size: 14px;
  line-height: 1.7;
}

.kt-card-surface,
.kt-media-card,
.kt-tone-card,
.kt-tab-card,
.kt-action-card,
.kt-code-card {
  border: 1px solid rgba(14, 38, 60, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 44px rgba(11, 35, 56, 0.06);
}

.kt-card-surface {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.kt-card-surface--feature {
  background: linear-gradient(180deg, rgba(1, 62, 105, 0.035), rgba(255, 255, 255, 0.98));
}

.kt-card-surface__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4fa;
  color: #0c5f99;
  font-size: 22px;
}

.kt-card-surface__meta,
.kt-media-card__meta {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #70869a;
}

.kt-card-surface__title,
.kt-media-card__title,
.kt-tone-card__body h3 {
  margin: 0;
  color: #13263c;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.kt-card-surface__text,
.kt-media-card__text,
.kt-tone-card__body p,
.kt-action-card__body p {
  margin: 0;
  color: #6d8092;
  font-size: 14px;
  line-height: 1.75;
}

.kt-card-surface__footer,
.kt-card-link-row,
.kt-action-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.kt-card-surface__footer span {
  color: #70869a;
  font-size: 13px;
}

.kt-card-surface__footer i {
  margin-right: 6px;
}

.kt-card-surface__footer a,
.kt-card-link-row a,
.kt-media-card__cta {
  color: #0b5b93;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.kt-card-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kt-card-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff5fa;
  color: #355169;
  font-size: 12px;
  font-weight: 600;
}

.kt-media-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kt-media-card__image-wrap {
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  min-height: 220px;
}

.kt-media-card__image-wrap--bottom {
  border-radius: 0 0 22px 22px;
}

.kt-media-card__image,
.kt-media-card__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kt-media-card__image {
  transition: transform 0.35s ease;
}

.kt-media-card:hover .kt-media-card__image {
  transform: scale(1.04);
}

.kt-media-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.kt-media-card__body--split {
  min-height: 220px;
  justify-content: center;
}

.kt-media-card--overlay {
  position: relative;
  min-height: 100%;
}

.kt-media-card__bg {
  min-height: 100%;
}

.kt-media-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(9, 26, 40, 0.08), rgba(9, 26, 40, 0.82));
}

.kt-media-card__cta i {
  margin-left: 6px;
}

.kt-tone-card {
  overflow: hidden;
}

.kt-tone-card__head {
  padding: 16px 22px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kt-tone-card__body {
  padding: 22px;
}

.kt-tone-card--primary .kt-tone-card__head {
  background: linear-gradient(90deg, #013e69, #0d5c93);
}

.kt-tone-card--success .kt-tone-card__head {
  background: linear-gradient(90deg, #157347, #198754);
}

.kt-tone-card--dark .kt-tone-card__head {
  background: linear-gradient(90deg, #1c2530, #303b48);
}

.kt-tab-card,
.kt-action-card {
  padding: 22px;
}

.kt-tab-card__head,
.kt-action-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.kt-tab-card__tabs {
  gap: 8px;
}

.kt-tab-card__tabs .nav-link {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #eff4f8;
  color: #556d83;
  font-size: 12px;
  font-weight: 700;
}

.kt-tab-card__tabs .nav-link.active {
  background: #0c2b45;
  color: #fff;
}

.kt-list-card {
  display: grid;
  gap: 12px;
}

.kt-list-card__item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f7fbfe;
}

.kt-list-card__item strong {
  display: block;
  margin-bottom: 4px;
  color: #173048;
  font-size: 14px;
}

.kt-list-card__item span,
.kt-list-card__item small {
  color: #6c8194;
  font-size: 13px;
}

.kt-action-card__menu {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4f8;
  color: #20374d;
  text-decoration: none;
  font-size: 20px;
}

.kt-action-card__metric {
  margin-bottom: 18px;
}

.kt-action-card__metric strong {
  display: block;
  color: #13263c;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.kt-action-card__metric span {
  display: block;
  color: #6b8094;
  font-size: 14px;
}

.kt-code-card {
  overflow: hidden;
}

.kt-code-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: #0f2336;
  color: #c6d3df;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kt-code-card__pre {
  margin: 0;
  padding: 24px;
  border: 0;
  background: #f8fbfe;
  color: #d63384;
  font-size: 12px;
  line-height: 1.8;
  overflow: auto;
}

.kt-classic-card {
  overflow: hidden;
  border: 1px solid rgba(14, 38, 60, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 44px rgba(11, 35, 56, 0.05);
}

.kt-classic-card__body,
.kt-classic-card:not(.kt-classic-card--media):not(.kt-classic-card--header) {
  padding: 24px;
}

.kt-classic-card__label {
  display: inline-flex;
  margin-bottom: 12px;
  color: #70869a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kt-classic-card__title {
  margin: 0 0 8px;
  color: #13263c;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.kt-classic-card__sub {
  margin: 0 0 10px;
  color: #9aaaba;
  font-size: 12px;
}

.kt-classic-card__text {
  margin: 0;
  color: #6d8092;
  font-size: 14px;
  line-height: 1.75;
}

.kt-classic-card__media {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.kt-classic-card__media--bottom {
  margin-top: auto;
}

.kt-classic-card--overlay {
  position: relative;
}

.kt-classic-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(8, 23, 37, 0.06), rgba(8, 23, 37, 0.82));
}

.kt-classic-card__header {
  padding: 16px 22px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kt-classic-card__header--primary {
  background: linear-gradient(90deg, #013e69, #0d5c93);
}

.kt-classic-card__header--success {
  background: linear-gradient(90deg, #157347, #198754);
}

.kt-classic-card__header--dark {
  background: linear-gradient(90deg, #1c2530, #303b48);
}

.kt-classic-card--interactive {
  display: flex;
  flex-direction: column;
}

.kt-classic-tabs {
  gap: 6px;
  border-bottom: 0;
}

.kt-classic-tabs .nav-link {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kt-classic-tabs .nav-link.active {
  background: #fff;
  color: #1c2530;
}

.kt-classic-card__options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(14, 38, 60, 0.08);
}

.kt-classic-card__menu {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4f8;
  color: #20374d;
  text-decoration: none;
  font-size: 20px;
}

@media (max-width: 991.98px) {
  .cards-page .page-body.cards-showcase {
    padding: 20px;
  }

  .cards-hero,
  .kt-card-surface,
  .kt-tab-card,
  .kt-action-card,
  .kt-code-card__pre {
    padding: 20px;
  }

  .cards-hero__stats {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .cards-hero__stats {
    grid-template-columns: 1fr;
  }

  .cards-section__title {
    font-size: 24px;
  }

  .kt-list-card__item,
  .kt-card-surface__footer,
  .kt-card-link-row,
  .kt-action-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .kt-action-card__footer .btn {
    width: 100%;
  }
}
