/* The Toris Burgers · app del cliente.
   Gráfica de su carta: crema con trama de puntos, chocolate, letra Montserrat en minúscula,
   stickers del logo con borde holográfico y el cartel de neón naranja de sus fotos (solo como detalle). */
:root {
  --crema: #F3EEE8;
  --crema-2: #E9DCCD;
  --crema-3: #DDCBB7;
  --choco: #4A2715;
  --choco-2: #5A2E17;
  --choco-3: #6E3B1F;
  --tinta: #2E190E;
  --tinta-2: #7A6656;
  --naranja: #FF6A1F;
  --naranja-osc: #C94A10;
  --queso: #F2B233;
  --wa: #1FA855;
  --holo: linear-gradient(115deg, #ffd1e8 0%, #c8f1ff 18%, #fff3b8 34%, #d7c8ff 50%, #b8ffe6 66%, #ffd6b8 82%, #ffd1e8 100%);
  --r: 26px;
  --sombra: 0 18px 40px -22px rgba(46, 25, 14, .45);
  --barra-h: 74px;
  --seguro: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Montserrat, system-ui, sans-serif; font-weight: 500; color: var(--tinta);
  background: var(--crema);
  background-image: radial-gradient(rgba(74, 39, 21, .075) 1.3px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* ---------- Sticker del logo (borde holográfico, crema, chocolate) ---------- */
.sticker { display: inline-block; position: relative; line-height: 0; }
.sticker svg { width: 100%; height: auto; overflow: visible; display: block; }
.sticker .s-holo { stroke: url(#holo-borde); }
.sticker-chico { width: 112px; }
.sticker-pie { width: 150px; transform: rotate(-5deg); }

/* ---------- Entrada: el sticker se pega y vuela a la cabecera ---------- */
#intro {
  position: fixed; inset: 0; z-index: 100; background: var(--crema);
  display: grid; place-items: center; overflow: hidden;
}
#intro .intro-puntos {
  position: absolute; inset: -20%;
  background-image: radial-gradient(rgba(74, 39, 21, .12) 1.6px, transparent 2px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(closest-side, transparent 30%, #000 100%); mask-image: radial-gradient(closest-side, transparent 30%, #000 100%);
}
.intro-sticker { width: min(78vw, 560px); transform-origin: 50% 50%; opacity: 0; will-change: transform; }
.intro-sticker .sticker { width: 100%; }
.intro-by {
  position: absolute; left: 0; right: 0; top: calc(50% + min(14vw, 100px)); text-align: center; margin: 0;
  font-weight: 700; letter-spacing: .32em; text-transform: uppercase; font-size: 11px; color: var(--choco-3); opacity: 0;
}
body.intro-on { overflow: hidden; }
body.intro-on .top-logo .sticker { visibility: hidden; }

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; gap: 10px;
  background: rgba(243, 238, 232, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.top-logo { display: block; transform: rotate(-4deg); }
.top-der { display: flex; align-items: center; gap: 8px; }
.top-zona { font-size: 11px; font-weight: 700; color: var(--tinta-2); letter-spacing: .02em; }
.top-seguir {
  background: var(--choco); color: var(--crema); border-radius: 99px; padding: 8px 12px; font-size: 12px; font-weight: 800;
  display: inline-flex; gap: 6px; align-items: center;
}
.top:has(.top-seguir:not([hidden])) .top-zona { display: none; }
@media (min-width: 560px) { .top:has(.top-seguir:not([hidden])) .top-zona { display: inline; } }
.top-seguir { white-space: nowrap; }
.top-seguir b { background: var(--naranja); color: #fff; border-radius: 99px; padding: 2px 7px; font-size: 11px; }

.aviso-local {
  margin: 0 16px 6px; background: var(--choco); color: var(--crema); border-radius: 16px; padding: 10px 14px;
  font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center;
}
.aviso-local::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--naranja); flex: none; }

main { overflow-x: clip; padding: 0 16px calc(var(--barra-h) + 40px + var(--seguro)); max-width: 1180px; margin: 0 auto; }
.vista { animation: entra .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } }

.hola { margin: 4px 2px 12px; font-weight: 700; font-size: 15px; color: var(--tinta-2); }
.hola b { color: var(--tinta); }

.titulo { font-weight: 800; font-size: 26px; letter-spacing: -.035em; line-height: 1; margin: 30px 2px 14px; color: var(--choco-2); text-transform: lowercase; }
.titulo-xl { font-size: 54px; margin: 10px 2px 12px; letter-spacing: -.05em; }
.titulo-l { font-size: 34px; margin: 6px 0 14px; letter-spacing: -.045em; }
.titulo small { font-size: 13px; letter-spacing: .02em; color: var(--tinta-2); font-weight: 700; margin-left: 6px; }
.sub { margin: -4px 2px 18px; color: var(--tinta-2); font-weight: 600; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px;
  font-weight: 800; font-size: 16px; padding: 16px 22px; text-decoration: none; letter-spacing: -.01em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(3px); }
.btn-naranja { background: var(--naranja); color: #fff; box-shadow: 0 5px 0 var(--naranja-osc); }
.btn-naranja:active { box-shadow: 0 2px 0 var(--naranja-osc); }
.btn-choco { background: var(--choco); color: var(--crema); box-shadow: 0 5px 0 #2a150a; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 5px 0 #127238; width: 100%; }
.btn[disabled], .btn.apagado { background: var(--crema-3); color: var(--tinta-2); box-shadow: 0 5px 0 #c4ad95; pointer-events: none; }

/* ---------- El mostrador (primera pantalla) ---------- */
.mostrador {
  position: relative; background: var(--choco); color: var(--crema); border-radius: 32px;
  padding: 18px 18px 20px; margin-top: 76px; box-shadow: var(--sombra), inset 0 0 0 1px rgba(255, 255, 255, .04);
  isolation: isolate;
}
.mo-puntos {
  position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(243, 238, 232, .09) 1.4px, transparent 1.8px); background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.neon { position: absolute; width: 104px; left: 50%; top: -58px; transform: translateX(-50%); overflow: visible; z-index: 0; }
.neon path { fill: none; stroke: var(--naranja); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(255, 106, 31, .55)); }
.neon.prende path { animation: prende 1.1s steps(1) both; }
@keyframes prende { 0% { opacity: 0; } 12% { opacity: 1; } 18% { opacity: .2; } 26% { opacity: 1; } 34% { opacity: .5; } 40%, 100% { opacity: 1; } }

.mo-escena { position: relative; margin: -20px -6px 0; height: 214px; display: grid; place-items: end center; z-index: 1; }
.mo-burger {
  width: 104%; max-width: 440px; height: auto; max-height: 230px; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); transform-origin: 50% 90%; will-change: transform;
}
.mo-burger.sale { animation: sale .26s ease-in forwards; }
.mo-burger.entra { animation: entraB .5s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes sale { to { transform: translateX(var(--dx, -60px)) scale(.86); opacity: 0; } }
@keyframes entraB { from { transform: translateX(calc(var(--dx, -60px) * -1)) scale(.86); opacity: 0; } }
.mo-reflejo {
  position: absolute; left: 12%; right: 12%; bottom: -6px; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); z-index: -1;
}
.mo-sello {
  position: absolute; right: 12px; top: 26px; width: 84px; height: 84px; z-index: 2; transform: rotate(10deg);
  background: var(--queso); color: var(--choco); border-radius: 50%; display: grid; place-items: center; text-align: center;
  box-shadow: 0 4px 0 #b9821c;
}
.mo-sello b { display: block; font-size: 22px; font-weight: 900; line-height: .9; letter-spacing: -.04em; }
.mo-sello small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.mo-sello.agotado { background: var(--crema); box-shadow: 0 4px 0 var(--crema-3); }

.mo-texto { text-align: center; margin-top: 12px; }
.mo-nombre { margin: 0; font-weight: 900; font-size: clamp(34px, 10.4vw, 52px); letter-spacing: -.055em; line-height: .95; text-transform: lowercase; }
.mo-nombre.cambia { animation: nombre .4s cubic-bezier(.2, .9, .25, 1); }
@keyframes nombre { from { opacity: 0; transform: translateY(8px); letter-spacing: -.02em; } }
.mo-ing { margin: 8px auto 0; max-width: 34ch; font-size: 13px; line-height: 1.4; color: rgba(243, 238, 232, .78); min-height: 2.8em; }

.mo-elegir { display: flex; justify-content: center; gap: 8px; margin: 14px 0 16px; }
.mo-elegir button {
  width: 58px; height: 58px; border-radius: 50%; background: var(--choco-3); position: relative; flex: none;
  display: grid; place-items: center; transition: transform .2s ease, background .2s ease;
}
.mo-elegir button img { width: 118%; max-width: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); transform: translateY(2px); }
.mo-elegir button[aria-selected="true"] { background: var(--crema); transform: translateY(-4px); }
.mo-elegir button[aria-selected="true"]::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; padding: 3px;
  background: var(--holo); background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.mo-elegir button.agotada img { filter: grayscale(1) opacity(.45); }

.tamanos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tamanos button {
  border-radius: 20px; padding: 12px 6px 10px; background: rgba(243, 238, 232, .08); color: var(--crema);
  display: grid; justify-items: center; gap: 6px; transition: background .2s ease, transform .2s ease;
  box-shadow: inset 0 0 0 1.5px rgba(243, 238, 232, .14);
}
.tamanos button span { font-weight: 800; font-size: 14px; letter-spacing: -.01em; }
.tamanos button em { font-style: normal; font-weight: 700; font-size: 13px; opacity: .8; }
.tamanos button[aria-checked="true"] { background: var(--crema); color: var(--choco); box-shadow: none; transform: translateY(-2px); }
.medallones { display: flex; flex-direction: column-reverse; align-items: center; height: 26px; justify-content: flex-start; }
.medallones i {
  display: block; width: 30px; height: 8px; border-radius: 6px; background: #3a1d0e; margin-top: -1px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3), 0 -1.5px 0 var(--queso);
}
.tamanos button[aria-checked="true"] .medallones i { animation: cae .35s cubic-bezier(.3, 1.2, .5, 1) both; }
.tamanos button[aria-checked="true"] .medallones i:nth-child(2) { animation-delay: .06s; }
.tamanos button[aria-checked="true"] .medallones i:nth-child(3) { animation-delay: .12s; }
@keyframes cae { from { transform: translateY(-14px); opacity: 0; } }
.tamanos-claro button { background: #fff; color: var(--choco); box-shadow: inset 0 0 0 1.5px var(--crema-2); }
.tamanos-claro button[aria-checked="true"] { background: var(--choco); color: var(--crema); }
.tamanos-claro button .medallones i { background: #4a2715; }
.tamanos-claro button[aria-checked="true"] .medallones i { background: #2a140a; }

.btn-sumar { width: 100%; margin-top: 16px; font-size: 17px; }
.btn-sumar small { font-weight: 700; opacity: .9; }
.mo-ver { display: block; margin: 12px auto 0; color: rgba(243, 238, 232, .75); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cinta ---------- */
.cinta { margin: 26px -16px 0; background: var(--naranja); color: #fff; overflow: hidden; transform: rotate(-2deg); padding: 9px 0; }
.cinta-pista { display: flex; width: max-content; animation: cinta 26s linear infinite; }
.cinta-pista span { font-weight: 900; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; padding: 0 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; }
.cinta-pista span::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--choco); }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Sumale ---------- */
.sumale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sumale button {
  background: #fff; border-radius: 22px; padding: 14px 12px 12px; text-align: left; display: grid; gap: 4px;
  box-shadow: inset 0 0 0 1.5px var(--crema-2), 0 3px 0 var(--crema-3); position: relative; min-height: 96px; align-content: end;
}
.sumale button:active { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px var(--crema-2), 0 1px 0 var(--crema-3); }
.sumale b { font-weight: 800; font-size: 15px; letter-spacing: -.02em; line-height: 1.1; text-transform: lowercase; }
.sumale em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--tinta-2); }
.sumale i {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--choco); color: var(--crema);
  display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 18px; line-height: 1;
}
.sumale button.con-foto { padding-top: 0; overflow: hidden; }
.sumale button.con-foto img { width: calc(100% + 24px); margin: 0 -12px 8px; height: 74px; object-fit: cover; }

/* ---------- Club: aviso en el inicio ---------- */
.club-tease {
  position: relative; display: flex; align-items: center; gap: 12px; text-decoration: none; overflow: hidden;
  background: var(--crema); border-radius: var(--r); padding: 18px; isolation: isolate;
  box-shadow: inset 0 0 0 2px var(--choco), 0 5px 0 var(--choco);
}
.ct-holo, .album-holo {
  position: absolute; inset: -60%; z-index: -1; background: var(--holo); opacity: .55;
  animation: holo 7s ease-in-out infinite alternate; will-change: transform;
}
@keyframes holo { from { transform: translate3d(-12%, -6%, 0) rotate(0deg); } to { transform: translate3d(12%, 6%, 0) rotate(8deg); } }
.ct-izq { flex: 1; }
.ct-chico { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--choco-3); }
.ct-grande { margin: 4px 0 6px; font-size: 22px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--choco); }
.ct-txt { margin: 0; font-size: 13px; font-weight: 600; color: var(--tinta); line-height: 1.35; }
.ct-pila { width: 92px; height: 86px; position: relative; flex: none; }
.ct-pila .mini-st { position: absolute; width: 74px; }

/* ---------- Pasos ---------- */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pasos li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--crema-2); }
.pasos b { width: 34px; height: 34px; border-radius: 50%; background: var(--choco); color: var(--crema); display: grid; place-items: center; font-weight: 900; flex: none; }
.pasos span { font-size: 13.5px; line-height: 1.4; color: var(--tinta-2); font-weight: 600; }
.pasos strong { display: block; color: var(--tinta); font-weight: 800; font-size: 15px; letter-spacing: -.01em; }

