:root {
  --bg: #0a0712;
  --ink: #f6f2ff;
  --muted: #a99fc2;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(18, 13, 30, .62);
  --accent: #b46bff;
  --accent-2: #2fd3ff;
  --wa: #1f9d55;
  --top-h: 64px;
  --cw: clamp(210px, 19vw, 290px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Inter Tight', system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---------------- ESCENA (bar de noche) ---------------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(55% 45% at 18% 22%, rgba(132, 56, 255, .55), transparent 62%),
    radial-gradient(42% 38% at 84% 18%, rgba(0, 186, 255, .32), transparent 62%),
    radial-gradient(48% 40% at 58% 30%, rgba(255, 36, 168, .30), transparent 64%),
    radial-gradient(80% 60% at 50% 100%, rgba(70, 20, 120, .5), transparent 70%),
    #0a0712; }
.neon-glow { position: absolute; inset: -10%; background: conic-gradient(from 200deg at 50% 40%, rgba(180, 80, 255, .18), rgba(0, 200, 255, .12), rgba(255, 40, 170, .16), rgba(180, 80, 255, .18)); filter: blur(60px); animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity: .55; transform: scale(1.06); } }
.bokeh span { position: absolute; border-radius: 50%; filter: blur(var(--b, 8px)); opacity: var(--o, .4); background: var(--c); animation: drift var(--t, 14s) ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(var(--dx, 20px), var(--dy, -14px)); } }
.neon-sign { position: absolute; left: 50%; top: 13%; transform: translateX(-50%) rotate(-4deg); font-family: 'Tilt Neon', var(--font); font-size: clamp(54px, 8vw, 120px); color: #ffd8ff; white-space: nowrap; filter: blur(2.2px); opacity: .55;
  text-shadow: 0 0 6px #ff7af0, 0 0 18px #ff3fd8, 0 0 42px #c03cff, 0 0 80px #8a2bff; animation: flicker 7s infinite; }
@keyframes flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: .55; } 20%, 63% { opacity: .3; } }
.counter { position: absolute; left: 0; right: 0; bottom: 0; height: 31vh;
  background: linear-gradient(180deg, #23162f 0, #160e1f 8%, #0d0914 60%, #07050b 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .14), 0 -30px 60px rgba(0, 0, 0, .35); }
.counter::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(92deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 9px); mix-blend-mode: screen; }
.counter-shine { position: absolute; inset: 0 0 auto; height: 70%;
  background: radial-gradient(40% 60% at 30% 0, rgba(170, 80, 255, .28), transparent 70%), radial-gradient(35% 55% at 75% 0, rgba(0, 190, 255, .18), transparent 70%), radial-gradient(30% 50% at 52% 0, var(--glow, rgba(255, 60, 180, .2)), transparent 70%);
  transition: background .8s; }
.grain { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------------- CABECERA ---------------- */
.top { position: fixed; inset: 0 0 auto; height: var(--top-h); z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; background: linear-gradient(rgba(10, 7, 18, .7), transparent); }
.logo img { width: 110px; height: auto; }
.top-title { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.total-pill { justify-self: end; display: inline-flex; gap: 10px; align-items: baseline; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 12px; color: var(--muted); }
.total-pill strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.total-pill.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); background: rgba(180, 107, 255, .35); } }

/* ---------------- LAYOUT ---------------- */
.app { position: relative; z-index: 2; height: 100svh; padding-top: var(--top-h); display: grid; grid-template-columns: minmax(330px, 380px) 1fr minmax(270px, 310px); gap: 0; }

