/* ==========================================================================
   BT-CRM · Tema visual v3 (estilo Mailchimp, en tonos azules)
   Se carga después de app.css y sobrescribe colores, tipografía y componentes.
   ========================================================================== */

:root {
  /* Marca */
  --bt-blue-50: #eff6ff;
  --bt-blue-100: #dbeafe;
  --bt-blue-200: #bfdbfe;
  --bt-blue-300: #93c5fd;
  --bt-blue-500: #3b82f6;
  --bt-blue-600: #2563eb;
  --bt-blue-700: #1d4ed8;
  --bt-blue-800: #1e40af;
  --bt-navy: #0b1b4d;
  --bt-navy-2: #12286b;
  --bt-sky: #0ea5e9;
  --bt-sky-soft: #e0f2fe;

  --bt-primary: var(--bt-blue-600);
  --bt-primary-dark: var(--bt-blue-700);
  --bt-sidebar-bg: var(--bt-navy);
  --bt-sidebar-text: #aebbe3;
  --bt-sidebar-hover: rgba(255, 255, 255, 0.07);
  --bt-body-bg: #f4f7fd;
  --bt-radius: 0.65rem;
  --bt-radius-lg: 1rem;
  --bt-card-shadow: 0 1px 2px rgba(15, 30, 80, 0.04), 0 1px 3px rgba(15, 30, 80, 0.04);
  --bt-card-shadow-hover: 0 6px 18px rgba(15, 30, 80, 0.09);
  --bt-data-border: #e4eaf6;
  --bt-data-header-bg: #f7f9fe;
  --bt-data-text: #14213d;
  --bt-data-muted: #64748b;
  --bt-data-hover: rgba(37, 99, 235, 0.05);

  /* Bootstrap */
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #1d4ed8;
  --bs-link-color-rgb: 29, 78, 216;
  --bs-link-hover-color: #1e40af;
  --bs-link-hover-color-rgb: 30, 64, 175;
  --bs-body-color: #26324d;
  --bs-body-font-size: 0.935rem;
  --bs-border-color: #dde4f2;
  --bs-border-radius: 0.6rem;
  --bs-border-radius-lg: 0.9rem;
  --bs-focus-ring-color: rgba(37, 99, 235, 0.22);
}

body.bt-body { background: var(--bt-body-bg); color: var(--bs-body-color); letter-spacing: -0.003em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--bt-data-text); font-weight: 700; letter-spacing: -0.015em; }
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
::selection { background: var(--bt-blue-200); }
.text-primary { color: var(--bt-blue-600) !important; }
.text-muted, .text-secondary { color: var(--bt-data-muted) !important; }

