html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    margin-top: 0;
    margin-left: 0;
    padding: 28px 28px 0;
    transition: margin-left 0.25s ease;
}

footer {
    margin-top: auto;
    flex-shrink: 0;
    margin-left: 0;
    transition: margin-left 0.25s ease;
}

body.has-sidebar main,
body.has-sidebar footer {
    margin-left: 300px;
}

body.has-sidebar.sidebar-collapsed main,
body.has-sidebar.sidebar-collapsed footer {
    margin-left: 96px;
}

body.sidebar-mobile-open {
    overflow: hidden;
}

body.theme-light {
    background: #f5f6fa;
    color: #1D3557;
}

body.theme-dark {
    background: #1a1a1a;
    color: #eee;
}

.bg-dark-blue {
    background: #1D3557;
}

.top-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(135deg, #17324f, #204768);
}

.sidebar-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: 300px;
    background: linear-gradient(180deg, #17324f 0%, #204768 100%);
    color: #fff;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    box-shadow: 14px 0 30px rgba(8, 15, 32, 0.16);
    transition: width 0.25s ease, transform 0.25s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-toggle-btn,
.sidebar-mobile-toggle {
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle-btn:hover,
.sidebar-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
    flex: 1;
}

.sidebar-brand img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    background: transparent;
    padding: 0;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sidebar-brand-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
}

.sidebar-brand-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
}

.sidebar-user-card-top {
    margin-bottom: 14px;
}

.sidebar-menu-list,
.sidebar-submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu-item + .sidebar-menu-item {
    margin-top: 8px;
}

.sidebar-menu-link,
.sidebar-action-btn,
.sidebar-submenu-link {
    width: 100%;
    border: none;
    background: transparent;
    text-decoration: none;
    color: #eef5ff;
}

.sidebar-menu-link,
.sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 16px;
    padding: 12px 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-menu-link:hover,
.sidebar-action-btn:hover,
.sidebar-submenu-link:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
}

.sidebar-link-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar-link-icon {
    font-size: 1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-link-text {
    white-space: nowrap;
}

.sidebar-link-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.sidebar-submenu-toggle[aria-expanded="true"] .sidebar-link-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    padding: 6px 0 0 14px;
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.94rem;
    opacity: 0.92;
}

