:root {
    --nb-primary: #0B73D9;
    --nb-primary-600: #0758A8;
    --nb-accent: #15A36D;
    --nb-success: #10b981;
    --nb-warning: #f59e0b;
    --nb-danger: #ef4444;

    --nb-bg: #f3f6fb;
    --nb-surface: #ffffff;

    --nb-tint-50: #eef4ff;
    --nb-tint-100: #e6f7f7;
    --nb-tint-200: #f3f4f6;
    --nb-tint-300: #e0e7ff;

    --nb-text: #111827;
    --nb-text-2: #374151;
    --nb-muted: #6b7280;
    --nb-border: #e5e7eb;
    --bs-body-bg: #ffffff !important;
    --bs-body-color: #000000 !important;
    --bs-nav-tabs-link-active-color: #000000 !important;
    --bs-secondary-color: rgb(124 129 134 / 75%);
    --bs-secondary-rgb: rgb(245 245 245 ) !important;
    --bs-tertiary-bg: #ffffff !important;
    --bs-pagination-disabled-bg: #ffffff !important;
    --bs-dark-rgb: 255, 255, 255 !important;
    --nb-radius: 14px;
    --nb-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}
.disabled>.page-link, .page-link.disabled{
    background-color: #ffffff !important;
}

.badge {
    --bs-badge-color: #000000 !important;
}

/*.modal.show .modal-dialog {
    border-radius: 10px !important;
    border: 1px solid !important;
}*/

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: #000000 !important;
}

.text-white {
    color: #000000 !important;
}

.bg-primary {
    background-color: var(--nb-primary) !important;
    color: #ffffff !important;
}

/* Base */
body {
    background:
        radial-gradient(circle at 10% 0%, rgba(11, 115, 217, .08), transparent 28%),
        linear-gradient(135deg, var(--nb-bg) 0%, #eef3f9 100%);
    color: var(--nb-text);
}

/* Navbar */
.navbar.nb {
    background: #ffffff !important;
    border-bottom: 1px solid var(--nb-border);
    box-shadow: var(--nb-shadow);
}

footer.nb {
    background: #ffffff;
    border-top: 1px solid var(--nb-border);
    color: var(--nb-muted);
}

/* Cards */
.nb-card {
    background: var(--nb-surface);
    border: 1px solid var(--nb-border);
    border-radius: var(--nb-radius);
    box-shadow: var(--nb-shadow);
}

.kpi-card {
    border-radius: var(--nb-radius);
    background: linear-gradient(180deg, #ffffff 0%, var(--nb-tint-50) 100%);
    border: 1px solid var(--nb-border);
}

/* Botones */
.btn {
    border-radius: 10px;
    font-weight: 500;
}

.btn-primary {
    background: var(--nb-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--nb-primary-600);
}

.btn-outline {
    border: 1px solid var(--nb-border);
    background: #fff;
    color: var(--nb-text-2);
}

.btn-outline:hover {
    background: var(--nb-tint-50);
    border-color: var(--nb-primary);
    color: var(--nb-primary);
}

/* Tablas */
.table {
    color: var(--nb-text-2);
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--nb-tint-300);
    color: var(--nb-text);
    border-bottom: 2px solid var(--nb-border);
}

.table-striped tbody tr:nth-child(odd) {
    background: #ffffff;
}

.table-striped tbody tr:nth-child(even) {
    background: #f9fbff;
}

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

.table td, .table th {
    vertical-align: middle;
    border-top: 1px solid var(--nb-border);
}

/* Contenedor tabla */
.table-wrap {
    border: 1px solid var(--nb-border);
    border-radius: var(--nb-radius);
    overflow: hidden;
    box-shadow: var(--nb-shadow);
}

/* Chips/Tags */
.tag {
    display: inline-flex;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
}

.tag.info {
    background: #e0e7ff;
    color: #1e3a8a;
}

.tag.interes {
    background: #d1fae5;
    color: #065f46;
}

.tag.volver {
    background: #fef3c7;
    color: #92400e;
}

.tag.noint {
    background: #fee2e2;
    color: #7f1d1d;
}

.chart-box {
    position: relative;
    height: 320px;
    min-height: 320px;
    max-height: 320px;
}

.chart-box canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.chart-box .empty-msg {
    min-height: 100%;
    display: grid;
    place-items: center;
}

/* Botones de filtros (outline corporativo en claro) */
.btn-outline-light {
    border: 1px solid var(--nb-border) !important;
    color: var(--nb-text-2) !important;
    background: #fff !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    transition: all .2s ease !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: var(--nb-primary) !important;
    border-color: var(--nb-primary) !important;
    background: rgba(37, 99, 235, .08) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .15) !important;
}

