/* ============================================================
   Texas Bull Grill — Menú digital
   Sistema visual: parrilla/steakhouse oscuro, acento granate,
   etiquetas manuscritas naranja, sellos dorados.
   Mobile-first (~390px) → tablet/escritorio.
   ============================================================ */

:root {
  /* Paleta */
  --bg:        #100b09;
  --bg-2:      #17100d;
  --panel:     #1d1511;
  --panel-2:   #241a14;
  --line:      rgba(244,236,221,.09);
  --line-2:    rgba(244,236,221,.16);

  --crimson:      #9a1b18;
  --crimson-deep: #6f1310;
  --crimson-lit:  #c4322a;

  --bone:      #ece1cd;
  --bone-deep: #d8c8aa;
  --bone-ink:  #241a12;

  --text:      #f5edde;
  --muted:     #b3a48f;
  --faint:     #8a7c69;

  --orange:    #e8893e;
  --gold:      #c79a4c;
  --gold-soft: #9c7a3c;

  /* Acento configurable por Tweaks */
  --accent:      var(--crimson);
  --accent-lit:  var(--crimson-lit);
  --accent-deep: var(--crimson-deep);

  /* Tipografía */
  --f-display: 'Anton', 'Oswald', sans-serif;
  --f-head:    'Oswald', sans-serif;
  --f-body:    'Source Sans 3', system-ui, sans-serif;
  --f-script:  'Caveat', cursive;

  /* Ritmo (densidad ajustable) */
  --pad-card:  16px;
  --gap-card:  10px;
  --fs-name:   16.5px;
  --fs-desc:   14px;

  --maxw: 460px;
}

[data-density="compacta"] {
  --pad-card: 12px;
  --gap-card: 6px;
  --fs-name: 15.5px;
  --fs-desc: 13px;
}

/* ============================================================
   TEMA CLARO — papel cálido / tinta marrón (mantiene la marca)
   ============================================================ */
