/* Surtido — estilos de la plantilla del almacén: bodegón de barrio con mostaza, verde almacén, tomate y crema.
   Titulares en una condensada gruesa (Sofia Sans Extra Condensed), notas de libreta a mano (Kalam), texto en Sofia Sans
   y los datos en una mono (Azeret Mono). Las secciones van en orden: portada, cintas, diccionario, la tabla de picada,
   el volante, la góndola, la caja, la persiana y el pie; después el pedido, anotado en la libreta del almacenero. */

:root {
  --verde: #1d4a34;
  --verde-2: #153827;
  --verde-3: #2c6a4b;
  --mostaza: #e9b130;
  --mostaza-2: #f4cd63;
  --tomate: #d6452a;
  --tomate-2: #b8361e;
  --crema: #f6ecd6;
  --papel: #fff8ea;
  --kraft: #ecdcbb;
  --tinta: #1c1a16;
  --tinta-2: #4a443a;
  --birome: #2a4d8f;
  --madera: #8a5a33;
  --termico: #fbfbf6;
  --focus: var(--tomate);
  --hdr: 64px;
  --pad: clamp(18px, 4vw, 56px);
  --disp: 'Sofia Sans Extra Condensed', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mano: 'Kalam', 'Comic Sans MS', cursive;
  --mono: 'Azeret Mono', ui-monospace, 'Cascadia Mono', monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); }
body { margin: 0; background: var(--crema); color: var(--tinta); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: normal; }
[hidden] { display: none !important; }
main > section, .pie { overflow-x: clip; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Foco visible en todo lo que se toca con el teclado */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.portada, .pagos, .persiana, .pie, .t-lista, .carrito .cr-head, .cr-foot { --focus: var(--mostaza); }
.volante { --focus: var(--verde); }

.skip { position: fixed; left: 12px; top: 12px; transform: translateY(-200%); z-index: 20000; padding: 10px 16px; border-radius: 999px; background: var(--mostaza); color: var(--tinta); font-weight: 800; text-decoration: none; }
.skip:focus { transform: none; }

/* Links externos: flechita que abre afuera, con texto para lectores de pantalla */
main a[target="_blank"]::after, .pie a[target="_blank"]::after, .carrito a[target="_blank"]::after {
  content: "" / " (abre en una pestaña nueva)";
  display: inline-block; inline-size: .7em; block-size: .7em; margin-inline-start: .3em; vertical-align: .05em; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2h6v6M10 2 3 9' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ccf6b; box-shadow: 0 0 0 3px rgba(60, 207, 107, .25); flex: none; }
.is-closed .dot { background: var(--tomate); box-shadow: 0 0 0 3px rgba(214, 69, 42, .25); }

/* ---------- Botones pill (el lado del texto lleva el retroceso de la curva) ---------- */
.btn {
  --h: 52px; --r: calc(var(--h) / 2); --p: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; block-size: var(--h);
  padding-inline: calc(var(--p) + var(--r) * (1 - pi / 4));
  border-radius: var(--r); border: 2px solid transparent; text-decoration: none; white-space: nowrap;
  font: 800 21px/1 var(--disp); letter-spacing: .02em; text-transform: uppercase;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-mostaza { background: var(--mostaza); color: var(--tinta); }
.btn-mostaza:hover { background: var(--mostaza-2); }
.btn-tomate { background: var(--tomate); color: var(--papel); }
.btn-tomate:hover { background: var(--tomate-2); }
.btn-verde { background: var(--verde); color: var(--papel); }
.btn-verde:hover { background: var(--verde-3); }
.btn-crema { background: var(--papel); color: var(--tinta); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255, 255, 255, .1); }
.btn-line-d { border-color: var(--tinta); color: var(--tinta); background: transparent; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--pad); background: var(--verde); color: var(--crema); border-bottom: 1px solid rgba(246, 236, 214, .12); --focus: var(--mostaza); }
.hdr.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.logo { display: grid; text-decoration: none; line-height: .9; }
.logo-w { font: 900 34px/.85 var(--disp); color: var(--mostaza); text-transform: uppercase; letter-spacing: .01em; }
.logo-s { font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font: 800 19px/1 var(--disp); letter-spacing: .03em; text-transform: uppercase; transition: background-color .2s; }
.nav a:hover { background: rgba(246, 236, 214, .12); }
.hdr-r { display: flex; align-items: center; gap: 12px; }
.hdr-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; opacity: .9; white-space: nowrap; }
.hdr-cart { --h: 42px; display: inline-flex; align-items: center; gap: 8px; block-size: var(--h); border-radius: 999px; border: 0; background: var(--mostaza); color: var(--tinta);
  padding-inline: calc((var(--h) - 20px) / 2) calc(14px + var(--h) / 2 * (1 - pi / 4)); font: 800 18px/1 var(--disp); text-transform: uppercase; }
.hdr-cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.hc-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tinta); color: var(--mostaza); font: 700 12px/22px var(--mono); text-align: center; }
.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.3); } }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(246, 236, 214, .35); background: transparent; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: var(--hdr) 0 0; z-index: 990; background: var(--verde); color: var(--crema); padding: 30px var(--pad); display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); --focus: var(--mostaza); }
.menu-open .menu { opacity: 1; transform: none; pointer-events: auto; }
.menu-nav { display: grid; }
.menu-nav a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(246, 236, 214, .15); text-decoration: none; font: 900 48px/1 var(--disp); text-transform: uppercase; }
.menu-nav span { font: 500 13px var(--mono); color: var(--mostaza); }
.menu-foot { font-size: 14px; opacity: .85; }

/* ---------- PORTADA ---------- */
.portada { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: calc(var(--hdr) + 22px) var(--pad) 30px;
  background: radial-gradient(120% 80% at 50% 45%, #245a40 0%, var(--verde) 55%, var(--verde-2) 100%); color: var(--crema); overflow: clip; }
.portada::before { content: ""; position: absolute; inset: auto 0 0; height: 10px; background: repeating-linear-gradient(90deg, var(--mostaza) 0 28px, var(--tomate) 28px 56px); }
.p-eyebrow { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 700 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.p-st { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .04em; text-transform: none; font-size: 14px; }
.p-stage { position: relative; align-self: center; justify-self: center; width: 100%; max-width: 1500px; padding: 3% 0; }
.p-word { display: flex; justify-content: center; font: 900 min(29vw, 54svh)/.8 var(--disp); text-transform: uppercase; letter-spacing: -.005em; color: var(--crema); white-space: nowrap;
  text-shadow: 0 .03em 0 rgba(0, 0, 0, .18); }
.pw-row { display: flex; }
.pw-m { display: inline-block; overflow: hidden; padding: .07em .005em 0; margin-top: -.07em; }
.pw-l { display: inline-block; }
.p-flotan { position: absolute; inset: 0; pointer-events: none; }
.flo { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); translate: -50% -50%; rotate: var(--r); }
.flo-in { display: block; }
.flo img { width: 100%; height: auto; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .38)); }
.p-nota { position: absolute; left: 10%; top: -13%; display: flex; align-items: flex-start; gap: 4px; rotate: -7deg; font: 700 clamp(18px, 1.9vw, 28px)/1 var(--mano); color: var(--mostaza); }
.p-nota svg { width: clamp(50px, 5vw, 80px); fill: none; stroke: var(--mostaza); stroke-width: 3; stroke-linecap: round; margin-top: .4em; }
.p-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; }
.p-lead { max-width: 44ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; }
.p-lead em { color: var(--mostaza); font-weight: 700; }
.p-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.intro .pw-l { transform: translateY(105%); }
.intro .flo-in, .intro .p-nota, .intro .p-foot > *, .intro .p-eyebrow { opacity: 0; }