.sidebar-footer {
    padding: 16px 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.sidebar-user-card .user-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.95), rgba(69, 123, 157, 0.9));
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.sidebar-user-info strong,
.sidebar-user-info small {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-info strong {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.sidebar-user-info small {
    opacity: 0.66;
    font-size: 0.75rem;
    line-height: 1.2;
}

.sidebar-logout-btn {
    background: rgba(220, 53, 69, 0.16);
}

.sidebar-login-btn {
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-mobile-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1030;
    display: none;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 14, 29, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1035;
}

body.sidebar-collapsed .sidebar-nav {
    width: 96px;
}

body.sidebar-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .sidebar-link-text,
body.sidebar-collapsed .sidebar-link-arrow,
body.sidebar-collapsed .sidebar-user-info {
    display: none;
}

body.sidebar-collapsed .sidebar-header,
body.sidebar-collapsed .sidebar-footer {
    padding-left: 12px;
    padding-right: 12px;
}

body.sidebar-collapsed .sidebar-header {
    justify-content: flex-end;
}

body.sidebar-collapsed .sidebar-menu-link,
body.sidebar-collapsed .sidebar-action-btn {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-user-card {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

body.sidebar-collapsed .sidebar-submenu {
    display: none !important;
}

@media (max-width: 991.98px) {
    .sidebar-nav {
        transform: translateX(-100%);
        width: min(300px, 86vw);
    }

    .sidebar-mobile-toggle {
        display: inline-flex;
    }

    main,
    footer,
    body.has-sidebar main,
    body.has-sidebar footer,
    body.has-sidebar.sidebar-collapsed main,
    body.has-sidebar.sidebar-collapsed footer {
        margin-left: 0;
        padding-left: 18px;
        padding-right: 18px;
    }

    body.sidebar-mobile-open .sidebar-nav {
        transform: translateX(0);
    }

    body.sidebar-mobile-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .sidebar-toggle-btn {
        display: none;
    }
}

/* Espaciado entre logo e identidad */
.navbar-brand img {
    margin-right: 8px;
}

.navbar-brand span {
    letter-spacing: 0.5px;
}

/* Espaciado entre elementos del men� (desktop) */
@media (min-width: 992px) {
    .navbar-nav .nav-item {
        margin-left: 12px;
        margin-right: 12px;
    }
}

/* Dropdown alineado y estilizado */
.navbar .dropdown-menu {
    border-radius: 12px;
    padding: 0.5rem;
}

/* Bot�n de tema m�s elegante */
#toggleTheme {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo de botones personalizado */
/* ------------------------------ */
/*  BOTONES PREMIUM            */
/* ------------------------------ */
.btn-premium {
    border: none;
    border-radius: 20px;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* PRIMARIO MODIFICACION DEL COLOR DEL BOTON */
.btn-premium-primary {
    background: linear-gradient(135deg, #1D3557, #457B9D);
    color: #fff;
}

/* PRIMARIO MODIFICACION DEL COLOR AL PASAR EL RATON */
.btn-premium-primary:hover {
    background: linear-gradient(135deg, #fffefe, #f3f4f5);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.35);
}

/* SECUNDARIO OUTLINE */
.btn-premium-outline {
    border: 2px solid #1D3557;
    background: transparent;
    color: #1D3557;
}

.btn-premium-outline:hover {
    background: #1D3557;
    color: white;
    transform: translateY(-2px);
}

/* OSCURO ELEGANTE */
.btn-premium-dark {
    background: #1a1a1a;
    color: #fff;
}

.btn-premium-dark:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

/* SUAVE (SOFT BUTTON) */
.btn-premium-soft {
    background: rgba(29, 53, 87, 0.08);
    color: #1D3557;
}

.btn-premium-soft:hover {
    background: rgba(29, 53, 87, 0.15);
    transform: translateY(-2px);
}

/* CIRCULAR (ICONOS) */
.btn-premium-circle {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-premium-circle:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ANIMACI�N GENERAL */
.btn-premium:active,
.btn-premium-circle:active {
    transform: scale(0.96);
}

/* DESACTIVADO */
.btn-premium:disabled {
    opacity: 0.5;
    pointer-events: none;
}



/* ESTILOS PARA EL MODAL DEL LOGIN */
/* Fondo difuminado */
.premium-modal-blur .modal-backdrop {
    backdrop-filter: blur(6px);
}

/* Centrado + bordes premium */
.premium-modal {
    border-radius: 18px;
    border: none;
    padding: 20px 10px 30px 10px;
    background: #ffffffee;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.25);
    animation: fadeIn 0.25s ease-in-out;
    position: relative;
}

/* Icono superior */
.login-icon i {
    font-size: 3.2rem;
    color: #1D3557;
}

/* Bot�n cerrar personalizado */
.premium-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    opacity: 1;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
}

.premium-close:hover {
    background: #eee;
}

/* Inputs premium */
.premium-input .input-group-text {
    background: #f1f3f5;
    border: none;
    border-radius: 12px 0 0 12px;
}

.premium-input input {
    border: none;
    background: #f8f9fa;
    border-radius: 0 12px 12px 0;
    padding: 10px 12px;
}
.premium-input input:focus {
    background: #fff;
    outline: none;
    box-shadow: 0px 0px 8px rgba(69, 123, 157, 0.4);
}

/* Animaci�n */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Ajustes responsive */
@media (max-width: 576px) {
    .premium-modal {
        margin: 10px;
        padding: 15px;
    }
    .login-icon i {
        font-size: 2.6rem;
    }
}

.modal-backdrop.show {
    backdrop-filter: blur(6px);
}

/*ESTILO DE LAS TAJETAS CARD */
/* === CARD PREMIUM GRID === */
.premium-card {
    border: none;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    cursor: pointer;
}

.premium-card:hover {
    box-shadow: 0 14px 32px rgba(0,0,0,0.14);
}

.premium-move:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.14);
}

/* === ICONO PREMIUM === */
.premium-card-icon i {
    font-size: 2.8rem;
    color: #1D3557;
    background: #e8edf5;
    padding: 18px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.08);
}

/* T�tulos */
.premium-card h5 {
    color: #1D3557;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Texto */
.premium-card p {
    font-size: 0.93rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .premium-card-icon i {
        font-size: 2.2rem;
        padding: 14px;
    }
}

/* ESTILOS DE LOS FORMULARIOS */
.premium-input .input-group-text {
    background: #1D3557;
    color: #fff;
    border: none;
    border-radius: 12px 0 0 12px;
}

.premium-input .form-control,
.premium-input .form-select {
    border-radius: 0 12px 12px 0;
    border: 1px solid #d6d9e0;
    padding: 10px;
    transition: 0.3s;
}

.premium-input .form-control:focus,
.premium-input .form-select:focus {
    border-color: #1D3557;
    box-shadow: 0 0 0 0.2rem rgba(29,53,87,0.15);
}

/* CSS PREMIUM DEL CIERRE DE SESION */
/* Avatar redondo premium */
.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1d3557, #457b9d);
    color: white;
    border-radius: 50%;
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-user-photo {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: none;
    box-shadow: none;
}

/* Dropdown suave y elegante */
.user-dropdown {
    border-radius: 15px;
    min-width: 230px;
    animation: fadeIn 0.15s ease-in-out;
}

/* Bot�n de salida Premium */
.logout-button {
    border-radius: 10px;
    font-weight: 600;
    padding: 8px 0;
    transition: transform 0.15s ease;
}

.logout-button:hover {
    transform: scale(1.03);
    background-color: #c0392b !important;
}

/* Animaci�n sutil */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ESTILOS PREMIUM TABLE */

.premium-table tbody tr:hover {
    background: #f1f8ff;
}

/* avatar cuando no hay icono */
.default-avatar {
    width: 48px;
    height: 48px;
    background: #e7eef5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #456;
    font-size: 22px;
    box-shadow: 0 0 3px #c8d0da;
}
/** VARIACION DEL TAMA�O DEL CONTAINER **/
.custom-container {
    max-width: 1600px; /* o el valor que quieras */
}

/* Botones superiores premium */
.btn-premium {
    border-radius: 10px;
    font-weight: 600;
    padding: .55rem 1.1rem;
}

.btn-save-premium {
    background: #007bff;
    color: white;
    border: none;
}

.btn-save-premium:hover {
    background: #005ecb;
}

.btn-close-white {
    filter: invert(1);
}

.btn-save-premium {
    background: #007bff;
    color: #fff !important;
    border: none;
    transition: all 0.2s ease;
    border-radius: 10px;
    font-weight: 600;
    padding: .55rem 1.1rem;
}

.btn-save-premium:hover,
.btn-save-premium:focus,
.btn-save-premium:active {
    background: #007bff; /* mismo color */
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-premium-close {
    background: linear-gradient(135deg, #0052a3, #007bff);
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 0.95rem;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.25s;
}

.btn-premium-close:hover {
    background: linear-gradient(135deg, #003f7f, #005fcc);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-premium-top {
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-premium-create {
    background: linear-gradient(135deg, #0052a3, #008cff);
    color: #fff;
}

.btn-premium-create:hover {
    opacity: .9;
}

/* CSS DataBase */
.dataTables_wrapper {
  font-size: 14px;
  color: #495057;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_paginate {
  margin-top: 10px;
}

.dt-export-btn {
  border: 1px solid #dee2e6 !important;
  background: #fff !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dt-export-btn:hover {
  transform: translateY(-1px);
  background: #f8f9fa !important;
  border-color: #cfd4da !important;
}

.dt-btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #e9ecef !important;
  border: 1px solid #ced4da !important;
  color: #212529 !important;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 4px 8px;
}

#searchInput {
  border-radius: 10px;
  border: 1px solid #ced4da;
  padding: 10px 14px;
  min-width: 260px;
  outline: none;
  transition: all 0.25s ease;
}

#searchInput:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}










.modulo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.modulo-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.747);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.35s ease;
    overflow: hidden;
}

.modulo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.06));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.modulo-card > * {
    position: relative;
    z-index: 1;
}

.modulo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    border-color: rgba(59, 130, 246, 0.18);
}

.modulo-card:hover::before {
    opacity: 1;
}

.modulo-icono-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modulo-icono {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #3ad8ed);
    color: #fff;
    font-size: 30px;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
    transition: all 0.35s ease;
    position: relative;
}

.modulo-icono::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    z-index: -1;
    transition: all 0.35s ease;
}

.modulo-card:hover .modulo-icono {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 18px 35px rgba(58, 165, 237, 0.28);
}

.modulo-card:hover .modulo-icono::after {
    inset: -10px;
    background: rgba(58, 156, 237, 0.1);
}

.modulo-titulo {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.modulo-texto {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .modulo-card {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }

    .modulo-icono {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }

    .modulo-titulo {
        font-size: 1rem;
    }

    .modulo-texto {
        font-size: 0.87rem;
    }
}

.portal-footer {
    margin-top: auto;
    padding: 16px 24px 12px;
    color: #fff;
}

.portal-footer-inner {
    max-width: 1560px;
}

.footer-panel {
    height: 100%;
    padding: 14px 16px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.footer-panel-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.footer-title {
    margin: 0 0 6px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-logo-wrap {
    width: 220px;
    height: 138px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.footer-logo-image {
    width: 350px;
    height: 170px;
    object-fit: contain;
    display: block;
    background: transparent;
}

.footer-logo-fallback {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    background: rgba(255, 255, 255, 0.12);
}

.footer-payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
}

.footer-contact-list,
.footer-schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-list li,
.footer-schedule-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    line-height: 1.3;
}

.footer-contact-list li + li,
.footer-schedule-list li + li {
    margin-top: 6px;
}

.footer-contact-icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    font-size: 0.75rem;
}

.footer-schedule-group + .footer-schedule-group {
    margin-top: 10px;
}

.footer-schedule-heading {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-muted {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
}

.footer-bottom-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    .portal-footer {
        padding: 14px 14px 10px;
    }

    .footer-panel {
        padding: 12px 14px;
    }

    .footer-logo-wrap {
        width: min(220px, 100%);
        height: auto;
    }

    .footer-logo-image {
        width: min(220px, 100%);
        height: auto;
    }
}




    .vehiculos-modal .modal-dialog {
        max-width: 720px;
    }

    .vehiculos-modal .modal-content {
        border: 0;
        border-radius: 28px;
        overflow: hidden;
        background:
            radial-gradient(circle at top right, rgba(13, 110, 253, 0.16), transparent 32%),
            linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
        box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
    }

    .vehiculos-modal-header {
        position: relative;
        padding: 1.6rem 1.6rem 1rem;
        background: linear-gradient(135deg, #0f4c81 0%, #0d6efd 55%, #6ea8fe 100%);
        color: #fff;
    }

    .vehiculos-modal-header::after {
        content: "";
        position: absolute;
        inset: auto -10% -55% auto;
        width: 220px;
        height: 220px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        filter: blur(4px);
    }

    .vehiculos-modal-title-wrap {
        position: relative;
        z-index: 1;
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    .vehiculos-modal-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.22);
        font-size: 1.45rem;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .vehiculos-modal-title {
        margin: 0;
        font-size: 1.45rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .vehiculos-modal-subtitle {
        margin: 0.25rem 0 0;
        color: rgba(255, 255, 255, 0.86);
        font-size: 0.95rem;
    }

    .vehiculos-modal .btn-close {
        filter: invert(1) grayscale(1) brightness(200%);
        opacity: 0.9;
        position: relative;
        z-index: 1;
    }

    .vehiculos-modal-body {
        padding: 1.35rem 1.6rem 1.6rem;
    }

    .vehiculos-modal-card {
        border: 1px solid rgba(13, 110, 253, 0.1);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(8px);
        box-shadow: 0 12px 30px rgba(13, 110, 253, 0.08);
        padding: 1rem 1.1rem;
    }

    .vehiculos-modal-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 0.85rem;
        margin-bottom: 1rem;
    }

    .vehiculos-modal-stat {
        border-radius: 18px;
        background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
        border: 1px solid rgba(148, 163, 184, 0.18);
        padding: 0.9rem 1rem;
    }

    .vehiculos-modal-stat-label {
        display: block;
        font-size: 0.76rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #64748b;
        margin-bottom: 0.3rem;
    }

    .vehiculos-modal-stat-value {
        color: #0f172a;
        font-size: 1rem;
        font-weight: 700;
    }

    .vehiculos-modal-inline-data {
        display: flex;
        flex-wrap: wrap;
        gap: 1.2rem;
        align-items: center;
    }

    .vehiculos-modal-inline-item {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        color: #0f172a;
        font-size: 0.95rem;
    }

    .vehiculos-modal-inline-label {
        font-size: 0.74rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #64748b;
        font-weight: 700;
    }

    .vehiculos-modal-inline-value {
        font-weight: 700;
        color: #0f172a;
    }

    .vehiculos-modal-alert {
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 18px;
        padding: 0.95rem 1rem;
        font-size: 0.93rem;
        margin-bottom: 1rem;
        background: #f8fafc;
        color: #334155;
    }

    .vehiculos-modal-alert.is-loading {
        background: linear-gradient(90deg, #eef4ff 0%, #f8fbff 100%);
        border-color: rgba(13, 110, 253, 0.14);
        color: #1d4ed8;
    }

    .vehiculos-modal-alert.is-success {
        background: linear-gradient(90deg, #ecfdf5 0%, #f7fff9 100%);
        border-color: rgba(34, 197, 94, 0.18);
        color: #15803d;
    }

    .vehiculos-modal-alert.is-warning {
        background: linear-gradient(90deg, #fff7ed 0%, #fffdfa 100%);
        border-color: rgba(249, 115, 22, 0.2);
        color: #c2410c;
    }

    .vehiculos-modal-alert.is-danger {
        background: linear-gradient(90deg, #fef2f2 0%, #fff8f8 100%);
        border-color: rgba(239, 68, 68, 0.2);
        color: #b91c1c;
    }

    .vehiculos-modal .premium-input .input-group-text {
        min-width: 48px;
        justify-content: center;
    }

    .vehiculos-modal textarea.form-control {
        min-height: 118px;
        resize: vertical;
    }

    .vehiculos-modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 0.75rem;
        margin-top: 1.2rem;
    }

    .vehiculos-modal-secondary-btn {
        border-radius: 14px;
        padding-inline: 1.2rem;
    }

    .vehiculos-modal-primary-btn {
        border-radius: 14px;
        padding-inline: 1.35rem;
        box-shadow: 0 12px 26px rgba(13, 110, 253, 0.2);
    }







.landing-shell {
    background:
        radial-gradient(circle at top right, rgba(201, 218, 248, 0.9), transparent 34%),
        linear-gradient(180deg, #f7fafc 0%, #eef4f8 48%, #ffffff 100%);
}

.landing-hero {
    padding: 1rem 0 3rem;
}

.landing-hero-card,
.landing-info-card,
.landing-news-card,
.landing-module-card,
.landing-value-card {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(18, 44, 70, 0.08);
}

.landing-hero-card {
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8, 48, 86, 0.96), rgba(24, 88, 122, 0.92));
    color: #fff;
}

.landing-hero-carousel,
.landing-hero-carousel .carousel-inner,
.landing-hero-carousel .carousel-item,
.landing-hero-slide {
    height: 100%;
}

.landing-hero-copy {
    min-height: 470px;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-hero-image {
    min-height: 470px;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.landing-hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 25, 43, 0.18), rgba(7, 25, 43, 0.55));
}

.landing-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: .9rem;
    letter-spacing: .02em;
}

.landing-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.landing-stat strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: .35rem;
}

.landing-section-title {
    color: #0c3557;
    font-weight: 800;
    letter-spacing: -.02em;
}

.landing-soft-label {
    color: #2d6b93;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
}

.landing-info-card,
.landing-news-card,
.landing-module-card,
.landing-value-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.landing-info-card {
    position: relative;
    z-index: 2;
}

.landing-module-card {
    transition: transform .22s ease, box-shadow .22s ease;
    height: 100%;
}

.landing-module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(18, 44, 70, 0.14);
}

.landing-module-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #dcecf8, #eff6fb);
    color: #0d4a73;
    font-size: 1.45rem;
}

.landing-news-meta {
    font-size: .85rem;
    color: #5c7185;
}

.landing-team-card {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f6fafc 100%);
    box-shadow: 0 22px 55px rgba(18, 44, 70, 0.08);
    height: 100%;
}

