/* Cervecería Cisne Negro · Menú, Pasaporte y panel · Sistema "Neón y tinta" (ver sitio/DESIGN.md) */

:root {
  --tinta: #0E0D0B;
  --carbon: #191714;
  --borde: #2B2823;
  --hueso: #F3EDE2;
  --gris: #A39B8E;
  --neon: #F2C97D;
  --pico: #FF5A1F;
  --lupulo: #B7C46A;
  --tinta-suave: #4A453D;   /* texto secundario sobre papel (AA sobre --hueso) */

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --pad: clamp(16px, 5vw, 32px);
  --bar-h: 118px;            /* alto de la barra + pestañas, para anclas */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--tinta); color: var(--hueso);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; }
p { margin: 0 0 .8em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible, .pase :focus-visible { outline-color: var(--pico); }

.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;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--pico); color: var(--tinta); font-weight: 800;
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: .02em; }
.fine { color: var(--gris); font-size: .875rem; }

.eyebrow {
  font-family: var(--f-mono); font-weight: 500; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--neon);
  margin-bottom: 8px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--pico); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; line-height: 1.1; text-align: center;
  border: 1.5px solid transparent; background: transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, opacity .2s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--pico); color: var(--tinta); }
.btn--primary:hover:not(:disabled) { background: #ff7442; }
.btn--ghost { border-color: var(--hueso); color: var(--hueso); }
.btn--ghost:hover:not(:disabled) { background: var(--hueso); color: var(--tinta); }
.btn--ink { border-color: var(--tinta); color: var(--tinta); }
.btn--ink:hover:not(:disabled) { background: var(--tinta); color: var(--hueso); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }
.btn--lg { min-height: 60px; font-size: 1.125rem; }
.btn--block { width: 100%; }

.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center; flex: none;
  border-radius: 50%; border: 1.5px solid currentColor; background: transparent;
}
.icon-btn svg { width: 22px; height: 22px; }

/* Sello / sticker de la mascota */
.sticker {
  display: block; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--hueso); border: 2px solid var(--tinta);
  box-shadow: 0 0 0 2px var(--hueso); transform: rotate(-6deg);
}
.sticker img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }

/* ---------- Barra superior + pestañas ---------- */
.mbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 13, 11, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
  padding-top: env(safe-area-inset-top);
}
.mbar__in {
  display: flex; align-items: center; gap: 12px; min-height: 60px;
  max-width: 1080px; margin: 0 auto; padding: 0 var(--pad);
}
.mbar__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.mbar__sticker { width: 40px; height: 40px; }
.mbar__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: .03em; font-size: 1.75rem; line-height: 1;
}
.mbar__pass { margin-left: auto; padding-left: 14px; }
.mbar__pass-ico { width: 12px; height: 24px; transform: rotate(18deg); --pluma-veta: var(--pico); }
.mbar__count {
  font-size: .8125rem; background: var(--tinta); color: var(--neon);
  padding: 2px 8px; border-radius: 999px; margin-right: -6px;
}

.tabs { border-top: 1px solid var(--borde); }
.tabs__in {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  max-width: 1080px; margin: 0 auto; padding: 6px var(--pad);
  scroll-snap-type: x proximity;
}
.tabs__in::-webkit-scrollbar { display: none; }
.tabs li { flex: none; scroll-snap-align: start; }
.tabs a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9375rem;
  color: var(--gris); white-space: nowrap;
}
.tabs a:hover { color: var(--hueso); }
.tabs a[aria-current="true"] { background: var(--hueso); color: var(--tinta); }

/* ---------- Secciones ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
.loading { color: var(--gris); padding: 48px 0; text-align: center; }
.msec { padding: 32px 0 40px; }
.msec--line { border-top: 1px solid var(--borde); }
.msec__head { margin-bottom: 18px; }
.msec h2 {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  letter-spacing: .02em; font-size: clamp(2.5rem, 11vw, 3.75rem); margin-bottom: 8px;
}
.msec__lead { color: var(--gris); max-width: 56ch; margin: 0; }

/* ---------- Filtro por perfil ---------- */
.filtro { margin-bottom: 18px; }
.filtro__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro__btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--borde); background: var(--carbon);
  font-weight: 700; font-size: .875rem; color: var(--hueso);
}
.filtro__btn[aria-pressed="true"] { background: var(--hueso); color: var(--tinta); border-color: var(--hueso); }
.filtro__desc { color: var(--gris); font-size: .875rem; margin: 10px 0 0; min-height: 1.4em; }
.filtro__desc b { color: var(--hueso); }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gris); flex: none; }
.dot--lupulada { background: var(--lupulo); }
.dot--oscura { background: #5a3a24; box-shadow: 0 0 0 1px var(--gris); }
.dot--acida { background: var(--pico); }
.dot--ligera { background: var(--neon); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--borde); color: var(--hueso);
}
.chip--lupulada { border-color: rgba(183,196,106,.45); }

/* ---------- Fichas de barril ---------- */
.taps { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .taps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vacio { color: var(--gris); padding: 18px; border: 1px dashed var(--borde); border-radius: 14px; margin: 0; }

.tap {
  display: flex; flex-direction: column;
  background: var(--carbon); border: 1px solid var(--borde); border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.tap__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tap__num { font-family: var(--f-mono); color: var(--gris); font-size: .8125rem; }
.tap__name {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.9rem, 8vw, 2.4rem); margin-bottom: 6px;
}
.tap__meta { font-family: var(--f-mono); font-weight: 500; color: var(--neon); font-size: .875rem; text-transform: uppercase; margin-bottom: 2px; }
.tap__guest { color: var(--gris); font-size: .875rem; margin: 0; }
.tap__notes { margin: 12px 0 4px; }
.tap__profile { color: var(--gris); font-size: .875rem; margin-bottom: 12px; }
.tap__story {
  font-size: .9375rem; padding: 10px 14px; border-radius: 12px;
  background: rgba(242, 201, 125, .07); border-left: 3px solid var(--neon); color: #E7DFD1;
  margin-bottom: 14px;
}
.tap__story--ask { font-style: italic; }
.tap__prices { display: flex; gap: 22px; padding: 12px 0; border-top: 1px dashed var(--borde); }
.tap__prices li { display: flex; flex-direction: column; }
.tap__prices span { font-family: var(--f-mono); font-size: .75rem; color: var(--gris); text-transform: uppercase; }
.tap__prices b { font-family: var(--f-mono); font-weight: 500; color: var(--pico); font-size: 1.25rem; }

.marida { border-top: 1px dashed var(--borde); padding-top: 12px; }
.marida__t { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gris); margin-bottom: 8px; }
.marida__lista { display: grid; gap: 8px; }
.mini {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  min-height: 64px; padding: 6px 12px 6px 6px; border-radius: 12px;
  background: rgba(243,237,226,.04); border: 1px solid var(--borde); text-decoration: none;
}
.mini:hover { border-color: var(--gris); }
.mini img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; }
.mini__n { font-weight: 700; line-height: 1.25; }
.mini__p { font-family: var(--f-mono); color: var(--pico); }

