/* ============================================================================
   NEXO BARBER — COMPONENTES  (modo demo)
   Depende de tokens.css. Ninguna propiedad de color se escribe literal:
   todo sale de los tokens, para que los 5 temas × 2 modos funcionen igual.
   ========================================================================= */

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background-color: var(--bg);
  color-scheme: light dark;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-400);
  line-height: var(--lh-base);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
body.is-locked { overflow: hidden; }

h1, h2, .display {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-bold);
  margin: 0;
  text-wrap: balance;
}
[data-nx-theme="neo"] h1,
[data-nx-theme="neo"] h2,
[data-nx-theme="neo"] .display { text-transform: uppercase; }

p { margin: 0; }
img { max-width: 100%; display: block; }

.tnum, time, .price, .countdown {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.countdown { font-family: var(--font-num); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgb(var(--surface-rgb) / .9);
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button, a[role="button"], .tap { min-height: var(--tap); }
.icon-btn { position: relative; display: grid; place-items: center; min-width: var(--tap); }
.icon-btn::after { content: ""; position: absolute; inset: -8px; }

.glass { background: var(--glass-bg); border: 1px solid var(--glass-border); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat));
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.is-theming, .is-theming *, .is-theming *::before, .is-theming *::after {
  transition: background-color 180ms var(--ease-inout),
              color 180ms var(--ease-inout),
              border-color 180ms var(--ease-inout),
              fill 180ms var(--ease-inout) !important;
}

/* ---------- SHELL ---------- */
.app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
}
@media (min-width: 560px) {
  body { background: var(--bg-2); }
  .app { box-shadow: var(--sh-3); }
}

.hdr-legacy { display: none; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hdr {
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat));
  }
}
.hdr .mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-on);
  display: grid; place-items: center;
  font-weight: var(--fw-bold); font-size: var(--fs-400);
  border: var(--bw) solid var(--border-strong);
}
[data-nx-theme="neo"] .hdr .mark,
[data-nx-theme="alto"] .hdr .mark { border-color: var(--border-strong); }
.hdr .who { flex: 1; min-width: 0; }
.hdr .name {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-500); line-height: 1.1;
  letter-spacing: var(--ls-display);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[data-nx-theme="neo"] .hdr .name { text-transform: uppercase; }
.hdr .sub {
  font-size: var(--fs-200); color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hdr .act {
  width: 40px; height: 40px; min-height: 40px; min-width: 40px;
  border-radius: var(--r-control);
  border: var(--bw) solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  display: grid; place-items: center;
}
.hdr .act:hover { border-color: var(--border-strong); }
.hdr .act svg { width: 19px; height: 19px; }

main { flex: 1; padding: var(--sp-5) var(--gutter) var(--sp-12); }

/* ---------- STEPPER ---------- */
.stepper[hidden] { display: none; }
.stepper {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 0 var(--gutter) var(--sp-4);
}
.stepper .seg {
  flex: 1; height: 3px; border-radius: var(--r-pill);
  background: var(--surface-2);
  border: var(--bw) solid transparent;
  overflow: hidden;
}
[data-nx-theme="alto"] .stepper .seg,
[data-nx-theme="neo"] .stepper .seg { border-color: var(--border); height: 6px; }
.stepper .seg i {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  transition: width var(--dur-4) var(--ease-out);
}
.stepper .seg.done i { width: 100%; }
.stepper .seg.now i { width: 100%; }

.step-head { margin-bottom: var(--sp-5); }
.step-kicker {
  font-size: var(--fs-100); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--sp-2);
}
.step-title { font-size: var(--fs-700); }
.step-note { font-size: var(--fs-300); color: var(--text-2); margin-top: var(--sp-2); }

/* transición entre pasos */
.view { animation: stepIn var(--dur-3) var(--ease-out); }
@keyframes stepIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ---------- LISTAS SELECCIONABLES ---------- */
.opts { display: grid; gap: var(--sp-3); }

.opt {
  display: flex; align-items: center; gap: var(--sp-4);
  width: 100%; text-align: left;
  padding: var(--sp-4);
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-1);
  transition: transform var(--dur-1) var(--ease-out),
              border-color var(--dur-1), box-shadow var(--dur-1);
}
.opt:hover { border-color: var(--border-strong); }
.opt:active { transform: scale(.985); }
.opt[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: var(--sh-accent);
  background: var(--surface-2);
}
.opt .ic {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: var(--r-image);
  background: var(--surface-sunken);
  border: var(--bw) solid var(--border);
  display: grid; place-items: center;
  font-size: 20px;
}
.opt .av {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: var(--r-pill);
  background: var(--accent-soft2);
  border: var(--bw) solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold); font-size: var(--fs-500);
  color: var(--accent-text);
}
[data-nx-theme="neo"] .opt .av { border-radius: var(--r-xs); }
.opt .txt { flex: 1; min-width: 0; }
.opt .t1, .opt .t2 { display: block; }
.opt .t1 { font-weight: var(--fw-semibold); font-size: var(--fs-400); }
.opt .t2 { font-size: var(--fs-200); color: var(--text-2); margin-top: 1px; }
.opt .pr {
  font-weight: var(--fw-semibold); font-size: var(--fs-400);
  color: var(--text); white-space: nowrap;
}
.opt .chk {
  width: 22px; height: 22px; flex: 0 0 auto;
  border-radius: var(--r-pill);
  border: 2px solid var(--border-strong);
  display: grid; place-items: center;
}
[data-nx-theme="neo"] .opt .chk { border-radius: var(--r-xs); }
.opt[aria-pressed="true"] .chk { background: var(--accent); border-color: var(--accent); }
.opt .chk svg { width: 13px; height: 13px; opacity: 0; color: var(--accent-on); }
.opt[aria-pressed="true"] .chk svg { opacity: 1; }