.landing-team-carousel {
    position: relative;
}

.landing-team-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: .75rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.landing-team-track.is-overflowing {
    justify-content: flex-start;
    padding-inline: .35rem;
}

.landing-team-track::-webkit-scrollbar {
    height: 10px;
}

.landing-team-track::-webkit-scrollbar-thumb {
    background: rgba(29, 53, 87, 0.22);
    border-radius: 999px;
}

.landing-team-slide {
    flex: 0 0 320px;
    max-width: 320px;
    scroll-snap-align: start;
}

.landing-team-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    color: #123f65;
    box-shadow: 0 16px 30px rgba(18, 44, 70, 0.14);
    z-index: 2;
}

.landing-team-nav:hover {
    background: #fff;
}

.landing-team-nav.is-prev {
    left: -10px;
}

.landing-team-nav.is-next {
    right: -10px;
}

.landing-team-description {
    text-align: justify;
    text-justify: inter-word;
}

.landing-team-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(29, 53, 87, 0.18);
    box-shadow: 0 14px 30px rgba(18, 44, 70, 0.14);
    background: #fff;
}

.landing-team-avatar-fallback {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d7e9f7, #eff6fb);
    color: #0c4f78;
    font-size: 2rem;
    border: 3px solid rgba(29, 53, 87, 0.18);
    box-shadow: 0 14px 30px rgba(18, 44, 70, 0.14);
}

