/* Mesa Dulce · papel de pastelería, cuadros bordó y personajes-sticker */
:root {
  /* la página es clara siempre: el celu no la oscurece por su cuenta */
  color-scheme: only light;
  --bordo: #54110E;
  --bordo-2: #651912;
  --bordo-ink: #3d0a08;
  --crema: #F7E492;
  --crema-2: #FBEFB8;
  --celeste: #A3C7D2;
  --paper: #FBF7EF;
  --paper-2: #F3EBDC;
  --white: #FFFDF6;
  --error: #A8251B;
  --line: rgba(84,17,14,.14);
  --ink-soft: rgba(84,17,14,.74);
  --display: 'Fredoka', 'Quicksand', system-ui, sans-serif;
  --body: 'Quicksand', system-ui, sans-serif;
  --ck-a: #F4E6C6;
  --ck-b: #E9D2A2;
  --nav-h: 68px;
  --bar-h: 0px;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.3,1.45,.5,1);
  --ease-soft: cubic-bezier(.2,.8,.3,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--paper); color: var(--bordo); scrollbar-color: var(--bordo) var(--paper-2); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { background: var(--paper); color: var(--bordo); font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; caret-color: var(--bordo); accent-color: var(--bordo); }
::selection { background: var(--crema); color: var(--bordo); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
input, textarea { font: inherit; color: var(--bordo); background-color: var(--white); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--bordo); outline-offset: 3px; border-radius: 10px; }
.checker :focus-visible, .reel :focus-visible, .foot :focus-visible { outline-color: var(--crema); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--bordo); color: var(--crema); padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[data-svg] svg { display: block; width: 100%; height: auto; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.4vw, 76px); line-height: .95; letter-spacing: -.02em; text-wrap: balance; }
.title.light { color: var(--crema); }

/* números que giran */
.rl { display: inline-block; grid-area: 1 / 1; }
.rl.out { pointer-events: none; }

/* ---------- personajes ---------- */
.rig { position: relative; width: 100%; }
.rig svg { display: block; width: 100%; height: auto; overflow: visible; }
.rig, .rig * { -webkit-user-select: none; user-select: none; }
.rig[data-char] { cursor: pointer; }

/* globo de diálogo: la colita es un triángulo que queda debajo del texto (nunca lo tapa) */
.bubble { --bb: var(--crema); position: absolute; z-index: 3; isolation: isolate; font-family: var(--display); font-weight: 700; color: var(--bordo); background: var(--bb); padding: 8px 14px; border-radius: 18px; line-height: 1.1; font-size: 17px; border: 2.5px solid var(--bordo); box-shadow: 3px 4px 0 var(--bordo); white-space: nowrap; pointer-events: none; transform-origin: var(--tail, 16px) 100%; }
.bubble::before, .bubble::after { content: ''; position: absolute; z-index: -1; top: calc(100% - 1px); left: var(--tail, 16px); width: 20px; height: 15px; pointer-events: none; }
.bubble::before { background: var(--bordo); clip-path: polygon(0 0, 20px 0, 2px 15px); }
.bubble::after { background: var(--bb); clip-path: polygon(3.4px 0, 16.6px 0, 3.6px 10.2px); }
.bubble.r { transform-origin: calc(100% - var(--tail, 16px)) 100%; }
.bubble.r::before, .bubble.r::after { left: auto; right: var(--tail, 16px); }
.bubble.r::before { clip-path: polygon(0 0, 20px 0, 18px 15px); }
.bubble.r::after { clip-path: polygon(3.4px 0, 16.6px 0, 16.4px 10.2px); }
.bubble.pop { animation: pop .5s var(--ease-spring); }
@keyframes pop { 0% { scale: .2; opacity: 0; rotate: -12deg; } 60% { scale: 1.08; opacity: 1; rotate: 3deg; } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(16px, 3vw); padding-top: env(safe-area-inset-top); transition: transform .35s var(--ease-out), background-color .3s, box-shadow .3s; }
.nav.solid { background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(61,10,8,.4); }
body.nav-hidden .nav { transform: translateY(-100%); }
.nav-logo { width: 96px; color: var(--bordo); display: grid; min-height: 44px; align-content: center; }
.nav-links { display: flex; gap: 4px; background: var(--white); border: 2px solid var(--bordo); border-radius: 99px; padding: 4px; box-shadow: 3px 3px 0 var(--bordo); }
.nav-links a { text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 15px; padding: 8px 16px; border-radius: 99px; transition: background-color .2s; }
.nav-links a:hover { background: var(--crema); }
.nav-cart { display: flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-weight: 600; background: var(--bordo); color: var(--crema); padding: 6px 8px 6px 14px; border-radius: 99px; box-shadow: 0 6px 16px -8px rgba(61,10,8,.6); transition: transform .2s var(--ease-out); }
.nav-cart:hover { transform: translateY(-1px); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-wa { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 15px 6px 11px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--bordo); background: var(--white); border: 2px solid var(--bordo); border-radius: 99px; box-shadow: 3px 3px 0 var(--bordo); transition: transform .18s var(--ease-out), box-shadow .18s; }
.nav-wa:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--bordo); }
.nav-wa:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--bordo); }
.nav-wa:hover .ic, .btn-wa:hover .ic { animation: waRing .55s var(--ease-out); }
.ic .fill { fill: currentColor; stroke: none; }
@keyframes waRing { 20% { rotate: -14deg; } 45% { rotate: 11deg; } 70% { rotate: -6deg; } }
.nc-count { background: var(--crema); color: var(--bordo); min-width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; font-size: 15px; padding: 0 7px; font-variant-numeric: tabular-nums; overflow: hidden; }
.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 35% { transform: scale(1.14) rotate(-5deg); } 65% { transform: scale(.96) rotate(2deg); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-content: center; justify-items: center; padding: calc(var(--nav-h) + 8px) 16px 110px; overflow: hidden; text-align: center; }
.hero-stage { position: relative; width: min(620px, 72vw, 66vh); margin-top: clamp(70px, 12vh, 120px); will-change: transform; }
.hero-logo-wrap { position: relative; z-index: 2; }
.hero-logo { position: relative; z-index: 2; color: var(--bordo); }
.hero-logo .ltr { transform-box: fill-box; transform-origin: 50% 100%; }
/* destello crema de la entrada (después desaparece) */
.hero-burst { position: absolute; z-index: 0; left: 50%; top: 52%; width: 74%; margin: -37% 0 0 -37%; opacity: 0; fill: var(--crema); stroke: var(--bordo); stroke-width: 2.6; stroke-linejoin: round; overflow: visible; pointer-events: none; }
.hero-burst circle { fill: none; stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .55; }
.hero-pop { position: absolute; z-index: 1; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.pop-ck { position: absolute; left: 0; top: 0; max-width: none; pointer-events: none; filter: drop-shadow(0 6px 5px rgba(60,20,0,.28)); will-change: transform, opacity; }
/* la chica Kinder parada arriba del cartel, adelante de las letras */
.peek { position: absolute; z-index: 3; width: 22%; right: 7%; bottom: calc(100% - 6%); transform-origin: 50% 60%; }
.peek .rig { transform-origin: 50% 100%; }
.b-hero { right: 31%; bottom: calc(100% + 15%); rotate: -4deg; }
.hero-sub { position: relative; z-index: 2; margin-top: 28px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; max-width: 30ch; color: var(--ink-soft); text-wrap: balance; }
.hero-sub .w { display: inline-block; }
.hero-cta { position: relative; z-index: 2; margin-top: 24px; overflow: hidden; isolation: isolate; }
.hero-cta span { position: relative; z-index: 1; }
.hero-cta.shine::after { content: ''; position: absolute; z-index: 2; inset: -4px; background: linear-gradient(105deg, transparent 38%, rgba(255,253,246,.5) 50%, transparent 62%); transform: translateX(-130%); animation: shine 5.5s .1s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0% { transform: translateX(-130%); } 18%, 100% { transform: translateX(130%); } }
.hero-swirl { position: absolute; width: 110px; left: 6%; top: 20%; color: var(--bordo); animation: spin 14s linear infinite; }
.hero-star { position: absolute; width: 84px; height: 84px; fill: var(--crema); stroke: var(--bordo); stroke-width: 4; stroke-linejoin: round; animation: twinkle 3s ease-in-out infinite; }
.hero-star.s3 { left: 12%; bottom: 26%; width: 50px; height: 50px; fill: var(--celeste); animation-delay: -1.5s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 50% { transform: rotate(30deg) scale(.86); } }
/* antes de la entrada todo está escondido (si algo falla, aparece solo) */
html:not(.go) :is(.hero-logo, .peek, .b-hero, .hero-sub, .hero-cta, .hero-swirl, .hero-star) { opacity: 0; animation: failsafe .3s 2.5s forwards; }
@keyframes failsafe { to { opacity: 1; } }

/* botones */
.btn-bordo { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; text-decoration: none; background: var(--bordo); color: var(--crema); font-family: var(--display); font-weight: 700; font-size: 19px; padding: 12px 26px; border-radius: 99px; border: 2.5px solid var(--bordo); box-shadow: 4px 4px 0 var(--crema), 4px 4px 0 2.5px var(--bordo); transition: transform .15s var(--ease-out), box-shadow .15s, opacity .2s; font-variant-numeric: tabular-nums; }
.btn-bordo:hover { transform: translate(-1px, -2px); }
.btn-bordo:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--crema), 1px 1px 0 2.5px var(--bordo); }
.btn-bordo.big { font-size: 22px; padding: 15px 34px; min-height: 60px; }
.btn-bordo:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-bordo.loading { cursor: progress; }
.btn-bordo.loading::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-cream { display: inline-flex; align-items: center; min-height: 52px; text-decoration: none; background: var(--crema); color: var(--bordo); font-family: var(--display); font-weight: 700; font-size: 20px; padding: 12px 28px; border-radius: 99px; box-shadow: 5px 5px 0 var(--bordo-ink); border: 3px solid var(--bordo-ink); transition: transform .2s var(--ease-out); }
.btn-cream:hover { transform: translate(-2px, -2px); }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; text-decoration: none; color: var(--crema); font-family: var(--display); font-weight: 700; font-size: 20px; padding: 12px 26px 12px 20px; border-radius: 99px; border: 3px solid var(--crema); box-shadow: 5px 5px 0 var(--bordo-ink); transition: transform .2s var(--ease-out), background-color .2s; }
.btn-wa:hover { transform: translate(-2px, -2px); background: rgba(247,228,146,.1); }
.btn-wa:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--bordo-ink); }
.btn-wa .ic { width: 24px; height: 24px; }

