/* ============================================================
   AsisteIA - Premium Startup Theme
   Palette: White sidebar, brand #383b3d, clean startup style
   Load AFTER style.bundle.css
   ============================================================ */

/* --- Orbitron font (preserved) --- */
.orbitron-200 {
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
}

.orbitron-400 {
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.orbitron-600 {
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.orbitron-700 {
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}


/* ============================================================
   A. Bootstrap Variables
   ============================================================ */
:root,
[data-bs-theme="light"] {
    --bs-primary: #383b3d;
    --bs-primary-rgb: 56, 59, 61;
    --bs-primary-bg-subtle: #f1f5f9;
    --bs-primary-border-subtle: #e2e8f0;
    --bs-primary-text-emphasis: #1e293b;
    --bs-dark: #1e2129;
    --bs-dark-rgb: 30, 33, 41;
    --bs-dark-bg-subtle: #334155;
    --bs-dark-border-subtle: #475569;
    --bs-dark-text-emphasis: #f8fafc;
}


/* ============================================================
   B. Body & App Root
   ============================================================ */
body {
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
}


/* ============================================================
   C. Header
   ============================================================ */
.app-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

.app-header .app-container {
    min-height: 60px;
}

.app-header .page-heading {
    color: #1e293b !important;
    font-weight: 700;
    font-size: 1.35rem;
}

#kt_app_header_container {
    min-height: 60px;
}

/* Mobile header logo */
.app-header .fw-bold {
    color: #383b3d !important;
}


/* ============================================================
   D. Sidebar - White Premium
   ============================================================ */
.app-sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

/* Logo area */
.app-sidebar-logo {
    height: 80px;
    border-bottom: 1px solid #e2e8f0;
}

.app-sidebar-logo a {
    text-decoration: none;
}

.app-sidebar-logo .fw-bold {
    color: #383b3d !important;
}

/* Menu general */
.app-sidebar .menu {
    padding-top: 0.5rem;
}

.app-sidebar .menu > .menu-item {
    margin-bottom: 2px;
}

/* Top-level links */
.app-sidebar .menu > .menu-item > .menu-link {
    color: #64748b;
    border-radius: 10px;
    margin: 0 0.75rem;
    padding: 0.7rem 1rem;
    transition: all 0.2s ease;
}

.app-sidebar .menu > .menu-item > .menu-link .menu-title {
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.app-sidebar .menu > .menu-item > .menu-link .menu-icon,
.app-sidebar .menu > .menu-item > .menu-link .menu-icon .svg-icon,
.app-sidebar .menu > .menu-item > .menu-link .menu-icon i {
    color: #94a3b8;
    font-size: 1.25rem;
}

.app-sidebar .menu > .menu-item > .menu-link .menu-bullet .bullet {
    background-color: #cbd5e1;
}

/* Top-level hover */
.app-sidebar .menu > .menu-item:not(.here) > .menu-link:hover:not(.disabled):not(.active):not(.here),
.app-sidebar .menu > .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) {
    background-color: #f8fafc;
    color: #1e293b;
}

.app-sidebar .menu > .menu-item:not(.here) > .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-title,
.app-sidebar .menu > .menu-item:not(.here) > .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-icon,
.app-sidebar .menu > .menu-item:not(.here) > .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-icon i {
    color: #1e293b;
}

.app-sidebar .menu > .menu-item:not(.here) > .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-bullet .bullet {
    background-color: #1e293b;
}

/* Top-level show (expanded parent) */
.app-sidebar .menu > .menu-item.show > .menu-link {
    background-color: #f8fafc;
    color: #1e293b;
}

.app-sidebar .menu > .menu-item.show > .menu-link .menu-title,
.app-sidebar .menu > .menu-item.show > .menu-link .menu-icon,
.app-sidebar .menu > .menu-item.show > .menu-link .menu-icon i {
    color: #1e293b;
}

.app-sidebar .menu > .menu-item.show > .menu-link .menu-bullet .bullet {
    background-color: #1e293b;
}

/* Top-level here (expanded parent) */
.app-sidebar .menu > .menu-item.here > .menu-link {
    background-color: #f1f5f9;
    color: #1e293b;
}

.app-sidebar .menu > .menu-item.here > .menu-link .menu-title,
.app-sidebar .menu > .menu-item.here > .menu-link .menu-icon,
.app-sidebar .menu > .menu-item.here > .menu-link .menu-icon i {
    color: #1e293b;
}

.app-sidebar .menu > .menu-item.here > .menu-link .menu-bullet .bullet {
    background-color: #1e293b;
}

/* Top-level active */
.app-sidebar .menu > .menu-item > .menu-link.active {
    background-color: #f1f5f9;
    color: #1e293b;
    box-shadow: inset 3px 0 0 0 #383b3d;
    border-radius: 0 10px 10px 0;
    margin-right: 0;
    padding-right: 1rem;
}

.app-sidebar .menu > .menu-item > .menu-link.active .menu-title,
.app-sidebar .menu > .menu-item > .menu-link.active .menu-icon,
.app-sidebar .menu > .menu-item > .menu-link.active .menu-icon i {
    color: #1e293b;
    font-weight: 600;
}

.app-sidebar .menu > .menu-item > .menu-link.active .menu-bullet .bullet {
    background-color: #383b3d;
}

/* Sub-menu items */
.app-sidebar .menu .menu-sub {
    background-color: transparent;
    padding-left: 0.5rem;
}

.app-sidebar .menu .menu-sub .menu-link {
    color: #64748b;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin: 1px 0.5rem;
    transition: all 0.2s ease;
}

.app-sidebar .menu .menu-sub .menu-link .menu-title {
    color: #64748b;
    font-weight: 400;
    font-size: 0.9rem;
}

.app-sidebar .menu .menu-sub .menu-link .menu-bullet .bullet {
    background-color: #cbd5e1;
}

.app-sidebar .menu .menu-sub .menu-link:hover:not(.disabled):not(.active):not(.here) {
    background-color: #f8fafc;
    color: #1e293b;
}

.app-sidebar .menu .menu-sub .menu-link:hover .menu-title {
    color: #1e293b;
}

.app-sidebar .menu .menu-sub .menu-link:hover .menu-bullet .bullet {
    background-color: #1e293b;
}

.app-sidebar .menu .menu-sub .menu-link.active {
    background-color: #f1f5f9;
    color: #1e293b;
    box-shadow: inset 3px 0 0 0 #383b3d;
    border-radius: 0 8px 8px 0;
    margin-right: 0;
    padding-right: 1rem;
}

.app-sidebar .menu .menu-sub .menu-link.active .menu-title {
    color: #1e293b;
    font-weight: 600;
}

.app-sidebar .menu .menu-sub .menu-link.active .menu-bullet .bullet {
    background-color: #383b3d;
}

.app-sidebar .menu .menu-sub .menu-item.here > .menu-link {
    background-color: #f1f5f9;
    color: #1e293b;
}

.app-sidebar .menu .menu-sub .menu-item.here > .menu-link .menu-title {
    color: #1e293b;
}

/* Arrow en accordion */
.app-sidebar .menu .menu-arrow {
    color: #94a3b8;
}

/* Sidebar scrollbar */
.app-sidebar .hover-scroll-y::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 4px;
}

