/* =========================================================
   Páginas ocultas (QR): /preciosmenu, /mediodia, /celebraciones
   Se carga después de style.css y usa sus tokens, .btn, .ticket, .sheet, .langs…
   Idea: la carta que tienes en la mano. Arriba, el albaricoque con el rótulo;
   debajo, papel (foam) con tinta negra para leer con luz de bar. El número de
   cada plato es una pegatina amarilla (cerveza) en la foto, como en la carta impresa.
   ========================================================= */

/* ---------- Cabecera: ligera, no se queda pegada ---------- */
.qtop {
  position: relative; z-index: 50;
  display: flex; align-items: center; gap: 8px;
  height: var(--top-h); padding: 0 var(--gutter);
  background: var(--apricot);
}
.qtop__brand { display: flex; align-items: center; min-height: 44px; flex: none; margin-right: auto; border-radius: 8px; }
.qtop__brand img { height: 44px; width: auto; }
.qtop .langs { margin-left: 0; }
.qtop .langs summary { padding: 0 10px; }
/* el desplegable se alinea con el borde derecho de la cabecera, no del botón: nunca se sale de la pantalla */
.qtop .langs { position: static; }
.qtop .langs__list { min-width: 180px; top: calc(100% - 2px); left: auto; right: max(var(--gutter), calc((100% - var(--maxw)) / 2)); }
.langs__list button {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 9px; background: none; cursor: pointer; text-align: left;
  font-weight: 600; font-size: var(--t-md);
}
.langs__list button:hover { background: var(--apricot); }
.langs__list button[aria-current="true"] { background: var(--ink); color: var(--foam); }
.qtop__call { flex: none; gap: 6px; padding: 0 16px; white-space: nowrap; }
.qtop__call svg { width: 18px; height: 18px; }
@media (max-width: 380px) {
  .qtop { gap: 4px; }
  .qtop__brand img { height: 40px; }
  .qtop .langs summary { padding: 0 8px; gap: 4px; }
  .qtop__call { padding: 0 12px; }
}

/* ---------- Cabeza de cada página ---------- */
.q { padding: 0; }
/* Mientras el contenido se pinta (solo está el aviso sin JS), se reserva la pantalla: el pie no aparece arriba y luego salta */
.q[data-root]:has(> noscript:only-child) { min-height: 100svh; }
.qhead { padding: clamp(14px, 4vw, 48px) 0 clamp(18px, 3vw, 32px); }
.qtitle {
  margin: 0 0 .22em; max-width: 14ch;
  font-size: clamp(2.35rem, 1.3rem + 4.4vw, 5.2rem);
  font-weight: 800; font-stretch: 78%; font-variation-settings: "opsz" 96;
  line-height: .92; letter-spacing: -.015em; text-wrap: balance;
  color: var(--foam);
  -webkit-text-stroke: .03em var(--ink); paint-order: stroke fill;
  text-shadow: .006em .006em 0 var(--ink), .012em .012em 0 var(--ink), .018em .018em 0 var(--ink), .024em .024em 0 var(--ink), .03em .03em 0 var(--ink), .036em .036em 0 var(--ink), .042em .042em 0 var(--ink), .048em .048em 0 var(--ink), .054em .054em 0 var(--ink), .06em .06em 0 var(--ink);
  padding-bottom: .08em;
}
.qlede { margin: 0; max-width: 46ch; font-size: var(--t-md); line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 700px) { .qlede { font-size: var(--t-lg); } }

/* Notas: número de la carta de fotos + alergias */
.qnotes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; max-width: 56ch; }
.qnotes li { display: grid; grid-template-columns: 34px 1fr; align-items: center; column-gap: 10px; font-size: var(--t-sm); line-height: 1.35; font-weight: 550; text-wrap: pretty; }
.qnotes .qnum { justify-self: start; }
.qnotes svg, .qalg svg { width: 22px; height: 22px; fill: var(--ink); justify-self: center; }
.qalg { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 16px 0; max-width: 56ch; font-size: var(--t-sm); font-weight: 550; line-height: 1.4; }
.qalg svg { margin-top: 0; }