/* ---------- ADD-ONS ---------- */
.addons { margin-top: var(--sp-8); }
.addons-h {
  font-size: var(--fs-300); color: var(--text-2);
  margin-bottom: var(--sp-3);
}
.addon-row {
  display: flex; gap: var(--sp-3);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2);
  margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: none;
}
.addon-row::-webkit-scrollbar { display: none; }
.addon {
  flex: 0 0 auto; width: 132px; scroll-snap-align: start;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  padding: var(--sp-3);
  position: relative;
  box-shadow: var(--sh-1);
}
.addon.on { border-color: var(--accent); box-shadow: var(--sh-accent); }
.addon .ph {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-image);
  background: var(--surface-sunken);
  border: var(--bw) solid var(--border);
  display: grid; place-items: center; font-size: 28px;
  margin-bottom: var(--sp-3);
}
.addon .an { font-size: var(--fs-200); font-weight: var(--fw-medium); line-height: 1.3; }
.addon .ap { font-size: var(--fs-200); color: var(--text-2); margin-top: 2px; }
.addon .plus {
  position: absolute; top: var(--sp-2); right: var(--sp-2);
  width: 30px; height: 30px; min-height: 30px; min-width: 30px;
  border-radius: var(--r-pill);
  background: var(--surface); color: var(--text);
  border: var(--bw) solid var(--border-strong);
  display: grid; place-items: center;
  font-size: 17px; line-height: 1; font-weight: var(--fw-semibold);
}
.addon.on .plus { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }

/* ---------- DÍAS Y HORAS ---------- */
.days {
  display: flex; gap: var(--sp-2); overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--sp-2);
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto; scroll-snap-align: start;
  width: 58px; padding: var(--sp-3) 0;
  border-radius: var(--r-control);
  border: var(--bw) solid var(--border);
  background: var(--surface);
  text-align: center;
}
.day .dw {
  font-size: var(--fs-100); text-transform: uppercase;
  letter-spacing: var(--ls-caps); color: var(--text-2);
}
.day .dn {
  font-size: var(--fs-500); font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}
.day[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-on);
}
.day[aria-pressed="true"] .dw { color: var(--accent-on); opacity: .8; }
.day:disabled { opacity: .38; cursor: not-allowed; }

.hours {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--sp-3); margin-top: var(--sp-5);
}
.hour {
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--r-control);
  border: var(--bw) solid var(--border);
  background: var(--surface);
  font-size: var(--fs-400); font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  position: relative;
  transition: transform var(--dur-1) var(--ease-out);
}
.hour:not(:disabled):active { transform: scale(.96); }
.hour[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-on);
}
.hour.held {
  background: var(--warning-soft);
  border-color: var(--warning);
  color: var(--warning);
  cursor: not-allowed;
}
.hour.taken {
  background: var(--surface-sunken);
  color: var(--text-3);
  border-style: dashed;
  cursor: not-allowed;
}
.hour .flag {
  display: block; font-size: 9px; letter-spacing: var(--ls-caps);
  text-transform: uppercase; margin-top: 1px; font-weight: var(--fw-semibold);
}

.legend {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  margin-top: var(--sp-5); font-size: var(--fs-200); color: var(--text-2);
}
.legend i {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  margin-right: 6px; vertical-align: -1px; border: 1px solid var(--border-strong);
}
.legend .l1 { background: var(--surface); }
.legend .l2 { background: var(--warning-soft); border-color: var(--warning); }
.legend .l3 { background: var(--surface-sunken); border-style: dashed; }

/* ---------- FORMULARIO ---------- */
.field { margin-bottom: var(--sp-5); }
.field label {
  display: block; font-size: var(--fs-200); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-2); margin-bottom: var(--sp-2);
}
.field input, .field textarea {
  width: 100%; min-height: var(--tap);
  padding: var(--sp-3) var(--sp-4);
  font: inherit; color: var(--text);
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-control);
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { border-color: var(--accent); }
.phone { display: flex; gap: var(--sp-2); }
.phone select {
  font: inherit; color: var(--text);
  background: var(--surface-2);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-control);
  padding: 0 var(--sp-3); min-height: var(--tap);
  font-variant-numeric: tabular-nums;
}
.phone input { flex: 1; }
.hint { font-size: var(--fs-200); color: var(--text-3); margin-top: var(--sp-2); }

/* ---------- RESUMEN ---------- */
.summary {
  background: var(--surface-2);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.sum-row {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  font-size: var(--fs-300); padding: var(--sp-1) 0;
}
.sum-row .k { color: var(--text-2); }
.sum-row .v { font-weight: var(--fw-medium); text-align: right; }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: var(--sp-3); padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.sum-total .k { font-size: var(--fs-300); color: var(--text-2); }
.sum-total .v {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-600); font-variant-numeric: tabular-nums;
}
.bump { animation: bump var(--dur-3) var(--ease-spring); }
@keyframes bump { 0%{transform:none} 45%{transform:scale(1.12)} 100%{transform:none} }

/* ---------- BOTONES ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  width: 100%; min-height: var(--tap);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-control);
  font-weight: var(--fw-semibold); font-size: var(--fs-400);
  border: var(--bw) solid transparent;
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1);
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-on); border-color: var(--border-strong); }
[data-nx-theme="obsidiana"] .btn-primary,
[data-nx-theme="lino"] .btn-primary,
[data-nx-theme="clasica"] .btn-primary { border-color: transparent; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-quiet { background: none; color: var(--text-2); font-weight: var(--fw-medium); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.bar {
  position: sticky; bottom: var(--navh); z-index: var(--z-sticky);
  display: flex; gap: var(--sp-3);
  padding: var(--sp-4) var(--gutter) calc(var(--sp-4) + var(--safe-b));
  margin: var(--sp-8) calc(var(--gutter) * -1) 0;
  background: var(--glass-bg);
  border-top: 1px solid var(--border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar {
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat));
  }
}
.bar .btn-ghost { flex: 0 0 auto; width: auto; padding-inline: var(--sp-5); }

/* ---------- CUENTA REGRESIVA ---------- */
.cd {
  position: sticky; top: 62px; z-index: var(--z-countdown);
  margin: 0 calc(var(--gutter) * -1) var(--sp-5);
  padding: var(--sp-3) var(--gutter);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--sp-4);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cd {
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat));
  }
}
.cd .lb { flex: 1; font-size: var(--fs-200); color: var(--text-2); line-height: 1.35; }
.cd .tm {
  font-family: var(--font-num); font-size: var(--fs-600);
  font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums;
  color: var(--text);
}
.cd .track {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--surface-2);
}
.cd .track i {
  display: block; height: 100%; background: var(--accent);
  transition: width 1s linear;
}
.cd.warn { background: var(--warning-soft); }
.cd.warn .tm { color: var(--warning); }
.cd.warn .track i { background: var(--warning); }
.cd.crit { background: var(--danger-soft); }
.cd.crit .tm { color: var(--danger); animation: pulse 1s var(--ease-inout) infinite; }
.cd.crit .track i { background: var(--danger); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.55} }