[data-theme="light"] {
  --bg:        #f6f0e4;
  --bg-2:      #efe6d4;
  --panel:     #fffdf7;
  --panel-2:   #f1e7d4;
  --line:      rgba(40,26,18,.12);
  --line-2:    rgba(40,26,18,.20);

  --text:      #261a11;
  --muted:     #6a5b47;
  --faint:     #98856b;

  --orange:    #c5641d;
  --gold:      #a17a2c;
  --gold-soft: #b8965a;

  --crimson:      #9a1b18;
  --crimson-deep: #6f1310;
  --crimson-lit:  #b3241d;
  --accent:      var(--crimson);
  --accent-lit:  var(--crimson-lit);
  --accent-deep: var(--crimson-deep);
}
/* Textura más clara y suave en modo claro */
[data-theme="light"] body::before {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(154,27,24,.07), transparent 60%),
    radial-gradient(140% 120% at 50% 120%, rgba(120,90,60,.10), transparent 55%),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdHlwZT0nc2F0dXJhdGUnIHZhbHVlcz0nMCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCNuKScgb3BhY2l0eT0nMC4zNScvPjwvc3ZnPg==");
  opacity: .4;
  mix-blend-mode: multiply;
}
[data-theme="light"] .catnav { background: rgba(246,240,228,.9); }
[data-theme="light"] .dish-photo { background: #e7dcc6; }
[data-theme="light"] .chip.is-active,
[data-theme="light"] .index-sheet button.is-active { color: #fff; }
[data-theme="light"] .tag.spicy { color: #8a1410; background: rgba(196,50,42,.12); border-color: rgba(196,50,42,.4); }
[data-theme="light"] .tag.chef { background: var(--panel-2); }
[data-theme="light"] .note { background: rgba(199,154,76,.12); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Textura de piedra: ruido sutil + viñeta, en una sola capa fija y liviana */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(154,27,24,.10), transparent 60%),
    radial-gradient(140% 120% at 50% 120%, rgba(0,0,0,.55), transparent 55%),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdHlwZT0nc2F0dXJhdGUnIHZhbHVlcz0nMCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCNuKScgb3BhY2l0eT0nMC41Jy8+PC9zdmc+");
  background-size: auto, auto, 220px 220px;
  opacity: .5;
}

.app { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; }

/* Logo oficial (PNG transparente, fondo negro recortado). */
.badge { display: flex; align-items: center; justify-content: center; }
.badge .tbg-logo { width: 100%; height: 100%; object-fit: contain; }

/* Selector de tema claro/oscuro */
.theme-toggle {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-2); color: var(--gold);
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .12s ease;
}
.theme-toggle:hover { color: var(--orange); border-color: var(--gold-soft); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 19px; height: 19px; }

/* ============================================================
   Cabecera
   ============================================================ */
.site-header {
  position: relative;
  padding: 30px 20px 24px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(196,50,42,.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.site-header .badge { width: min(74vw, 280px); height: auto; aspect-ratio: 675 / 670; margin: 0 auto 12px; display: flex; filter: drop-shadow(0 6px 22px rgba(196,50,42,.32)); }
.wordmark {
  font-family: var(--f-display);
  font-size: clamp(28px, 8vw, 42px);
  letter-spacing: .04em;
  line-height: .98;
  margin: 0;
  color: var(--text);
  text-shadow: 0 2px 0 rgba(0,0,0,.4);
}
.wordmark .tx-red { color: var(--accent-lit); }
.tagline {
  font-family: var(--f-script);
  color: var(--orange);
  font-size: 24px;
  line-height: 1;
  margin: 12px 0 0;
}
.hero-copy { margin-top: 10px; }
.hero-copy .h-eyebrow { display: block; font-family: var(--f-script); color: var(--orange); font-size: 20px; line-height: 1; }
.hero-copy .h-tagline { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.4; }

.loc {
  margin-top: 12px;
  font-family: var(--f-head);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  color: var(--muted);
  display: flex; gap: 8px; align-items: center; justify-content: center;
}
.loc svg { width: 12px; height: 12px; opacity: .8; }

/* ============================================================
   Banner promocional
   ============================================================ */
.banner-wrap { padding: 16px 14px 4px; }
.banner {
  position: relative;
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--panel-2), var(--bg-2));
  box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 0 0 1px rgba(244,236,221,.04);
  display: grid;
  grid-template-columns: 116px 1fr;
}
.banner .b-media { position: relative; background: #0c0806; }
.banner image-slot { display: block; width: 100%; height: 100%; min-height: 128px; }
.banner .b-img { display: block; width: 100%; height: 100%; min-height: 128px; object-fit: cover; }
.banner .b-body { padding: 15px 16px 15px 15px; display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.banner .b-eyebrow {
  font-family: var(--f-script); color: var(--orange); font-size: 18px; line-height: 1;
}
.banner .b-title {
  font-family: var(--f-display); font-size: 23px; line-height: 1.02; letter-spacing: .02em; margin: 1px 0 2px;
  text-transform: uppercase;
}
.banner .b-text { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.38; }
.banner .b-cta {
  margin-top: 4px; align-self: flex-start;
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  font-size: 12px; color: var(--text);
  background: var(--accent); border: none; border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .12s ease, background .15s ease;
}
.banner .b-cta:hover { background: var(--accent-lit); }
.banner .b-cta:active { transform: scale(.96); }
.banner .b-flag {
  position: absolute; top: 0; left: 0;
  background: var(--accent); color: #fff;
  font-family: var(--f-head); font-weight: 600; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border-bottom-right-radius: 8px;
}

/* ============================================================
   Navegación de categorías
   ============================================================ */
.catnav {
  position: sticky; top: 0; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(16,11,9,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.catnav-inner { max-width: var(--maxw); margin: 0 auto; }

/* nota de tasa de cambio (doble moneda) */
.rate-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; text-align: center;
  background: linear-gradient(180deg, rgba(199,154,76,.12), rgba(199,154,76,.05));
  border-bottom: 1px solid var(--line);
  font-family: var(--f-head); font-weight: 400; text-transform: uppercase; letter-spacing: .08em;
  font-size: 11px; color: var(--muted);
}
.rate-note strong { color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.rate-note .rn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green, #4e9d6b); box-shadow: 0 0 0 3px rgba(78,157,107,.18); }

/* Chips horizontales */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 11px 14px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.chips.dragging { cursor: grabbing; scroll-behavior: auto; }
.chips.dragging .chip { pointer-events: none; }

/* Pista "desliza para ver más" con flecha doble */
.chips-wrap { position: relative; }
.swipe-hint {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 1px 0 7px; color: var(--faint);
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
  font-size: 9.5px;
  transition: opacity .4s ease, max-height .4s ease, padding .4s ease;
  max-height: 24px; overflow: hidden;
}
.swipe-hint svg { width: 44px; height: 13px; color: var(--gold); }
.swipe-hint.is-hidden { opacity: 0; max-height: 0; padding: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .swipe-hint .sh-l { animation: shNudgeL 1.6s ease-in-out infinite; }
  .swipe-hint .sh-r { animation: shNudgeR 1.6s ease-in-out infinite; }
}
@keyframes shNudgeL { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-2px); } }
@keyframes shNudgeR { 0%,100% { transform: translateX(0); } 50% { transform: translateX(2px); } }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: .07em; font-size: 12.5px;
  color: var(--muted);
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap;
  transition: all .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--gold-soft); }
.chip.is-active {
  color: #fff; background: var(--accent); border-color: var(--accent-lit);
  box-shadow: 0 2px 10px rgba(154,27,24,.4);
}
.chips .chip-group {
  flex: 0 0 auto; align-self: center; padding: 0 2px 0 6px;
  font-family: var(--f-script); color: var(--orange); font-size: 17px;
  border-left: 1px solid var(--line-2); margin-left: 4px;
}

/* Índice desplegable */
.index-bar { padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.index-current {
  flex: 1; font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: 14px; color: var(--text);
}
.index-toggle {
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
  color: var(--text); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 8px 12px; cursor: pointer; display: flex; align-items: center; gap: 7px;
}
.index-toggle svg { width: 12px; height: 12px; transition: transform .2s ease; }
.index-toggle.open svg { transform: rotate(180deg); }
.index-sheet {
  max-height: 60vh; overflow-y: auto; border-top: 1px solid var(--line);
  background: var(--bg-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
}
.index-sheet button {
  text-align: left; background: var(--bg-2); border: none; cursor: pointer;
  padding: 12px 14px; color: var(--muted);
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 12.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.index-sheet button:hover, .index-sheet button.is-active { color: var(--text); background: var(--panel); }
.index-sheet button .ix-count { color: var(--faint); font-family: var(--f-body); font-weight: 600; font-size: 11px; }

/* ============================================================
   Recomendados de la casa (Task 3.3): carrusel horizontal de platos featured
   ============================================================ */
.featured { padding: 14px 0 6px; }
.featured-head { padding: 0 14px; margin-bottom: 10px; }
.featured-eyebrow {
  display: block; font-family: var(--f-body); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--gold);
}
.featured-title {
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .015em; font-size: 20px; line-height: 1.1; color: var(--text); margin: 2px 0 0;
}
.featured-rail {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 14px 8px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.featured-rail::-webkit-scrollbar { display: none; }
.feat-card {
  flex: 0 0 auto; width: 148px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 8px; text-align: left;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 8px; cursor: pointer; color: var(--text);
  transition: transform .16s ease, border-color .16s ease;
}
.feat-card:hover { transform: translateY(-2px); border-color: var(--gold-soft); }
.feat-card:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.feat-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
  border-radius: 10px; overflow: hidden; background: #0c0806; border: 1px solid var(--line-2);
}
.feat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-photo--none { background: var(--panel-2); }
.feat-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feat-name {
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .015em;
  font-size: 13px; line-height: 1.15; color: var(--text);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.feat-price { font-family: var(--f-head); font-weight: 600; font-size: 13px; color: var(--gold); white-space: nowrap; }

/* Badge "Recomendado" en la card normal del plato featured */
.feat-badge {
  flex: 0 0 auto; align-self: center;
  font-family: var(--f-body); font-size: 9.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #1a130b;
  background: linear-gradient(180deg, #e7c878, var(--gold)); border-radius: 6px; padding: 2px 7px;
}

/* ============================================================
   Secciones
   ============================================================ */
.section { padding: 8px 14px 4px; scroll-margin-top: 64px; }
.section + .section { padding-top: 22px; }

/* ---- Portada de grupo (banda a todo lo ancho, estilo afiche) ---- */
.group-banner {
  position: relative; height: 208px; overflow: hidden;
  margin: 34px 0 10px; background: #0c0806;
  border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  scroll-margin-top: 60px;
}
main > .group-banner:first-child { margin-top: 16px; }
.gb-media { position: absolute; inset: 0; }
.gb-media .gb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.group-banner.no-photo { background: linear-gradient(135deg, var(--panel-2), #0c0806); }
.group-banner.no-photo .gb-shade { background: radial-gradient(120% 100% at 80% 0%, rgba(154,27,24,.22), transparent 60%); }
.gb-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16,11,9,.30) 0%, rgba(16,11,9,.52) 48%, rgba(16,11,9,.94) 100%),
    linear-gradient(90deg, rgba(16,11,9,.86), rgba(16,11,9,.10) 72%);
}
.gb-content { position: absolute; left: 0; bottom: 0; padding: 16px 18px 18px; }
.gb-index { font-family: var(--f-head); font-weight: 600; letter-spacing: .22em; font-size: 12px; color: var(--accent-lit); display: block; }
.gb-index i { color: var(--faint); font-style: normal; margin: 0 5px; }
.gb-title {
  font-family: var(--f-display); font-size: clamp(36px, 12vw, 60px); line-height: .88;
  margin: 5px 0 5px; text-transform: uppercase; color: var(--text);
  text-shadow: 0 3px 16px rgba(0,0,0,.75);
}
.gb-sub { font-family: var(--f-script); color: var(--orange); font-size: 21px; line-height: 1; }

.section-head { display: flex; align-items: stretch; gap: 12px; margin: 18px 0 14px; }
.section-head .sh-bar {
  flex: 1; align-self: flex-end; margin-bottom: 8px; height: 0; border-top: 1px solid var(--line-2);
}
.section-title-wrap { text-align: left; padding-left: 13px; border-left: 4px solid var(--accent); }
.section-eyebrow {
  font-family: var(--f-script); color: var(--orange); font-size: 18px; line-height: 1; display: block;
}
.section-title {
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: clamp(22px, 6.5vw, 30px); line-height: 1; margin: 0;
  color: var(--text);
}
.section-title .accent-rule { color: var(--accent-lit); }

/* ============================================================
   Grupo en tono claro (settings.groups[].tone = "light")
   Papel crema dentro de la carta oscura. La vista pone data-theme="light" en
   la portada del grupo y en cada una de sus secciones: los tokens del tema
   claro (arriba) se heredan hacia abajo y no se duplica paleta. El panel del
   plato (.dish-modal) queda fuera de esos nodos y sigue en el tema oscuro.
   Los trazos de pincel son arte de la plantilla (public/storefront/tono-claro/),
   no fotos de platos: viajan con el repo y no dependen de R2 ni del entorno.
   ============================================================ */
/* Papel con lazos de cuerda y grano, como el arte original (#542). Los lazos
   van pegados a los bordes para no cruzar el texto; el SVG se repite sin
   costura en vertical. */
.section.tone-light,
.group-banner.group-art.tone-light {
  background:
    url("tono-claro/lazos.svg") repeat-y top center / 100% auto,
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdHlwZT0nc2F0dXJhdGUnIHZhbHVlcz0nMCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCNuKScgb3BhY2l0eT0nMC4zNScvPjwvc3ZnPg==") repeat 0 0 / 160px,
    var(--bg);
  background-blend-mode: normal, multiply, normal;
}
/* Letra toscana del arte en los nombres de los platos (settings.groups[].font
   = 'western', #542). Rye es mas ancha que Oswald: un punto menos de cuerpo
   para que los nombres largos sigan cabiendo junto al precio. El navegador
   solo descarga la fuente si una carta la usa. */
.font-western .dish-name {
  font-family: 'Rye', var(--f-head); font-weight: 400;
  font-size: calc(var(--fs-name) - 1px); letter-spacing: .02em;
}
.tone-light .dish.tappable:active { background: rgba(40,26,18,.06); }

/* Portada con foto en tono claro: la foto sigue siendo oscura, el texto no
   puede heredar la tinta marron del tema claro. */
.group-banner.tone-light:not(.group-art) { --text: #f5edde; --orange: #e8893e; }

/* Portada de arte (settings.groups[].title_image): el titulo del Drive en
   lugar de la banda con foto, sin numeracion. */
.group-banner.group-art {
  height: auto; overflow: visible; margin: 28px 0 0; padding: 0 18px 4px;
  background: transparent; border: 0; text-align: center;
}
.group-banner.group-art::before,
.section.tone-light-end::after {
  content: ""; display: block; background: no-repeat center / 100% 100%;
}
.group-banner.group-art::before {
  aspect-ratio: 825 / 63; margin: 0 -18px;
  background-image: url("tono-claro/trazo-arriba.png");
}
.group-banner.group-art .ga-title { margin: 16px 0 0; font-size: inherit; line-height: 0; }
.group-banner.group-art .ga-img { display: block; width: min(82%, 330px); height: auto; margin: 0 auto; }
.section.tone-light-end { padding-bottom: 0; }
.section.tone-light-end::after {
  aspect-ratio: 825 / 67; margin: 22px -14px 0;
  background-image: url("tono-claro/trazo-abajo.png");
}

/* Oculto a la vista, no a los lectores de pantalla: el titulo de una seccion
   cuyo arte de encabezado ya lo dice (art_head). Va despues de .section-head
   para ganarle por orden al display y al margin de esa regla. */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* Acordeón */
.acc-head {
  width: 100%; cursor: pointer; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 0 0 10px;
  display: flex; align-items: center; gap: 12px;
  transition: background .15s ease;
}
.acc-head:hover { background: var(--panel-2); }
.acc-head .ah-title {
  flex: 1; text-align: left;
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: 18px; color: var(--text);
}
.acc-head .ah-eyebrow { font-family: var(--f-script); color: var(--orange); font-size: 15px; margin-right: 2px; }
.acc-head .ah-count {
  font-family: var(--f-body); font-weight: 700; font-size: 11px; color: var(--faint);
  background: var(--bg); border-radius: 999px; padding: 3px 9px;
}
.acc-head .ah-chev { width: 16px; height: 16px; color: var(--accent-lit); transition: transform .2s ease; }
.acc-head.open .ah-chev { transform: rotate(180deg); }

/* ============================================================
   Tarjeta de plato
   ============================================================ */
.dish {
  position: relative;
  display: flex; gap: 14px;
  padding: var(--pad-card) 2px;
  border-bottom: 1px solid var(--line);
}
.dish:last-child { border-bottom: none; }

.dish-photo {
  position: relative;
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 12px; overflow: hidden;
  background: #0c0806; border: 1px solid var(--line-2);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
[data-density="compacta"] .dish-photo { width: 80px; height: 80px; }
.dish-photo image-slot { width: 100%; height: 100%; display: block; }
.dish-photo .dish-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-main { flex: 1; min-width: 0; }
.dish-top {
  display: flex; align-items: baseline; gap: 8px;
}
.dish-name {
  flex: 1 1 auto; min-width: 0;
  overflow-wrap: anywhere; word-break: break-word;
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .015em; font-size: var(--fs-name); line-height: 1.12; color: var(--text);
  margin: 0;
}
/* Precio en la parte inferior de la tarjeta */
.dish-priceline {
  display: flex; align-items: baseline; gap: 8px; margin-top: 8px;
}
.dish-leader {
  flex: 1; align-self: flex-end; margin-bottom: 4px;
  border-bottom: 1.5px dotted var(--line-2); min-width: 14px;
}
.dish-priceline .price { font-size: calc(var(--fs-name) + 1px); }
/* Sin foto en la fila, el precio va en la linea del nombre (#536): nombre,
   punteado y precio, como en una carta impresa. El nombre cede ancho y parte
   en dos lineas antes que empujar el precio fuera de la fila. */
.dish:not(.has-photo) .dish-name { flex: 0 1 auto; }
.dish-top .dish-priceline { flex: 1 0 auto; min-width: 72px; margin-top: 0; }
.price { flex: 0 0 auto; white-space: nowrap; font-family: var(--f-head); font-weight: 600; font-size: var(--fs-name); color: var(--text); }
.price .ref { font-family: var(--f-body); font-weight: 600; font-size: .72em; color: var(--gold); letter-spacing: .04em; margin-right: 3px; text-transform: uppercase; }
/* doble moneda: monto base arriba, Bs. debajo */
.price .amounts { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.08; }
.amt-bs {
  font-family: var(--f-body); font-weight: 600; font-size: .66em; color: var(--gold);
  letter-spacing: .01em; margin-top: 2px; white-space: nowrap;
}

.dish-desc { margin: 5px 0 0; font-size: var(--fs-desc); color: var(--muted); line-height: 1.42; text-wrap: pretty; }
.dish-credit { color: var(--faint); font-style: italic; }

/* descripción recortada (Tweak: descripciones colapsables) */
.dish-desc.clamp {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; text-overflow: ellipsis;
}

/* tarjeta tocable → abre detalle */
.dish.tappable { cursor: pointer; transition: background .14s ease; }
/* Sin :hover (#538): la carta se usa en el telefono, donde se activaba al
   tocar y quedaba pegado. Basta un destello mientras se toca. */
.dish.tappable:active { background: rgba(244,236,221,.05); }
.dish.tappable:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }

/* tarjeta colapsada: compacta, con chevron de "ver más" a la derecha */
.dish.collapsed { align-items: center; }
.dish-go {
  flex: 0 0 auto; align-self: center; margin-left: 2px;
  color: var(--faint); display: grid; place-items: center;
  width: 22px; height: 22px;
}
.dish-go svg { width: 16px; height: 16px; transform: rotate(-90deg); }

/* Variantes de precio (bebidas, cortes) */
.variants { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.variant {
  display: flex; align-items: baseline; gap: 8px;
}
.variant .v-label {
  font-family: var(--f-script); color: var(--orange); font-size: 16px; line-height: 1; flex: 0 0 auto;
}
.variant .v-vol { font-size: 11px; color: var(--faint); font-family: var(--f-body); margin-left: 2px; }
.variant .v-leader { flex: 1; border-bottom: 1.5px dotted var(--line-2); align-self: flex-end; margin-bottom: 4px; min-width: 10px; }
.variant .price { font-size: 14.5px; }

/* Etiquetas e íconos */
.tags { display: inline-flex; gap: 6px; align-items: center; vertical-align: middle; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  font-size: 9.5px; padding: 2.5px 7px; border-radius: 999px; white-space: nowrap;
}
.tag svg { width: 10px; height: 10px; flex: 0 0 auto; }
.tag.spicy { color: #ffd9c2; background: rgba(196,50,42,.18); border: 1px solid rgba(196,50,42,.5); }
.tag.premium { color: #1a130b; background: linear-gradient(180deg, #e7c878, var(--gold)); border: 1px solid var(--gold); font-weight: 700; }
.tag.chef { color: var(--muted); background: var(--panel); border: 1px solid var(--line-2); }
/* .tag.chef estiliza el tag 'hormone' (legacy); el tag real 'chef' usa .chefhat */
.tag.chefhat { color: #e7d3a6; background: var(--panel-2); border: 1px solid var(--gold-soft); }
.tag.vegano { color: #bfe6c4; background: rgba(46,140,80,.18); border: 1px solid rgba(46,140,80,.5); }
.tag.vegetariano { color: #d9edbc; background: rgba(120,160,60,.18); border: 1px solid rgba(120,160,60,.5); }
.tag.sin_gluten { color: #f0dca8; background: rgba(199,154,76,.16); border: 1px solid rgba(199,154,76,.45); }
.tag.nuevo { color: #ffd7b0; background: rgba(232,137,62,.18); border: 1px solid rgba(232,137,62,.5); }
.tag.popular { color: #ffc9c2; background: rgba(196,50,42,.14); border: 1px solid rgba(196,50,42,.4); }

/* Sello circular */
.seal {
  flex: 0 0 auto; width: 46px; height: 46px;
}
.seal--inline { width: 34px; height: 34px; }

.note {
  margin-top: 9px; padding: 9px 12px; border-left: 2px solid var(--gold-soft);
  background: rgba(199,154,76,.06); border-radius: 0 8px 8px 0;
}
.note .note-label { font-family: var(--f-script); color: var(--orange); font-size: 16px; line-height: 1; display: block; margin-bottom: 2px; }
.note .note-text { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Agotado */
.stamp {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: 12px; color: var(--crimson-lit); white-space: nowrap;
}

/* Guarniciones sin precio: lista compacta tipo "incluidas" */
.included-note {
  font-family: var(--f-script); color: var(--orange); font-size: 17px; margin: -2px 0 10px;
}
.chips-incl { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-incl {
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
  font-size: 12px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px;
}

/* ============================================================
   Pie de página
   ============================================================ */
.site-footer {
  margin-top: 30px; padding: 32px 20px 44px; text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}
.site-footer .badge { width: 92px; height: 62px; margin: 0 auto 12px; opacity: .92; display: flex; }
.site-footer .f-wifi { display: flex; justify-content: center; padding: 18px 0 4px; }
.site-footer .f-wifi-btn {
  display: block; width: 100%; max-width: 340px; min-height: 52px; padding: 15px 20px; border-radius: 4px;
  background: var(--crimson); color: #f5edde; text-decoration: none;
  font-family: var(--f-display); font-size: 20px; letter-spacing: .04em;
}
.site-footer .f-wifi-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.site-footer .f-name { font-family: var(--f-display); font-size: 22px; letter-spacing: .04em; margin: 0; }
.site-footer .f-loc { color: var(--muted); font-size: 13px; margin: 8px 0 0; line-height: 1.5; }
.site-footer .f-extra { color: var(--muted); font-size: 13px; margin: 4px 0 0; line-height: 1.5; }
.site-footer a.f-link { display: inline-block; text-decoration: none; }
.site-footer a.f-link:hover { text-decoration: underline; }
.site-footer .f-ref {
  margin-top: 16px; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .18em;
  font-size: 10.5px; color: var(--faint);
}
/* ============================================================
   Aparición al hacer scroll — CSS puro, sin depender de JS/React.
   Base = visible (si el navegador no soporta scroll timelines, no hay flash).
   ============================================================ */
@keyframes tbgReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: tbgReveal linear both;
      animation-timeline: view();
      animation-range: entry 4% entry 26%;
    }
  }
}

/* ============================================================
   Modal de detalle del plato (foto grande + descripción completa)
   ============================================================ */
.dish-modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6, 4, 3, .78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  animation: dmFade .22s ease both;
}
@keyframes dmFade { from { opacity: 0; } to { opacity: 1; } }
.dish-modal-backdrop.closing { animation: dmFadeOut .23s ease both; }
@keyframes dmFadeOut { from { opacity: 1; } to { opacity: 0; } }

.dish-modal {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: 92vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 50px rgba(0,0,0,.6);
  animation: dmSlide .28s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes dmSlide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.dish-modal.closing { animation: dmSlideOut .24s cubic-bezier(.4,0,.7,1) both; }
@keyframes dmSlideOut { from { transform: translateY(0); } to { transform: translateY(100%); } }

/* tirador estilo bottom-sheet */
.dish-modal::before {
  content: ""; position: sticky; top: 0; display: block;
  width: 42px; height: 4px; margin: 9px auto 0; border-radius: 999px;
  background: rgba(244,236,221,.28); z-index: 3;
}

.dm-close {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(16,11,9,.6); border: 1px solid rgba(244,236,221,.2); color: var(--text);
  backdrop-filter: blur(4px);
}
.dm-close:hover { background: rgba(16,11,9,.85); }
.dm-close svg { width: 17px; height: 17px; }

.dm-photo {
  position: relative; width: 100%; aspect-ratio: 16 / 11; overflow: hidden;
  background: #0c0806; margin-top: -13px;
}
.dm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-photo--vertical { aspect-ratio: 3 / 4; }
.dm-photo--none {
  display: grid; place-items: center; aspect-ratio: 16 / 8;
  background: radial-gradient(80% 100% at 50% 0%, rgba(154,27,24,.22), #0c0806 70%);
}
.dm-photo--none .tbg-logo { width: 120px; height: 120px; object-fit: contain; opacity: .92; }
.dm-stamp {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: 15px; color: var(--crimson-lit);
}

.dm-body { padding: 18px 20px 26px; }
.dm-name {
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: 23px; line-height: 1.1; color: var(--text); margin: 0;
}
.dm-tags { margin-top: 10px; }
.dm-desc { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.dm-price { margin-top: 16px; }
.dm-price .price { font-family: var(--f-head); font-weight: 700; font-size: 24px; color: var(--text); }
.dm-price .price .ref { font-size: .6em; }
.dm-variants { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dm-body .note { margin-top: 16px; }

/* ============================================================
   Panel "Personalizar" — botón flotante (modo dueño)
   ============================================================ */
.design-fab {
  position: fixed; z-index: 60;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  /* anclado al borde derecho de la columna del menú (máx 460px), centrada */
  right: max(16px, calc(50vw - 230px + 16px));
  width: 56px; height: 56px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.5), inset 0 0 0 1px var(--accent-lit);
  transition: transform .14s ease, background .15s ease;
}
.design-fab:hover { background: var(--accent-lit); }
.design-fab:active { transform: scale(.92); }
.design-fab svg { width: 23px; height: 23px; }

.design-sheet-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(6,4,3,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: dmFade .22s ease both;
}
.design-sheet-backdrop.closing { animation: dmFadeOut .23s ease both; }

.design-sheet {
  width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--panel); border: 1px solid var(--line-2); border-bottom: none;
  border-radius: 22px 22px 0 0; box-shadow: 0 -16px 50px rgba(0,0,0,.6);
  animation: dmSlide .28s cubic-bezier(.2,.8,.3,1) both;
}
.design-sheet.closing { animation: dmSlideOut .24s cubic-bezier(.4,0,.7,1) both; }
.design-sheet::before {
  content: ""; position: sticky; top: 0; display: block;
  width: 42px; height: 4px; margin: 9px auto 0; border-radius: 999px; background: rgba(244,236,221,.28);
}

.dp-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 20px 14px; border-bottom: 1px solid var(--line);
}
.dp-eyebrow { font-family: var(--f-script); color: var(--orange); font-size: 17px; line-height: 1; display: block; }
.dp-title { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 19px; margin: 2px 0 0; color: var(--text); }
.dp-x {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
}
.dp-x:hover { background: var(--panel-2); }
.dp-x svg { width: 16px; height: 16px; }

.dp-body { padding: 6px 20px 8px; }
.dp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.dp-row:last-child { border-bottom: none; }
.dp-row-l { min-width: 0; }
.dp-label { display: block; font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; color: var(--text); }
.dp-hint { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; line-height: 1.3; }
.dp-row-r { flex: 0 0 auto; }

/* segmented control */
.dp-seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; }
.dp-seg button {
  border: none; background: none; cursor: pointer; border-radius: 7px; padding: 7px 11px;
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; color: var(--muted);
}
.dp-seg button.is-on { background: var(--accent); color: #fff; }

/* toggle */
.dp-toggle { width: 46px; height: 27px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line-2); position: relative; cursor: pointer; padding: 0; }
.dp-toggle .dp-knob { position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--muted); transition: left .16s ease, background .16s ease; }
.dp-toggle.on { background: var(--accent); border-color: var(--accent-lit); }
.dp-toggle.on .dp-knob { left: 21px; background: #fff; }

/* swatches */
.dp-swatches { display: inline-flex; gap: 8px; }
.dp-sw { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.dp-sw.is-on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--gold); }

/* separador de sección dentro del panel */
.dp-sec {
  margin: 6px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--f-script); color: var(--orange); font-size: 17px; line-height: 1;
}

/* input numérico (tasa) */
.dp-num { display: inline-flex; align-items: center; gap: 6px; }
.dp-num input {
  width: 96px; text-align: right; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 8px; color: var(--text); font-family: var(--f-head); font-weight: 600; font-size: 14px; padding: 8px 10px;
}
.dp-num input:focus { outline: none; border-color: var(--gold); }
.dp-num-suf { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: var(--faint); }

.dp-foot {
  text-align: center; color: var(--faint); font-size: 11.5px; margin: 0;
  padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); font-style: italic;
}

/* ocultar el FAB al imprimir */
@media print { .design-fab, .design-sheet-backdrop { display: none !important; } }

/* ============================================================
   Siempre formato teléfono — columna estrecha y centrada en
   cualquier pantalla (90% de visitas son móviles).
   ============================================================ */
@media (min-width: 460px) {
  body { padding: 0; }
  .app {
    box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.55);
    min-height: 100vh;
  }
}

/* "Agotado" siempre en el DOM y ocupando el lugar del precio; el JS de tiempo
   real solo togglea .soldout y la cascada hace el resto. */
.dish:not(.soldout) .priceline-out { display: none; }
.dish.soldout .dish-priceline:not(.priceline-out),
.dish.soldout .variants { display: none; }

/* ============================================================
   Delivery (Fase 7.2): boton "Agregar" del modal de plato, FAB
   del carrito y drawer de checkout. Reusa .dish-modal-backdrop/
   .dish-modal (mismo lenguaje visual del bottom-sheet existente).
   ============================================================ */
.dm-add {
  margin-top: 12px; width: 100%; padding: 11px 16px; border: none; border-radius: 12px;
  background: var(--accent); color: #fff; cursor: pointer;
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 13px;
}
.dm-add:hover { background: var(--accent-lit); }
.dm-add:active { transform: scale(.98); }
.dm-add--variant {
  flex: 0 0 auto; margin-top: 0; width: 34px; height: 34px; padding: 0; font-size: 18px; line-height: 1;
}

.cart-fab {
  position: fixed; z-index: 60;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: max(16px, calc(50vw - 230px + 16px));
  padding: 13px 18px; gap: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.5), inset 0 0 0 1px var(--accent-lit);
}
.cart-fab:hover { background: var(--accent-lit); }
.cart-fab:active { transform: scale(.96); }
.cart-fab svg { width: 19px; height: 19px; flex: 0 0 auto; }
.cart-fab-label {
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 12.5px;
}
.cart-fab-count {
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--gold); color: #100b09; font-family: var(--f-head); font-weight: 700; font-size: 11px;
}

.cart-modal { max-width: 460px; }
.cart-body { padding: 18px 20px 26px; }
.cart-empty { color: var(--muted); font-size: 14px; margin-top: 8px; }

.cart-errors {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #d3453f55; background: #d3453f14; color: #d3453f;
  font-size: 13px;
}
.cart-errors-title { font-weight: 700; margin: 0 0 4px; }
.cart-errors ul { margin: 0; padding-left: 18px; }

.cart-list { list-style: none; margin: 12px 0 0; padding: 0; }
.cart-line {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--text);
}
.cart-line-name { flex: 1 1 auto; min-width: 0; }
.cart-line-name em { color: var(--muted); font-style: normal; font-size: 12px; }
.cart-line-qty { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.cart-line-qty button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text); cursor: pointer; line-height: 1;
}
.cart-line-price { flex: 0 0 auto; font-weight: 600; }
.cart-line-del {
  flex: 0 0 auto; border: none; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
}

.cart-total {
  display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-2); font-family: var(--f-head); font-weight: 700; font-size: 16px; color: var(--text);
}

.cart-form { margin-top: 16px; display: grid; gap: 10px; }
.cart-field { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.cart-field input, .cart-field textarea, .cart-field select {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text);
  font-family: var(--f-body); font-size: 14px; padding: 9px 11px; resize: vertical;
}
.cart-field input:focus, .cart-field textarea:focus, .cart-field select:focus { outline: none; border-color: var(--accent); }
.cart-submit {
  margin-top: 4px; padding: 12px 16px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: #fff;
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 13.5px;
}
.cart-submit:hover { background: var(--accent-lit); }

/* ============================================================
   Pagina publica de estado del pedido (/pedido/{token}).
   ============================================================ */
.os-body { padding: 20px 20px 40px; max-width: 460px; margin: 0 auto; }
.os-badge {
  display: inline-block; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 12.5px;
}
.os-badge--confirmado, .os-badge--en_camino { background: var(--accent); color: #fff; border-color: var(--accent-lit); }
.os-badge--entregado { background: #2f7d4f; color: #fff; border-color: #2f7d4f; }
.os-badge--rechazado { background: #7d2f2f; color: #fff; border-color: #7d2f2f; }

.os-item-list { list-style: none; margin: 10px 0 0; padding: 0; }
.os-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text);
}
.os-item em { color: var(--muted); font-style: normal; font-size: 12px; }

.os-total {
  display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-2); font-family: var(--f-head); font-weight: 700; font-size: 17px; color: var(--text);
}
.os-total small { font-weight: 500; font-size: 12px; color: var(--muted); }

.os-payment-method { margin-top: 8px; font-size: 13px; color: var(--muted); }

.os-actions { margin-top: 22px; display: grid; gap: 10px; }
.os-btn {
  display: block; text-align: center; padding: 12px 16px; border-radius: 12px; cursor: pointer;
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 13.5px;
  text-decoration: none;
}
.os-btn--wa { background: #25d366; color: #073b1e; border: none; }
.os-btn--wa:hover { background: #2fe375; }
.os-btn--ghost { background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); }
.os-btn--ghost:hover { background: var(--panel-2); }

/* Ancla del plato (#plato-ID): el banner que apunta a un plato aterriza aca, y
   sin este margen el plato queda debajo de la cabecera fija. Mismo
   desplazamiento que usa la seccion en esta carta. */
.dish{ scroll-margin-top:64px; }

/* Separacion entre promos apiladas: la cabecera admite hasta 5 banners. */
.banner + .banner { margin-top: 12px; }

/* Densidad comprimida: la descripcion sale de la fila. Quien pide mas platos por
   pantalla no la necesita ahi -- sigue completa al abrir el plato. Se acota a
   data-detalle="panel" porque en acordeon la descripcion la gobierna Alpine
   (x-show al abrir) y esconderla dejaria la fila abierta sin nada que mostrar. */
.app[data-detalle="panel"][data-density="compacta"] .dish-desc { display: none; }

/* La lupa del buscador va fija al final de la barra, fuera del riel de chips. */
.chips-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-right: 6px; }
.swipe-hint { grid-column: 1 / -1; }

/* El enlace del credito hereda el color del pie: sin esto cae al azul del navegador. */
.f-credito a { color: inherit; }

/* Acordeon: la descripcion crece y se recoge en lugar de aparecer de golpe.
   grid-template-rows 0fr->1fr anima a cualquier alto sin medir nada en JS, y
   al ser CSS puro el interruptor de animaciones del panel ya la apaga. */
.desc-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.desc-fold.is-open { grid-template-rows: 1fr; }
.desc-fold > * { overflow: hidden; min-height: 0; margin: 0; padding-top: 0;
  transition: padding-top .26s ease; }
.desc-fold.is-open > * { padding-top: 5px; }
@media (prefers-reduced-motion: reduce) { .desc-fold, .desc-fold > * { transition: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* El chevron del acordeon acompana al despliegue en vez de saltar. */
.dish-go svg { transition: transform .24s ease; }
