/* ---------- App del huésped (móvil) ---------- */
.shell { min-height: 100dvh; display: flex; align-items: stretch; justify-content: center; }
.app {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (min-width: 480px) {
  .shell { padding: 24px 16px; align-items: center; }
  .app { min-height: auto; height: min(820px, 92dvh); border-radius: 28px; border: 0.5px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.10); }
}

/* header */
.hd { background: var(--brand); color: #fff; padding: max(16px, env(safe-area-inset-top)) 16px 16px; flex-shrink: 0; }
.hd-sub-screen { padding-bottom: 16px; }
.hd-row { display: flex; justify-content: space-between; align-items: center; }
.hd-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hd-note { font-size: 12px; color: #9FE1CB; margin-top: 6px; }
.hd-hello { font-size: 13px; margin-top: 8px; }
.pill { font-size: 12px; background: var(--brand-dark); padding: 4px 9px; border-radius: 20px; color: #fff; border: none; font-family: inherit; }
button.pill { cursor: pointer; }
.iconbtn { background: none; border: none; color: #fff; cursor: pointer; font-size: 18px; display: flex; padding: 0; }
.back { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 0; display: flex; }

/* main scroll area */
.main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.screen { display: none; flex-direction: column; }
.screen.active { display: flex; }
.bd { padding: 14px 14px 12px; }
.section-label { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }

/* quick actions */
.qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--sand); border: none; border-radius: var(--radius); padding: 13px 4px; text-align: center; cursor: pointer; }
.tile:active { transform: scale(.97); }
.ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 7px; font-size: 20px; }
.lab { font-size: 12px; color: var(--ink); line-height: 1.2; }

/* cards & rows */
.card { border: 0.5px solid var(--line); border-radius: var(--radius); padding: 13px; margin-top: 12px; }
.card.tap { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.card-kick { font-size: 11px; color: var(--muted); }
.row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 9px 0; border-bottom: 0.5px solid #EDEBE3; color: var(--ink); }
.row:last-child { border-bottom: none; }

/* buttons */
.btn { background: var(--brand); color: #fff; border: none; border-radius: 9px; font-size: 12.5px; padding: 8px 13px; cursor: pointer; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn.wide { width: 100%; padding: 12px; display: flex; justify-content: space-between; align-items: center; }
.btn-soft { background: var(--brand-soft); color: var(--brand); border: none; border-radius: 9px; font-size: 12.5px; padding: 8px 13px; cursor: pointer; }

/* chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { font-size: 12px; padding: 6px 13px; border-radius: 20px; background: #EFEDE6; color: #5F5E5A; cursor: pointer; border: none; }
.chip.on { background: var(--brand); color: #fff; }

/* activities */
.act { display: flex; gap: 10px; align-items: center; border: 0.5px solid var(--line); border-radius: var(--radius); padding: 10px 11px; margin-bottom: 9px; }
.act.enrolled { border-color: #9FE1CB; background: #F2FBF7; }
.act-time { font-size: 12.5px; font-weight: 600; color: var(--brand); width: 40px; }
.act-body { flex: 1; }
.act-name { font-size: 13px; color: var(--ink); }
.act-loc { font-size: 11px; color: var(--muted); }

/* menu / stepper */
.menuit { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 0.5px solid #EDEBE3; }
.menuit:last-child { border-bottom: none; }
.step { display: flex; align-items: center; gap: 8px; }
.sbtn { width: 28px; height: 28px; border-radius: 7px; border: 0.5px solid #C9D6CF; background: #F2FBF7; color: var(--brand); font-size: 15px; cursor: pointer; }
.qty { font-size: 13px; min-width: 16px; text-align: center; }

/* cart bar */
.cart-bar { padding: 11px 14px; border-top: 0.5px solid var(--line); background: var(--sand); flex-shrink: 0; }

/* map */
.map { position: relative; width: 100%; height: 270px; background: #EAF3DE; border-radius: var(--radius); overflow: hidden; border: 0.5px solid var(--line); }
.zone { position: absolute; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; text-align: center; }
.pin { position: absolute; display: flex; flex-direction: column; align-items: center; }
.pin i { font-size: 26px; color: var(--red); }
.pin span { font-size: 10px; background: var(--red); color: #fff; padding: 1px 6px; border-radius: 10px; margin-top: -5px; }

/* toast */
.toast { display: flex; gap: 9px; align-items: center; background: var(--brand-ink); color: #fff; border-radius: var(--radius); padding: 11px 12px; font-size: 12px; margin-top: 4px; }

/* bottom nav */
.nav { display: flex; justify-content: space-around; border-top: 0.5px solid var(--line); padding: 9px 0 max(10px, env(safe-area-inset-bottom)); flex-shrink: 0; background: #fff; }
.navbtn { background: none; border: none; color: #9A988F; font-size: 10.5px; cursor: pointer; padding: 0; }
.navbtn i { font-size: 20px; display: block; margin: 0 auto 3px; }
.navbtn.on { color: var(--brand); }

/* qr + centered content */
.center { text-align: center; }
.qr-box { display: inline-block; background: #fff; border: 0.5px solid var(--line); border-radius: 14px; padding: 16px; }

/* install banner + footer link */
.install { display: none; align-items: center; gap: 10px; background: var(--brand-soft); color: var(--brand-ink); padding: 10px 12px; font-size: 12.5px; }
.install.show { display: flex; }
.install button { margin-left: auto; }
.brandswitch { text-align: center; font-size: 11px; color: var(--muted); padding: 8px; }
.brandswitch a { color: var(--brand); text-decoration: none; }

/* editable fields */
.ta { width: 100%; min-height: 84px; border: 0.5px solid var(--line); border-radius: var(--radius); padding: 11px; font-family: inherit; font-size: 13px; color: var(--ink); resize: vertical; margin-top: 12px; }
.ta:focus { outline: none; border-color: var(--brand); }
.zone { cursor: pointer; }

/* toast */
.toast-pop { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(8px); background: var(--brand-ink); color: #fff; padding: 11px 18px; border-radius: 22px; font-size: 13px; z-index: 60; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; max-width: 88%; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast-pop.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* selector de idioma */
#lang-wrap { position: relative; display: inline-block; }
.langmenu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 0.5px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.16); padding: 6px; display: none; z-index: 40; min-width: 150px; }
.langmenu.show { display: block; }
.langopt { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--ink); cursor: pointer; font-family: inherit; }
.langopt:hover { background: var(--sand); }
.langopt.on { background: var(--brand-soft); color: var(--brand); font-weight: 500; }

/* ajustes responsive finos */
@media (max-width: 340px) {
  .lab { font-size: 10.5px; }
  .qa { gap: 7px; }
  .ic { width: 36px; height: 36px; font-size: 18px; }
}