/* ---------- PAGO ---------- */
.paybox {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: var(--sp-5);
  box-shadow: var(--sh-1);
}
.paybox .ph {
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-100); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-2);
}
.payrow {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.payrow:last-child { border-bottom: none; }
.payrow .k {
  font-size: var(--fs-200); color: var(--text-2);
  width: 74px; flex: 0 0 auto;
}
.payrow .v {
  flex: 1; font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums; word-break: break-all;
}
.payrow .v.big {
  font-family: var(--font-display); font-size: var(--fs-600);
  font-weight: var(--fw-bold);
}
.copy {
  flex: 0 0 auto; min-height: 36px; min-width: 36px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-xs);
  border: var(--bw) solid var(--border);
  background: var(--surface-2);
  font-size: var(--fs-200); font-weight: var(--fw-medium);
  color: var(--text-2);
}
.copy:hover { border-color: var(--border-strong); color: var(--text); }
.copy.ok { background: var(--success-soft); color: var(--success); border-color: var(--success); }

.drop {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  width: 100%;
  transition: border-color var(--dur-1), background-color var(--dur-1);
}
.drop:hover { border-color: var(--accent); }
.drop.filled { border-style: solid; border-color: var(--success); background: var(--success-soft); }
.drop .di { font-size: 28px; margin-bottom: var(--sp-2); }
.drop .dt { font-weight: var(--fw-semibold); font-size: var(--fs-400); }
.drop .ds { font-size: var(--fs-200); color: var(--text-2); margin-top: 2px; }

.orsep {
  display: flex; align-items: center; gap: var(--sp-4);
  margin: var(--sp-5) 0;
  font-size: var(--fs-200); color: var(--text-3);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
}
.orsep::before, .orsep::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.wa {
  text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  width: 100%; min-height: var(--tap);
  border-radius: var(--r-control);
  border: var(--bw) solid var(--border-strong);
  background: var(--surface-2); color: var(--text);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-5);
}
.wa:hover { background: var(--surface-3); }
.wa svg { width: 20px; height: 20px; }

/* ---------- CONFIRMACIÓN ---------- */
.ok-mark {
  width: 76px; height: 76px; margin: var(--sp-7) auto var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--success-soft);
  border: 2px solid var(--success);
  display: grid; place-items: center;
  animation: pop var(--dur-5) var(--ease-spring);
}
[data-nx-theme="neo"] .ok-mark { border-radius: var(--r-xs); }
.ok-mark svg { width: 36px; height: 36px; color: var(--success); }
@keyframes pop {
  0% { transform: scale(.4); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: none; }
}
.ok-t { text-align: center; font-size: var(--fs-700); }
.ok-s { text-align: center; color: var(--text-2); font-size: var(--fs-300); margin-top: var(--sp-2); }
.ok-code {
  display: inline-block; margin: var(--sp-4) auto 0;
  font-family: var(--font-num); font-size: var(--fs-500);
  letter-spacing: .08em;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-xs);
  background: var(--surface-2); border: var(--bw) solid var(--border);
}
.ok-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-7); }
.ok-act {
  padding: var(--sp-4) var(--sp-2);
  border-radius: var(--r-control);
  border: var(--bw) solid var(--border);
  background: var(--surface);
  text-align: center; font-size: var(--fs-200); font-weight: var(--fw-medium);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
}
.ok-act:hover { border-color: var(--border-strong); }
.ok-act svg { width: 20px; height: 20px; color: var(--accent-text); }

.sep32 { height: 32px; }

.promo {
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-2);
  opacity: 0; transform: translate3d(0, 12px, 0);
  animation: promoIn var(--dur-4) var(--ease-out) forwards;
}
@keyframes promoIn { to { opacity: 1; transform: none; } }
.promo .img {
  aspect-ratio: 3/2; background: var(--accent-soft2);
  display: grid; place-items: center; font-size: 44px;
  border-bottom: var(--bw) solid var(--border);
}
.promo .bd { padding: var(--sp-5); }
.promo .tt { font-family: var(--font-display); font-size: var(--fs-600); font-weight: var(--fw-bold); }
[data-nx-theme="neo"] .promo .tt { text-transform: uppercase; }
.promo .bb { font-size: var(--fs-300); color: var(--text-2); margin: var(--sp-2) 0 var(--sp-4); }
.promo .tag {
  font-size: var(--fs-100); color: var(--text-3);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  margin-top: var(--sp-3);
}
.policy { font-size: var(--fs-200); color: var(--text-3); margin-top: var(--sp-7); text-align: center; }

/* ---------- CADUCADA ---------- */
.expired { text-align: center; padding: var(--sp-9) 0; }
.expired .ic {
  width: 72px; height: 72px; margin: 0 auto var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--danger-soft); border: 2px solid var(--danger);
  display: grid; place-items: center; font-size: 30px;
}
[data-nx-theme="neo"] .expired .ic { border-radius: var(--r-xs); }

/* ---------- TIENDA ---------- */
.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-4);
}
.prod {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
}
.prod .im {
  aspect-ratio: 1; background: var(--surface-sunken);
  display: grid; place-items: center; font-size: 40px;
  position: relative;
  border-bottom: var(--bw) solid var(--border);
}
.prod.out .im { opacity: .45; }
.prod .badge {
  position: absolute; top: var(--sp-2); left: var(--sp-2);
  font-size: var(--fs-100); font-weight: var(--fw-semibold);
  padding: 3px var(--sp-2); border-radius: var(--r-xs);
  background: var(--warning-soft); color: var(--warning);
  border: 1px solid var(--warning);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
}
.prod .badge.gone { background: var(--surface-2); color: var(--text-2); border-color: var(--border-strong); }
.prod .add {
  position: absolute; right: var(--sp-2); bottom: var(--sp-2);
  width: 34px; height: 34px; min-height: 34px; min-width: 34px;
  border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-on);
  border: var(--bw) solid var(--border-strong);
  display: grid; place-items: center; font-size: 18px; font-weight: var(--fw-semibold);
  box-shadow: var(--sh-1);
}
.prod .bd { padding: var(--sp-3); flex: 1; display: flex; flex-direction: column; }
.prod .pn { font-size: var(--fs-300); font-weight: var(--fw-medium); line-height: 1.3; }
.prod .pp { font-size: var(--fs-400); font-weight: var(--fw-semibold); margin-top: auto; padding-top: var(--sp-2); }
.prod .pb { font-size: var(--fs-100); color: var(--text-2); }
.prod .notify {
  margin-top: var(--sp-2); width: 100%; min-height: 36px;
  font-size: var(--fs-200); border-radius: var(--r-xs);
  border: var(--bw) solid var(--border); background: var(--surface-2); color: var(--text-2);
}