/* Destino de un ancla del maridaje */
.tap:target, .plato:target { animation: marca 1.6s ease-out 1; border-color: var(--neon); }
@keyframes marca { 0% { box-shadow: 0 0 0 4px rgba(242,201,125,.6); } 100% { box-shadow: 0 0 0 0 rgba(242,201,125,0); } }

/* ---------- Vuelo ---------- */
.vuelo {
  padding: 18px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, rgba(242,201,125,.14), transparent 55%), var(--carbon);
  border: 1px solid rgba(242, 201, 125, .35);
}
.vuelo__vasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.vaso {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  min-height: 112px; padding: 8px 4px; border-radius: 12px; border: 1px dashed var(--borde);
  background: transparent; width: 100%;
}
.vaso__copa {
  width: 30px; height: 50px; border: 2px solid var(--gris); border-top: 0;
  border-radius: 2px 2px 9px 9px; position: relative; overflow: hidden; flex: none;
}
.vaso__copa::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--neon); transition: height .35s ease; }
.vaso--lleno { border-style: solid; border-color: rgba(242,201,125,.45); }
.vaso--lleno .vaso__copa { border-color: var(--hueso); }
.vaso--lleno .vaso__copa::after { height: 74%; }
.vaso--lupulada .vaso__copa::after { background: #E9B44C; }
.vaso--oscura .vaso__copa::after { background: #3a2216; }
.vaso--acida .vaso__copa::after { background: #D9586E; }
.vaso--ligera .vaso__copa::after { background: #F2D27D; }
.vaso__n { font-size: .75rem; font-weight: 700; line-height: 1.15; word-break: break-word; }
.vaso__n--vacio { color: var(--gris); font-family: var(--f-mono); font-weight: 500; }
.vuelo__estado { font-weight: 700; margin: 4px 0 12px; }
.vuelo__opciones { display: grid; gap: 8px; }
.opcion {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; width: 100%;
  min-height: 56px; padding: 8px 14px; border-radius: 12px; text-align: left;
  border: 1px solid var(--borde); background: var(--tinta);
}
.opcion__box {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--gris);
  display: grid; place-items: center;
}
.opcion__box svg { width: 18px; height: 18px; opacity: 0; }
.opcion[aria-pressed="true"] { border-color: var(--neon); background: rgba(242,201,125,.08); }
.opcion[aria-pressed="true"] .opcion__box { background: var(--neon); border-color: var(--neon); color: var(--tinta); }
.opcion[aria-pressed="true"] .opcion__box svg { opacity: 1; }
.opcion:disabled { opacity: .45; cursor: not-allowed; }
.opcion__n { font-weight: 700; display: block; }
.opcion__e { font-family: var(--f-mono); font-size: .75rem; color: var(--gris); text-transform: uppercase; }
.opcion__p { font-family: var(--f-mono); color: var(--pico); }
.vuelo__pie {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--borde);
}
.vuelo__total { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.vuelo__total .mono { color: var(--gris); font-size: .8125rem; text-transform: uppercase; }
.vuelo__total b { font-family: var(--f-mono); font-weight: 500; color: var(--pico); font-size: 2rem; }
.vuelo__acciones { display: flex; gap: 8px; flex-wrap: wrap; }
#vuelo-nota { margin: 12px 0 0; }

/* Tarjeta del vuelo para el mesero */
.vcard {
  border: 0; padding: 0; margin: auto; width: min(94vw, 560px); max-height: 92dvh;
  background: var(--hueso); color: var(--tinta); border-radius: 22px;
  box-shadow: 0 0 0 3px var(--tinta), 0 0 0 6px var(--hueso);
}
.vcard::backdrop { background: rgba(8,7,6,.88); }
.vcard__in { padding: 26px 22px 22px; }
.vcard .eyebrow { color: var(--tinta-suave); }
.vcard__t { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.5rem, 12vw, 3.5rem); margin-bottom: 14px; }
.vcard__lista { counter-reset: v; display: grid; gap: 8px; margin-bottom: 16px; }
.vcard__lista li {
  counter-increment: v; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 2px solid var(--tinta);
}
.vcard__lista li::before {
  content: counter(v); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tinta); color: var(--hueso); font-family: var(--f-display); font-weight: 900; font-size: 1.4rem;
}
.vcard__n { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.75rem; line-height: 1; display: block; }
.vcard__e { font-family: var(--f-mono); font-size: .8125rem; color: var(--tinta-suave); text-transform: uppercase; }
.vcard__p { font-family: var(--f-mono); font-size: 1.125rem; }
.vcard__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 18px; }
.vcard__total .mono { color: var(--tinta-suave); text-transform: uppercase; font-size: .875rem; }
.vcard__total b { font-family: var(--f-mono); font-weight: 500; font-size: 2.5rem; }
.vcard__cerrar { width: 100%; border-color: var(--tinta); color: var(--tinta); }
.vcard__cerrar:hover:not(:disabled) { background: var(--tinta); color: var(--hueso); }

