/* Perfil público del negocio (móvil primero) */
body { padding-bottom: 110px; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; position: relative; }
.row-gap { display: flex; gap: 8px; }

/* Portada */
.cover { position: relative; height: 260px; overflow: hidden; }
.cover-img { position: absolute; inset: 0; transform-origin: center; animation: coverIn 1.4s var(--ease) both; }
.cover-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,28,20,.35) 0%, rgba(42,28,20,0) 40%, rgba(255,248,239,0) 70%, var(--crema) 100%); }
@keyframes coverIn { from { transform: scale(1.15); filter: blur(4px); } to { transform: scale(1); filter: none; } }
.cover-bar { position: absolute; top: 0; left: 0; right: 0; padding: 14px 16px; display: flex; justify-content: space-between; z-index: 2; max-width: 672px; margin: 0 auto; }
.glass { background: rgba(255,255,255,.82); backdrop-filter: blur(10px); color: var(--tinta); box-shadow: var(--sombra-1); }
#btnFav.on { color: var(--tomate); }
#btnFav.on svg { fill: currentColor; }

.mini-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 58px; display: flex; align-items: center; gap: 10px;
  padding: 0 max(16px, calc(50% - 304px)); background: rgba(255,248,239,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea); transform: translateY(-100%); transition: transform .35s var(--ease);
}
.mini-bar.show { transform: none; }
.mini-bar strong { font-family: var(--f-titulo); font-size: 17px; flex: 1; }
.mini-logo { width: 32px; height: 32px; border-radius: calc(var(--logo-r, 26px) * .4); background: var(--tomate); color: #fff; display: grid; place-items: center; font: 700 11px var(--f-texto); overflow: hidden; }
.mini-logo img, .biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-logo.has-img, .mini-logo.has-img { background: var(--papel); }
.mesa-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: var(--tomate-s); color: var(--tomate-d); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 99px; animation: pop .5s var(--spring); }

/* Ficha del negocio */
.biz { position: relative; margin-top: -70px; background: var(--papel); border-radius: var(--r-xl); padding: 52px 20px 20px; text-align: center; box-shadow: var(--sombra-2); }
.biz-logo {
  position: absolute; top: -38px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px; border-radius: var(--logo-r, 26px);
  background: linear-gradient(135deg, var(--tomate), var(--grad-2, var(--azafran))); color: #fff; display: grid; place-items: center;
  font: 700 22px var(--f-titulo); border: 5px solid var(--papel); box-shadow: var(--sombra-2); overflow: hidden;
}
.biz h1 { font-size: 30px; }
.biz > .muted { margin-top: 4px; }
.biz-meta { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }
.pill-rate { display: inline-flex; align-items: center; gap: 5px; }
.pill-rate svg { color: var(--azafran); }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--linea-2); }
.open { display: inline-flex; align-items: center; gap: 7px; color: var(--albahaca); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--albahaca); position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--albahaca); animation: ping 1.8s infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.act { display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 600; opacity: 0; animation: rise .6s var(--ease) forwards; animation-delay: var(--d); }
.act span { width: 54px; height: 54px; border-radius: 18px; background: var(--crema); display: grid; place-items: center; font-size: 22px; color: var(--tomate); transition: transform .25s var(--spring), background .2s; }
.act:hover span { background: var(--tomate-s); transform: translateY(-3px); }
.act:active span { transform: scale(.9); }

/* Lealtad */
.loyal {
  margin-top: 14px; border-radius: var(--r-lg); padding: 18px 20px; color: #fff; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--tomate) 0%, var(--grad-2, var(--azafran)) 100%);
  box-shadow: 0 12px 28px rgba(226,85,45,.28); transition: transform .3s var(--ease);
}
.loyal:hover { transform: translateY(-2px); }
.loyal::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -80px; border-radius: 50%; background: rgba(255,255,255,.12); }
.loyal-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.loyal-k { font-size: 13px; opacity: .9; font-weight: 500; }
.loyal-pts { font-family: var(--f-titulo); font-size: 26px; }
.loyal-pts b { font-weight: 700; font-variant-numeric: tabular-nums; }
.loyal-ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 22px; animation: floaty 3.2s ease-in-out infinite; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.28); margin-top: 12px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: 99px; transition: width 1.4s var(--ease) .4s; }
.loyal-hint { font-size: 13px; margin-top: 8px; opacity: .95; }