/* ---------------- PANEL ---------------- */
.panel { margin: 12px 0 18px 20px; display: flex; flex-direction: column; min-height: 0; background: var(--glass); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 12px; border-bottom: 1px solid var(--line); }
.steps button { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; font-size: 11px; color: var(--muted); transition: background .3s, color .3s; }
.steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.steps button.is-on { background: rgba(255, 255, 255, .07); color: var(--ink); }
.steps button.is-on i { background: var(--accent); border-color: var(--accent); }
.steps button.is-done i { background: rgba(47, 211, 255, .2); border-color: var(--accent-2); }
.pages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 8px; scrollbar-width: thin; }
.page { display: none; }
.page.is-on { display: block; animation: pageIn .45s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
.page h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 16px; }
.panel-foot { display: flex; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.btn { flex: 1; height: 46px; border-radius: 14px; background: linear-gradient(180deg, #c58bff, #9a4cf5); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px rgba(154, 76, 245, .35), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s var(--ease), opacity .3s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: scale(.97); }
.btn.ghost { flex: 0 0 96px; background: rgba(255, 255, 255, .06); box-shadow: none; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.wa { background: linear-gradient(180deg, #2ec46c, #1a8a49); box-shadow: 0 10px 24px rgba(31, 157, 85, .35), inset 0 1px 0 rgba(255, 255, 255, .3); width: 100%; flex: none; }
.btn.wa svg { width: 18px; height: 18px; }

/* tarjetas de opción */
.opt-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .25s var(--ease); }
.opt-card:hover { background: rgba(255, 255, 255, .07); }
.opt-card:active { transform: scale(.985); }
.opt-card.is-on { border-color: var(--accent); background: rgba(180, 107, 255, .14); box-shadow: inset 0 0 0 1px var(--accent); }
.opt-card b { display: block; font-size: 14.5px; font-weight: 600; }
.opt-card small { color: var(--muted); font-size: 12px; }
.opt-card .price { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sizes, .liquors, .toppings { display: grid; gap: 8px; }
.size-ico { width: 44px; height: 54px; display: grid; place-items: end center; }
.size-ico svg { width: calc(26px * var(--s)); height: auto; }
.liq-ico { width: 56px; height: 40px; display: grid; place-items: center; }
.liq-ico img { width: 56px; transform: rotate(-18deg); }
.liq-ico .none { width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .35); }
.top-ico { width: 52px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.top-ico img { max-width: 46px; max-height: 40px; object-fit: contain; }
.top-ico img.tall { transform: rotate(60deg); max-height: 62px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; }
.swatch.tajin { background: radial-gradient(circle at 30% 30%, #ff8a3d, #c4271b 70%); box-shadow: inset 0 0 0 3px rgba(0,0,0,.12); background-image: radial-gradient(#8b1a10 1px, transparent 1.4px), radial-gradient(circle at 30% 30%, #ff8a3d, #c4271b 70%); background-size: 6px 6px, auto; }
.swatch.chamoy { background: radial-gradient(circle at 35% 30%, #d23744, #6d0b14 75%); }
.swatch.leche { background: radial-gradient(circle at 35% 30%, #fffdf6, #e8dcc4 80%); }
.check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .25); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.opt-card.is-on .check { background: var(--accent); border-color: var(--accent); }
.check svg { width: 13px; height: 13px; opacity: 0; transition: opacity .2s; }
.opt-card.is-on .check svg { opacity: 1; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); transition: border .25s; }
.opt-card.is-on .radio { border: 6px solid var(--accent); }

/* sabores */
.flavor-type { display: flex; gap: 8px; margin-bottom: 12px; }
.flavor-type input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); outline: none; font-size: 16px; }
.flavor-type input:focus { border-color: var(--accent); }
.flavor-type button { padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.chosen { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); font-size: 12.5px; animation: pageIn .35s var(--ease); }
.chip i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.chip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-size: 13px; line-height: 1; }
.chip.empty { background: none; border-style: dashed; color: var(--muted); padding-right: 10px; }
.bottles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bottle-btn { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: background .3s, transform .25s var(--ease), border-color .3s; }
.bottle-btn:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.bottle-btn img { height: 86px; width: auto; filter: var(--f) drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); transition: transform .4s var(--ease); }
.bottle-btn:hover img { transform: rotate(-8deg); }
.bottle-btn span { font-size: 12.5px; font-weight: 600; }
.bottle-btn .glow { position: absolute; inset: auto 20% 30px; height: 30px; border-radius: 50%; background: var(--c); filter: blur(18px); opacity: .35; }
.bottle-btn .count { position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--accent); font-size: 11px; font-weight: 700; display: none; place-items: center; padding: 0 5px; }
.bottle-btn.is-on { border-color: var(--accent); }
.bottle-btn.is-on .count { display: grid; }
.bottles.is-full .bottle-btn:not(.is-on) { opacity: .45; }

/* pedido */
.order { display: grid; gap: 12px; }
.order label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.order input:not([type=radio]), .order textarea { width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); outline: none; font-size: 16px; resize: vertical; }
.order input:focus, .order textarea:focus { border-color: var(--accent); }
.order .invalid { border-color: #ff5d7a !important; }
.deliv { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deliv legend { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.deliv label { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--ink); font-size: 13px; cursor: pointer; }
.deliv label:has(input:checked) { border-color: var(--accent); background: rgba(180, 107, 255, .14); }
.deliv input { accent-color: var(--accent); }
.opt { color: rgba(169, 159, 194, .7); }

/* ---------------- ESCENARIO / VASO ---------------- */
.stage { position: relative; min-height: 0; }
.stage-hint { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 242, 255, .55); white-space: nowrap; transition: opacity .4s; }
.cup-wrap { position: absolute; left: 50%; bottom: calc(31vh - 8px); width: var(--cw); height: calc(var(--cw) * 1.2667); transform-origin: 50% 100%; translate: -50% 0; -webkit-box-reflect: below 6px linear-gradient(transparent 62%, rgba(255, 255, 255, .16)); }
.cup { position: absolute; inset: 0; }
.cup-back { position: absolute; inset: 0; clip-path: polygon(2% 4.7%, 98% 4.7%, 87.3% 97.9%, 12.7% 97.9%); background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015) 30%, rgba(255, 255, 255, .015) 70%, rgba(255, 255, 255, .06)); }
.fill { position: absolute; inset: 4.7% 0 2.1%; clip-path: polygon(2.6% 0, 97.4% 0, 87% 100%, 13% 100%); display: flex; flex-direction: column-reverse; }
.layer { position: relative; flex: none; height: 0; background-color: var(--c); background-image: url(../img/ice.webp); background-size: 150px; background-blend-mode: multiply; }
.layer .blend { position: absolute; left: 0; right: 0; bottom: -18px; height: 36px; z-index: 1; background-color: var(--c); background-image: url(../img/ice.webp); background-size: 150px; background-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); pointer-events: none; }
.layer:first-child .blend { display: none; }
/* la capa de arriba sube un poco bajo la cúpula para que no quede ningún espacio */
.fill { top: 2.4%; }
.layer::before { content: ''; position: absolute; inset: 0; background-image: url(../img/ice.webp); background-size: 150px; mix-blend-mode: screen; opacity: .32; }
.layer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0) 22%, rgba(255, 255, 255, .06) 45%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .45)); }
.dome { position: absolute; left: 1.5%; width: 97%; top: -16%; height: 23%; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0;
  border-radius: 50% 50% 46% 46% / 100% 100% 24% 24%; background-color: var(--top, #ddd); overflow: hidden;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .35), inset 0 10px 22px rgba(255, 255, 255, .18); }
.dome-ice { position: absolute; inset: 0; background-image: url(../img/ice.webp); background-size: 150px; mix-blend-mode: multiply; }
.dome-ice::after { content: ''; position: absolute; inset: 0; background-image: url(../img/ice.webp); background-size: 150px; mix-blend-mode: screen; opacity: .35; }
.dome::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 32% 18%, rgba(255, 255, 255, .35), transparent 60%), linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 30%, transparent 70%, rgba(0, 0, 0, .35)); }
.dome-spice { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; background-size: 120px; }
.drizzle { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; }
.inside { position: absolute; inset: 0; pointer-events: none; }
.on-top { position: absolute; left: 0; right: 0; top: -30%; height: 34%; pointer-events: none; }
.on-top img, .inside img { position: absolute; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.cup-front { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cup-logo { position: absolute; left: 50%; top: 54%; width: 30%; translate: -50% -50%; opacity: .82; pointer-events: none; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .25)); }
.rim-spice { position: absolute; left: 1%; width: 98%; top: 2%; height: 5.6%; border-radius: 50%; opacity: 0; transition: opacity .6s;
  -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 82%, #000 98%, transparent 100%); mask: radial-gradient(closest-side, transparent 78%, #000 82%, #000 98%, transparent 100%); }
.drops { position: absolute; inset: 0; clip-path: polygon(2% 4.7%, 98% 4.7%, 87.3% 97.9%, 12.7% 97.9%); opacity: 0; transition: opacity 2.5s; pointer-events: none; }
.drops i { position: absolute; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95) 0 14%, rgba(255, 255, 255, .28) 34%, rgba(255, 255, 255, .06) 70%); box-shadow: 0 1px 1px rgba(0, 0, 0, .18); }
.cup.is-cold .drops { opacity: 1; }
.cup-shadow { position: absolute; left: 6%; right: 6%; bottom: -10px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); filter: blur(4px); z-index: -1; }
.cup-wrap::after { content: ''; position: absolute; left: -30%; right: -30%; bottom: -36px; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, var(--glowc, transparent), transparent); opacity: .55; filter: blur(14px); z-index: -2; transition: background .8s; }

