/* Cabecera idéntica en páginas comerciales (excepto Inicio). */
body.nx-unified-header{--nx-global-height:62px}
body.nx-unified-header>.nx-global-header{height:var(--nx-global-height);min-height:var(--nx-global-height);width:100%;position:relative;z-index:600;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:clamp(14px,2vw,32px);align-items:center;background:#fff;border-bottom:1px solid #e6e1f2;padding:0 clamp(12px,1.6vw,28px);font-family:Inter,"Segoe UI",system-ui,sans-serif;box-sizing:border-box}
.nx-global-header *{box-sizing:border-box}
.nx-global-brand{display:flex;align-items:center;gap:10px;white-space:nowrap;color:#211c3b!important;text-decoration:none!important;font-weight:800!important;font-size:18px!important}
.nx-global-brand b{font-weight:550}
.nx-global-mark,.nx-global-mark svg{display:block;width:37px;height:37px}
.nx-global-nav{display:flex;justify-content:space-between;align-items:center;gap:clamp(4px,.75vw,14px);min-width:0}
.nx-global-nav a{display:flex;justify-content:center;align-items:center;text-align:center;white-space:nowrap;min-height:40px;padding:7px clamp(5px,.7vw,13px);font-size:clamp(11px,.78vw,14px);font-weight:750!important;color:#29213c!important;text-decoration:none!important;border-radius:999px;background:transparent}
.nx-global-nav a:hover{background:#f1edff}
.nx-global-nav a.is-current{background:#eee5ff;color:#613cb5!important;border:1px solid #d6c4ff}
.nx-global-menu{display:none;border:1px solid #ddd0f4;border-radius:10px;background:#f5f0ff;color:#392363;padding:8px 11px;font-size:13px;font-weight:800}
body.nx-unified-header>.nx-checkout-header,body.nx-unified-header>header.top{display:none!important}
body.nx-unified-header .nx-compact-agenda{height:calc(100dvh - var(--nx-global-height))!important}
body.nx-unified-header main.nx-checkout-main{height:calc(100dvh - var(--nx-global-height))!important}
body.nx-unified-header .page{padding-top:12px}
body.nx-unified-header .demo-stage{top:var(--nx-global-height)!important;height:calc(100dvh - var(--nx-global-height))!important}
@media(max-width:1180px){
 body.nx-unified-header>.nx-global-header{grid-template-columns:max-content 1fr max-content}
 .nx-global-menu{display:block}
 .nx-global-nav{display:none;position:absolute;top:100%;left:10px;right:10px;padding:10px;background:white;border:1px solid #e4dcf2;border-radius:0 0 14px 14px;box-shadow:0 15px 30px #30204720;flex-direction:column;align-items:stretch;z-index:601}
 .nx-global-nav.nx-open{display:flex}
 .nx-global-nav a{justify-content:flex-start}
}
@media(max-width:600px){body.nx-unified-header{--nx-global-height:54px}.nx-global-brand{font-size:15px!important}.nx-global-mark,.nx-global-mark svg{width:30px;height:30px}}
@media print{body.nx-unified-header>.nx-global-header{display:none!important}}

/* Match Planes: centered navigation on the true viewport center, brand stays pinned left. */
@media(min-width:1181px){
 body.nx-unified-header>.nx-global-header{display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important}
 .nx-global-header>.nx-global-brand{position:absolute!important;left:clamp(12px,1.6vw,28px)!important;top:50%;transform:translateY(-50%)!important}
 .nx-global-header>.nx-global-nav{justify-content:center!important;gap:clamp(5px,1vw,18px)!important;width:auto!important;max-width:calc(100% - 280px)!important}
 .nx-global-header .nx-global-nav a{font-size:clamp(11px,.78vw,14px)!important}
}

/* NEXTCRM · 02/12/2026
   Menú comercial flotante igual en Planes, Agenda, Carrito y Acceso Demo:
   la barra NO lleva rectángulo de fondo. El panel desplegable móvil sí
   conserva un fondo por legibilidad y accesibilidad.
   No se aplica al encabezado operativo interno de Pizzería. */
body.nx-unified-header {
  box-sizing:border-box!important;
  padding-top:var(--nx-global-height)!important;
}
body.nx-unified-header > header.nx-global-header {
  position:fixed!important;
  top:0!important;left:0!important;right:0!important;
  z-index:1500!important;
  box-sizing:border-box!important;
  background:transparent!important;
  background-color:transparent!important;
  border:0!important;border-bottom:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  filter:none!important;
}
body.nx-unified-header > header.nx-global-header .nx-global-brand,
body.nx-unified-header > header.nx-global-header .nx-global-nav {
  background:transparent!important;
}
body.nx-unified-header > header.nx-global-header .nx-global-brand,
body.nx-unified-header > header.nx-global-header .nx-global-nav > a {
  color:#231a40!important;
  text-shadow:0 1px 5px rgba(255,255,255,.85)!important;
}
body.nx-unified-header > header.nx-global-header .nx-global-nav > a.is-current {
  color:#5e37b6!important;
  text-shadow:none!important;
  background:rgba(235,227,255,.75)!important;
}
@media(max-width:1180px){
  body.nx-unified-header > header.nx-global-header .nx-global-menu {
    border:1px solid #d4c4ef!important;
    background:rgba(255,255,255,.82)!important;
  }
  body.nx-unified-header > header.nx-global-header .nx-global-nav.nx-open {
    background:#fff!important;
    border:1px solid #dcd4ed!important;
    box-shadow:0 15px 35px #21143c25!important;
  }
}
@media print{
  body.nx-unified-header{padding-top:0!important}
}
