:root {
  --naranja: #E8501F;
  --azul: #0B4A9B;
  --azul-n: #082F66;
  --papel: #F5F2EC;
  --papel-2: #ECE6DB;
  --tinta: #1B1530;
  --gris: #6B6478;
  --oro: #D9B45A;
  --madera: #3A2416;
  --terciopelo: #5B3A8C;
  --rosa: #F4A7C0;
  --verde-luz: #48E3D2;
  --fondo: #F07A5E;
  --tinta-p: #3B0F0A;
  --acento: #FFE9A8;
  --rad: 26px;
  --t: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --s: 'Montserrat', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--s); -webkit-font-smoothing: antialiased; }
body { overflow-x: clip; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--t); font-weight: 800; letter-spacing: -.02em; }
.papel-tex, .placa-papel, body::before, .barra::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' seed='7'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='3.2'%3E%3CfeDistantLight azimuth='225' elevation='38'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  background-size: 420px;
}
body::before { content: ''; position: fixed; inset: 0; opacity: .32; mix-blend-mode: multiply; pointer-events: none; z-index: 0; }

.app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 0 14px calc(92px + var(--safe-b)); min-height: 100vh; }

/* ---------- cabecera ---------- */
.cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 2px 4px; }
.cab-izq { display: flex; flex-direction: column; line-height: 1.1; }
.cab-eh { font-family: var(--t); font-weight: 800; font-size: 15px; color: var(--naranja); letter-spacing: -.01em; }
.cab-dir { font-size: 11px; font-weight: 600; color: var(--gris); }
.cab-der { display: flex; gap: 6px; }
.chip-mesa, .btn-demo {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px;
  font-weight: 800; font-size: 12px; text-decoration: none; white-space: nowrap;
}
.btn-demo { background: var(--tinta); color: #fff; }
.btn-demo:active { transform: scale(.96); }
.chip-mesa { background: var(--naranja); color: #fff; }

/* ---------- marca ---------- */
.marca {
  font-family: var(--t); font-weight: 800; font-variation-settings: 'wdth' 100, 'opsz' 96;
  color: var(--azul); font-size: clamp(90px, 38.5vw, 200px); line-height: .78; letter-spacing: -.07em;
  margin: 2px 0 0 -6px; white-space: nowrap; overflow: hidden; padding-bottom: .04em;
}
.marca span { display: inline-block; }
.saludo { margin: 6px 2px 10px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.saludo b { font-family: var(--t); font-size: 16px; }
.saludo .socio { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--azul); background: #fff; border: 2px solid var(--azul); padding: 3px 8px; border-radius: 99px; }

/* ---------- mesa ---------- */
.mesa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.mesa > * { height: 64px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; text-align: center; line-height: 1.15; }
.mesa .m-num { background: var(--naranja); color: #fff; }
.mesa .m-num b { font-family: var(--t); font-size: 26px; line-height: .9; }
.mesa button { background: #fff; border: 2.5px solid var(--tinta); box-shadow: 0 4px 0 var(--tinta); }
.mesa button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tinta); }

/* ---------- placa del entremet ---------- */
.placa {
  position: relative; border-radius: var(--rad); background: var(--fondo); color: var(--tinta-p);
  height: 330px; overflow: hidden; touch-action: pan-y; transition: background-color .5s;
  box-shadow: 0 18px 40px -22px rgba(27, 21, 48, .55);
  outline: none;
}
.placa-papel { position: absolute; inset: 0; opacity: .55; mix-blend-mode: multiply; pointer-events: none; }
.placa-cont { position: absolute; inset: 0; }
.pl-texto { position: absolute; left: 18px; top: 18px; width: 56%; z-index: 3; }
.pl-chip { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.55); color: var(--tinta-p); }
.pl-nombre { font-family: var(--t); font-weight: 800; font-size: clamp(38px, 11.5vw, 54px); line-height: .9; letter-spacing: -.045em; margin: 10px 0 10px; color: var(--tinta-p); word-break: break-word; }
.pl-nombre.largo { font-size: clamp(30px, 8.6vw, 44px); letter-spacing: -.05em; }
.pl-receta { margin: 0; padding: 0; list-style: none; font-size: 11.5px; font-weight: 600; line-height: 1.45; }
.pl-receta li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: 2px; opacity: .55; }
.pl-pie { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; z-index: 4; }
.pl-agregar {
  height: 50px; padding: 0 20px; border-radius: 99px; background: var(--tinta); color: #fff; font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 5px 0 rgba(0,0,0,.35);
}
.pl-agregar span { font-family: var(--t); font-size: 17px; }
.pl-agregar:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.pl-puntos { margin-left: auto; display: flex; gap: 5px; }
.pl-puntos i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .3; transition: opacity .3s, width .3s; }
.pl-puntos i.on { opacity: 1; width: 20px; border-radius: 9px; }