.btn-outline-light i {
    color: inherit !important;
    margin-right: .25rem !important;
}

/* ========================
   TABLAS - solo líneas horizontales
   ======================== */
.table {
    border-collapse: collapse !important;
}

.table th,
.table td {
    border: none !important; /* quita bordes */
    border-bottom: 1px solid var(--nb-border) !important; /* solo horizontal */
    padding: .75rem .75rem !important;
}

.table thead th {
    background: var(--nb-tint-300) !important;
    color: var(--nb-text) !important;
    font-weight: 600 !important;
    border-bottom: 2px solid var(--nb-border) !important;
}

.table tbody tr:nth-child(even) {
    background: #f9fbff !important; /* zebra */
}

.table tbody tr:hover {
    background: #eef4ff !important; /* hover sutil */
}

.tacto-origin-badge {
    background: #e0f2fe !important;
    border: 1px solid #7dd3fc !important;
    color: #075985 !important;
    font-weight: 700 !important;
}

/* Executive UI refresh */
body {
    min-height: 100vh;
    background: #f4f6f9;
    color: #172033;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

main.container {
    max-width: 1440px;
}

.nb-card,
.modal-content {
    border: 1px solid #dce3ec;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(20, 32, 54, .08);
}

.modal-content.bg-dark,
.card.bg-secondary {
    background: #ffffff !important;
    color: #172033 !important;
}

.table {
    --bs-table-bg: #ffffff;
    --bs-table-striped-bg: #f7f9fc;
    --bs-table-hover-bg: #edf4ff;
    border-color: #e2e8f0;
}

.table thead th {
    background: #eef3f8;
    color: #24324a;
    font-size: .78rem;
    letter-spacing: 0;
    text-transform: uppercase;
    vertical-align: middle;
}

.btn {
    border-radius: 7px;
}

.btn-primary,
.btn-success {
    box-shadow: 0 6px 14px rgba(2, 133, 212, .16);
}

.form-control,
.form-select {
    border-radius: 7px;
    border-color: #cfd8e3;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--nb-primary);
    box-shadow: 0 0 0 .2rem rgba(2, 133, 212, .14);
}

.badge-soft {
    background: #e9f5ff !important;
    color: #075985 !important;
}

/* Bordes exteriores de la tabla */
.table-wrap {
    border: 1px solid var(--nb-border) !important;
    border-radius: var(--nb-radius) !important;
    overflow: hidden !important;
    box-shadow: var(--nb-shadow) !important;
}

.table {
    --bs-table-bg: #ffffff !important; /* Fondo blanco */
    --bs-table-striped-bg: #f9fafb !important; /* Zebra suave */
    --bs-table-hover-bg: #f1f5ff !important; /* Hover celeste claro */

    --bs-table-color: #111827 !important; /* Texto negro/gris oscuro */
    --bs-table-striped-color: #111827 !important;
    --bs-table-hover-color: #111827 !important;

    border-collapse: collapse !important;
}

.table th,
.table td {
    color: #111827 !important;
    background-color: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important; /* solo líneas horizontales */
}

/* Scrollbar personalizado para columna izquierda y tabla */
#modalQuickCall .col-md-5::-webkit-scrollbar,
#modalQuickCall .table-responsive::-webkit-scrollbar {
  width: 8px;
}
#modalQuickCall .col-md-5::-webkit-scrollbar-track,
#modalQuickCall .table-responsive::-webkit-scrollbar-track {
  background: #2c2c2c;
  border-radius: 4px;
}
#modalQuickCall .col-md-5::-webkit-scrollbar-thumb,
#modalQuickCall .table-responsive::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}
#modalQuickCall .col-md-5::-webkit-scrollbar-thumb:hover,
#modalQuickCall .table-responsive::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Empresas: command center polish */
.companies-command {
    padding: 1rem 1.1rem;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.96));
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.companies-command h4 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
}

.companies-command .btn-group,
.companies-command .d-flex.flex-wrap.gap-2 {
    row-gap: .55rem !important;
}

.companies-command .btn {
    min-height: 42px;
    border-radius: 7px !important;
    font-weight: 700;
}

