/* ═══════════════════════════════════════
   HEADER COMPARTIDO — Radar3Min
   Usado por index.html y radar_3_min_dashboard.html
   ═══════════════════════════════════════ */

/* ── PRODUCTO ── */
.accent { color: var(--red); }

/* ── BRAND ── */
.brand-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--sage-dark);
}

.brand-bracket { color: var(--red);       font-weight: 700; }
.brand-letter  { color: var(--sage-dark); font-weight: 600; }
.brand-ous     { color: var(--sage-dark); font-weight: 700; }

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 2px;
  font-weight: 500;
  color: var(--sage-dark);
}

/* variante sobre fondo oscuro */
.brand-light .brand-name   { color: white; }
.brand-light .brand-letter { color: white; }
.brand-light .brand-ous    { color: white; }
.brand-light .brand-sub    { color: rgba(255,255,255,0.6); }

/* ── HEADER ── */
header {
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 56px;
}

/* ── NAV (landing) ── */
nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a:not(.nav-cta) {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}

nav a:not(.nav-cta):hover {
  color: var(--ink);
  background: var(--cream2);
}

.nav-cta {
  background: var(--sage-dark);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s;
}

.nav-cta:hover { background: var(--sage); }

/* ── TOPBAR DASHBOARD ── */
.topbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.topbar-center svg { color: var(--sage-mid); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-link {
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s;
  text-decoration: none;
}

.back-link:hover { color: var(--ink); }

.btn-export {
  background: var(--sage-dark);
  color: white;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}

.btn-export:hover { background: var(--sage); }