.chips { display: flex; gap: var(--sp-2); overflow-x: auto; margin: 0 calc(var(--gutter)*-1) var(--sp-5); padding: 0 var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 36px; padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  border: var(--bw) solid var(--border);
  background: var(--surface); color: var(--text-2);
  font-size: var(--fs-200); font-weight: var(--fw-medium);
}
[data-nx-theme="neo"] .chip { border-radius: var(--r-xs); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }

.cart {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(16px);
  bottom: calc(78px + var(--safe-b)); z-index: var(--z-sticky);
  width: min(88vw, 460px);
  min-height: var(--tap);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 0 var(--sp-5);
  border-radius: var(--r-control);
  background: var(--accent); color: var(--accent-on);
  border: var(--bw) solid var(--border-strong);
  box-shadow: var(--sh-3);
  font-weight: var(--fw-semibold);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.cart.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ---------- NAV INFERIOR ---------- */
.nav {
  position: sticky; bottom: 0; z-index: var(--z-header);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border-top: 1px solid var(--border);
  background: var(--glass-bg);
  padding-bottom: var(--safe-b);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav {
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-sat));
  }
}
.nav button {
  padding: var(--sp-3) var(--sp-2);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: var(--fs-100); font-weight: var(--fw-medium);
  color: var(--text-3);
  border-top: 2px solid transparent;
  margin-top: -1px;
}
.nav button svg { width: 21px; height: 21px; }
.nav button[aria-current="page"] { color: var(--accent-text); border-top-color: var(--accent); }

/* ---------- SCRIM / DIÁLOGOS ---------- */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-scrim);
  background: var(--scrim);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out);
}
.scrim.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-modal);
  max-height: 88dvh; overflow-y: auto;
  background: var(--surface);
  border-top: var(--bw) solid var(--border);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: var(--sp-5) var(--gutter) calc(var(--sp-8) + var(--safe-b));
  box-shadow: var(--sh-4);
  transform: translateY(101%);
  transition: transform var(--dur-4) var(--ease-out);
  margin: 0 auto; max-width: 520px;
}
[data-nx-theme="neo"] .sheet { border-radius: var(--r-xs) var(--r-xs) 0 0; }
.sheet.show { transform: none; }
.sheet-grip {
  width: 38px; height: 4px; border-radius: var(--r-pill);
  background: var(--border-strong); margin: 0 auto var(--sp-5); opacity: .6;
}
.sheet h2 { font-size: var(--fs-600); margin-bottom: var(--sp-2); }
.sheet .sh-sub { font-size: var(--fs-200); color: var(--text-2); margin-bottom: var(--sp-5); }

/* selector de temas */
.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.theme-card {
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden; text-align: left;
  background: var(--surface);
}
.theme-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: var(--sh-accent); }
.theme-card .sw { display: flex; height: 42px; }
.theme-card .sw span { flex: 1; }
.theme-card .lb { padding: var(--sp-3); }
.theme-card .n1 { font-size: var(--fs-300); font-weight: var(--fw-semibold); }
.theme-card .n2 { font-size: var(--fs-100); color: var(--text-2); line-height: 1.35; margin-top: 1px; }

.mode-row {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-5);
  padding: var(--sp-1); border-radius: var(--r-control);
  background: var(--surface-sunken); border: var(--bw) solid var(--border);
}
.mode-row button {
  flex: 1; min-height: 40px; border-radius: var(--r-sm);
  font-size: var(--fs-300); font-weight: var(--fw-medium); color: var(--text-2);
}
.mode-row button[aria-pressed="true"] {
  background: var(--surface); color: var(--text);
  box-shadow: var(--sh-1); border: var(--bw) solid var(--border);
}

/* ---------- POP-UP PUBLICITARIO ---------- */
.popup {
  position: fixed; z-index: var(--z-popup);
  left: 50%; top: 50%;
  width: min(88vw, 380px);
  transform: translate(-50%, -50%) translateY(12px) scale(.97);
  opacity: 0; pointer-events: none;
  background: var(--surface-3);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-4);
  overflow: hidden;
  transition: opacity var(--dur-4) var(--ease-out) 60ms,
              transform var(--dur-4) var(--ease-out) 60ms;
}
.popup.show { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.popup .pi {
  aspect-ratio: 4/5; background: var(--accent-soft2);
  display: grid; place-items: center; font-size: 64px;
  border-bottom: var(--bw) solid var(--border);
  position: relative;
}
.popup .x {
  position: absolute; top: 8px; right: 8px;
  width: 48px; height: 48px; min-height: 48px; min-width: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgb(var(--surface-rgb) / .92);
  border: var(--bw) solid var(--border);
  color: var(--text);
}
[data-nx-theme="neo"] .popup .x { border-radius: var(--r-xs); }
.popup .x svg { width: 18px; height: 18px; }
.popup .pb { padding: var(--sp-5); }
.popup .pt { font-family: var(--font-display); font-size: var(--fs-600); font-weight: var(--fw-bold); }
[data-nx-theme="neo"] .popup .pt { text-transform: uppercase; }
.popup .pd { font-size: var(--fs-300); color: var(--text-2); margin: var(--sp-2) 0 var(--sp-5); }
.popup .later {
  display: block; width: 100%; min-height: var(--tap);
  margin-top: var(--sp-2);
  font-size: var(--fs-300); color: var(--text-2); font-weight: var(--fw-medium);
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--navh) + 84px + var(--safe-b));
  transform: translateX(-50%) translateY(12px);
  z-index: var(--z-toast);
  max-width: min(90vw, 420px);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-control);
  background: var(--surface-3); color: var(--text);
  border: var(--bw) solid var(--border-strong);
  box-shadow: var(--sh-3);
  font-size: var(--fs-300); font-weight: var(--fw-medium);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- BANNER DEMO ---------- */
.demo-note {
  margin: var(--sp-5) 0 0;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-control);
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
  font-size: var(--fs-200); color: var(--text-2); line-height: 1.45;
}
.demo-note b { color: var(--text); font-weight: var(--fw-semibold); }