.companies-command > .d-flex:first-child {
    gap: 1rem;
}

.companies-actions {
    max-width: 100%;
}

.companies-actions .btn {
    min-width: 0;
    padding-left: .85rem;
    padding-right: .85rem;
}

.companies-actions__primary,
.companies-actions__data {
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
    border-radius: 8px;
}

.companies-actions__primary .btn,
.companies-actions__data .btn {
    border-radius: 0 !important;
}

.companies-actions__primary .btn:first-child,
.companies-actions__data .btn:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.companies-actions__primary .btn:last-child,
.companies-actions__data .btn:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.companies-actions > .btn {
    border-radius: 8px !important;
    min-height: 42px;
}

.companies-segments {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .35rem;
}

.companies-segments .btn {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #334155 !important;
    box-shadow: none !important;
}

.companies-segments .btn.active,
.companies-segments .btn:hover {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #fff !important;
}

.companies-table-card {
    overflow: hidden;
    background: #fff;
}

.companies-table-card > .table-responsive {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 62vh;
}

.companies-table {
    margin-bottom: 0;
}

.companies-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #e8eefc !important;
    color: #0f172a !important;
    white-space: nowrap;
}

.companies-table thead tr:first-child th {
    z-index: 4;
}

.companies-table thead .companies-filter-row th {
    top: 42px;
    z-index: 3;
    padding: 0.25rem;
    background: #f8fafc !important;
}

.companies-table thead .companies-filter-row .form-control {
    min-width: 88px;
    height: 24px;
    padding: 0.125rem 0.35rem;
    font-size: 0.72rem;
    border-radius: 2px;
}

.companies-table tbody td {
    height: 54px;
}

.sort-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: .5rem;
    color: inherit;
    text-decoration: none;
}

.sort-link i {
    color: #64748b;
    font-size: .9rem;
}

.empty-state {
    display: grid;
    place-items: center;
    gap: .25rem;
    color: #64748b;
}

.empty-state i {
    font-size: 2rem;
    color: #2563eb;
}

.empty-state strong {
    color: #0f172a;
    font-size: 1rem;
}

#modalGestionar .modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
}

#modalGestionar .modal-header {
    background: #0f172a;
    color: #fff;
}

#modalGestionar .nav-tabs {
    border-bottom-color: #dbe4ef;
}

#modalGestionar .nav-tabs .nav-link {
    color: #475569;
    border-radius: 7px 7px 0 0;
    font-weight: 700;
}

#modalGestionar .nav-tabs .nav-link.active {
    color: #0f172a;
    background: #eef4ff;
    border-color: #dbeafe #dbeafe #eef4ff;
}

.tacto-panel {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: .9rem;
    background: #f8fbff;
}

.tacto-panel .table thead th {
    background: #eaf2ff !important;
}

@media (max-width: 900px) {
    .companies-segments {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Global executive shell */
body:not(.auth-body) {
    min-height: 100vh;
}

body:not(.auth-body)::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(15, 23, 42, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .028) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 70%);
}

body:not(.auth-body) main.container {
    position: relative;
    z-index: auto !important;
}

.navbar.nb {
    min-height: 76px;
    background: rgba(255, 255, 255, .88) !important;
    border-bottom: 1px solid rgba(203, 213, 225, .72) !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08) !important;
    backdrop-filter: blur(14px);
}

.navbar.nb .navbar-brand img {
    height: 60px;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .12));
}

.navbar.nb .nav-link {
    font-weight: 700;
    color: #263449 !important;
}

.navbar.nb .nav-link:hover {
    color: var(--nb-primary) !important;
    background: #eaf4ff !important;
}

footer.nb {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--nb-primary), #0694D8) !important;
    border: 0 !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--nb-primary-600), var(--nb-primary)) !important;
}

.nb-card {
    background: rgba(255,255,255,.94);
    border-color: rgba(203, 213, 225, .88);
}

/* Premium login */
.auth-body {
    min-height: 100vh;
    margin: 0;
    color: #0f172a;
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 193, 7, .18), transparent 18%),
        radial-gradient(circle at 78% 18%, rgba(21, 163, 109, .14), transparent 22%),
        radial-gradient(circle at 50% 92%, rgba(11, 115, 217, .14), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #eef4fb 52%, #f7f9fc 100%);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    overflow: hidden;
}

.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 76%);
    pointer-events: none;
}