/* ---------- CINTAS CRUZADAS ---------- */
.cintas { position: relative; height: clamp(190px, 24vw, 330px); background: var(--crema); overflow: clip; }
.cinta { position: absolute; left: -15%; width: 130%; top: 50%; padding: .2em 0; font: 900 clamp(30px, 4.6vw, 66px)/1 var(--disp); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.cinta-a { background: var(--mostaza); color: var(--verde); transform: translateY(-50%) rotate(-5deg); z-index: 2; box-shadow: 0 16px 24px -14px rgba(0, 0, 0, .45); }
.cinta-b { background: var(--tomate); color: var(--papel); transform: translateY(-50%) rotate(4deg); }
.cinta-mov { width: max-content; }
.cinta-track { display: flex; width: max-content; animation: corre 38s linear infinite; }
.cinta-b .cinta-track { animation-direction: reverse; animation-duration: 44s; }
.cinta-set { display: flex; }
.cinta-set span { display: inline-flex; align-items: center; padding-right: .45em; }
.cinta-set i { font-style: normal; padding-left: .45em; color: var(--tomate); }
.cinta-b .cinta-set i { color: var(--mostaza); }
@keyframes corre { to { transform: translateX(-50%); } }

/* ---------- DICCIONARIO ---------- */
.dicc { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 760px) 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(70px, 9vw, 130px) var(--pad); background: var(--crema); }
.d-hoja { position: relative; padding: 46px clamp(22px, 4vw, 52px) 40px clamp(52px, 7vw, 92px); background-color: var(--papel);
  background-image: linear-gradient(90deg, transparent calc(clamp(52px, 7vw, 92px) - 18px), rgba(214, 69, 42, .55) calc(clamp(52px, 7vw, 92px) - 18px) calc(clamp(52px, 7vw, 92px) - 16px), transparent 0),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(42, 77, 143, .17) 31px 32px);
  background-position: 0 0, 0 14px; box-shadow: 0 30px 60px -36px rgba(60, 40, 10, .55), 0 2px 0 rgba(0, 0, 0, .05); rotate: -.6deg; }
.d-word { font: 900 clamp(70px, 11vw, 150px)/.85 var(--disp); color: var(--verde); letter-spacing: -.01em; }
.d-fon { margin: 10px 0 18px; font-size: 17px; color: var(--tinta-2); }
.d-fon span { font-weight: 700; color: var(--tomate); margin-right: 6px; }
.d-fon em { font-style: italic; }
.d-acep { counter-reset: a; display: grid; gap: 6px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; }
.d-acep li { counter-increment: a; position: relative; padding-left: 1.6em; }
.d-acep li::before { content: counter(a) "."; position: absolute; left: 0; font: 900 1.15em/1.4 var(--disp); color: var(--tomate); }
.d-acep abbr { text-decoration: none; font-style: italic; color: var(--tinta-2); }
.d-acep q, .d-sin q { font-style: italic; }
.d-sin { margin-top: 16px; font-size: 15.5px; color: var(--tinta-2); }
.d-sin b { color: var(--tinta); }
.d-mano { font: 700 clamp(17px, 1.5vw, 21px)/1.2 var(--mano); color: var(--birome); }
.d-mano-1 { position: absolute; right: 22px; top: 26px; width: 14em; max-width: 42%; rotate: 4deg; font-weight: 400; }
.d-mano-2 { margin-top: 20px; color: var(--tomate); font-size: clamp(22px, 2vw, 30px); rotate: -2deg; transform-origin: left; }
.d-mano-2 span { font-weight: 700; }
.d-subraya { width: 230px; margin: -4px 0 0 10px; fill: none; stroke: var(--tomate); stroke-width: 3; stroke-linecap: round; }
.d-datos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 2px dashed rgba(28, 26, 22, .25); }
.d-datos div { display: flex; flex-direction: column-reverse; }
.d-datos dd { font: 900 clamp(38px, 4vw, 56px)/.9 var(--disp); color: var(--verde); }
.d-datos dt { font-size: 13px; line-height: 1.3; color: var(--tinta-2); }
.d-foto { position: relative; justify-self: center; width: min(100%, 300px); padding: 10px 10px 0; background: #fff; box-shadow: 0 24px 40px -24px rgba(60, 40, 10, .6); }
.d-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.d-foto figcaption { padding: 8px 2px 12px; font: 400 19px/1.1 var(--mano); color: var(--birome); }
.d-foto::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; translate: -50% 0; rotate: -4deg; background: rgba(233, 177, 48, .7); }
.d-foto-a { rotate: -4deg; align-self: start; }
.d-foto-b { rotate: 5deg; align-self: end; }
.d-foto-b img { aspect-ratio: 3 / 4; }

/* ---------- LA TABLA (picada) ---------- */
.picada { position: relative; height: 100svh; min-height: 620px; padding-top: var(--hdr); overflow: clip;
  background-color: #f8f1e2;
  background-image: linear-gradient(90deg, rgba(214, 69, 42, .5) 50%, transparent 50%), linear-gradient(rgba(214, 69, 42, .5) 50%, transparent 50%);
  background-size: 64px 64px; }
.t-in { height: 100%; display: grid; grid-template-columns: minmax(330px, 430px) 1fr; gap: clamp(20px, 4vw, 70px); align-items: center; padding: 22px var(--pad); }
.t-lista { position: relative; z-index: 2; padding: 26px 26px 22px; border-radius: 10px; background: var(--verde); color: var(--crema); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7), inset 0 0 0 6px var(--verde-2), inset 0 0 0 8px rgba(233, 177, 48, .5); rotate: -1.2deg; }
.t-k { font: 400 19px/1 var(--mano); color: var(--mostaza); }
.t-title { margin: 6px 0 14px; font: 900 clamp(44px, 4.6vw, 66px)/.85 var(--disp); text-transform: uppercase; }
.t-title span { color: var(--mostaza); }
.t-pasos { display: grid; gap: 2px; }
.t-paso { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(246, 236, 214, .22); opacity: .55; transition: opacity .3s; }
.t-paso.on { opacity: 1; }
.tp-n { font: 500 12px var(--mono); color: var(--mostaza); }
.tp-t b { display: block; font: 800 22px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
.tp-t small { display: block; font-size: 13.5px; opacity: .8; }
.tp-p { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; }
.tp-ok { position: absolute; left: -8px; top: 2px; width: 30px; height: 30px; fill: none; stroke: var(--mostaza); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: scale(.3) rotate(-20deg); transition: opacity .25s, transform .4s var(--spring); }
.t-paso.on .tp-ok { opacity: 1; transform: none; }
.t-paso.on .tp-n { opacity: 0; }
.t-total { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 14px; min-height: 64px; }
.t-suelto { font: 600 14px/1.2 var(--sans); }
.t-suelto b { display: block; font: 900 40px/1 var(--disp); font-variant-numeric: tabular-nums; }
.lista .t-suelto b { text-decoration: line-through; text-decoration-color: var(--tomate); text-decoration-thickness: 3px; }
.t-sello { padding: 6px 12px; border: 3px solid var(--mostaza); border-radius: 8px; color: var(--mostaza); font: 800 15px/1 var(--disp); text-transform: uppercase; letter-spacing: .1em; text-align: center; rotate: -8deg; }
.t-sello b { display: block; font-size: 34px; letter-spacing: 0; }
.add-picada { width: 100%; --h: 56px; }
.add-picada .ap-n:not(:empty) { font: 700 14px var(--mono); padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .2); }
.t-nota { margin-top: 10px; font-size: 13.5px; opacity: .85; }
.t-mesa { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; }
.t-tabla { position: relative; height: min(100%, 680px); max-width: 100%; aspect-ratio: 1; }
.t-madera { width: 100%; height: 100%; filter: drop-shadow(0 34px 40px rgba(70, 25, 0, .5)); }
.pz { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); translate: -50% -50%; rotate: var(--r); }
.pz img { width: 100%; height: auto; filter: drop-shadow(0 6px 7px rgba(50, 18, 0, .42)); will-change: transform; }