/* ——— Menú lateral ——— */
.bt-sidebar {
  width: 252px;
  background: linear-gradient(180deg, #0b1b4d 0%, #0a1740 100%);
  box-shadow: none;
}
.bt-main { margin-left: 252px; }
.bt-sidebar-header { padding: 1.15rem 1.25rem 0.9rem; border-bottom: 0; }
.bt-sidebar-nav { padding: 0.25rem 0.75rem 1rem; }
.bt-nav-group {
  margin: 1.15rem 0.5rem 0.4rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(174, 187, 227, 0.55);
}
.bt-nav-link {
  position: relative; gap: 0.7rem; padding: 0.55rem 0.8rem; margin-bottom: 0.1rem; border-radius: 0.6rem;
  font-weight: 600; font-size: 0.9rem; color: var(--bt-sidebar-text);
}
.bt-nav-link:hover { background: var(--bt-sidebar-hover); color: #fff; }
.bt-nav-link i, .bt-nav-link svg { width: 19px; height: 19px; opacity: 0.9; }
.bt-nav-link.active {
  background: rgba(96, 165, 250, 0.16); color: #fff;
}
.bt-nav-link.active::before {
  content: ''; position: absolute; left: -0.75rem; top: 20%; bottom: 20%; width: 4px; border-radius: 0 4px 4px 0; background: #60a5fa;
}
.bt-nav-link.active svg, .bt-nav-link.active i { color: #93c5fd; opacity: 1; }
.bt-nav-badge { background: #3b82f6; }
.bt-sidebar-footer { display: flex; align-items: center; gap: 0.4rem; padding: 0.8rem 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.bt-user-menu { flex: 1; min-width: 0; padding: 0.4rem; }
.bt-user-avatar {
  width: 34px; height: 34px; flex: none; font-weight: 800; font-size: 0.85rem; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.bt-user-name { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-user-role { font-size: 0.72rem; opacity: 0.7; }
.bt-logout-btn { display: inline-flex; padding: 0.5rem; color: var(--bt-sidebar-text); border-radius: 0.5rem; }
.bt-logout-btn:hover { color: #fff; background: var(--bt-sidebar-hover); }
.bt-logout-btn svg, .bt-logout-btn i { width: 18px; height: 18px; }

/* ——— Barra superior ——— */
.bt-topbar {
  position: sticky; top: 0; z-index: 800; align-items: center; gap: 1rem; height: 64px; padding: 0 1.75rem;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--bt-data-border);
}
.bt-topbar-search { position: relative; flex: 1; max-width: 560px; margin: 0; }
.bt-topbar-search > svg, .bt-topbar-search > i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #94a3b8; pointer-events: none; }
.bt-topbar-search input {
  width: 100%; height: 40px; padding: 0 2.6rem 0 2.5rem; border: 1px solid transparent; border-radius: 999px;
  background: #eef2fb; font-size: 0.9rem; color: var(--bt-data-text); transition: all 0.15s;
}
.bt-topbar-search input::placeholder { color: #8a97b3; }
.bt-topbar-search input:focus { outline: 0; background: #fff; border-color: var(--bt-blue-500); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
.bt-topbar-search kbd {
  position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); padding: 0.05rem 0.45rem; font-size: 0.72rem;
  color: #94a3b8; background: #fff; border: 1px solid #dde4f2; border-radius: 5px; box-shadow: none; pointer-events: none;
}
.bt-topbar-search input:focus ~ kbd { display: none; }
.bt-topbar-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.bt-create-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 700; }
.bt-create-btn svg { width: 17px; height: 17px; }
.bt-create-menu { min-width: 300px; padding: 0.5rem; }
.bt-create-menu .dropdown-item { align-items: flex-start; gap: 0.75rem; padding: 0.55rem 0.7rem; border-radius: 0.6rem; }
.bt-create-menu .dropdown-item > svg, .bt-create-menu .dropdown-item > i { width: 36px; height: 36px; padding: 8px; flex: none; border-radius: 10px; background: var(--bt-blue-50); color: var(--bt-blue-600); margin-top: 1px; }
.bt-create-menu .dropdown-item span { display: flex; flex-direction: column; font-weight: 700; font-size: 0.9rem; color: var(--bt-data-text); line-height: 1.25; }
.bt-create-menu .dropdown-item small { font-weight: 400; font-size: 0.76rem; color: var(--bt-data-muted); }
.bt-create-menu .dropdown-item:hover { background: var(--bt-blue-50); }
.bt-bell { position: relative; display: inline-flex; padding: 0.55rem; color: #64748b; border-radius: 50%; }
.bt-bell:hover { background: #eef2fb; color: var(--bt-blue-700); }
.bt-bell svg { width: 20px; height: 20px; }
.bt-bell-dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 0 2px #fff; }
.bt-topbar-user { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem 0.25rem 0.25rem; background: transparent; border: 0; border-radius: 999px; font-weight: 600; font-size: 0.88rem; color: var(--bt-data-text); }
.bt-topbar-user:hover { background: #eef2fb; }
.bt-topbar-user svg { width: 15px; height: 15px; color: #94a3b8; }
.bt-topbar-user .bt-avatar { width: 34px; height: 34px; }
.bt-main-content { padding: 1.75rem 1.9rem 3rem; width: 100%; margin: 0 auto; }

/* ——— Encabezado de página ——— */
.bt-page-heading-wrap { margin-bottom: 1.4rem !important; }
.bt-breadcrumb { font-size: 0.8rem; }
.bt-breadcrumb a { color: var(--bt-data-muted); text-decoration: none; }
.bt-breadcrumb a:hover { color: var(--bt-blue-700); text-decoration: underline; }
.bt-page-title { display: flex; align-items: center; gap: 0.7rem; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; color: var(--bt-data-text); }
.bt-page-title svg, .bt-page-title i {
  width: 38px; height: 38px; padding: 9px; flex: none; border-radius: 11px; background: var(--bt-blue-50); color: var(--bt-blue-600);
}
.bt-page-subtitle { margin-top: 0.15rem; font-size: 0.95rem; }
.bt-page-back { border-radius: 10px; }
.bt-page-header-actions .btn { white-space: nowrap; }

/* ——— Tarjetas ——— */
.bt-body .card {
  border: 1px solid var(--bt-data-border); border-radius: 0.95rem; background: #fff; box-shadow: var(--bt-card-shadow);
}
.bt-body .card-header {
  background: #fff; border-bottom: 1px solid var(--bt-data-border); padding: 0.95rem 1.2rem; font-weight: 700; color: var(--bt-data-text);
  border-radius: 0.95rem 0.95rem 0 0;
}
.bt-body .card-footer { background: #fafbff; border-top: 1px solid var(--bt-data-border); border-radius: 0 0 0.95rem 0.95rem; }
.bt-body .card-body { padding: 1.25rem; }
.bt-body .card .table { margin-bottom: 0; }
.bt-body .card > .table-responsive:last-child, .bt-body .card > .bt-contact-table-outer { border-radius: 0 0 0.95rem 0.95rem; }
a.card:hover { border-color: var(--bt-blue-200); }
.list-group-item { border-color: var(--bt-data-border); }
.list-group-item-action:hover { background: var(--bt-blue-50); }

/* ——— Botones ——— */
.btn { --bs-btn-border-radius: 0.65rem; --bs-btn-font-weight: 600; font-weight: 600; letter-spacing: -0.005em; }
.btn-lg { --bs-btn-border-radius: 0.8rem; padding: 0.7rem 1.4rem; }
.btn-sm { --bs-btn-border-radius: 0.55rem; }
.btn-primary {
  --bs-btn-bg: #2563eb; --bs-btn-border-color: #2563eb; --bs-btn-hover-bg: #1d4ed8; --bs-btn-hover-border-color: #1d4ed8;
  --bs-btn-active-bg: #1e40af; --bs-btn-active-border-color: #1e40af; --bs-btn-disabled-bg: #93b4f5; --bs-btn-disabled-border-color: #93b4f5;
  --bs-btn-focus-shadow-rgb: 37, 99, 235; box-shadow: 0 1px 2px rgba(29, 78, 216, 0.25);
}
.btn-outline-primary {
  --bs-btn-color: #1d4ed8; --bs-btn-border-color: #bfd3fb; --bs-btn-hover-bg: #eff6ff; --bs-btn-hover-color: #1e40af; --bs-btn-hover-border-color: #93b4f5;
  --bs-btn-active-bg: #dbeafe; --bs-btn-active-color: #1e40af; --bs-btn-active-border-color: #93b4f5;
}
.btn-secondary { --bs-btn-bg: #e8eefb; --bs-btn-color: #1e3a8a; --bs-btn-border-color: #e8eefb; --bs-btn-hover-bg: #dbe6fa; --bs-btn-hover-color: #1e3a8a; --bs-btn-hover-border-color: #dbe6fa; --bs-btn-active-bg: #cddcf7; --bs-btn-active-color: #1e3a8a; }
.btn-outline-secondary {
  --bs-btn-color: #334155; --bs-btn-border-color: #d3dcf0; --bs-btn-hover-bg: #f1f5ff; --bs-btn-hover-color: #1e3a8a; --bs-btn-hover-border-color: #b9c8ec;
  --bs-btn-active-bg: #e4ecff; --bs-btn-active-color: #1e3a8a; --bs-btn-active-border-color: #b9c8ec; background: #fff;
}
.btn-outline-secondary.active { background: var(--bt-blue-600); color: #fff; border-color: var(--bt-blue-600); }
/* «Éxito» y «Info» pasan a la familia azul de la marca */
.btn-success {
  --bs-btn-bg: #1d4ed8; --bs-btn-border-color: #1d4ed8; --bs-btn-hover-bg: #1e40af; --bs-btn-hover-border-color: #1e40af;
  --bs-btn-active-bg: #1e3a8a; --bs-btn-active-border-color: #1e3a8a; --bs-btn-focus-shadow-rgb: 29, 78, 216; --bs-btn-disabled-bg: #93b4f5; --bs-btn-disabled-border-color: #93b4f5;
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.3);
}
.btn-outline-success { --bs-btn-color: #1d4ed8; --bs-btn-border-color: #bfd3fb; --bs-btn-hover-bg: #1d4ed8; --bs-btn-hover-border-color: #1d4ed8; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #1e40af; --bs-btn-active-border-color: #1e40af; }
.btn-info { --bs-btn-bg: #0ea5e9; --bs-btn-border-color: #0ea5e9; --bs-btn-color: #fff; --bs-btn-hover-bg: #0284c7; --bs-btn-hover-border-color: #0284c7; --bs-btn-hover-color: #fff; }
.btn-dark { --bs-btn-bg: #0b1b4d; --bs-btn-border-color: #0b1b4d; --bs-btn-hover-bg: #12286b; --bs-btn-hover-border-color: #12286b; }
.btn-link { color: var(--bt-blue-700); font-weight: 600; text-decoration: none; }
.btn-link:hover { text-decoration: underline; }
.btn-close:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }

/* ——— Formularios ——— */
.form-label { font-weight: 600; font-size: 0.85rem; color: #334155; margin-bottom: 0.35rem; }
.form-control, .form-select { border-color: #d3dcf0; border-radius: 0.65rem; padding: 0.55rem 0.8rem; background-color: #fff; color: var(--bt-data-text); }
.form-control-sm, .form-select-sm { border-radius: 0.55rem; padding: 0.3rem 0.65rem; }
.form-control::placeholder { color: #9aa7c2; }
.form-control:focus, .form-select:focus { border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); }
.form-check-input:checked { background-color: var(--bt-blue-600); border-color: var(--bt-blue-600); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16); border-color: #60a5fa; }
.form-switch .form-check-input:checked { background-color: var(--bt-blue-600); }
.form-text { color: #7585a3; }
.input-group > .btn { border-radius: 0 0.65rem 0.65rem 0; }
.progress { border-radius: 999px; background: #e6edfb; }
.progress-bar { background-color: var(--bt-blue-600); }
.progress-bar.bg-success { background-color: #1d4ed8 !important; }

/* ——— Tablas ——— */
.table { --bs-table-hover-bg: rgba(37, 99, 235, 0.04); --bs-table-border-color: #edf1fa; color: var(--bs-body-color); }
.table > :not(caption) > * > * { padding: 0.75rem 0.9rem; }
.table thead th, .table-light { --bs-table-bg: #f7f9fe; }
.table thead th {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6b7a99; background: #f7f9fe;
  border-bottom: 1px solid var(--bt-data-border); white-space: nowrap;
}
.table-light { --bs-table-color: inherit; }
.table > tbody > tr:last-child > * { border-bottom-width: 0; }
.pagination { --bs-pagination-color: #1d4ed8; --bs-pagination-hover-color: #1e40af; --bs-pagination-hover-bg: #eff6ff; --bs-pagination-active-bg: #2563eb; --bs-pagination-active-border-color: #2563eb; --bs-pagination-border-color: #dde4f2; --bs-pagination-focus-box-shadow: 0 0 0 4px rgba(37,99,235,.14); --bs-pagination-border-radius: 0.55rem; }

/* ——— Insignias y estados ——— */
.badge { font-weight: 700; letter-spacing: 0.01em; border-radius: 999px; padding: 0.38em 0.7em; }
.badge.bg-primary { background: #dbeafe !important; color: #1d4ed8 !important; }
.badge.bg-secondary { background: #e8edf7 !important; color: #475569 !important; }
.badge.bg-success { background: #1d4ed8 !important; color: #fff !important; }
.badge.bg-info { background: #e0f2fe !important; color: #0369a1 !important; }
.badge.bg-warning { background: #fef3c7 !important; color: #92400e !important; }
.badge.bg-danger { background: #fee2e2 !important; color: #b91c1c !important; }
.badge.bg-light { background: #f1f5fb !important; color: #475569 !important; border: 1px solid #e1e8f5 !important; }
.badge.bg-dark { background: #0b1b4d !important; }
.badge.bg-success-subtle { background: #dbeafe !important; color: #1d4ed8 !important; }
.badge.bg-warning-subtle { background: #fef3c7 !important; color: #92400e !important; }
.badge.bg-danger-subtle { background: #fee2e2 !important; color: #b91c1c !important; }
.text-success { color: #0369a1 !important; }
.bg-success-subtle { background: #dbeafe !important; }
.text-info { color: #0284c7 !important; }
.bt-state-subscribed { color: #1d4ed8; background: #dbeafe; }
.bt-state-unsubscribed { color: #92400e; background: #fef3c7; }
.bt-state-cleaned { color: #b91c1c; background: #fee2e2; }

/* ——— Alertas y avisos ——— */
.bt-alert, .alert { border-radius: 0.8rem; border: 1px solid transparent; font-size: 0.92rem; }
.bt-alert { display: flex; align-items: center; gap: 0.65rem; padding: 0.8rem 1rem; margin-bottom: 1.1rem; box-shadow: var(--bt-card-shadow); }
.bt-alert > svg, .bt-alert > i { width: 20px; height: 20px; flex: none; }
.bt-alert > span { flex: 1; }
.bt-alert .btn-close { position: static; padding: 0.5rem; }
.alert-success { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.alert-success svg { color: #2563eb; }
.alert-info { background: #e0f2fe; border-color: #bae6fd; color: #075985; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ——— Menús, ventanas, pestañas ——— */
.dropdown-menu { border: 1px solid var(--bt-data-border); border-radius: 0.85rem; box-shadow: 0 12px 32px rgba(15, 30, 80, 0.14); padding: 0.4rem; }
.dropdown-item { border-radius: 0.5rem; padding: 0.45rem 0.7rem; font-size: 0.9rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--bt-blue-50); color: var(--bt-blue-800); }
.dropdown-item:active { background: var(--bt-blue-100); color: var(--bt-blue-800); }
.modal-content { border: 0; border-radius: 1.1rem; box-shadow: 0 24px 64px rgba(10, 23, 64, 0.28); }
.modal-header { border-bottom-color: var(--bt-data-border); padding: 1.1rem 1.4rem; }
.modal-footer { border-top-color: var(--bt-data-border); }
.modal-title { font-weight: 700; }
.nav-tabs { border-bottom-color: var(--bt-data-border); }
.nav-tabs .nav-link { color: var(--bt-data-muted); font-weight: 600; border: 0; border-bottom: 3px solid transparent; border-radius: 0; }
.nav-tabs .nav-link.active { color: var(--bt-blue-700); background: transparent; border-bottom-color: var(--bt-blue-600); }
.bt-audience-nav .nav-link { font-weight: 700; padding: 0.7rem 1rem; }
.bt-audience-nav .nav-link.active { color: var(--bt-blue-700); border-bottom-color: var(--bt-blue-600); }
.breadcrumb-item + .breadcrumb-item::before { color: #b4bfd6; }
.offcanvas { border-left-color: var(--bt-data-border); }

/* ——— Componentes propios ——— */
.bt-avatar { background: linear-gradient(135deg, #bfdbfe, #93c5fd); color: #1e3a8a; font-weight: 800; }
.bt-kpi-icon { border-radius: 14px; }
.bt-kpi-icon.k1 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bt-kpi-icon.k2 { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.bt-kpi-icon.k3 { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.bt-kpi-icon.k4 { background: linear-gradient(135deg, #1e40af, #0b1b4d); }
.bt-kpi-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.bt-bar { background: linear-gradient(180deg, #60a5fa, #1d4ed8); }
.bt-bar-alt { background: linear-gradient(180deg, #7dd3fc, #0284c7); }
.bt-legend[style*="059669"] { background: #0284c7 !important; }
.bt-empty { padding: 3rem 1.5rem; }
.bt-empty > svg, .bt-empty > i { width: 68px; height: 68px; padding: 18px; border-radius: 50%; background: var(--bt-blue-50); color: var(--bt-blue-500); opacity: 1; }
.bt-search-input input { border-radius: 999px; background: #fff; }
.bt-step-num { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bt-aud-type.on { background: var(--bt-blue-50); border-color: var(--bt-blue-600); }
.bt-side-card { border-radius: 0.95rem; border: 1px solid var(--bt-data-border); box-shadow: var(--bt-card-shadow); }
.bt-side-list a.active { background: var(--bt-blue-100); color: var(--bt-blue-800); }
.bt-fchip { background: var(--bt-blue-50); border-color: var(--bt-blue-200); color: var(--bt-blue-800); }
.bt-bulkbar { background: var(--bt-blue-50); border-color: var(--bt-blue-200); border-radius: 0.8rem; }
.bt-stepper li { background: #fff; }
.bt-stepper li.active { border-color: var(--bt-blue-600); color: var(--bt-blue-700); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.bt-stepper li.done span { background: #1d4ed8; }
.bt-chat-msg.mine .bt-chat-bubble { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.bt-checklist .list-group-item.ok svg, .bt-checklist .list-group-item.ok [data-lucide] { color: #2563eb; }
.bt-review-card .text-success, .text-success.bt-ok { color: #1d4ed8 !important; }
.bt-dropzone:hover, .bt-dropzone.over { background: var(--bt-blue-50); }
.bt-row-action--success { background: #0ea5e9; }
.bt-row-action--primary, .bt-row-action--history { background: #2563eb; }
.bt-contact-table .bt-sticky-start, .bt-contact-table thead .bt-sticky-start { background: #fff; }
.bt-contact-table thead .bt-sticky-start, .bt-contact-table thead .bt-sticky-end { background: #f7f9fe; }
.bt-tpl-card:hover { border-color: var(--bt-blue-300); box-shadow: var(--bt-card-shadow-hover); }

/* ——— Pantalla de ingreso (dos paneles) ——— */
.bt-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.bt-auth-brand {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 3rem 3.5rem; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 10% -10%, #2f6bff 0%, rgba(47, 107, 255, 0) 55%), linear-gradient(160deg, #0b1b4d 0%, #102a7a 55%, #1d4ed8 120%);
}
.bt-auth-brand::before { content: ''; position: absolute; inset: 0; background: url('../img/login-bg.png') center/420px; opacity: 0.07; mix-blend-mode: screen; pointer-events: none; }
.bt-auth-brand > * { position: relative; }
.bt-auth-logo { width: 320px; max-width: 70%; height: auto; }
.bt-auth-copy h2 { color: #fff; font-size: 2.3rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; max-width: 460px; }
.bt-auth-copy p { color: #c7d6fb; font-size: 1.05rem; max-width: 440px; margin-top: 1rem; }
.bt-auth-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.75rem; color: #dbe6ff; font-weight: 600; }
.bt-auth-points li { display: flex; align-items: center; gap: 0.65rem; }
.bt-auth-points svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; flex: none; }
.bt-auth-foot { color: #8fa6e6; font-size: 0.8rem; }
.bt-auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.bt-auth-card { width: 100%; max-width: 400px; }
.bt-auth-card h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
@media (max-width: 991.98px) {
  .bt-auth { grid-template-columns: 1fr; }
  .bt-auth-brand { padding: 1.75rem 1.5rem; gap: 1.5rem; }
  .bt-auth-copy h2 { font-size: 1.6rem; }
  .bt-auth-points, .bt-auth-foot { display: none; }
  .bt-auth-logo { width: 220px; }
}

@media (max-width: 991.98px) {
  .bt-main { margin-left: 0; }
  .bt-main-content { padding: 1.1rem 1rem 2.5rem; }
  .bt-page-title { font-size: 1.45rem; }
  .bt-page-title svg, .bt-page-title i { width: 32px; height: 32px; padding: 7px; }
}

/* ——— Tamaños de iconos (mayor especificidad que `.bt-body [data-lucide]`) ——— */
.bt-body .bt-page-title > svg, .bt-body .bt-page-title > i { width: 38px; height: 38px; }
.bt-body .bt-nav-link svg, .bt-body .bt-nav-link i { width: 19px; height: 19px; }
.bt-body .bt-create-btn svg { width: 17px; height: 17px; }
.bt-body .bt-create-menu .dropdown-item > svg, .bt-body .bt-create-menu .dropdown-item > i { width: 36px; height: 36px; }
.bt-body .bt-bell svg { width: 20px; height: 20px; }
.bt-body .bt-topbar-search > svg, .bt-body .bt-topbar-search > i { width: 17px; height: 17px; }
.bt-body .bt-topbar-user svg { width: 15px; height: 15px; }
.bt-body .bt-logout-btn svg, .bt-body .bt-logout-btn i { width: 18px; height: 18px; }
.bt-body .bt-alert > svg, .bt-body .bt-alert > i { width: 20px; height: 20px; }
.bt-body .bt-empty > svg, .bt-body .bt-empty > i { width: 68px; height: 68px; }
.bt-body .bt-kpi-icon svg, .bt-body .bt-kpi-icon i { width: 22px; height: 22px; }
.bt-body .bt-dropzone svg, .bt-body .bt-dropzone i { width: 40px; height: 40px; }
.bt-body .bt-auth-points svg { width: 20px; height: 20px; }
.bt-body .bt-side-title svg { width: 14px; height: 14px; }
.bt-body .bt-group-pill svg, .bt-body .bt-fchip svg { width: 12px; height: 12px; }
.bt-body .bt-bulkbar .btn svg { width: 14px; height: 14px; }
.bt-body .bt-review-msg svg { width: 16px; height: 16px; }
.bt-body .bt-audience-nav .nav-link svg { width: 17px; height: 17px; }
.bt-body .bt-mobile-menu svg { width: 24px; height: 24px; }

/* Panel izquierdo del login: solo el logotipo, centrado */
.bt-auth-brand { display: flex; align-items: center; justify-content: center; }

/* Selector segmentado (btn-check) con estado activo bien visible */
.bt-body .btn-check:checked + .btn-outline-primary, .bt-body .btn-check:active + .btn-outline-primary { background: var(--bt-blue-600, #2563eb); border-color: var(--bt-blue-600, #2563eb); color: #fff; }

/* Permisos de usuario */
.bt-perm-group { border: 1px solid var(--bt-border, #dbe3f3); border-radius: 12px; padding: 0.75rem 1rem; height: 100%; background: #fff; }
.bt-perm-title { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; margin-bottom: 0.4rem; }
.bt-perm-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.45rem 0; border-top: 1px solid #eef2fa; cursor: pointer; margin: 0; }
.bt-perm-item:first-of-type { border-top: 0; }
.bt-perm-item small { display: block; color: #64748b; font-size: 0.78rem; line-height: 1.25; }
