/* Romaneto · app del cliente. Colores del logo (naranja y crema) y del celeste de su placa «Sandwiches». */
:root {
  --naranja: #E15B13; --naranja-o: #B5430A; --naranja-c: #F07A3A;
  --crema: #F6ECE0; --crema-2: #EEDFCC; --papel: #FBF6EF;
  --tinta: #2A1E18; --tinta-2: #6B5A4F;
  --celeste: #A9B7FF; --celeste-o: #3341A8; --celeste-c: #DCE2FF;
  --madera: #C08A57; --verde: #3F8F5A;
  --r: 22px;
  --dock: 76px;
  --top: 62px;
  --t: 'Outfit', system-ui, sans-serif;
  --b: 'Bagel Fat One', 'Outfit', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--crema); overflow-x: clip; }
body { margin: 0; font-family: var(--t); color: var(--tinta); background: var(--crema); min-height: 100dvh; overflow-x: clip; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--celeste-o); outline-offset: 2px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Entrada: las capas del sándwich caen, se aprietan y queda la R ---------- */
#entrada { position: fixed; inset: 0; z-index: 100; background: var(--naranja); display: grid; place-items: center; overflow: hidden; }
#entrada .capas { display: flex; flex-direction: column-reverse; align-items: center; gap: 0; width: 210px; }
#entrada .c { display: block; width: 210px; border: 4px solid var(--tinta); border-radius: 10px; margin-top: -4px; transform: translateY(-110vh); animation: cae .42s cubic-bezier(.3,1.5,.5,1) forwards; }
#entrada .pan { height: 30px; background: #FFF8EC; box-shadow: inset 0 -6px 0 #EAD6B8; }
#entrada .jamon { height: 16px; background: #F3A5A0; width: 222px; border-radius: 30px 8px 24px 10px; }
#entrada .queso { height: 14px; background: #F8CF4F; width: 216px; border-radius: 4px; }
#entrada .c:nth-child(1) { animation-delay: .05s } #entrada .c:nth-child(2) { animation-delay: .14s } #entrada .c:nth-child(3) { animation-delay: .23s }
#entrada .c:nth-child(4) { animation-delay: .32s } #entrada .c:nth-child(5) { animation-delay: .41s } #entrada .c:nth-child(6) { animation-delay: .5s } #entrada .c:nth-child(7) { animation-delay: .59s }
@keyframes cae { to { transform: translateY(0); } }
#entrada .capas { animation: aprieta .5s .98s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes aprieta { 50% { transform: scale(1.08, .72); } 100% { transform: scale(0); opacity: 0; } }
.entrada-logo { position: absolute; width: 112px; height: 150px; color: var(--crema); transform: scale(0); animation: sale .5s 1.25s cubic-bezier(.3,1.6,.5,1) forwards; }
.entrada-logo svg { width: 100%; height: 100%; }
@keyframes sale { to { transform: scale(1); } }
#entrada.fuera { animation: sube .55s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes sube { to { transform: translateY(-100%); border-radius: 0 0 50% 50%; } }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 14px; padding-top: env(safe-area-inset-top); background: var(--naranja); color: var(--crema); }
.marca { width: 40px; height: 40px; border-radius: 12px; background: var(--crema); display: grid; place-items: center; flex: none; box-shadow: 0 3px 0 var(--naranja-o); }
.marca .r { width: 17px; height: 24px; color: var(--naranja); display: block; }
.marca .r svg { width: 100%; height: 100%; display: block; }
.suc-btn { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; line-height: 1.1; padding: 4px 0; }
.suc-nombre { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suc-nombre::after { content: ''; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px); flex: none; }
.suc-estado { font-size: 12.5px; font-weight: 500; opacity: .92; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suc-estado i { width: 7px; height: 7px; border-radius: 50%; background: #9CF0B4; box-shadow: 0 0 0 3px rgba(156,240,180,.25); flex: none; }
.suc-estado i.cerrado { background: var(--crema-2); box-shadow: none; }
.bolsa-btn { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.bolsa-btn svg { width: 24px; height: 24px; }
.bolsa-btn b { position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--celeste); color: var(--celeste-o); font-size: 12px; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--naranja); }
.bolsa-btn.late { animation: late .45s; }
@keyframes late { 40% { transform: scale(1.25) rotate(-8deg); } }

main { padding-bottom: calc(var(--dock) + 34px + env(safe-area-inset-bottom)); outline: none; }

/* ---------- Dock ---------- */
.dock { position: fixed; z-index: 40; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 26px; background: var(--tinta); box-shadow: 0 10px 30px rgba(42,30,24,.35); width: min(420px, calc(100% - 28px)); }
.dock button { flex: 1; height: 56px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(246,236,224,.62); font-size: 11.5px; font-weight: 700; transition: background .25s, color .25s; }
.dock svg { width: 22px; height: 22px; }
.dock button.on { background: var(--naranja); color: var(--crema); }

/* ---------- Inicio: la caja ---------- */
.heroe { position: relative; background: var(--naranja); color: var(--crema); padding: 6px 16px 18px; border-radius: 0 0 34px 34px; overflow: clip; }
.heroe::before { content: ''; position: absolute; inset: -40% -30% auto; height: 420px; background: radial-gradient(closest-side, rgba(255,255,255,.13), transparent 70%); pointer-events: none; }
.heroe-cab { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.heroe h1 { margin: 6px 0 0; font-weight: 900; font-size: clamp(42px, 13.2vw, 60px); line-height: .86; letter-spacing: -.02em; text-transform: uppercase; text-shadow: 0 4px 0 var(--naranja-o); }
.heroe h1 small { display: block; white-space: nowrap; font-size: min(.4em, 5.6vw); letter-spacing: .01em; color: var(--celeste-c); text-shadow: 0 3px 0 var(--naranja-o); margin-bottom: 2px; }
.sello { position: relative; width: 104px; height: 104px; flex: none; margin-top: 4px; transform: rotate(10deg); }
.sello svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: gira 18s linear infinite; }
.sello .dentro { position: absolute; inset: 16px; border-radius: 50%; background: var(--celeste); color: var(--celeste-o); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--b); font-size: 24px; box-shadow: inset 0 -4px 0 rgba(51,65,168,.18); }
.sello .dentro span { display: flex; flex-direction: column; align-items: center; line-height: .82; padding-top: 3px; }
.sello .dentro small { font-family: var(--b); font-size: 15px; letter-spacing: .04em; margin-top: 2px; }
@keyframes gira { to { transform: rotate(360deg); } }