.pie { text-align: center; padding: 40px 0 10px; color: var(--tinta-2); font-weight: 700; font-size: 13px; }
.pie p { margin: 14px 0 4px; }

/* ---------- Carta ---------- */
.carta-cab { padding-top: 6px; }
.escalera { display: flex; gap: 8px; flex-wrap: wrap; }
.escalera span { background: var(--choco); color: var(--crema); border-radius: 99px; padding: 8px 14px; font-weight: 800; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.escalera span em { font-style: normal; color: var(--queso); }
.carta-nota { margin: 12px 2px 18px; color: var(--tinta-2); font-weight: 600; font-size: 13.5px; }
.lista { display: grid; gap: 12px; }
.renglon {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; text-align: left; width: 100%;
  background: #fff; border-radius: 24px; padding: 12px 14px 12px 12px; box-shadow: inset 0 0 0 1.5px var(--crema-2), 0 3px 0 var(--crema-3);
}
.renglon:active { transform: translateY(2px); }
.renglon .r-foto { width: 96px; height: 84px; border-radius: 18px; background: var(--choco); display: grid; place-items: center; overflow: visible; position: relative; }
.renglon .r-foto img { width: 118%; max-width: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); transform: translateY(-6px); }
.renglon h3 { margin: 0; font-weight: 800; font-size: 19px; letter-spacing: -.035em; line-height: 1.05; text-transform: lowercase; color: var(--choco-2); }
.renglon p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--tinta-2); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.renglon .r-precio { margin-top: 6px; font-weight: 800; font-size: 14px; color: var(--tinta); }
.renglon .r-precio small { color: var(--tinta-2); font-weight: 700; }
.renglon .r-mas { width: 38px; height: 38px; border-radius: 50%; background: var(--naranja); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; box-shadow: 0 3px 0 var(--naranja-osc); }
.renglon.agotada { opacity: .6; }
.renglon.agotada .r-mas { background: var(--crema-3); box-shadow: none; font-size: 10px; letter-spacing: .04em; width: auto; padding: 0 10px; border-radius: 99px; height: 28px; }
.etiqueta { display: inline-block; background: var(--queso); color: var(--choco); border-radius: 99px; font-size: 10.5px; font-weight: 800; padding: 3px 8px; margin-left: 6px; vertical-align: 3px; letter-spacing: .02em; text-transform: none; }
.lista-extras .renglon { grid-template-columns: 1fr auto; padding: 16px 14px 16px 18px; }
.lista-extras .renglon h3 { font-size: 17px; }

