/* ===========================================================
   VORVEX QR Suite · experiencia pública (mini-app)
   Los colores vienen de los tokens del tema, inyectados en línea.
   Todo aquí está pensado para cargar rápido en 3G y leerse a una mano.
   =========================================================== */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.x { width: 100%; max-width: 560px; margin-inline: auto; padding-inline: 18px; }

/* ── Portada ───────────────────────────────────────────── */
.hero { position: relative; }
.hero-media {
  height: 210px; background: var(--surface-2) center/cover no-repeat; position: relative;
}
.hero-media::after { content: ''; position: absolute; inset: 0; background: var(--overlay); }
.hero-media.no-photo { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); }
.hero-card {
  position: relative; margin-top: -46px; z-index: 2;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.2rem 1.2rem 1.3rem; text-align: center;
}
.hero-logo {
  width: 72px; height: 72px; border-radius: 20px; margin: -52px auto .8rem;
  background: var(--surface) center/cover no-repeat; box-shadow: var(--shadow);
  border: 3px solid var(--surface); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--brand);
  overflow: hidden;
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card h1 { font-size: 1.55rem; font-weight: 700; }
.hero-tagline { color: var(--text-muted); font-size: .95rem; margin-top: .3rem; }
.hero-desc { color: var(--text-muted); font-size: .92rem; margin-top: .7rem; }

.promo {
  margin-top: 1rem; padding: .7rem 1rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand); font-weight: 650; font-size: .88rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  text-align: left;
}

/* Acciones rápidas */
.quick { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.quick a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1rem; border-radius: 999px;
  background: var(--surface-2); font-size: .88rem; font-weight: 650;
  border: 1px solid var(--border);
}
.quick a:active { transform: scale(.97); }
.quick a.primary { background: var(--brand); color: var(--on-brand); border-color: transparent; }

.meta-list { margin-top: 1rem; display: grid; gap: .5rem; text-align: left; }
.meta-row { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--text-muted); }
.meta-row .ic-wrap { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: var(--brand); }
.meta-row b { color: var(--text); font-weight: 650; }
.meta-row span { white-space: pre-line; }

/* ── Navegación de categorías ──────────────────────────── */
.chips {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  margin-top: 1.4rem;
}
.chips-scroll { display: flex; gap: .45rem; overflow-x: auto; padding: .7rem 18px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; padding: .45rem .9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 650; white-space: nowrap;
}
.chips a.on { background: var(--brand); color: var(--on-brand); border-color: transparent; }

/* ── Secciones ─────────────────────────────────────────── */
.sec { padding: 1.6rem 0 .4rem; scroll-margin-top: 60px; }
.sec-head { margin-bottom: .9rem; }
.sec-head h2 { font-size: 1.2rem; font-weight: 700; }
.sec-head p { font-size: .86rem; color: var(--text-muted); margin-top: .2rem; }

/* Items de menú */
.items { display: grid; gap: .7rem; }
.item {
  display: flex; gap: .85rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .8rem;
}
.item.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.item-photo {
  width: 76px; height: 76px; border-radius: calc(var(--radius) - 3px); flex: none;
  background: var(--surface-2) center/cover no-repeat;
}
.item-main { flex: 1; min-width: 0; }
.item-title { display: flex; gap: .5rem; align-items: baseline; justify-content: space-between; }
.item-title h3 { font-size: 1rem; font-weight: 650; font-family: var(--font-body); }
.item-price { font-weight: 750; white-space: nowrap; font-size: .98rem; }
.item-price s { color: var(--text-muted); font-weight: 500; font-size: .82rem; margin-right: .3rem; }
.item-desc { font-size: .85rem; color: var(--text-muted); margin-top: .2rem; }
.item-note { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; font-style: italic; }
.badge {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
  font-size: .68rem; font-weight: 750; letter-spacing: .02em; margin-bottom: .25rem;
}
.variants { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.variants span {
  font-size: .74rem; padding: .18rem .5rem; border-radius: 6px;
  background: var(--surface-2); color: var(--text-muted);
}
.item-order {
  margin-top: .5rem; display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 650; color: var(--brand);
}

/* Tarjetas de guía (Guest) */
.gcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.1rem; box-shadow: var(--shadow);
}
.gcard + .gcard { margin-top: .8rem; }
.gcard h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.gcard p { font-size: .92rem; color: var(--text-muted); white-space: pre-line; }
.gcard .strong-line { color: var(--text); font-weight: 650; }

.kv { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: 0; }
.kv .k { font-size: .8rem; color: var(--text-muted); font-weight: 650; }
.kv .v { font-size: 1rem; font-weight: 700; font-family: ui-monospace, Menlo, monospace; letter-spacing: .02em; word-break: break-all; text-align: right; }

.copy-btn {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: 8px; padding: .35rem .6rem; font-size: .76rem; font-weight: 650; flex: none;
}
.copy-btn.done { background: var(--brand); color: var(--on-brand); border-color: transparent; }