/* Secciones */
.sec { margin-top: 34px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sec-head h2 { font-size: 24px; }
.icon-btn.soft { background: var(--papel); border: 1px solid var(--linea); font-size: 18px; }

/* Ofertas */
.offers { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.offers::-webkit-scrollbar { display: none; }
.offer { flex: 0 0 78%; max-width: 330px; scroll-snap-align: start; background: var(--papel); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sombra-1); text-align: left; transition: transform .3s var(--ease), box-shadow .3s; }
.offer:hover { transform: translateY(-3px); box-shadow: var(--sombra-2); }
.offer .ph { height: 130px; }
.offer .ph img { transition: transform .6s var(--ease); }
.offer:hover .ph img { transform: scale(1.06); }
.offer-badge { position: absolute; top: 12px; left: 12px; background: var(--tomate); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 999px; z-index: 1; }
.offer-body { padding: 12px 14px 14px; }
.offer-body h3 { font-size: 17px; }
.offer-body p { font-size: 13px; }
.offer-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--tinta-3); }

/* Menú */
.search-box { display: flex; align-items: center; gap: 8px; background: var(--papel); border: 1px solid var(--linea-2); border-radius: 14px; padding: 0 6px 0 14px; max-height: 0; opacity: 0; overflow: hidden; margin-bottom: 0; transition: all .35s var(--ease); }
.search-box.open { max-height: 60px; opacity: 1; margin-bottom: 12px; }
.search-box input { flex: 1; border: 0; outline: 0; background: none; height: 48px; }
.search-box > svg { color: var(--tinta-3); }

.cats { position: sticky; top: 58px; z-index: 30; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--crema); padding: 10px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.cats::-webkit-scrollbar { display: none; }
.cats button { position: relative; z-index: 1; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--tinta-2); white-space: nowrap; transition: color .3s; }
.cats button.on { color: #fff; }
.cats-ind { position: absolute; top: 10px; height: 38px; border-radius: 999px; background: var(--tinta); transition: left .4s var(--ease), width .4s var(--ease); z-index: 0; left: 16px; width: 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip svg { font-size: 15px; }
.filters .chip.on.f-veg { background: var(--albahaca); border-color: var(--albahaca); }
.filters .chip.on.f-hot { background: var(--chile); border-color: var(--chile); }
.filters .chip.on.f-gf { background: var(--berenjena); border-color: var(--berenjena); }
.filters .chip.on.f-pop { background: var(--azafran); border-color: var(--azafran); color: var(--tinta); }

.cat-block { padding-top: 18px; scroll-margin-top: 112px; }
.cat-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.cat-title h3 { font-size: 21px; font-style: italic; font-weight: 500; }
.cat-title span { color: var(--tinta-3); font-size: 13px; }
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--linea-2); align-self: center; }

.dish {
  display: block; width: 100%; text-align: left; padding: 16px 14px; margin: 0 -14px; width: calc(100% + 28px); border-radius: var(--r);
  transition: background .2s, transform .2s var(--ease); position: relative;
}
.dish + .dish::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; border-top: 1px dashed var(--linea-2); }
.dish:hover { background: var(--papel); }
.dish:hover::before, .dish:hover + .dish::before { opacity: 0; }
.dish:active { transform: scale(.985); }
.dish-top { display: flex; align-items: baseline; gap: 0; }
.dish-name { font-family: var(--f-titulo); font-size: 18px; font-weight: 600; }
.leader { flex: 1; min-width: 20px; border-bottom: 2px dotted var(--linea-2); margin: 0 8px; transform: translateY(-5px); }
.dish-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-ingr { color: var(--tinta-2); font-size: 14px; margin-top: 3px; padding-right: 30px; }
.dish-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dish-more { position: absolute; right: 14px; bottom: 16px; color: var(--tinta-3); font-size: 18px; transition: transform .25s var(--ease), color .2s; }
.dish:hover .dish-more { transform: translateX(3px); color: var(--tomate); }
.dish .in-cart { position: absolute; left: -2px; top: 18px; width: 4px; height: 20px; border-radius: 4px; background: var(--tomate); }
.dish.hide { display: none; }
.empty { text-align: center; padding: 30px 0; color: var(--tinta-2); }

