:root {
  --tenant: #1c4b8c;
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.012 250);
  --ink: oklch(0.22 0.03 260);
  --muted: oklch(0.47 0.03 250);
  --primary: var(--tenant);
  --primary-d: color-mix(in oklch, var(--tenant) 82%, #000);
  --accent: oklch(0.62 0.155 52);
  --ok: oklch(0.45 0.1 160);
  --danger: oklch(0.5 0.16 25);
  --wa: oklch(0.48 0.13 155);
  --line: oklch(0.91 0.015 250);
  --r: 16px;
  --e: cubic-bezier(.22, 1, .36, 1);
  --z-sticky: 20;
  --z-bar: 70;
  --z-sheet: 80;
  --font-ui: Karla, "Segoe UI", system-ui, sans-serif;
  --font-display: "Alfa Slab One", Karla, serif;
  --font-product: Sora, "Segoe UI", system-ui, sans-serif;
}

body.carta {
  --font-ui: Karla, "Segoe UI", system-ui, sans-serif;
}

body.product {
  --bg: oklch(0.145 0.045 260);
  --surface: oklch(0.195 0.048 258);
  --ink: oklch(0.96 0.015 250);
  --muted: oklch(0.72 0.04 250);
  --primary: oklch(0.58 0.20 255);
  --primary-d: oklch(0.48 0.18 255);
  --accent: oklch(0.78 0.12 230);
  --ok: oklch(0.78 0.16 155);
  --danger: oklch(0.72 0.16 25);
  --wa: oklch(0.62 0.14 155);
  --line: oklch(0.32 0.04 258);
  --font-ui: var(--font-product);
  --font-display: var(--font-product);
  background:
    radial-gradient(1200px 600px at 10% -10%, oklch(0.32 0.12 255 / 0.35), transparent 55%),
    radial-gradient(900px 500px at 110% 0%, oklch(0.4 0.1 230 / 0.2), transparent 50%),
    var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--primary-d); outline-offset: 2px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* —— Menu brand —— */
.hero {
  color: #fff;
  background: var(--primary);
  text-align: center;
  padding: 36px 20px 72px;
  position: relative;
}
.hero-logo {
  width: 112px; height: 112px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden;
  border: 4px solid #fff;
  background: var(--primary-d);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero .kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.85;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  margin-top: 8px;
}
.hero .pitch { max-width: 28rem; margin: 12px auto 0; font-weight: 500; opacity: 0.92; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px;
}
.hero-meta span {
  border: 1px solid color-mix(in oklch, #fff 40%, transparent);
  padding: 8px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
}

.pasos {
  margin-top: -36px; position: relative; z-index: 2;
}
.pasos-in {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex; padding: 8px;
}
.paso { flex: 1; padding: 16px 18px; }
.paso + .paso { border-left: 1px solid var(--line); }
.paso .n { font-family: var(--font-display); color: var(--primary); font-size: 1.4rem; line-height: 1; }
.paso h3 { font-size: 1rem; margin-top: 4px; }
.paso p { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

.catnav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin-top: 2.4rem;
}
.catnav-in {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 20px;
  max-width: 960px; margin: 0 auto; scrollbar-width: none;
}
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a {
  white-space: nowrap; font-size: 0.88rem; font-weight: 700;
  color: var(--primary-d); background: var(--bg);
  border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px;
}
.catnav a[aria-current="true"], .catnav a:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

.menu { padding: 12px 0 120px; }
.cat { margin-top: 2.4rem; scroll-margin-top: 64px; }
.cat h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.55rem; color: var(--primary-d);
  padding-bottom: 10px; border-bottom: 2px solid var(--line);
}
.items {
  list-style: none; margin-top: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.item {
  background: var(--bg); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  cursor: pointer; transition: transform 180ms var(--e);
}
.item:hover { transform: translateY(-2px); }
.item.open { grid-column: 1 / -1; cursor: default; transform: none; }
.item-cover { aspect-ratio: 4/5; background: var(--surface); overflow: hidden; position: relative; }
.item-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item.open .item-cover { aspect-ratio: auto; height: min(42vh, 340px); }
.item-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item-body h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.2; }
.item-body .desc {
  color: var(--muted); font-size: 0.86rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.precio {
  margin-top: auto; padding-top: 10px;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--primary); font-weight: 400;
}
.item-expand { display: none; border-top: 1px solid var(--line); padding: 14px 16px 16px; }
.item.open .item-expand { display: block; }
.opt-select, .field {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 10px 12px; background: var(--bg);
}
.item-expand .add {
  width: 100%; margin-top: 12px; min-height: 48px; border: 0; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 700;
}