.app-sidebar .hover-scroll-y:hover::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
}

/* Sidebar footer (user profile) */
.app-sidebar-footer {
    border-top: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
}

.app-sidebar-footer .text-gray-800 {
    color: #1e293b !important;
}


/* ============================================================
   E. Main Content Area
   ============================================================ */
.app-content {
    background-color: #f8fafc;
}

#kt_app_content_container {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}


/* ============================================================
   F. Cards
   ============================================================ */
.card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-flush {
    border-radius: 12px;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

.card-header .card-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.05rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid #e2e8f0;
}


/* ============================================================
   G. Botones
   ============================================================ */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #383b3d;
    border-color: #383b3d;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #4a4d50;
    border-color: #4a4d50;
    color: #ffffff;
}

.btn-primary:focus,
.btn-primary.focus {
    background-color: #4a4d50;
    border-color: #4a4d50;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(56, 59, 61, 0.15);
}

.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: #2c2f31;
    border-color: #2c2f31;
    color: #ffffff;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #383b3d;
    border-color: #383b3d;
    opacity: 0.5;
}

.btn-outline-primary {
    border-color: #e2e8f0;
    color: #383b3d;
}

.btn-outline-primary:hover {
    background-color: #383b3d;
    border-color: #383b3d;
    color: #ffffff;
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(56, 59, 61, 0.15);
}