/* vertido */
.pour { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.bottle-pivot { position: absolute; left: 0; top: 0; width: 64px; transform-origin: 50% 0; opacity: 0; }
.bottle-pivot img { width: 100%; height: auto; filter: var(--f) drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); }
.stream { position: absolute; left: 0; top: 0; width: 7px; height: 0; border-radius: 4px; transform-origin: 50% 0; background: linear-gradient(90deg, rgba(0, 0, 0, .25), var(--c) 30%, rgba(255, 255, 255, .55) 45%, var(--c) 60%, rgba(0, 0, 0, .25)); opacity: .95; box-shadow: 0 0 10px var(--c); }

/* ---------------- TICKET ---------------- */
.ticket { margin: 12px 20px 18px 0; align-self: start; display: grid; gap: 12px; padding: 18px; background: var(--glass); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); max-height: calc(100svh - var(--top-h) - 30px); overflow: auto; }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; }
.ticket-head h3 { font-size: 17px; }
.ticket-head span { color: var(--muted); font-size: 12px; }
.ticket-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; border-top: 1px dashed rgba(255, 255, 255, .14); padding-top: 12px; }
.ticket-lines li { display: flex; justify-content: space-between; gap: 10px; animation: pageIn .35s var(--ease); }
.ticket-lines li span:first-child { color: #ddd5ef; }
.ticket-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-lines li.sub { color: var(--muted); font-size: 12px; padding-left: 10px; }
.ticket-lines li.sub span:first-child { color: var(--muted); }
.ticket-lines .empty { color: var(--muted); }
.ticket-lines i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 6px; box-shadow: 0 0 8px var(--c); }
.qty { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed rgba(255, 255, 255, .14); padding-top: 12px; font-size: 13px; color: var(--muted); }
.qty div { display: flex; align-items: center; gap: 12px; }
.qty button { width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 16px; }
.qty b { min-width: 16px; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.ticket-total strong { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ticket-note { color: var(--muted); font-size: 11px; text-align: center; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 999px; background: rgba(25, 18, 40, .92); border: 1px solid var(--line); font-size: 13px; opacity: 0; transition: opacity .3s, transform .4s var(--ease); z-index: 60; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- CELULAR ---------------- */
@media (max-width: 920px) {
  body { overflow: auto; }
  :root { --top-h: 56px; --cw: min(46vw, 210px); }
  .top { padding: 0 14px; grid-template-columns: auto 1fr auto; gap: 8px; }
  .logo img { width: 92px; }
  .top-title { text-align: center; font-size: 10px; letter-spacing: .2em; }
  .app { display: flex; flex-direction: column; height: auto; min-height: 100svh; }
  .stage { flex: none; height: 50svh; }
  .cup-wrap { bottom: 12%; }
  .stage-hint { bottom: 3%; font-size: 10.5px; }
  .counter { bottom: auto; top: calc(var(--top-h) + 50svh * .88); height: 100svh; }
  .neon-sign { top: 9%; font-size: 15vw; }
  .panel { margin: 0 10px; border-radius: 22px 22px 0 0; min-height: 52svh; }
  .pages { overflow: visible; }
  .panel-foot { position: sticky; bottom: 0; background: rgba(18, 13, 30, .92); backdrop-filter: blur(12px); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .ticket { margin: 10px 10px calc(16px + env(safe-area-inset-bottom)); max-height: none; }
  .bottles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) { .steps button { font-size: 10px; } .bottle-btn img { height: 70px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* tajín más visible: borde escarchado y polvo sobre el hielo */
.rim-spice { top: 1%; height: 8%; z-index: 6; background-color: rgba(196, 45, 26, .55);
  -webkit-mask: radial-gradient(closest-side, transparent 70%, #000 74%, #000 97%, transparent 100%); mask: radial-gradient(closest-side, transparent 70%, #000 74%, #000 97%, transparent 100%); }
.dome-spice { background-size: 90px; }
.inside { z-index: 0; }
.dome { z-index: 1; }
.on-top { z-index: 2; }
/* anillo de tajín uniforme alrededor del borde */
.rim-spice { top: 1.6%; height: 6.4%; left: 1.2%; width: 97.6%; border: 7px solid transparent; background-color: rgba(196, 45, 26, .6); background-origin: border-box;
  -webkit-mask: linear-gradient(#000 0 0) border-box, linear-gradient(#000 0 0) padding-box; -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) border-box exclude, linear-gradient(#000 0 0) padding-box; box-shadow: none; }
.dome-spice { background-size: 170px; }
/* celular: el vaso queda fijo arriba mientras eliges abajo */
@media (max-width: 920px) {
  .stage { position: sticky; top: var(--top-h); z-index: 4; height: 44svh;
    background: radial-gradient(70% 60% at 25% 20%, rgba(132, 56, 255, .45), transparent 70%), radial-gradient(60% 50% at 80% 25%, rgba(255, 36, 168, .28), transparent 70%), #0d0917;
    border-radius: 0 0 22px 22px; overflow: hidden; box-shadow: 0 16px 30px rgba(0, 0, 0, .45); }
  .stage::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 17%; background: linear-gradient(180deg, #23162f, #0d0914); box-shadow: 0 -1px 0 rgba(255, 255, 255, .14); }
  .cup-wrap { bottom: 15%; --cw: min(34vw, 150px); }
  .stage-hint { bottom: 4%; }
  .counter { display: none; }
  .neon-sign { top: calc(var(--top-h) + 3%); font-size: 13vw; }
  .panel { margin-top: 10px; position: relative; z-index: 2; }
  .top { background: rgba(10, 7, 18, .92); backdrop-filter: blur(10px); }
}
@media (max-width: 920px) { .stage { order: -1; } .ticket { order: 3; } }
/* transición suave entre capas: solo hacia abajo y con el mismo sombreado de la capa */
.layer .blend { bottom: -22px; height: 22px; background-position: 0 -100%; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.layer .blend::before { content: ''; position: absolute; inset: 0; background-image: url(../img/ice.webp); background-size: 150px; mix-blend-mode: screen; opacity: .32; }
.layer .blend::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0) 22%, rgba(255, 255, 255, .06) 45%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .45)); }
/* formulario del pedido */
.order [hidden] { display: none !important; }
.order > label > span:first-child { color: var(--muted); font-size: 12.5px; }
.deliv label { min-height: 52px; line-height: 1.25; }
.panel-foot .btn.wa { width: auto; flex: 1; min-width: 0; white-space: nowrap; }
.panel-foot .btn { min-width: 0; }
.top-ico { width: 56px; height: 48px; background: rgba(255, 255, 255, .92); }
.top-ico img { max-width: 50px; max-height: 42px; }
/* tajín con textura real */
.rim-spice { border-width: 8px; top: 1.2%; height: 6.8%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.dome-spice { filter: drop-shadow(0 1px .5px rgba(0, 0, 0, .35)) saturate(1.1); }
.drizzle path, .drizzle ellipse, .drizzle circle { transform-box: fill-box; }
/* licores: precio y casilla en la misma fila */
.liquors .opt-card { grid-template-columns: auto 1fr auto auto; }
/* botón empezar de nuevo */
.reset-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 13px; font-weight: 600; transition: color .25s, background .25s, border-color .25s; }
.reset-btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.reset-btn:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.reset-btn:hover svg { transform: rotate(-200deg); }
.reset-btn.is-armed { color: #ffd0da; border-color: #ff5d7a; background: rgba(255, 93, 122, .14); }
.cup-logo { height: auto; }
.cup-logo { width: 44%; top: 50%; }

/* ---------------- LA CARTA / ARMA EL TUYO ---------------- */
/* pestañas: una píldora que se desliza bajo la opción activa */
.modes { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 12px 12px 0; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.modes button { position: relative; z-index: 1; height: 40px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .3s; touch-action: manipulation; }
.modes button[aria-selected="true"] { color: #fff; }
.modes-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: linear-gradient(180deg, #c58bff, #9a4cf5); box-shadow: 0 6px 16px rgba(154, 76, 245, .4), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .45s var(--ease); }
.panel:not(.is-carta) .modes-pill { transform: translateX(100%); }
/* qué se ve en cada modo */
.carta-view { display: none; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 18px; scrollbar-width: thin; }
.panel.is-carta .carta-view { display: block; animation: pageIn .45s var(--ease); }
.panel.is-carta .steps, .panel.is-carta .pages, .panel.is-carta .panel-foot { display: none; }
.carta-view h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.combos { display: grid; gap: 10px; }
/* tarjeta de cada granizado de la carta */
.combo { border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: background .3s, border-color .3s, box-shadow .3s; }
.combo.is-on { border-color: var(--accent); background: rgba(180, 107, 255, .12); box-shadow: inset 0 0 0 1px var(--accent); }
.combo-main { width: 100%; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: start; padding: 12px; text-align: left; touch-action: manipulation; }
.combo-main:active { transform: scale(.985); }
.combo-cup { width: 46px; height: 58px; }
.combo-cup svg { width: 100%; height: 100%; }
.combo-txt { display: grid; gap: 2px; min-width: 0; }
.combo-txt em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d7b6ff; }
.combo-txt b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.combo-txt small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.combo-tops { display: flex; gap: 4px; margin-top: 6px; }
.combo-tops img { width: 26px; height: 26px; object-fit: contain; border-radius: 7px; background: rgba(255, 255, 255, .92); padding: 2px; }
.combo-price { display: grid; justify-items: end; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.combo-price small { font-size: 10.5px; font-weight: 500; color: var(--muted); }
/* al tocarla se abre: tamaño y botones */
.combo-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.combo-more > * { overflow: hidden; min-height: 0; }
.combo.is-on .combo-more { grid-template-rows: auto auto; }
.combo:not(.is-on) .combo-sizes, .combo:not(.is-on) .combo-acts { display: none; }
.combo-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 12px; }
.combo-sizes button { display: grid; gap: 1px; padding: 8px 4px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: 12px; transition: border-color .25s, background .25s; touch-action: manipulation; }
.combo-sizes button b { font-weight: 600; }
.combo-sizes button span { color: var(--muted); font-variant-numeric: tabular-nums; }
.combo-sizes button[aria-checked="true"] { border-color: var(--accent); background: rgba(180, 107, 255, .2); }
.combo-sizes button[aria-checked="true"] span { color: var(--ink); }
.combo-acts { display: flex; gap: 8px; padding: 10px 12px 12px; }
.combo-acts .btn { height: 44px; font-size: 13.5px; }
.combo-acts .btn.ghost { flex: 0 0 auto; padding: 0 14px; }
.combo-acts .btn.wa { flex: 1; width: auto; }
/* invitación a armar uno propio */
.arma-cta { width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; text-align: left; border: 1px dashed rgba(180, 107, 255, .55); background: rgba(180, 107, 255, .06); transition: background .3s; touch-action: manipulation; }
.arma-cta span { display: grid; gap: 2px; flex: 1; }
.arma-cta b { font-size: 14.5px; }
.arma-cta small { color: var(--muted); font-size: 12.5px; }
.arma-cta i { font-style: normal; font-size: 20px; color: #d7b6ff; }
.arma-cta:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .combo:not(.is-on):hover { background: rgba(255, 255, 255, .07); }
  .arma-cta:hover { background: rgba(180, 107, 255, .14); }
  .combo-sizes button:hover { border-color: rgba(255, 255, 255, .3); }
  .modes button:not([aria-selected="true"]):hover { color: var(--ink); }
}
@media (max-width: 920px) {
  .carta-view { overflow: visible; }
}
