/* ═══════════════════════════════════════════════════════
   BigCapital Herramientas — Dark Theme + Navbar estándar
   Versión: 1.0 · Abril 2026
   ═══════════════════════════════════════════════════════ */

/* ── Variables globales dark — paleta v2 contraste mejorado ── */
:root {
  --bc-bg:     #0a0d13;
  --bc-sf:     #1c2230;
  --bc-sf2:    #2a3140;
  --bc-bd:     #3a4458;
  --bc-tx:     #f0f4fa;
  --bc-tx2:    #d0dbe8;
  --bc-tx3:    #9ba8bc;
  --bc-g:      #7DC242;
  --bc-g2:     #5fa832;
  --bc-rd:     #f87171;
  --bc-pp:     #a78bfa;
  --bc-cy:     #38bdf8;
  --bc-yw:     #fbbf24;
  --bc-nav-h:  60px;
}

/* ── Navbar estándar ── */
.bc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bc-nav-h);
  background: var(--bc-bg);
  border-bottom: 1px solid var(--bc-bd);
  /* Grid 3 columnas: back | logo (centro real) | derecha. Evita que el logo
     centrado se encime con los indicadores/usuario (2026-05-30). */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}

/* Botón ← Herramientas */
.bc-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--bc-tx3);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--bc-bd);
  background: transparent;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.bc-back:hover {
  color: var(--bc-g);
  border-color: var(--bc-g);
  background: rgba(125,194,66,.08);
  transform: translateX(-2px);
}

/* Logo — centrado por la columna central del grid (sin position:absolute) */
.bc-nav__logo {
  justify-self: center;
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  pointer-events: auto;
}
.bc-nav__logo img {
  height: 32px;
  width: auto;
}

/* Separador flexible (legacy, por compatibilidad) */
.bc-nav__sep {
  flex: 1;
}

/* Indicadores UF / USD */
.bc-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bc-ind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--bc-tx2);
  background: var(--bc-sf);
  border: 1px solid var(--bc-bd);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}
.bc-ind .bc-ind-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--bc-g);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Zona derecha: indicadores + nombre broker + cerrar sesión */
.bc-nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: end;
}
.bc-broker-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--bc-tx2);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bc-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--bc-g);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(125,194,66,.3);
  background: rgba(125,194,66,.08);
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.bc-admin-link:hover {
  background: rgba(125,194,66,.18);
  border-color: var(--bc-g);
  color: var(--bc-g);
}
.bc-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--bc-tx3);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--bc-bd);
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.bc-logout-btn:hover {
  color: var(--bc-rd);
  border-color: rgba(248,113,113,.4);
  background: rgba(248,113,113,.06);
}

/* Spacer para compensar el navbar fijo */
.bc-nav-spacer {
  height: var(--bc-nav-h);
}

/* ── Media: ocultar indicadores en móvil pequeño ── */
@media (max-width: 480px) {
  .bc-indicators { display: none; }
  .bc-broker-name { display: none; }
  .bc-nav { padding: 0 12px; }
}