.auth-topbar,
.auth-main,
.auth-footer {
    position: relative;
    z-index: 1;
}

.auth-topbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3.5rem;
    background: rgba(255,255,255,.78);
    border-bottom: 1px solid rgba(203,213,225,.72);
    backdrop-filter: blur(16px);
}

.auth-brand,
.auth-enter {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #172033;
    text-decoration: none;
    font-weight: 800;
}

.auth-brand img {
    height: 58px;
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, .16));
}

.auth-enter {
    color: #334155;
    padding: .7rem 1rem;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
}

.auth-enter:hover {
    color: var(--nb-primary);
    border-color: #b9d8f6;
}

.auth-main {
    width: min(1280px, calc(100% - 3rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .78fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding: 4rem 0;
}

.auth-story {
    max-width: 660px;
}

.auth-logo-orbit {
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: linear-gradient(145deg, #fff, #edf5ff);
    border: 1px solid rgba(203, 213, 225, .82);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .13);
    margin-bottom: 1.5rem;
}

.auth-logo-orbit img {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.auth-kicker {
    margin: 0 0 .7rem;
    color: var(--nb-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 900;
}

.auth-story h1 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: .92;
    letter-spacing: 0;
    font-weight: 900;
    color: #0f172a;
}

.auth-copy {
    max-width: 620px;
    margin: 1.25rem 0 0;
    color: #334155;
    font-size: 1.15rem;
    line-height: 1.7;
}

.auth-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.auth-pills span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border-radius: 8px;
    color: #075985;
    background: #e8f5ff;
    border: 1px solid #c7e5ff;
    font-weight: 800;
    font-size: .9rem;
}

.auth-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 2rem;
    max-width: 560px;
}

.auth-metrics div {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(203, 213, 225, .84);
    box-shadow: 0 12px 28px rgba(15,23,42,.07);
}

.auth-metrics strong {
    display: block;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 900;
}

.auth-metrics span {
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
}

.auth-panel {
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(203, 213, 225, .94);
    box-shadow: 0 34px 90px rgba(15, 23, 42, .18);
}

.auth-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.auth-panel-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.8rem;
    font-weight: 900;
}

.auth-panel-head > i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #0B73D9, #15A36D);
    border-radius: 8px;
    font-size: 1.35rem;
}

.auth-field {
    display: grid;
    gap: .45rem;
    margin-bottom: 1rem;
}

.auth-field > span {
    color: #263449;
    font-weight: 800;
}

.auth-input {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 0 .9rem;
    border: 1px solid #cbd8e6;
    border-radius: 8px;
    background: #f8fbff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.auth-input:focus-within {
    border-color: #7dbcf4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 115, 217, .12);
}

.auth-input > i {
    color: #64748b;
}

.auth-input input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-weight: 650;
}

.auth-input input::placeholder {
    color: #94a3b8;
}

.auth-eye {
    width: 38px;
    height: 38px;
    border: 0;
    border-left: 1px solid #dbe4ef;
    background: transparent;
    color: #334155;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .6rem 0 1.15rem;
}

.auth-row a {
    color: var(--nb-primary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 750;
}

.auth-row a:hover {
    text-decoration: underline;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #334155;
    font-weight: 750;
}

.auth-check input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--nb-primary);
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #0B73D9, #0694D8);
    box-shadow: 0 18px 34px rgba(11, 115, 217, .25);
    font-weight: 900;
    transition: transform .15s ease, box-shadow .15s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 42px rgba(11, 115, 217, .32);
}

.auth-note {
    margin: 1rem 0 0;
    color: #64748b;
    text-align: center;
    font-size: .88rem;
}

.auth-footer {
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: .9rem;
}