/* ---------- VOLANTE DE OFERTAS ---------- */
.volante { position: relative; padding: clamp(70px, 9vw, 120px) var(--pad); background-color: var(--mostaza); background-image: radial-gradient(rgba(28, 26, 22, .09) 1.2px, transparent 1.6px); background-size: 9px 9px; }
.v-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.v-title { font: 900 clamp(76px, 14vw, 210px)/.78 var(--disp); text-transform: uppercase; color: var(--tomate); text-shadow: .035em .035em 0 var(--verde); letter-spacing: -.01em; }
.v-title span { display: block; margin: .12em 0 0 .3em; font: 700 .26em/1 var(--mano); text-transform: none; color: var(--verde); text-shadow: none; rotate: -3deg; }
.v-vence { position: relative; width: clamp(150px, 15vw, 200px); aspect-ratio: 1; display: grid; place-items: center; rotate: 8deg; }
.v-estrella { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--tomate); animation: gira 40s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.v-vence p { position: relative; display: grid; gap: 4px; text-align: center; color: var(--papel); }
.v-vence small { font: 800 15px/1 var(--disp); text-transform: uppercase; letter-spacing: .06em; max-width: 9em; }
.clock { font: 900 26px/1 var(--disp); font-variant-numeric: tabular-nums; }
.of-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px dashed rgba(28, 26, 22, .55); border-left: 2px dashed rgba(28, 26, 22, .55); }
.of-card { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 20px; background: var(--papel); border-right: 2px dashed rgba(28, 26, 22, .55); border-bottom: 2px dashed rgba(28, 26, 22, .55); }
.of-big { grid-column: span 2; grid-row: span 2; padding: 28px; }
.of-img { width: 68%; justify-self: center; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: 0 16px 24px -14px rgba(0, 0, 0, .5); }
.of-big .of-img { width: 62%; }
.of-img img { width: 100%; height: 100%; object-fit: cover; }
.of-off { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 64px; aspect-ratio: 1; background: var(--tomate); color: var(--papel); font: 900 21px/1 var(--disp);
  clip-path: polygon(50% 0, 61% 12%, 77% 6%, 80% 22%, 96% 25%, 90% 40%, 100% 52%, 88% 62%, 93% 78%, 77% 80%, 72% 96%, 58% 89%, 45% 100%, 37% 86%, 21% 92%, 19% 76%, 4% 71%, 12% 57%, 0 45%, 13% 36%, 8% 20%, 24% 18%, 28% 3%, 42% 11%); rotate: 12deg; }