.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #2c2f31;
    border-color: #2c2f31;
    color: #ffffff;
}

.btn-light-primary {
    background-color: #f1f5f9;
    border-color: #f1f5f9;
    color: #383b3d;
}

.btn-light-primary:hover {
    background-color: #383b3d;
    border-color: #383b3d;
    color: #ffffff;
}

.btn-light-primary:focus {
    background-color: #4a4d50;
    border-color: #4a4d50;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(56, 59, 61, 0.15);
}

.btn-light {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.btn-light:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}


/* ============================================================
   H. Formularios
   ============================================================ */
.form-control,
.form-select {
    border-color: #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
    border-color: #383b3d;
    box-shadow: 0 0 0 0.2rem rgba(56, 59, 61, 0.1);
    color: #1e293b;
}

.form-label {
    color: #1e293b;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
}

.form-check-input:checked {
    background-color: #383b3d;
    border-color: #383b3d;
}

.form-check-input:focus {
    border-color: #383b3d;
    box-shadow: 0 0 0 0.2rem rgba(56, 59, 61, 0.1);
}

.form-switch .form-check-input:checked {
    background-color: #383b3d;
    border-color: #383b3d;
}

.input-group-text {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}


/* ============================================================
   I. Dropdowns
   ============================================================ */
.dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dropdown-item {
    border-radius: 6px;
    margin: 2px 6px;
    padding: 0.5rem 0.75rem;
    color: #64748b;
    transition: all 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f1f5f9;
    color: #1e293b;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #383b3d;
    color: #ffffff;
}


/* ============================================================
   J. Badges
   ============================================================ */
.badge {
    font-weight: 500;
    border-radius: 6px;
}

.badge-light-primary,
.badge.bg-light-primary {
    background-color: #f1f5f9 !important;
    color: #383b3d !important;
}

.badge-primary,
.badge.bg-primary {
    background-color: #383b3d !important;
    color: #ffffff !important;
}

.badge-light-success {
    background-color: #ecfdf5;
    color: #059669;
}

.badge-light-danger {
    background-color: #fef2f2;
    color: #dc2626;
}

.badge-light-warning {
    background-color: #fffbeb;
    color: #d97706;
}

.badge-light-info {
    background-color: #eff6ff;
    color: #2563eb;
}


/* ============================================================
   K. Tablas y DataTables
   ============================================================ */
.table thead th {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.875rem;
}

.table tbody td {
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.875rem;
    vertical-align: middle;
}

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

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

.table-hover > tbody > tr:hover > * {
    color: #1e293b;
}

/* DataTables paging */
.dt-paging .page-item.active .page-link {
    background-color: #383b3d;
    border-color: #383b3d;
    color: #ffffff;
}

.dt-paging .page-link {
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin: 0 2px;
    font-size: 0.875rem;
}

.dt-paging .page-link:hover {
    background-color: #f1f5f9;
    color: #1e293b;
    border-color: #e2e8f0;
}

.dt-paging .page-item.disabled .page-link {
    color: #cbd5e1;
}