/* Reseñas */
.rate-sum { display: flex; gap: 22px; align-items: center; background: var(--papel); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sombra-1); margin-bottom: 14px; }
.rate-big { display: grid; justify-items: center; gap: 4px; min-width: 92px; }
.rate-big b { font-family: var(--f-titulo); font-size: 44px; line-height: 1; }
.rate-bars { flex: 1; display: grid; gap: 6px; }
.rb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tinta-2); }
.rb div { flex: 1; height: 7px; border-radius: 99px; background: var(--crema-2); overflow: hidden; }
.rb div span { display: block; height: 100%; width: 0; background: var(--azafran); border-radius: 99px; transition: width 1.1s var(--ease); }
#rsSeg { margin-bottom: 12px; }
.reviews { display: grid; gap: 10px; }
.review { background: var(--papel); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sombra-1); animation: rise .5s var(--ease) both; }
.review-h { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; }
.review-h div { flex: 1; }
.review-h b { display: block; font-size: 14px; }
.review p.t { margin-top: 8px; font-size: 14px; }
.review .on-dish { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--tomate-d); background: var(--tomate-s); padding: 3px 9px; border-radius: 99px; margin-top: 8px; }
.review .subs { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--tinta-2); }
.review .reply { margin-top: 10px; padding: 10px 12px; background: var(--crema); border-radius: 12px; font-size: 13px; border-left: 3px solid var(--tomate); }

/* Encuesta */
.survey { background: var(--papel); border-radius: var(--r-lg); padding: 22px 20px; box-shadow: var(--sombra-1); text-align: center; overflow: hidden; }
.survey h3 { font-size: 20px; }
.survey .step { animation: rise .45s var(--ease) both; }
.faces { display: flex; justify-content: center; gap: 6px; margin: 16px 0 4px; }
.faces button { font-size: 34px; width: 54px; height: 54px; border-radius: 16px; transition: transform .25s var(--spring), background .2s; filter: grayscale(.5); }
.faces button:hover { transform: scale(1.18) rotate(-6deg); filter: none; background: var(--crema); }
.survey .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.survey-pts { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--albahaca); background: var(--albahaca-s); padding: 4px 10px; border-radius: 99px; margin-top: 8px; }
.dots-step { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.dots-step i { width: 18px; height: 4px; border-radius: 9px; background: var(--linea-2); transition: background .3s; }
.dots-step i.on { background: var(--tomate); }

/* Información */
.info-grid { display: grid; gap: 8px; }
.info-row { display: flex; align-items: center; gap: 14px; background: var(--papel); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sombra-1); transition: transform .2s var(--ease); }
.info-row:hover { transform: translateX(3px); }
.info-row div { flex: 1; }
.info-row p { font-size: 13px; }
.info-row > svg { color: var(--tinta-3); }
.ib { width: 40px; height: 40px; border-radius: 12px; background: var(--tomate-s); color: var(--tomate); display: grid; place-items: center; font-size: 19px; }
.hours { margin-top: 12px; background: var(--papel); border-radius: var(--r); padding: 6px 16px; box-shadow: var(--sombra-1); }
.hours div { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--linea); }
.hours div:last-child { border: 0; }
.hours div.today { font-weight: 700; color: var(--tomate-d); }
.powered { text-align: center; color: var(--tinta-3); font-size: 13px; padding: 36px 0 10px; }