.escena { position: relative; margin-top: 4px; }
.estrella { position: relative; height: clamp(178px, 50vw, 250px); display: grid; place-items: center; z-index: 3; }
.estrella .foto { position: relative; width: min(84%, 380px); height: 100%; display: grid; place-items: center; cursor: pointer; }
.estrella .foto img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 18px 14px rgba(70,22,0,.38)); transform: rotate(-4deg); }
.estrella .foto img.entra { animation: entra .5s cubic-bezier(.25,1.5,.5,1); }
.estrella .foto img.flota { animation: flota 4s ease-in-out infinite; }
@keyframes entra { from { transform: translateX(60%) rotate(18deg) scale(.6); opacity: 0; } }
@keyframes flota { 50% { transform: rotate(-2deg) translateY(-6px); } }
.cartel { position: absolute; left: 0; bottom: 4px; z-index: 4; font-family: var(--b); font-size: clamp(25px, 7.6vw, 34px); line-height: .95; color: var(--celeste); -webkit-text-stroke: 7px var(--celeste-o); paint-order: stroke fill; transform: rotate(-5deg); max-width: 66%; text-transform: uppercase; filter: drop-shadow(0 3px 0 var(--celeste-o)); }
.precio-sello { position: absolute; right: 2px; bottom: 0; z-index: 4; width: 92px; height: 92px; border-radius: 50%; background: var(--crema); color: var(--tinta); display: grid; place-items: center; text-align: center; transform: rotate(8deg); box-shadow: 0 5px 0 var(--naranja-o); line-height: 1; }
.precio-sello > span { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.precio-sello b { font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.precio-sello small { display: block; font-size: 10.5px; font-weight: 700; color: var(--tinta-2); margin-top: 3px; line-height: 1.1; }
.precio-sello s { display: block; font-size: 11px; color: var(--tinta-2); margin-bottom: 3px; }
.sumar { position: absolute; right: 8px; top: 2px; z-index: 5; height: 48px; padding: 0 18px 0 14px; border-radius: 24px; background: var(--tinta); color: var(--crema); font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 0 #000; transition: transform .12s; }
.sumar:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.sumar i { width: 24px; height: 24px; border-radius: 50%; background: var(--naranja); display: grid; place-items: center; font-style: normal; font-size: 19px; line-height: 1; }
.sumar[disabled] { opacity: .45; }
.stock-linea { position: relative; z-index: 4; display: flex; justify-content: center; margin: 6px 0 2px; min-height: 30px; }
.stock-linea span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 16px; background: rgba(255,255,255,.16); font-size: 13.5px; font-weight: 600; }
.stock-linea span i { width: 7px; height: 7px; border-radius: 50%; background: #9CF0B4; }
.stock-linea.sin span { background: var(--crema); color: var(--tinta); }
.stock-linea.sin span i { background: var(--naranja); }
.stock-linea button { text-decoration: underline; font-weight: 800; color: var(--naranja); }

/* La caja (vista de arriba, borde a cuadros como la de Romaneto) */
.caja { position: relative; z-index: 2; margin-top: 8px; border-radius: 20px; padding: 11px; background: repeating-conic-gradient(var(--naranja) 0 25%, #FFF4E8 0 50%) 0 0 / 14px 14px; box-shadow: 0 10px 0 var(--naranja-o), 0 18px 30px rgba(80,25,0,.35); }
.caja-in { position: relative; border-radius: 12px; background: var(--papel); padding: 10px 10px 10px; }
.caja-cab { display: flex; align-items: baseline; justify-content: space-between; color: var(--tinta); padding: 0 2px 8px; }
.caja-cab b { font-weight: 900; font-size: 16px; }
.caja-cab b em { font-style: normal; color: var(--naranja); }
.caja-cab span { font-weight: 800; font-size: 16px; }
.caja-cab span s { color: var(--tinta-2); font-weight: 600; font-size: 13px; margin-right: 5px; }
.lugares { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.lugar { position: relative; aspect-ratio: 1.3; border-radius: 10px; border: 2px dashed #E4D2BC; display: grid; place-items: center; background: #FFFDF9; }
.lugar::after { content: attr(data-n); position: absolute; font-weight: 800; font-size: 12px; color: #DCC6AC; }
.lugar.lleno { border: 0; background: #F3E6D5; box-shadow: inset 0 -3px 0 rgba(0,0,0,.05); }
.lugar.lleno::after { content: none; }
.lugar img { width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(60,30,0,.25)); }
.lugar.cae img { animation: cae-lugar .45s cubic-bezier(.25,1.6,.5,1); }
@keyframes cae-lugar { from { transform: translateY(-30px) scale(1.3); } }
.extra { position: absolute; top: -10px; right: -8px; z-index: 3; padding: 4px 9px; border-radius: 12px; background: var(--celeste); color: var(--celeste-o); font-weight: 900; font-size: 13px; transform: rotate(6deg); }
.tapa { position: absolute; inset: 0; z-index: 4; border-radius: 12px; display: grid; place-items: center; pointer-events: none; }
.tapa .estampa { font-family: var(--b); color: var(--naranja); font-size: 30px; line-height: .9; text-align: center; padding: 12px 18px; border: 4px solid var(--naranja); border-radius: 16px; background: rgba(251,246,239,.9); transform: rotate(-8deg) scale(2.2); opacity: 0; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .2s; }
.tapa .estampa small { display: block; font-family: var(--t); font-weight: 800; font-size: 12px; color: var(--tinta); margin-top: 4px; }
.caja.docena .tapa .estampa { transform: rotate(-8deg) scale(1); opacity: 1; }
.caja-pie { position: relative; z-index: 5; display: flex; gap: 8px; margin-top: 10px; min-height: 40px; align-items: center; }
.caja-pie .falta { flex: 1; display: flex; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--tinta-2); line-height: 1.2; }
.boton { height: 50px; padding: 0 20px; border-radius: 25px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 16px; background: var(--naranja); color: var(--crema); box-shadow: 0 4px 0 var(--naranja-o); transition: transform .12s, box-shadow .12s; white-space: nowrap; }
.boton:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--naranja-o); }
.boton.oscuro { background: var(--tinta); box-shadow: 0 4px 0 #000; }
.boton.claro { background: var(--crema); color: var(--naranja); box-shadow: 0 4px 0 var(--naranja-o); }
.boton.celeste { background: var(--celeste); color: var(--celeste-o); box-shadow: 0 4px 0 var(--celeste-o); }
.boton.chico { height: 40px; padding: 0 15px; font-size: 14.5px; }
.boton.ancho { width: 100%; }
.boton[disabled] { opacity: .5; pointer-events: none; }

/* Riel de sabores */
.sabores { position: relative; margin: 16px -16px 0; padding: 4px 16px 8px; display: flex; gap: 9px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.sabores::-webkit-scrollbar { display: none; }
.sabor { flex: none; width: 86px; scroll-snap-align: start; border-radius: 18px; padding: 8px 6px 9px; background: rgba(255,255,255,.14); color: var(--crema); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: background .2s, transform .2s; position: relative; }
.sabor img { width: 72px; height: 50px; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(60,20,0,.3)); }
.sabor span { font-size: 12px; font-weight: 700; line-height: 1.05; text-align: center; min-height: 2.1em; display: grid; place-items: center; }
.sabor.on { background: var(--crema); color: var(--tinta); transform: translateY(-3px); box-shadow: 0 4px 0 var(--naranja-o); }
.sabor.agotado img { opacity: .4; filter: grayscale(1); }
.sabor .n { position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--celeste); color: var(--celeste-o); font-size: 11px; font-weight: 900; display: grid; place-items: center; padding: 0 5px; }
.deslizar { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 700; opacity: .85; margin-top: 4px; }
.deslizar i { width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; animation: desliza 1.6s ease-in-out infinite; }
@keyframes desliza { 50% { transform: translateX(8px); } }

.volador { position: fixed; z-index: 60; pointer-events: none; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(60,20,0,.35)); }

/* Cinta */
.cinta { margin: 26px 0 6px; background: var(--celeste); color: var(--celeste-o); transform: rotate(-2deg); overflow: hidden; border-top: 3px solid var(--celeste-o); border-bottom: 3px solid var(--celeste-o); }
.cinta div { display: flex; width: max-content; gap: 22px; padding: 9px 0; animation: corre 26s linear infinite; font-family: var(--b); font-size: 20px; white-space: nowrap; }
.cinta span { display: inline-flex; align-items: center; gap: 22px; }
.cinta span::after { content: ''; width: 14px; height: 18px; background: currentColor; -webkit-mask: var(--r-mask) center / contain no-repeat; mask: var(--r-mask) center / contain no-repeat; }
@keyframes corre { to { transform: translateX(-50%); } }

/* Secciones */
.seccion { padding: 26px 16px 0; }
.seccion > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.seccion h2 { margin: 0; font-weight: 900; font-size: 30px; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; }
.seccion h2 small { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--tinta-2); margin-top: 6px; }
.seccion > header button { font-weight: 800; font-size: 14px; color: var(--naranja); padding: 6px 0; }

.compartir { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tarjeta { position: relative; border-radius: var(--r); background: #fff; overflow: clip; box-shadow: 0 2px 0 var(--crema-2), 0 12px 26px rgba(90,50,20,.08); display: flex; flex-direction: column; text-align: left; }
.tarjeta .ft { position: relative; aspect-ratio: 4 / 3; background: var(--crema-2); overflow: hidden; }
.tarjeta .ft img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tarjeta:hover .ft img { transform: scale(1.04); }
.tarjeta .tx { padding: 13px 15px 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.tarjeta h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.05; }
.tarjeta p { margin: 0; grid-column: 1 / -1; font-size: 13.5px; color: var(--tinta-2); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta .pr { font-weight: 900; font-size: 19px; }
.tarjeta .chip-foto { position: absolute; left: 12px; top: 12px; padding: 6px 11px; border-radius: 14px; background: var(--crema); font-weight: 800; font-size: 12.5px; }
.tarjeta .mas { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--naranja); color: var(--crema); display: grid; place-items: center; font-size: 26px; font-weight: 600; box-shadow: 0 3px 0 var(--naranja-o); }

.riel { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.riel::-webkit-scrollbar { display: none; }
.riel .tarjeta { flex: none; width: min(74vw, 300px); scroll-snap-align: start; }
.riel .tarjeta h3 { font-size: 18px; }

/* Club en el inicio y en su pestaña */
.club-tarjeta { position: relative; border-radius: 26px; background: var(--tinta); color: var(--crema); padding: 18px; overflow: clip; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 14px; align-items: center; text-align: left; width: 100%; }
.club-tarjeta h3 { margin: 0; font-family: var(--b); font-weight: 400; font-size: 30px; line-height: .92; color: var(--celeste); }
.club-tarjeta p { margin: 8px 0 12px; font-size: 14px; line-height: 1.3; color: rgba(246,236,224,.8); }
.cuadros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 14px; background: repeating-conic-gradient(var(--naranja) 0 25%, #FFF4E8 0 50%) 0 0 / 10px 10px; }
.cuadros i { aspect-ratio: 1; border-radius: 6px; background: #3A2C24; display: grid; place-items: center; color: var(--naranja); }
.cuadros i.si { background: var(--crema); }
.cuadros i.si svg { width: 50%; height: 70%; }
.cuadros i.nuevo { animation: pinta .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pinta { from { transform: scale(.3) rotate(-30deg); } }

.sucursales { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.suc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: #fff; text-align: left; box-shadow: 0 2px 0 var(--crema-2); width: 100%; }
.suc .pin { width: 44px; height: 44px; border-radius: 14px; background: var(--crema); color: var(--naranja); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.suc.on .pin { background: var(--naranja); color: var(--crema); }
.suc b { display: block; font-size: 16.5px; font-weight: 800; }
.suc small { display: block; font-size: 13px; color: var(--tinta-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suc .lado { font-size: 12.5px; font-weight: 800; color: var(--verde); text-align: right; }
.suc .lado.gris { color: var(--tinta-2); }
.suc .lado.naranja { color: var(--naranja); }

.pie { padding: 30px 16px 10px; text-align: center; font-size: 13px; color: var(--tinta-2); }
.pie a { color: var(--naranja); font-weight: 800; text-decoration: none; }

/* ---------- Carta ---------- */
.titulo-vista { padding: 18px 16px 6px; }
.titulo-vista h1 { margin: 0; font-weight: 900; font-size: 42px; line-height: .9; letter-spacing: -.02em; text-transform: uppercase; }
.titulo-vista p { margin: 8px 0 0; color: var(--tinta-2); font-size: 14.5px; }
.filtros { position: sticky; top: var(--top); z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: var(--crema); scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros button { flex: none; height: 38px; padding: 0 15px; border-radius: 19px; background: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 2px 0 var(--crema-2); }
.filtros button.on { background: var(--tinta); color: var(--crema); box-shadow: none; }
.lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 6px 16px 0; }
.item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px; border-radius: 20px; background: #fff; box-shadow: 0 2px 0 var(--crema-2); text-align: left; width: 100%; }
.item .mini { width: 92px; height: 78px; border-radius: 14px; overflow: hidden; background: var(--crema-2); }
.item .mini img { width: 100%; height: 100%; object-fit: cover; }
.item b { display: block; font-size: 16px; font-weight: 800; line-height: 1.1; }
.item p { margin: 3px 0 5px; font-size: 13px; color: var(--tinta-2); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .pr { font-weight: 900; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.etq { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 10px; background: var(--crema); color: var(--tinta-2); }
.etq.poco { background: #FFE9D9; color: var(--naranja-o); }
.etq.sin { background: var(--crema-2); color: var(--tinta-2); }
.etq.doc { background: var(--celeste-c); color: var(--celeste-o); }
.item .mas { width: 42px; height: 42px; border-radius: 50%; background: var(--naranja); color: var(--crema); display: grid; place-items: center; font-size: 24px; box-shadow: 0 3px 0 var(--naranja-o); }
.item .mas[disabled] { background: var(--crema-2); color: var(--tinta-2); box-shadow: none; }
.grupo { padding: 18px 16px 2px; font-weight: 900; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-2); }

/* ---------- Hoja (ficha, sucursales) ---------- */
.velo { position: fixed; inset: 0; z-index: 70; background: rgba(42,30,24,.5); backdrop-filter: blur(2px); animation: aparece .25s; }
@keyframes aparece { from { opacity: 0; } }
.hoja { position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--crema); border-radius: 28px 28px 0 0; animation: hoja .38s cubic-bezier(.2,1,.3,1); padding-bottom: env(safe-area-inset-bottom); }
@keyframes hoja { from { transform: translateY(100%); } }
.hoja .asa { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 0; pointer-events: none; }
.hoja .asa i { position: absolute; left: 50%; top: 8px; width: 44px; height: 5px; border-radius: 3px; background: rgba(42,30,24,.2); transform: translateX(-50%); }
.cerrar { pointer-events: auto; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.cerrar svg { width: 18px; height: 18px; }
.ficha-foto { margin: -40px 0 0; aspect-ratio: 4 / 3; background: var(--crema-2); overflow: hidden; border-radius: 28px 28px 0 0; }
.ficha-foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha-tx { padding: 16px 18px 6px; }
.ficha-tx h2 { margin: 0; font-weight: 900; font-size: 30px; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; }
.ficha-tx p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.4; color: var(--tinta-2); }
.precios { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.precios div { flex: 1; min-width: 130px; padding: 11px 13px; border-radius: 16px; background: #fff; }
.precios div small { display: block; font-size: 12px; font-weight: 700; color: var(--tinta-2); }
.precios div b { font-size: 22px; font-weight: 900; }
.precios div.doc { background: var(--celeste-c); color: var(--celeste-o); }
.precios div.doc small { color: var(--celeste-o); }
.stock-ficha { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; font-size: 14.5px; line-height: 1.35; display: flex; gap: 10px; align-items: center; }
.stock-ficha i { width: 9px; height: 9px; border-radius: 50%; background: var(--verde); flex: none; }
.stock-ficha.sin i { background: var(--naranja); }
.stock-ficha button { font-weight: 800; color: var(--naranja); text-decoration: underline; }
.barra-agregar { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--crema) 26%); }
.cant { display: flex; align-items: center; height: 50px; border-radius: 25px; background: #fff; box-shadow: 0 2px 0 var(--crema-2); }
.cant button { width: 44px; height: 50px; font-size: 22px; font-weight: 700; }
.cant b { min-width: 26px; text-align: center; font-size: 17px; font-weight: 900; }
.barra-agregar .boton { flex: 1; }
.hoja-tx { padding: 22px 18px 18px; }
.hoja-tx h2 { margin: 0 0 4px; font-weight: 900; font-size: 28px; text-transform: uppercase; letter-spacing: -.02em; }
.hoja-tx > p { margin: 0 0 14px; color: var(--tinta-2); font-size: 14.5px; }

/* ---------- Pedido ---------- */
.pedido-lista { display: grid; gap: 10px; padding: 6px 16px 0; }
.renglon { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px; border-radius: 18px; background: #fff; box-shadow: 0 2px 0 var(--crema-2); }
.renglon img { width: 64px; height: 50px; object-fit: contain; }
.renglon img.ft { object-fit: cover; border-radius: 12px; }
.renglon b { display: block; font-size: 15px; font-weight: 800; line-height: 1.1; }
.renglon small { font-size: 13px; color: var(--tinta-2); font-weight: 600; }
.renglon .cant { height: 40px; }
.renglon .cant button { width: 34px; height: 40px; font-size: 19px; }
.renglon .cant b { min-width: 20px; font-size: 15px; }
.cuenta { margin: 14px 16px 0; padding: 16px; border-radius: 22px; background: #fff; display: grid; gap: 8px; }
.cuenta div { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.cuenta .desc { color: var(--verde); font-weight: 700; }
.cuenta .total { border-top: 2px dashed var(--crema-2); padding-top: 10px; margin-top: 2px; font-weight: 900; font-size: 22px; }
.empuje { margin: 12px 16px 0; padding: 13px 14px; border-radius: 18px; background: var(--celeste-c); color: var(--celeste-o); display: flex; gap: 12px; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.empuje.regalo { background: var(--tinta); color: var(--crema); }
.opciones { margin: 14px 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 22px; background: var(--crema-2); }
.opciones button { height: 46px; border-radius: 18px; font-weight: 800; font-size: 15px; color: var(--tinta-2); }
.opciones button.on { background: #fff; color: var(--tinta); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.campos { margin: 12px 16px 0; display: grid; gap: 10px; }
.campo { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--tinta-2); }
.campo input { height: 50px; border-radius: 16px; border: 2px solid var(--crema-2); background: #fff; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 600; color: var(--tinta); }
.retiro { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 18px; background: #fff; font-size: 14.5px; line-height: 1.3; }
.retiro .pin { width: 40px; height: 40px; border-radius: 12px; background: var(--naranja); color: var(--crema); display: grid; place-items: center; flex: none; }
.retiro .pin span { width: 14px; height: 20px; display: block; }
.retiro button { margin-left: auto; font-weight: 800; color: var(--naranja); }
.cierre { padding: 16px 16px 0; }
.vacio { margin: 20px 16px 0; padding: 26px 20px; border-radius: 26px; background: #fff; text-align: center; display: grid; justify-items: center; gap: 12px; }
.vacio .caja-vacia { width: 140px; height: 96px; border-radius: 14px; padding: 8px; background: repeating-conic-gradient(var(--naranja) 0 25%, #FFF4E8 0 50%) 0 0 / 12px 12px; }
.vacio .caja-vacia div { width: 100%; height: 100%; border-radius: 8px; background: var(--papel); }
.vacio b { font-size: 20px; font-weight: 900; }
.vacio p { margin: 0; color: var(--tinta-2); font-size: 14.5px; }

/* Seguimiento */
.seguimiento { margin: 16px 16px 0; padding: 20px 18px; border-radius: 26px; background: var(--naranja); color: var(--crema); }
.seguimiento .nro { font-weight: 700; font-size: 13.5px; opacity: .9; }
.seguimiento h2 { margin: 6px 0 4px; font-weight: 900; font-size: 34px; line-height: .92; text-transform: uppercase; letter-spacing: -.02em; text-shadow: 0 3px 0 var(--naranja-o); }
.seguimiento > p { margin: 0 0 16px; font-size: 14.5px; opacity: .92; }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pasos div { position: relative; padding: 10px 8px; border-radius: 14px; background: rgba(255,255,255,.14); font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.15; }
.pasos div.hecho { background: var(--crema); color: var(--naranja); }
.pasos div.ahora { background: var(--tinta); color: var(--crema); }
.pasos div.ahora::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 18px; height: 3px; border-radius: 2px; background: var(--naranja); transform: translateX(-50%); animation: late 1.2s infinite; }

/* Club */
.club-grande { margin: 8px 16px 0; padding: 20px; border-radius: 28px; background: var(--tinta); color: var(--crema); }
.club-grande .socio { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: rgba(246,236,224,.7); }
.club-grande h2 { margin: 10px 0 14px; font-family: var(--b); font-weight: 400; font-size: 38px; line-height: .9; color: var(--celeste); }
.club-grande .cuadros { gap: 6px; padding: 9px; border-radius: 18px; background-size: 14px 14px; }
.club-grande .cuadros i { border-radius: 10px; }
.club-grande .cuadros i.trece { grid-column: span 4; aspect-ratio: auto; height: 54px; background: var(--celeste); color: var(--celeste-o); font-family: var(--b); font-size: 20px; }
.club-grande .cuadros i.trece.listo { background: var(--naranja); color: var(--crema); animation: pulso 1.6s ease-in-out infinite; }
@keyframes pulso { 50% { box-shadow: 0 0 0 6px rgba(225,91,19,.3); } }
.club-grande .cuenta-club { display: flex; justify-content: space-between; margin-top: 14px; font-size: 15px; font-weight: 700; }
.como { margin: 14px 16px 0; display: grid; gap: 10px; }
.como div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: #fff; font-size: 14.5px; line-height: 1.3; }
.como b.n { width: 40px; height: 40px; border-radius: 12px; background: var(--celeste-c); color: var(--celeste-o); display: grid; place-items: center; font-weight: 900; font-size: 18px; }

/* Aviso */
.aviso { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--dock) + 30px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 18px; background: var(--tinta); color: var(--crema); font-weight: 700; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: .3s cubic-bezier(.3,1.4,.5,1); max-width: calc(100% - 32px); text-align: center; }
.aviso.ver { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- iPad y compu (el teléfono queda igual) ---------- */
@media (min-width: 700px) {
  :root { --top: 70px; }
  .top { padding: 0 max(24px, calc(50% - 560px)); }
  .heroe { padding: 10px max(28px, calc(50% - 560px)) 26px; border-radius: 0 0 44px 44px; }
  .heroe h1 { font-size: 64px; }
  .seccion, .titulo-vista, .lista, .pedido-lista { padding-left: max(28px, calc(50% - 560px)); padding-right: max(28px, calc(50% - 560px)); }
  .filtros { padding-left: max(28px, calc(50% - 560px)); padding-right: max(28px, calc(50% - 560px)); }
  .sabores, .riel { margin: 16px calc(-1 * max(28px, calc(50% - 560px))) 0; padding-left: max(28px, calc(50% - 560px)); padding-right: max(28px, calc(50% - 560px)); }
  .riel { margin-top: 0; }
  .compartir { grid-template-columns: 1fr 1fr; }
  .sucursales { grid-template-columns: 1fr 1fr; }
  .lista { grid-template-columns: 1fr 1fr; }
  .club-tarjeta { grid-template-columns: minmax(0, 1fr) 200px; padding: 24px; }
  .hoja { left: 50%; right: auto; width: min(560px, 100%); transform: translateX(-50%); bottom: 24px; border-radius: 28px; max-height: calc(100dvh - 48px); animation: hoja-ancha .38s cubic-bezier(.2,1,.3,1); }
  @keyframes hoja-ancha { from { transform: translate(-50%, 40px); opacity: 0; } }
  .cuenta, .empuje, .opciones, .campos, .cierre, .vacio, .seguimiento, .club-grande, .como { margin-left: auto; margin-right: auto; max-width: 640px; }
  .cierre { padding-left: 0; padding-right: 0; }
  .pedido-lista { max-width: 640px; margin: 0 auto; padding-left: 0; padding-right: 0; }
}
@media (min-width: 1000px) {
  .heroe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; }
  .heroe h1 { font-size: 86px; }
  .estrella { height: 300px; }
  .sabores { flex-wrap: wrap; overflow: visible; margin: 18px 0 0; padding: 0; }
  .sabor { width: calc((100% - 9px * 7) / 8); }
  .deslizar { display: none; }
  .compartir { grid-template-columns: 1fr 1fr; }
  .lista { grid-template-columns: 1fr 1fr 1fr; }
  .riel .tarjeta { width: 280px; }
}

/* ---------- Envío gratis a 20 cuadras (calculado con Google en el Worker) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.envio-tarjeta { border-radius: 28px; background: var(--celeste); color: var(--celeste-o); padding: 20px 18px 18px; box-shadow: 0 6px 0 var(--celeste-o); position: relative; overflow: clip; }
.envio-tarjeta::after { content: ''; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; border: 3px dashed rgba(51,65,168,.35); box-shadow: 0 0 0 26px rgba(255,255,255,.12), 0 0 0 54px rgba(255,255,255,.08); pointer-events: none; }
.envio-cab { position: relative; z-index: 1; }
.envio-cab h2 { margin: 0; font-family: var(--b); font-weight: 400; font-size: 44px; line-height: .86; color: #fff; -webkit-text-stroke: 7px var(--celeste-o); paint-order: stroke fill; transform: rotate(-3deg); transform-origin: left; text-transform: uppercase; }
.envio-cab p { margin: 10px 0 14px; font-size: 15px; font-weight: 600; line-height: 1.3; max-width: 30ch; }
.envio-form { position: relative; z-index: 1; display: flex; gap: 8px; }
.envio-form input { flex: 1; min-width: 0; height: 48px; border-radius: 24px; border: 2px solid transparent; background: #fff; padding: 0 16px; font: inherit; font-size: 16px; font-weight: 600; color: var(--tinta); }
.envio-form input:focus { border-color: var(--celeste-o); outline: none; }
.envio-form .boton { height: 48px; flex: none; }
.envio-err { position: relative; z-index: 1; margin: 10px 2px 0; font-size: 14px; font-weight: 700; color: var(--tinta); }
.envio-res { position: relative; z-index: 1; margin-top: 12px; padding: 14px; border-radius: 20px; background: #fff; color: var(--tinta); display: grid; gap: 12px; }
.envio-res.cargando { display: flex; justify-content: center; gap: 6px; padding: 18px; }
.envio-res.cargando i { width: 9px; height: 9px; border-radius: 50%; background: var(--celeste-o); animation: punto 1s infinite; }
.envio-res.cargando i:nth-child(2) { animation-delay: .15s; } .envio-res.cargando i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 50% { transform: translateY(-6px); opacity: .4; } }
.envio-dir { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.pin-r { width: 30px; height: 30px; border-radius: 9px; background: var(--naranja); color: var(--crema); display: grid; place-items: center; flex: none; }
.pin-r svg { width: 11px; height: 16px; }
.regla { margin: 4px 4px 0; }
.regla .pista { position: relative; height: 16px; border-radius: 8px; background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 2px), var(--crema-2) calc(5% - 2px) 5%), var(--crema); }
.regla .gratis { position: absolute; left: 0; top: 0; bottom: 0; width: 33.33%; border-radius: 8px; background: #BDE8CB; }
.regla .yo { position: absolute; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--tinta); color: var(--crema); display: grid; place-items: center; font-style: normal; box-shadow: 0 3px 0 #000; animation: entra-yo .7s cubic-bezier(.3,1.5,.5,1); }
.regla .yo.en { background: var(--verde); box-shadow: 0 3px 0 #24683D; }
.regla .yo b { font-size: 14px; font-weight: 900; line-height: 1; }
@keyframes entra-yo { from { transform: scale(.3); } }
.regla .marcas { position: relative; height: 18px; margin-top: 8px; font-size: 11.5px; font-weight: 800; color: var(--tinta-2); }
.regla .marcas span { position: absolute; top: 0; }
.regla .marcas span:first-child { left: 0; }
.regla .marcas span:last-child { right: 0; }
.regla .marcas .m20 { left: 33.33%; transform: translateX(-50%); color: #24683D; white-space: nowrap; }
.envio-desde { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.25; }
.envio-desde strong { flex: none; font-size: 17px; font-weight: 900; padding: 6px 12px; border-radius: 14px; background: var(--crema); }
.envio-desde.gratis strong { background: #CFEFD9; color: #24683D; }
.sugerir { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; background: var(--celeste-c); color: var(--celeste-o); font-size: 13.5px; line-height: 1.25; text-align: left; }
.sugerir em { font-style: normal; font-weight: 900; white-space: nowrap; text-decoration: underline; }
.envio-res .boton { width: 100%; }
.envio-pedido { padding: 14px; border-radius: 20px; background: var(--celeste-c); }
.envio-pedido .envio-res { margin-top: 10px; }
.envio-pedido .envio-form input { border-color: var(--crema-2); }
.extras { display: grid; gap: 10px; }
.extra-club { display: grid; gap: 4px; padding: 16px; border-radius: 20px; background: #fff; font-size: 14.5px; line-height: 1.3; color: var(--tinta-2); justify-items: start; }
.extra-club b { font-size: 19px; font-weight: 900; color: var(--tinta); }
.extra-club.naranja { background: var(--naranja); color: rgba(246,236,224,.9); }
.extra-club.naranja b { color: var(--crema); }
.extra-club.celeste { background: var(--celeste); color: var(--celeste-o); }
.extra-club.celeste b { color: var(--celeste-o); }
.extra-club .boton { margin-top: 8px; }
.club-grande + .como + .seccion, .como + .seccion { max-width: 640px; margin: 0 auto; }
@media (min-width: 700px) {
  .envio-tarjeta { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px 28px; align-items: start; padding: 26px; }
  .envio-tarjeta .envio-res, .envio-tarjeta .envio-err { grid-column: 2; }
  .envio-tarjeta .envio-form { grid-column: 2; grid-row: 1; align-self: end; }
  .envio-tarjeta .envio-cab { grid-row: 1 / span 3; }
  .extras { grid-template-columns: 1fr 1fr 1fr; }
}

.pediste { margin: 12px 16px 0; padding: 16px; border-radius: 24px; background: #fff; display: grid; gap: 12px; }
.pediste h3 { margin: 0; font-weight: 900; font-size: 18px; }
.pediste-fotos { display: flex; flex-wrap: wrap; gap: 8px; }
.pediste-fotos span { position: relative; width: 64px; height: 52px; border-radius: 12px; background: var(--crema); display: grid; place-items: center; }
.pediste-fotos img { width: 54px; height: 42px; object-fit: contain; }
.pediste-fotos img.ft { width: 64px; height: 52px; object-fit: cover; border-radius: 12px; }
.pediste-fotos b { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--naranja); color: var(--crema); font-size: 12px; font-weight: 900; display: grid; place-items: center; padding: 0 5px; }
.pediste-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; color: var(--tinta-2); font-weight: 600; }
.pediste-total b { color: var(--tinta); font-size: 20px; font-weight: 900; }
@media (min-width: 700px) { .pediste { margin-left: auto; margin-right: auto; max-width: 640px; } }
@media (min-width: 700px) and (max-width: 999px) {
  .escena { max-width: 600px; margin-left: auto; margin-right: auto; }
  .lugar { aspect-ratio: 1.5; }
  .estrella { height: 280px; }
}
@media (min-width: 1000px) {
  .lugar { aspect-ratio: 1.7; }
  .estrella { height: 260px; }
  .heroe { padding-bottom: 34px; }
}
.hoja:not([hidden]) ~ .aviso { bottom: auto; top: calc(var(--top) + 14px); transform: translate(-50%, -20px); }
.hoja:not([hidden]) ~ .aviso.ver { transform: translate(-50%, 0); }