/* La pegatina del número: amarilla como la cerveza, en tinta */
.qnum {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 26px; padding: 0 5px;
  border: 2px solid var(--ink); border-radius: 8px;
  background: var(--beer); color: var(--ink);
  font-size: .9375rem; font-weight: 800; font-stretch: 85%; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: 0;
  box-shadow: 2px 2px 0 var(--ink);
}
.qnum--big { min-width: 50px; height: 40px; padding: 0 8px; border-radius: 11px; font-size: 1.45rem; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Carta con precios ---------- */
.qpaper { background: var(--foam); border-radius: 28px 28px 0 0; padding-bottom: 32px; }
body[data-page="preciosmenu"] .qfoot { background: var(--foam); }

/* Barra pegajosa: opaca, del mismo papel, con línea de tinta al pegarse */
.qtools {
  position: sticky; top: 0; z-index: 30;
  display: grid; gap: 10px;
  margin: 0 calc(-1 * var(--gutter)); padding: 14px var(--gutter) 10px;
  background: var(--foam);
  border-radius: 28px 28px 0 0;
  transition: box-shadow .2s, border-radius .2s;
}
.qtools.is-stuck { border-radius: 0; box-shadow: 0 2px 0 var(--ink), 0 12px 18px -14px rgb(var(--sombra-rgb) / .45); }
.qtools { grid-template-columns: minmax(0, 1fr); }
.qtools__row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.qsearch { position: relative; flex: 1; min-width: 0; }
/* Idioma en la barra (solo carta con precios, móvil y tablet): se cambia sin subir */
.qtools .qlangs--bar { position: static; flex: none; }
.qtools .qlangs--bar summary { padding: 0 8px; gap: 4px; }
.qtools .qlangs--bar .langs__list { top: calc(100% - 4px); left: auto; right: var(--gutter); }
body[data-page="preciosmenu"] .qtop .qlangs { display: none; }
@media (min-width: 1100px) {
  .qtools .qlangs--bar { display: none; }
  body[data-page="preciosmenu"] .qtop .qlangs { display: block; }
}
.qsearch .search { height: 48px; max-width: none; background: var(--field); }
.qsearch.has-clear .search { padding-right: 50px; }
.qsearch .search input::-webkit-search-cancel-button { display: none; }
.qsearch .search input::placeholder { color: var(--ink-3); }
.qsearch__clear {
  position: absolute; right: 4px; top: 2px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.qsearch__clear svg { width: 20px; height: 20px; fill: var(--ink); }
.qsearch__clear:hover { background: var(--apricot); }
.qtools .chips { /* explícito: style.css las hace saltar de línea desde 1024 y la barra crecería */
  gap: 6px; flex-wrap: nowrap; overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.qtools .chip { background: var(--foam); border-color: rgb(var(--sombra-rgb) / .28); color: var(--ink); font-weight: 650; }
.qtools .chip small { display: none; }
.qtools .chip.is-active { background: var(--ink); color: var(--foam); border-color: var(--ink); }

.qlist { min-width: 0; min-height: calc(100svh - 120px); } /* al filtrar, la lista no encoge bajo la barra */
.pcat { padding-top: 26px; }
.pcat:first-of-type { padding-top: 10px; }
.pcat__title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0; padding-bottom: 9px; border-bottom: 3px solid var(--ink);
  font-size: clamp(1.55rem, 1.3rem + 1vw, 2.1rem); font-weight: 800; font-stretch: 78%;
  font-variation-settings: "opsz" 72; line-height: 1; letter-spacing: -.01em;
}
.pcat__title:focus { outline: none; }
.pcat__es { display: block; margin-top: 5px; font-size: var(--t-sm); font-weight: 550; font-stretch: 100%; letter-spacing: 0; color: var(--ink-2); }
.pcat__range { flex: none; font-size: var(--t-sm); font-weight: 700; font-stretch: 100%; letter-spacing: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.plist { list-style: none; margin: 0; padding: 0; }
.prow {
  width: 100%; min-height: 74px;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: start; column-gap: 14px;
  padding: 12px 0 11px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--ink); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.prow__media { position: relative; width: 72px; height: 50px; margin-top: 2px; }
.prow__thumb { display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: cover; background: var(--apricot); }
.prow__thumb--empty { background: color-mix(in srgb, var(--apricot) 55%, var(--foam)); }
.prow__media .qnum { position: absolute; left: -6px; top: -7px; }
.prow__text { display: grid; gap: 2px; min-width: 0; }
.prow__name { font-size: var(--t-md); font-weight: 650; line-height: 1.25; text-wrap: pretty; }
.prow__alt { font-size: var(--t-sm); font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.prow__desc { font-size: var(--t-sm); line-height: 1.3; color: var(--ink-2); }
.prow__ask { font-size: var(--t-sm); font-weight: 650; line-height: 1.3; color: var(--beak-ink); }
.prow .tag { grid-column: auto; grid-row: auto; justify-self: start; margin: 4px 0 0; } /* style.css la manda a otra columna desde 1024 */
.prow__price {
  padding-top: 1px; text-align: right; white-space: nowrap;
  font-size: 1.1875rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.prow__price small { display: block; margin-top: 3px; font-size: var(--t-xs); font-weight: 650; color: var(--ink-2); line-height: 1.2; }
.prow__price.prow__price--note { max-width: 9ch; padding-top: 3px; white-space: normal; font-size: var(--t-xs); font-weight: 700; line-height: 1.2; color: var(--ink-2); }
.prow mark { background: var(--highlight); color: inherit; border-radius: 3px; padding: 0 1px; }
.prow:active { background: color-mix(in srgb, var(--apricot) 30%, transparent); }
.prow:focus-visible { outline-offset: 2px; }
@media (hover: hover) {
  .prow:hover .prow__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--beak); }
}
.plist li.is-flash .prow { animation: qflash 1.1s var(--ease-out); }
@keyframes qflash { from { background: color-mix(in srgb, var(--highlight) 70%, transparent); } }

.qempty { margin: 22px 0; max-width: 40ch; font-size: var(--t-lg); font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.qempty--ask { padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--field); }

@media (min-width: 700px) {
  .prow { grid-template-columns: 84px minmax(0, 1fr) auto; column-gap: 18px; padding: 15px 0 14px; }
  .prow__media { width: 84px; height: 58px; }
  .prow__name { font-size: 1.125rem; }
  .prow__price { font-size: 1.25rem; }
}
/* Escritorio: índice a la izquierda (buscador + apartados con su numeración) y la lista a dos columnas */
@media (min-width: 1100px) {
  .qpaper { padding-top: 12px; }
  .qpaper__in { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
  /* Con overflow: auto, la barra recortaba el anillo de foco del buscador y de los apartados por los lados (2026-11-24,
     el dueño): 6 px de aire alrededor, compensados con margen negativo para que nada se mueva */
  .qtools {
    top: 16px; margin: 0 -6px; padding: 26px 6px 6px; border-radius: 0; background: none; box-shadow: none;
    max-height: calc(100vh - 32px); overflow: auto; scrollbar-width: thin;
  }
  .qtools .chips {
    flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 2px;
    margin: 6px 0 0; padding: 0; -webkit-mask-image: none; mask-image: none;
  }
  .qtools .chip { justify-content: space-between; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; }
  .qtools .chip:hover { background: var(--apricot); }
  .qtools .chip small { display: inline; font-size: var(--t-xs); font-weight: 650; opacity: 1; color: var(--ink-2); }
  .qtools .chip.is-active small { color: rgb(var(--papel-rgb) / .78); }   /* dato secundario sobre tinta: como el contador de la portada */
  .qlist { padding-top: 14px; }
  .plist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .pcat { padding-top: 40px; }
}

/* ---------- Menú de mediodía: una comanda con su precio ---------- */
.qmenu.ticket { margin: 0 calc(-1 * var(--gutter) + 8px); padding: 28px 18px 22px; scroll-snap-align: none; }
.qmenu__head { display: grid; gap: 4px; padding-bottom: 16px; }
.qmenu__name { margin: 0; font-size: 1.5rem; font-weight: 800; font-stretch: 80%; line-height: 1; }
.qmenu__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 2px 0 0; }
.qmenu__price .from { font-size: var(--t-md); font-weight: 650; color: var(--ink-2); }
.qmenu__price b { font-size: clamp(2.5rem, 2rem + 2vw, 3.4rem); font-weight: 800; font-stretch: 78%; line-height: 1; color: var(--beak-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.qmenu__price span:last-child { font-size: var(--t-md); font-weight: 650; }
.qmenu__drinks { justify-self: start; margin: 6px 0 0; padding: 3px 12px; border: 2px solid var(--ink); border-radius: 999px; font-size: var(--t-sm); font-weight: 700; }
.qmenu__part { padding-top: 16px; border-top: 2px dashed var(--line); }
.qmenu__part + .qmenu__part { margin-top: 18px; }
.qmenu__sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 4px; }
.qmenu__sub h3 { margin: 0; font-size: 1.4rem; font-weight: 800; font-stretch: 80%; line-height: 1.05; }
.qpill { padding: 4px 10px; border-radius: 999px; background: var(--apricot); font-size: var(--t-xs); font-weight: 700; }
.qmenu__note { margin: 0 0 4px; font-size: var(--t-sm); color: var(--ink-2); }
.qmenu .qitems { list-style: none; margin: 0; padding: 0; display: block; font-size: var(--t-md); line-height: 1.5; }
.qmenu .qitems li { padding-left: 0; }
.qmenu .qitems li::before { content: none; display: none; }
.qitem {
  width: 100%; min-height: 60px;
  display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  grid-template-rows: auto;
  padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink);
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.qitems li:last-child .qitem { border-bottom: 0; }
.qitem__thumb { width: 60px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--apricot); }
.qitem__thumb--empty { display: block; background: color-mix(in srgb, var(--apricot) 55%, var(--foam)); }
.qitem__text { display: grid; gap: 1px; min-width: 0; }
.qitem__name { font-weight: 650; line-height: 1.25; text-wrap: pretty; }
.qitem__alt { font-size: var(--t-xs); color: var(--ink-2); }
.qitem__price { display: contents; }
.qitems--rice .qitem { align-items: start; }
.qitems--rice .qitem__thumb { grid-row: 1 / span 2; }
.qitems--rice .qitem__text { align-self: center; }
.qitem__price b { grid-column: 3; grid-row: 1; align-self: center; text-align: right; font-size: 1.1875rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.15; }
.qitem__price small { grid-column: 2 / -1; grid-row: 2; justify-self: end; margin-top: 2px; white-space: nowrap; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); line-height: 1.25; font-variant-numeric: tabular-nums; }
.qitem:active { background: color-mix(in srgb, var(--apricot) 30%, transparent); }
@media (hover: hover) {
  .qitem:hover .qitem__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--beak); }
}
.qpeople { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-sm); font-weight: 650; }
.qpeople > span { margin-right: 4px; }
.qpeople button {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--foam); cursor: pointer;
  transition: background-color .15s, transform .15s var(--ease-out);
}
.qpeople button svg { width: 20px; height: 20px; fill: var(--ink); }
.qpeople button:active { transform: scale(.92); background: var(--apricot); }
.qpeople button:disabled { opacity: .35; cursor: default; }
.qpeople output { min-width: 2.2ch; text-align: center; font-size: var(--t-lg); font-weight: 800; font-variant-numeric: tabular-nums; }
.qmenu__foot { display: grid; gap: 2px; margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); }
.qmenu__foot p { margin: 0; }
.qmenu__foot strong { font-size: 1.4rem; font-weight: 800; font-stretch: 80%; }
.qmenu__foot p + p { font-size: var(--t-sm); color: var(--ink-2); font-weight: 600; }
@media (min-width: 700px) {
  .qmenu.ticket { margin: 0; padding: 32px 30px 26px; }
  .qitem { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .qitem__thumb { width: 76px; height: 52px; }
}
@media (min-width: 1000px) {
  .qmenu.ticket { max-width: 1120px; padding: 36px 40px 30px; }
  .qmenu__head { grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; }
  .qmenu__head .qmenu__name { grid-column: 1 / -1; }
  .qmenu__drinks { justify-self: end; align-self: center; }
  .qmenu__cols { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 48px; border-top: 2px dashed var(--line); }
  .qmenu__part { border-top: 0; }
  .qmenu__part + .qmenu__part { margin-top: 0; }
}

/* ---------- Celebraciones: tabla para comparar + comandas ---------- */

.qcelebra { display: grid; gap: 22px; padding: 6px 0 36px; }
.qticket.ticket { scroll-snap-align: none; padding: 28px 20px 20px; }
.qticket:focus { outline: none; }
.qticket .ticket__price b { color: var(--beak-ink); }
.qticket__from { margin: 8px 0 0; font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.qticket__items { margin-top: 14px; }
.qticket .ticket__choice { margin-top: 16px; padding-top: 12px; border-top: 2px dashed var(--line); }
.qticket .ticket__choice h3 { margin: 0 0 6px; font-size: var(--t-sm); font-weight: 750; color: var(--beak-ink); }
.qticket .prices { font-size: var(--t-sm); }
.qticket .prices b { font-size: var(--t-md); }
@media (min-width: 640px) {
  .qticket__items { grid-template-columns: 1fr 1fr; column-gap: 20px; }
}
@media (min-width: 700px) {
  .qcelebra { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .qticket__items { grid-template-columns: 1fr; }
}
@media (min-width: 1100px) {
  .qcelebra { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .qticket .ticket__name, .qticket .ticket__price b { font-size: 1.6rem; }
}

/* ---------- Ficha del plato ---------- */
.qsheet.is-nophoto .sheet__media { display: none; }
.qsheet .sheet__media .qnum { position: absolute; left: 14px; top: 14px; }
.qsheet:not(.is-nophoto) .qsheet__head > .qnum { display: none; }
.qsheet__body { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); }
.qsheet__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.qsheet:not(.is-nophoto) .qsheet__head { grid-template-columns: minmax(0, 1fr) auto; }
.qsheet__names { min-width: 0; }
.qsheet__orig {
  display: inline-block; margin: 8px 0 0; padding: 3px 10px; border-radius: 8px;
  background: var(--apricot); font-size: var(--t-lg); font-weight: 750; line-height: 1.25;
}
.qsheet__price { margin: 0; text-align: right; white-space: nowrap; font-size: 1.7rem; font-weight: 800; font-stretch: 82%; line-height: 1; font-variant-numeric: tabular-nums; }
.qsheet__price small { display: block; margin-top: 4px; font-size: var(--t-xs); font-weight: 650; font-stretch: 100%; color: var(--ink-2); white-space: normal; max-width: 12ch; margin-left: auto; }
.qsheet .sheet__desc { margin: 8px 0 0; }
.qsheet__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.qsheet__show { margin: 0; font-size: var(--t-sm); font-weight: 650; line-height: 1.3; }
.qsheet__foot .sheet__close { margin-left: auto; }

/* ---------- Pie ---------- */
.qfoot { padding: 22px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--t-sm); }
.qfoot p { margin: 0; }
.qfoot a { display: inline-block; padding: 10px 0; font-weight: 700; color: var(--ink); font-size: var(--t-md); }

@media (prefers-reduced-motion: reduce) {
  .plist li.is-flash .prow { animation: none; }
}

/* ---------- Convivencia con los arreglos de style.css ---------- */
/* La cabecera y el contenido comparten el mismo borde izquierdo a cualquier ancho */
.qtop { padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2)); }
/* Tablet vertical (600–899): la ficha es una tarjeta centrada; sin foto, igual */
/* Móvil en horizontal: style.css pone la ficha a dos columnas (foto | texto) */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 560px) {
  .qsheet.is-nophoto[open] { grid-template-columns: minmax(0, 1fr); height: fit-content; width: min(100% - 2 * var(--gutter), 560px); }
  .qsheet__body { display: flex; flex-direction: column; justify-content: space-between; overflow: auto; padding: 16px 18px calc(14px + env(safe-area-inset-bottom)); }
  .qsheet__orig { font-size: var(--t-md); }
  .qtop__brand img { height: 38px; }
  .qhead { padding-top: 10px; }
  .qtools { grid-template-columns: minmax(280px, 46%) minmax(0, 1fr); align-items: center; gap: 12px; padding-block: 6px; }
  .qsearch .search { height: 44px; }
  .qtools .chips { margin: 0 calc(-1 * var(--gutter)) 0 0; padding: 2px var(--gutter) 2px 2px; }
}

