/* Selector compañía / sucursal (navbar) — más legible */
.org-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  max-width: 14rem;
  padding: 0.28rem 0.55rem 0.28rem 0.35rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(132, 90, 223, 0.28);
  background: linear-gradient(135deg, rgba(132, 90, 223, 0.14), rgba(37, 99, 235, 0.08));
  color: #1e1b4b;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

html.dark .org-switch__btn {
  border-color: rgba(196, 181, 253, 0.35);
  background: linear-gradient(135deg, rgba(132, 90, 223, 0.32), rgba(37, 99, 235, 0.18));
  color: #f8fafc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.org-switch__btn:hover,
.org-switch.is-open .org-switch__btn {
  border-color: rgba(132, 90, 223, 0.7);
  background: linear-gradient(135deg, rgba(132, 90, 223, 0.22), rgba(37, 99, 235, 0.14));
  box-shadow: 0 0 0 3px rgba(132, 90, 223, 0.18);
}

html.dark .org-switch__btn:hover,
html.dark .org-switch.is-open .org-switch__btn {
  background: linear-gradient(135deg, rgba(132, 90, 223, 0.45), rgba(37, 99, 235, 0.28));
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.22);
}

.org-switch__btn--branch {
  max-width: 11rem;
  border-color: rgba(14, 116, 144, 0.3);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(13, 148, 136, 0.08));
}

html.dark .org-switch__btn--branch {
  border-color: rgba(94, 234, 212, 0.3);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.35), rgba(13, 148, 136, 0.2));
}

.org-switch__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  background: rgba(132, 90, 223, 0.2);
  color: #6d28d9;
  flex-shrink: 0;
  font-size: 0.95rem;
}

html.dark .org-switch__icon {
  background: rgba(255, 255, 255, 0.12);
  color: #ddd6fe;
}

.org-switch__btn--branch .org-switch__icon {
  background: rgba(14, 116, 144, 0.18);
  color: #0e7490;
}

html.dark .org-switch__btn--branch .org-switch__icon {
  background: rgba(255, 255, 255, 0.12);
  color: #99f6e4;
}

.org-switch__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
}

.org-switch__eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(91, 33, 182, 0.75);
  line-height: 1;
}

html.dark .org-switch__eyebrow {
  color: rgba(221, 214, 254, 0.85);
}

.org-switch__btn--branch .org-switch__eyebrow {
  color: rgba(14, 116, 144, 0.85);
}

html.dark .org-switch__btn--branch .org-switch__eyebrow {
  color: rgba(153, 246, 228, 0.85);
}

.org-switch__btn-text {
  min-width: 0;
  max-width: 10rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: inherit;
}

.org-switch__btn--branch .org-switch__btn-text {
  max-width: 7.5rem;
}

.org-switch__caret {
  flex-shrink: 0;
  font-size: 0.95rem;
  opacity: 0.7;
}

.org-switch__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 80;
  width: min(20rem, calc(100vw - 2rem));
  max-height: min(22rem, 70vh);
  display: none;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.org-switch.is-open .org-switch__menu {
  display: flex;
}

html.dark .org-switch__menu {
  border-color: rgba(196, 181, 253, 0.28);
  background: #161822;
  color: #f8fafc;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.org-switch__search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(132, 90, 223, 0.05);
  flex-shrink: 0;
}

html.dark .org-switch__search {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(132, 90, 223, 0.12);
}

.org-switch__search i {
  color: rgba(91, 33, 182, 0.7);
  font-size: 1rem;
}

html.dark .org-switch__search i {
  color: rgba(221, 214, 254, 0.85);
}

.org-switch__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f172a;
}

html.dark .org-switch__search input {
  color: #f8fafc;
}

.org-switch__search input::placeholder {
  color: rgba(15, 23, 42, 0.4);
}

html.dark .org-switch__search input::placeholder {
  color: rgba(226, 232, 240, 0.5);
}

.org-switch__list {
  overflow-y: auto;
  padding: 0.4rem;
  flex: 1;
}

.org-switch__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  background: transparent;
  cursor: pointer;
}

html.dark .org-switch__item {
  color: #f1f5f9;
}

.org-switch__item:hover {
  background: rgba(132, 90, 223, 0.14);
}

.org-switch__item.is-active {
  background: rgba(132, 90, 223, 0.2);
  color: #5b21b6;
  font-weight: 700;
}

html.dark .org-switch__item.is-active {
  color: #ede9fe;
  background: rgba(132, 90, 223, 0.38);
}

.org-switch__item.is-filtered-out {
  display: none;
}

.org-switch__code {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.6;
}

.org-switch__empty {
  margin: 0;
  padding: 0.85rem;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(15, 23, 42, 0.45);
}

html.dark .org-switch__empty {
  color: rgba(226, 232, 240, 0.55);
}

/* Accesos de barra (asistente / tema / dock) */
.nav-access-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.45rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.8);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

html.dark .nav-access-btn {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.9);
}

.nav-access-btn:hover {
  border-color: rgba(132, 90, 223, 0.45);
  background: rgba(132, 90, 223, 0.12);
  color: #5b21b6;
}

html.dark .nav-access-btn:hover {
  background: rgba(132, 90, 223, 0.28);
  color: #ede9fe;
}

.nav-access-btn--kairo {
  min-width: auto;
  padding-right: 0.65rem;
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.16));
  color: #1e3a8a;
  font-weight: 700;
  font-size: 0.72rem;
}

html.dark .nav-access-btn--kairo {
  border-color: rgba(147, 197, 253, 0.4);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(124, 58, 237, 0.35));
  color: #eff6ff;
}

.nav-access-btn__logo {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  border-radius: 9999px;
  background: #000;
  padding: 0.1rem;
}

.nav-access-btn__text {
  letter-spacing: 0.01em;
}