/* Barra de pedido y botón IA */
.cart-bar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; width: calc(100% - 32px); max-width: 520px;
  height: 58px; border-radius: 999px; background: var(--tinta); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 22px 0 8px;
  box-shadow: var(--sombra-3); transform: translate(-50%, 140%); transition: transform .5s var(--spring); font-weight: 600;
}
.cart-bar.show { transform: translate(-50%, 0); }
.cart-bar span:nth-child(2) { flex: 1; text-align: left; }
.cart-count { width: 42px; height: 42px; border-radius: 50%; background: var(--tomate); display: grid; place-items: center; font-weight: 700; }
.cart-bar.bump { animation: bump .5s var(--spring); }
@keyframes bump { 0% { transform: translate(-50%,0) scale(1); } 35% { transform: translate(-50%,-6px) scale(1.04); } 100% { transform: translate(-50%,0) scale(1); } }

.ai-fab {
  position: fixed; right: max(16px, calc(50% - 304px)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 59;
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 6px; border-radius: 999px; background: var(--papel);
  box-shadow: var(--sombra-2); font-weight: 600; font-size: 14px; transition: bottom .5s var(--spring), transform .2s;
  animation: rise .7s 1s var(--ease) both;
}
.ai-fab:active { transform: scale(.95); }
body.has-cart .ai-fab { bottom: calc(86px + env(safe-area-inset-bottom)); padding-right: 6px; }
body.has-cart .ai-txt { display: none; }
.ai-orb { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 19px; background: conic-gradient(from 0deg, var(--tomate), var(--azafran), var(--albahaca), var(--tomate)); animation: spin 6s linear infinite; }
.ai-orb svg { animation: spin 6s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hoja: detalle de plato */
.gallery { position: relative; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 28px 28px 0 0; }
.g-track::-webkit-scrollbar { display: none; }
.g-track .ph { flex: 0 0 100%; height: 280px; scroll-snap-align: start; }
.g-track .ph::before { font-size: 80px; }
.g-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.g-dots i { width: 7px; height: 7px; border-radius: 9px; background: rgba(255,255,255,.6); transition: all .3s var(--ease); }
.g-dots i.on { width: 20px; background: #fff; }
@media (min-width: 760px) { .g-track { border-radius: 28px 28px 0 0; } }

.d-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.d-head h3 { font-size: 26px; }
.d-price { font-weight: 700; font-size: 19px; color: var(--tomate-d); white-space: nowrap; padding-top: 4px; }
.d-rate { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 6px; color: var(--tinta-2); }
.d-desc { margin-top: 12px; color: var(--tinta-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.fact { background: var(--papel); border-radius: 14px; padding: 12px 10px; text-align: center; box-shadow: var(--sombra-1); opacity: 0; animation: rise .5s var(--ease) forwards; }
.fact svg { color: var(--tomate); font-size: 20px; }
.fact b { display: block; font-size: 14px; margin-top: 4px; }
.fact span { font-size: 11.5px; color: var(--tinta-2); }
.sheet h4 { font-family: var(--f-texto); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-3); margin: 22px 0 10px; }
.ingr { display: flex; flex-wrap: wrap; gap: 6px; }
.ingr span { background: var(--papel); border: 1px solid var(--linea); padding: 6px 12px; border-radius: 99px; font-size: 13px; }
.ingr span.al { border-color: #F5C2B5; background: #FFF1EC; color: var(--tomate-d); }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--linea-2); cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--tomate); }
.opt span { flex: 1; }
.mini-rev { background: var(--papel); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; font-size: 14px; }
.mini-rev b { font-size: 13px; }

/* Hoja: carrito, reserva, etc. */
.sheet-title { font-size: 24px; padding-right: 40px; }
.sheet-sub { color: var(--tinta-2); margin-top: 4px; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--linea-2); }
.cart-item .ph { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.cart-item .ph::before { font-size: 24px; }
.cart-item div.n { flex: 1; min-width: 0; }
.cart-item div.n b { display: block; font-size: 15px; }
.cart-item div.n span { font-size: 12.5px; color: var(--tinta-2); }
.cart-item .stepper { transform: scale(.85); transform-origin: right; }
.totals { margin-top: 14px; display: grid; gap: 8px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .tot { font-size: 18px; font-weight: 700; padding-top: 8px; border-top: 1px solid var(--linea-2); }
.earn { display: flex; align-items: center; gap: 10px; margin-top: 14px; background: var(--azafran-s); color: #8A520B; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 500; }
.opts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt-card { border: 1.5px solid var(--linea-2); background: var(--papel); border-radius: 14px; padding: 12px 8px; display: grid; justify-items: center; gap: 4px; font-size: 13px; font-weight: 600; transition: all .2s var(--ease); }
.opt-card svg { font-size: 22px; color: var(--tinta-2); }
.opt-card.on { border-color: var(--tomate); background: var(--tomate-s); color: var(--tomate-d); }
.opt-card.on svg { color: var(--tomate); }
.redeem { display: flex; align-items: center; gap: 12px; margin-top: 14px; background: var(--papel); border-radius: 14px; padding: 12px 14px; }
.redeem div { flex: 1; font-size: 14px; }

.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 62px; padding: 10px 0; border-radius: 16px; border: 1.5px solid var(--linea-2); background: var(--papel); text-align: center; transition: all .25s var(--ease); }
.day small { display: block; font-size: 12px; color: var(--tinta-2); font-weight: 600; }
.day b { font-size: 20px; font-family: var(--f-titulo); }
.day.on { background: var(--tinta); border-color: var(--tinta); color: #fff; transform: translateY(-2px); }
.day.on small { color: rgba(255,255,255,.7); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { height: 42px; border-radius: 12px; border: 1.5px solid var(--linea-2); background: var(--papel); font-weight: 600; font-size: 14px; transition: all .2s var(--ease); }
.slot.on { background: var(--tomate); border-color: var(--tomate); color: #fff; }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.people { display: flex; justify-content: space-between; align-items: center; background: var(--papel); border-radius: 14px; padding: 10px 10px 10px 16px; }

.done { text-align: center; padding: 36px 24px 28px; }
.done h3 { font-size: 26px; margin-top: 18px; }
.done p { color: var(--tinta-2); margin-top: 6px; }
.done .summary { margin: 20px auto 0; max-width: 340px; background: var(--papel); border-radius: 16px; padding: 14px 16px; text-align: left; display: grid; gap: 8px; font-size: 14px; }
.done .summary div { display: flex; justify-content: space-between; gap: 10px; }
.track { display: grid; gap: 0; max-width: 340px; margin: 20px auto 0; text-align: left; }
.trk { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.trk::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--linea-2); }
.trk:last-child::before { display: none; }
.trk i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--linea-2); background: var(--papel); display: grid; place-items: center; flex: none; font-size: 14px; transition: all .4s var(--ease); color: transparent; }
.trk.on i { background: var(--albahaca); border-color: var(--albahaca); color: #fff; }
.trk.now i { border-color: var(--tomate); box-shadow: 0 0 0 5px var(--tomate-s); }
.trk b { display: block; font-size: 14px; }
.trk span { font-size: 12.5px; color: var(--tinta-2); }

/* Lealtad (hoja) */
.reward { display: flex; align-items: center; gap: 14px; background: var(--papel); border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; }
.reward .em { font-size: 26px; width: 48px; height: 48px; border-radius: 14px; background: var(--crema); display: grid; place-items: center; }
.reward div { flex: 1; }
.reward div b { display: block; font-size: 15px; }
.reward .mini { height: 5px; border-radius: 9px; background: var(--crema-2); margin-top: 6px; overflow: hidden; }
.reward .mini span { display: block; height: 100%; background: var(--azafran); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.how div { background: var(--papel); border-radius: 14px; padding: 12px; text-align: center; font-size: 12.5px; color: var(--tinta-2); }
.how b { display: block; font-size: 18px; color: var(--tinta); font-family: var(--f-titulo); }

/* Estrellas interactivas */
.star-pick { display: flex; justify-content: center; gap: 6px; font-size: 38px; margin: 10px 0 4px; }
.star-pick button { color: var(--linea-2); transition: transform .2s var(--spring), color .2s; }
.star-pick button.on { color: var(--azafran); }
.star-pick button:hover { transform: scale(1.15); }
.star-pick button svg { fill: currentColor; stroke: none; }
.sub-rate { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; }
.sub-rate .star-pick { font-size: 20px; margin: 0; gap: 2px; }

/* Chat IA */
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--linea); }
.chat-head .ai-orb { width: 44px; height: 44px; }
.chat-head p { font-size: 12.5px; color: var(--albahaca); font-weight: 600; }
.chat-log { padding: 16px 20px; display: grid; gap: 10px; min-height: 46vh; align-content: start; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; animation: rise .35s var(--ease) both; }
.msg.bot { background: var(--papel); border-bottom-left-radius: 6px; box-shadow: var(--sombra-1); }
.msg.me { background: var(--tinta); color: #fff; justify-self: end; border-bottom-right-radius: 6px; }
.msg .sug-dish { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: var(--crema); padding: 8px 12px; border-radius: 12px; margin-top: 6px; font-size: 13.5px; font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--tinta-3); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 20px 10px; }
.quick::-webkit-scrollbar { display: none; }
.chat-in { display: flex; gap: 8px; width: 100%; }
.chat-in input { flex: 1; border: 1px solid var(--linea-2); border-radius: 999px; padding: 0 16px; height: 46px; outline: none; background: var(--crema); }
.chat-in button { width: 46px; height: 46px; border-radius: 50%; background: var(--tomate); color: #fff; display: grid; place-items: center; font-size: 18px; }

@media (min-width: 760px) {
  .cover { height: 340px; }
  .biz h1 { font-size: 36px; }
}

/* Platos agotados (vienen del panel o del POS) */
.tag.agotado { background: var(--tinta); color: #fff; }
.dish.is-off .dish-name, .dish.is-off .dish-price { color: var(--tinta-3); text-decoration: line-through; text-decoration-thickness: 1px; }

/* Redes del comercio */
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--linea-2); }
.socials[hidden] { display: none; }
.socials a { opacity: 0; animation: rise .5s var(--ease) forwards; animation-delay: calc(.35s + var(--i) * .05s); transition: transform .25s var(--spring); }
.socials a:hover { transform: translateY(-3px) scale(1.08); }
.socials a:active { transform: scale(.9); }

/* Plato del día */
.dia-sec { animation: rise .6s var(--ease) both; }
.dia-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 20px; background: #22302A; color: #F6F1E6; box-shadow: 0 0 0 6px #8A5A2B, var(--sombra-2); margin: 6px; }
.dia-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.07), transparent 60%); pointer-events: none; }
.dia-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; position: relative; }
.dia-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #F2C14E; text-transform: uppercase; letter-spacing: .05em; }
.dia-top h2 { font-size: 30px; margin: 4px 0 2px; color: #fff; }
.dia-top p { font-size: 13.5px; color: #C9D3C4; display: inline-flex; gap: 6px; align-items: center; }
.dia-precio { text-align: right; flex: none; }
.dia-precio small { display: block; font-size: 12px; color: #C9D3C4; }
.dia-precio b { font: 700 26px var(--f-texto); color: #F2C14E; white-space: nowrap; }
.dia-filas { display: grid; gap: 10px; margin: 16px 0 12px; position: relative; }
.dia-fila { display: flex; gap: 12px; align-items: flex-start; }
.dia-ge { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 18px; flex: none; }
.dia-fila b { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: #F2C14E; }
.dia-fila p { font-size: 14.5px; line-height: 1.45; }
.dia-fila em { font-style: normal; font-size: 12px; font-weight: 700; color: #F2C14E; }
.dia-nota { font-size: 13px; color: #C9D3C4; margin-bottom: 14px; position: relative; }
.dia-card .btn { position: relative; }

/* Hecho con FullMenu */
.powered a { display: inline-flex; align-items: center; gap: 8px; opacity: .8; transition: opacity .2s; }
.powered a:hover { opacity: 1; }
.powered img { height: 24px; width: auto; }
.powered-priv { display: block; margin-top: 8px; font-size: 12.5px; color: var(--tinta-3); text-decoration: underline; text-underline-offset: 3px; }