.landing-team-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: #eef6fb;
    color: #16577f;
    font-size: .8rem;
    font-weight: 700;
}

.landing-contact-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #5c7185;
    margin-bottom: .8rem;
    word-break: break-word;
}

.landing-contact-item i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef6fb;
    color: #15577f;
}

.landing-comment-card {
    border: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 22px 55px rgba(18, 44, 70, 0.08);
    height: 100%;
}

.landing-stars {
    display: inline-flex;
    gap: .2rem;
    color: #f3b63f;
    font-size: 1rem;
}

.landing-comment-quote {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #4f6476;
}

.landing-comment-author {
    color: #0c3557;
    font-weight: 700;
}

.landing-comment-role {
    color: #6b7f90;
    font-size: .92rem;
}

.landing-objectives li {
    margin-bottom: .85rem;
    padding-left: .35rem;
}

.landing-objectives i,
.landing-list-icon {
    color: #1b7aa8;
}

.landing-hero-carousel .carousel-control-prev,
.landing-hero-carousel .carousel-control-next {
    width: 52px;
    opacity: 1;
}

.landing-hero-carousel .carousel-control-prev-icon,
.landing-hero-carousel .carousel-control-next-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.18);
    background-size: 55%;
}

.landing-hero-carousel .carousel-indicators {
    margin-bottom: 1rem;
}