/* ---------- MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .view, .promo { animation: none; opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
  .btn-primary { background: ButtonText; color: ButtonFace; border: 2px solid ButtonText; }
}

/* ============================================================================
   BANNERS SUPERIORES
   Orden: aviso operativo → portada → franja promocional
   ========================================================================= */

/* ---------- 1. AVISO OPERATIVO (información, no publicidad) ---------- */
.notice {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) var(--gutter);
  background: var(--warning-soft);
  border-bottom: var(--bw) solid var(--warning);
  font-size: var(--fs-200);
  line-height: 1.4;
  color: var(--text);
}
.notice[hidden] { display: none; }
.notice .ni { flex: 0 0 auto; color: var(--warning); font-weight: var(--fw-bold); }
.notice .nt { flex: 1; }
.notice .nt b { color: var(--warning); font-weight: var(--fw-semibold); }

/* ---------- 2. PORTADA ---------- */
.hero { position: relative; }

.hero .cover {
  aspect-ratio: 2.4 / 1;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
/* placeholder con carácter: franjas de poste de barbería, teñidas por el tema.
   En producción esto es la foto 1600×900 que sube la barbería. */
.hero .cover::before {
  content: "";
  position: absolute; inset: -20%;
  background: repeating-linear-gradient(
    115deg,
    var(--accent) 0 22px,
    transparent 22px 44px,
    var(--accent-2, var(--accent)) 44px 66px,
    transparent 66px 88px
  );
  opacity: .16;
}
.hero .cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgb(var(--surface-rgb) / 0) 0%,
    rgb(var(--surface-rgb) / .35) 45%,
    var(--bg) 100%);
}
/* Alto contraste: sin degradados ni transparencias. Bloque plano y punto. */
[data-nx-theme="alto"] .hero .cover::before {
  opacity: 1;
  background: repeating-linear-gradient(
    115deg,
    var(--surface-2) 0 20px,
    var(--bg) 20px 42px,
    var(--text-3) 42px 44px,
    var(--bg) 44px 84px
  );
}
[data-nx-theme="alto"] .hero .cover::after  { display: none; }
/* Neo: las franjas son la identidad, se ven más */
[data-nx-theme="neo"] .hero .cover::before { opacity: .3; }

.hero .body {
  position: relative;
  margin-top: -34px;
  padding: 0 var(--gutter) var(--sp-5);
  display: flex; align-items: flex-end; gap: var(--sp-4);
}
.hero .logo {
  width: 68px; height: 68px; flex: 0 0 auto;
  border-radius: var(--r-card);
  background: var(--accent); color: var(--accent-on);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold); font-size: 30px; line-height: 1;
  border: 3px solid var(--bg);
  box-shadow: var(--sh-2);
}
[data-nx-theme="neo"] .hero .logo { border-radius: var(--r-xs); }
[data-nx-theme="alto"] .hero .logo { border-color: var(--border); box-shadow: none; }
.hero .txt { flex: 1; min-width: 0; padding-bottom: 2px; }
.hero .h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-700);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
}
[data-nx-theme="neo"] .hero .h1 { text-transform: uppercase; }
.hero .lema { font-size: var(--fs-200); color: var(--text-2); margin-top: 2px; }

.hero .meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4);
  padding: 0 var(--gutter) var(--sp-5);
  font-size: var(--fs-200); color: var(--text-2);
}
.hero .meta .dot { color: var(--text-3); }
.hero .meta .star { color: var(--accent-text); font-weight: var(--fw-semibold); }
.hero .open {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--success-soft); color: var(--success);
  border: 1px solid var(--success);
  font-size: var(--fs-100); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
}
[data-nx-theme="neo"] .hero .open { border-radius: var(--r-xs); }
.hero .open i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); display: inline-block;
}

/* ---------- 3. FRANJA PROMOCIONAL ---------- */
.strip {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: 0 var(--gutter) var(--sp-5);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  border-radius: var(--r-control);
  background: var(--accent-soft);
  border: var(--bw) solid var(--accent);
  overflow: hidden;
  animation: stripIn var(--dur-4) var(--ease-out);
}
.strip[hidden] { display: none; }
@keyframes stripIn {
  from { opacity: 0; transform: translate3d(0, -6px, 0); }
  to   { opacity: 1; transform: none; }
}
.strip .si { font-size: 17px; flex: 0 0 auto; }
.strip .st {
  flex: 1; min-width: 0;
  font-size: var(--fs-200); font-weight: var(--fw-medium);
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.strip .sc {
  flex: 0 0 auto; min-height: 32px; padding: 0 var(--sp-3);
  border-radius: var(--r-xs);
  background: var(--accent); color: var(--accent-on);
  font-size: var(--fs-200); font-weight: var(--fw-semibold);
  border: var(--bw) solid var(--border-strong);
}
[data-nx-theme="obsidiana"] .strip .sc,
[data-nx-theme="lino"] .strip .sc,
[data-nx-theme="clasica"] .strip .sc { border-color: transparent; }
.strip .sx {
  flex: 0 0 auto;
  width: 44px; height: 44px; min-height: 44px; min-width: 44px;
  display: grid; place-items: center;
  color: var(--text-2);
  border-radius: var(--r-xs);
}
.strip .sx:hover { color: var(--text); background: var(--accent-soft2); }
.strip .sx svg { width: 15px; height: 15px; }

/* ---------- 4. CABECERA COMPACTA (aparece al bajar) ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0;
  transform: translateY(-101%);
  transition: transform var(--dur-3) var(--ease-out);
  border-bottom: var(--bw) solid var(--border);
  z-index: var(--z-header);
  background: var(--glass-bg);
}
.hdr.show { transform: none; }
.hdr-in {
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3) var(--gutter);
}
/* el contador pegajoso ya no cuelga de la cabecera fija */
.cd { top: 0; }

/* Alto contraste: nada se superpone. La portada termina, y luego empieza el
   bloque de identidad. Sin trucos de solapamiento. */
[data-nx-theme="alto"] .hero .body { margin-top: var(--sp-4); }
[data-nx-theme="alto"] .hero .cover { border-bottom: 2px solid var(--border); }

/* ============================================================================
   PANEL DEL BARBERO
   ========================================================================= */
.panel-top { margin-bottom: var(--sp-5); }
.pt-l {
  display: inline-block;
  font-size: var(--fs-100); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--accent-on); background: var(--accent);
  padding: 3px var(--sp-3); border-radius: var(--r-xs);
  margin-bottom: var(--sp-3);
}
.panel-top .step-note b { color: var(--text); }

