/* Marca Context - Selector dropdown multi-marca */
.aj-marca-header-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.aj-marca-context { position: relative; display: inline-flex; align-items: center; }
.aj-marca-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  color: inherit; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.aj-marca-btn:hover { background: rgba(255,255,255,0.22); }
.aj-marca-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ccc; flex-shrink: 0; }
.aj-marca-dot.dot-all { background: linear-gradient(135deg, #7F77DD, #1D9E75, #D85A30); }
.aj-marca-caret { font-size: 0.65rem; opacity: 0.7; }

.aj-marca-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 260px;
  background: white; color: #1a1a2e;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  padding: 0.45rem;
  z-index: 1000;
  display: none;
}
.aj-marca-menu.open { display: block; }
.aj-marca-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
}
.aj-marca-item:hover { background: #f5f5f7; }
.aj-marca-item.active { background: #1a1a2e; color: white; }
.aj-marca-item .nombre { font-weight: 500; }
.aj-marca-item .desc { font-size: 0.72rem; opacity: 0.7; margin-top: 0.1rem; }
.aj-marca-item.active .desc { opacity: 0.85; }
.aj-marca-divider { height: 1px; background: #ececf0; margin: 0.35rem 0.2rem; }

/* Badge reutilizable: usar en fichas para mostrar marca del cliente */
.aj-marca-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* === Banner contextual (cuando hay marca activa) === */
.aj-marca-banner {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 2rem;
  background: #fafafc;
  border-left: 4px solid #ccc;
  font-size: 0.86rem;
  color: #444;
}
.aj-marca-banner b { color: #1a1a2e; font-weight: 600; }
.aj-marca-banner .aj-marca-dot { width: 12px; height: 12px; }
.aj-marca-banner-link {
  margin-left: auto;
  color: #1a1a2e;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
  background: none; border: none; padding: 0; font-family: inherit; font-size: inherit;
}
.aj-marca-banner-link:hover { color: #2d2d54; }
