/* ==========================================================================
   Dr. DatIA XCore by jsadsAI (BankIA) — Zero-Distraction Workspace & Mobile-First Architecture
   ========================================================================== */

html {
  max-width: 100%;
  overflow-x: clip;
}

body.luxury-fintech-theme {
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Prevención universal de desbordamiento horizontal en grillas, tarjetas, tablas y códigos */
.bk-workspace-shell,
.bk-workspace-main,
.bk-workspace-main > .container,
.bk-workspace-main > .container-fluid,
.luxury-card,
.luxury-card-glow-emerald,
.luxury-card-glow-cyan,
.row > [class*="col-"] {
  min-width: 0;
}

.bk-workspace-main img,
.bk-workspace-main svg,
.bk-workspace-main canvas {
  max-width: 100%;
}

.bk-workspace-main pre,
.bk-workspace-main code,
.font-monospace {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bk-workspace-main table {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .bk-workspace-main .table:not(.table-sm) {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .luxury-card,
  .luxury-card-glow-emerald,
  .luxury-card-glow-cyan {
    padding: 1.15rem !important;
    border-radius: 1rem;
  }
  .fintech-hero-slider .slide-title {
    font-size: clamp(1.45rem, 6vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }
  .fintech-hero-slider .slide-container {
    padding: 1.5rem 1.15rem !important;
  }
  .fintech-stepper {
    gap: 0.35rem !important;
    overflow-x: auto !important;
    padding-bottom: 0.4rem;
  }
}

/* ==========================================================================
   MODO SUITE COMPLETA DESBLOQUEADA & OCULTAMIENTO DE COBROS / WHATSAPP
   ========================================================================== */
body.bk-suite-unlocked .guarantee-box,
body.bk-suite-unlocked #comparativa-dual,
body.bk-suite-unlocked a[href*="/checkout.php"],
body.bk-suite-unlocked a[href*="checkout.php"],
body.bk-suite-unlocked a[href*="/planes.php"],
body.bk-suite-unlocked a[href*="planes.php"],
body.bk-suite-unlocked #agentWompiPayBtn,
body.bk-whatsapp-hidden .whatsapp-btn-float,
body.bk-whatsapp-hidden a[href*="wa.me/"],
body.bk-whatsapp-hidden a[href*="api.whatsapp.com"],
body.bk-whatsapp-hidden a[href*="simulador-whatsapp.php"],
body.bk-whatsapp-hidden [data-tool-id="simulador-whatsapp"] {
  display: none !important;
}

/* En Modo Foco de Herramienta se ocultan cintas promocionales redundantes */
body.bk-tool-focus .trust-logos-bar,
body.bk-tool-focus .trust-bar-wrapper,
body.bk-tool-focus #comparativa-dual {
  display: none !important;
}

/* ==========================================================================
   HEADER EJECUTIVO SUPERIOR (3 ZONAS + PESTAÑAS DE USUARIO/CUENTA)
   ========================================================================== */
.bk-exec-header {
  position: sticky;
  top: 0;
  z-index: 1045;
  background: rgba(10, 16, 31, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

body.executive-light .bk-exec-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.bk-exec-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1rem;
  max-width: 1920px;
  margin: 0 auto;
}

/* Zona 1 (Izquierda Superior): Menú APIs, Agentes IA & Módulos No-Financieros */
.bk-hdr-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bk-drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #ecfdf5;
  border-radius: 0.7rem;
  padding: 0.48rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bk-drawer-btn:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
}

.bk-drawer-btn-tools {
  background: rgba(6, 182, 212, 0.13);
  border-color: rgba(6, 182, 212, 0.38);
  color: #cffafe;
}

.bk-drawer-btn-tools:hover {
  background: rgba(6, 182, 212, 0.24);
  border-color: #06b6d4;
}

body.executive-light .bk-drawer-btn {
  color: #065f46;
  background: #ecfdf5;
}

body.executive-light .bk-drawer-btn-tools {
  color: #155e75;
  background: #ecfeff;
}

/* Zona 2 (Centro-Derecha Superior): Logo + Nombre de la Herramienta Activa y Pestañas debajo */
.bk-hdr-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.bk-brand-tool-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-width: 0;
}

.bk-brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.bk-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.bk-brand-title {
  font-family: var(--fintech-font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

body.executive-light .bk-brand-title {
  color: #0f172a;
}

.bk-tool-divider {
  color: rgba(148, 163, 184, 0.5);
  font-weight: 300;
}

.bk-active-tool-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #34d399;
  max-width: 440px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.executive-light .bk-active-tool-name {
  color: #047857;
}

/* Barra de Pestañas Administrativas y de Usuario debajo del Logo/Nombre */
.bk-account-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.38rem;
  padding-top: 0.32rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}

.bk-account-tabs::-webkit-scrollbar {
  display: none;
}

body.executive-light .bk-account-tabs {
  border-top-color: #e2e8f0;
}

.bk-acc-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.26rem 0.68rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.bk-acc-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.bk-acc-tab.is-active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.13);
  border-color: rgba(16, 185, 129, 0.32);
}

body.executive-light .bk-acc-tab {
  color: #475569;
}

body.executive-light .bk-acc-tab.is-active {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

/* Zona 3 (Derecha Superior): Botón Usuario (Nombre + Foto/Avatar) + Toggle Herramientas */
.bk-hdr-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
}

.bk-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.32rem;
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bk-user-trigger:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

body.executive-light .bk-user-trigger {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.bk-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #0284c7);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(52, 211, 153, 0.55);
}

.bk-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.bk-user-name {
  font-size: 0.76rem;
  font-weight: 700;
  max-width: 145px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-user-role {
  font-size: 0.63rem;
  color: #34d399;
  font-weight: 600;
}

/* Panel desplegable de Usuario y Cuenta */
.bk-user-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(92vw, 330px);
  background: #0d1527;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 1rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
  padding: 1rem;
  display: none;
  z-index: 1060;
}

.bk-user-dropdown.is-open {
  display: block;
}

body.executive-light .bk-user-dropdown {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.bk-user-menu-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.6rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.bk-user-menu-link:hover {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
}

body.executive-light .bk-user-menu-link {
  color: #1e293b;
}

/* ==========================================================================
   LAYOUT DE 3 COLUMNAS: SIDEBAR IZQUIERDO + LIENZO CENTRAL + SIDEBAR DERECHO
   ========================================================================== */
.bk-workspace-shell {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  align-items: stretch;
  position: relative;
  box-sizing: border-box;
}

.bk-sidebar {
  display: none !important;
}

.bk-workspace-main {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 1100px) and (max-width: 1520px) {
  .bk-sidebar {
    width: 244px;
  }
  .bk-workspace-main > .container-fluid.px-lg-5 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

body.executive-light .bk-sidebar {
  background: #ffffff;
  border-color: #e2e8f0;
}

.bk-sidebar-left {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.bk-sidebar-right {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.bk-sidebar-sticky {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow-y: auto;
  padding: 0.9rem 0.8rem 2rem;
  scrollbar-width: thin;
}

.bk-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem 0.7rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bk-sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
}

.bk-sidebar-hide-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 0.45rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.bk-sidebar-hide-btn:hover {
  border-color: #10b981;
  color: #34d399;
}

.bk-nav-group-label {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0.85rem 0.35rem 0.4rem;
}

/* Tarjetas informativas del Menú Izquierdo (Módulos + Información) */
.bk-mod-item {
  display: block;
  text-decoration: none;
  padding: 0.62rem 0.68rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.42rem;
  transition: all 0.18s ease;
}

.bk-mod-item:hover,
.bk-mod-item.is-active {
  background: rgba(16, 185, 129, 0.13);
  border-color: rgba(16, 185, 129, 0.4);
}

body.executive-light .bk-mod-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.bk-mod-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.bk-mod-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

body.executive-light .bk-mod-name {
  color: #0f172a;
}

.bk-mod-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  flex-shrink: 0;
}

.bk-mod-desc {
  font-size: 0.69rem;
  line-height: 1.38;
  color: #94a3b8;
  margin-top: 0.28rem;
}

body.executive-light .bk-mod-desc {
  color: #475569;
}

/* Enlaces directos del Menú Derecho (Herramientas Financieras) */
.bk-tool-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.56rem 0.65rem;
  border-radius: 0.68rem;
  text-decoration: none;
  color: #e2e8f0;
  border: 1px solid transparent;
  margin-bottom: 0.25rem;
  transition: all 0.16s ease;
}

.bk-tool-link:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  color: #ffffff;
}

.bk-tool-link.is-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.16));
  border-color: rgba(52, 211, 153, 0.55);
  color: #ffffff;
}