.pcard {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
}
.pc-h {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding-bottom: var(--sp-4); margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.pc-h > div { flex: 1; min-width: 0; }
.pc-t { font-weight: var(--fw-semibold); font-size: var(--fs-500); }
.pc-s { font-size: var(--fs-200); color: var(--text-2); margin-top: 2px; line-height: 1.4; }

/* interruptor */
.sw {
  flex: 0 0 auto; width: 50px; height: 30px; min-height: 30px; min-width: 50px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  border: var(--bw) solid var(--border-strong);
  padding: 2px; display: flex; align-items: center;
  transition: background-color var(--dur-2);
}
[data-nx-theme="neo"] .sw { border-radius: var(--r-xs); }
.sw .sw-k {
  width: 22px; height: 22px; border-radius: var(--r-pill);
  background: var(--text-3); display: block;
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2);
}
[data-nx-theme="neo"] .sw .sw-k { border-radius: 2px; }
.sw[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.sw[aria-checked="true"] .sw-k { transform: translateX(20px); background: var(--accent-on); }

/* zona de subida */
.up {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2);
  aspect-ratio: 16/9;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-card);
  background: var(--surface-sunken);
  overflow: hidden; cursor: pointer;
  transition: border-color var(--dur-1);
}
.up.up-sm { aspect-ratio: 4/5; max-width: 220px; margin-inline: auto; }
.up:hover { border-color: var(--accent); }
.up.filled { border-style: solid; border-color: var(--border); padding: 0; }
.up-img { width: 100%; height: 100%; object-fit: cover; }
.up-i { font-size: 30px; }
.up-t { font-weight: var(--fw-semibold); font-size: var(--fs-400); }
.up-s { font-size: var(--fs-200); color: var(--text-2); text-align: center; padding: 0 var(--sp-5); }
.up-acts { display: flex; gap: var(--sp-3); margin-top: var(--sp-3); }
.up-acts .btn { width: auto; flex: 1; }

/* validación */
.val { display: none; margin-top: var(--sp-4); }
.val.show { display: grid; gap: var(--sp-2); }
.val > div {
  font-size: var(--fs-200); line-height: 1.4;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-xs);
  border: 1px solid transparent;
}
.v-ok   { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.v-warn { background: var(--warning-soft); color: var(--warning); border-color: var(--warning); }
.v-bad  { background: var(--danger-soft);  color: var(--danger);  border-color: var(--danger); }
.v-run  { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }

/* reglas del sistema */
.rules {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border-radius: var(--r-control);
  background: var(--surface-2);
  border: var(--bw) solid var(--border);
}
.rules-h {
  font-size: var(--fs-100); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--sp-3);
}
.rules ul { margin: 0; padding-left: 18px; }
.rules li { font-size: var(--fs-200); color: var(--text-2); line-height: 1.45; margin-bottom: 6px; }
.rules li:last-child { margin-bottom: 0; }
.rules li b { color: var(--text); }

/* campos con contador */
.pfield label { display: flex; justify-content: space-between; align-items: baseline; }
.pfield .cnt {
  font-family: var(--font-num); font-size: var(--fs-100);
  color: var(--text-3); letter-spacing: 0; text-transform: none; font-weight: var(--fw-regular);
}
.pfield .cnt.hot { color: var(--warning); }
.pfield textarea { resize: vertical; line-height: 1.45; padding-top: var(--sp-3); }

/* vista previa */
.pv-h {
  font-size: var(--fs-100); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-3); margin: var(--sp-7) 0 var(--sp-3);
}
.pv-phone {
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden; background: var(--bg);
}
.pv-cover {
  aspect-ratio: 3/1; position: relative;
  background: var(--surface-2) center/cover no-repeat;
}
.pv-cover:not(.has-img)::before {
  content: ""; position: absolute; inset: -20%;
  background: repeating-linear-gradient(115deg,
    var(--accent) 0 16px, transparent 16px 32px,
    var(--accent-2, var(--accent)) 32px 48px, transparent 48px 64px);
  opacity: .16;
}
.pv-safe {
  position: absolute; inset: 33% 8%;
  border: 1px dashed var(--accent-text);
  display: grid; place-items: center;
  border-radius: var(--r-xs);
}
.pv-safe span {
  font-size: 9px; letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--accent-text); background: rgb(var(--surface-rgb) / .85);
  padding: 1px 5px; border-radius: 2px;
}
.pv-body { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.pv-logo {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-on);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 16px;
}
.pv-name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-400); }
.pv-lema { font-size: var(--fs-100); color: var(--text-2); }
.pv-strip { margin: 0; }
.pv-notice { border: var(--bw) solid var(--warning); border-radius: var(--r-control); }

/* frecuencia fija */
.freq {
  margin-top: var(--sp-5); padding: var(--sp-4);
  border-radius: var(--r-control);
  background: var(--surface-sunken);
  border: var(--bw) solid var(--border);
}
.freq-h {
  font-size: var(--fs-100); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--sp-3);
}
.freq-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); text-align: center; }
.freq-g div b {
  display: block; font-family: var(--font-num); font-size: var(--fs-500);
  font-weight: var(--fw-semibold); color: var(--text);
}
.freq-g div span { font-size: 10px; color: var(--text-2); line-height: 1.25; display: block; }