.of-big .of-off { width: 96px; font-size: 32px; }
.of-body { display: flex; flex-direction: column; gap: 4px; }
.of-nota { font: 700 18px/1 var(--mano); color: var(--verde); rotate: -3deg; transform-origin: left; }
.of-n { font: 900 30px/.95 var(--disp); text-transform: uppercase; }
.of-big .of-n { font-size: clamp(40px, 4vw, 60px); }
.of-d { font-size: 14.5px; line-height: 1.4; color: var(--tinta-2); }
.of-big .of-d { font-size: 17px; max-width: 40ch; }
.of-p { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; }
.of-p s { font-size: 14px; color: var(--tinta-2); }
.of-p b { font: 900 60px/.85 var(--disp); color: var(--tomate); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.of-p b small { font-size: .5em; vertical-align: .55em; margin-right: .04em; }
.of-big .of-p b { font-size: clamp(80px, 9vw, 130px); }
.v-pie { margin-top: 18px; font-size: 13.5px; }

/* Botón "Agregar" con el + concéntrico a la punta */
.add { --h: 46px; --ic: 32px; position: relative; display: inline-flex; align-items: center; gap: 10px; block-size: var(--h); border-radius: 999px; border: 0; background: var(--verde); color: var(--papel);
  padding-inline: calc(16px + var(--h) / 2 * (1 - pi / 4)) calc((var(--h) - var(--ic)) / 2); font: 800 19px/1 var(--disp); text-transform: uppercase; letter-spacing: .03em; transition: background-color .2s, transform .2s var(--ease); }
.add:hover { background: var(--verde-3); }
.add:active { transform: scale(.96); }
.add-ic { width: var(--ic); height: var(--ic); border-radius: 50%; display: grid; place-items: center; background: var(--mostaza); color: var(--tinta); font: 700 22px/1 var(--sans); }
.add-n:not(:empty) { font: 700 13px var(--mono); }
.add-of { align-self: flex-start; margin-top: 12px; }
.add-of.has { background: var(--tomate); }

/* ---------- LA GÓNDOLA ---------- */
.gondola { position: relative; padding: clamp(70px, 9vw, 120px) var(--pad) clamp(80px, 9vw, 120px); background: var(--kraft); }
.g-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 30px; flex-wrap: wrap; margin-bottom: 24px; }
.g-title { font: 900 clamp(68px, 10vw, 150px)/.8 var(--disp); text-transform: uppercase; color: var(--verde); }
.g-sub { max-width: 40ch; font-size: 17px; }
.g-sync { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.cat-bar { position: sticky; top: var(--hdr); z-index: 50; display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 14px; align-items: center; margin: 0 calc(var(--pad) * -1); padding: 12px var(--pad);
  background: rgba(236, 220, 187, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(28, 26, 22, .1); }
.search { position: relative; display: flex; align-items: center; height: 50px; border-radius: 999px; background: var(--papel); border: 2px solid var(--tinta); padding: 0 6px 0 16px; gap: 8px; }
.search:focus-within { outline: 3px solid var(--tomate); outline-offset: 2px; }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; }
.search input::-webkit-search-cancel-button { display: none; }
.search-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--kraft); font-size: 20px; line-height: 1; visibility: hidden; }
.search.has .search-x { visibility: visible; }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; scroll-padding-inline: 40px; }
.cats::-webkit-scrollbar { display: none; }
@property --fs { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fe { syntax: "<length>"; inherits: false; initial-value: 0px; }
@supports (animation-timeline: scroll(self inline)) {
  .cats { mask-image: linear-gradient(90deg, transparent, #000 var(--fs), #000 calc(100% - var(--fe)), transparent); animation: catsFade linear both; animation-timeline: scroll(self inline); }
}
@keyframes catsFade { 0% { --fs: 0px; --fe: 40px; } 10% { --fs: 40px; } 90% { --fe: 40px; } 100% { --fs: 40px; --fe: 0px; } }
.cat { --h: 40px; flex: none; display: inline-flex; align-items: center; gap: 6px; block-size: var(--h); border-radius: 999px; border: 2px solid var(--tinta); background: transparent; padding-inline: calc(12px + var(--h) / 2 * (1 - pi / 4));
  font: 800 18px/1 var(--disp); text-transform: uppercase; letter-spacing: .03em; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.cat small { font: 500 11px var(--mono); opacity: .7; }
.cat:hover { background: rgba(28, 26, 22, .07); }
.cat.on { background: var(--cc); color: var(--ct); border-color: var(--tinta); box-shadow: 0 3px 0 var(--tinta); transform: translateY(-2px); }
.cat-card { --cc: var(--tomate); --ct: var(--papel); display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; margin: 24px 0 10px; padding: 12px; border-radius: 16px; background: var(--papel); box-shadow: inset 8px 0 0 var(--cc); }
.cat-img { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--tinta); }
.cat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.cat-img img.on { opacity: 1; }
.cat-k { font: 500 12px var(--mono); letter-spacing: .04em; }
.cat-name { font: 900 clamp(36px, 4vw, 54px)/.9 var(--disp); text-transform: uppercase; margin: 4px 0 6px; }
.cat-desc { max-width: 52ch; font-size: 16px; color: var(--tinta-2); }
.cat-swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.results { margin: 18px 0 14px; font: 500 13px var(--mono); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); row-gap: 40px; }
.prod { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 22px; }
.prod::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 16px; background: linear-gradient(180deg, #b98552 0 3px, #9b6a3c 3px 12px, #6e4826 12px); box-shadow: 0 10px 12px -8px rgba(0, 0, 0, .45); }
.prod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.prod-sym { display: grid; place-items: center; width: 58px; aspect-ratio: 1; border-radius: 50%; background: var(--cc); color: var(--ct); font: 900 28px/1 var(--disp); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25), 0 6px 0 -2px rgba(0, 0, 0, .18); }
.prod-cod { font: 500 11px var(--mono); color: var(--tinta-2); }
.prod-n { font: 800 18px/1.15 var(--sans); }
.prod-d { font-size: 14px; line-height: 1.35; color: var(--tinta-2); flex: 1; }
.stock { font: 500 11.5px var(--mono); }
.stock.ok { color: var(--verde-3); }
.stock.low { color: var(--tomate-2); }
.stock.out { color: var(--tinta-2); }
.fleje { display: flex; align-items: baseline; justify-content: space-between; gap: 2px 8px; flex-wrap: wrap; margin-top: 4px; padding: 6px 10px; border-radius: 3px; background: #ffe27a; border-left: 6px solid var(--cc); box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.fleje b { font: 900 32px/1 var(--disp); font-variant-numeric: tabular-nums; }
.fleje small { font-size: 12px; color: var(--tinta-2); }
.qty { margin-top: 8px; min-height: 46px; }
.add-p { width: 100%; justify-content: space-between; }
.step { display: none; align-items: center; justify-content: space-between; height: 46px; border-radius: 999px; background: var(--tinta); color: var(--papel); padding: 4px; }
.step button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--mostaza); color: var(--tinta); font: 700 22px/1 var(--sans); }
.step .q { font: 700 14px var(--mono); }
.prod.in-cart .add-p { display: none; }
.prod.in-cart .step { display: flex; }
.prod.in-cart .prod-sym { box-shadow: 0 0 0 3px var(--kraft), 0 0 0 6px var(--tinta); }
.avisame { width: 100%; height: 46px; border-radius: 999px; border: 2px dashed var(--tinta); background: transparent; font: 800 16px/1 var(--disp); text-transform: uppercase; letter-spacing: .03em; }
.avisame.ok { border-style: solid; background: var(--verde); color: var(--papel); border-color: var(--verde); }
.prod.is-out .fleje { opacity: .55; }
.pop { animation: popIn .5s var(--ease) both; animation-delay: var(--pd, 0s); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px); } }
.empty { margin-top: 30px; padding: 36px; border-radius: 16px; background: var(--papel); text-align: center; }
.empty-t { font: 900 40px/1 var(--disp); text-transform: uppercase; }
.empty-t em { color: var(--tomate); }
.empty-d { margin: 8px 0 18px; }

