/* ============================================================
   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;
}
.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; }

/* ============================================================
   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); }

/* 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-photo .photo-stamp {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-8deg);
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: 10px; color: #fff; border: 1.5px solid #fff; border-radius: 4px; padding: 2px 6px;
  background: rgba(154,27,24,.78);
}
.dish.has-photo.soldout .dish-photo .dish-photo-img { filter: grayscale(.5) brightness(.7); }

.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); }
.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; border-radius: 12px; transition: background .14s ease; }
.dish.tappable:hover { background: rgba(244,236,221,.035); }
.dish.tappable:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.dish.tappable .dish-photo { transition: transform .18s ease; }
.dish.tappable:hover .dish-photo { transform: scale(1.03); }

/* 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); }
.dish.collapsed.tappable:hover .dish-go { color: var(--accent-lit); }

/* 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.spicy { color: #ffd9c2; background: rgba(196,50,42,.18); border: 1px solid rgba(196,50,42,.5); }
.tag.spicy svg { width: 10px; height: 10px; }
.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); }

/* 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 */
.dish.soldout { opacity: .58; }
.dish.soldout .dish-name { color: var(--muted); }
.dish.has-photo .stamp { display: none; }
.dish.soldout .price { color: var(--faint); text-decoration: line-through; }
.stamp {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%) rotate(-8deg);
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  font-size: 12px; color: var(--crimson-lit);
  border: 2px solid var(--crimson-lit); border-radius: 6px; padding: 3px 9px;
  background: rgba(196,50,42,.08); pointer-events: none;
}

/* 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-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-ref {
  margin-top: 16px; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .18em;
  font-size: 10.5px; color: var(--faint);
}
.admin-link {
  display: inline-block; margin-top: 22px;
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px;
  color: var(--faint); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  transition: color .15s, border-color .15s;
}
.admin-link:hover { color: var(--text); border-color: var(--gold-soft); }

/* ============================================================
   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.soldout img { filter: grayscale(.5) brightness(.62); }
.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 {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-7deg);
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  font-size: 18px; color: #fff; border: 2.5px solid #fff; border-radius: 8px; padding: 5px 14px;
  background: rgba(154,27,24,.8);
}

.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;
  }
}