.espejo { position: absolute; width: 214px; height: 214px; right: -58px; top: 22px; z-index: 2; }
.espejo-luz { position: absolute; inset: 14px; border-radius: 50%; box-shadow: 0 0 38px 10px rgba(72, 227, 210, .55), 0 0 90px 20px rgba(72, 227, 210, .25); }
.espejo-vidrio {
  position: absolute; inset: 21px; border-radius: 50%; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255,255,255,.55) 0 18%, transparent 19% 30%, rgba(255,255,255,.25) 31% 36%, transparent 37%),
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(140, 60, 70, .18) 21px 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(140, 60, 70, .18) 21px 22px),
    radial-gradient(circle at 40% 30%, #FBD3CF, #E99AA0 70%, #B86A7E);
}
.espejo svg.aro { position: absolute; inset: 0; width: 100%; height: 100%; }
.espejo .aro-texto { animation: girar 26s linear infinite; transform-origin: 120px 120px; }
.aro-texto text { font-family: var(--t); font-weight: 800; font-size: 15.5px; fill: #F6D23A; letter-spacing: 2.2px; }
@keyframes girar { to { transform: rotate(360deg); } }
.pl-foto {
  position: absolute; z-index: 3; right: -12px; top: 100px; width: 196px; height: 196px; object-fit: contain;
  filter: drop-shadow(0 22px 18px rgba(0,0,0,.35)); pointer-events: none;
  animation: flotar 5s ease-in-out infinite;
}
@keyframes flotar { 50% { transform: translateY(-7px) rotate(-1.5deg); } }
.pl-sello {
  position: absolute; z-index: 4; right: 150px; top: 196px; width: 74px; height: 74px; border-radius: 50%;
  background: var(--acento); color: var(--tinta-p); display: grid; place-items: center; transform: rotate(-12deg);
  box-shadow: 0 6px 0 rgba(0,0,0,.18);
}
.pl-sello b { font-family: var(--t); font-size: 19px; letter-spacing: -.03em; }
.pl-sello svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: girar 18s linear infinite reverse; }
.pl-sello text { font-size: 8.4px; font-weight: 800; letter-spacing: 1.6px; fill: currentColor; font-family: var(--s); text-transform: uppercase; }

.placa.cambia .pl-texto, .placa.cambia .pl-foto, .placa.cambia .pl-sello { opacity: 0; }
.pl-texto, .pl-foto, .pl-sello { transition: opacity .18s; }
.placa .entra .pl-nombre { animation: subir .5s cubic-bezier(.2,.9,.3,1.2) both; }
.placa .entra .pl-receta li { animation: subir .45s both; }
.placa .entra .pl-receta li:nth-child(2) { animation-delay: .05s; }
.placa .entra .pl-receta li:nth-child(3) { animation-delay: .1s; }
.placa .entra .pl-foto { animation: caer .7s cubic-bezier(.2,1.3,.4,1) both, flotar 5s ease-in-out .7s infinite; }
.placa .entra .pl-sello { animation: sello .55s .25s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } }
@keyframes caer { from { opacity: 0; transform: translateY(-60px) scale(.8) rotate(8deg); } }
@keyframes sello { from { opacity: 0; transform: scale(.3) rotate(-60deg); } }