/* ---------- Stickers (club) ---------- */
.album {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: 18px; background: var(--crema);
  box-shadow: inset 0 0 0 2px var(--choco), 0 6px 0 var(--choco); transform-style: preserve-3d; transition: transform .3s ease;
}
.album-cab { display: flex; justify-content: space-between; align-items: center; }
.album-cab span:last-child { font-weight: 900; font-size: 20px; color: var(--choco); letter-spacing: -.03em; }
.album-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 10px; }
.casilla {
  aspect-ratio: 1; border-radius: 22px; border: 2px dashed rgba(74, 39, 21, .35); display: grid; place-items: center;
  font-weight: 900; font-size: 26px; color: rgba(74, 39, 21, .3); position: relative; background: rgba(255, 255, 255, .35);
}
.casilla.premio::after {
  content: attr(data-premio); position: absolute; bottom: 8px; left: 6px; right: 6px; text-align: center; font-size: 9.5px; font-weight: 800;
  color: var(--choco); letter-spacing: .02em; line-height: 1.15;
}
.casilla .mini-st { width: 92%; }
.casilla.pegado { border-color: transparent; background: none; }
.casilla.recien .mini-st { animation: pega .6s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes pega { from { transform: scale(1.8) rotate(-24deg); opacity: 0; } }
.album-pie { font-weight: 700; font-size: 14px; color: var(--tinta); text-align: center; padding: 4px 6px 2px; }
.album-pie b { color: var(--choco); }
.premios { display: grid; gap: 10px; margin-top: 22px; }
.premio-fila { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 22px; padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--crema-2); }
.premio-fila b { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--choco); color: var(--crema); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.premio-fila div { flex: 1; font-weight: 700; font-size: 14px; }
.premio-fila small { display: block; color: var(--tinta-2); font-weight: 600; font-size: 12.5px; margin-top: 2px; }
.premio-fila .btn { padding: 10px 14px; font-size: 13px; }
.premio-fila.listo { box-shadow: inset 0 0 0 2px var(--naranja); }
.mis-pedidos { display: grid; gap: 8px; }
.mp { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: inset 0 0 0 1.5px var(--crema-2); font-size: 13.5px; font-weight: 600; text-align: left; width: 100%; }
.mp b { font-weight: 800; }
.mp em { font-style: normal; font-size: 12px; font-weight: 800; background: var(--crema); border-radius: 99px; padding: 4px 9px; color: var(--choco); white-space: nowrap; }
.vacio { color: var(--tinta-2); font-weight: 600; font-size: 14px; margin: 0 2px; }