body.executive-light .bk-tool-link {
  color: #1e293b;
}

.bk-tool-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #34d399;
  flex-shrink: 0;
}

.bk-tool-text {
  min-width: 0;
  flex: 1;
}

.bk-tool-title {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-tool-norm {
  font-size: 0.64rem;
  color: #94a3b8;
}

/* Lienzo Central de la Herramienta */
.bk-workspace-main {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: 2rem;
}

/* Estados Ocultos en Escritorio (>= 1100px) */
@media (min-width: 1100px) {
  body.bk-left-collapsed .bk-sidebar-left {
    display: none;
  }
  body.bk-right-collapsed .bk-sidebar-right {
    display: none;
  }
  .bk-mobile-backdrop,
  .bk-mobile-bottom-nav {
    display: none !important;
  }
}

/* Modo Móvil / Tablet (< 1100px): Sidebars como Hojas Deslizables + Barra Inferior */
@media (max-width: 1099.98px) {
  body.luxury-fintech-theme {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .bk-exec-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
  }

  .bk-drawer-btn span.bk-btn-label {
    display: none;
  }

  .bk-user-meta {
    display: none;
  }

  .bk-user-trigger {
    padding: 0.2rem;
  }

  .bk-brand-title {
    font-size: 0.84rem;
  }

  .bk-active-tool-name {
    font-size: 0.75rem;
    max-width: 180px;
  }

  .bk-account-tabs {
    justify-content: flex-start;
  }

  .bk-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(88vw, 330px);
    z-index: 1070;
    background: #0a1020;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  }

  .bk-sidebar-sticky {
    position: static;
    height: 100%;
    padding-bottom: 5rem;
  }

  .bk-sidebar-left {
    left: 0;
    transform: translateX(-104%);
  }

  .bk-sidebar-right {
    right: 0;
    transform: translateX(104%);
  }

  body.bk-mobile-left-open .bk-sidebar-left {
    transform: translateX(0);
  }

  body.bk-mobile-right-open .bk-sidebar-right {
    transform: translateX(0);
  }

  .bk-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 18, 0.72);
    backdrop-filter: blur(6px);
    z-index: 1065;
    display: none;
  }

  body.bk-mobile-left-open .bk-mobile-backdrop,
  body.bk-mobile-right-open .bk-mobile-backdrop {
    display: block;
  }

  /* Barra Inferior Móvil Unificada (Web + Herramientas) */
  .bk-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(9, 14, 27, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    z-index: 1055;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.55);
  }

  body.executive-light .bk-mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: #cbd5e1;
  }

  .bk-mnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    background: transparent;
    border: 0;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.63rem;
    font-weight: 700;
    padding: 0.35rem 0.15rem;
    cursor: pointer;
    min-height: 48px;
  }

  .bk-mnav-item i {
    font-size: 1.05rem;
  }

  .bk-mnav-item.is-active,
  .bk-mnav-item:active {
    color: #34d399;
  }

  .bk-mnav-item-primary i {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #ffffff;
    width: 34px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  }
}