.glaseado { position: absolute; left: 0; right: 0; top: 0; height: 125%; z-index: 9; transform: translateY(-110%); pointer-events: none; }
.glaseado::before { content: ''; position: absolute; inset: 0 0 60px; background: var(--g, #fff); }
.glaseado svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 60px; }
.glaseado path { fill: var(--g, #fff); }
.glaseado.cae { animation: glaseado .78s cubic-bezier(.65,0,.35,1) both; }
@keyframes glaseado { 0% { transform: translateY(-110%); } 45%, 55% { transform: translateY(-8%); } 100% { transform: translateY(100%); } }

/* ---------- estante ---------- */
.estante { position: relative; display: flex; justify-content: space-between; align-items: flex-end; height: 74px; margin: 6px 4px 14px; padding: 0 4px; }
.estante::after {
  content: ''; position: absolute; left: -4px; right: -4px; bottom: 0; height: 9px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(186, 220, 228, .7)); border-bottom: 3px solid var(--oro);
  box-shadow: 0 6px 12px -6px rgba(27,21,48,.4);
}
.estante button { position: relative; z-index: 1; width: 15%; height: 66px; display: flex; align-items: flex-end; justify-content: center; transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
.estante img { width: 100%; height: 58px; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(0,0,0,.25)); }
.estante button.on { transform: translateY(-12px) scale(1.18); }
.estante button.on::after { content: ''; position: absolute; bottom: -18px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--naranja); }

/* ---------- vitrina (club) ---------- */
.vitrina-mini {
  width: 100%; display: block; text-align: left; border-radius: var(--rad); background: var(--azul); color: #fff;
  padding: 14px 16px 16px; position: relative; overflow: hidden; box-shadow: 0 6px 0 var(--azul-n);
}
.vitrina-mini:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--azul-n); }
.vm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vm-top h2 { font-size: 22px; }
.vm-top small { font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.vm-cont { font-family: var(--t); font-size: 22px; }
.vm-prox { margin: 10px 0 0; font-size: 13px; font-weight: 600; }
.vm-prox b { color: #F6D23A; }

.campanas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; align-items: end; }
.campanas.dos { grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.campana { position: relative; aspect-ratio: 1 / 1.05; display: flex; align-items: flex-end; justify-content: center; }
.campana::before { /* vidrio */
  content: ''; position: absolute; left: 6%; right: 6%; top: 4%; bottom: 8%; border-radius: 50% 50% 10% 10% / 62% 62% 10% 10%;
  background: linear-gradient(120deg, rgba(255,255,255,.55), rgba(255,255,255,.08) 45%, rgba(255,255,255,.22));
  border: 2px solid rgba(255,255,255,.75); z-index: 2;
}
.campana::after { /* perilla */
  content: ''; position: absolute; top: -2%; left: 50%; width: 14%; aspect-ratio: 1; margin-left: -7%; border-radius: 50%; background: var(--oro); z-index: 3;
}
.campana i { /* base */ position: absolute; left: 0; right: 0; bottom: 0; height: 10%; border-radius: 50%; background: var(--oro); }
.campana img { position: relative; z-index: 1; width: 78%; margin-bottom: 9%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
.campana.vacia img { filter: grayscale(1) brightness(1.6) opacity(.28); }
.campana .n { position: absolute; z-index: 4; top: 34%; font-family: var(--t); font-weight: 800; font-size: 13px; color: rgba(255,255,255,.85); }
.campana.regalo .n { color: #F6D23A; }
.campana.nueva img { animation: entraVitrina .9s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes entraVitrina { 0% { transform: translateY(-140%) scale(.6); opacity: 0; } 60% { transform: translateY(6%) scale(1.05); opacity: 1; } }

/* ---------- bloques ---------- */
.bloque { margin-top: 22px; }
.bloque-tit { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.bloque-tit h2 { font-size: 24px; }
.link { font-weight: 800; font-size: 13px; color: var(--naranja); text-decoration: none; border-bottom: 2px solid currentColor; }

.juego-card {
  border-radius: var(--rad); background: var(--terciopelo); color: #fff; padding: 16px; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center;
  position: relative; overflow: hidden;
}
.juego-card .mini-espejo { width: 112px; height: 112px; position: relative; }
.juego-card .mini-espejo svg { position: absolute; inset: 0; }
.juego-card .mini-espejo .anillo { animation: girar 9s linear infinite; transform-origin: 50% 50%; }
.juego-card .mini-espejo .anillo2 { animation: girar 14s linear infinite reverse; transform-origin: 50% 50%; }
.juego-card h2 { font-size: 22px; line-height: 1; }
.juego-card p { margin: 6px 0 10px; font-size: 12.5px; font-weight: 600; line-height: 1.4; opacity: .92; }
.btn {
  height: 46px; padding: 0 18px; border-radius: 99px; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--naranja); color: #fff; box-shadow: 0 4px 0 #A8320E; text-decoration: none;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #A8320E; }
.btn.claro { background: #fff; color: var(--tinta); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.btn.oscuro { background: var(--tinta); box-shadow: 0 4px 0 #000; }
.btn.azul { background: var(--azul); box-shadow: 0 4px 0 var(--azul-n); }
.btn.ancho { width: 100%; height: 54px; font-size: 15px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.jugadas { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #F6D23A; }

.filas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fila {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 20px; padding: 8px 10px 8px 8px;
  box-shadow: 0 1px 0 rgba(27,21,48,.06); cursor: pointer;
}
.fila.sin-foto { grid-template-columns: 1fr auto; padding-left: 16px; min-height: 58px; }
.fila .mini { width: 74px; height: 74px; border-radius: 16px; background: var(--papel-2); display: grid; place-items: center; overflow: hidden; }
.fila .mini img { width: 92%; height: 92%; object-fit: contain; }
.fila h3 { font-family: var(--s); font-weight: 800; font-size: 14.5px; letter-spacing: 0; line-height: 1.2; }
.fila p { margin: 3px 0 0; font-size: 12px; color: var(--gris); font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fila .precio { font-family: var(--t); font-weight: 800; font-size: 16px; margin-top: 4px; display: block; }
.mas {
  width: 40px; height: 40px; border-radius: 50%; background: var(--naranja); color: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 3px 0 #A8320E;
}
.mas svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.mas:active { transform: translateY(2px); box-shadow: 0 1px 0 #A8320E; }
.mas.hecho { background: var(--azul); box-shadow: 0 3px 0 var(--azul-n); }

.agenda { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 14px; padding: 2px 2px 8px; margin: 0 -14px; padding-left: 14px; scrollbar-width: none; }
.agenda::-webkit-scrollbar { display: none; }
.ag {
  flex: 0 0 74%; scroll-snap-align: start; border-radius: 22px; padding: 16px; color: #fff; min-height: 168px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.ag .estado { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.22); padding: 4px 9px; border-radius: 99px; }
.ag h3 { font-size: 23px; line-height: .95; margin: 12px 0 6px; }
.ag p { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; line-height: 1.4; opacity: .92; }
.ag .btn { margin-top: auto; align-self: flex-start; height: 38px; font-size: 13px; }
.ag.claro { color: var(--tinta); }
.ag .marco { position: absolute; right: -18px; top: -18px; width: 86px; height: 86px; border: 9px double var(--oro); border-radius: 50%; opacity: .7; }

.pet { border-radius: var(--rad); background: var(--rosa); padding: 16px 16px 16px 112px; position: relative; min-height: 130px; overflow: hidden; }
.pet h2 { font-size: 21px; line-height: 1; }
.pet p { margin: 6px 0 10px; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.pet .huella { position: absolute; left: 14px; top: 50%; width: 84px; height: 84px; margin-top: -42px; }
.pie { text-align: center; font-size: 11px; font-weight: 600; color: var(--gris); margin: 26px 0 4px; }

/* ---------- carta ---------- */
.carta-cab { position: sticky; top: 0; z-index: 20; background: var(--papel); margin: 0 -14px; padding: 8px 14px 10px; border-bottom: 4px solid var(--naranja); }
.titulo-rubro { font-size: 52px; color: var(--naranja); line-height: .85; letter-spacing: -.05em; }
.rubros { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.rubros::-webkit-scrollbar { display: none; }
.rubros button { flex: none; height: 36px; padding: 0 14px; border-radius: 99px; font-weight: 800; font-size: 13px; background: #fff; border: 2px solid var(--tinta); }
.rubros button.on { background: var(--tinta); color: #fff; }
.carta-sec { padding-top: 18px; scroll-margin-top: 130px; }
.carta-sec h2 { font-size: 34px; color: var(--naranja); text-transform: uppercase; letter-spacing: -.03em; margin: 0 2px 10px; }
.carta-sec.entremets h2 { color: var(--azul); }
.carta-sec .nota { font-size: 12px; font-weight: 600; color: var(--gris); margin: -4px 2px 10px; }

/* ---------- hoja / ficha ---------- */
.hoja { position: fixed; inset: 0; z-index: 60; }
.hoja-fondo { position: absolute; inset: 0; background: rgba(27, 21, 48, .5); animation: fundido .25s both; }
.hoja-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--papel); border-radius: 28px 28px 0 0;
  animation: subeHoja .38s cubic-bezier(.2,1,.3,1) both; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column;
}
.hoja.cierra .hoja-panel { animation: bajaHoja .25s ease-in both; }
.hoja.cierra .hoja-fondo { animation: fundido .25s reverse both; }
@keyframes subeHoja { from { transform: translateY(100%); } }
@keyframes bajaHoja { to { transform: translateY(100%); } }
@keyframes fundido { from { opacity: 0; } }
.hoja-asa { width: 44px; height: 5px; border-radius: 3px; background: rgba(27,21,48,.2); margin: 10px auto 0; flex: none; }
.cerrar { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.cerrar svg { width: 14px; height: 14px; stroke: var(--tinta); stroke-width: 2.6; stroke-linecap: round; }
.ficha-foto { margin: 12px 14px 0; border-radius: 22px; background: var(--fondo-f, var(--papel-2)); aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; overflow: hidden; }
.ficha-foto img { width: 86%; height: 92%; object-fit: contain; filter: drop-shadow(0 18px 16px rgba(0,0,0,.28)); animation: caer .6s cubic-bezier(.2,1.3,.4,1) both; }
.ficha-cuerpo { padding: 16px 18px 10px; }
.ficha-cuerpo h2 { font-size: 34px; line-height: .95; }
.ficha-cuerpo .desc { margin: 8px 0 0; font-size: 14px; font-weight: 500; line-height: 1.5; color: #3F3850; }
.ficha-cuerpo .precio-g { font-family: var(--t); font-weight: 800; font-size: 26px; margin-top: 10px; }
.ficha-cuerpo .tip { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.4; border-left: 5px solid var(--naranja); }
.flota {
  position: sticky; bottom: 0; margin-top: auto; padding: 12px 14px calc(14px + var(--safe-b)); background: linear-gradient(transparent, var(--papel) 30%);
  display: flex; gap: 10px; align-items: center;
}
.cant { display: flex; align-items: center; background: #fff; border-radius: 99px; height: 54px; padding: 0 6px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.cant button { width: 42px; height: 42px; border-radius: 50%; font-size: 22px; font-weight: 800; }
.cant output { min-width: 26px; text-align: center; font-family: var(--t); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.flota .btn { flex: 1; height: 54px; }

/* ---------- club ---------- */
.club-cab { padding: 6px 2px 0; }
.club-cab .kicker { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--naranja); }
.club-cab h1 { font-size: 46px; line-height: .88; color: var(--azul); letter-spacing: -.05em; margin-top: 4px; }
.vitrina-grande {
  margin-top: 14px; border-radius: 28px; padding: 18px 18px 20px; background: linear-gradient(180deg, #2B1B3F, var(--terciopelo)); color: #fff; position: relative; overflow: hidden;
}
.vitrina-grande .marco-vidrio { border-radius: 20px; padding: 16px 14px 6px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); border: 2px solid rgba(255,255,255,.28); }
.vitrina-grande .estante-v { height: 8px; border-radius: 3px; margin: 2px -6px 18px; background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(170, 215, 225, .45)); border-bottom: 3px solid var(--oro); }
.vitrina-grande .resumen { display: flex; align-items: end; justify-content: space-between; margin-top: 14px; gap: 12px; }
.vitrina-grande .resumen b { font-family: var(--t); font-size: 40px; line-height: .8; }
.vitrina-grande .resumen span { font-size: 13px; font-weight: 600; text-align: right; line-height: 1.35; }
.vitrina-grande .resumen span strong { color: #F6D23A; }

.hitos { margin-top: 18px; display: grid; gap: 8px; }
.hito { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; background: #fff; }
.hito .num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--t); font-weight: 800; font-size: 22px; background: var(--papel-2); color: var(--gris); }
.hito.listo .num { background: var(--naranja); color: #fff; }
.hito.prox .num { background: var(--azul); color: #fff; }
.hito h3 { font-family: var(--s); font-size: 14.5px; font-weight: 800; letter-spacing: 0; }
.hito p { margin: 2px 0 0; font-size: 12px; color: var(--gris); font-weight: 600; }
.hito .est { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); }
.hito.listo .est { color: var(--naranja); }

.regalos { display: grid; gap: 8px; }
.regalo-t {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px 24px; align-items: center; border-radius: 20px; padding: 10px 12px 10px 10px; background: #F6D23A; position: relative; overflow: hidden;
}
.regalo-t img { width: 64px; height: 64px; object-fit: contain; }
.regalo-t h3 { font-size: 18px; line-height: 1; }
.regalo-t p { margin: 3px 0 0; font-size: 11.5px; font-weight: 700; }
.regalo-t.usado { background: #fff; opacity: .65; }
.regalo-t::after { content: ''; position: absolute; left: 79px; right: 0; top: 0; height: 100%; background: radial-gradient(circle at 0 50%, var(--papel) 0 7px, transparent 8px) left/14px 18px repeat-y; width: 14px; }

.qr-socio { display: grid; grid-template-columns: 1fr 112px; gap: 14px; align-items: center; margin-top: 14px; padding: 16px; border-radius: 24px; background: #fff; border: 3px solid var(--azul); }
.qr-socio h3 { font-size: 22px; color: var(--azul); }
.qr-socio p { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--gris); line-height: 1.4; }
.qr-socio svg { width: 112px; height: 112px; }

.registro { margin-top: 14px; padding: 18px; border-radius: 24px; background: var(--naranja); color: #fff; }
.registro h2 { font-size: 28px; line-height: .95; }
.registro p { margin: 6px 0 12px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.campo { display: block; margin-bottom: 10px; }
.campo span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; }
.campo input { width: 100%; height: 50px; border-radius: 14px; border: 0; padding: 0 14px; font: 600 16px var(--s); color: var(--tinta); background: #fff; }
.campo-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.registro .btn { background: var(--tinta); box-shadow: 0 4px 0 #000; }
.gustos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.gustos button { height: 34px; padding: 0 12px; border-radius: 99px; background: rgba(255,255,255,.22); font-weight: 700; font-size: 12.5px; }
.gustos button.on { background: #fff; color: var(--naranja); }

.amigo { margin-top: 14px; padding: 16px; border-radius: 24px; background: #fff; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.amigo h3 { font-size: 20px; }
.amigo p { margin: 4px 0 0; font-size: 12.5px; font-weight: 600; color: var(--gris); line-height: 1.4; }

/* ---------- pedido ---------- */
.ped-cab h1 { font-size: 52px; color: var(--naranja); letter-spacing: -.05em; line-height: .85; padding-top: 6px; }
.ped-cab p { margin: 6px 2px 14px; font-weight: 600; font-size: 13px; color: var(--gris); }
.item { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 18px; padding: 8px 10px 8px 8px; margin-bottom: 8px; }
.item.sin-foto { grid-template-columns: 1fr auto; padding-left: 14px; }
.item .mini { width: 58px; height: 58px; border-radius: 14px; background: var(--papel-2); display: grid; place-items: center; }
.item .mini img { width: 90%; height: 90%; object-fit: contain; }
.item h3 { font-family: var(--s); font-weight: 800; font-size: 14px; letter-spacing: 0; }
.item small { display: block; font-weight: 700; font-size: 12px; color: var(--gris); margin-top: 2px; }
.item.regalo { background: #F6D23A; }
.item.regalo small { color: var(--tinta); }
.item .cant { height: 42px; box-shadow: none; background: var(--papel); }
.item .cant button { width: 32px; height: 32px; font-size: 18px; }
.totales { margin: 12px 0; padding: 14px 16px; border-radius: 20px; background: #fff; }
.totales div { display: flex; justify-content: space-between; font-weight: 600; font-size: 13.5px; padding: 3px 0; }
.totales .tot { font-family: var(--t); font-weight: 800; font-size: 24px; padding-top: 8px; margin-top: 6px; border-top: 2px dashed var(--papel-2); }
.jugar-pedido { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 22px; background: var(--terciopelo); color: #fff; margin-bottom: 12px; }
.jugar-pedido h3 { font-size: 19px; line-height: 1.05; }
.jugar-pedido p { margin: 4px 0 8px; font-size: 12px; font-weight: 600; opacity: .9; }
.jugar-pedido .btn { height: 38px; font-size: 13px; }
.entrega { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.entrega button { height: 56px; border-radius: 18px; background: #fff; font-weight: 800; font-size: 13px; border: 2.5px solid transparent; line-height: 1.2; }
.entrega button.on { border-color: var(--tinta); box-shadow: 0 4px 0 var(--tinta); }
.vacio { text-align: center; padding: 28px 10px; }
.vacio .vacio-espejo { width: 150px; height: 150px; margin: 0 auto 10px; position: relative; }
.vacio h2 { font-size: 26px; }
.vacio p { font-size: 13px; font-weight: 600; color: var(--gris); margin: 6px 0 16px; }

.seguimiento { border-radius: 26px; background: var(--azul); color: #fff; padding: 18px; }
.seguimiento .num { font-family: var(--t); font-size: 54px; line-height: .8; letter-spacing: -.04em; }
.seguimiento .est { font-family: var(--t); font-weight: 800; font-size: 26px; margin-top: 8px; color: #F6D23A; }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.pasos i { height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.pasos i.on { background: #F6D23A; }
.pasos i.va::after { content: ''; position: absolute; inset: 0; background: #F6D23A; animation: carga 3s linear both; transform-origin: left; }
@keyframes carga { from { transform: scaleX(0); } }
.pasos-txt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 11px; font-weight: 700; margin-top: 6px; opacity: .85; }

/* ---------- barra: franja de papel con filetes de la carta ---------- */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--papel); border-top: 5px solid var(--naranja); padding-bottom: var(--safe-b);
  box-shadow: 0 -10px 24px -14px rgba(27,21,48,.35);
}
.barra::before { content: ''; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply; pointer-events: none; z-index: -2; }
.barra a {
  position: relative; height: 62px; display: flex; align-items: center; justify-content: center; text-decoration: none;
  font-family: var(--t); font-weight: 800; font-size: 15px; letter-spacing: -.01em; text-transform: uppercase; color: var(--naranja);
  transition: color .25s;
}
.barra a + a { border-left: 4px solid var(--naranja); }
.barra a::before { content: ''; position: absolute; inset: 0; background: var(--naranja); transform: scaleY(0); transform-origin: bottom; transition: transform .32s cubic-bezier(.2,1,.3,1); z-index: -1; }
.barra a.on { color: #fff; }
.barra a.on::before { transform: scaleY(1); }
.barra-n { position: absolute; top: 9px; right: 10%; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--azul); color: #fff; font: 800 11px/20px var(--s); text-align: center; }
.barra-n.salta { animation: salta .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes salta { 40% { transform: scale(1.5); } }

/* cambio de vista */
.vista { animation: vistaEntra .42s cubic-bezier(.2,1,.3,1) both; }
@keyframes vistaEntra { from { opacity: 0; transform: translateY(16px); } }

/* ---------- aviso ---------- */
.aviso {
  position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 90; transform: translate(-50%, -160%); max-width: min(92vw, 420px);
  background: var(--tinta); color: #fff; border-radius: 18px; padding: 12px 16px; font-weight: 700; font-size: 13.5px; line-height: 1.35;
  transition: transform .45s cubic-bezier(.2,1.3,.4,1); box-shadow: 0 12px 30px rgba(0,0,0,.3); display: flex; gap: 10px; align-items: center;
}
.aviso.ve { transform: translate(-50%, 0); }
.aviso img { width: 40px; height: 40px; object-fit: contain; flex: none; }

/* producto que vuela al pedido */
.vuela { position: fixed; z-index: 95; width: 70px; height: 70px; object-fit: contain; pointer-events: none; transition: transform .75s cubic-bezier(.5,-0.3,.6,1), opacity .75s; }

/* ---------- entrada ---------- */
.entrada { position: fixed; inset: 0; z-index: 100; background: var(--papel); display: grid; place-items: center; pointer-events: none; }
.entrada.fuera { animation: entradaFuera .55s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes entradaFuera { to { clip-path: circle(0% at 50% 42%); } }
.entrada { clip-path: circle(150% at 50% 42%); }
.en-espejo { position: relative; width: 220px; height: 220px; margin-top: -60px; }
.en-aro { position: absolute; inset: 0; width: 100%; height: 100%; animation: enAro 1.3s cubic-bezier(.2,1,.3,1) both; }
.en-aro circle { stroke-dasharray: 660; stroke-dashoffset: 660; animation: trazo 1s .1s cubic-bezier(.6,0,.2,1) forwards; }
.en-aro .aro-oro { stroke-dasharray: 54.4 54.4; stroke-dashoffset: 0; animation: none; opacity: 0; transition: opacity .3s; }
.entrada.oro .en-aro .aro-oro { opacity: 1; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes enAro { from { transform: rotate(-120deg) scale(.7); } }
.en-glaseado { position: absolute; inset: 22px; border-radius: 50%; background: var(--naranja); clip-path: inset(0 0 100% 0); animation: enGlas .7s .85s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes enGlas { to { clip-path: inset(0 0 0 0); } }
.en-marca { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-family: var(--t); font-weight: 800; font-size: clamp(90px, 28vw, 200px); letter-spacing: -.065em; color: var(--azul); line-height: .8; transform: translateY(120%); animation: enMarca .7s 1.05s cubic-bezier(.2,1.2,.3,1) forwards; }
@keyframes enMarca { to { transform: translateY(0); } }

/* ---------- juego del espejo ---------- */
.juego { position: fixed; inset: 0; z-index: 70; background: #22152F; color: #fff; display: flex; flex-direction: column; overflow: hidden; }
.juego::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, rgba(72,227,210,.25), transparent 55%), radial-gradient(circle at 20% 110%, rgba(232,80,31,.4), transparent 50%); pointer-events: none; }
.j-cab { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 0; gap: 10px; }
.j-cab h2 { font-size: 30px; line-height: .92; }
.j-cab .kick { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #F6D23A; }
.j-cab .cerrar { position: static; flex: none; }
.j-reloj { position: relative; display: flex; justify-content: center; gap: 2px; margin-top: 14px; font-family: var(--t); font-weight: 800; font-size: 40px; }
.j-reloj span { display: inline-block; width: .62em; text-align: center; }
.j-reloj span.p { width: .3em; }
.j-metas { position: relative; display: flex; justify-content: center; gap: 8px; margin-top: 6px; font-size: 12px; font-weight: 700; }
.j-metas span { padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.12); }
.j-metas span.ok { background: #F6D23A; color: var(--tinta); }
.j-mesa { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; }
.j-puzzle { position: relative; width: min(84vw, 46vh, 400px); aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none; }
.j-puzzle .luz { position: absolute; inset: 4%; border-radius: 50%; box-shadow: 0 0 60px 16px rgba(72,227,210,.55); }
.j-aro { position: absolute; inset: 0; transition: transform .35s cubic-bezier(.2,1.4,.4,1); will-change: transform; }
.j-aro.arrastra { transition: none; }
.j-aro svg { width: 100%; height: 100%; display: block; }
.j-marca { position: absolute; left: 50%; top: -14px; width: 0; height: 0; margin-left: -10px; border: 10px solid transparent; border-top: 16px solid #F6D23A; z-index: 5; }
.j-puzzle.listo .j-aro { transition: transform .5s; }
.j-puzzle.listo .luz { animation: brillo 1s ease-in-out 3; }
@keyframes brillo { 50% { box-shadow: 0 0 90px 40px rgba(246,210,58,.8); } }
.j-pista { position: relative; text-align: center; font-size: 13px; font-weight: 600; opacity: .85; padding: 0 24px 10px; min-height: 36px; }
.j-pie { position: relative; padding: 0 18px calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
.j-res { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: rgba(34,21,47,.78); backdrop-filter: blur(6px); animation: fundido .3s both; }
.j-res-card { width: min(100%, 380px); border-radius: 28px; background: #F6D23A; color: var(--tinta); padding: 22px; text-align: center; animation: sello .55s cubic-bezier(.2,1.4,.4,1) both; }
.j-res-card.nada { background: var(--papel); }
.j-res-card img { width: 150px; height: 150px; object-fit: contain; margin: -70px auto 4px; filter: drop-shadow(0 14px 12px rgba(0,0,0,.3)); }
.j-res-card h3 { font-size: 34px; line-height: .92; }
.j-res-card p { font-size: 13.5px; font-weight: 600; line-height: 1.4; margin: 8px 0 16px; }
.j-res-card .btn { width: 100%; }
.j-res-card .btn + .btn { margin-top: 10px; }
.confeti { position: absolute; width: 10px; height: 14px; border-radius: 3px; top: -20px; animation: confeti 1.6s cubic-bezier(.3,.6,.6,1) forwards; z-index: 11; pointer-events: none; }
@keyframes confeti { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 360px) {
  .espejo { width: 170px; height: 170px; right: -62px; top: 34px; }
  .pl-foto { width: 148px; height: 148px; right: -14px; top: 128px; }
  .pl-sello { right: 112px; top: 208px; width: 64px; height: 64px; }
  .pl-sello b { font-size: 16px; }
  .pl-texto { width: 64%; }
  .pl-receta { font-size: 11px; }
}