/* ---------- LA CAJA (pagos) ---------- */
.pagos { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(30px, 6vw, 90px); align-items: center; padding: clamp(70px, 9vw, 120px) var(--pad); background: var(--verde); color: var(--crema); }
.sec-k { font: 400 22px/1 var(--mano); color: var(--mostaza); }
.sec-title { margin: 8px 0 16px; font: 900 clamp(54px, 7vw, 104px)/.85 var(--disp); text-transform: uppercase; }
.sec-title em { color: var(--mostaza); }
.pagos-lead { max-width: 48ch; font-size: 18px; opacity: .92; }
.medios { display: grid; margin-top: 26px; border-top: 1px solid rgba(246, 236, 214, .2); }
.medios li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(246, 236, 214, .2); }
.md-k { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: var(--mostaza); color: var(--tinta); font: 900 20px/1 var(--disp); }
.md-t { flex: 1; display: grid; }
.md-t b { font: 800 22px/1.1 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
.md-t small { font-size: 14px; opacity: .8; }
.alias { font: 600 13px var(--mono); }
.copy { --h: 36px; block-size: var(--h); border-radius: 999px; border: 2px solid var(--mostaza); background: transparent; color: var(--mostaza); padding-inline: calc(12px + var(--h) / 2 * (1 - pi / 4)); font: 800 16px/1 var(--disp); text-transform: uppercase; }
.copy.ok { background: var(--mostaza); color: var(--tinta); }
.cobro { position: relative; display: grid; }
.qr-card { position: relative; z-index: 2; padding: 22px; border-radius: 20px; background: var(--papel); color: var(--tinta); text-align: center; box-shadow: 0 40px 60px -40px rgba(0, 0, 0, .8); --focus: var(--tomate); }
.qr-top { display: flex; justify-content: space-between; gap: 10px; font: 500 12px var(--mono); }
.qr-state { color: var(--tomate-2); }
.paid .qr-state { color: var(--verde-3); }
.qr-amt { display: grid; margin: 14px 0 12px; }
.qr-amt small { font-size: 13px; color: var(--tinta-2); }
.qr-amt b { font: 900 56px/1 var(--disp); font-variant-numeric: tabular-nums; }
.qr-box { position: relative; width: min(230px, 70%); margin: 0 auto; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 2px var(--tinta); overflow: hidden; }
.qr { width: 100%; height: auto; }
.qr-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tomate); box-shadow: 0 0 12px var(--tomate); opacity: 0; }
.scanning .qr-scan { opacity: 1; animation: scan 1s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateY(220px); } }
.qr-ok { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .9); opacity: 0; transition: opacity .3s; }
.qr-ok svg { width: 84px; fill: none; stroke: var(--verde-3); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.paid .qr-ok { opacity: 1; }
.qr-hint { margin: 12px 0 14px; font-size: 14px; color: var(--tinta-2); }
#qrPagar { width: 100%; }
.factura { position: relative; width: 86%; margin: -18px auto 0; padding: 34px 22px 26px; background: var(--termico); color: var(--tinta); font: 400 12.5px/1.5 var(--mono);
  opacity: 0; transform: translateY(-40px); transition: opacity .4s, transform .7s var(--ease); }
.factura::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(-45deg, transparent 6px, var(--termico) 0), linear-gradient(45deg, transparent 6px, var(--termico) 0); background-size: 12px 12px; background-position: 0 -4px; }
.factura.show { opacity: 1; transform: none; }
.fc-top { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px dashed #999; }
.fc-top b { font-size: 15px; }
.fc-rows { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px dashed #999; }
.fc-rows div { display: flex; justify-content: space-between; gap: 10px; }
.fc-rows dd { font-weight: 700; }
.fc-stock { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* ---------- LA PERSIANA (horarios) y LAS CUADRAS ---------- */
.horarios { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); padding: clamp(70px, 9vw, 120px) var(--pad); background: var(--crema); }
.persiana { position: relative; padding: clamp(26px, 3.5vw, 44px); border-radius: 6px 6px 0 0; color: var(--crema);
  background: repeating-linear-gradient(180deg, #33433b 0 3px, #2a3831 3px 24px, #1e2a24 24px 27px); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6); }
.persiana::after { content: ""; position: absolute; left: 50%; bottom: 14px; width: 70px; height: 12px; translate: -50% 0; border-radius: 3px; background: linear-gradient(#b9c2bd, #7f8a84); }
.pers-k { font: 700 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mostaza); }
.pers-t { margin: 10px 0 14px; font: 900 clamp(46px, 5.4vw, 80px)/.85 var(--disp); text-transform: uppercase; }
.pers-t span { display: block; color: var(--mostaza); }
.hr-now { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .3); font-weight: 700; font-size: 15px; }
.hours { width: 100%; margin: 18px 0 12px; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { padding: 8px 10px; border-bottom: 1px dashed rgba(246, 236, 214, .28); text-align: left; font-weight: 500; }
.hours th { font: 800 20px/1 var(--disp); text-transform: uppercase; letter-spacing: .03em; width: 40%; }
.hours td { font-variant-numeric: tabular-nums; }
.hours tr.today { background: var(--mostaza); color: var(--tinta); }
.hours tr.today th::after { content: "hoy"; margin-left: 8px; font: 700 15px/1 var(--mano); text-transform: none; color: var(--tomate-2); }
.hr-note { max-width: 46ch; font-size: 15px; opacity: .9; }
.hr-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 30px; }
.cuadras { align-self: center; }
.cu-t { font: 900 clamp(40px, 4.4vw, 64px)/.9 var(--disp); text-transform: uppercase; color: var(--verde); }
.cu-d { margin: 8px 0 18px; color: var(--tinta-2); }
.zonas { display: flex; gap: 8px; flex-wrap: wrap; }
.zona { display: grid; text-align: left; padding: 10px 16px; border-radius: 14px; border: 2px solid var(--tinta); background: transparent; font: 800 18px/1.05 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
.zona small { font: 500 11.5px/1.4 var(--mono); text-transform: none; letter-spacing: 0; }
.zona.on { background: var(--tinta); color: var(--crema); }
.regla { position: relative; margin: 30px 0 8px; padding-top: 34px; container-type: inline-size; }
.regla-c { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; width: calc(100% * var(--n) / var(--tot)); }
.mz { aspect-ratio: 1; border-radius: 3px; opacity: .35; transition: opacity .3s; }
.mz.z0 { background: var(--verde); }
.mz.z1 { background: var(--mostaza); }
.mz.z2 { background: var(--tomate); }
.regla[data-z="0"] .z0, .regla[data-z="1"] .z1, .regla[data-z="2"] .z2 { opacity: 1; }
.regla-casa { position: absolute; left: 0; top: 0; bottom: 18px; transform: translateX(calc(var(--p, .2) * 100cqw)); transition: transform .2s var(--ease); }
.regla-casa i { position: absolute; top: 0; left: 0; translate: -50% 0; padding: 3px 9px; border-radius: 999px; background: var(--tinta); color: var(--crema); font: 400 14px/1.2 var(--mano); font-style: normal; white-space: nowrap; }
.regla-casa::after { content: ""; position: absolute; left: -1px; top: 22px; bottom: 0; width: 2px; background: var(--tinta); }
.regla-n { position: relative; height: 18px; margin-top: 6px; }
.regla-n span { position: absolute; left: calc(var(--c) / var(--tot) * 100%); font: 500 11.5px var(--mono); white-space: nowrap; }
.regla-n span:not(:first-child) { translate: -50% 0; }
.cu-rng { display: grid; gap: 8px; margin-top: 10px; font-weight: 600; }
.cu-rng b { color: var(--tomate-2); }
.cu-rng input { width: 100%; accent-color: var(--tomate); height: 30px; }
.zona-info { display: grid; gap: 2px; margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--papel); box-shadow: inset 6px 0 0 var(--verde); }
.zi-n { font: 900 28px/1 var(--disp); text-transform: uppercase; }
.zi-d { font: 500 12.5px var(--mono); color: var(--tinta-2); }
.zi-c em { color: var(--verde-3); font-weight: 700; }

/* ---------- PIE ---------- */
.pie { padding: clamp(60px, 8vw, 110px) var(--pad) 90px; background: var(--tomate); color: var(--papel); }
.pie-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 2px solid rgba(255, 248, 234, .3); }
.pie-algo { font: 900 clamp(84px, 15vw, 230px)/.78 var(--disp); text-transform: uppercase; letter-spacing: -.01em; color: var(--papel); text-shadow: .035em .035em 0 var(--tomate-2); }
.pie-cola { padding: 34px 0; }
.pie-k { font: 700 22px/1 var(--mano); color: var(--mostaza-2); }
.pie-notas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.pie-nota { padding: 20px 20px 16px; background: var(--papel); color: var(--tinta); rotate: var(--r); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .5); background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(42, 77, 143, .16) 27px 28px); }
.pie-nota p { font: 400 20px/28px var(--mano); color: var(--birome); }
.pie-nota figcaption { margin-top: 10px; font: 500 12px var(--mono); }
.pie-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 30px 0; border-top: 2px solid rgba(255, 248, 234, .3); }
.pie-cols h3 { margin-bottom: 6px; font: 900 22px/1 var(--disp); text-transform: uppercase; color: var(--mostaza-2); }
.pie-cols p { font-size: 16px; line-height: 1.6; }
.pie-bot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 20px; border-top: 2px solid rgba(255, 248, 234, .3); font-size: 14px; }

/* ---------- Botón flotante del pedido ---------- */
.fab { --h: 60px; position: fixed; right: 22px; bottom: 24px; z-index: 9000; display: flex; align-items: center; gap: 12px; block-size: var(--h); padding-inline: 7px calc(16px + var(--h) / 2 * (1 - pi / 4)); border-radius: 999px; border: 0;
  background: var(--tinta); color: var(--papel); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55); transform: translateY(160%); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .3s; --focus: var(--mostaza); }