/* ==========================================================================
   PANEL DESLIZANTE DEL CHAT DE SOPORTE CON IA (Dr. DatIA Assist)
   ========================================================================== */
.bk-support-drawer {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.62);
  backdrop-filter: blur(6px);
  z-index: 1080;
  display: none;
  justify-content: flex-end;
}

.bk-support-drawer.is-open {
  display: flex;
}

.bk-support-panel {
  width: min(100%, 410px);
  height: 100%;
  background: #0b1326;
  border-left: 1px solid rgba(16, 185, 129, 0.38);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.75);
}

body.executive-light .bk-support-panel {
  background: #ffffff;
  border-left-color: #cbd5e1;
}

.bk-support-head {
  padding: 0.95rem 1.1rem;
  background: #070d1b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bk-support-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.bk-chat-msg {
  display: flex;
}

.bk-chat-msg-user {
  justify-content: flex-end;
}

.bk-chat-msg-ai {
  justify-content: flex-start;
}

.bk-chat-bubble {
  max-width: 86%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.bk-chat-msg-user .bk-chat-bubble {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border-bottom-right-radius: 0.25rem;
}

.bk-chat-msg-ai .bk-chat-bubble {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  border-bottom-left-radius: 0.25rem;
}

body.executive-light .bk-chat-msg-ai .bk-chat-bubble {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.bk-chat-time {
  font-size: 0.62rem;
  opacity: 0.65;
  margin-top: 0.28rem;
  text-align: right;
}

.bk-support-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bk-chat-tip-btn {
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.bk-chat-tip-btn:hover {
  background: rgba(16, 185, 129, 0.22);
}

.bk-support-foot {
  padding: 0.75rem 0.95rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 13, 27, 0.9);
}

/* Contraste AA/AAA para píldoras secundarias en herramientas */
body:not(.executive-light) .bk-workspace-main .badge.bg-secondary {
  background-color: rgba(30, 41, 59, 0.92) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

body.executive-light .bk-workspace-main .badge.bg-secondary {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
}

.bk-workspace-main .luxury-card-glow-emerald .d-flex.align-items-center.gap-2 {
  flex-wrap: wrap;
}

/* ==========================================================================
   ENCABEZADO NOMINATIVO OFICIAL PARA CERTIFICADOS IMPRESOS / PDF
   ========================================================================== */
.bk-print-identity-banner {
  display: none;
}

@media print {
  .bk-exec-header,
  .bk-sidebar,
  .bk-mobile-backdrop,
  .bk-mobile-bottom-nav,
  .bk-support-drawer,
  .bk-minimal-footer {
    display: none !important;
  }

  .bk-workspace-shell {
    display: block !important;
  }

  .bk-print-identity-banner {
    display: block !important;
    border: 1.5px solid #0f172a;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-family: Arial, Helvetica, sans-serif;
  }
}

/* ==========================================================================
   REFUNDACIÓN TOTAL MODO CLARO EJECUTIVO (WCAG AAA · ALTO CONTRASTE BANCARIO)
   ========================================================================== */
body.executive-light {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.executive-light .bk-workspace-main {
  background: transparent !important;
  color: #0f172a !important;
}

body.executive-light .card,
body.executive-light .card.bg-dark,
body.executive-light .luxury-card,
body.executive-light .modal-content,
body.executive-light .modal-content.bg-dark,
body.executive-light .alert.bg-dark,
body.executive-light div[class*="bg-dark"] {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

body.executive-light .text-white,
body.executive-light .text-light,
body.executive-light h1,
body.executive-light h2,
body.executive-light h3,
body.executive-light h4,
body.executive-light h5,
body.executive-light h6,
body.executive-light .card-title,
body.executive-light .card-header,
body.executive-light strong {
  color: #0f172a !important;
}

body.executive-light .text-secondary,
body.executive-light .text-muted,
body.executive-light p,
body.executive-light span.small {
  color: #334155 !important;
}

body.executive-light .form-control,
body.executive-light .form-select,
body.executive-light .input-group-text,
body.executive-light textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.executive-light .form-control:focus,
body.executive-light .form-select:focus,
body.executive-light textarea:focus {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 0.25rem rgba(2, 132, 199, 0.2) !important;
}

body.executive-light .form-control::placeholder {
  color: #94a3b8 !important;
}

body.executive-light .table,
body.executive-light .table-dark,
body.executive-light .table-responsive table {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

body.executive-light .table th,
body.executive-light .table td,
body.executive-light .table-dark th,
body.executive-light .table-dark td {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

body.executive-light .table-dark thead th {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

body.executive-light .border-secondary,
body.executive-light .border-secondary.border-opacity-25,
body.executive-light .border-secondary.border-opacity-50 {
  border-color: #e2e8f0 !important;
}

body.executive-light .bk-exec-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

body.executive-light .bk-user-dropdown {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

body.executive-light .bk-user-menu-link {
  color: #334155 !important;
}

body.executive-light .bk-user-menu-link:hover {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}

body.executive-light .bk-minimal-footer {
  background: #ffffff !important;
  border-top-color: #e2e8f0 !important;
  color: #64748b !important;
}

body.executive-light .bk-minimal-footer .text-light {
  color: #0f172a !important;
}
