:root {
  --gold: #b8952a;
  --gold2: #d4aa38;
  --gold3: #8a6d1a;
  --dark: #252422;
  --dark2: #1c1b19;
  --bg: #e9e8e5;
  --bg2: #dddcda;
  --bg3: #f5f4f2;
  --white: #ffffff;
  --text: #1e1d1b;
  --muted: #6b6760;
  --border: #ccc9c3;
  --r: 12px;
  --navh: 72px;
  --hh: 56px;
  --F: 'Barlow', sans-serif;
  --S: 'Cormorant Garamond', serif;

  /* guided nav */
  --guide-pulse: #b8952a;
  --guide-highlight: rgba(184, 149, 42, 0.18);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--F);
  background: var(--dark);
}

/* ── SCREENS ── */
.scr {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.scr.active { display: flex; background: var(--bg); }

@keyframes sIR { from { transform: translateX(100%) } to { transform: translateX(0) } }
@keyframes sIL { from { transform: translateX(-100%) } to { transform: translateX(0) } }
@keyframes sOL { from { transform: translateX(0) } to { transform: translateX(-100%) } }
@keyframes sOR { from { transform: translateX(0) } to { transform: translateX(100%) } }
.sIR { animation: sIR .34s cubic-bezier(.4,0,.2,1) forwards }
.sIL { animation: sIL .34s cubic-bezier(.4,0,.2,1) forwards }
.sOL { animation: sOL .34s cubic-bezier(.4,0,.2,1) forwards }
.sOR { animation: sOR .34s cubic-bezier(.4,0,.2,1) forwards }

/* ── HEADER ── */
.kh {
  height: var(--hh);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.kh-brand {
  font-family: var(--S);
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}
.kh-brand sup { font-size: .5em; color: var(--gold); vertical-align: super; }
.kh-right { display: flex; align-items: center; gap: 14px; }
.kh-idle { font-size: .68rem; color: rgba(255,255,255,.28); font-variant-numeric: tabular-nums; }
.kh-guest { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; padding: 4px; }
.kh-av { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.kh-av svg { width: 19px; height: 19px; fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.6; }
.kh-lbl { font-size: .64rem; color: rgba(255,255,255,.38); }

/* ── BOTTOM NAV ── */
.bnav {
  height: var(--navh);
  display: flex;
  align-items: stretch;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.ni {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: .15s;
  padding: 8px 0;
  min-height: 44px;
}
.ni svg { width: 24px; height: 24px; fill: none; stroke: rgba(255,255,255,.24); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: .15s; }
.ni span { font-size: .66rem; color: rgba(255,255,255,.24); font-weight: 500; letter-spacing: .04em; transition: .15s; }
.ni.on svg { stroke: var(--gold2); }
.ni.on span { color: var(--gold2); }
.ni:active { opacity: .6; }
.gold-bar { height: 4px; background: linear-gradient(90deg, var(--gold3), var(--gold2), var(--gold3)); flex-shrink: 0; }

/* ── INNER SCROLL ── */
.inner {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}
.inner::-webkit-scrollbar { display: none; }

/* ── PAGE STRUCTURE ── */
.ph { padding: 15px 22px 0; background: var(--bg); }
.bk { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); cursor: pointer; padding: 5px 0 11px; min-height: 44px; }
.bk svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.bk:active { opacity: .6; }
.bc { display: flex; align-items: center; gap: 6px; font-size: .76rem; margin-bottom: 9px; }
.bc-a { color: var(--gold); cursor: pointer; }
.bc-s, .bc-c { color: var(--muted); }
.pt { font-family: var(--S); font-size: 1.85rem; font-weight: 700; color: var(--text); line-height: 1.18; }
.ps { font-size: .86rem; color: var(--muted); margin-top: 5px; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: calc(var(--navh) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--dark);
  color: #fff;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: .84rem;
  opacity: 0;
  transition: .26s;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── ERROR BANNER ── */
.err-banner { display: none; padding: 10px 20px; background: #fdd; text-align: center; font-size: .82rem; color: #7a1c1c; font-weight: 600; flex-shrink: 0; }
.err-banner.show { display: block; }

/* ── GUIDED NAV BANNER (recepcionista → totem) ── */
.guide-banner {
  display: none;
  padding: 10px 20px;
  background: var(--dark);
  border-bottom: 2px solid var(--gold);
  text-align: center;
  font-size: .85rem;
  color: var(--gold2);
  font-weight: 600;
  flex-shrink: 0;
  animation: guideFade .4s ease;
}
.guide-banner.show { display: flex; align-items: center; justify-content: center; gap: 8px; }
@keyframes guideFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── GUIDED PULSE (card highlight) ── */
@keyframes guidePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,149,42,.0); border-color: var(--gold); }
  50% { box-shadow: 0 0 0 8px rgba(184,149,42,.25); border-color: var(--gold2); }
}
.guide-pulse {
  border-color: var(--gold) !important;
  animation: guidePulse 1.2s ease-in-out infinite !important;
  background: var(--guide-highlight) !important;
}

/* ── GUIDED ACTION BUTTON (liberated by receptionist) ── */
.guide-action-btn {
  display: none;
  width: calc(100% - 44px);
  margin: 0 22px 14px;
  padding: 16px;
  background: var(--gold);
  border: none;
  border-radius: var(--r);
  color: var(--dark);
  font-family: var(--F);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  animation: guideFade .4s ease;
  min-height: 52px;
}
.guide-action-btn.show { display: block; }
.guide-action-btn:active { transform: scale(.98); }