.fab.show { transform: none; opacity: 1; pointer-events: auto; }
.fab.bump { animation: fabBump .55s var(--spring); }
@keyframes fabBump { 40% { transform: scale(1.08) rotate(-3deg); } }
.fab-ic { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--mostaza); display: grid; place-items: center; }
.fab-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--tinta); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.fab-n { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--tomate); color: #fff; font: 700 11px/22px var(--mono); text-align: center; }
.fab-t { display: grid; text-align: left; line-height: 1.05; }
.fab-t small { font-size: 11px; opacity: .7; }
.fab-t b { font: 900 25px/1 var(--disp); font-variant-numeric: tabular-nums; }
.fly { position: fixed; left: 0; top: 0; z-index: 9800; width: 22px; height: 28px; margin: -14px 0 0 -11px; background-color: var(--papel); border-radius: 2px; pointer-events: none; box-shadow: 0 8px 16px rgba(0, 0, 0, .35);
  background-image: linear-gradient(90deg, transparent 5px, rgba(214, 69, 42, .7) 5px 6px, transparent 0), repeating-linear-gradient(180deg, transparent 0 4px, rgba(42, 77, 143, .5) 4px 5px); }

/* ---------- EL PEDIDO: la libreta del almacenero ---------- */
.scrim { position: fixed; inset: 0; z-index: 9990; background: rgba(14, 22, 18, .55); opacity: 0; pointer-events: none; transition: opacity .45s; }
.cart-open .scrim { opacity: 1; pointer-events: auto; }
.cr-capa { position: fixed; inset: 0; z-index: 10000; overflow: hidden; pointer-events: none; }
.carrito { position: absolute; top: 0; right: 0; bottom: 0; pointer-events: auto; width: min(460px, 100%); display: flex; flex-direction: column; color: var(--crema);
  background: var(--verde-2) radial-gradient(120% 70% at 50% 0%, var(--verde) 0%, transparent 70%);
  transform: translateX(105%); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .6); }
.cart-open .carrito { transform: none; visibility: visible; transition: transform .6s var(--ease); }
.cr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 10px; }
.cr-t { font: 900 34px/1 var(--disp); text-transform: uppercase; }
.cr-t small { margin-left: 6px; font: 400 16px var(--mano); text-transform: none; color: var(--mostaza); }
.cr-x { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(246, 236, 214, .3); background: transparent; font-size: 26px; line-height: 1; }
.cr-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px 28px; }

/* La hoja: renglones de 32 px, margen rojo, agujeros y espiral arriba */
.libreta { --ren: 32px; --mar: 40px; --raya: rgba(42, 77, 143, .22); position: relative; margin: 0 auto 10px; max-width: 390px; padding: 26px 16px 20px calc(var(--mar) + 12px);
  background-color: var(--papel); color: var(--birome); font: 400 17px/var(--ren) var(--mano);
  background-image: linear-gradient(90deg, transparent calc(var(--mar) - 2px), rgba(214, 69, 42, .55) calc(var(--mar) - 2px) var(--mar), transparent 0);
  border-radius: 2px 2px 4px 4px; box-shadow: 0 26px 40px -26px rgba(0, 0, 0, .75), 0 1px 0 rgba(0, 0, 0, .08); rotate: -.5deg; --focus: var(--tomate); }
.libreta::before { content: ""; position: absolute; left: 18px; right: 18px; top: 7px; height: 10px; background: radial-gradient(circle, var(--verde-2) 0 3.5px, transparent 4px) 0 0 / 22px 10px repeat-x; }
.libreta::after { content: ""; position: absolute; left: 18px; right: 18px; top: -9px; height: 22px; background: linear-gradient(90deg, transparent 9px, #c9c4b8 9px 11px, #8f8a7f 11px 13px, transparent 13px) 0 0 / 22px 22px repeat-x; border-radius: 4px; }
.lb-cab, .cr-list, .lb-cuenta { background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--ren) - 1px), var(--raya) calc(var(--ren) - 1px) var(--ren)); }
.lb-cab { display: grid; grid-template-columns: 1fr auto; grid-auto-rows: var(--ren); align-items: end; }
.lb-cab > * { line-height: 26px; }
.lb-marca { font-weight: 700; font-size: 21px; color: var(--tomate-2); }
.lb-marca small { font-size: 14px; font-weight: 400; color: var(--birome); }
.lb-num { text-align: right; font-size: 15px; }
.lb-fecha { grid-column: 1 / -1; font-size: 15px; opacity: .8; }
.cr-empty { padding: 12px 0 18px; }
.cr-empty-t { font-weight: 700; font-size: 22px; }
.cr-empty p { margin-bottom: 12px; line-height: 1.5; }
.cr-empty .btn { --h: 44px; font-size: 18px; }
.carrito:not(.is-empty) .cr-empty { display: none; }
.carrito.is-empty .cr-form, .carrito.is-empty .lb-cuenta, .carrito.is-empty .cr-list, .carrito.is-empty .lb-pie { display: none; }

/* Cada producto ocupa dos renglones: cantidad, nombre y precio arriba; detalle y botones abajo */
.ci-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: var(--ren) var(--ren); grid-template-areas: "q n t" "d d b"; column-gap: 10px; }
.ci-row > * { align-self: end; line-height: 26px; }
.ci-q { grid-area: q; display: flex; gap: 6px; font-weight: 700; white-space: nowrap; }
.ci-nuevo { display: inline-block; }
.ci-viejo { position: relative; display: inline-block; text-decoration: none; font-weight: 400; opacity: .55; }
.ci-viejo::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 2px; border-radius: 2px; background: var(--birome); transform: rotate(-8deg); transform-origin: left center; }
.ci-n { grid-area: n; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-t { grid-area: t; font-weight: 700; }
.ci-d { grid-area: d; font-size: 14px; opacity: .7; }
.ci-b { grid-area: b; display: flex; gap: 6px; align-self: center; }
.ci-b button { width: 30px; height: 26px; border: 1.5px solid var(--birome); border-radius: 13px; background: transparent; color: var(--birome); font: 700 17px/1 var(--sans); }
.ci-b button:hover { background: var(--birome); color: var(--papel); }

/* La escritura: cada trazo aparece de izquierda a derecha (clip-path), sin letra por letra */
@keyframes escribe { from { clip-path: inset(-6px 100% -8px 0); } to { clip-path: inset(-6px 0 -8px 0); } }
@keyframes tacha { from { transform: rotate(-8deg) scaleX(0); } }
@keyframes raya { from { transform: scaleX(0); } }
@keyframes aparece { from { opacity: 0; } }
.ci-row.escribe .ci-q { animation: escribe .45s cubic-bezier(.45, .1, .6, 1) var(--d, 0s) both; }
.ci-row.escribe .ci-n { animation: escribe .7s cubic-bezier(.45, .1, .6, 1) calc(var(--d, 0s) + .2s) both; }
.ci-row.escribe .ci-d { animation: escribe .5s cubic-bezier(.45, .1, .6, 1) calc(var(--d, 0s) + .55s) both; }
.ci-row.escribe .ci-t { animation: escribe .35s cubic-bezier(.45, .1, .6, 1) calc(var(--d, 0s) + .85s) both; }
.ci-row.escribe .ci-b { animation: aparece .3s calc(var(--d, 0s) + 1s) both; }
.ci-row.cambia .ci-viejo::after { animation: tacha .25s ease-out var(--d, 0s) both; }
.ci-row.cambia .ci-nuevo { animation: escribe .4s cubic-bezier(.45, .1, .6, 1) calc(var(--d, 0s) + .25s) both; }
.ci-row.cambia .ci-t { animation: escribe .35s cubic-bezier(.45, .1, .6, 1) calc(var(--d, 0s) + .5s) both; }

/* La cuenta: una raya a mano, subtotal, envío y el total encerrado */
.lb-cuenta { position: relative; padding-top: var(--ren); }
.lb-raya { position: absolute; right: -4px; top: 18px; width: 62%; height: 12px; fill: none; stroke: var(--birome); stroke-width: 2.4; stroke-linecap: round; transform-origin: left center; overflow: visible; }
.cr-sum div { display: flex; justify-content: space-between; gap: 10px; height: var(--ren); align-items: end; }
.cr-sum div > * { line-height: 26px; }
.cr-sum dd { font-weight: 700; }
.cr-sum .tot { font-size: 23px; }
.cr-sum .tot dt { font-weight: 700; text-transform: lowercase; }
.cr-sum .tot dd { position: relative; color: var(--tomate-2); }
.cr-sum .tot dd::before { content: ""; position: absolute; inset: -3px -11px -5px; border: 2px solid var(--tomate-2); border-radius: 48% 52% 44% 56% / 58% 46% 54% 42%; rotate: -3deg; }
.lb-cuenta.escribe .lb-raya { animation: raya .4s ease-out var(--d, 0s) both; }
.lb-cuenta.escribe .cr-sum > div, .lb-cuenta.escribe .cr-free { animation: escribe .5s cubic-bezier(.45, .1, .6, 1) both; }
.lb-cuenta.escribe .cr-sum > div:nth-child(1) { animation-delay: calc(var(--d, 0s) + .35s); }
.lb-cuenta.escribe .cr-sum > div:nth-child(2) { animation-delay: calc(var(--d, 0s) + .7s); }
.lb-cuenta.escribe .cr-sum > div:nth-child(3) { animation-delay: calc(var(--d, 0s) + 1.05s); }
.lb-cuenta.escribe .cr-free { animation-delay: calc(var(--d, 0s) + 1.4s); }
.lb-cuenta.escribe .tot dd::before { animation: aparece .3s calc(var(--d, 0s) + 1.4s) both; }
.cr-free { height: calc(var(--ren) * 2); }
.cf-t { height: var(--ren); line-height: 40px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-bar { display: block; height: 8px; margin-top: 12px; border: 1.5px solid var(--birome); border-radius: 4px; overflow: hidden; }
.cf-bar i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--birome) 0 2px, transparent 2px 5px); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); }
.cr-free.done .cf-bar i { background: var(--verde-3); }