.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  transform: translateY(120%); transition: transform 220ms var(--e);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; pointer-events: none;
}
.cartbar.show { transform: none; }
.cartbar button {
  pointer-events: auto; width: min(520px, 100%);
  min-height: 52px; border: 0; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 800;
  display: flex; align-items: center; gap: 10px; padding: 0 18px;
}
.cartbar .n {
  background: color-mix(in oklch, #fff 25%, transparent);
  border-radius: 999px; min-width: 28px; text-align: center; padding: 2px 8px;
}
.cartbar .t { margin-left: auto; }

.sheet-bg {
  position: fixed; inset: 0; z-index: var(--z-sheet);
  background: oklch(0.2 0.02 160 / 0.45); display: none;
}
.sheet-bg.show { display: block; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-sheet) + 1);
  background: var(--bg); border-radius: 16px 16px 0 0;
  max-height: 88vh; overflow: auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform 240ms var(--e);
}
.sheet.show { transform: none; }
.sheet h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.cart-line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.tipo-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tipo-row button {
  border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px;
  padding: 8px 14px; font-weight: 700;
}
.tipo-row button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.btn {
  min-height: 48px; border: 0; border-radius: 999px; font-weight: 800; padding: 0 18px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }

footer.menu-foot {
  text-align: center; padding: 28px 20px 120px; color: var(--muted); font-size: 0.88rem;
}