.landing-hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
    .landing-hero {
        padding-top: 4.8rem;
    }

    .landing-hero-copy,
    .landing-hero-image {
        min-height: 320px;
    }

    .landing-hero-copy {
        padding: 2rem;
    }

    .landing-team-slide {
        flex-basis: 280px;
        max-width: 280px;
    }

    .landing-team-nav {
        display: none;
    }
}

.landing-map-card {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    box-shadow: 0 22px 55px rgba(18, 44, 70, 0.08);
}

.landing-map-frame {
    width: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

.landing-map-info {
    background: linear-gradient(135deg, rgba(8, 48, 86, 0.96), rgba(24, 88, 122, 0.92));
    color: #fff;
    height: 100%;
}

.landing-map-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.landing-dashboard-kpi,
.landing-dashboard-panel {
    border: 0;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 22px 55px rgba(18, 44, 70, 0.08);
}

.landing-dashboard-kpi {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    height: 100%;
}

.landing-dashboard-kpi::before {
    content: "";
    position: absolute;
    inset: auto -40px -50px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 107, 147, 0.12), transparent 68%);
}

.landing-dashboard-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #dcecf8, #eef6fb);
    color: #0d4a73;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.landing-dashboard-kpi-label {
    color: #6b7f90;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.45rem;
}

