/* ============================================================
   GUANAJUATO · Portada v20 (bento con cortes redondeados)
   Marco de video/slider con "pestañas" del color del papel que
   recortan las esquinas (chip, tarjetas, texto + botón) y pastilla
   de reseñas en vidrio. Debajo: fila de botones de la carta.
   ============================================================ */
.px { --R: calc(28px * var(--rf, 1)); --pad: 12px; position: relative; }
.px, .cf { --gut: 16px; }
@media (max-width: 560px) { .px, .cf { --gut: 12px; } }

/* ---------- Título ---------- */
.px-cab { margin: 0 0 18px; }
.px-h1 {
  margin: 0; max-width: 17ch;
  font-weight: 800; font-size: clamp(34px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.025em;
  color: var(--tinta); text-wrap: balance;
}
.px-h1 em {
  font-style: normal; color: var(--rojo);
  background: linear-gradient(transparent 70%, rgba(var(--ambar-rgb), .45) 70%, rgba(var(--ambar-rgb), .45) 92%, transparent 92%);
  padding: 0 .04em;
}

/* ---------- Marco ---------- */
.px-marco { position: relative; height: clamp(440px, 50vw, 620px); }
.px-lienzo {
  position: absolute; inset: 0; overflow: hidden; border-radius: var(--R);
  background: var(--tinta); isolation: isolate;
}
.px-velo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(30, 10, 6, .18) 0%, transparent 22%, transparent 58%, rgba(30, 10, 6, .42) 100%);
}
.px-video, .px-poster, .px-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.px-poster { transition: opacity .6s ease; }
.px-video { opacity: 0; transition: opacity .8s ease; }
.px-marco.px-sonando .px-video { opacity: 1; }
.px-marco.px-sonando .px-poster { opacity: 0; }

/* Respaldo sin imágenes: color de marca + sello */
.px-marca {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(var(--ambar-rgb), .45), transparent 70%),
    radial-gradient(50% 60% at 15% 85%, rgba(var(--rojo-vivo-rgb), .35), transparent 70%),
    linear-gradient(135deg, var(--vino), var(--rojo));
}
.px-marca-sello { width: min(34%, 240px); height: auto; opacity: .95; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); }
.px-marca-txt { color: var(--papel); font-weight: 900; font-size: clamp(22px, 3.6vw, 46px); line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; text-align: center; max-width: 70%; opacity: .92; }

/* ---------- Slider ---------- */
.px-slide { position: absolute; inset: 0; margin: 0; z-index: 0; overflow: hidden; }
.px-slide.on { z-index: 1; }
.px-slide.prev { z-index: 0; }
/* Fundido + zoom lento (Ken Burns) */
.px-marco[data-px-trans="zoom"] .px-slide { opacity: 0; transition: opacity 1.2s ease; }
.px-marco[data-px-trans="zoom"] .px-slide.on { opacity: 1; }
.px-marco[data-px-trans="zoom"] .px-slide.prev { opacity: 1; }
.px-marco[data-px-trans="zoom"] .px-slide img { transform: scale(1.14); transition: transform var(--px-d, 6s) linear; }
.px-marco[data-px-trans="zoom"] .px-slide.on img { transform: scale(1); }
/* Cortina: la nueva foto entra barriendo de derecha a izquierda */
.px-marco[data-px-trans="cortina"] .px-slide { clip-path: inset(0 0 0 100%); transition: clip-path 1.15s cubic-bezier(.77, 0, .18, 1); }
.px-marco[data-px-trans="cortina"] .px-slide.on { clip-path: inset(0 0 0 0); }
.px-marco[data-px-trans="cortina"] .px-slide.prev { clip-path: inset(0 0 0 0); }
.px-marco[data-px-trans="cortina"] .px-slide img { transform: scale(1.1); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.px-marco[data-px-trans="cortina"] .px-slide.on img { transform: scale(1); }
/* Deslizar */
.px-marco[data-px-trans="deslizar"] .px-slide { transform: translateX(100%); transition: transform 1s cubic-bezier(.65, 0, .25, 1); }
.px-marco[data-px-trans="deslizar"] .px-slide.on { transform: translateX(0); }
.px-marco[data-px-trans="deslizar"] .px-slide.prev { transform: translateX(-28%); }
.px-marco[data-px-trans="deslizar"] .px-slide.prev img { filter: brightness(.6); transition: filter 1s ease; }

/* Barras de progreso del slider */
.px-prog { display: flex; gap: 5px; width: 110px; margin-left: 4px; }
.px-prog span { flex: 1; height: 4px; border-radius: calc(4px * var(--rf, 1)); background: var(--linea); overflow: hidden; }
.px-prog i { display: block; height: 100%; width: 0; background: var(--tinta); border-radius: inherit; }
.px-prog span.hecho i { width: 100%; }
.px-prog span.on i { width: 100%; transition: width var(--px-d, 5s) linear; }
.px-marco.px-pausado .px-prog span.on i { transition: none; }

/* ---------- Pestañas (cortes con esquinas cóncavas) ---------- */
.px-tab { position: absolute; z-index: 5; background: var(--papel); }
.px-tab::before, .px-tab::after { content: ""; position: absolute; width: var(--R); height: var(--R); pointer-events: none; }

.px-tab--tl { top: 0; left: 0; padding: 0 var(--pad) var(--pad) 0; border-bottom-right-radius: var(--R); }
.px-tab--tl::before { top: 0; left: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--R) - .5px), var(--papel) var(--R)); }
.px-tab--tl::after  { top: 100%; left: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--R) - .5px), var(--papel) var(--R)); }