@media (max-width: 980px) {
    .auth-topbar {
        padding: .8rem 1rem;
    }

    .auth-main {
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }

    .auth-story {
        text-align: center;
        margin: 0 auto;
    }

    .auth-logo-orbit {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-pills,
    .auth-metrics {
        justify-content: center;
    }
}

@media (max-width: 620px) {
    .auth-main {
        width: min(100% - 1rem, 1280px);
    }

    .auth-brand span {
        display: none;
    }

    .auth-panel {
        padding: 1.25rem;
    }

    .auth-metrics {
        grid-template-columns: 1fr;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Login revision: calmer, lighter, no repeated brand */
.auth-body {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(8, 42, 79, .04), transparent 42%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.auth-shell,
.auth-shell::before {
    display: block;
}

.auth-shell::before {
    background:
        linear-gradient(rgba(15,23,42,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.022) 1px, transparent 1px);
    background-size: 36px 36px;
}

.login-screen {
    width: min(1180px, calc(100% - 2rem));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, 440px);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.login-brand-panel {
    max-width: 560px;
}

.login-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 1.6rem;
    filter: drop-shadow(0 12px 22px rgba(15, 23, 42, .10));
}

.login-eyebrow {
    display: block;
    margin-bottom: .8rem;
    color: #0B73D9;
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.login-brand-panel h1 {
    margin: 0;
    color: #122033;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.02;
    font-weight: 650;
    letter-spacing: 0;
}

.login-brand-panel p {
    max-width: 520px;
    margin: 1.2rem 0 0;
    color: #526174;
    font-size: 1.08rem;
    line-height: 1.65;
    font-weight: 400;
}

.login-form-panel {
    padding: 2rem;
    border: 1px solid rgba(194, 207, 224, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 24px 70px rgba(18, 32, 51, .12);
    backdrop-filter: blur(12px);
}

.login-form-header {
    margin-bottom: 1.4rem;
}

.login-form-header span {
    display: block;
    margin-bottom: .35rem;
    color: #0B73D9;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.login-form-header h2 {
    margin: 0;
    color: #122033;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0;
}

.login-field {
    display: grid;
    gap: .45rem;
    margin-bottom: 1rem;
}

.login-field > span {
    color: #344258;
    font-size: .95rem;
    font-weight: 500;
}

.login-field input,
.login-password {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd8e6;
    border-radius: 7px;
    background: #fff;
}

.login-field input {
    padding: 0 .9rem;
    color: #122033;
    outline: 0;
    font-weight: 400;
}

.login-field input:focus,
.login-password:focus-within {
    border-color: #7eb6ea;
    box-shadow: 0 0 0 3px rgba(11, 115, 217, .10);
}

.login-password {
    display: flex;
    align-items: center;
}

.login-password input {
    flex: 1;
    min-width: 0;
    border: 0;
    min-height: 46px;
}

.login-password button {
    width: 48px;
    height: 46px;
    border: 0;
    border-left: 1px solid #e1e8f0;
    background: transparent;
    color: #506177;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .35rem 0 1.2rem;
    color: #526174;
    font-size: .92rem;
}

.login-options label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 400;
}

.login-options input {
    accent-color: #0B73D9;
}

.login-options a {
    color: #0B73D9;
    text-decoration: none;
    font-weight: 500;
}

.login-options a:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #0B73D9;
    box-shadow: 0 14px 28px rgba(11, 115, 217, .20);
    font-weight: 600;
}

.login-submit:hover {
    background: #0758A8;
}

@media (max-width: 900px) {
    .login-screen {
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }

    .login-brand-panel {
        text-align: center;
        margin: 0 auto;
    }

    .login-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 520px) {
    .login-form-panel {
        padding: 1.25rem;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Final corporate login */
.auth-body {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(11, 115, 217, .10), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(21, 163, 109, .08), transparent 24%),
        linear-gradient(135deg, #f6f8fb 0%, #edf2f7 100%);
}

.auth-shell::before {
    display: none;
}

.corp-login {
    min-height: 100vh;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.corp-login__brand {
    display: grid;
    grid-template-columns: 86px minmax(0, 560px);
    gap: 1.35rem;
    align-items: start;
}

.corp-login__brand img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, .12));
}

.corp-login__brand span,
.corp-login__header span {
    display: block;
    margin-bottom: .55rem;
    color: #0B73D9;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.corp-login__brand h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(2.4rem, 4.4vw, 4.1rem);
    line-height: 1.04;
    font-weight: 560;
    letter-spacing: 0;
}

.corp-login__brand p {
    max-width: 520px;
    margin: 1rem 0 0;
    color: #5b687a;
    font-size: 1.03rem;
    line-height: 1.65;
    font-weight: 400;
}

.corp-login__card {
    padding: 2rem;
    border: 1px solid rgba(194, 207, 224, .92);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 28px 70px rgba(18, 32, 51, .14);
}

.corp-login__header {
    margin-bottom: 1.45rem;
}

.corp-login__header h2 {
    margin: 0;
    color: #172033;
    font-size: 1.7rem;
    font-weight: 560;
    letter-spacing: 0;
}

.corp-field {
    display: grid;
    gap: .45rem;
    margin-bottom: 1rem;
}

.corp-field > span {
    color: #344258;
    font-size: .94rem;
    font-weight: 500;
}

.corp-field input,
.corp-password {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd8e6;
    border-radius: 7px;
    background: #fff;
}

.corp-field input {
    padding: 0 .9rem;
    color: #172033;
    outline: 0;
    font-size: .98rem;
    font-weight: 400;
}

.corp-field input:focus,
.corp-password:focus-within {
    border-color: #78b7ee;
    box-shadow: 0 0 0 3px rgba(11, 115, 217, .10);
}

.corp-password {
    display: flex;
    align-items: center;
}

.corp-password input {
    min-width: 0;
    flex: 1;
    border: 0;
    min-height: 46px;
}

.corp-password button {
    width: 48px;
    height: 46px;
    border: 0;
    border-left: 1px solid #e1e8f0;
    background: transparent;
    color: #506177;
}

.corp-login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .35rem 0 1.15rem;
    color: #526174;
    font-size: .92rem;
}

.corp-login__options label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 400;
}

.corp-login__options input {
    accent-color: #0B73D9;
}

.corp-login__options a {
    color: #0B73D9;
    font-weight: 500;
    text-decoration: none;
}

.corp-login__options a:hover {
    text-decoration: underline;
}

.corp-login__submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 7px;
    background: #0B73D9;
    color: #fff;
    font-size: 1rem;
    font-weight: 560;
    box-shadow: 0 14px 26px rgba(11, 115, 217, .18);
}