/* ---------- Latas ---------- */
.grupo { margin-bottom: 20px; }
.grupo__h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.grupo__h h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; display: inline-flex; align-items: center; gap: 10px; }
.grupo__h p { color: var(--gris); font-size: .875rem; margin: 0; }
.rows { border-top: 1px solid var(--borde); }
.row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--borde);
}
.row__n { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.row__e { font-family: var(--f-mono); font-size: .75rem; color: var(--neon); text-transform: uppercase; display: block; margin-top: 2px; }
.row__o { color: var(--gris); font-size: .875rem; display: block; }
.row__p { font-family: var(--f-mono); color: var(--pico); font-size: 1.0625rem; white-space: nowrap; }

/* ---------- Comida ---------- */
.seccion { margin-bottom: 26px; }
.seccion__h { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; margin-bottom: 12px; color: var(--neon); }
.platos { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .platos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plato {
  display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: start;
  background: var(--carbon); border: 1px solid var(--borde); border-radius: 16px; padding: 10px;
}
.plato__img { width: 108px; height: 108px; border-radius: 11px; object-fit: cover; background: var(--borde); }
.plato__body { min-width: 0; padding: 2px 4px 2px 0; }
.plato__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.plato__n { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.375rem; line-height: 1.05; }
.plato__p { font-family: var(--f-mono); color: var(--pico); white-space: nowrap; }
.plato__d { color: #D9D1C3; font-size: .9375rem; margin: 6px 0 0; }
.pidelo { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 2px 2px; border-top: 1px dashed var(--borde); }
.pidelo__t { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin-right: 2px; }
.pidelo a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid rgba(242,201,125,.4); text-decoration: none;
  font-weight: 700; font-size: .875rem; color: var(--neon);
}
.pidelo a:hover { background: rgba(242,201,125,.1); }

/* ---------- Pie ---------- */
.mfoot { border-top: 1px solid var(--borde); background: var(--hueso); color: var(--tinta); }
.mfoot__in { max-width: 1080px; margin: 0 auto; padding: 32px var(--pad) calc(40px + env(safe-area-inset-bottom)); }
.mfoot__note { background: #fff; border: 2px solid var(--tinta); border-radius: 14px; padding: 12px 16px; box-shadow: 4px 4px 0 var(--tinta); margin-bottom: 26px; }
.mfoot__h { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2rem; margin-bottom: 8px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 18px; max-width: 520px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid rgba(14,13,11,.18); text-align: left; vertical-align: top; }
.hours th { font-weight: 700; padding-right: 16px; }
.hours td { font-family: var(--f-mono); font-weight: 500; font-size: .875rem; text-align: right; }
.hours .off th, .hours .off td { color: var(--tinta-suave); }
.mfoot__addr { font-style: normal; font-weight: 700; margin-bottom: 18px; }
.mfoot__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.mfoot .btn--ghost { border-color: var(--tinta); color: var(--tinta); }
.mfoot .btn--ghost:hover { background: var(--tinta); color: var(--hueso); }
.mfoot :focus-visible { outline-color: var(--pico); box-shadow: 0 0 0 6px var(--tinta); }
.mfoot__legal { font-size: .8125rem; color: var(--tinta-suave); margin: 0; }

/* ---------- Pasaporte (panel) ---------- */
.pase {
  border: 0; padding: 0; margin: 0 0 0 auto;
  width: 100%; max-width: 520px; height: 100dvh; max-height: 100dvh;
  background: var(--hueso); color: var(--tinta);
  display: flex; flex-direction: column; overflow: hidden;
}
.pase:not([open]) { display: none; }
.pase::backdrop { background: rgba(8,7,6,.78); }
.pase__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px;
  background: var(--tinta); color: var(--hueso); flex: none;
}
.pase__t { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .03em; font-size: 1.9rem; }
.pase__body { overflow-y: auto; padding: 18px var(--pad) calc(28px + env(safe-area-inset-bottom)); flex: 1; overscroll-behavior: contain; }
.pase a { color: var(--tinta); font-weight: 700; }
.pase__msg:empty, .pase__err:empty { display: none; }
.pase__msg { background: #fff; border-left: 4px solid var(--lupulo); padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.pase__err { background: #fff; border-left: 4px solid var(--pico); padding: 10px 12px; border-radius: 8px; font-weight: 700; color: #8A2408; }
.pase .fine { color: var(--tinta-suave); }
.pase__intro > p { font-size: 1.0625rem; }

.premios { display: grid; gap: 10px; margin: 14px 0 6px; }
.premios li { display: flex; align-items: center; gap: 14px; background: #fff; border: 2px solid var(--tinta); border-radius: 14px; padding: 10px 14px; }
.premios__n {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 3px dashed var(--tinta); font-family: var(--f-display); font-weight: 900; font-size: 1.4rem; transform: rotate(-8deg);
}
.premios__n--big { background: var(--pico); border-style: solid; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: rgba(14,13,11,.08); border-radius: 999px; margin: 18px 0 14px; }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; color: var(--tinta-suave); }
.seg button[aria-selected="true"] { background: var(--tinta); color: var(--hueso); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field small { color: var(--tinta-suave); font-size: .8125rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px;
  border: 2px solid var(--tinta); background: #fff; color: var(--tinta); font-size: 1.0625rem;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input[aria-invalid="true"], .codigo[aria-invalid="true"] { border-color: var(--pico); box-shadow: 0 0 0 3px rgba(255,90,31,.25); }
.pin { font-family: var(--f-mono); letter-spacing: .5em; max-width: 200px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--tinta); }
.check input[aria-invalid="true"] { outline: 3px solid var(--pico); outline-offset: 2px; }
.opc { font-weight: 400; color: var(--tinta-suave); }

.pase__hola { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.9rem; line-height: 1; margin-bottom: 14px; }
.libreta {
  background: #fff; border: 2px solid var(--tinta); border-radius: 18px; padding: 16px 14px 12px;
  box-shadow: 5px 5px 0 var(--tinta); margin-bottom: 18px;
}
.sellos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; }
.sello {
  position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  border: 2.5px dashed rgba(14,13,11,.4); color: rgba(14,13,11,.45);
  font-family: var(--f-display); font-weight: 900; font-size: 1.25rem;
}
.sello--premio { border: 2.5px solid var(--pico); color: var(--tinta); }
.sello__tag {
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  background: var(--pico); color: var(--tinta); font-family: var(--f-mono); font-size: .625rem; font-weight: 500;
  padding: 1px 5px; border-radius: 999px; white-space: nowrap; letter-spacing: 0;
}
.sello--lleno { background: var(--tinta); border: 2.5px solid var(--tinta); color: var(--hueso); transform: rotate(-8deg); }
.sello--lleno.sello--premio { background: var(--pico); border-color: var(--tinta); color: var(--tinta); }
.sello svg { width: 42%; height: 70%; transform: rotate(18deg); --pluma-veta: var(--tinta); }
.sello--lleno .sello__tag { background: var(--tinta); color: var(--neon); }
.sello--lleno.sello--premio svg { color: var(--tinta); --pluma-veta: var(--pico); }
.sello--nuevo { animation: sellar .7s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes sellar {
  0% { transform: scale(1.9) rotate(-28deg); opacity: 0; }
  55% { transform: scale(.9) rotate(-6deg); opacity: 1; }
  100% { transform: scale(1) rotate(-8deg); }
}
.libreta__prog { margin: 14px 0 0; font-weight: 700; }
.libreta__prog .mono { color: var(--tinta-suave); font-size: .8125rem; display: block; font-weight: 500; }

.bloque { margin-bottom: 18px; }
.bloque__h { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; margin-bottom: 8px; }
.fila { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.pase .btn--ghost { border-color: var(--tinta); color: var(--tinta); }
.pase .btn--ghost:hover:not(:disabled) { background: var(--tinta); color: var(--hueso); }
.codigo__label { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.6rem; }
.codigo {
  width: 100%; min-height: 84px; text-align: center; border-radius: 16px; border: 3px solid var(--tinta); background: #fff;
  font-family: var(--f-mono); font-weight: 500; font-size: 3rem; letter-spacing: .4em; padding: 8px 0 8px .4em; color: var(--tinta);
}
.hecho { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--tinta); border-radius: 14px; padding: 12px 14px; font-weight: 700; }
.hecho svg { width: 26px; height: 26px; flex: none; color: #4C5A10; }

.premio {
  background: var(--tinta); color: var(--hueso); border-radius: 20px; padding: 22px 18px; text-align: center;
  box-shadow: 0 0 0 3px var(--pico);
}
.premio__k { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; color: var(--neon); }
.premio__nombre { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.9rem; line-height: 1.05; }
.premio__codigo { font-size: clamp(2.2rem, 11vw, 3rem); color: var(--pico); background: rgba(255,90,31,.08); border: 2px dashed var(--pico); border-radius: 14px; padding: 8px; margin: 12px 0; letter-spacing: .08em; }
.premio__inst { font-weight: 700; font-size: 1.0625rem; }
.premio__vence { color: var(--gris); font-size: .875rem; }
.premio .btn { margin-top: 6px; }

.nps fieldset { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
.nps__q { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.6rem; line-height: 1.05; margin-bottom: 12px; padding: 0; }
.nps__escala { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.nps__escala button {
  min-height: 48px; border-radius: 12px; border: 2px solid var(--tinta); background: #fff;
  font-family: var(--f-mono); font-weight: 500; font-size: 1.125rem; color: var(--tinta);
}
.nps__escala button[aria-checked="true"] { background: var(--tinta); color: var(--hueso); }
.nps__ejes { display: flex; justify-content: space-between; font-size: .75rem; color: var(--tinta-suave); margin-top: 6px; }
@media (min-width: 420px) { .nps__escala { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; } .nps__escala button { font-size: 1rem; } }
.nps .field { margin: 12px 0 14px; }
.gracias { background: #fff; border: 2px solid var(--tinta); border-radius: 18px; padding: 18px; }
.gracias__t { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.75rem; line-height: 1.05; }
.gracias .btn { margin-top: 4px; color: var(--tinta); }

.cortesias { display: grid; gap: 8px; }
.cortesias li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; background: #fff; border: 2px solid var(--tinta); border-radius: 14px; padding: 10px 14px; }
.cortesias .mono { font-size: 1.25rem; }
.cortesias small { grid-column: 1 / -1; color: var(--tinta-suave); }
.salir { margin-top: 8px; }

/* Pestañas del Pasaporte (Mi Pasaporte · Ranking) */
.pase__tabs { flex: none; padding: 12px var(--pad) 2px; background: var(--hueso); border-bottom: 1px solid rgba(14,13,11,.12); }
.seg--pase { margin: 0 0 10px; }
.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0; }
.seg--3 button[aria-pressed="true"] { background: var(--tinta); color: var(--hueso); }

/* Aviso discreto de "sin conexión" y estado de carga */
.pase__red {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 12px;
  border-radius: 10px; background: rgba(14,13,11,.06); color: var(--tinta-suave);
  font-size: .875rem; font-weight: 600;
}
.pase__red svg { width: 18px; height: 18px; flex: none; }
.pase__cargando { color: var(--tinta-suave); font-weight: 600; padding: 24px 0; text-align: center; }
.mbar__pass--sinred .mbar__count { box-shadow: inset 0 0 0 1.5px var(--gris); color: var(--gris); }

/* Saludo + posición del mes */
.pase__saludo { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pase__saludo .pase__hola { margin: 0; }
.rank-chip {
  min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--tinta);
  background: var(--neon); color: var(--tinta); font-size: .9375rem; transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--tinta);
}
.rank-chip:hover { transform: rotate(-3deg) translateY(-1px); }

/* Ranking */
.rank__h { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.9rem; line-height: 1; margin-bottom: 8px; }
.rank__h:focus, .pase__t:focus { outline: none; }
.rank__h:focus-visible { outline: 3px solid var(--pico); }
.rank__yo {
  background: var(--tinta); color: var(--hueso); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px;
}
.rank__yo p { margin: 0; font-weight: 700; font-size: 1.0625rem; }
.rank__yo b { color: var(--neon); font-size: 1.25rem; }
.rank__yo small { color: var(--gris); display: block; margin-top: 2px; }
.rank__yo .linkbtn { color: var(--neon); }
.rank__estado { font-size: .875rem; color: var(--tinta-suave); margin: 0 0 6px; min-height: 1.3em; }
.linkbtn {
  background: none; border: 0; padding: 4px 0; min-height: 44px; font-weight: 800;
  text-decoration: underline; text-underline-offset: 3px; color: inherit;
}
.rank { display: grid; gap: 6px; margin-bottom: 18px; }
.rank[aria-busy="true"] { opacity: .55; }
.rank__fila {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  min-height: 52px; padding: 6px 14px 6px 6px; border-bottom: 1px solid rgba(14,13,11,.14);
}
.rank__fila--podio { background: #fff; border: 2px solid var(--tinta); border-radius: 14px; box-shadow: 4px 4px 0 var(--tinta); margin-bottom: 4px; }
.rank__fila--yo { outline: 3px solid var(--pico); outline-offset: -3px; border-radius: 14px; }
.rank__pos { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.rank__n { font-family: var(--f-display); font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--tinta-suave); }
.rank__pos--1 .rank__sticker { width: 44px; height: 44px; }
.rank__pos--1 .rank__n {
  position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pico); color: var(--tinta); font-size: .95rem; border: 2px solid var(--tinta);
}
.rank__pluma { position: absolute; inset: 2px 12px; width: 20px; height: 40px; transform: rotate(18deg); color: var(--tinta); --pluma-veta: var(--neon); }
.rank__pos--3 .rank__pluma { color: var(--tinta-suave); --pluma-veta: var(--hueso); }
.rank__pos--2 .rank__n, .rank__pos--3 .rank__n {
  position: absolute; right: -2px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--hueso); color: var(--tinta); font-size: .95rem; border: 2px solid var(--tinta);
}
.rank__alias { font-weight: 800; font-size: 1.0625rem; display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.rank__tu { font-family: var(--f-mono); font-weight: 500; font-size: .6875rem; text-transform: uppercase; background: var(--pico); color: var(--tinta); border-radius: 999px; padding: 1px 7px; }
.rank__v { font-size: .9375rem; white-space: nowrap; }
.rank__vacio {
  display: flex; align-items: center; gap: 14px; padding: 18px 16px; border: 2px dashed rgba(14,13,11,.35);
  border-radius: 16px; font-weight: 700;
}
.rank__vacio-ico { width: 18px; height: 36px; flex: none; transform: rotate(18deg); color: var(--tinta); --pluma-veta: var(--hueso); }

/* Interruptor accesible (role="switch") */
.rank__pref { border-top: 1px dashed rgba(14,13,11,.3); padding-top: 14px; }
.switch {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 4px 0;
  border: 0; background: none; text-align: left; font-weight: 700; color: var(--tinta);
}
.switch__track {
  flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px;
  background: rgba(14,13,11,.25); border: 2px solid var(--tinta); transition: background-color .2s;
}
.switch__thumb {
  position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--tinta); transition: transform .2s ease;
}
.switch[aria-checked="true"] .switch__track { background: var(--pico); }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(22px); }
.switch:disabled { opacity: .6; cursor: progress; }
.rank__pref .fine { margin: 6px 0 0 66px; }

@media (min-width: 760px) {
    .msec { padding: 44px 0 52px; }
  .plato { grid-template-columns: 132px 1fr; }
  .plato__img { width: 132px; height: 132px; }
  .vuelo { padding: 24px; }
  .vuelo__opciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover:not(:disabled) { transform: none; }
}

/* =====================================================================
   Ajustes multi-dispositivo (auditoría responsiva 2026-10-06)
   ===================================================================== */
/* Pantallas de 320–359 px (Galaxy S9+, iPhone SE 1ª gen): botón del Pasaporte compacto */
@media (max-width: 359px) {
  .mbar__pass > span:not(.mbar__count) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .mbar__pass { padding-left: 12px; padding-right: 12px; min-width: 48px; justify-content: center; }
  .mbar__title { font-size: 1.5rem; }
}
/* Los códigos de cortesía nunca se parten en dos líneas */
.cortesias .mono, .premio__codigo { white-space: nowrap; }
.premio__codigo { font-size: clamp(1.8rem, 10vw, 3rem); }
/* Pantallas táctiles: objetivos de al menos 44 px */
@media (pointer: coarse) {
  .check { min-height: 44px; align-items: center; }
  .check input { margin-top: 0; }
}
/* Teléfonos en horizontal: el Pasaporte ocupa todo el alto disponible */
@media (orientation: landscape) and (max-height: 540px) {
  .pase__body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
/* Windows en alto contraste */
@media (forced-colors: active) {
  .btn, .tabs a, .tabs button, [role="tab"], .chip { border: 1px solid ButtonText; }
  .sticker { forced-color-adjust: none; }
}

/* =====================================================================
   Imágenes de las cervezas (ilustración en el vaso de Cisne Negro + etiqueta oficial)
   ===================================================================== */
.tap__fig { position: relative; margin: -18px -18px 16px; }
.tap__img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: #FBF6E6; }
.tap__etq {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 0 10px;
  min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1.5px solid rgba(242,201,125,.5);
  background: transparent; color: var(--neon); font-weight: 800; font-size: .8125rem; cursor: pointer;
}
.tap__etq:hover { background: rgba(242,201,125,.12); }
.tap__etq img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--tinta); }
.mini__casa {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--neon); color: var(--tinta); font: 800 .6875rem/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .04em;
}
.pidelo__img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 30% 50%; background: #FBF6E6; border: 1px solid rgba(242,201,125,.4); }
.etq { border: 0; padding: 0; background: transparent; max-width: min(92vw, 560px); width: 100%; }
.etq::backdrop { background: rgba(8,7,6,.9); }
.etq__in { background: var(--hueso); color: var(--tinta); border-radius: 22px; padding: 20px; display: grid; gap: 12px; text-align: center; }
.etq .eyebrow { color: var(--tinta-suave); }
.etq__t { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.75rem; line-height: 1; margin: 0; }
.etq__img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 14px; }
.etq__cerrar { justify-self: center; border-color: var(--tinta); color: var(--tinta); }
@media (orientation: landscape) and (max-height: 540px) { .etq__img { max-height: 58vh; } }

/* =====================================================================
   v2 · Mi pedido (mostrar al mesero), Wi-Fi y app instalable
   ===================================================================== */
/* Barra superior: botón Wi-Fi (ícono + texto en pantallas anchas; solo ícono en angostas) */
.mbar__wifi { margin-left: auto; padding-left: 14px; padding-right: 16px; }
.mbar__wifi:not([hidden]) ~ .mbar__pass { margin-left: 0; }
.mbar__wifi-ico { width: 20px; height: 20px; flex: none; }
/* Con sesión el botón del Pasaporte suma el contador de sellos: en teléfonos angostos queda
   ícono + contador (el aria-label ya dice "Pasaporte Cisne: N de M sellos"). */
@media (max-width: 419px) {
  .mbar__in { gap: 10px; }
  .mbar__pass.mbar__pass--socio > span:not(.mbar__count) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .mbar__pass.mbar__pass--socio { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 479px) {
  .mbar__wifi { width: 44px; min-width: 44px; padding: 0; }
  .mbar__wifi-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Selector de medida o variante + "＋ Agregar" */
.pedir { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.opciones { display: flex; flex-wrap: wrap; gap: 6px; }
.opc-chip {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 8px 10px;
  border-radius: 999px; border: 1.5px solid var(--borde); background: var(--tinta); color: var(--hueso);
  font-weight: 700; font-size: .8125rem; line-height: 1.2;
}
.opc-chip__t { font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; }
.opc-chip__p { font-family: var(--f-mono); font-weight: 500; color: var(--pico); }
.opc-chip:hover { border-color: var(--gris); }
.opc-chip[aria-pressed="true"] { background: var(--hueso); color: var(--tinta); border-color: var(--hueso); }
.opc-chip[aria-pressed="true"] .opc-chip__p { color: var(--tinta); }
.agregar {
  margin-left: auto; white-space: nowrap; padding-left: 10px; padding-right: 14px; gap: 5px;
  border-color: var(--pico); color: var(--pico); background: transparent;
}
.agregar:hover:not(:disabled), .agregar:active { background: var(--pico); color: var(--tinta); }
.agregar span[aria-hidden] { font-size: 1.15em; line-height: 1; }
.agotado { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin: 0; }
.tap__pedir { padding: 12px 0; border-top: 1px dashed var(--borde); }
.tap__agotado { padding: 0 0 12px; }
.tap__agotado .tap__prices { padding-bottom: 6px; }
.plato__pedir { grid-column: 1 / -1; padding: 8px 2px 2px; border-top: 1px dashed var(--borde); }
.plato__pedir--solo { padding: 10px 0 0; border-top: 0; justify-content: flex-end; }
.plato__agotado { margin-top: 8px; }
.row__der { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row--var { grid-template-columns: 1fr; }
.row--var .row__pedir { grid-column: 1 / -1; padding-top: 4px; }

/* Barra flotante "Mi pedido · N · $total" */
.pbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; pointer-events: none;
  display: flex; justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
}
.pbar__btn {
  pointer-events: auto; width: min(100%, 520px); min-height: 56px; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 22px; border-radius: 999px; border: 0; background: var(--pico); color: var(--tinta);
  font-weight: 800; font-size: 1.0625rem; text-align: left;
  box-shadow: 0 0 0 2px var(--tinta), 0 12px 32px rgba(0,0,0,.55);
}
.pbar__btn:hover { background: #ff7442; }
.pbar__n { background: var(--tinta); color: var(--neon); border-radius: 999px; min-width: 30px; padding: 2px 9px; text-align: center; font-size: .9375rem; }
.pbar__total { margin-left: auto; background: rgba(14,13,11,.12); border-radius: 999px; padding: 8px 14px; font-size: 1.0625rem; }
.pbar--aviso .pbar__t::after { content: " · revisa"; font-weight: 600; }
body.con-pedido .mfoot__in { padding-bottom: calc(40px + 80px + env(safe-area-inset-bottom)); }

/* Aviso breve ("Agregado: ¡Alarma! 12 oz") */
.toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0;
  background: var(--hueso); color: var(--tinta); border: 2px solid var(--tinta); border-radius: 14px;
  padding: 10px 16px; font-weight: 700; box-shadow: 0 10px 28px rgba(0,0,0,.5);
  pointer-events: none; transition: opacity .2s ease;
}
.toast:empty { opacity: 0; padding: 0; border: 0; }
body.con-pedido .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* Panel "Mi pedido" (reutiliza el panel lateral del Pasaporte) */
.pedido__intro { margin-bottom: 14px; }
.pedido__vacio { font-weight: 700; font-size: 1.0625rem; padding: 18px 16px; border: 2px dashed rgba(14,13,11,.35); border-radius: 16px; }
.plineas { display: grid; gap: 10px; margin-bottom: 16px; }
.pl { background: #fff; border: 2px solid var(--tinta); border-radius: 16px; padding: 12px 14px; }
.pl--aviso { border-color: var(--pico); box-shadow: 0 0 0 2px var(--pico); }
.pl__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pl__info { min-width: 0; }
.pl__n { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.4rem; line-height: 1.05; margin: 0 0 2px; overflow-wrap: anywhere; }
.pl__d { color: var(--tinta-suave); font-size: .8125rem; margin: 0; text-transform: uppercase; }
.pl__vuelo { font-size: .875rem; font-weight: 600; margin: 4px 0 0; }
.pl__imp { font-family: var(--f-mono); font-weight: 500; font-size: 1.125rem; white-space: nowrap; }
.pl__ctrl { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.cant { display: inline-flex; align-items: center; border: 2px solid var(--tinta); border-radius: 999px; }
.cant__b { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; font-size: 1.4rem; font-weight: 800; color: var(--tinta); display: grid; place-items: center; }
.cant__b:hover:not(:disabled) { background: rgba(14,13,11,.08); }
.cant__b:disabled { opacity: .3; cursor: not-allowed; }
.cant__v { min-width: 2.2ch; text-align: center; font-size: 1.125rem; }
.pl__quitar { padding: 4px 6px; }
.pl__nota { margin-top: 8px; }
.pl__nota-in {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: 1rem;
  border: 1.5px dashed rgba(14,13,11,.45); background: transparent; color: var(--tinta);
}
.pl__nota-in:focus { border-style: solid; border-color: var(--tinta); background: #fff; }
.pl__nota-in::placeholder { color: #6b655c; }
.pl__aviso { margin-top: 10px; padding: 8px 10px; border-left: 4px solid var(--pico); border-radius: 8px; background: rgba(255,90,31,.1); }
.pl__aviso p { margin: 0 0 8px; font-weight: 800; color: #8A2408; }
.pl__antes { font-weight: 500; color: var(--tinta-suave); font-size: .875rem; }
.pl__aviso-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.pedido__mesa input { max-width: 220px; }
.pedido__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0 2px; padding-top: 12px; border-top: 2px solid var(--tinta); }
.pedido__total span.mono { color: var(--tinta-suave); text-transform: uppercase; font-size: .875rem; }
.pedido__total b.mono { font-size: 2rem; font-weight: 500; }
.pedido__pie > .fine { margin-bottom: 14px; }
.pedido__vaciar { margin-top: 10px; }
.confirma { margin-top: 10px; background: #fff; border: 2px solid var(--tinta); border-radius: 14px; padding: 12px; }
.confirma p { margin: 0 0 10px; }

/* Tarjeta para el mesero: pantalla completa, alto contraste, letra grande */
.vcard--pedido {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0;
  border-radius: 0; box-shadow: none; overflow-y: auto; overscroll-behavior: contain;
}
.vcard--pedido[open] { display: block; }
.vcard--pedido .vcard__in {
  max-width: 720px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(20px + env(safe-area-inset-top)) var(--pad) calc(20px + env(safe-area-inset-bottom));
}
.vcard :focus-visible { outline-color: var(--pico); }
.vcard__t:focus { outline: none; }
.ptar__cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ptar__cab .vcard__t { margin-bottom: 6px; }
.ptar__mesa {
  margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 9vw, 2.6rem); line-height: 1;
  background: var(--tinta); color: var(--hueso); padding: 8px 16px 6px; border-radius: 12px; transform: rotate(-2deg);
}
.ptar__h {
  font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: .9375rem;
  color: var(--tinta); margin: 18px 0 0; padding-bottom: 6px; border-bottom: 4px solid var(--tinta);
}
.ptar__lista > li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px 0; border-bottom: 2px solid var(--tinta);
}
.ptar__c { font-size: 1.9rem; line-height: 1; min-width: 2.4ch; }
.ptar__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ptar__info .vcard__n { font-size: clamp(1.6rem, 7vw, 2rem); overflow-wrap: anywhere; }
.ptar__info .vcard__e { font-size: .9375rem; color: var(--tinta); font-weight: 500; }
.ptar__vuelo { list-style: decimal; padding-left: 1.3em; margin: 4px 0 0; font-weight: 800; font-size: 1.0625rem; }
.ptar__nota { display: inline-block; margin-top: 6px; padding: 3px 10px; background: var(--tinta); color: var(--neon); border-radius: 8px; font-weight: 800; font-size: 1.0625rem; align-self: flex-start; }
.ptar__lista .vcard__p { font-size: 1.25rem; }
.vcard--pedido .vcard__total { margin: 18px 0 4px; }
.ptar__fine { font-weight: 800; font-size: 1.0625rem; margin: 0 0 20px; }
.ptar__acc {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: auto;
  position: sticky; bottom: 0; z-index: 1; background: var(--hueso);
  padding: 12px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 14px -14px rgba(14,13,11,.45);
}
.ptar__acc .btn { min-height: 56px; font-size: 1.0625rem; }
.ptar__acc .ptar__ok { grid-column: 1 / -1; }

/* QR del pedido: el mesero lo escanea con la app del equipo (negro sobre crema, siempre arriba) */
.ptar__qr { text-align: center; margin: 10px 0 4px; }
.ptar__qr-t { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.375rem; line-height: 1.05; margin: 0 0 10px; }
.ptar__qr-img {
  width: min(66vw, 264px, 46dvh); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center;
  border: 3px solid var(--tinta); border-radius: 14px; overflow: hidden; background: var(--hueso);
}
.ptar__svg { width: 100%; height: 100%; display: block; }
.ptar__qr-msg { font-weight: 700; color: var(--tinta-suave); padding: 14px; font-size: .9375rem; }
.ptar__codigo { margin: 10px 0 0; font-size: clamp(1.6rem, 8vw, 2rem); line-height: 1; letter-spacing: .08em; font-weight: 500; }
.ptar__qr-nota { margin: 6px 0 0; font-weight: 700; font-size: .9375rem; }
.ptar__qr-aviso {
  margin: 10px auto 0; max-width: 34ch; padding: 8px 12px; border-left: 4px solid var(--pico); border-radius: 8px;
  background: rgba(255,90,31,.12); font-weight: 800; color: #8A2408; text-align: left; font-size: .9375rem;
}
.ptar__nuevo { margin-top: 12px; }
.ptar__tomado { background: var(--tinta); color: var(--hueso); border-radius: 18px; padding: 22px 18px; }
.ptar__tomado:focus { outline: none; }
.ptar__tomado-t {
  margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: 1.02;
  font-size: clamp(2rem, 9vw, 2.6rem); overflow-wrap: anywhere;
}
.ptar__check {
  display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 50%; vertical-align: -.12em;
  background: var(--lupulo); color: var(--tinta); font-size: .8em;
}
.ptar__tomado-p { margin: 8px 0 0; font-weight: 700; color: var(--neon); }

/* Pantallas medianas y grandes: QR en su columna junto al pedido */
@media (min-width: 760px) {
  .vcard--pedido .vcard__in { max-width: 1120px; }
  .ptar__cuerpo { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
  .ptar__qr {
    position: sticky; top: 12px; margin: 18px 0 0; padding: 20px 18px;
    border: 3px solid var(--tinta); border-radius: 22px; background: #fff;
  }
  .ptar__qr-img { width: min(100%, 300px, 52dvh); }
  .ptar__pedido > #ptar-secciones > .ptar__sec:first-child .ptar__h { margin-top: 18px; }
  /* Los botones van justo debajo del pedido (no al fondo de la pantalla) en la columna del pedido */
  .ptar__acc { margin-top: 8px; box-shadow: none; width: 100%; max-width: calc(100% - 360px - clamp(28px, 4vw, 56px)); margin-left: auto; }
}/* Teléfono horizontal: título y QR más compactos para que el código quede a la vista */
@media (min-width: 760px) and (max-height: 540px) {
  .vcard--pedido .vcard__t { font-size: 2.25rem; margin-bottom: 2px; }
  .ptar__mesa { font-size: 1.6rem; }
  .ptar__qr { top: 8px; margin-top: 8px; padding: 12px 14px; }
  .ptar__qr-t { font-size: 1.125rem; margin-bottom: 6px; }
  .ptar__qr-img { width: min(100%, 300px, 42dvh); }
  .ptar__codigo { font-size: 1.5rem; margin-top: 6px; }
}


/* Pedido sin QR: resumen centrado con todo el ancho disponible. */
body[data-pedido-qr="false"] .vcard--pedido .vcard__in { max-width: 720px; }
body[data-pedido-qr="false"] .ptar__cuerpo { display: block; }
body[data-pedido-qr="false"] .ptar__acc { max-width: none; margin-left: 0; }

/* Diálogo del Wi-Fi */
.wifi { overflow-y: auto; }
.wifi__estado { font-weight: 700; color: var(--tinta-suave); }
.wifi__dl { display: grid; gap: 10px; margin: 0 0 14px; }
.wifi__fila { background: #fff; border: 2px solid var(--tinta); border-radius: 14px; padding: 10px 12px; }
.wifi__fila dt { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--tinta-suave); }
.wifi__fila dd { margin: 2px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wifi__v { flex: 1; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; user-select: all; -webkit-user-select: all; }
.wifi__fila .btn { flex: none; }
.wifi__abierta { font-weight: 700; }
.wifi__qr { margin: 6px 0 4px; text-align: center; }
.wifi__qr-img { width: min(54vw, 220px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; border: 3px solid var(--tinta); border-radius: 14px; overflow: hidden; background: var(--hueso); }
.wifi__svg { width: 100%; height: 100%; display: block; }
.wifi__qr-cargando { font-size: .875rem; color: var(--tinta-suave); padding: 12px; }
.wifi__qr figcaption { font-weight: 600; font-size: .9375rem; margin-top: 8px; }
.wifi__socios p, .wifi__error p { font-size: 1.0625rem; }
.wifi__socios { margin-bottom: 8px; }
.wifi__copiado { min-height: 1.4em; font-weight: 800; color: #4C5A10; margin: 6px 0 10px; }
.copiar-respaldo { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }

/* Tarjeta "Lleva el Cisne en tu inicio" (dentro de Mi Pasaporte) */
.instalar { background: #fff; border: 2px solid var(--tinta); border-radius: 18px; padding: 14px; box-shadow: 5px 5px 0 var(--pico); }
.instalar__cab { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.instalar__cab img { width: 56px; height: 56px; border-radius: 14px; border: 2px solid var(--tinta); flex: none; }
.instalar__cab .bloque__h { margin: 0 0 2px; font-size: 1.4rem; line-height: 1.05; }
.instalar__cab p { margin: 0; font-size: .9375rem; }
.pasos { counter-reset: paso; display: grid; gap: 6px; margin-bottom: 8px; }
.pasos li { counter-increment: paso; position: relative; padding-left: 36px; min-height: 32px; font-weight: 600; line-height: 1.9; }
.pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: 3px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tinta); color: var(--hueso); font-family: var(--f-display); font-weight: 900; line-height: 1;
}
.pasos__ico { display: inline-grid; place-items: center; width: 28px; height: 28px; vertical-align: middle; border: 1.5px solid var(--tinta); border-radius: 8px; color: #0A66D8; }
.pasos__ico svg { width: 18px; height: 18px; }
.instalar__texto { font-weight: 600; margin-bottom: 4px; }
.instalar kbd { font-family: var(--f-mono); font-size: .8125rem; border: 1.5px solid var(--tinta); border-bottom-width: 3px; border-radius: 6px; padding: 0 5px; }
.instalar .linkbtn { display: block; margin: 4px auto 0; }

@media (forced-colors: active) {
  .opc-chip, .pl, .cant, .pbar__btn { border: 1px solid ButtonText; }
  .opc-chip[aria-pressed="true"] { outline: 3px solid Highlight; }
}

/* Las fichas nunca ensanchan la columna (1fr tiene min-width:auto): si algo tarda en cargar
   (fuentes, imágenes), la fila superior se acomoda en dos líneas en vez de desbordar a 320 px. */
@media (max-width: 719px) { .taps { grid-template-columns: minmax(0, 1fr); } }
.tap { min-width: 0; }
.tap__top { flex-wrap: wrap; }

/* Instalar la app: botón discreto en la barra (solo con sesión) + guía por dispositivo */
.mbar__app { margin-left: auto; padding-left: 12px; padding-right: 14px; gap: 6px; border-color: rgba(242,201,125,.55); }
.mbar__app:not([hidden]) ~ .mbar__wifi, .mbar__app:not([hidden]) ~ .mbar__pass { margin-left: 0; }
.mbar__app-ico { width: 20px; height: 20px; flex: none; color: var(--neon); }
.mbar__app-corto { display: none; }
.mbar__app:hover .mbar__app-ico, .mbar__app:focus-visible .mbar__app-ico { color: currentColor; }
/* Un solo destello suave al aparecer, para que se note sin interrumpir */
@media (prefers-reduced-motion: no-preference) {
  .mbar__app:not([hidden]) { animation: app-destello 1.6s ease-out .8s 2; }
  @keyframes app-destello { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,201,125,0); } 40% { box-shadow: 0 0 0 5px rgba(242,201,125,.28); } }
}
@media (max-width: 479px) {
  .mbar__app { padding-left: 10px; padding-right: 12px; }
  .mbar__app-largo { display: none; }
  .mbar__app-corto { display: inline; }
}
@media (max-width: 359px) {
  .mbar__app { width: 44px; min-width: 44px; padding: 0; }
  .mbar__app-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.instalar-dlg { overflow-y: auto; }
.instalar-dlg .vcard__t { font-size: clamp(2.25rem, 11vw, 3rem); margin-bottom: 10px; }
.instalar-dlg .instalar__cab p { margin: 0; font-size: .9375rem; }
.inst__disp { font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tinta-suave); margin: 4px 0 8px; }
.inst__pasos { gap: 10px; margin-bottom: 10px; }
.inst__pasos li { line-height: 1.6; padding-top: 1px; }
.instalar-dlg kbd { font-family: var(--f-mono); font-size: .8125rem; border: 1.5px solid var(--tinta); border-bottom-width: 3px; border-radius: 6px; padding: 0 5px; }
.inst__nota { margin-bottom: 10px; }
.inst__otros { border-top: 1.5px solid rgba(14,13,11,.15); margin: 6px 0 14px; padding-top: 8px; }
.inst__otros summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.inst__otro { margin-top: 10px; }
.inst__otro-t { font-size: .9375rem; font-weight: 800; margin: 0 0 6px; }
.pasos--chico li { font-size: .875rem; font-weight: 500; line-height: 1.6; min-height: 26px; padding-left: 32px; }
.pasos--chico li::before { width: 22px; height: 22px; font-size: .8125rem; }
.pasos--chico .pasos__ico { width: 24px; height: 24px; }
.pasos--chico .pasos__ico svg { width: 15px; height: 15px; }
.inst__hecho { display: block; margin: 10px auto 0; }