.wifi-hero {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #000));
  color: var(--on-brand); border-radius: var(--radius-lg); padding: 1.2rem; text-align: center;
}
.wifi-hero .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.wifi-hero .value { font-size: 1.3rem; font-weight: 800; font-family: ui-monospace, Menlo, monospace; margin: .15rem 0 .6rem; word-break: break-all; }
.wifi-hero .copy-btn { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: inherit; }
.wifi-qr { background: #fff; padding: .5rem; border-radius: 12px; width: 128px; margin: .9rem auto 0; }

/* La fila entera es el objetivo táctil, no solo la casilla de 18 px. */
.checklist li { display: flex; gap: .7rem; align-items: center; font-size: .92rem; min-height: 48px; }
.checklist input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.checklist label { cursor: pointer; flex: 1; padding: .7rem 0; }
.checklist input:checked + label { opacity: .5; text-decoration: line-through; }

.rules-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.rules-list li:last-child { border-bottom: 0; }
.rules-list .ic { font-size: 1.15rem; flex: none; }
.rules-list b { font-size: .94rem; font-weight: 650; display: block; }
.rules-list span { font-size: .84rem; color: var(--text-muted); }

/* Recomendaciones / servicios */
.recs { display: grid; gap: .8rem; }
.rec {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.rec-photo { height: 140px; background: var(--surface-2) center/cover no-repeat; }
.rec-body { padding: .9rem 1rem 1rem; }
.rec-body h3 { font-size: 1.02rem; font-weight: 700; }
.rec-body p { font-size: .86rem; color: var(--text-muted); margin-top: .25rem; }
.rec-actions { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .7rem; }
.rec-actions a {
  display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .75rem;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
  font-size: .78rem; font-weight: 650;
}
.rec-actions a.primary { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.rec-cat { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .6rem; scrollbar-width: none; }
.rec-cat::-webkit-scrollbar { display: none; }
.rec-cat button {
  flex: none; padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 650;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}
.rec-cat button.on { background: var(--text); color: var(--bg); border-color: transparent; }

.price-tag { font-weight: 750; font-size: .95rem; }
.price-tag small { font-weight: 500; color: var(--text-muted); font-size: .76rem; }

/* Emergencias */
.emerg { display: grid; gap: .5rem; }
.emerg a {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .8rem 1rem;
}
.emerg b { font-size: .95rem; font-weight: 650; }
.emerg span { font-size: .8rem; color: var(--text-muted); display: block; }
.emerg .call { color: var(--brand); font-weight: 750; font-size: .85rem; white-space: nowrap; }

/* ── Barra inferior de acción ──────────────────────────── */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: .6rem 18px calc(.6rem + env(safe-area-inset-bottom));
  display: flex; gap: .5rem; justify-content: center;
}
.actionbar a {
  flex: 1; max-width: 190px; padding: .72rem .8rem; border-radius: 999px;
  font-size: .86rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 46px;
}
.actionbar a span { white-space: nowrap; }
.actionbar a.primary { background: var(--brand); color: var(--on-brand); border-color: transparent; }
body.has-actionbar { padding-bottom: 78px; }

/* ── Pie ───────────────────────────────────────────────── */
.exp-footer { text-align: center; padding: 2rem 18px 1.4rem; color: var(--text-muted); font-size: .78rem; }
.exp-footer a { font-weight: 650; color: var(--text-muted); }
.exp-footer .brandline { margin-top: .5rem; opacity: .8; }

/* ── Estados ───────────────────────────────────────────── */
.state {
  min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem;
  background: var(--bg); color: var(--text);
}
.state .inner { max-width: 340px; }
.state h1 { font-size: 1.4rem; margin-bottom: .5rem; }
.state p { color: var(--text-muted); font-size: .95rem; }
.state .mark {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 1.2rem;
  background: var(--surface-2); display: grid; place-items: center; font-size: 1.8rem;
}

.preview-banner {
  background: #14162B; color: #fff; text-align: center; font-size: .74rem;
  padding: .35rem; font-weight: 650; letter-spacing: .03em;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ── Iconos ────────────────────────────────────────────── */
.ic { flex: none; display: inline-block; vertical-align: -.2em; }

/* Redes sociales del encabezado: presentes pero sin robar atención. */
.social { display: flex; gap: .5rem; justify-content: center; margin-top: 1.1rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); transition: color .15s ease, border-color .15s ease;
}
.social a:hover, .social a:focus-visible { color: var(--brand); border-color: var(--brand); }

.ghost-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 0; color: var(--text-muted);
  font-size: .82rem; font-weight: 650; padding: .5rem .8rem; border-radius: 999px;
}
.ghost-btn:hover { color: var(--text); background: var(--surface-2); }

.item-order .ic, .rec-actions .ic, .quick .ic, .emerg .ic { flex: none; }
.rec-actions a { display: inline-flex; align-items: center; gap: .35rem; }
.gcard .icon-line { display: flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 650; margin-bottom: .3rem; }
.gcard .icon-line .ic { color: var(--brand); }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; }

/* ── Accesibilidad táctil ──────────────────────────────────
   Todo lo que se toca con el pulgar necesita al menos 40 px de alto.
   Un enlace de 19 px se falla constantemente en una mesa con poca luz. */
.chips a { padding: .6rem 1rem; min-height: 42px; display: inline-flex; align-items: center; }
.item-order {
  min-height: 40px; padding: .5rem .8rem; margin-left: -.8rem;
  border-radius: 999px;
}
.item-order:active { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.rec-actions a, .quick a, .social a, .copy-btn, .ghost-btn { min-height: 40px; }
.copy-btn { padding: .55rem .8rem; }
.rec-cat button { min-height: 40px; padding: .5rem .9rem; }

.emerg a { min-height: 56px; }