.corp-login__submit:hover {
    background: #0758A8;
}

@media (max-width: 860px) {
    .auth-body {
        overflow: auto;
    }

    .corp-login {
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }

    .corp-login__brand {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .corp-login__card {
        width: min(100%, 420px);
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .corp-login {
        width: min(100% - 1rem, 1120px);
    }

    .corp-login__card {
        padding: 1.25rem;
    }

    .corp-login__options {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Layer fixes */
.navbar.nb {
    position: sticky;
    top: 0;
    z-index: 1120 !important;
}

.navbar.nb .dropdown-menu {
    z-index: 1130 !important;
}

.modal {
    z-index: 50000 !important;
    pointer-events: auto !important;
}

.modal-backdrop {
    z-index: 49900 !important;
}

.modal.show {
    z-index: 50000 !important;
    pointer-events: auto !important;
}

.modal-dialog {
    position: relative;
    z-index: 50010 !important;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    z-index: 50020 !important;
    pointer-events: auto;
}

.modal.show .modal-dialog,
.modal.show .modal-content,
.modal.show input,
.modal.show select,
.modal.show textarea,
.modal.show button,
.modal.show a {
    pointer-events: auto !important;
}

body.modal-open .navbar.nb,
body.modal-open footer.nb {
    pointer-events: none;
}

body.modal-open .modal {
    pointer-events: auto;
}

#modalProspeccionQuick {
    z-index: 50100 !important;
}

#modalProspeccionQuick .modal-dialog {
    z-index: 50110 !important;
}

#modalProspeccionQuick .modal-content {
    z-index: 50120 !important;
}

.offcanvas {
    z-index: 50200 !important;
}

.offcanvas-backdrop {
    z-index: 50190 !important;
}

.table-responsive,
.table-scroll,
.table-drag-scroll,
.dt-scroll-body,
.dataTables_scrollBody,
.companies-table-card > .table-responsive {
    cursor: grab;
    user-select: text;
    -webkit-overflow-scrolling: touch;
}

.table-responsive.is-dragging,
.table-scroll.is-dragging,
.table-drag-scroll.is-dragging,
.dt-scroll-body.is-dragging,
.dataTables_scrollBody.is-dragging,
.companies-table-card > .table-responsive.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.companies-table-card form.float-end,
.companies-table-card > form {
    float: none !important;
    display: flex !important;
    justify-content: flex-end;
    margin: 0 0 .8rem !important;
}

.companies-table-card .pagination {
    gap: .25rem;
}

.companies-table-card .page-link {
    border-radius: 7px !important;
    border-color: #d8e2ee;
    color: #334155;
}

.companies-table-card .page-item.active .page-link {
    background: #0f172a;
    border-color: #0f172a;
}

/* Login that follows the logo palette */
.auth-body {
    overflow: hidden;
    background: #f3f6f9;
}

.ag-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, .92fr) minmax(420px, 1.08fr);
}