/* El botón de llamar reparte el texto en líneas equilibradas (el número va con espacios duros) */

/* IVA incluido: mismo formato que el aviso de alergias, con un € en círculo */
.qvat { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%;
  font-size: 12px; font-weight: 800; line-height: 1; }
.qnotes .qvat { justify-self: center; }
.qalg + .qalg--vat { margin-top: -8px; }

/* ===== Revisión QR móvil (solo < 700 px: tablet y escritorio no cambian) ===== */
@media (max-width: 699px) {
  /* 1. Buscador: el texto de ejemplo ya no se corta a media letra */
  .qtools__row { gap: 4px; }
  .qsearch .search { padding-inline: 14px 10px; gap: 8px; }
  .qsearch .search input { text-overflow: ellipsis; }
  .qtools .qlangs--bar summary { padding: 0 6px; }

  /* 3. Ficha: el nombre en castellano ocupa todo el ancho, no solo la columna del nombre */
  .qsheet__head { row-gap: 8px; }
  .qsheet__names { display: contents; }
  .qsheet__head .sheet__name { grid-column: -3 / -2; grid-row: 1; }
  .qsheet__price { grid-column: -2 / -1; grid-row: 1; }
  .qsheet__orig { grid-column: -3 / -1; grid-row: 2; justify-self: start; margin: 0; }
  /* El menú de la línea (/celebraciones, «Celebración 4») va encima del nombre, no en el hueco del precio */
  .qsheet__head .sheet__cat { grid-column: 1 / -1; grid-row: 1; margin: 0 0 -6px; }
  .qsheet__head:has(.sheet__cat:not([hidden])) :is(.sheet__name, .qsheet__price) { grid-row: 2; }
  .qsheet__head:has(.sheet__cat:not([hidden])) .qsheet__orig { grid-row: 3; }

  /* 4. Filas de la carta: 10 px más para el nombre (menos nombres en 3 líneas en fr/en/it) */
  .prow { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 12px; }
  .prow__media { width: 64px; height: 45px; }

  /* 5. Arroces: precio arriba, como en la carta con precios; segunda línea más prieta */
  .qitems--rice .qitem__text, .qitem__price b { align-self: start; }
  .qitem__price b { padding-top: 1px; }
  .qitem__alt { line-height: 1.3; }


}
/* 7. Cabecera a 320–339 px: «Telefonar» (va) se salía 5 px por la derecha; fuera el icono del teléfono */
@media (max-width: 339px) {
  .qtop__call svg { display: none; }
}