/* Los datos de la entrega, al pie de la hoja */
.cr-form { margin-top: 14px; padding-top: 4px; border-top: 1.5px dashed rgba(42, 77, 143, .35); font: 400 14px/1.4 var(--sans); }
.fs { margin: 0; padding: 12px 0; border: 0; border-bottom: 1px dotted rgba(42, 77, 143, .35); min-width: 0; }
.fs legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; font: 400 18px/1.2 var(--mano); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; clear: both; }
.ent { display: grid; justify-items: start; padding: 8px 10px; border: 1.5px solid var(--birome); border-radius: 10px; background: transparent; color: var(--birome); text-align: left; }
.ent b { display: flex; align-items: center; gap: 7px; font: 800 14px/1.2 var(--sans); text-transform: uppercase; }
.ent b::before { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.ent.on b::before { background: currentColor; box-shadow: inset 0 0 0 2.5px var(--papel); }
.ent small { font-size: 12px; opacity: .75; }
.ent.on { background: rgba(42, 77, 143, .1); box-shadow: inset 0 0 0 1px var(--birome); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; clear: both; }
.chip { display: inline-grid; padding: 6px 12px; border: 1.5px solid var(--birome); border-radius: 999px; background: transparent; color: var(--birome); font: 600 13px/1.25 var(--sans); text-align: left; }
.chip small { font-size: 11px; font-weight: 400; opacity: .75; }
.chip.on { background: var(--birome); color: var(--papel); }
.campos { display: grid; grid-template-columns: max-content 1fr; gap: 8px 12px; padding-top: 14px; }
.fld { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; }
.fld span { font: 400 18px var(--mano); }
.fld input { width: 100%; min-width: 0; padding: 4px 2px; border: 0; border-bottom: 1.5px solid var(--raya); border-radius: 0; background: transparent; color: var(--birome); font: 400 18px var(--mano); outline: none; }
.fld input::placeholder { color: rgba(42, 77, 143, .45); }
.fld input:focus-visible { border-bottom-color: var(--tomate); box-shadow: 0 2px 0 var(--tomate); }
.fld.err input { border-bottom: 2px solid var(--tomate); }
.fld.err span { color: var(--tomate-2); }
.fld.err { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.lb-pie { padding-top: 14px; text-align: right; font-size: 19px; rotate: -2deg; }
.lb-pie span { margin-left: 6px; font-size: 16px; color: var(--tomate-2); }
.cr-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: #10291c; }
.wa-btn { --h: 56px; width: 100%; block-size: var(--h); border-radius: 999px; border: 0; background: #25d366; color: #0b2e1a; display: flex; align-items: center; justify-content: center; gap: 10px; font: 800 21px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; transition: background-color .2s, transform .2s; }
.wa-btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.wa-btn:hover { background: #1fbd5a; }
.wa-btn:active { transform: scale(.97); }
.wa-btn:disabled { opacity: .45; cursor: default; }
.cr-legal { margin-top: 8px; text-align: center; font-size: 12.5px; opacity: .7; }

/* Vista previa de WhatsApp */
.wa { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: #efeae2; color: #111b21; transform: translateX(100%); visibility: hidden; transition: transform .55s var(--ease), visibility 0s .55s; }
.wa.show { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.wa-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #008069; color: #fff; --focus: #fff; }
.wa-back { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
.wa-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.wa-av { width: 40px; height: 40px; border-radius: 50%; background: var(--verde); color: var(--mostaza); display: grid; place-items: center; font: 900 24px var(--disp); border: 2px solid var(--mostaza); }
.wa-who { display: grid; line-height: 1.2; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.wa-who b { font-size: 16px; font-weight: 600; }
.wa-who small { font-size: 12.5px; opacity: .85; }
.wa-chat { flex: 1; overflow-y: auto; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 8px; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.wa-day { align-self: center; margin: 0 0 6px; padding: 5px 12px; border-radius: 8px; background: #fff; color: #54656f; font-size: 12px; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); }
.bub { max-width: 86%; padding: 7px 10px 8px; border-radius: 9px; font-size: 14.5px; line-height: 1.38; color: #111b21; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); animation: bubIn .4s var(--ease) both; }
@keyframes bubIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.bub.me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.bub.them { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.bub .meta { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: #667781; display: inline-flex; gap: 3px; align-items: center; }
.ticks { width: 16px; height: 11px; fill: none; stroke: #8696a0; stroke-width: 1.6; transition: stroke .3s; }
.ticks.read { stroke: #53bdeb; }
.bub-qr { display: flex; gap: 10px; align-items: center; margin: 4px 0 2px; padding: 8px; border-radius: 8px; background: #f5f6f6; white-space: normal; }
.bub-qr svg { width: 54px; height: 54px; flex: none; }
.bub-qr span { font-size: 13px; line-height: 1.3; }
.bub-qr b { display: block; font-size: 15px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 9px; background: #fff; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: typ 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 50% { transform: translateY(-4px); opacity: .5; } }
.wa-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--papel); border-top: 1px solid rgba(0, 0, 0, .1); }
.wa-note { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--tinta-2); }
.wa-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wa-acts .btn { --h: 46px; --p: 10px; font-size: 17px; white-space: normal; text-align: center; line-height: 1; }

.toast { position: fixed; left: 50%; bottom: 84px; z-index: 10050; max-width: calc(100% - 32px); padding: 13px 20px; border-radius: 999px; background: var(--tinta); color: var(--papel); font-size: 14px; text-align: center;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), opacity .3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast b { color: var(--mostaza); }

/* ---------- Compu angosta y tablet ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 8px 9px; font-size: 17px; }
  .hdr-status { display: none; }
  .of-grid { grid-template-columns: repeat(3, 1fr); }
  .dicc { grid-template-columns: 1fr 1fr; }
  .d-hoja { grid-column: 1 / -1; grid-row: 1; max-width: 820px; width: 100%; justify-self: center; }
  .d-foto { width: min(100%, 260px); }
  .d-foto-a { justify-self: end; }
  .d-foto-b { justify-self: start; align-self: start; }
  .d-mano-1 { position: static; width: auto; max-width: none; margin: 0 0 14px; rotate: -1deg; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: block; }
  .pagos, .horarios { grid-template-columns: 1fr; }
  .of-grid { grid-template-columns: repeat(2, 1fr); }
  .of-big { grid-row: span 1; }
  .t-in { grid-template-columns: minmax(300px, 360px) 1fr; }
  .tp-t small { display: none; }
}

/* ---------- Celular ---------- */
@media (max-width: 640px) {
  :root { --hdr: 58px; }
  body { font-size: 16px; }
  .logo-w { font-size: 30px; }
  .logo-s { font-size: 9px; }
  .hc-l { display: none; }
  .hdr-cart { padding-inline: 11px 12px; }
  .portada { padding-top: calc(var(--hdr) + 14px); padding-bottom: 24px; gap: 4px; }
  .p-eyebrow { font-size: 11px; letter-spacing: .08em; }
  .p-eyebrow > span:first-child { display: none; }
  .p-stage { padding: 5% 0 4%; }
  .p-word { flex-direction: column; align-items: center; font-size: min(46vw, 33svh); line-height: .8; }
  .flo { width: calc(var(--w) * 1.55%); }
  .p-nota { left: 2%; top: auto; bottom: -3%; font-size: 17px; rotate: -4deg; }
  .p-nota svg { display: none; }
  .p-lead { font-size: 16px; }
  .p-ctas { width: 100%; }
  .p-ctas .btn { flex: 1; --h: 50px; font-size: 19px; padding-inline: 14px; }
  .cintas { height: 170px; }
  .cinta { font-size: 30px; }
  .dicc { grid-template-columns: 1fr 1fr; padding-top: 60px; padding-bottom: 60px; gap: 26px 14px; }
  .d-hoja { padding: 30px 18px 26px 44px; background-image: linear-gradient(90deg, transparent 26px, rgba(214, 69, 42, .55) 26px 28px, transparent 0), repeating-linear-gradient(180deg, transparent 0 31px, rgba(42, 77, 143, .17) 31px 32px); }
  .d-datos { grid-template-columns: 1fr 1fr; }
  .d-foto { width: 100%; padding: 6px 6px 0; }
  .d-foto figcaption { font-size: 15px; }
  .picada { min-height: 560px; background-size: 44px 44px; }
  .t-in { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 10px 12px 12px; }
  .t-lista { padding: 14px 14px 12px; rotate: 0deg; }
  .t-k { font-size: 15px; }
  .t-title { font-size: 34px; margin: 2px 0 8px; }
  .t-pasos { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .t-paso { grid-template-columns: 18px 1fr auto; gap: 4px; padding: 3px 0; }
  .tp-t b { font-size: 16px; }
  .tp-p { font-size: 10.5px; }
  .tp-ok { width: 22px; height: 22px; left: -6px; top: 0; }
  .t-total { margin: 8px 0; min-height: 0; }
  .t-suelto { font-size: 12px; }
  .t-suelto b { font-size: 28px; }
  .t-sello { font-size: 11px; padding: 4px 8px; }
  .t-sello b { font-size: 24px; }
  .add-picada { --h: 46px; font-size: 18px; }
  .t-nota { display: none; }
  .t-tabla { height: min(100%, 86vw); }
  .volante { padding-top: 60px; padding-bottom: 60px; }
  .v-head { flex-wrap: nowrap; align-items: flex-start; }
  .v-title { font-size: 21vw; }
  .v-vence { width: 118px; flex: none; }
  .v-vence small { font-size: 12px; }
  .clock { font-size: 20px; }
  .of-card { padding: 14px 12px; gap: 8px; }
  .of-big { grid-column: 1 / -1; padding: 18px; grid-template-columns: 42% 1fr; grid-template-rows: auto; align-items: center; }
  .of-big .of-img { width: 100%; }
  .of-img { width: 78%; border-width: 4px; }
  .of-off { width: 50px; font-size: 17px; top: 8px; right: 8px; }
  .of-big .of-off { width: 62px; font-size: 21px; left: 10px; right: auto; }
  .of-n { font-size: 23px; }
  .of-big .of-n { font-size: 32px; }
  .of-d { font-size: 13px; }
  .of-big .of-d { font-size: 13.5px; }
  .of-p b { font-size: 42px; }
  .of-big .of-p b { font-size: 60px; }
  .of-nota { font-size: 15px; }
  .add { --h: 42px; --ic: 30px; font-size: 17px; }
  .add-of { width: 100%; justify-content: space-between; }
  .gondola { padding-top: 60px; }
  .cat-bar { grid-template-columns: 1fr; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .search { height: 46px; }
  .cat { --h: 36px; font-size: 16px; }
  .cat-card { grid-template-columns: 112px 1fr; gap: 12px; padding: 8px; margin-top: 16px; }
  .cat-img { aspect-ratio: 1; }
  .cat-name { font-size: 30px; }
  .cat-desc { font-size: 13.5px; line-height: 1.35; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .prod { padding: 12px 8px 18px; }
  .prod-sym { width: 44px; font-size: 21px; }
  .prod-n { font-size: 15.5px; }
  .prod-d { font-size: 12.5px; }
  .fleje { padding: 5px 7px; }
  .fleje b { font-size: 25px; }
  .fleje small { font-size: 10.5px; }
  .add-p { padding-inline: 12px 6px; }
  .avisame { font-size: 14px; }
  .medios li { flex-wrap: wrap; }
  .pie-notas, .pie-cols { grid-template-columns: 1fr; }
  .fab { right: 12px; bottom: 70px; --h: 56px; }
  .toast { bottom: 140px; }
  .cr-body { padding: 22px 14px 20px; }
  .carrito { width: 100%; }
}

/* ---------- Sin movimiento: todo quieto y a la vista ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .cinta-track, .v-estrella { animation: none !important; }
  .picada { height: auto; min-height: 0; }
  .t-in { height: auto; padding-top: 40px; padding-bottom: 60px; }
  .t-tabla { height: auto; width: min(100%, 640px); }
}