/* DataTables buttons */
.buttons-page-length.active {
    background-color: #383b3d !important;
    border-color: #383b3d !important;
    color: #ffffff !important;
}

/* DataTable search/input */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-color: #e2e8f0;
    border-radius: 6px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #383b3d;
    box-shadow: 0 0 0 0.2rem rgba(56, 59, 61, 0.1);
}


/* ============================================================
   L. Pagination (standalone)
   ============================================================ */
.page-link {
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.page-link:hover {
    color: #1e293b;
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

.page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(56, 59, 61, 0.1);
}

.page-item.active .page-link {
    background-color: #383b3d;
    border-color: #383b3d;
    color: #ffffff;
}

.page-item.disabled .page-link {
    color: #cbd5e1;
}


/* ============================================================
   M. Tabs / Nav / Accordion
   ============================================================ */
.nav-tabs {
    border-bottom-color: #e2e8f0;
}

.nav-tabs .nav-link {
    color: #64748b;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #1e293b;
    border-bottom-color: #e2e8f0;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #383b3d;
    border-bottom-color: #383b3d;
    background: transparent;
}

.nav-pills .nav-link {
    color: #64748b;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    color: #1e293b;
    background-color: #f1f5f9;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #383b3d;
    color: #ffffff;
}

.accordion-button {
    color: #1e293b;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    color: #383b3d;
    background-color: #f1f5f9;
}

.accordion-button:focus {
    border-color: #383b3d;
    box-shadow: 0 0 0 0.2rem rgba(56, 59, 61, 0.1);
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px !important;
    overflow: hidden;
    margin-bottom: 0.5rem;
}


/* ============================================================
   N. Scrolltop
   ============================================================ */
.scrolltop {
    background-color: #383b3d;
    border-radius: 10px;
}

.scrolltop:hover {
    background-color: #4a4d50;
}

.scrolltop:focus {
    background-color: #4a4d50;
    box-shadow: 0 0 0 0.2rem rgba(56, 59, 61, 0.15);
}


/* ============================================================
   O. Progress bars
   ============================================================ */
.progress {
    background-color: #e2e8f0;
    border-radius: 6px;
}

.progress-bar {
    background-color: #383b3d;
}


/* ============================================================
   P. Alerts
   ============================================================ */
.alert-primary {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #1e293b;
    border-radius: 10px;
}

.alert-success {
    border-radius: 10px;
}

.alert-danger {
    border-radius: 10px;
}

.alert-warning {
    border-radius: 10px;
}

.alert-info {
    border-radius: 10px;
}


/* ============================================================
   Q. Footer
   ============================================================ */
.app-footer {
    background-color: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
}

.app-footer .text-muted {
    color: #64748b !important;
}

.app-footer a {
    color: #383b3d;
}

.app-footer a:hover {
    color: #1e293b;
}


/* ============================================================
   R. Stat numbers (fb-moderation-settings)
   ============================================================ */
.stat-number.text-dark {
    color: #1e293b !important;
}

.stat-number.text-danger {
    color: #dc2626 !important;
}

.stat-number.text-success {
    color: #059669 !important;
}

.stat-number.text-primary {
    color: #383b3d !important;
}

.stat-number.text-info {
    color: #2563eb !important;
}

.text-muted.fw-semibold {
    color: #64748b !important;
}


/* ============================================================
   S. SweetAlert2
   ============================================================ */
.swal2-popup {
    border-radius: 16px !important;
}

.swal2-popup .swal2-styled.swal2-confirm {
    background-color: #383b3d;
    border-color: #383b3d;
    color: #ffffff;
    border-radius: 8px;
}

.swal2-popup .swal2-styled.swal2-confirm:hover {
    background-color: #4a4d50;
    border-color: #4a4d50;
}

.swal2-popup .swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 0.2rem rgba(56, 59, 61, 0.15);
}

.swal2-popup .swal2-styled.swal2-cancel {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
    border-radius: 8px;
}