.landing-dashboard-kpi-value {
    color: #0c3557;
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.55rem;
}

.landing-dashboard-kpi-note {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.5;
    max-width: 24ch;
}

.landing-dashboard-panel {
    padding: 1.55rem;
}

.landing-dashboard-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.landing-dashboard-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #eef6fb;
    color: #16577f;
    font-size: 0.8rem;
    font-weight: 700;
}

.landing-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.landing-dashboard-mini {
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    border: 1px solid rgba(18, 44, 70, 0.06);
    padding: 1rem;
}

.landing-dashboard-mini-label {
    display: block;
    color: #6b7f90;
    font-size: 0.82rem;
    margin-bottom: 0.45rem;
}

.landing-dashboard-mini strong {
    color: #0c3557;
    font-size: 1.4rem;
    line-height: 1;
}

.landing-dashboard-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.landing-dashboard-bar-card {
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    border: 1px solid rgba(18, 44, 70, 0.06);
    padding: 1rem 1rem 1.1rem;
    color: #4f6476;
}

.landing-dashboard-bar {
    height: 12px;
    border-radius: 999px;
    background: #e8f0f6;
    overflow: hidden;
}

.landing-dashboard-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1b7aa8 0%, #5bb7df 100%);
}

@media (max-width: 991.98px) {
    .landing-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.dashboard-module-shell {
    padding-top: 2rem;
}

.dashboard-module-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(112, 188, 225, 0.18), transparent 32%),
        linear-gradient(135deg, #0c3557 0%, #11496f 52%, #18657f 100%);
    color: #fff;
    box-shadow: 0 30px 70px rgba(12, 53, 87, 0.22);
}

.dashboard-module-title {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.dashboard-module-copy {
    max-width: 54ch;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.7;
}

.dashboard-module-status {
    border-radius: 24px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.dashboard-module-status-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.dashboard-module-status-value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.55rem;
}

.dashboard-module-status-note {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.6;
}

.dashboard-module-card {
    border: 0;
    border-radius: 26px;
    padding: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    box-shadow: 0 20px 50px rgba(18, 44, 70, 0.08);
}

.dashboard-module-card-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #dcecf8, #eef6fb);
    color: #0d4a73;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.dashboard-module-card-label {
    color: #6b7f90;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
}

.dashboard-module-card-value {
    color: #0c3557;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.7rem;
}

.dashboard-module-card-copy {
    color: #64748b;
    line-height: 1.65;
}

@media (max-width: 767.98px) {
    .dashboard-module-hero-card {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .dashboard-module-status {
        padding: 1.15rem;
    }
}