/* =========================================================
   Legibilidad (revisión UX, 2026-11): pegar AL FINAL de public/css/ocultas.css
   Páginas QR: se pide por número y se lee de pie o en la mesa, con luz de terraza.
   ========================================================= */

/* ---------- P1 · Número del plato: es lo que se dice al camarero (15 → 18 px, pegatina 30×26 → 36×30) ---------- */
.qnum { min-width: 36px; height: 30px; padding: 0 6px; font-size: 1.125rem; }
.qnotes li { grid-template-columns: 40px 1fr; }
.prow__media .qnum { left: -7px; top: -9px; }
.qnum--big { min-width: 56px; height: 44px; font-size: 1.625rem; }

/* ---------- P1 · Junto al precio: «Según mercado» y «Por unidad» (13 → 15 px) ---------- */
.prow__price small { font-size: .875rem; }                      /* 14 px: no ensancha la columna del precio */
.prow__price.prow__price--note { max-width: 8.5ch; font-size: var(--t-sm); line-height: 1.2; } /* «Según / mercado» en dos líneas */
.qsheet__price small { font-size: var(--t-sm); }

/* ---------- P1 · Mediodía: total de la mesa y nombre en castellano (para pedirlo) 13 → 15 px ---------- */
.qitem__price small { font-size: var(--t-sm); }
.qitem__alt { font-size: var(--t-sm); line-height: 1.3; }

/* ---------- P1 · Celebraciones: «desde», «El precio depende…», «Bebida incluida» (vienen de .ticket) ---------- */
.qticket__from { font-size: var(--t-sm); line-height: 1.35; }

/* ---------- P2 · Precio de cada plato en el móvil: 19 → 20 px (en tablet y escritorio ya lo es).
   No por debajo de 380 px: ahí estrecha la columna del nombre y parte nombres en francés ---------- */
@media (min-width: 380px) and (max-width: 699px) { .prow__price { font-size: 1.25rem; } }

/* ---------- P2 · Tabla de celebraciones: «8 platos» (13 → 15 px); la cabecera solo desde 700 px
   (en el móvil la tabla está ajustada al píxel: en francés «Par personne» a 15 px la desborda) ---------- */

/* ---------- P3 · «Incluye todos» y la nota de los arroces del mediodía ---------- */
.qpill { font-size: var(--t-sm); }
