/* ════ TOPBAR ════ */
.topbar { background: var(--brand-dark); padding: 7px 24px; font-family: var(--font-d); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.9); border-bottom: 1px solid var(--brand); }

/* ════ HEADER ════ */
.header { background: var(--dark); padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--brand); transition: border-color .2s; }
.header-logo { display: flex; flex-direction: column; align-items: flex-start; }
.header-logo-img { height: 54px; width: auto; display: block; border-radius: var(--radius-xs); }
.header-badge { height: 30px; width: auto; display: block; flex-shrink: 0; }
.header-right { display: flex; align-items: center; gap: 16px; }
#logout-btn { display: none; background: none; border: 1px solid var(--border2); color: var(--muted); padding: 6px 14px; border-radius: var(--radius-xs); cursor: pointer; font-family: var(--font-b); font-size: 13px; transition: all .2s; }
#logout-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ════ TEMA POR TIER (Fase U4) — badge + detalle del header ════
   El badge ya viene coloreado en el propio PNG (badge-inicial.png /
   badge-profesional.png, ver auth.js), acá solo queda el borde inferior
   en ámbar service para PROFESIONAL. */
body.tier-profesional .header { border-bottom-color: var(--amber); }

/* ════ AVISO DE LICENCIA POR VENCER ════ */
.license-banner { display: none; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; background: var(--si-ambar); color: var(--amber-text); padding: 9px 40px 9px 16px; font-family: var(--font-b); font-size: 13px; line-height: 1.4; text-align: center; position: relative; }
.license-banner.show { display: flex; }
.license-banner a { color: var(--amber-text); font-weight: 700; text-decoration: underline; white-space: nowrap; }
.license-banner-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--amber-text); opacity: .65; padding: 4px 8px; }
.license-banner-close:hover { opacity: 1; }

@media (max-width: 700px) {
  .header { padding: 10px 14px; gap: 10px; }
  .header-logo-img { height: 38px; }
  .header-badge { height: 22px; }
  .header-right { gap: 8px; }
  #logout-btn { font-size: 11px; padding: 4px 9px; }
  .topbar { font-size: 9px; letter-spacing: 1px; padding: 6px 14px; line-height: 1.4; }
  .license-banner { font-size: 12px; padding: 8px 36px 8px 12px; }
}