.swal2-popup .swal2-styled.swal2-cancel:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    color: #1e293b;
}


/* ============================================================
   T. Breadcrumb
   ============================================================ */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #383b3d;
}

.breadcrumb-item.active {
    color: #1e293b;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e1;
}


/* ============================================================
   U. Tooltips y Popovers
   ============================================================ */
.tooltip-inner {
    background-color: #1e293b;
    border-radius: 6px;
    font-size: 0.8rem;
}

.popover {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   V. Select2 (si se usa)
   ============================================================ */
.select2-container--default .select2-selection--single {
    border-color: #e2e8f0;
    border-radius: 8px;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #383b3d;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #383b3d;
    color: #ffffff;
}

.select2-dropdown {
    border-color: #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   W. Mobile adjustments
   ============================================================ */
@media (max-width: 991.98px) {
    .app-sidebar {
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08) !important;
    }

    .app-header .fw-bold {
        font-size: 1.5rem !important;
    }
}


/* ============================================================
   X. Menu arrow fix
   ============================================================ */
.app-sidebar .menu .menu-arrow {
    display: none !important;
}

/* Menu title font weight override from bundle */
.app-sidebar .menu .menu-item .menu-link .menu-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.app-sidebar .menu > .menu-item > .menu-link .menu-title {
    font-size: 0.95rem;
    font-weight: 500;
}


/* ============================================================
   Y. Page heading color
   ============================================================ */
@media (min-width: 992px) {
    .app-header .page-heading {
        color: #1e293b !important;
    }
}

.page-heading {
    padding-bottom: 15% !important;
}


/* ============================================================
   Z. Auth Pages — Premium Login/Register/Recover
   ============================================================ */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}

.auth-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    max-width: 480px;
    width: 100%;
}

.auth-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #383b3d;
    letter-spacing: 5px;
    font-size: 2.5rem;
    text-decoration: none;
    display: inline-block;
}

.auth-logo:hover {
    color: #1e293b;
    text-decoration: none;
}

.auth-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 16px;
    margin-bottom: 1rem;
}

.auth-feature-pill i {
    color: #383b3d;
}

.auth-feature-pill span {
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
}


/* ============================================================
   Z1. Botones — Override robusto contra azul Bootstrap
   ============================================================ */
.btn.btn-primary,
.btn.btn-primary:not(:disabled):not(.disabled),
.btn.btn-primary:active,
.btn.btn-primary.active,
.show > .btn.btn-primary.dropdown-toggle {
    background-color: #383b3d;
    border-color: #383b3d;
    color: #ffffff;
}

.btn.btn-primary:hover,
.btn.btn-primary:not(:disabled):not(.disabled):hover,
.btn.btn-primary.hover {
    background-color: #4a4d50;
    border-color: #4a4d50;
    color: #ffffff;
}

.btn.btn-primary:focus,
.btn.btn-primary.focus {
    background-color: #4a4d50;
    border-color: #4a4d50;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(56, 59, 61, 0.15);
}

.btn.btn-primary:disabled,
.btn.btn-primary.disabled {
    background-color: #383b3d;
    border-color: #383b3d;
    opacity: 0.5;
}


/* ============================================================
   Z2. Links primarios — Override contra azul Bootstrap
   ============================================================ */
a.link-primary,
.link-primary {
    color: #383b3d;
}

a.link-primary:hover,
.link-primary:hover,
a.link-primary:focus,
.link-primary:focus {
    color: #4a4d50;
}

.text-hover-primary {
    transition: color 0.2s ease;
}

.text-hover-primary:hover {
    color: #383b3d !important;
}


/* ============================================================
   Z3. Textarea y select auth
   ============================================================ */
.auth-card .form-control-lg {
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    border-radius: 10px;
}

.auth-card .fv-row {
    margin-bottom: 1.25rem;
}

.auth-card .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.4rem;
}