/* mini sticker (redondo con el logo) */
.mini-st { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--holo); padding: 5px; box-shadow: 0 3px 6px rgba(46, 25, 14, .25); }
.mini-st > span { width: 100%; height: 100%; border-radius: 50%; background: var(--crema); display: grid; place-items: center; box-shadow: inset 0 0 0 2.5px var(--choco); }
.mini-st > span i { width: 74%; height: 30%; background: var(--choco); -webkit-mask: url(img/logo.svg) center / contain no-repeat; mask: url(img/logo.svg) center / contain no-repeat; }

/* ---------- Barra de abajo ---------- */
.barra {
  position: fixed; left: 50%; bottom: calc(12px + var(--seguro)); transform: translateX(-50%); z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr auto 1fr; align-items: center; gap: 2px;
  width: min(calc(100% - 24px), 460px); height: var(--barra-h); padding: 8px; border-radius: 99px;
  background: var(--choco); box-shadow: 0 16px 30px -12px rgba(46, 25, 14, .55);
}
.barra a { display: grid; justify-items: center; gap: 3px; text-decoration: none; color: rgba(243, 238, 232, .62); font-size: 11px; font-weight: 700; }
.barra svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.barra a.activa { color: var(--crema); }
.barra a.activa svg { stroke-width: 2.4; }
.barra-bolsa {
  display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 18px 0 14px; border-radius: 99px;
  background: var(--naranja); color: #fff; box-shadow: 0 4px 0 var(--naranja-osc); font-weight: 800; font-size: 15px; margin: 0 4px;
}
.barra-bolsa svg { width: 26px; height: 26px; stroke-width: 2.2; }
.barra-bolsa b { min-width: 24px; height: 24px; border-radius: 99px; background: var(--choco); display: grid; place-items: center; font-size: 13px; padding: 0 6px; }
.barra-bolsa span:empty { display: none; }
.barra-bolsa.salta { animation: salta .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes salta { 40% { transform: scale(1.12); } }

/* ---------- Hojas ---------- */
.velo { position: fixed; inset: 0; background: rgba(30, 16, 8, .5); z-index: 60; animation: velo .25s ease; }
@keyframes velo { from { opacity: 0; } }
.hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 94dvh; background: var(--crema);
  border-radius: 30px 30px 0 0; display: flex; flex-direction: column; overflow: hidden;
  animation: sube .38s cubic-bezier(.2, .9, .25, 1); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4);
}
@keyframes sube { from { transform: translateY(100%); } }
.hoja.baja { animation: baja .25s ease-in forwards; }
@keyframes baja { to { transform: translateY(100%); } }
.cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(243, 238, 232, .92); color: var(--choco); font-size: 26px; line-height: 1; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* Ficha */
.hoja-ficha { height: 94dvh; }
.fi-escena { position: relative; flex: none; height: 300px; background: var(--choco); display: grid; place-items: end center; padding-bottom: 20px; isolation: isolate; overflow: hidden; }
.fi-escena .mo-puntos { border-radius: 0; }
.neon-ficha { top: 26px; width: 120px; }
.fi-burger { width: 90%; max-width: 460px; max-height: 210px; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .5)); animation: entraB .5s .05s cubic-bezier(.2, .9, .25, 1) both; --dx: 0px; }
.fi-cuerpo { flex: 1; overflow-y: auto; padding: 20px 18px 24px; overscroll-behavior: contain; }
.fi-nombre { margin: 0; font-weight: 900; font-size: 38px; letter-spacing: -.055em; line-height: .95; color: var(--choco-2); text-transform: lowercase; }
.fi-frase { margin: 8px 0 12px; font-weight: 700; color: var(--tinta-2); }
.fi-ing { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.fi-ing li { background: #fff; border-radius: 99px; padding: 6px 11px; font-size: 12.5px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--crema-2); }
.fi-rot { margin: 18px 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--choco-3); }
.fi-extras { display: grid; gap: 8px; }
.fi-extras label { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 13px 14px; box-shadow: inset 0 0 0 1.5px var(--crema-2); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.fi-extras label span { flex: 1; }
.fi-extras label em { font-style: normal; color: var(--tinta-2); font-weight: 700; font-size: 13.5px; }
.fi-extras input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--crema-3); margin: 0; display: grid; place-items: center; transition: background .15s; }
.fi-extras input:checked { background: var(--choco); box-shadow: none; }
.fi-extras input:checked::after { content: ''; width: 10px; height: 6px; border: solid var(--crema); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.fi-extras label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--choco); }
.fi-generada { font-size: 11.5px; color: var(--tinta-2); margin: 16px 0 0; font-weight: 600; }
.fi-barra, .bo-barra { flex: none; display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(14px + var(--seguro)); background: var(--crema); box-shadow: 0 -10px 24px -16px rgba(46, 25, 14, .4); }
.fi-barra .btn { flex: 1; }
.cant { display: flex; align-items: center; background: #fff; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--crema-2); height: 52px; }
.cant button { width: 42px; height: 52px; font-size: 22px; font-weight: 700; color: var(--choco); }
.cant b { min-width: 22px; text-align: center; font-weight: 900; font-size: 17px; }

/* Bolsa */
.bo-cuerpo { flex: 1; overflow-y: auto; padding: 22px 18px 18px; overscroll-behavior: contain; }
.bo-items { display: grid; gap: 8px; }
.bo-item { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 20px; padding: 10px 12px 10px 10px; box-shadow: inset 0 0 0 1.5px var(--crema-2); }
.bo-item .bi-foto { width: 62px; height: 52px; border-radius: 14px; background: var(--choco); display: grid; place-items: center; }
.bo-item .bi-foto img { width: 120%; max-width: none; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); }
.bo-item .bi-foto.texto { background: var(--crema); color: var(--choco); font-weight: 900; font-size: 12px; letter-spacing: -.02em; text-transform: lowercase; }
.bo-item h4 { margin: 0; font-weight: 800; font-size: 15px; letter-spacing: -.02em; text-transform: lowercase; color: var(--choco-2); }
.bo-item p { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: var(--tinta-2); }
.bo-item .bi-der { display: grid; justify-items: end; gap: 6px; }
.bo-item .bi-der b { font-weight: 800; font-size: 14px; }
.bo-item .cant { height: 34px; }
.bo-item .cant button { width: 30px; height: 34px; font-size: 18px; }
.bo-item .cant b { font-size: 14px; min-width: 16px; }
.bo-item.regalo { box-shadow: inset 0 0 0 2px var(--naranja); }
.bo-vacia { text-align: center; padding: 30px 0 10px; color: var(--tinta-2); font-weight: 700; }
.bo-form { display: grid; gap: 10px; margin-top: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 99px; padding: 4px; box-shadow: inset 0 0 0 1.5px var(--crema-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 11px 8px; border-radius: 99px; font-weight: 800; font-size: 14px; color: var(--tinta-2); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--choco); color: var(--crema); }
.seg input:focus-visible + span { outline: 2px solid var(--naranja); outline-offset: 2px; }
.campo { display: grid; gap: 5px; }
.campo span { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--choco-3); padding-left: 4px; }
.campo input { width: 100%; border: 0; border-radius: 16px; background: #fff; padding: 14px 15px; font-size: 16px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--crema-2); outline: none; }
.campo input:focus { box-shadow: inset 0 0 0 2px var(--choco); }
.campo.falta input { box-shadow: inset 0 0 0 2px var(--naranja); }
.bo-resumen { margin-top: 16px; background: var(--choco); color: var(--crema); border-radius: 22px; padding: 16px 18px; display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.bo-resumen div { display: flex; justify-content: space-between; gap: 10px; }
.bo-resumen .total { font-weight: 900; font-size: 22px; letter-spacing: -.03em; padding-top: 6px; margin-top: 4px; border-top: 1px dashed rgba(243, 238, 232, .3); }
.bo-resumen .desc { color: var(--queso); }
.bo-resumen .st { font-size: 12.5px; color: rgba(243, 238, 232, .8); }
.bo-barra { flex-direction: column; gap: 6px; }
.bo-falta { margin: 0; font-size: 12px; font-weight: 700; color: var(--tinta-2); min-height: 1em; }

/* Seguimiento */
.se-cuerpo { overflow-y: auto; padding: 26px 18px calc(26px + var(--seguro)); }
.se-num { display: inline-block; background: var(--choco); color: var(--crema); border-radius: 12px; padding: 6px 12px; font-weight: 900; font-size: 15px; letter-spacing: .02em; }
.se-estado { font-weight: 900; font-size: 44px; letter-spacing: -.055em; line-height: .95; margin: 14px 0 6px; color: var(--choco-2); text-transform: lowercase; }
.se-det { margin: 0 0 18px; color: var(--tinta-2); font-weight: 700; }
.pista { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin: 26px 0 18px; }
.pista::before { content: ''; position: absolute; left: 12%; right: 12%; top: 20px; height: 4px; background: var(--crema-2); border-radius: 4px; }
.pista .avance { position: absolute; left: 12%; top: 20px; height: 4px; background: var(--naranja); border-radius: 4px; transition: width .6s cubic-bezier(.2, .9, .25, 1); }
.paso { display: grid; justify-items: center; gap: 8px; text-align: center; position: relative; }
.paso i { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--crema-2); display: grid; place-items: center; font-style: normal; font-weight: 900; color: var(--tinta-2); transition: background .3s, color .3s; }
.paso span { font-size: 11.5px; font-weight: 800; color: var(--tinta-2); line-height: 1.15; }
.paso.hecho i { background: var(--choco); color: var(--crema); box-shadow: none; }
.paso.ahora i { background: var(--naranja); color: #fff; box-shadow: 0 0 0 6px rgba(255, 106, 31, .18); }
.paso.ahora span, .paso.hecho span { color: var(--tinta); }
.se-items { background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--crema-2); font-size: 14px; font-weight: 600; display: grid; gap: 6px; }
.se-items div { display: flex; justify-content: space-between; gap: 10px; }
.se-items .t { font-weight: 900; border-top: 1px dashed var(--crema-3); padding-top: 8px; margin-top: 2px; }
.se-acciones { display: grid; gap: 10px; margin-top: 16px; }
.se-st { margin-top: 16px; display: flex; gap: 12px; align-items: center; background: var(--crema); border-radius: 20px; padding: 12px 14px; box-shadow: inset 0 0 0 2px var(--choco); font-weight: 700; font-size: 14px; }
.se-st .mini-st { width: 54px; flex: none; }
.se-demo { font-size: 11.5px; color: var(--tinta-2); font-weight: 600; text-align: center; margin: 14px 0 0; }
.btn-linea { background: none; color: var(--choco); box-shadow: inset 0 0 0 2px var(--choco); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--barra-h) + 26px + var(--seguro)); transform: translate(-50%, 20px); z-index: 80;
  background: var(--tinta); color: var(--crema); padding: 12px 18px; border-radius: 99px; font-weight: 800; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis;
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* Vuela a la bolsa */
.vuela { position: fixed; z-index: 90; pointer-events: none; will-change: transform; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }

@media (prefers-reduced-motion: reduce) {
  .cinta-pista, .ct-holo, .album-holo { animation: none; }
}

/* ---------- Teléfono grande / acostado ---------- */
@media (min-width: 520px) {
  .mo-escena { height: 250px; }
  .mo-burger { max-height: 260px; }
}

/* ---------- iPad y compu ---------- */
@media (min-width: 760px) {
  main { padding-left: 28px; padding-right: 28px; }
  .top { padding-left: 28px; padding-right: 28px; }
  .sticker-chico { width: 132px; }
  #v-inicio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  #v-inicio > .hola { grid-column: 1 / -1; }
  #v-inicio > .mostrador { grid-column: 1; grid-row: 2 / span 4; position: sticky; top: 140px; margin-top: 70px; }
  #v-inicio > .cinta { grid-column: 2; margin: 70px 0 0; border-radius: 14px; transform: rotate(-1.5deg); }
  #v-inicio > .bloque, #v-inicio > .pie { grid-column: 2; }
  .lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lista-extras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .renglon { grid-template-columns: 110px 1fr auto; }
  .renglon .r-foto { width: 110px; height: 96px; }
  #v-stickers { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  #v-stickers > .titulo-xl, #v-stickers > .sub { grid-column: 1 / -1; }
  #v-stickers > .album { grid-column: 1; grid-row: 3 / span 2; }
  #v-stickers > .premios { grid-column: 2; margin-top: 0; }
  #v-stickers > .mov { grid-column: 2; }
  .hoja { left: 50%; right: auto; bottom: 50%; width: min(560px, calc(100% - 48px)); max-height: min(880px, calc(100dvh - 48px)); border-radius: 30px; transform: translate(-50%, 50%); animation: dialogo .35s cubic-bezier(.2, .9, .25, 1); }
  .hoja.baja { animation: dialogoBaja .2s ease-in forwards; }
  @keyframes dialogo { from { opacity: 0; transform: translate(-50%, 52%) scale(.97); } }
  @keyframes dialogoBaja { to { opacity: 0; transform: translate(-50%, 52%) scale(.97); } }
  .hoja-ficha { height: min(880px, calc(100dvh - 48px)); }
  .toast { bottom: calc(var(--barra-h) + 30px); }
}
@media (min-width: 1100px) {
  .top { padding-left: max(28px, calc((100% - 1180px) / 2 + 28px)); padding-right: max(28px, calc((100% - 1180px) / 2 + 28px)); }
  #v-inicio { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 40px; }
  #v-inicio > .mostrador { position: relative; top: 0; }
  .barra { top: calc(8px + env(safe-area-inset-top, 0px)); bottom: auto; height: 58px; width: 440px; padding: 5px; box-shadow: 0 10px 24px -14px rgba(46, 25, 14, .55); }
  .barra a { grid-auto-flow: column; gap: 7px; align-items: center; font-size: 13px; }
  .barra svg { width: 20px; height: 20px; }
  .barra-bolsa { height: 48px; }
  main { padding-bottom: 60px; }
  .toast { bottom: 28px; }
  .top { min-height: 74px; }
  .mo-escena { height: 250px; }
  .mo-burger { max-height: 260px; max-width: 480px; }
  .neon { width: 120px; top: -66px; }
  .mostrador { padding: 20px 28px 22px; }
  .lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