/* agregar / cantidades */
.add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: var(--crema); color: var(--bordo); border: 2.5px solid var(--bordo); border-radius: 99px; padding: 6px 16px 6px 8px; font-family: var(--display); font-weight: 700; font-size: 16px; box-shadow: 3px 3px 0 var(--bordo); transition: transform .14s var(--ease-out), box-shadow .14s; white-space: nowrap; transform-origin: 100% 50%; }
.add-btn .ic { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--bordo); color: var(--crema); stroke-width: 3; transition: rotate .35s var(--ease-spring); }
.add-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--bordo); }
.add-btn:hover .ic { rotate: 90deg; }
.add-btn:active { transform: translate(2px, 2px) scale(.97); box-shadow: 1px 1px 0 var(--bordo); }
.add-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; padding: 6px 16px; }
.add-btn.back { animation: grow .4s var(--ease-spring); }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--white); border: 2.5px solid var(--bordo); border-radius: 99px; padding: 2px; box-shadow: 3px 3px 0 var(--bordo); color: var(--bordo); transform-origin: 100% 50%; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; background: var(--crema); display: grid; place-items: center; transition: transform .12s, background-color .2s; }
.stepper button .ic { width: 18px; height: 18px; stroke-width: 3; }
.stepper button:active { transform: scale(.82); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { display: inline-grid; place-items: center; overflow: hidden; min-width: 30px; height: 30px; line-height: 30px; text-align: center; font-family: var(--display); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper.big button { width: 44px; height: 44px; }
.stepper.grow { animation: grow .5s var(--ease-spring); }
.stepper.grow output { animation: pop .5s .08s var(--ease-spring) backwards; }
@keyframes grow { 0% { transform: scale(.45, .8); opacity: 0; } 60% { opacity: 1; } }
.plus1 { position: fixed; z-index: 96; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1; color: var(--bordo); background: var(--crema); border: 2px solid var(--bordo); border-radius: 99px; padding: 4px 8px; pointer-events: none; box-shadow: 2px 2px 0 var(--bordo); }
.fly { position: fixed; left: 0; top: 0; z-index: 95; border-radius: 50%; object-fit: cover; border: 3px solid var(--bordo); pointer-events: none; box-shadow: 3px 4px 0 var(--bordo); will-change: transform; }

/* ---------- destacadas de hoy ---------- */
.reel { position: relative; z-index: 1; background: var(--reel-bg, var(--bordo)); transition: background-color .6s; color: var(--white); border-radius: 44px 44px 0 0; padding: 64px 16px 104px; overflow: hidden; }
.reel::before { content: ''; position: absolute; left: 50%; top: 48%; width: min(900px, 120vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,196,120,.26), rgba(255,170,90,.08) 55%, transparent); pointer-events: none; }
.reel-stage { position: relative; max-width: 1100px; margin: 0 auto; display: grid; justify-items: center; }
.reel-head { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 10px; }
.reel-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--crema); background: rgba(20,2,0,.22); border: 2px solid rgba(247,228,146,.3); border-radius: 99px; padding: 5px 14px 5px 11px; }
.reel-day { font-weight: 500; opacity: .75; }
.reel-day::before { content: '·'; margin-right: 8px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--crema); box-shadow: 0 0 0 0 rgba(247,228,146,.7); animation: live 1.8s ease-out infinite; }
@keyframes live { 70%, 100% { box-shadow: 0 0 0 9px rgba(247,228,146,0); } }
.reel-name { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.6vw, 96px); line-height: .92; letter-spacing: -.03em; color: var(--crema); text-shadow: 0 5px 0 var(--bordo-ink); text-wrap: balance; min-height: 1.84em; display: grid; align-items: center; }
.reel-show { --ck: min(32vh, 320px); position: relative; width: 100%; height: calc(var(--ck) * 1.42); touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.reel-show.dragging { cursor: grabbing; }
.reel-plate { position: absolute; left: 50%; top: 52%; width: calc(var(--ck) * 1.5); aspect-ratio: 1; margin: calc(var(--ck) * -.75) 0 0 calc(var(--ck) * -.75); scale: 1 .8; border-radius: 50%; background: radial-gradient(circle, #FFFDF6 0 52%, #F1E6CF 57%, #FFFBF1 63%, #F6EDDA 74%, #E9DABB 79%, #FFFDF6 82%, #F3E7CC 100%); box-shadow: 0 34px 50px -18px rgba(20,2,0,.7), 0 10px 18px -6px rgba(20,2,0,.4); pointer-events: none; }
.reel-steam { position: absolute; left: 50%; top: 4%; width: calc(var(--ck) * .42); translate: -50% 0; z-index: 11; fill: none; stroke: #FFFDF6; stroke-width: 3; stroke-linecap: round; opacity: .5; pointer-events: none; }
.reel-steam path { stroke-dasharray: 60 140; animation: steam 3.2s ease-in-out infinite; }
.reel-steam path:nth-child(2) { animation-delay: -1.1s; } .reel-steam path:nth-child(3) { animation-delay: -2.2s; }
@keyframes steam { 0% { stroke-dashoffset: 0; opacity: 0; } 30% { opacity: 1; } 100% { stroke-dashoffset: -200; opacity: 0; } }
.reel-steam.swap { animation: fade 1.2s ease-out; }
.crumb { position: absolute; left: 50%; top: 50%; border-radius: 40% 60% 50% 45%; pointer-events: none; z-index: 12; }
.reel-cookies { position: absolute; left: 50%; top: 50%; width: var(--ck); aspect-ratio: 1; margin: calc(var(--ck) * -.5) 0 0 calc(var(--ck) * -.5); perspective: 900px; }
.rc { position: absolute; inset: 0; will-change: transform, opacity; cursor: pointer; }
.rc img { width: 100%; height: 100%; filter: drop-shadow(0 14px 10px rgba(60,20,0,.45)) saturate(1.12) brightness(1.04); -webkit-user-drag: none; user-select: none; pointer-events: none; }
.reel-arrow { position: absolute; z-index: 14; top: 50%; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; display: grid; place-items: center; background: var(--crema); color: var(--bordo); border: 2.5px solid var(--bordo-ink); box-shadow: 3px 4px 0 var(--bordo-ink); transition: transform .2s var(--ease-spring); }
.reel-arrow .ic { width: 24px; height: 24px; stroke-width: 3; }
.reel-arrow.prev { left: calc(50% - var(--ck) - 30px); }
.reel-arrow.next { right: calc(50% - var(--ck) - 30px); }
.reel-arrow.next .ic { rotate: 180deg; }
.reel-arrow:hover { transform: scale(1.08) rotate(-4deg); }
.reel-arrow:active { transform: scale(.9); }
.reel-dots { position: relative; z-index: 2; display: flex; gap: 12px; margin-top: 4px; }
.reel-dots button { position: relative; width: 50px; height: 50px; border-radius: 50%; padding: 4px; background: rgba(20,2,0,.18); border: 2px solid rgba(247,228,146,.25); transition: transform .35s var(--ease-spring), border-color .3s, background-color .3s; }
.reel-dots button img { width: 100%; height: 100%; pointer-events: none; }
.reel-dots button[aria-current="true"] { transform: scale(1.14); border-color: transparent; background: rgba(247,228,146,.16); }
/* el anillo se llena mientras espera para pasar a la siguiente */
.reel-dots button[aria-current="true"]::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--crema) calc(var(--auto, 0) * 360deg), rgba(247,228,146,.28) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.reel-card { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; text-align: center; width: min(520px, 100%); margin-top: 18px; }
.reel-desc { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.45; color: rgba(255,253,246,.9); min-height: 2.9em; text-wrap: balance; }
.reel-buy { display: flex; align-items: center; gap: 16px; }
.reel-price { font-family: var(--display); font-size: 30px; color: var(--crema); font-variant-numeric: tabular-nums; }
.reel .add-btn { font-size: 18px; min-height: 50px; padding: 6px 20px 6px 8px; box-shadow: 3px 3px 0 var(--bordo-ink); border-color: var(--bordo-ink); }
.reel .stepper { border-color: var(--bordo-ink); box-shadow: 3px 3px 0 var(--bordo-ink); }
.reel-char { position: absolute; left: calc(100% + 34px); bottom: -8px; width: 150px; }
.reel-char .bubble { right: 58%; bottom: 100%; font-size: 15px; }

/* ---------- tienda ---------- */
.shop { position: relative; z-index: 2; background: var(--paper); padding: 60px 0 80px; border-radius: 44px 44px 0 0; margin-top: -44px; }
.shop-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.shop-head .title { outline: none; }
.shop-cast { position: relative; width: 132px; margin-right: 30px; margin-bottom: -6px; }
.tabs-bar { position: sticky; top: var(--nav-h); z-index: 20; background: var(--paper); margin-top: 18px; padding: 10px 0; transition: top .35s var(--ease-out); }
.tabs-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: linear-gradient(var(--paper), rgba(251,247,239,0)); pointer-events: none; }
body.nav-hidden .tabs-bar { top: 0; }
.tabs.wrap { position: relative; display: flex; gap: 2px; width: max-content; max-width: calc(100% - 32px); overflow-x: auto; padding: 5px; background: var(--white); border: 2.5px solid var(--bordo); border-radius: 99px; box-shadow: 3px 3px 0 var(--bordo); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; flex: none; min-height: 44px; padding: 0 20px; border-radius: 99px; font-family: var(--display); font-weight: 600; font-size: 16px; white-space: nowrap; transition: color .3s; }
.tabs button:not([aria-selected="true"]):hover { background: var(--crema-2); }
.tabs button[aria-selected="true"] { color: var(--crema); }
.tabs button:focus-visible { outline-offset: -3px; }
.tab-pill { position: absolute; z-index: 0; left: 0; top: 5px; bottom: 5px; width: 80px; border-radius: 99px; background: var(--bordo); box-shadow: inset 0 -3px 0 var(--bordo-ink); transition: transform .5s var(--ease-spring), width .45s var(--ease-spring); }
.shop-panel { padding-top: 22px; min-height: 300px; }
.cat-note { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px; text-align: center; }
.cat-note a { color: var(--bordo); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.pcard.in { animation: cardIn .55s var(--ease-soft) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cardIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 34px)) translateY(10px) scale(.96) rotate(calc(var(--dir, 1) * 1.5deg)); } }
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 2.5px solid var(--bordo); border-radius: 26px; overflow: hidden; box-shadow: 5px 6px 0 var(--bordo); transition: transform .3s var(--ease-out), box-shadow .3s; }
.pcard:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 7px 9px 0 var(--bordo); }
.pc-img { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-bottom: 2.5px solid var(--bordo); display: block; width: 100%; padding: 0; background: var(--paper-2); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pcard:hover .pc-img img { transform: scale(1.05); }
.pc-badge { position: absolute; left: 12px; top: 12px; background: var(--crema); border: 2px solid var(--bordo); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pc-badge.out { background: var(--bordo); color: var(--crema); }
.pc-qty { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; background: var(--bordo); color: var(--crema); border-radius: 99px; padding: 2px 10px; font-family: var(--display); font-weight: 700; font-size: 14px; border: 2px solid var(--crema); }
.pc-qty:not([hidden]) { animation: pop .45s var(--ease-spring); }
.pc-qty b { display: inline-grid; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.pc-body { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; padding: 14px 16px 16px; }
.pc-name { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.05; text-transform: uppercase; text-align: left; padding: 0; }
.pc-name:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.pc-body p { font-size: 14px; line-height: 1.45; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; min-height: 48px; }
.pc-price { font-family: var(--display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.pc-price small { display: block; font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.pcard.sold { opacity: .62; }
.pcard.sold .pc-img img { filter: grayscale(.6); }

/* ---------- cómo pedir + horno ---------- */
.checker { position: relative; background-color: var(--bordo); background-image: conic-gradient(var(--bordo-2) 25%, transparent 0 50%, var(--bordo-2) 0 75%, transparent 0); background-size: 72px 72px; color: var(--white); }
.como { padding: 64px 0 72px; z-index: 2; }
.como-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.como .title { font-size: clamp(36px, 4.2vw, 60px); }
.steps { list-style: none; display: grid; gap: 10px; margin: 24px 0 28px; }
.steps li { display: flex; gap: 14px; align-items: center; background: var(--bordo-ink); border: 2px solid rgba(247,228,146,.25); border-radius: 20px; padding: 12px 16px; }
.steps b { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--crema); color: var(--bordo); font-family: var(--display); font-size: 20px; display: grid; place-items: center; }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--crema); }
.oven-art { position: relative; width: min(100%, 470px); justify-self: center; }
#oven { width: 100%; height: auto; display: block; overflow: visible; }
.o-body { fill: var(--crema); stroke: var(--bordo-ink); stroke-width: 6; }
.o-panel { fill: var(--white); stroke: var(--bordo); stroke-width: 5; }
.o-knob { fill: var(--celeste); stroke: var(--bordo); stroke-width: 5; }
.o-line { stroke: var(--bordo); stroke-width: 6; stroke-linecap: round; }
.o-screen { fill: var(--bordo); }
.o-digits { font-family: var(--display); font-size: 26px; fill: var(--crema); font-weight: 600; font-variant-numeric: tabular-nums; }
.o-door { fill: var(--white); stroke: var(--bordo); stroke-width: 6; }
.o-win { fill: #2a0705; }
.o-frame { fill: none; stroke: var(--bordo); stroke-width: 7; }
.o-shine { stroke: #fff; stroke-width: 6; stroke-linecap: round; opacity: .55; }
.o-handle { fill: var(--bordo); }
.o-dark { fill: var(--bordo-ink); }
.o-tray { fill: #1a0403; stroke: #6b2a14; stroke-width: 2; }
.coil { fill: none; stroke: #6b1e0c; stroke-width: 6; stroke-linecap: round; }
.heat { fill: none; stroke: #ffd79a; stroke-width: 4; stroke-linecap: round; opacity: .7; animation: rise 1.6s ease-in-out infinite; }
.heat:nth-child(2) { animation-delay: -.5s; } .heat:nth-child(3) { animation-delay: -1s; }
@keyframes rise { 0% { transform: translateY(10px); opacity: 0; } 50% { opacity: .8; } 100% { transform: translateY(-30px); opacity: 0; } }
.ck-body { stroke: var(--bordo); stroke-width: 4; }
.ck-chip { fill: #2b0e07; }
.ck-crack { fill: none; stroke: #9a5a24; stroke-width: 3; stroke-linecap: round; }
.oven-chef { position: absolute; right: -4%; bottom: -8%; width: 26%; }
.oven-chef .bubble { right: 72%; bottom: 96%; font-size: 15px; }
.oven-state { margin-top: 14px; color: var(--crema); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; background: var(--bordo); color: var(--crema); padding: 72px max(16px, 4vw) calc(28px + var(--bar-h)); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 48px; align-items: center; max-width: 1200px; margin: 0 auto; }
.foot .title { font-size: clamp(36px, 4.4vw, 64px); }
.foot-ctas { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.loyal-card { position: relative; background: var(--bordo-ink); color: var(--white); border-radius: 22px; padding: 24px 24px 20px; text-align: center; border: 3px solid var(--crema); box-shadow: 9px 10px 0 var(--crema); transform: rotate(-2.5deg); cursor: pointer; transition: transform .4s var(--ease-out); user-select: none; }
.loyal-card:hover { transform: rotate(-1deg) scale(1.02); }
.lc-md { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--crema); letter-spacing: -.04em; }
.lc-t { font-size: 17px; margin: 4px auto 14px; max-width: 320px; line-height: 1.3; }
.lc-t b { color: var(--crema); font-family: var(--display); }
.stamps { display: grid; grid-template-columns: repeat(4, 50px); gap: 10px; justify-content: center; }
.stamps i { width: 50px; height: 50px; background: var(--celeste); clip-path: polygon(50% 0, 69% 4%, 85% 15%, 96% 31%, 100% 50%, 96% 69%, 85% 85%, 69% 96%, 50% 100%, 31% 96%, 15% 85%, 4% 69%, 0 50%, 4% 31%, 15% 15%, 31% 4%); display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 700; color: var(--bordo); font-size: 0; }
.stamps i.on { background: var(--crema); font-size: 16px; animation: stampIn .4s var(--ease-spring); }
.stamps i.last { background: var(--crema); font-size: 9px; }
@keyframes stampIn { 0% { transform: scale(1.7) rotate(-24deg); opacity: 0; } }
.lc-b { margin-top: 14px; font-size: 14px; color: rgba(255,253,246,.8); }
.lc-char { position: absolute; width: 104px; right: -48px; bottom: -34px; transform: rotate(6deg); }
.foot-logo { margin: 56px auto 0; color: var(--crema); width: min(560px, 100%); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 28px auto 0; max-width: 1200px; font-size: 13px; font-weight: 700; color: rgba(247,228,146,.8); }
.foot-row a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-row a:hover { text-decoration: underline; }

/* ---------- compañera ---------- */
.buddy { position: fixed; z-index: 45; left: 0; bottom: calc(10px + var(--bar-h) + env(safe-area-inset-bottom)); width: 100px; pointer-events: none; transform: translateX(var(--bx, -140px)); transition: bottom .4s var(--ease-spring); }
.buddy-body { transform: scaleX(var(--bdir, 1)); transition: transform .3s var(--ease-spring); }
.buddy .rig { pointer-events: auto; }
.buddy .bubble { left: 62%; bottom: calc(100% + 10px); font-size: 15px; opacity: 0; scale: .5; max-width: calc(100vw - 16px); transition: opacity .2s, scale .4s var(--ease-spring); }
.buddy.talk .bubble { opacity: 1; scale: 1; }
/* cuando recomienda algo, el globo se toca */
.buddy.tip .bubble { --bb: var(--white); pointer-events: auto; cursor: pointer; }
.buddy.tip .bubble:hover { --bb: var(--crema); }
body.modal-open .buddy { opacity: 0; }

/* ---------- barra del pedido ---------- */
.cartbar { position: fixed; z-index: 50; right: max(16px, 3vw); bottom: max(18px, env(safe-area-inset-bottom)); animation: barIn .5s var(--ease-spring); }
@keyframes barIn { from { transform: translateY(140%); } }
.cb-btn { display: flex; align-items: center; gap: 12px; min-height: 56px; background: var(--bordo); color: var(--crema); padding: 8px 22px 8px 8px; border-radius: 99px; border: 3px solid var(--crema); box-shadow: 0 10px 24px -10px rgba(61,10,8,.7), 3px 4px 0 var(--bordo-ink); font-family: var(--display); font-weight: 600; font-size: 18px; transition: background-color .3s, color .3s; }
.cb-count { background: var(--crema); color: var(--bordo); min-width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; font-weight: 700; padding: 0 8px; font-variant-numeric: tabular-nums; overflow: hidden; }
.cb-btn b { font-variant-numeric: tabular-nums; }

/* ---------- ventanas (ficha, box, pedido) ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(61,10,8,.5); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.sheet.closing .sheet-scrim { animation: fadeOut .28s forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.sheet-card { position: relative; width: min(520px, 100%); max-height: min(88vh, 860px); background: var(--paper); display: flex; flex-direction: column; border: 3px solid var(--bordo); border-radius: 30px; box-shadow: 10px 12px 0 var(--bordo), 0 30px 60px -20px rgba(20,2,0,.5); animation: popIn .5s var(--ease-spring); overflow: hidden; }
@keyframes popIn { from { opacity: 0; transform: translateY(26px) scale(.9) rotate(-1.5deg); } }
.sheet.closing .sheet-card { animation: popOut .26s ease-in forwards; }
@keyframes popOut { to { opacity: 0; transform: translateY(18px) scale(.94); } }
.stg { animation: stgIn .5s var(--ease-soft) backwards; animation-delay: calc(110ms + var(--i, 0) * 55ms); }
@keyframes stgIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.handle { display: none; }
.sh-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 14px 14px 6px; flex: none; }
.sh-head h2 { grid-column: 2; text-align: center; font-family: var(--display); font-weight: 700; font-size: 24px; outline: none; }
.x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s, transform .3s var(--ease-spring); }
.x:hover { background: var(--crema); transform: rotate(90deg); }
.sh-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 20px; -webkit-overflow-scrolling: touch; }
.sh-foot { flex: none; box-shadow: 0 -1px 0 var(--line); padding: 14px 20px max(16px, env(safe-area-inset-bottom)); display: grid; gap: 10px; background: var(--paper); }
.lbl { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.note { font-size: 12px; color: var(--ink-soft); }

/* ficha de producto */
.ps-x { position: absolute; z-index: 3; right: 12px; top: 12px; background: var(--white); border: 2px solid var(--line); }
.ps-body { padding: 22px 22px 18px; }
.ps-top { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; padding-right: 34px; }
.ps-ph { width: 132px; aspect-ratio: 1; border-radius: 30px; overflow: hidden; border: 3px solid var(--bordo); box-shadow: 4px 5px 0 var(--bordo); rotate: -4deg; background: var(--paper-2); }
.ps-ph img { width: 100%; height: 100%; object-fit: cover; }
.ps-cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.ps-meta h2 { font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1; text-transform: uppercase; margin: 6px 0 10px; outline: none; text-wrap: balance; }
.ps-price { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 19px; background: var(--crema); border: 2px solid var(--bordo); border-radius: 12px; padding: 2px 12px; rotate: -2deg; box-shadow: 2px 2px 0 var(--bordo); font-variant-numeric: tabular-nums; }
.ps-desc { margin-top: 18px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.ps-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ps-tags li { font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: var(--white); border: 2px dashed rgba(84,17,14,.32); }
.ps-note { margin-top: 12px; font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.ps-note .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--bordo); color: var(--crema); stroke-width: 3; }
.ps-rel { margin-top: 20px; padding-top: 16px; border-top: 2px dashed var(--line); }
.rel-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rel { display: grid; gap: 4px; justify-items: center; align-content: start; text-align: center; padding: 10px 6px 10px; border-radius: 20px; border: 2px solid var(--line); background: var(--white); transition: transform .25s var(--ease-spring), border-color .2s, box-shadow .2s; }
.rel:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--bordo); box-shadow: 3px 3px 0 var(--bordo); }
.rel:active { transform: scale(.95); }
.rel img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bordo); margin-bottom: 2px; }
.rel b { font-family: var(--display); font-weight: 600; font-size: 13.5px; line-height: 1.1; }
.rel small { font-size: 12px; color: var(--ink-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.ps-foot { grid-template-columns: auto 1fr; align-items: center; }
.ps-foot .btn-bordo { gap: 8px; }
.ps-sum::before { content: '·'; margin-right: 8px; opacity: .6; }

/* armado de box */
.pk-top { display: grid; justify-items: center; gap: 10px; padding: 2px 18px 14px; flex: none; box-shadow: 0 1px 0 var(--line); }
.pk-box { --cols: 3; --s: 46px; position: relative; display: grid; grid-template-columns: repeat(var(--cols), var(--s)); gap: 7px; padding: 12px; background: var(--crema-2); border: 2.5px solid var(--bordo); border-radius: 18px; box-shadow: 4px 4px 0 var(--bordo); }
.pk-box::before { content: 'MD'; position: absolute; left: 50%; top: -11px; translate: -50% 0; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .04em; background: var(--bordo); color: var(--crema); padding: 1px 8px; border-radius: 99px; }
.pk-box.nope { animation: nope .4s; }
@keyframes nope { 20%, 60% { transform: translateX(-6px) rotate(-1deg); } 40%, 80% { transform: translateX(6px) rotate(1deg); } }
.pk-box.done { animation: boxDone .7s var(--ease-spring); }
@keyframes boxDone { 30% { transform: scale(1.08) rotate(-3deg); } 60% { transform: scale(.97) rotate(1.5deg); } }
.slot { width: var(--s); height: var(--s); border-radius: 50%; border: 2px dashed rgba(84,17,14,.3); background: rgba(255,253,246,.7); overflow: hidden; display: block; transition: border-color .2s; }
.slot.on { border: 2px solid var(--bordo); cursor: pointer; }
.slot img { width: 100%; height: 100%; object-fit: cover; animation: slotIn .45s var(--ease-spring) backwards; }
@keyframes slotIn { from { transform: scale(.2) rotate(-90deg); opacity: 0; } }
.pk-meta { text-align: center; }
.pk-name { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.15; }
.pk-count { font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.pk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 6px; }
.pk-tile { position: relative; }
.pk-hit { width: 100%; height: 100%; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 14px 8px 12px; border-radius: 22px; background: var(--white); border: 2.5px solid var(--line); text-align: center; transition: border-color .2s, background-color .2s, box-shadow .2s, transform .15s var(--ease-out); }
.pk-hit:hover { border-color: var(--bordo); }
.pk-hit:active { transform: scale(.95); }
.pk-tile.has .pk-hit { border-color: var(--bordo); background: var(--crema-2); box-shadow: 3px 3px 0 var(--bordo); }
.pk-hit img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bordo); transition: transform .35s var(--ease-spring); }
.pk-hit:active img { transform: rotate(-12deg) scale(.94); }
.pk-hit b { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.1; }
.pk-hit small { font-size: 12px; color: var(--ink-soft); }
.pk-tile.off { opacity: .45; }
.pk-n { position: absolute; top: 8px; right: 8px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 99px; background: var(--bordo); color: var(--crema); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; pointer-events: none; animation: pop .4s var(--ease-spring); }
.pk-n b { display: inline-grid; overflow: hidden; height: 30px; line-height: 30px; }
.pk-minus { position: absolute; top: 6px; left: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--white); border: 2px solid var(--bordo); display: grid; place-items: center; animation: pop .4s var(--ease-spring); }
.pk-minus .ic { width: 16px; height: 16px; stroke-width: 3; }
.pk-foot { grid-template-columns: auto 1fr; align-items: center; }
.pk-auto { font-family: var(--display); font-weight: 700; font-size: 15px; min-height: 48px; padding: 0 16px; border-radius: 99px; border: 2.5px dashed var(--bordo); background: var(--white); transition: transform .2s var(--ease-spring), opacity .2s; }
.pk-auto:hover { transform: rotate(-2deg) scale(1.03); }
.pk-auto:disabled { opacity: .35; cursor: default; transform: none; }

/* pedido */
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.line img { width: 56px; height: 56px; border-radius: 18px; object-fit: cover; border: 2px solid var(--bordo); rotate: -3deg; }
.line h4 { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.15; }
.line p { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.3; }
.line .lp { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.line .stepper { box-shadow: none; border-width: 2px; }
.line .stepper button { width: 34px; height: 34px; }
.empty { text-align: center; padding: 24px 0 10px; display: grid; justify-items: center; gap: 12px; }
.empty .ec { width: 120px; }
.empty p { color: var(--ink-soft); }
.upsell { margin-top: 14px; background: var(--crema-2); border: 2px dashed var(--bordo); border-radius: 20px; padding: 10px 12px; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; animation: stgIn .45s var(--ease-soft); }
.upsell:empty { display: none; }
.upsell img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bordo); }
.upsell p { font-size: 14px; line-height: 1.3; }
.upsell b { font-family: var(--display); }
.upsell .nw { white-space: nowrap; }
.upsell .add-btn { min-height: 40px; font-size: 15px; }
.co-form { padding-bottom: 4px; }
.co-block { margin-top: 20px; }
.seg { --m: 0; position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 22px; background: var(--white); border: 2.5px solid var(--bordo); }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 17px; background: var(--crema); border: 2px solid var(--bordo); box-shadow: 2px 2px 0 var(--bordo); transform: translateX(calc(var(--m) * 100%)); transition: transform .5s var(--ease-spring); }
.seg button { position: relative; z-index: 1; display: grid; gap: 0; justify-items: center; min-height: 58px; padding: 8px 10px; border-radius: 17px; transition: opacity .2s; }
.seg button[aria-checked="false"] { opacity: .7; }
.seg button b { font-family: var(--display); font-size: 18px; line-height: 1.2; }
.seg button small { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out), opacity .3s; opacity: 0; }
.collapse.open { grid-template-rows: 1fr; opacity: 1; }
.cl-in { overflow: hidden; min-height: 0; }
.collapse .field { padding: 12px 2px 4px; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips button { min-height: 54px; padding: 6px 8px; border-radius: 16px; border: 2px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 16px; background: var(--white); line-height: 1.15; transition: border-color .2s, background-color .25s, color .25s, box-shadow .25s; }
.chips button small { display: block; font-family: var(--body); font-size: 12px; opacity: .7; font-weight: 700; }
.chips button[aria-checked="true"] { background: var(--bordo); color: var(--crema); border-color: var(--bordo); box-shadow: 2px 3px 0 var(--bordo-ink); }
.chips button.pick { animation: bump .45s var(--ease-spring); }
.field { display: grid; gap: 6px; }
.field.two { grid-template-columns: 1fr 1fr; gap: 12px; }
.field.two > div { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 50px; border: 2px solid var(--line); background: var(--white); border-radius: 16px; padding: 12px 14px; font-size: 16px; font-weight: 600; outline: none; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: rgba(84,17,14,.45); }
.field input:focus, .field textarea:focus { border-color: var(--bordo); box-shadow: 3px 3px 0 var(--bordo); }
.err { display: none; color: var(--error); font-size: 13px; font-weight: 700; margin-top: 2px; }
.invalid .err { display: block; }
.invalid input { border-color: var(--error); }
.shake { animation: nope .4s; }
.co-note-btn { margin-top: 16px; font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 4px; text-decoration: underline; text-decoration-style: wavy; text-decoration-color: rgba(84,17,14,.4); text-underline-offset: 5px; }
#note-wrap .field { padding-top: 14px; }
.co-hint { margin-top: 16px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; text-align: center; }
.sh-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sh-total span { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.sh-total b { font-family: var(--display); font-size: 28px; font-variant-numeric: tabular-nums; }
.co-done { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 24px 0 12px; }
.done-char { position: relative; width: 150px; }
.done-char .rig { z-index: 1; }
.confetti { position: absolute; left: 50%; top: 40%; border-radius: 2px; pointer-events: none; z-index: 2; }
.co-done h3 { font-family: var(--display); font-size: 34px; }
.done-code { background: var(--crema); border: 2px solid var(--bordo); padding: 4px 14px; border-radius: 99px; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-done p { max-width: 320px; line-height: 1.45; }

.toast { position: fixed; left: 50%; top: calc(var(--nav-h) + 10px); transform: translate(-50%, -30px); opacity: 0; z-index: 90; background: var(--crema); color: var(--bordo); border: 2.5px solid var(--bordo); box-shadow: 3px 4px 0 var(--bordo); padding: 10px 18px; border-radius: 16px; font-family: var(--display); font-weight: 600; transition: transform .45s var(--ease-spring), opacity .25s; max-width: calc(100vw - 32px); text-align: center; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
body.modal-open .toast { top: 16px; }

/* ---------- celular: pensado para el pulgar ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; }
  .nav-logo { width: 82px; }
  .nc-label { display: none; }
  .nav-cart { padding: 6px 7px 6px 12px; }
  .nw-label { display: none; }
  .nav-wa { width: 44px; padding: 0; }
  .nav-right { gap: 12px; }

  .hero { padding: calc(var(--nav-h) + 12px) 20px 120px; align-content: center; }
  .hero-stage { width: 100%; margin-top: 92px; }
  .peek { width: 29%; right: 3%; }
  .b-hero { font-size: 14px; right: 34%; bottom: calc(100% + 17%); padding: 6px 11px; }
  .hero-sub { font-size: 17px; margin-top: 26px; }
  .hero-cta.btn-bordo.big { width: 100%; max-width: 380px; }
  .hero-swirl { width: 54px; top: 13%; left: 5%; }
  .hero-star.s3 { width: 26px; height: 26px; stroke-width: 5; bottom: 11%; left: auto; right: 12%; }

  /* destacadas: nombre arriba, galleta en su plato, tarjeta de compra abajo */
  .reel { border-radius: 28px 28px 0 0; padding: 40px 14px 70px; }
  .reel-stage { justify-items: stretch; }
  .reel-kicker { font-size: 14px; }
  .reel-name { font-size: clamp(34px, 10.5vw, 52px); }
  .reel-show { --ck: min(50vw, 214px); height: calc(var(--ck) * 1.42); }
  .reel-arrow { width: 44px; height: 44px; margin-top: -22px; }
  .reel-arrow .ic { width: 20px; height: 20px; }
  .reel-arrow.prev { left: -4px; } .reel-arrow.next { right: -4px; }
  .reel-card { order: 3; justify-items: stretch; text-align: left; gap: 10px; width: 100%; margin-top: 30px; background: var(--crema); color: var(--bordo); border-radius: 24px; padding: 16px; border: 2.5px solid var(--bordo-ink); box-shadow: 0 -10px 30px -16px rgba(0,0,0,.5); }
  .reel-desc { color: var(--ink-soft); font-size: 14.5px; min-height: 4.35em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-right: 64px; text-wrap: pretty; }
  .reel-buy { justify-content: space-between; }
  .reel-price { color: var(--bordo); font-size: 28px; }
  .reel .add-btn { background: var(--bordo); color: var(--crema); box-shadow: none; }
  .reel .add-btn .ic { background: var(--crema); color: var(--bordo); }
  .reel .stepper { box-shadow: none; }
  .reel-char { left: auto; right: 6px; bottom: calc(100% - 40px); width: 76px; }
  .reel-char .bubble { right: 92%; bottom: 58%; font-size: 13px; padding: 5px 10px; }
  /* en el celu los puntitos van abajo, chiquitos */
  .reel-dots { order: 4; justify-content: center; gap: 4px; margin-top: 14px; }
  .reel-dots button { width: 22px; height: 30px; padding: 0; border: 0; background: none; border-radius: 0; display: grid; align-items: center; }
  .reel-dots button img { display: none; }
  .reel-dots button::after { content: ''; height: 6px; border-radius: 6px; background: rgba(247,228,146,.3); transition: background-color .3s; }
  .reel-dots button[aria-current="true"] { width: 40px; transform: none; background: none; }
  .reel-dots button[aria-current="true"]::before { inset: 12px 0; border-radius: 6px; background: linear-gradient(90deg, var(--crema) calc(var(--auto, 0) * 100%), rgba(247,228,146,.45) 0); -webkit-mask: none; mask: none; }
  .reel-dots button[aria-current="true"]::after { opacity: 0; }

  .shop { padding: 40px 0 64px; border-radius: 28px 28px 0 0; margin-top: -28px; }
  .shop-head { grid-template-columns: 1fr 84px; align-items: center; }
  .shop-head .title { font-size: 40px; }
  .shop-cast { width: 84px; margin: 0; }
  .tabs-bar { margin-top: 10px; padding: 8px 0; }
  .tabs.wrap { max-width: calc(100% - 24px); padding: 4px; }
  .tabs button { flex: 1 0 auto; padding: 0 11px; font-size: 14.5px; min-height: 42px; }
  .tab-pill { top: 4px; bottom: 4px; }
  .shop-panel { padding-top: 10px; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .pcard { grid-template-rows: none; grid-template-columns: 104px minmax(0, 1fr); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; padding: 14px 0; gap: 14px; overflow: visible; }
  .pcard:hover { transform: none; box-shadow: none; }
  .pc-img { border: 2px solid var(--bordo); border-radius: 22px; width: 104px; height: 104px; aspect-ratio: 1; align-self: start; box-shadow: 3px 3px 0 var(--bordo); }
  .pc-badge { left: 6px; top: 6px; font-size: 11px; padding: 2px 7px; }
  .pc-qty { right: auto; left: 6px; top: auto; bottom: 6px; font-size: 13px; padding: 1px 8px; }
  .pc-body { padding: 2px 0 0; gap: 4px; grid-template-rows: auto auto 1fr; }
  .pc-name { font-size: 17px; }
  .pc-body p { font-size: 13.5px; -webkit-line-clamp: 2; }
  .pc-foot { padding-top: 6px; }
  .pc-price { font-size: 19px; }
  .pcard .add-btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; box-shadow: 2px 2px 0 var(--bordo); transform-origin: 50% 50%; }
  .pcard .add-btn .ic { width: 100%; height: 100%; background: none; color: var(--bordo); padding: 9px; }
  .pcard .add-btn .t { display: none; }
  .pcard .add-btn.wide { width: auto; padding: 0 14px 0 6px; border-radius: 99px; }
  .pcard .add-btn.wide .ic { width: 30px; height: 30px; padding: 5px; background: var(--bordo); color: var(--crema); border-radius: 50%; }
  .pcard .add-btn.wide .t { display: inline; }
  .pcard .stepper { box-shadow: 2px 2px 0 var(--bordo); }

  .como { padding: 52px 0 60px; }
  .como-grid { grid-template-columns: 1fr; gap: 22px; }
  .como .title { font-size: 36px; }
  .steps { margin: 18px 0 22px; gap: 8px; }
  .steps li { padding: 10px 14px; border-radius: 18px; }
  .steps b { width: 34px; height: 34px; font-size: 18px; }
  .steps h3 { font-size: 18px; }
  .oven-art { width: 74%; justify-self: start; margin-left: 4%; }
  .oven-chef { width: 34%; right: -30%; bottom: -4%; }
  .oven-chef .bubble { font-size: 12px; padding: 5px 10px; right: 60%; }
  .oven-state { font-size: 13px; }

  .foot { padding-top: 56px; }
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
  .foot .title { font-size: 38px; }
  .loyal-card { margin: 0 10px 22px; padding: 20px 18px 18px; }
  .stamps { grid-template-columns: repeat(4, 46px); gap: 9px; }
  .stamps i { width: 46px; height: 46px; }
  .lc-char { width: 78px; right: -14px; bottom: -30px; }
  .foot-logo { margin-top: 40px; width: 78%; }

  /* en el celu la compañera viaja sentada en la barra del pedido */
  .buddy { width: 60px; z-index: 55; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .buddy .bubble { font-size: 13px; padding: 5px 10px; left: 70%; }
  .buddy.out { bottom: calc(var(--bar-h) + 8px + env(safe-area-inset-bottom)); }
  .buddy.tip .bubble { font-size: 14px; padding: 7px 12px; }
  .cartbar { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .cb-btn { width: 100%; font-size: 17px; padding-left: 76px; }
  .cb-btn b { margin-left: auto; }
  .cartbar.empty .cb-btn { background: var(--white); color: var(--bordo); border-color: var(--bordo); box-shadow: 0 10px 24px -12px rgba(61,10,8,.5); }
  .cartbar.empty .cb-count { background: var(--paper-2); }
  .cartbar.empty b { display: none; }

  /* ventanas: hojas que suben desde abajo y se cierran arrastrando */
  .sheet { align-items: flex-end; padding: 0; }
  .sheet-card { width: 100%; max-height: 92dvh; border: 0; border-top: 3px solid var(--bordo); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 40px -20px rgba(61,10,8,.5); overflow: visible; animation: sheetUp .55s cubic-bezier(.2,1.15,.35,1); }
  /* papel extra debajo para que el rebote no deje ver la página */
  .sheet-card::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 60px; background: var(--paper); }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .sheet.closing .sheet-card { animation: sheetDown .28s cubic-bezier(.5,0,.75,0) forwards; }
  @keyframes sheetDown { from { transform: translateY(var(--from, 0px)); } to { transform: translateY(105%); } }
  .sheet-card > .sh-body, .sheet-card > .sh-foot { border-radius: 0; }
  .handle { display: block; flex: none; height: 22px; margin-bottom: -8px; touch-action: none; position: relative; cursor: grab; }
  .handle::before { content: ''; position: absolute; left: 50%; top: 9px; width: 44px; height: 5px; margin-left: -22px; border-radius: 9px; background: rgba(84,17,14,.25); }
  .sh-head, .ps-top, .pk-top { touch-action: none; }
  .sh-head { padding-top: 4px; }
  .ps-body { padding: 14px 18px 16px; }
  .ps-top { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding-right: 30px; }
  .ps-ph { width: 112px; border-radius: 26px; }
  .ps-meta h2 { font-size: 23px; }
  .ps-x { top: 18px; right: 12px; }
  .ps-desc { font-size: 15px; margin-top: 16px; }
  .rel img { width: 54px; height: 54px; }
  .field.two { grid-template-columns: 1fr; }
  .sh-body { padding: 8px 16px 18px; }
  .sh-foot { padding: 12px 16px max(14px, env(safe-area-inset-bottom)); }
}
@media (max-width: 370px) {
  .tabs button { padding: 0 8px; font-size: 13.5px; }
  .ps-top { grid-template-columns: 96px minmax(0, 1fr); }
  .ps-ph { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- ubicación en el mapa (pedido) ---------- */
.map-btn { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 9px 12px 9px 9px; text-align: left; background: var(--crema); color: var(--bordo); border: 2.5px solid var(--bordo); border-radius: 20px; box-shadow: 3px 3px 0 var(--bordo); transition: transform .2s var(--ease-out), box-shadow .2s; }
.map-btn:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--bordo); }
.map-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--bordo); }
.mb-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--bordo); color: var(--crema); }
.mb-ic .ic { width: 24px; height: 24px; }
.map-btn:hover .mb-ic .ic { animation: pinHop .5s var(--ease-spring); }
@keyframes pinHop { 40% { transform: translateY(-5px) scale(1.05, .95); } 70% { transform: translateY(1px) scale(.95, 1.06); } }
.mb-t { display: grid; gap: 1px; min-width: 0; }
.mb-t b { font-family: var(--display); font-size: 17px; line-height: 1.2; }
.mb-t small { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mb-go { display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.mb-go .ic { width: 20px; height: 20px; stroke-width: 3; }
.map-btn.set { background: var(--white); }
.map-btn.set .mb-ic .ic { stroke-width: 3.2; }
.wa-again { text-decoration: none; }
.map-btn.set .mb-go { text-decoration: underline; text-underline-offset: 3px; }
.map-btn.pop { animation: mbPop .55s var(--ease-spring); }
@keyframes mbPop { 0% { transform: scale(.9, 1.08); } 45% { transform: scale(1.04, .96); } }
.collapse .field .map-btn { margin-bottom: 4px; }

.co-card.map-on { min-height: min(88vh, 800px); }
.mp { position: absolute; inset: 0; z-index: 30; border-radius: inherit; overflow: hidden; }
.mp-morph { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--paper); border-radius: inherit; }
.mp-ui { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transition: opacity .2s; }
.mp.shown .mp-ui { opacity: 1; }
.mp.leaving .mp-ui { opacity: 0; transition-duration: .14s; }
.mp.shown .mp-in { animation: stgIn .5s var(--ease-soft) backwards; }
.mp.shown .mp-in:nth-child(2) { animation-delay: 50ms; }
.mp.shown .mp-in:nth-child(3) { animation-delay: 100ms; }
.mp.shown .mp-in:nth-child(4) { animation-delay: 150ms; }
.mp-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 12px 14px 4px; flex: none; }
.mp-head h3 { text-align: center; font-family: var(--display); font-weight: 700; font-size: 22px; outline: none; }
.mp-search { flex: none; display: flex; gap: 8px; margin: 6px 16px 10px; }
.mp-search input { flex: 1; min-width: 0; min-height: 48px; border: 2px solid var(--line); background: var(--white); border-radius: 16px; padding: 10px 14px; font: inherit; font-size: 16px; font-weight: 600; color: var(--bordo); outline: none; transition: border-color .2s, box-shadow .2s; }
.mp-search input:focus { border-color: var(--bordo); box-shadow: 3px 3px 0 var(--bordo); }
.mp-search input::placeholder { color: rgba(84,17,14,.45); }
.mp-search input::-webkit-search-cancel-button { display: none; }
.mp-search button { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--bordo); color: var(--crema); }
.mp-map { position: relative; flex: 1 1 auto; min-height: 220px; margin: 0 16px; border: 2.5px solid var(--bordo); border-radius: 22px; overflow: hidden; background: #efe6d6; box-shadow: 4px 4px 0 var(--bordo); isolation: isolate; }
.mp-canvas { position: absolute; inset: 0; z-index: 0; background: #efe6d6; }
.mp-canvas .leaflet-tile-pane { filter: sepia(.28) saturate(.8) brightness(1.03); }
.mp-canvas .leaflet-container, .mp-canvas.leaflet-container { background: #efe6d6; font-family: var(--body); }
.mp-canvas .leaflet-control-attribution { font-size: 10px; background: rgba(251,247,239,.85); border-radius: 8px 0 0 0; color: var(--ink-soft); }
.mp-canvas .leaflet-control-attribution a { color: inherit; }
.mp-load { position: absolute; inset: 0; z-index: 1; display: flex; gap: 8px; align-items: center; justify-content: center; pointer-events: none; transition: opacity .3s; }
.mp-load i { width: 12px; height: 12px; border-radius: 50%; background: var(--bordo); opacity: .35; animation: mpDot 1s ease-in-out infinite; }
.mp-load i:nth-child(2) { animation-delay: .15s; } .mp-load i:nth-child(3) { animation-delay: .3s; }
@keyframes mpDot { 40% { transform: translateY(-8px); opacity: .9; } }
.mp.ready .mp-load { opacity: 0; }
.mp-load.err i { animation: none; background: var(--error); }
/* pin fijo en el centro: el mapa se mueve debajo */
.mp-pin { position: absolute; left: 50%; top: 50%; z-index: 3; width: 46px; height: 60px; margin: -60px 0 0 -23px; pointer-events: none; }
.mp-body { position: absolute; inset: 0; transform-origin: 50% 100%; transition: transform .25s var(--ease-out); filter: drop-shadow(2px 3px 0 rgba(61,10,8,.35)); }
.mp-body svg { width: 100%; height: 100%; display: block; }
.mp-shadow { position: absolute; left: 50%; bottom: -5px; width: 22px; height: 8px; margin-left: -11px; border-radius: 50%; background: rgba(61,10,8,.35); transition: transform .25s var(--ease-out), opacity .25s; }
.mp-pin.up .mp-body { transform: translateY(-16px) scale(1.04); }
.mp-pin.up .mp-shadow { transform: scale(.6); opacity: .5; }
.mp-pin.drop .mp-body { animation: pinDrop .5s var(--ease-spring); }
.mp-pin.land .mp-body { animation: pinLand .75s cubic-bezier(.3,1.3,.5,1) .25s backwards; }
.mp-pin.land .mp-shadow { animation: fade .5s .35s backwards; }
.mp-pin.nudge .mp-body { animation: pinNudge .5s; }
@keyframes pinDrop { 0% { transform: translateY(-16px); } 45% { transform: translateY(0) scale(1.18, .8); } 70% { transform: scale(.94, 1.08); } }
@keyframes pinLand { 0% { transform: translateY(-120px); opacity: 0; } 50% { transform: translateY(0) scale(1.2, .78); opacity: 1; } 72% { transform: translateY(-6px) scale(.94, 1.06); } }
@keyframes pinNudge { 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }
.mp-tip { position: absolute; left: 50%; top: max(10px, calc(50% - 116px)); white-space: nowrap; z-index: 4; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; background: var(--crema); color: var(--bordo); border: 2.5px solid var(--bordo); border-radius: 16px; box-shadow: 3px 3px 0 var(--bordo); padding: 8px 14px; font-family: var(--display); font-weight: 600; font-size: 15px; text-align: center; pointer-events: none; animation: tipIn .5s var(--ease-spring) .5s backwards; transition: opacity .3s, transform .3s; }
.mp-tip.warn { background: var(--white); border-color: var(--error); color: var(--error); box-shadow: 3px 3px 0 var(--error); }
.mp-tip.gone { opacity: 0; transform: translateX(-50%) translateY(-8px); }
@keyframes tipIn { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.85); } }
.mp-me { position: absolute; right: 12px; bottom: 26px; z-index: 4; height: 48px; min-width: 48px; padding: 0 16px 0 12px; border-radius: 99px; display: flex; align-items: center; gap: 8px; background: var(--crema); color: var(--bordo); border: 2.5px solid var(--bordo); box-shadow: 2px 3px 0 var(--bordo); font-family: var(--display); font-weight: 700; font-size: 16px; transition: padding .35s var(--ease-spring), background-color .25s, gap .35s; }
.mp-me .ic { width: 22px; height: 22px; flex: none; }
.mp-me-t { max-width: 120px; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease-out), opacity .25s; }
.mp-me.mini { padding: 0 11px; gap: 0; background: var(--white); }
.mp-me.mini .mp-me-t { max-width: 0; opacity: 0; }
.mp-me:active { transform: translate(2px, 2px); box-shadow: none; }
.mp-me.busy .ic { animation: spin 1s linear infinite; }
.mp.shown .mp-me.call { animation: meHop 3.6s var(--ease-spring) 1.2s infinite; }
.mp-me.nope { animation: nope .45s !important; }
@keyframes meHop { 0%, 22%, 100% { transform: none; } 6% { transform: translateY(-7px); } 12% { transform: translateY(0) scale(1.04, .94); } 17% { transform: translateY(-2px); } }
.mp-foot { flex: none; display: grid; gap: 10px; padding: 12px 16px max(14px, env(safe-area-inset-bottom)); }
.mp-where { display: grid; gap: 1px; }
.mp-where small { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.mp-where b { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.25; }
.mp-foot .field textarea { min-height: 48px; resize: none; }
.mp-foot .btn-bordo { width: 100%; }
@media (max-width: 900px) {
  .co-card.map-on { min-height: 92dvh; }
  .mp-head { padding-top: 14px; }
  .mp-head h3 { font-size: 20px; }
  .mp-foot .field label { font-size: 13.5px; }
}

/* pedido conectado al sistema */
.seg.seg3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg.seg3 .seg-pill { width: calc((100% - 8px) / 3); }
.seg.seg3 button { min-height: 50px; align-content: center; }
.seg.seg3 button b { font-size: 15.5px; }
.pay-det { display: grid; gap: 8px; }
.pay-det:not(:empty) { margin-top: 12px; }
.pay-det .field { gap: 4px; }
.pay-txt { font-size: 14px; font-weight: 700; color: var(--ink-soft); line-height: 1.4; }
.alias { display: flex; align-items: center; gap: 10px; background: var(--crema); border: 2px solid var(--bordo); border-radius: 16px; padding: 10px 12px; }
.alias span { flex: 1; min-width: 0; line-height: 1.3; font-size: 14px; }
.alias b { font-family: var(--display); font-size: 18px; word-break: break-all; }
.alias button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 99px; background: var(--bordo); color: var(--crema); font-weight: 700; font-size: 14px; }
.cup-row { display: flex; gap: 8px; }
.cup-row input { text-transform: uppercase; letter-spacing: .5px; }
.cup-ok { flex: none; min-height: 50px; padding: 0 18px; border-radius: 16px; background: var(--bordo); color: var(--crema); font-family: var(--display); font-weight: 600; font-size: 16px; }
.cup-msg { font-size: 13px; font-weight: 700; min-height: 1em; }
.cup-msg.ok { color: #2F6B3A; } .cup-msg.mal { color: var(--error); }
.co-err { color: var(--error); font-weight: 700; font-size: 14px; text-align: center; margin-bottom: 8px; line-height: 1.35; }
.co-closed { background: var(--crema); border: 2px solid var(--bordo); border-radius: 18px; padding: 12px 14px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.map-btn.invalid { border-color: var(--error); box-shadow: 3px 3px 0 var(--error); }
.done-pay { width: 100%; max-width: 340px; display: grid; gap: 8px; text-align: left; }
.done-pay .add-btn { justify-self: center; text-decoration: none; }
#done-seg { text-decoration: none; display: inline-grid; place-items: center; }
.again { display: grid; gap: 8px; justify-items: center; margin-top: 14px; }
.again small { color: var(--ink-soft); font-weight: 700; }
.pc-foot .consult { text-decoration: none; }
