/* ================================================================
   IRIDUM — NAVBAR
   Estilo Palantir: separado, redondeado, glasmorphism mate
   ================================================================ */

.sx-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  font-family: 'Open Sans', -apple-system, sans-serif;
  pointer-events: none;
  /* Sin padding ni height: el espacio visual lo da el margin del inner */
}

.sx-navbar__inner {
  pointer-events: auto;
  margin: 18px 18px;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(8,8,12,0.62); /* obsidiana translúcida — vibrancy Mac */
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Logo: uppercase + tracking ancho — ADN Palantir */
.sx-navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.98);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  padding-right: 32px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.sx-navbar__logo:hover {
  color: rgba(255,255,255,1);
}

/* Links */
.sx-navbar__links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  gap: 8px;
}

.sx-navbar__links a,
.sx-navbar__links li a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 4px;
  transition: color 0.12s ease, background 0.12s ease;
  display: block;
}

.sx-navbar__links a:hover,
.sx-navbar__links li a:hover {
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.08);
}

.sx-navbar__links ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.sx-navbar__links li {
  position: static;
}

.sx-navbar__links .sub-menu {
  display: none;
}

.sx-navbar__spacer {
  flex: 1;
  min-width: 16px;
}

.iridum-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 4px 11px 4px 5px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
}
.iridum-theme-toggle:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.95);
  box-shadow: none;
}
.iridum-theme-toggle__track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #050507;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
}
.iridum-theme-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #eff9ff;
  box-shadow: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.iridum-theme-toggle[aria-checked="true"] .iridum-theme-toggle__track {
  background: #e7edf4;
  border-color: rgba(15,23,32,0.18);
}
.iridum-theme-toggle[aria-checked="true"] .iridum-theme-toggle__knob {
  transform: translateX(20px);
  background: #0e0e13;
}
.iridum-theme-toggle--mobile {
  width: 100%;
  justify-content: center;
  margin-bottom: 8px;
}

html.iridum-theme-light .sx-navbar__inner,
body.iridum-theme-light .sx-navbar__inner {
  background: rgba(218,226,235,0.92);
  border-color: rgba(15,23,32,0.12);
  box-shadow: none;
}
html.iridum-theme-light .sx-navbar__logo,
body.iridum-theme-light .sx-navbar__logo {
  color: #101820;
  border-right-color: rgba(15,23,32,0.16);
}
html.iridum-theme-light .sx-navbar__btn,
html.iridum-theme-light .iridum-theme-toggle,
body.iridum-theme-light .sx-navbar__btn,
body.iridum-theme-light .iridum-theme-toggle {
  background: rgba(243,246,250,0.68);
  border-color: rgba(15,23,32,0.14);
  color: rgba(16,24,32,0.74);
  box-shadow: none;
}
html.iridum-theme-light .sx-navbar__btn:hover,
html.iridum-theme-light .iridum-theme-toggle:hover,
body.iridum-theme-light .sx-navbar__btn:hover,
body.iridum-theme-light .iridum-theme-toggle:hover {
  background: rgba(255,255,255,0.54);
  color: #101820;
  box-shadow: none;
}
html.iridum-theme-light .sx-navbar__btn--primary,
body.iridum-theme-light .sx-navbar__btn--primary {
  background: #f8fafc;
  border-color: rgba(15,23,32,0.16);
  color: #101820;
}
html.iridum-theme-light .sx-navbar__mobile,
body.iridum-theme-light .sx-navbar__mobile {
  background: rgba(218,226,235,0.96);
  border-color: rgba(15,23,32,0.12);
}
html.iridum-theme-light .sx-navbar__mobile a,
body.iridum-theme-light .sx-navbar__mobile a {
  color: rgba(16,24,32,0.74);
}
html.iridum-theme-light .sx-navbar__toggle,
body.iridum-theme-light .sx-navbar__toggle {
  background: rgba(243,246,250,0.72);
  border-color: rgba(15,23,32,0.14);
}
html.iridum-theme-light .sx-navbar__toggle span,
body.iridum-theme-light .sx-navbar__toggle span {
  background: rgba(16,24,32,0.66);
}

/* Acciones */
.sx-navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sx-navbar__btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 20px;
  height: 34px;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}

.sx-navbar__btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.40);
  color: rgba(255,255,255,1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sx-navbar__btn--primary {
  background: #eff9ff;
  color: #0f141a;
  border-color: #eff9ff;
}

.sx-navbar__btn--primary:hover {
  background: #c8eeff;
  border-color: #c8eeff;
  color: #0f141a;
}

/* Toggle mobile */
.sx-navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.sx-navbar__toggle:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sx-navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.55);
  transition: all 0.18s ease;
}

.sx-navbar__toggle:hover span {
  background: rgba(255,255,255,0.85);
}

.sx-navbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sx-navbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.sx-navbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu */
.sx-navbar__mobile {
  background: rgba(8,8,11,0.78); /* obsidiana translúcida — vibrancy Mac */
  border: 1px solid rgba(255,255,255,0.10);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 16px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  margin: 0 16px 12px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}

.sx-navbar__mobile[hidden] {
  display: none;
}

.sx-navbar__mobile a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}

.sx-navbar__mobile a:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}

.sx-navbar__mobile .sx-navbar__btn--primary {
  display: inline-flex;
  margin-top: 8px;
  background: #eff9ff;
  color: #0f141a;
  border: none;
}

@media (max-width: 768px) {
  .sx-navbar__links, .sx-navbar__actions { display: none; }
  .sx-navbar__toggle { display: flex; }
}