/* previsualización en los cinco temas */
.tpv {
  display: flex; gap: var(--sp-3); overflow-x: auto;
  margin: 0 calc(var(--sp-5) * -1); padding: 0 var(--sp-5) var(--sp-3);
  scrollbar-width: none;
}
.tpv::-webkit-scrollbar { display: none; }
.tpv-i { flex: 0 0 auto; width: 118px; }
.tpv-card {
  background: var(--surface-3);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.tpv-img {
  aspect-ratio: 4/5; background: var(--accent-soft2) center/cover no-repeat;
  display: grid; place-items: center; font-size: 26px; position: relative;
  border-bottom: var(--bw) solid var(--border);
}
.tpv-x {
  position: absolute; top: 4px; right: 4px;
  width: 17px; height: 17px; border-radius: var(--r-pill);
  background: rgb(var(--surface-rgb) / .92);
  border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 8px; color: var(--text);
}
.tpv-b { padding: var(--sp-3); }
.tpv-t {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: 11px; line-height: 1.2; color: var(--text);
}
[data-nx-theme="neo"] .tpv-t { text-transform: uppercase; }
.tpv-d {
  font-size: 9px; color: var(--text-2); line-height: 1.35; margin: 3px 0 6px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tpv-cta {
  background: var(--accent); color: var(--accent-on);
  font-size: 9px; font-weight: var(--fw-semibold);
  text-align: center; padding: 5px 4px; border-radius: var(--r-xs);
  border: var(--bw) solid var(--border-strong);
}
.tpv-n {
  font-size: var(--fs-100); color: var(--text-2);
  text-align: center; margin-top: 6px;
}

/* casilla de revisión */
.check {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: var(--sp-5) 0 var(--sp-4);
  font-size: var(--fs-300); color: var(--text);
  min-height: var(--tap); cursor: pointer;
}
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: 0 0 auto; }

/* métricas */
.mets { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.mets-h {
  font-size: var(--fs-100); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--sp-4);
}
.mets-g { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.met {
  padding: var(--sp-3); border-radius: var(--r-control);
  background: var(--surface-2); border: var(--bw) solid var(--border);
}
.met b {
  display: block; font-family: var(--font-num); font-size: var(--fs-600);
  font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums;
}
.met span { font-size: var(--fs-100); color: var(--text-2); }

/* la portada con imagen real */
.hero .cover.has-img { background: var(--surface-2) center/cover no-repeat; }
.hero .cover.has-img::before { display: none; }

/* ---------- acceso al panel ---------- */
.gate-wrap { padding-top: var(--sp-5); }
.gate {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-card);
  padding: var(--sp-7) var(--sp-5) var(--sp-5);
  box-shadow: var(--sh-2);
  text-align: center;
}
.gate-ic {
  width: 56px; height: 56px; margin: 0 auto var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--surface-2); border: var(--bw) solid var(--border);
  display: grid; place-items: center; font-size: 22px;
}
[data-nx-theme="neo"] .gate-ic { border-radius: var(--r-xs); }
.gate-t { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-600); }
[data-nx-theme="neo"] .gate-t { text-transform: uppercase; }
.gate-s {
  font-size: var(--fs-300); color: var(--text-2);
  margin: var(--sp-2) auto var(--sp-6); max-width: 34ch; line-height: 1.5;
}
.gate .field { text-align: left; }
.gate .field input {
  text-align: center; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--font-num); font-size: var(--fs-500);
}
.gate-err {
  font-size: var(--fs-200); color: var(--danger);
  background: var(--danger-soft); border: 1px solid var(--danger);
  border-radius: var(--r-xs); padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-4);
}
.gate-err[hidden] { display: none; }
.gate-note {
  margin-top: var(--sp-6); padding: var(--sp-4);
  border-radius: var(--r-control);
  background: var(--warning-soft); border: 1px solid var(--warning);
  font-size: var(--fs-200); color: var(--text); line-height: 1.45; text-align: left;
}
.gate-note b { color: var(--warning); font-weight: var(--fw-semibold); }

/* cabecera del panel con sesión */
.pt-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.pt-out {
  font-size: var(--fs-200); font-weight: var(--fw-medium);
  color: var(--text-2); min-height: 36px; padding: 0 var(--sp-3);
  border-radius: var(--r-xs); border: var(--bw) solid var(--border);
}
.pt-out:hover { color: var(--text); border-color: var(--border-strong); }

/* selector de barbería (solo administrador) */
.tenants { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.tenant {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3); text-align: left;
  border-radius: var(--r-control);
  border: var(--bw) solid var(--border);
  background: var(--surface);
}
.tenant[aria-pressed="true"] { border-color: var(--accent); box-shadow: var(--sh-accent); background: var(--surface-2); }
.tn-m {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-on);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 15px;
}
[data-nx-theme="neo"] .tn-m { border-radius: var(--r-xs); }
.tn-x { flex: 1; min-width: 0; }
.tn-n { display: block; font-size: var(--fs-300); font-weight: var(--fw-semibold); }
.tn-s { display: block; font-size: var(--fs-100); color: var(--text-2); }

/* ---------- consola SaaS ---------- */
.btn-add {
  flex: 0 0 auto; min-height: 36px; padding: 0 var(--sp-4);
  border-radius: var(--r-xs);
  background: var(--accent); color: var(--accent-on);
  border: var(--bw) solid var(--border-strong);
  font-size: var(--fs-200); font-weight: var(--fw-semibold);
}
[data-nx-theme="obsidiana"] .btn-add,
[data-nx-theme="lino"] .btn-add,
[data-nx-theme="clasica"] .btn-add { border-color: transparent; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-bottom: var(--sp-5); }
.kpi {
  padding: var(--sp-3) var(--sp-2); text-align: center;
  border-radius: var(--r-control);
  background: var(--surface-2); border: var(--bw) solid var(--border);
}
.kpi b {
  display: block; font-family: var(--font-num); font-size: var(--fs-500);
  font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; color: var(--text);
}
.kpi span { font-size: 10px; color: var(--text-2); line-height: 1.2; display: block; }
.kpi.alert { background: var(--danger-soft); border-color: var(--danger); }
.kpi.alert b { color: var(--danger); }