.ag-login__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 4.8rem);
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(10, 42, 74, .94), rgba(8, 95, 117, .92)),
        radial-gradient(circle at 12% 18%, rgba(255, 202, 40, .32), transparent 24%),
        radial-gradient(circle at 96% 8%, rgba(18, 183, 106, .28), transparent 26%),
        radial-gradient(circle at 86% 86%, rgba(0, 139, 219, .32), transparent 28%);
}

.ag-login__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 82%);
}

.ag-login__visual::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -110px;
    border-radius: 50%;
    border: 54px solid rgba(255,255,255,.10);
}

.ag-login__mark,
.ag-login__message,
.ag-login__status {
    position: relative;
    z-index: 1;
}

.ag-login__mark {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    color: #fff;
    font-weight: 650;
    letter-spacing: .01em;
}

.ag-login__mark img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    padding: .35rem;
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.ag-login__message {
    max-width: 560px;
    margin: 4rem 0;
}

.ag-login__message span,
.ag-login__head span {
    display: block;
    margin-bottom: .8rem;
    color: #ffc928;
    font-size: .82rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .10em;
}

.ag-login__message h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5.4vw, 5.2rem);
    line-height: .98;
    font-weight: 650;
    letter-spacing: 0;
}

.ag-login__message p {
    max-width: 480px;
    margin: 1.25rem 0 0;
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
    line-height: 1.65;
}

.ag-login__status {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    width: fit-content;
    max-width: 440px;
    padding: .9rem 1rem;
    border-radius: 8px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
}

.ag-login__status i {
    color: #ffc928;
    font-size: 1.35rem;
}

.ag-login__status strong,
.ag-login__status span {
    display: block;
}

.ag-login__status strong {
    font-weight: 650;
}

.ag-login__status span {
    color: rgba(255,255,255,.72);
    font-size: .9rem;
}

.ag-login__access {
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 139, 219, .10), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f3f6f9 100%);
}

.ag-login__card {
    width: min(100%, 430px);
    padding: 2.2rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dbe5ef;
    box-shadow: 0 28px 80px rgba(15, 42, 64, .16);
}

.ag-login__head {
    margin-bottom: 1.55rem;
}

.ag-login__head span {
    color: #008bdb;
    margin-bottom: .45rem;
}

.ag-login__head h2 {
    margin: 0;
    color: #122033;
    font-size: 2rem;
    font-weight: 620;
    letter-spacing: 0;
}

.ag-field {
    display: grid;
    gap: .45rem;
    margin-bottom: 1rem;
}

.ag-field > span {
    color: #344258;
    font-size: .93rem;
    font-weight: 520;
}

.ag-field input,
.ag-password {
    width: 100%;
    min-height: 50px;
    border: 1px solid #c8d6e5;
    border-radius: 7px;
    background: #fbfdff;
}

.ag-field input {
    padding: 0 .95rem;
    outline: 0;
    color: #122033;
}

.ag-field input:focus,
.ag-password:focus-within {
    border-color: #008bdb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,139,219,.10);
}

.ag-password {
    display: flex;
    align-items: center;
}

.ag-password input {
    min-width: 0;
    flex: 1;
    border: 0;
    min-height: 48px;
}

.ag-password button {
    width: 48px;
    height: 48px;
    border: 0;
    border-left: 1px solid #deE7f0;
    background: transparent;
    color: #506177;
}

.ag-login__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .35rem 0 1.2rem;
    color: #526174;
    font-size: .92rem;
}

.ag-login__options label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 400;
}

.ag-login__options input {
    accent-color: #008bdb;
}

.ag-login__options a {
    color: #008bdb;
    font-weight: 520;
    text-decoration: none;
}

.ag-login__submit {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, #008bdb, #08a66f);
    box-shadow: 0 18px 34px rgba(0,139,219,.22);
    font-weight: 650;
}

.ag-login__submit:hover {
    filter: brightness(.96);
}

@media (max-width: 900px) {
    .auth-body {
        overflow: auto;
    }

    .ag-login {
        grid-template-columns: 1fr;
    }

    .ag-login__visual {
        min-height: 44vh;
    }
}

@media (max-width: 520px) {
    .ag-login__visual,
    .ag-login__access {
        padding: 1.2rem;
    }

    .ag-login__card {
        padding: 1.25rem;
    }

    .ag-login__options {
        align-items: flex-start;
        flex-direction: column;
    }
}