/* —— Wizard / panel (product) —— */
.app-shell { min-height: 100vh; background: var(--surface); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.topbar strong { font-size: 1rem; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; padding: 8px 12px; border-radius: 10px; font-weight: 700;
  color: var(--muted); min-height: 44px;
}
.tabs button.on { background: var(--surface); color: var(--ink); }
.panel { max-width: 980px; margin: 0 auto; padding: 20px 18px 48px; }
.panel.wide { max-width: 1180px; padding: 12px 16px 28px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.folio { font-weight: 800; font-size: 1.15rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  margin-bottom: 14px;
}
.card h2 { font-size: 1.15rem; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 0.82rem; font-weight: 700; margin: 10px 0 4px; }
.pedido {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: var(--bg);
}
.pedido header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.chip {
  display: inline-block; font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  background: var(--surface); color: var(--primary-d);
}
.chip.nuevo { background: oklch(0.93 0.06 52); color: oklch(0.38 0.12 52); }
.chip.cocina { background: oklch(0.93 0.04 160); color: var(--primary-d); }
.chip.listo { background: oklch(0.93 0.05 145); color: oklch(0.32 0.1 145); }
.chip.envio { background: oklch(0.93 0.08 52); color: oklch(0.38 0.12 52); }
.pedido.envio { border-color: var(--accent); }
.pedido-envio {
  font-size: 0.9rem; font-weight: 600; margin: 6px 0 8px;
  padding: 8px 10px; background: oklch(0.97 0.03 52); color: oklch(0.28 0.08 52); border-radius: 10px;
}
.caja-envio-flag {
  display: inline-block; font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: oklch(0.38 0.12 52); background: oklch(0.93 0.08 52);
  padding: 6px 10px; border-radius: 999px; margin: 0 0 10px;
}
.pedido.fresh { box-shadow: 0 0 0 2px var(--accent); }
.cocina-viva {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.cocina-viva h2 { margin-bottom: 4px; }
.cocina-viva p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.sonido-toggle {
  display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0; white-space: nowrap;
}
.sonido-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }
.cocina-viva-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.caja {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 16px;
  align-items: start;
}
.caja-menu { min-width: 0; }
.caja-cats { margin: 10px 0 12px; }
.caja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}
.caja-plato {
  min-height: 76px;
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  transition: border-color 160ms var(--e), background 160ms var(--e);
}
.caja-plato:hover, .caja-plato:focus-visible { border-color: var(--primary); }
.caja-plato.has { border-color: var(--primary); background: var(--surface); }
.caja-plato.pick { border-color: var(--accent); }
.caja-plato-n { font-weight: 800; font-size: 0.95rem; line-height: 1.2; }
.caja-plato-p { color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.caja-extras {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 12px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
}
.caja-extras p { width: 100%; font-weight: 700; font-size: 0.88rem; margin: 0; }
.caja-extras button {
  min-height: 44px; border: 1.5px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 0 14px; font-weight: 700;
}
.caja-extras button:hover { border-color: var(--primary); }
.caja-extra-cancel { color: var(--muted); }
.caja-ticket {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  position: sticky;
  top: 12px;
}
.caja-ticket h2 { font-size: 1.05rem; margin-bottom: 8px; }
.caja-lines { min-height: 72px; }
.caja-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.caja-line strong { display: block; font-size: 0.95rem; }
.caja-line span { color: var(--muted); font-size: 0.82rem; }
.caja-line em { font-style: normal; font-weight: 800; }
.caja-step {
  display: flex; align-items: center; gap: 4px;
}
.caja-step button {
  width: 44px; height: 44px; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 800;
}
.caja-step b { min-width: 1.2em; text-align: center; }
.caja-tot { font-weight: 800; margin: 12px 0 4px; font-size: 1.1rem; }
.caja-ticket .btn { width: 100%; margin-top: 10px; }
.caja-ticket .sonido-toggle { margin: 12px 0 4px; }
.caja-empty { color: var(--muted); font-size: 0.92rem; padding: 8px 0; }
.row-btns button { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 12px; font-weight: 700; }
.chip.camino { background: oklch(0.93 0.05 250); color: oklch(0.32 0.1 250); }
.pedido-hist { color: var(--muted); font-size: 0.82rem; margin: 4px 0 8px; }
.local-list { display: grid; gap: 12px; margin-bottom: 16px; }
.local-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px;
}
.local-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.local-card h2 { font-size: 1.15rem; margin: 0 0 4px; }
.local-card header p { color: var(--muted); margin: 0; font-size: 0.9rem; }
.local-meta { color: var(--muted); font-size: 0.88rem; margin: 10px 0 14px; }
.pin-box {
  background: var(--surface); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.pin-k { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pin-digits {
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.35rem;
  letter-spacing: 0.18em; min-width: 4.5rem;
}
.pin-empty { color: var(--muted); font-size: 0.88rem; }
.pin-set { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.pin-set .field { max-width: 8rem; margin: 0; }
.local-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lic-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.price {
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
}
.price .monto { font-family: var(--font-display); font-size: 2rem; color: var(--primary); }
.warn {
  background: oklch(0.96 0.05 52); color: oklch(0.35 0.1 52);
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600;
}
.okmsg { color: var(--ok); font-weight: 700; margin-top: 8px; }
.err { color: var(--danger); font-weight: 700; margin-top: 8px; }
.mesa-banner {
  background: var(--accent); color: #fff; text-align: center; padding: 10px; font-weight: 800;
}

.wizard { max-width: 440px; margin: 0 auto; padding: 40px 20px 64px; }
.wizard .brand-lockup { margin-bottom: 28px; }
.wizard h1 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; }
.wizard .step { color: var(--muted); font-weight: 700; margin: 8px 0 20px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line); cursor: pointer;
}
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.qr-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; text-align: center; }
.qr-page img { width: 260px; height: 260px; margin: 18px auto; }
.login-box { max-width: 360px; margin: 80px auto; padding: 24px; }
.grid-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.grid-table th {
  text-align: left; font-size: 0.75rem; font-weight: 800; color: var(--muted);
  padding: 8px 6px; border-bottom: 1px solid var(--line);
}
.grid-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid-table code { font-size: 0.85rem; }

@media (max-width: 840px) {
  .caja { grid-template-columns: 1fr; }
  .caja-ticket { position: sticky; bottom: 0; top: auto; z-index: var(--z-sticky); box-shadow: 0 -4px 8px oklch(0.22 0.028 160 / 0.08); }
}
@media (max-width: 720px) {
  .pasos-in { flex-direction: column; }
  .paso + .paso { border-left: 0; border-top: 1px solid var(--line); }
  .grid-2, .lic-box { grid-template-columns: 1fr; }
  .cocina-viva { flex-direction: column; }
}
@media (max-width: 380px) {
  .items { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* —— PuntoLocal product identity —— */
.brand-lockup {
  display: flex; align-items: center; gap: 12px;
}
.brand-mark {
  width: 44px; height: 44px; flex: none; display: block;
  filter: drop-shadow(0 6px 12px oklch(0.4 0.18 255 / 0.35));
}
.brand-mark.sm { width: 32px; height: 32px; filter: drop-shadow(0 4px 8px oklch(0.4 0.18 255 / 0.28)); }
.wordmark {
  font-family: var(--font-product);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}
.wordmark span { color: var(--accent); }
.brand-kicker {
  margin: 4px 0 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.splash {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  position: relative;
  overflow: hidden;
}
.splash::before {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 42%;
  background:
    radial-gradient(circle at 18% 70%, oklch(0.6 0.18 255 / 0.35) 0 4px, transparent 5px),
    radial-gradient(circle at 40% 40%, oklch(0.7 0.12 230 / 0.4) 0 3px, transparent 4px),
    radial-gradient(circle at 72% 55%, oklch(0.62 0.16 255 / 0.45) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 30%, oklch(0.75 0.1 230 / 0.3) 0 3px, transparent 4px);
  mask-image: linear-gradient(transparent, #000 40%);
  pointer-events: none;
}
.splash-card {
  position: relative;
  width: min(400px, 100%);
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px 24px;
  backdrop-filter: blur(12px);
}
.splash-card .brand-lockup { margin-bottom: 22px; }
.splash-card h2 { font-size: 1.35rem; margin: 0 0 8px; }

body.product .app-shell { background: transparent; }
body.product .topbar {
  background: color-mix(in oklch, var(--surface) 80%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}
body.product .tabs button.on { background: var(--primary); color: #fff; }
body.product .card,
body.product .local-card,
body.product .pedido,
body.product .caja-ticket,
body.product .caja-plato {
  background: var(--surface);
  border-color: var(--line);
}
body.product .field,
body.product .opt-select {
  background: oklch(0.12 0.04 260);
  border-color: var(--line);
  color: var(--ink);
}
body.product .btn-primary {
  background: linear-gradient(135deg, oklch(0.52 0.2 255), oklch(0.7 0.14 230));
  box-shadow: 0 8px 22px oklch(0.45 0.18 255 / 0.32);
}
body.product .btn-ghost {
  background: oklch(0.24 0.04 258);
  color: var(--ink);
}
body.product .chip { background: oklch(0.26 0.04 258); color: var(--accent); }
body.product .chip.nuevo { background: oklch(0.32 0.08 52); color: oklch(0.9 0.08 70); }
body.product .chip.cocina { background: oklch(0.3 0.08 255); color: oklch(0.86 0.08 250); }
body.product .chip.listo { background: oklch(0.3 0.08 155); color: oklch(0.88 0.1 155); }
body.product .chip.camino { background: oklch(0.3 0.08 250); color: oklch(0.88 0.08 250); }
body.product .chip.envio { background: oklch(0.32 0.08 52); color: oklch(0.92 0.06 70); }
body.product .pedido-envio {
  background: oklch(0.24 0.05 52);
  color: oklch(0.93 0.05 70);
  border: 1px solid oklch(0.38 0.08 52);
}
body.product .caja-envio-flag {
  background: oklch(0.28 0.08 52);
  color: oklch(0.92 0.06 70);
}
body.product .warn {
  background: oklch(0.28 0.06 52);
  color: oklch(0.9 0.08 70);
}
body.product .price {
  background: var(--surface);
  border-color: var(--line);
}
body.product .price .monto {
  font-family: var(--font-product);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.product .price p { color: var(--muted); margin-top: 4px; font-size: 0.82rem; font-weight: 600; }
body.product .pin-box { background: oklch(0.16 0.04 260); }
body.product .wizard h1 { font-family: var(--font-product); font-weight: 700; letter-spacing: -0.03em; }
body.product .login-box { margin: 0; max-width: none; background: transparent; border: 0; padding: 0; }
body.product .swatch { border-color: var(--surface); }

.hq-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.hq-nav {
  padding: 22px 16px 18px;
  border-right: 1px solid var(--line);
  background: color-mix(in oklch, var(--surface) 70%, transparent);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.hq-nav .brand-lockup { padding: 0 8px; }
.hq-nav nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hq-nav nav button {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 44px;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 600;
}
.hq-nav nav button.on {
  background: linear-gradient(135deg, oklch(0.52 0.2 255), oklch(0.62 0.14 240));
  color: #fff;
}
.hq-main {
  padding: 28px 28px 48px;
  position: relative;
  min-width: 0;
}
.hq-main::before {
  content: "";
  position: absolute;
  right: 6%;
  top: 8%;
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  background: url("/logo.svg") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.hq-main .lic-box { position: relative; margin-bottom: 22px; }
.topbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.menu-foot .wordmark { font-size: 0.95rem; display: inline; }
.menu-foot .wordmark span { color: oklch(0.58 0.20 255); }

@media (max-width: 840px) {
  .hq-shell { grid-template-columns: 1fr; }
  .hq-nav {
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 14px 10px;
  }
  .hq-nav nav { flex-direction: row; flex-wrap: wrap; }
  .hq-main { padding: 18px 16px 40px; }
}