.px-tab--tr { top: 0; right: 0; padding: 0 0 var(--pad) var(--pad); border-bottom-left-radius: var(--R); display: flex; gap: 10px; }
.px-tab--tr::before { top: 0; right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--R) - .5px), var(--papel) var(--R)); }
.px-tab--tr::after  { top: 100%; right: 0; background: radial-gradient(circle at 0 100%, transparent calc(var(--R) - .5px), var(--papel) var(--R)); }

.px-tab--bl { bottom: 0; left: 0; padding: calc(var(--pad) + 6px) calc(var(--pad) + 8px) 0 0; border-top-right-radius: var(--R); max-width: min(560px, 62%); }
.px-tab--bl::before { bottom: 100%; left: 0; background: radial-gradient(circle at 100% 0, transparent calc(var(--R) - .5px), var(--papel) var(--R)); }
.px-tab--bl::after  { bottom: 0; left: 100%; background: radial-gradient(circle at 100% 0, transparent calc(var(--R) - .5px), var(--papel) var(--R)); }

.px-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  background: var(--hoja); border: var(--bw, 1px) solid var(--linea); border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--tinta); white-space: nowrap; box-shadow: var(--sombra);
}

/* Tarjetas de datos */
.px-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-start;
  width: 196px; min-height: 206px; padding: 16px 16px 15px; border-radius: calc(var(--R) - 6px);
  background: var(--hoja); color: var(--tinta); border: var(--bw, 1px) solid var(--linea); overflow: hidden; isolation: isolate;
}
.px-card--1 { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.px-card--img { background: var(--tinta) var(--px-img) center / cover no-repeat; }
.px-card--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 10, 6, .55) 0%, rgba(30, 10, 6, .2) 45%, rgba(30, 10, 6, .82) 100%); }
.px-num { display: block; font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.px-card-tit { margin-top: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .82; }
.px-card-txt { margin-top: auto; padding-top: 14px; font-size: 13px; line-height: 1.4; font-weight: 500; }
.px-card--1 .px-card-txt { color: #EADBCB; }

/* Texto + botón (esquina inferior izquierda) */
.px-frase { margin: 0 0 14px; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--tinta-2); max-width: 44ch; text-wrap: pretty; }
.px-acciones { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.px-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  background: var(--cta-bg); color: #fff; text-decoration: none; font-weight: 800; font-size: 15.5px;
  box-shadow: 0 10px 24px rgba(var(--tinta-rgb), .25);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.px-cta svg { transition: transform .2s ease; }
.px-cta:hover { background: var(--rojo); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(var(--rojo-rgb), .32); }
.px-cta:hover svg { transform: translateX(3px); }
.px-cta:active { transform: scale(.97); }
.px-pausa {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: var(--bw, 1px) solid var(--linea); background: var(--hoja); color: var(--tinta); box-shadow: var(--sombra);
  transition: border-color .2s ease;
}
.px-pausa:hover { border-color: var(--tinta); }
.px-pausa .i-play { display: none; }
.px-marco.px-pausado .px-pausa .i-play { display: block; }
.px-marco.px-pausado .px-pausa .i-pausa { display: none; }

/* Esquina inferior derecha: tarjeta de vidrio + reseñas */
.px-br { position: absolute; z-index: 5; right: 18px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: min(330px, 34%); }
.px-glass {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: calc(20px * var(--rf, 1));
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .34); color: #fff;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  font-size: 13px; line-height: 1.4; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.px-glass .px-num { flex: none; font-size: 34px; padding: 10px 12px; border-radius: calc(14px * var(--rf, 1)); border: 1px solid rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .1); }
.px-glass strong { font-weight: 800; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .px-glass { background: rgba(var(--tinta-rgb), .78); }
}
.px-resena {
  display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .96); color: var(--tinta); text-decoration: none; box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: transform .2s ease; max-width: 100%;
}
a.px-resena:hover { transform: translateY(-2px); }
.px-res-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; background: var(--tinta); }
.px-res-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.px-res-top { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.px-res-top b { font-weight: 800; }
.px-stars::before {
  content: "★★★★★"; letter-spacing: 1px; font-size: 13px;
  background: linear-gradient(90deg, var(--ambar) calc(var(--r, 5) * 20%), #DCCFBE 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.px-g { flex: none; }
.px-res-n { display: none; }
.px-res-linea { font-size: 12px; font-weight: 600; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; transition: opacity .35s ease; }
.px-res-linea.cambia { opacity: 0; }

.px-cards-m, .px-frase-m { display: none; }

/* ---------- Botones de la carta (fila horizontal, colores de marca) ---------- */
.cf { margin-top: 38px; }
.cf-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 40px; }
.cf-cab h2 { margin: 0; font-weight: 900; font-size: 22px; text-transform: uppercase; color: var(--rojo); letter-spacing: .01em; }
.cf-nav { display: none; gap: 8px; margin-left: auto; }
.cf--scroll .cf-nav { display: flex; }
.cf-flecha {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: var(--bw, 1px) solid var(--linea); background: var(--hoja); color: var(--tinta); box-shadow: var(--sombra);
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.cf-flecha:hover:not(:disabled) { background: var(--tinta); color: #fff; }
.cf-flecha:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .cf--scroll .cf-nav { display: none; } }

.cf-fila {
  display: grid; grid-auto-flow: column; grid-auto-columns: 156px; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 16px; scrollbar-width: none;
}
.cf-fila::-webkit-scrollbar { display: none; }
.cf-tile {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column; align-items: center;
  min-height: 188px; padding: 16px 10px 14px; border: 0; border-radius: calc(34px * var(--rf, 1)); cursor: pointer; text-align: center;
  background: var(--cf-bg); color: var(--cf-fg);
  box-shadow: 0 1px 2px rgba(var(--tinta-rgb), .08), 0 8px 22px rgba(var(--tinta-rgb), .12);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease;
}
.cf-tile:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(var(--tinta-rgb), .1), 0 16px 32px rgba(var(--tinta-rgb), .2); }
.cf-tile:active { transform: scale(.96); }
.cf-tile:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
.cf-foto {
  flex: none; display: grid; place-items: center; width: 98px; height: 98px; margin-bottom: 12px;
  border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .26), 0 10px 20px rgba(30, 10, 6, .22);
}
.cf-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.cf-tile:hover .cf-foto img { transform: scale(1.08) rotate(-3deg); }
.cf-foto--ico { color: var(--cf-fg); }
.cf-foto--ico .cat-img { width: 62px; height: 62px; object-fit: contain; }
.cf-foto--ico:has(.cat-img) { background: #fff; }
.cf-nombre {
  font-weight: 800; font-size: 14.5px; line-height: 1.15; letter-spacing: .01em; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cf-nombre + .cf-n { margin-top: auto; padding-top: 6px; }
.cf-n { font-size: 12px; font-weight: 600; opacity: .78; }

/* ---------- Entrada ---------- */
@keyframes px-sube { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes px-aparece { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.px-h1 { animation: px-sube .7s cubic-bezier(.2, .8, .2, 1) both; }
.px-marco { animation: px-aparece .9s cubic-bezier(.2, .8, .2, 1) .08s both; }
.px-tab, .px-br { animation: px-sube .7s cubic-bezier(.2, .8, .2, 1) .35s both; }
.cf-tile { animation: px-sube .6s cubic-bezier(.2, .8, .2, 1) both; }
.cf-tile:nth-child(1) { animation-delay: .25s; } .cf-tile:nth-child(2) { animation-delay: .3s; }
.cf-tile:nth-child(3) { animation-delay: .35s; } .cf-tile:nth-child(4) { animation-delay: .4s; }
.cf-tile:nth-child(5) { animation-delay: .45s; } .cf-tile:nth-child(6) { animation-delay: .5s; }
.cf-tile:nth-child(n+7) { animation-delay: .55s; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .px-card { width: 168px; min-height: 186px; padding: 14px; }
  .px-num { font-size: 38px; }
  .px-br { max-width: 40%; }
}
@media (max-width: 900px) {
  .px-glass, .px-tab--tr { display: none; }
  .px-marco { height: clamp(420px, 62vw, 560px); }
  .px-br { max-width: 50%; }
  .px-cards-m { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
  .px-cards-m .px-card { width: auto; min-height: 168px; }
  .px-cards-m .px-card--3 { background: var(--suave); }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .px { --R: calc(22px * var(--rf, 1)); --pad: 10px; }
  .px-cab { margin-bottom: 14px; }
  .px-h1 { font-size: clamp(31px, 9vw, 42px); max-width: 15ch; }
  .px-marco { height: auto; aspect-ratio: 4 / 5; max-height: 74svh; min-height: 400px; }
  .px-tab--tr { display: none; }
  .px-chip { padding: 7px 13px; font-size: 12.5px; }
  .px-tab--bl { max-width: 86%; padding-top: calc(var(--pad) + 4px); }
  .px-tab--bl .px-frase { display: none; }
  .px-frase-m { display: block; margin: 14px 2px 0; font-size: 15px; line-height: 1.55; font-weight: 500; color: var(--tinta-2); text-wrap: pretty; }
  .px-cta { padding: 13px 20px; font-size: 15px; }
  .px-pausa { width: 44px; height: 44px; }
  .px-br { top: 14px; right: 14px; bottom: auto; max-width: 46%; }
  .px-resena { padding: 4px 12px 4px 4px; gap: 7px; background: rgba(255, 255, 255, .95); }
  .px-res-av { width: 32px; height: 32px; }
  .px-res-top { font-size: 13.5px; gap: 5px; }
  .px-res-top .px-stars, .px-res-linea { display: none; }
  .px-res-n { display: inline !important; font-size: 12px; font-weight: 600; color: var(--tinta-2); }
  .px-chip { display: inline-block; max-width: calc(100vw - 24px - 168px); overflow: hidden; text-overflow: ellipsis; }
  .px-prog { width: 64px; flex: none; }
  .px-acciones { flex-wrap: nowrap; gap: 8px; }
  .px-marco--slider .px-br { top: 14px; }

  .px-cards-m {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(148px, 46%); gap: 10px;
    margin: 12px calc(50% - 50vw) 0; padding: 0 var(--gut) 4px; scroll-padding: 0 var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .px-cards-m::-webkit-scrollbar { display: none; }
  .px-cards-m .px-card { width: auto; min-height: 150px; scroll-snap-align: start; padding: 14px; border-radius: calc(20px * var(--rf, 1)); }
  .px-cards-m .px-num { font-size: 34px; }
  .px-cards-m .px-card--3 { background: var(--suave); }

  .cf { margin-top: 30px; }
  .cf-cab h2 { font-size: 19px; }
  .cf-nav { display: none !important; }
  .cf-fila { margin: 0 calc(50% - 50vw); padding: 6px var(--gut) 16px; scroll-padding: 0 var(--gut); grid-auto-columns: 136px; gap: 10px; }
  .cf-tile { min-height: 172px; border-radius: calc(30px * var(--rf, 1)); padding-top: 14px; }
  .cf-foto { width: 86px; height: 86px; margin-bottom: 10px; }
  .cf-nombre { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .px-marco { min-height: 360px; }
  .px-tab--bl { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  .px-h1, .px-marco, .px-tab, .px-br, .cf-tile { animation: none; }
  .px-marco[data-px-trans] .px-slide, .px-marco[data-px-trans] .px-slide img { transition: opacity .4s ease !important; transform: none !important; clip-path: none !important; }
  .px-marco[data-px-trans] .px-slide { opacity: 0; }
  .px-marco[data-px-trans] .px-slide.on { opacity: 1; }
}

/* ============================================================
   v21 · Menú del celular: selector Domicilio/Recoger, riel de
   accesos en un corte del marco, "Tu pedido en curso" y barra
   inferior de vidrio con el carrito. (Computador: sin cambios)
   ============================================================ */
.px-seg, .px-rail, .dock { display: none; }
.px-tl--solo-m { display: none; }

/* Tu pedido en curso (también en computador, sobre la tarjeta de vidrio) */
.px-pedido {
  display: flex; flex-direction: column; gap: 4px; width: 200px; padding: 11px 13px 12px;
  border-radius: calc(18px * var(--rf, 1)); background: rgba(255, 255, 255, .96); color: var(--tinta); text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.px-pedido:active { transform: scale(.97); }
.px-ped-cab { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--tinta-2); }
.px-ped-cab b { font-weight: 800; color: var(--tinta); letter-spacing: .02em; }
.px-ped-vivo { width: 8px; height: 8px; border-radius: 50%; background: #1E9E5A; box-shadow: 0 0 0 0 rgba(30, 158, 90, .6); animation: px-latido 1.8s ease-out infinite; }
@keyframes px-latido { 70% { box-shadow: 0 0 0 7px rgba(30, 158, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 158, 90, 0); } }
.px-ped-est { font-size: 15px; font-weight: 800; line-height: 1.2; }
.px-ped-pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 3px; }
.px-ped-pasos i { height: 4px; border-radius: calc(4px * var(--rf, 1)); background: var(--linea); transition: background .4s ease; }
.px-ped-pasos i.ok { background: var(--ambar, var(--ambar)); }

/* Hojas inferiores (sedes / horario) */
.hoja-velo { position: fixed; inset: 0; z-index: 74; background: rgba(36, 15, 11, .45); }
.hoja-sheet {
  position: fixed; z-index: 75; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(460px, calc(100% - 24px)); max-height: 80vh; overflow-y: auto;
  background: var(--hoja); border-radius: calc(26px * var(--rf, 1)); padding: 10px 20px 18px; box-shadow: 0 -10px 40px rgba(36, 15, 11, .28);
}
.hs-tirador { display: block; width: 42px; height: 5px; border-radius: calc(5px * var(--rf, 1)); background: var(--linea); margin: 0 auto 12px; }
.hoja-sheet h2 { margin: 0 0 8px; font-weight: 900; font-size: 18px; text-transform: uppercase; color: var(--rojo); }
.hs-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: var(--bw, 1px) solid var(--linea); text-decoration: none; color: var(--tinta); }
.hs-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--suave); color: var(--rojo); }
.hs-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hs-txt strong { font-size: 15.5px; }
.hs-txt small { font-size: 13px; color: var(--tinta-2); line-height: 1.35; }
.hs-ir { flex: none; font-size: 12.5px; font-weight: 800; color: var(--rojo); }
.hs-estado { display: inline-block; margin: 2px 0 10px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hs-estado.abierto { background: #E5F3EA; color: #1E7A47; }
.hs-estado.cerrado { background: #FBE7E4; color: #A8322A; }
.hs-fila { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: var(--bw, 1px) solid var(--linea); font-size: 15px; }
.hs-fila b { font-weight: 800; }
.hs-nota { margin: 12px 0 0; font-size: 13px; color: var(--tinta-2); }
.hs-cerrar { display: block; width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: calc(14px * var(--rf, 1)); background: var(--suave); color: var(--tinta); font: inherit; font-weight: 800; cursor: pointer; }
@keyframes hs-sube { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes hs-baja { to { transform: translate(-50%, 40px); opacity: 0; } }
.hs-in { animation: hs-sube .32s cubic-bezier(.2, .8, .2, 1); }
.hs-out { animation: hs-baja .2s ease forwards; }

/* Aviso corto */
.aviso-toast {
  position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--tinta); color: #fff; font-size: 13.5px; font-weight: 700; text-align: center;
  box-shadow: 0 12px 30px rgba(36, 15, 11, .35);
}

@media (max-width: 760px) {
  /* Selector Domicilio | Recoger en el corte superior izquierdo */
  .px-tl--solo-m { display: block; }
  .px-tl--seg .px-chip { display: none; }
  .px-seg {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px;
    background: var(--hoja); border: var(--bw, 1px) solid var(--linea); box-shadow: var(--sombra);
  }
  .px-seg-pill {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
    background: var(--tinta); box-shadow: 0 4px 12px rgba(var(--tinta-rgb), .3);
    transition: transform .38s cubic-bezier(.3, 1.3, .5, 1);
  }
  .px-seg[data-on="recoge"] .px-seg-pill { transform: translateX(100%); }
  .px-seg button {
    position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 10px; border: 0; background: none; cursor: pointer; border-radius: 999px;
    font: inherit; font-size: 12.5px; gap: 5px; font-weight: 700; color: var(--tinta-2); transition: color .25s ease; white-space: nowrap;
  }
  .px-seg button[aria-checked="true"] { color: #fff; }
  .px-seg button:focus-visible { outline: 2px solid var(--ambar, var(--ambar)); outline-offset: 1px; }

  /* Riel de accesos en un corte del borde izquierdo */
  .px-rail {
    position: absolute; z-index: 5; left: 0; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 8px; padding: 10px 9px 10px 0;
    background: var(--papel); border-radius: 0 var(--R) var(--R) 0;
  }
  .px-rail::before, .px-rail::after { content: ""; position: absolute; left: 0; width: var(--R); height: var(--R); pointer-events: none; }
  .px-rail::before { bottom: 100%; background: radial-gradient(circle at 100% 0, transparent calc(var(--R) - .5px), var(--papel) var(--R)); }
  .px-rail::after  { top: 100%;    background: radial-gradient(circle at 100% 100%, transparent calc(var(--R) - .5px), var(--papel) var(--R)); }
  .px-rail-b { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--tinta); font: inherit; }
  .px-rail-b > span {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--hoja); border: var(--bw, 1px) solid var(--linea); box-shadow: 0 4px 12px rgba(var(--tinta-rgb), .12);
    transition: transform .15s ease, background .15s ease;
  }
  .px-rail-b:active > span { transform: scale(.9); background: var(--suave); }
  .px-rail-b small { font-size: 10px; font-weight: 700; color: var(--tinta-2); letter-spacing: .01em; }

  /* Pedido en curso: ocupa la esquina superior derecha (las reseñas se apartan) */
  .px-pedido { width: 168px; padding: 9px 11px 10px; border-radius: calc(16px * var(--rf, 1)); }
  .px-ped-est { font-size: 14px; }
  .px-con-pedido .px-resena { display: none; }
  .px-con-pedido .px-br { top: 76px; }

  /* Barra inferior */
  body:has(.dock) { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body:has(.dock) .fab, body:has(.dock) .barra-pedido, body:has(.dock) .topbar .btn-carrito { display: none !important; }
  body:has(.dock) .menu-flotante { left: 12px; right: 12px; width: auto; bottom: calc(92px + env(safe-area-inset-bottom)); max-height: 62vh; }
  .dock {
    position: fixed; z-index: 58; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 2px;
    height: 68px; padding: 7px 7px 7px 6px; border-radius: calc(26px * var(--rf, 1));
    background: rgba(var(--tinta-rgb), .9); border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(var(--vidrio, 16px)) saturate(150%); -webkit-backdrop-filter: blur(var(--vidrio, 16px)) saturate(150%);
    box-shadow: 0 14px 36px rgba(36, 15, 11, .38);
    animation: dock-entra .5s cubic-bezier(.2, .8, .2, 1) .2s both;
  }
  @keyframes dock-entra { from { transform: translateY(120%); } to { transform: none; } }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .dock { background: var(--vino); } }
  .dock-i {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: 100%; border: 0; background: none; cursor: pointer; text-decoration: none; border-radius: calc(18px * var(--rf, 1));
    color: rgba(247, 242, 234, .7); font: inherit; transition: color .2s ease, background .2s ease;
  }
  .dock-i small { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
  .dock-i.on { color: var(--ambar); }
  .dock-i.on::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--ambar); }
  .dock-i:active { background: rgba(255, 255, 255, .08); }
  .dock-cart {
    display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px 0 12px; border: 0; border-radius: calc(20px * var(--rf, 1));
    background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font: inherit;
    transition: background .25s ease, color .25s ease, transform .15s ease;
  }
  .dock-cart:active { transform: scale(.96); }
  .dock-cart.lleno { background: var(--ambar); color: var(--vino); box-shadow: 0 6px 18px rgba(var(--ambar-rgb), .4); }
  .dock-bolsa { position: relative; display: grid; place-items: center; }
  .dock-bolsa b {
    position: absolute; top: -8px; right: -10px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    display: grid; place-items: center; background: var(--rojo); color: #fff; font-size: 11px; font-weight: 800;
  }
  .dock-total { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

  .aviso-toast { bottom: calc(92px + env(safe-area-inset-bottom)); border-radius: calc(18px * var(--rf, 1)); }
  .hoja-sheet { left: 0; bottom: 0; transform: none; width: 100%; border-radius: calc(26px * var(--rf, 1)) calc(26px * var(--rf, 1)) 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  @keyframes hs-sube-m { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes hs-baja-m { to { transform: translateY(100%); } }
  .hs-in { animation: hs-sube-m .34s cubic-bezier(.2, .8, .2, 1); }
  .hs-out { animation: hs-baja-m .22s ease forwards; }
}
@media (max-width: 400px) {
  .px-seg button svg { width: 14px; height: 14px; }
}
@media (max-width: 360px) {
  .px-seg button { padding: 8px 9px; font-size: 12px; }
  .px-seg button svg { display: none; }
  .dock-cart { padding: 0 12px 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dock, .hs-in, .hs-out, .px-ped-vivo { animation: none !important; }
}

/* v22 · Títulos en Bogart */
.px-h1, .cf-cab h2, .hoja-sheet h2 { font-family: var(--fuente-titulo, 'Montserrat', sans-serif); }

/* ============================================================
   v23 · Tarjeta 1 con enlace (historia)
   ============================================================ */
.px-card--link { text-decoration: none; cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.px-card--link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(36, 15, 11, .28); }
.px-card-ir {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: currentColor;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .25s ease, background .25s ease;
}
.px-card--2 .px-card-ir, .px-card--3 .px-card-ir { background: var(--suave); border-color: var(--linea); }
.px-card--link:hover .px-card-ir { transform: rotate(45deg); background: var(--ambar); color: var(--vino); border-color: var(--ambar); }

/* ============================================================
   v23 · Categorías destacadas: cards de vidrio tipo espejo
   El fondo lleva manchas difusas del color de la sección para que
   el vidrio se note; el plato en PNG transparente "flota" encima.
   ============================================================ */
.dx {
  --dx: var(--ambar);
  position: relative; isolation: isolate; margin-top: 30px; padding: 22px 0 6px;
}
.dx::before {
  content: ""; position: absolute; z-index: -1; inset: 40px -40px -10px;
  background:
    radial-gradient(38% 60% at 12% 55%, color-mix(in srgb, var(--dx) 38%, transparent), transparent 70%),
    radial-gradient(30% 55% at 55% 30%, rgba(var(--ambar-rgb), .28), transparent 70%),
    radial-gradient(34% 60% at 92% 70%, color-mix(in srgb, var(--dx) 30%, transparent), transparent 70%);
  filter: blur(18px); pointer-events: none;
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .dx::before { background: radial-gradient(40% 60% at 15% 55%, rgba(var(--ambar-rgb), .32), transparent 70%), radial-gradient(35% 60% at 88% 65%, rgba(var(--rojo-rgb), .22), transparent 70%); }
}
.dx-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dx-barra { flex: none; width: 12px; height: 40px; border-radius: calc(8px * var(--rf, 1)) calc(10px * var(--rf, 1)) calc(9px * var(--rf, 1)) calc(11px * var(--rf, 1)); background: var(--dx); transform: rotate(-4deg); box-shadow: 0 4px 10px color-mix(in srgb, var(--dx) 40%, transparent); }
.dx-cab h2 { margin: 0; font-family: var(--fuente-titulo, 'Montserrat', sans-serif); font-weight: 900; font-size: clamp(22px, 3vw, 28px); text-transform: uppercase; color: var(--rojo); letter-spacing: .01em; }
.dx-ver {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .5); color: var(--tinta); font: inherit; font-weight: 800; font-size: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s ease, gap .2s ease;
}
.dx-ver:hover { background: #fff; gap: 10px; }

.dx-marco { position: relative; }
.dx-fila {
  display: grid; grid-auto-flow: column; grid-auto-columns: 214px; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 58px 4px 22px; margin-top: -42px; scrollbar-width: none;
}
.dx-fila::-webkit-scrollbar { display: none; }

.dx-card {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 14px 16px; border-radius: calc(30px * var(--rf, 1)); overflow: visible;
  background: linear-gradient(155deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .46) 48%, rgba(255, 255, 255, .62) 100%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -14px 28px rgba(255, 255, 255, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .25),
    0 1px 2px rgba(var(--tinta-rgb), .06),
    0 14px 34px rgba(var(--tinta-rgb), .13);
  backdrop-filter: blur(var(--vidrio, 16px)) saturate(170%); -webkit-backdrop-filter: blur(var(--vidrio, 16px)) saturate(170%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
/* Reflejo de espejo que cruza la card */
.dx-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, .12) 52%, transparent 62%) no-repeat;
  background-size: 250% 100%; background-position: 120% 0; transition: background-position .9s cubic-bezier(.2, .8, .2, 1);
  mix-blend-mode: soft-light;
}
.dx-card:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 #fff, inset 0 -14px 28px rgba(255, 255, 255, .25), 0 2px 4px rgba(var(--tinta-rgb), .08), 0 24px 46px rgba(var(--tinta-rgb), .2); }
.dx-card:hover::before { background-position: -40% 0; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .dx-card { background: rgba(255, 255, 255, .94); } }

.dx-foto { position: relative; width: 100%; height: 150px; margin: -46px 0 8px; }
.dx-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.dx-foto--png img { filter: drop-shadow(0 14px 14px rgba(var(--tinta-rgb), .26)) drop-shadow(0 3px 4px rgba(var(--tinta-rgb), .18)); }
.dx-foto--png::after { /* sombra en el piso */
  content: ""; position: absolute; bottom: 2px; left: 22%; right: 22%; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--tinta-rgb), .22), transparent); z-index: -1;
}
.dx-card:hover .dx-foto--png img { transform: translateY(-8px) scale(1.04) rotate(-2deg); }
.dx-foto--jpg { height: 140px; margin-top: 14px; }
.dx-foto--jpg img { inset: 0 auto auto 50%; width: 150px; height: 140px; transform: translateX(-50%); object-fit: cover; border-radius: calc(22px * var(--rf, 1)); box-shadow: 0 10px 20px rgba(var(--tinta-rgb), .18); }
.dx-card:hover .dx-foto--jpg img { transform: translateX(-50%) scale(1.04); }
.dx-foto--vacia { height: 128px; margin-top: 14px; display: grid; place-items: center; }
.dx-ico { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; color: var(--rojo); background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); box-shadow: inset 0 2px 6px rgba(var(--tinta-rgb), .08); }
.dx-ico .cat-img { width: 64px; height: 64px; object-fit: contain; }

.dx-card h3 { margin: 4px 0 4px; font-size: 15.5px; font-weight: 800; line-height: 1.2; color: var(--tinta); text-wrap: balance; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx-precio { margin: 0 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-variant-numeric: tabular-nums; }
.dx-precio b { font-size: 17px; font-weight: 800; color: var(--rojo); }
.dx-precio s { font-size: 14px; font-weight: 600; color: #B4775F; }
.dx-punto { width: 5px; height: 5px; border-radius: 50%; background: var(--rojo); }
.dx-btn {
  margin-top: auto; width: 100%; padding: 12px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 800; font-size: 14.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px rgba(var(--rojo-rgb), .28);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.dx-btn:hover:not(:disabled) { background: linear-gradient(180deg, var(--rojo-vivo), #C21A12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 22px rgba(var(--rojo-vivo-rgb), .32); }
.dx-btn:active:not(:disabled) { transform: scale(.96); }
.dx-btn:disabled { background: #CFC3B4; box-shadow: none; cursor: default; }
.dx-card--ago .dx-foto img { filter: grayscale(.7) opacity(.7); }
.dx-tag {
  position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px;
  background: var(--rojo); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.dx-tag--fav { background: var(--ambar); color: var(--vino); }

.dx-flecha {
  position: absolute; top: calc(50% + 8px); transform: translateY(-50%); z-index: 3; display: none; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; color: var(--rojo);
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 8px 22px rgba(var(--tinta-rgb), .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.dx-flecha--izq { left: -14px; }
.dx-flecha--der { right: -14px; }
.dx--scroll .dx-flecha { display: grid; }
.dx-flecha:disabled { opacity: 0; pointer-events: none; }
.dx-flecha:hover { transform: translateY(-50%) scale(1.06); }
@media (hover: none) { .dx--scroll .dx-flecha { display: none; } }

@media (max-width: 760px) {
  .dx { margin-top: 22px; }
  .dx-flecha { display: none !important; }
  .dx::before { inset: 40px -16px -10px; }
  .dx-cab h2 { font-size: 20px; }
  .dx-barra { height: 32px; width: 10px; }
  .dx-ver { padding: 8px 12px; font-size: 13px; }
  .dx-fila { grid-auto-columns: 62%; gap: 12px; margin: -42px calc(50% - 50vw) 0; padding: 58px var(--gut, 16px) 22px; scroll-padding: 0 var(--gut, 16px); }
  .dx { --gut: 16px; }
  .dx-foto { height: 150px; }
  .dx-card h3 { font-size: 15px; }
}
@media (max-width: 560px) { .dx { --gut: 12px; } }
@media (prefers-reduced-motion: reduce) { .dx-card, .dx-card::before, .dx-foto img { transition: none; } }

/* v23.1 · Brillos de las destacadas sin salirse de la pantalla */
.tienda { overflow-x: clip; }
@media (max-width: 760px) {
  .dx::before { inset: 40px 0 -10px; }
}

/* ============================================================
   v25 · Plato GRANDE saliendo de la card (la mitad por fuera)
   ============================================================ */
.dx-cab { position: relative; z-index: 2; }
.dx-fila { grid-auto-columns: 252px; gap: 18px; padding: 124px 6px 26px; margin-top: -104px; }
.dx-card { padding: 0 16px 18px; }
.dx-foto { width: calc(100% + 16px); height: 228px; margin: -116px -8px 4px; }
.dx-foto img { object-position: center center; }
.dx-foto--png img { filter: drop-shadow(0 18px 16px rgba(var(--tinta-rgb), .28)) drop-shadow(0 4px 6px rgba(var(--tinta-rgb), .18)); }
.dx-foto--png::after { bottom: -2px; left: 18%; right: 18%; height: 16px; }
.dx-card:hover .dx-foto--png img { transform: translateY(-10px) scale(1.05) rotate(-2deg); }
.dx-foto--jpg { width: 100%; height: 190px; margin: -92px 0 12px; }
.dx-foto--jpg img { width: 88%; height: 190px; border-radius: calc(26px * var(--rf, 1)); border: 4px solid rgba(255, 255, 255, .9); box-shadow: 0 16px 30px rgba(var(--tinta-rgb), .24); }
.dx-foto--vacia { height: 132px; margin: 18px 0 8px; }
.dx-card h3 { font-size: 16.5px; }
.dx-precio b { font-size: 18px; }
@media (max-width: 760px) {
  .dx-fila { grid-auto-columns: 72%; padding-top: 116px; margin-top: -100px; }
  .dx-foto { height: 214px; margin-top: -108px; }
  .dx-foto--jpg { height: 180px; margin-top: -86px; }
  .dx-foto--jpg img { height: 180px; }
}
/* v25 · espacio para que el plato no tape el título de la fila */
.dx-fila { margin-top: -12px; }
.dx-cab { margin-bottom: 0; }
@media (max-width: 760px) { .dx-fila { margin-top: -10px; } }