.tlist { display: grid; gap: var(--sp-3); }
.trow {
  padding: var(--sp-4);
  border-radius: var(--r-control);
  background: var(--surface-2);
  border: var(--bw) solid var(--border);
}
.trow.urg { border-color: var(--warning); }
.tr-top { display: flex; align-items: center; gap: var(--sp-3); }
.tr-x { flex: 1; min-width: 0; }
.tr-n { font-size: var(--fs-400); font-weight: var(--fw-semibold); }
.tr-s { font-size: var(--fs-100); color: var(--text-2); }
.tr-mo {
  font-family: var(--font-num); font-size: var(--fs-500);
  font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums;
}
.tr-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--sp-2);
  font-size: var(--fs-100); color: var(--text-2);
  margin: var(--sp-3) 0;
}
.tr-meta b { color: var(--text); }
.tr-meta .dot { color: var(--text-3); }
.tr-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tb {
  min-height: 34px; padding: 0 var(--sp-3);
  border-radius: var(--r-xs);
  border: var(--bw) solid var(--border);
  background: var(--surface); color: var(--text-2);
  font-size: var(--fs-200); font-weight: var(--fw-medium);
}
.tb:hover { color: var(--text); border-color: var(--border-strong); }
.tb-a { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.tb-a:hover { color: var(--accent-on); background: var(--accent-hover); }

.badge-ok, .badge-warn, .badge-bad, .badge-info {
  font-size: 9px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  padding: 3px var(--sp-2); border-radius: var(--r-xs);
  white-space: nowrap; border: 1px solid;
}
.badge-ok   { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.badge-warn { background: var(--warning-soft); color: var(--warning); border-color: var(--warning); }
.badge-bad  { background: var(--danger-soft);  color: var(--danger);  border-color: var(--danger); }
.badge-info { background: var(--accent-soft);  color: var(--accent-text); border-color: var(--accent); }

.lbl {
  display: block; font-size: var(--fs-200); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-2); margin: var(--sp-5) 0 var(--sp-3);
}
.planes { display: grid; gap: var(--sp-2); }
.plan {
  display: grid; grid-template-columns: 1fr auto; gap: 2px var(--sp-3);
  padding: var(--sp-3) var(--sp-4); text-align: left;
  border-radius: var(--r-control);
  border: var(--bw) solid var(--border); background: var(--surface);
}
.plan.on { border-color: var(--accent); box-shadow: var(--sh-accent); background: var(--surface-2); }
.pl-n { font-size: var(--fs-400); font-weight: var(--fw-semibold); }
.pl-p {
  font-family: var(--font-num); font-size: var(--fs-500);
  font-weight: var(--fw-semibold); grid-row: span 2; align-self: center;
}
.pl-p i { font-style: normal; font-size: var(--fs-100); color: var(--text-2); }
.pl-l { font-size: var(--fs-100); color: var(--text-2); }

.temitas { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: var(--sp-2); scrollbar-width: none; }
.temitas::-webkit-scrollbar { display: none; }
.temita {
  flex: 0 0 auto; width: 78px; padding: var(--sp-2);
  border-radius: var(--r-control);
  border: var(--bw) solid var(--border); background: var(--surface);
}
.temita.on { border-color: var(--accent); box-shadow: var(--sh-accent); }
.tm-sw { display: flex; height: 22px; border-radius: var(--r-xs); overflow: hidden; }
.tm-sw span { flex: 1; }
.tm-n { display: block; font-size: 9px; color: var(--text-2); margin-top: 4px; }

/* ---------- editores de catálogo ---------- */
.elist { display: grid; gap: var(--sp-2); }

.erow {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-control);
  border: var(--bw) solid var(--border);
  background: var(--surface-2);
}
.ethumb {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: var(--r-image);
  background: var(--accent-soft2) center/cover no-repeat;
  border: var(--bw) solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-300); color: var(--accent-text);
}
.ethumb.emoji { background: var(--surface-sunken); font-size: 19px; }
.ethumb.has-img { background-color: var(--surface-sunken); }
.ex { flex: 1; min-width: 0; }
.en { display: block; font-size: var(--fs-300); font-weight: var(--fw-semibold);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es { display: block; font-size: var(--fs-100); color: var(--text-2);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep {
  flex: 0 0 auto; font-family: var(--font-num);
  font-size: var(--fs-400); font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}
.eb {
  flex: 0 0 auto; min-height: 34px; padding: 0 var(--sp-3);
  border-radius: var(--r-xs);
  border: var(--bw) solid var(--border);
  background: var(--surface); color: var(--text-2);
  font-size: var(--fs-200); font-weight: var(--fw-medium);
}
.eb:hover { color: var(--text); border-color: var(--border-strong); }

/* formulario en línea */
.eform {
  display: grid; gap: var(--sp-4);
  grid-template-columns: auto 1fr;
  padding: var(--sp-4);
  border-radius: var(--r-control);
  border: var(--bw) solid var(--accent);
  background: var(--surface);
  box-shadow: var(--sh-accent);
}
.ef-fields { min-width: 0; }
.ef-fields .field { margin-bottom: var(--sp-3); }
.ef-fields.full { grid-column: 1 / -1; }
.ef-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.ef-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ef-acts .btn { width: auto; flex: 1 1 auto; min-width: 96px; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }

.up.up-mini {
  aspect-ratio: 1; width: 92px; flex: 0 0 auto;
  border-radius: var(--r-image);
  align-self: start;
}
.up.up-mini .up-i { font-size: 20px; }
.up.up-mini .up-s { font-size: var(--fs-100); padding: 0; }

/* selector de emoji */
.emojis { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.emoji-b {
  width: 42px; height: 42px; min-height: 42px;
  border-radius: var(--r-control);
  border: var(--bw) solid var(--border);
  background: var(--surface-2);
  font-size: 19px;
}
.emoji-b.on { border-color: var(--accent); box-shadow: var(--sh-accent); background: var(--surface-3); }

/* logo */
.logo-row { display: flex; gap: var(--sp-4); align-items: flex-start; }
.logo-box {
  width: 88px; height: 88px; flex: 0 0 auto;
  border-radius: var(--r-card);
  border: 2px dashed var(--border-strong);
  background: var(--accent); color: var(--accent-on);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 34px;
  cursor: pointer;
}
[data-nx-theme="neo"] .logo-box { border-radius: var(--r-xs); }
.logo-box.filled { border-style: solid; border-color: var(--border); background: var(--surface-2); }
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-txt { flex: 1; min-width: 0; }

/* fotos reales en el flujo del cliente */
.hero .logo.has-img { background: var(--surface-2) center/cover no-repeat; font-size: 0; }
.hdr .mark.has-img { background: var(--surface-2) center/cover no-repeat; font-size: 0; }
.opt .av.has-img { background: var(--surface-sunken) center/cover no-repeat; font-size: 0; }
.addon .ph.has-img { background: var(--surface-sunken) center/cover no-repeat; font-size: 0; }
.prod .im.has-img { background: var(--surface-sunken) center/cover no-repeat; font-size: 0; }
.nav button[hidden] { display: none; }

@media (max-width: 420px) {
  .eform { grid-template-columns: 1fr; }
  .up.up-mini { width: 100%; max-width: 140px; margin-inline: auto; }
}

/* ver / ocultar la clave */
.ver-clave {
  display: block; margin: -6px auto var(--sp-4);
  min-height: 36px; padding: 0 var(--sp-3);
  font-size: var(--fs-200); font-weight: var(--fw-medium);
  color: var(--text-2); border-radius: var(--r-xs);
  border: var(--bw) solid transparent;
}
.ver-clave:hover { color: var(--text); border-color: var(--border); }
.gate .field input[type="password"] { letter-spacing: .3em; }
