/* Ñumm · una sola forma: el borde ondulado de la bandeja del tujure. */
@font-face { font-family: "Chillax"; src: url("../assets/fonts/chillax-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chillax"; src: url("../assets/fonts/chillax-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chillax"; src: url("../assets/fonts/chillax-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chillax"; src: url("../assets/fonts/chillax-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --green: #173e32;
  --green-2: #1e4a3c;
  --green-3: #245746;
  --ivory: #f4f1e8;
  --ivory-2: #e9e3d3;
  --maize: #eac449;
  --maize-2: #dfb534;
  --ink: #12261f;

  --font: "Chillax", "Avenir Next", "Segoe UI", sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.3rem, 1.1rem + 0.8vw, 1.9rem);
  --step-head: clamp(2.6rem, 1.4rem + 5.4vw, 6.5rem);
  --step-display: clamp(9rem, 1rem + 27vw, 30rem);
  --marquee: clamp(150px, 20vw, 260px);

  --margin: clamp(16px, 3.2vw, 40px);
  --gap: clamp(88px, 10vw, 168px);
  --scallop: clamp(10px, 1.6vw, 18px);
  --radius: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --topbar: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--maize) var(--green); }
body { margin: 0; background: var(--green); color: var(--ivory); font: 400 var(--step-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--maize); color: var(--green); }
:focus-visible { outline: 3px solid var(--maize); outline-offset: 3px; border-radius: 4px; }
/* Sobre marfil y maíz el anillo de foco es verde, para que se vea. */
.s-def :focus-visible, .s-say :focus-visible, .s-punto :focus-visible, .s-delivery :focus-visible, .s-faq :focus-visible, .footer :focus-visible, .topbar.is-light :focus-visible, .topbar.is-maize :focus-visible { outline-color: var(--green); }
.s-faq details[open] :focus-visible { outline-color: var(--maize); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: var(--margin); top: 12px; z-index: 100; padding: 10px 16px; background: var(--maize); color: var(--green); border-radius: 99px; font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--ease-out); }
.skip-link:focus { transform: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------- Lienzo 3D compartido ------- */
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.gl-fallback { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s; }
html:not(.has-gl) .gl-fallback { opacity: 1; }
html.no-gl .gl { display: none; }

/* ------- Botones y enlaces: el óvalo de la bandeja ------- */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: 0 1.4em; border: 0; border-radius: 999px; font-weight: 600; font-size: var(--step-body); text-decoration: none; white-space: nowrap; transition: transform .35s var(--ease-out), background-color .25s, color .25s; }
.btn svg { flex: none; width: 1.15em; height: 1.15em; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.96); }
.btn--maize { background: var(--maize); color: var(--green); }
.btn--maize:hover { background: var(--ivory); }
.btn--green { background: var(--green); color: var(--ivory); }
.btn--green:hover { background: var(--green-3); }
.btn--big { min-height: 64px; font-size: var(--step-lead); padding: 0 1.2em 0 1.4em; }
.link { display: inline-flex; align-items: center; min-height: 44px; gap: .45em; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.link svg { width: 1em; height: 1em; transition: transform .35s var(--ease-out); }
.link:hover svg { transform: translate(2px, -2px); }

.price { display: flex; align-items: baseline; gap: .5em; }
.price strong { font-size: var(--step-lead); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price span { font-size: var(--step-small); white-space: nowrap; }
.price--big strong { font-size: var(--step-head); line-height: 1; letter-spacing: -.04em; }

/* ------- Barra superior ------- */
.topbar { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px var(--margin); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar__mark { position: relative; display: grid; place-items: center; width: 112px; height: 54px; color: var(--green); font-weight: 700; font-size: 1.5rem; letter-spacing: -.04em; text-decoration: none; isolation: isolate; will-change: transform; border-radius: 50%; }
/* La forma ondulada va en una capa aparte: así el anillo de foco no queda recortado. */
.topbar__mark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory); clip-path: url(#clip-tray); transition: background-color .35s; }
.topbar__mark b { font-weight: 700; }
.topbar__mark span { color: var(--maize-2); }
.topbar__status { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--green-2); color: var(--ivory); font-weight: 600; font-size: var(--step-small); }
.topbar__status i { width: 10px; height: 10px; border-radius: 50%; background: var(--maize); }
.topbar__nav { display: none; gap: 28px; margin-left: auto; font-weight: 500; }
.topbar__nav a { text-decoration: none; position: relative; padding: 11px 0; }
.topbar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.topbar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.topbar__cta { margin-left: auto; min-height: 46px; }
.topbar { transition: background-color .35s; }
.topbar.is-scrolled { background: var(--green); }
.topbar.is-scrolled.is-light { background: var(--ivory); }
.topbar.is-scrolled.is-maize { background: var(--maize); }
.topbar__mark, .topbar__status, .topbar__nav, .topbar__cta { transition: background-color .35s, color .35s; }
.topbar.is-light .topbar__nav, .topbar.is-light .topbar__status, .topbar.is-maize .topbar__nav, .topbar.is-maize .topbar__status { color: var(--green); }
.topbar.is-light .topbar__status { background: var(--ivory-2); }
.topbar.is-maize .topbar__status { background: var(--maize-2); }
.topbar.is-light .topbar__mark, .topbar.is-maize .topbar__mark { color: var(--ivory); }
.topbar.is-light .topbar__mark::before, .topbar.is-maize .topbar__mark::before { background: var(--green); }
.topbar.is-light .topbar__mark span, .topbar.is-maize .topbar__mark span { color: var(--maize); }
.topbar.is-maize .topbar__cta { background: var(--green); color: var(--ivory); }
@media (min-width: 900px) { .topbar__nav { display: flex; } .topbar__cta { margin-left: 8px; } }
@media (max-width: 520px) { .topbar__status span { font-size: .875rem; } .topbar__mark { width: 96px; height: 48px; font-size: 1.3rem; } .topbar__cta { padding: 0 1em; } .topbar__status { padding: 0 12px; height: 40px; } .topbar__cta { min-height: 44px; } }
@media (max-width: 400px) { .topbar__status { display: none; } }

/* ------- Bordes ondulados entre secciones (el borde de la bandeja) ------- */
[data-edge] { position: relative; }
/* taste-skill-ignore: máscara de corte duro que dibuja las ondas del borde de la bandeja (no es un degradado visible) */
[data-edge]::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--scallop) * -1 + 1px); height: var(--scallop); background: var(--bg); -webkit-mask: radial-gradient(circle at 50% 100%, #000 calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2) 100% repeat-x; mask: radial-gradient(circle at 50% 100%, #000 calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(var(--scallop) * 2) 100% repeat-x; z-index: 2; }

/* ------- 01 Héroe ------- */
.s-hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--green); }
.s-hero__motif { position: absolute; left: 50%; top: 54%; width: min(150vw, 1500px); aspect-ratio: 1.42; transform: translate(-50%, -50%); z-index: 0; }
.s-hero__motif svg { width: 100%; height: 100%; }
.s-hero__motif path { fill: var(--green-2); }
.s-hero__title { position: absolute; z-index: 1; left: 0; right: 0; top: clamp(96px, 15svh, 150px); text-align: center; line-height: .8; }
.wordmark { display: inline-block; font-size: var(--step-display); font-weight: 700; letter-spacing: -.045em; color: var(--ivory); white-space: nowrap; }
.wordmark .char, .footer__mark .char { display: inline-block; transform-origin: 50% 100%; }
.s-hero__view { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.s-hero__view .gl-fallback { width: min(78vw, 720px); height: auto; margin-top: 18svh; }
.s-hero__stamp { position: absolute; z-index: 5; right: var(--margin); top: 56%; width: clamp(104px, 11vw, 150px); color: var(--ivory); }
.s-hero__stamp text { font: 600 17px var(--font); letter-spacing: .12em; fill: currentColor; text-transform: uppercase; }
.s-hero__stamp use { fill: var(--maize); }
.s-hero__stamp svg { animation: spin 22s linear infinite; will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }
.s-hero__foot { position: absolute; z-index: 6; left: var(--margin); right: var(--margin); bottom: calc(var(--marquee) * .5 + 40px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.s-hero__lead { flex: 1 1 0; max-width: 25ch; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.s-hero__buy { display: flex; align-items: center; gap: 20px; }
/* El aviso va en su propio renglón, encima del texto: así nunca se pisan. Sólo en pantallas anchas flota al centro, entre el texto y el botón. */
.s-hero__tips { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.s-hero__tips > * { pointer-events: auto; }
.s-hero__gyro { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--green-3); color: var(--ivory); font-weight: 600; font-size: var(--step-small); cursor: pointer; }
.s-hero__hint { font-size: var(--step-small); font-weight: 600; color: var(--ivory); white-space: nowrap; }
@media (min-width: 1200px) { .s-hero__tips { position: absolute; left: 0; right: 0; bottom: 12px; width: max-content; margin: 0 auto; } }
/* Etiqueta que acompaña al mouse sobre un ingrediente */
.cursor-tag { position: fixed; z-index: 40; left: 0; top: 0; padding: 8px 14px; border-radius: 999px; background: var(--maize); color: var(--green); font-weight: 700; font-size: var(--step-small); pointer-events: none; opacity: 0; transform: translate(-50%, -150%) scale(.6); transition: opacity .2s, transform .35s var(--ease-out); }
body.is-poking .cursor-tag { opacity: 1; transform: translate(-50%, -150%) scale(1); }
@media (max-width: 760px) {
  .s-hero__title { top: clamp(92px, 15svh, 140px); }
  .wordmark { font-size: 30.5vw; }
  .s-hero__foot { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 16px; }
  .s-hero__tips { flex: none; margin-bottom: -4px; }
  .s-hero__lead { flex: none; max-width: 22ch; }
  .s-hero__buy { justify-content: space-between; }
  .s-hero__stamp { top: 44%; width: 92px; }
  .s-hero__foot { bottom: calc(var(--marquee) * .5 + 6px); }
  .s-hero__motif { top: 52%; width: 170vw; }
}
/* Celulares angostos: el precio se apila para que el botón entre entero. */
@media (max-width: 400px) {
  .s-hero__buy { gap: 12px; }
  .s-hero__buy .price { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; }
  .s-hero__buy .btn { flex: 1; justify-content: center; padding: 0 .9em; }
}

/* ------- Cintas ------- */
.s-marquee { position: relative; z-index: 5; height: var(--marquee); margin: calc(var(--marquee) * -.5) 0; pointer-events: none; overflow-x: clip; overflow-y: visible; }
.marquee { position: absolute; left: -10%; right: -10%; top: 50%; padding: .45em 0; font-weight: 700; font-size: clamp(1.6rem, 1rem + 2.6vw, 3.4rem); line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.marquee--a { background: var(--maize); color: var(--green); transform: translateY(-62%) rotate(-4deg); }
.marquee--b { background: var(--ivory); color: var(--green); transform: translateY(-38%) rotate(3deg); }
.marquee__track { display: inline-flex; align-items: center; gap: .6em; will-change: transform; }
.marquee__track svg { width: .7em; height: .7em; fill: currentColor; flex: none; }
.marquee--a .marquee__track svg { fill: var(--ivory); }
.marquee--b .marquee__track svg { fill: var(--maize-2); }

/* ------- 02 Definición ------- */
.s-def { --bg: var(--ivory); background: var(--bg); color: var(--ink); padding: calc(var(--gap) + 40px) var(--margin) var(--gap); display: grid; gap: 48px; grid-template-columns: 1fr; position: relative; }
.s-def__word { font-size: var(--step-head); font-weight: 700; letter-spacing: -.04em; line-height: .95; color: var(--green); }
.s-def__phon { margin-top: 14px; font-size: var(--step-body); font-weight: 500; color: var(--green-3); }
.s-def__phon em { font-style: italic; }
.s-def__text { margin-top: 28px; max-width: 30ch; font-size: var(--step-lead); font-weight: 500; line-height: 1.28; letter-spacing: -.01em; }
.s-def__text .split-word { display: inline-block; }
.s-def__syn { margin-top: 24px; max-width: 46ch; }
.s-def__photo { position: relative; }
.s-def__photo img { width: 100%; aspect-ratio: 1.25; object-fit: cover; clip-path: url(#clip-tray); }
.s-def__photo figcaption { margin-top: 14px; font-size: var(--step-small); font-weight: 500; }
.s-def__stamp { position: absolute; right: calc(var(--margin) + 4%); top: calc(var(--gap) - 10px); display: grid; place-items: center; width: clamp(120px, 13vw, 190px); aspect-ratio: 1; background: var(--maize); color: var(--green); font-weight: 700; font-size: clamp(1.25rem, .9rem + 1vw, 1.9rem); line-height: .95; text-align: center; letter-spacing: -.03em; clip-path: url(#clip-tray); transform: rotate(-10deg); }
@media (min-width: 900px) { .s-def { grid-template-columns: 1.05fr 1fr; align-items: center; column-gap: 6vw; } .s-def__stamp { top: auto; bottom: calc(var(--gap) - 60px); right: 44%; } }
@media (max-width: 899px) { .s-def__stamp { top: auto; bottom: calc(var(--gap) + 70px); right: var(--margin); width: 112px; z-index: 2; } .s-def { padding-top: calc(var(--gap) + 30px); } }

/* ------- 03 Así de simple (fijado) ------- */
.s-build { --bg: var(--green); background: var(--bg); position: relative; }
.s-build__pin { position: relative; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--topbar) + 20px) var(--margin) 28px; }
.s-build__head h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -.04em; line-height: .95; }
.s-build__head p { margin-top: 12px; font-size: var(--step-lead); font-weight: 500; max-width: 26ch; line-height: 1.2; }
.s-build__view { position: relative; min-height: 0; }
.s-build__view .gl-fallback { object-fit: contain; height: 100%; }
.s-build__steps { position: relative; display: grid; }
.s-build__steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.s-build__steps li.is-active { opacity: 1; transform: none; }
.s-build__steps h3 { font-size: var(--step-lead); font-weight: 700; letter-spacing: -.02em; color: var(--maize); }
.s-build__steps p { margin-top: 6px; max-width: 34ch; }
.s-build__progress { display: flex; gap: 8px; margin-top: 16px; }
.s-build__progress i { width: 26px; height: 14px; background: var(--green-3); clip-path: url(#clip-tray); transition: background-color .3s, width .5s var(--ease-out); }
.s-build__progress i.is-on { background: var(--maize); width: 42px; }
@media (min-width: 900px) {
  .s-build__pin { grid-template-columns: minmax(320px, 1fr) 1.5fr; grid-template-rows: auto 1fr; column-gap: 4vw; padding-bottom: 48px; }
  .s-build__head { grid-column: 1; grid-row: 1; }
  .s-build__view { grid-column: 2; grid-row: 1 / span 2; }
  .s-build__steps { grid-column: 1; grid-row: 2; align-self: end; display: flex; flex-direction: column; gap: 22px; }
  .s-build__steps li { grid-area: auto; opacity: .58; transform: none; transition: opacity .4s; }
  .s-build__steps li.is-active { opacity: 1; }
  .s-build__steps li h3 { color: var(--ivory); transition: color .3s; }
  .s-build__steps li.is-active h3 { color: var(--maize); }
  .s-build__steps li p { display: none; }
  .s-build__steps li.is-active p { display: block; }
}

/* ------- 04 Enunciado ------- */
.s-say { --bg: var(--ivory); background: var(--bg); color: var(--ink); padding: var(--gap) var(--margin); display: grid; justify-items: center; text-align: center; gap: 36px; }
.s-say__text { max-width: 22em; font-size: clamp(1.6rem, 1rem + 1.6vw, 2.5rem); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.thumb { display: inline-block; vertical-align: -.2em; width: 1.6em; height: 1.05em; margin: 0 .08em; overflow: hidden; clip-path: url(#clip-tray-fine); background: var(--green); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--tray { background: var(--green); }
.thumb--tray img { object-fit: contain; transform: scale(1.15); }
.thumb--cut { background: var(--maize); }
.thumb--cut img { object-fit: contain; }
.s-say__note { font-weight: 500; font-size: var(--step-lead); color: var(--green-3); }

/* ------- 05 Tu punto ------- */
.s-punto { --bg: var(--maize); background: var(--bg); color: var(--green); padding: var(--gap) var(--margin); display: grid; gap: 28px; }
.s-punto h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -.04em; line-height: .95; }
.s-punto__copy > p:first-of-type { margin-top: 14px; max-width: 34ch; font-size: var(--step-body); }
.s-punto__view { position: relative; height: min(62svh, 560px); order: -1; }
.s-punto__view .gl-fallback { object-fit: cover; clip-path: url(#clip-tray); }
.choice { margin: 32px 0 0; padding: 0; border: 0; }
.choice legend, .stepper__label { display: block; margin-bottom: 10px; font-weight: 600; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { width: 100%; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--maize-2); font-weight: 600; transition: background-color .25s, color .25s, transform .3s var(--ease-out); }
.choice label:hover span { background: #d3a82a; }
.choice input:checked + span { background: var(--green); color: var(--ivory); }
.choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.choice label:active span { transform: scale(.96); }
.stepper { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stepper__label { width: 100%; margin: 0; }
.stepper button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--green); color: var(--ivory); font-size: 1.5rem; font-weight: 600; line-height: 1; cursor: pointer; transition: transform .3s var(--ease-out), background-color .25s; }
.stepper button:hover { background: var(--green-3); }
.stepper button:active { transform: scale(.9); }
.stepper button[aria-disabled="true"] { background: var(--maize-2); color: var(--green); cursor: not-allowed; }
.stepper output { min-width: 10ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.s-punto__result { margin-top: 30px; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.s-punto__note { margin-top: 12px; font-size: var(--step-small); font-weight: 500; }
@media (min-width: 900px) { .s-punto { grid-template-columns: 1fr 1.2fr; align-items: center; column-gap: 5vw; } .s-punto__view { order: 0; height: min(78svh, 720px); } }

/* ------- 06 Galería ------- */
.s-gallery { --bg: var(--green); background: var(--bg); }
.s-gallery__pin { height: 100svh; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding: calc(var(--topbar) + 20px) var(--margin) 28px; }
.s-gallery h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -.04em; line-height: .95; }
.s-gallery__frame { position: relative; min-height: 0; }
.frame-slide { position: absolute; inset: 0; overflow: clip; display: grid; grid-template-rows: 1fr auto; gap: 14px; opacity: 0; transition: opacity .7s var(--ease-out); }
.frame-slide.is-active { opacity: 1; }
.frame-slide img { width: 100%; height: 100%; min-height: 0; object-fit: cover; clip-path: url(#clip-tray); transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.frame-slide.is-active img { transform: none; }
.frame-slide figcaption { font-size: var(--step-body); }
.frame-slide figcaption strong { color: var(--maize); }
.s-gallery__dots { display: flex; gap: 8px; }
.s-gallery__dots i { width: 26px; height: 14px; background: var(--green-3); clip-path: url(#clip-tray); transition: background-color .3s, width .5s var(--ease-out); }
.s-gallery__dots i.is-on { background: var(--maize); width: 42px; }
@media (min-width: 900px) {
  .s-gallery__pin { grid-template-columns: 1fr 1.6fr; grid-template-rows: 1fr auto; column-gap: 4vw; }
  .s-gallery h2 { align-self: center; }
  .s-gallery__frame { grid-row: 1 / span 2; grid-column: 2; }
  .s-gallery__dots { grid-column: 1; grid-row: 2; }
}

/* ------- 07 Envíos ------- */
.s-delivery { --bg: var(--ivory); background: var(--bg); color: var(--ink); padding: var(--gap) var(--margin); display: grid; gap: 48px; }
.s-delivery h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -.04em; line-height: .95; color: var(--green); max-width: 9ch; }
.s-delivery__lead { margin-top: 22px; font-size: var(--step-lead); font-weight: 500; line-height: 1.22; max-width: 22ch; }
.s-delivery__list { margin: 30px 0; display: grid; gap: 18px; max-width: 46ch; }
.s-delivery__list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.s-delivery__list svg { width: 18px; height: 20px; margin-top: 4px; fill: var(--maize-2); }
.s-delivery__map { color: var(--green); }
.s-delivery__map svg { width: 100%; height: auto; overflow: visible; }
.map__streets path { fill: none; stroke: var(--ivory-2); stroke-width: 26; stroke-linecap: round; }
.map__streets .minor { stroke-width: 12; }
.map__zone { fill: var(--maize); }
/* La zona de la mañana (desde la apertura) va un tono más tostada, adentro de la grande. */
.map__zone--early { fill: var(--maize-2); }
.map__tag rect { fill: var(--green); }
.map__tag text { font: 700 22px var(--font); fill: var(--ivory); font-variant-numeric: tabular-nums; }
.map__route { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; }
.map__pin circle { fill: var(--green); }
.map__pin text { fill: var(--ivory); font: 700 34px var(--font); }
.map__bike circle { fill: var(--ivory); stroke: var(--green); stroke-width: 5; }
.map__bike path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.map__label { font: 600 20px var(--font); fill: var(--green); }
.map__radius { font: 700 30px var(--font); fill: var(--green); }
.s-delivery__map figcaption { margin-top: 12px; font-size: var(--step-small); font-weight: 500; }
@media (min-width: 900px) { .s-delivery { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 6vw; } }

/* ------- 08 Preguntas ------- */
.s-faq { --bg: var(--maize); background: var(--bg); color: var(--green); padding: var(--gap) var(--margin); display: grid; gap: 40px; }
.s-faq h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -.04em; line-height: .95; text-wrap: balance; }
.s-faq__list { display: grid; gap: 10px; }
.s-faq details { background: var(--ivory); color: var(--ink); border-radius: var(--radius); transition: background-color .3s; }
.s-faq details[open] { background: var(--green); color: var(--ivory); }
.s-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 22px; cursor: pointer; list-style: none; font-size: var(--step-lead); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--maize); transition: transform .4s var(--ease-out); }
.s-faq summary i::before, .s-faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; background: var(--green); transform: translate(-50%, -50%); border-radius: 2px; }
.s-faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease-out); }
.s-faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.s-faq details[open] summary i { transform: rotate(180deg); }
.s-faq details p { padding: 0 22px 22px; max-width: 58ch; }
@media (min-width: 900px) { .s-faq { grid-template-columns: 1.2fr 1.3fr; column-gap: 5vw; align-items: start; } }

/* ------- 09 Cierre ------- */
.s-cta { --bg: var(--green); background: var(--bg); padding: var(--gap) var(--margin); display: grid; gap: 24px; overflow: hidden; }
.s-cta__view { height: min(58svh, 560px); }
.s-cta h2 { font-size: var(--step-head); font-weight: 700; letter-spacing: -.04em; line-height: .95; }
.s-cta__copy > p:first-of-type { margin-top: 14px; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; max-width: 22ch; }
.s-cta .price--big { margin: 28px 0 22px; color: var(--maize); }
.s-cta .price--big span { color: var(--ivory); }
.s-cta__note { margin-top: 16px; font-size: var(--step-small); font-weight: 500; }
@media (min-width: 900px) { .s-cta { grid-template-columns: 1.3fr 1fr; align-items: center; column-gap: 4vw; } .s-cta__view { height: min(80svh, 760px); } }

/* ------- Pie ------- */
.footer { --bg: var(--ivory); background: var(--bg); color: var(--green); padding: 60px var(--margin) 28px; overflow: hidden; }
.footer__mark { font-size: min(var(--step-display), 25vw); font-weight: 700; letter-spacing: -.05em; line-height: .78; text-align: center; white-space: nowrap; }
.footer__mark .char:last-child { color: var(--maize-2); }
.footer__row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: var(--step-small); font-weight: 500; }
.footer__row a { display: inline-flex; align-items: center; min-height: 44px; }

/* La firma: discreta en el pie; al tocarla cae un sello con la forma de la bandeja sobre el nombre. */
.firma { --sello: min(360px, 100%); position: relative; display: flex; justify-content: center; margin-top: 8px; }
.firma__toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border: 0; background: none; color: inherit; font: inherit; font-size: var(--step-small); font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; text-decoration-color: var(--maize-2); }
.firma__toggle svg { flex: none; width: 15px; height: 17px; fill: var(--maize-2); transition: transform .45s var(--ease-out); }
.firma__toggle:hover svg, .firma__toggle[aria-expanded="true"] svg { transform: rotate(-20deg) scale(1.25); }
.firma__sello { position: absolute; z-index: 3; left: 50%; bottom: calc(100% + 4px); width: var(--sello); margin-left: calc(var(--sello) / -2); aspect-ratio: 1.42; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 0 calc(var(--sello) * .13); background: var(--maize); color: var(--green); text-align: center; clip-path: url(#clip-tray); transform: rotate(-4deg); }
.firma__sello[hidden] { display: none; }
.firma__titulo { font-size: var(--step-lead); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.firma__texto { font-size: var(--step-small); font-weight: 500; line-height: 1.3; text-wrap: balance; }
.firma__wa { min-height: 44px; margin-top: 4px; padding: 0 1.1em; font-size: var(--step-small); }
.firma__wa:hover { background: var(--green-3); }
.firma__grano { position: absolute; left: 50%; bottom: calc(100% + 60px); z-index: 4; width: 16px; height: 18px; fill: var(--maize-2); pointer-events: none; }

/* ------- Estado de la tienda en la barra ------- */
.topbar__status.is-closed i { background: #b9b2a0; }

/* ------- Hoja de pedido: del antojo al pago ------- */
html.sheet-open { overflow: hidden; }
.sheet { width: 100%; max-width: 560px; max-height: min(94svh, 940px); margin: auto auto 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: var(--ivory); color: var(--ink); overflow: hidden; overscroll-behavior: contain; }
.sheet[open] { display: flex; animation: sheet-up .55s var(--ease-out); }
.sheet::backdrop { background: rgb(18 38 31 / .6); animation: sheet-fade .35s ease-out; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-side { from { transform: translateX(105%); } }
@keyframes sheet-fade { from { opacity: 0; } }
@media (min-width: 761px) {
  .sheet { margin: 16px 16px 16px auto; height: calc(100svh - 32px); max-height: none; border-radius: 28px; }
  .sheet[open] { animation-name: sheet-side; }
}
.sheet__form { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; margin: 0; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 22px 14px; }
.sheet__head h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--green); }
.sheet__close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ivory-2); color: var(--green); cursor: pointer; transition: transform .3s var(--ease-out), background-color .25s; }
.sheet__close:hover { background: var(--maize); }
.sheet__close:active { transform: scale(.92); }
.sheet__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sheet__body { flex: 1; min-height: 0; overflow-x: clip; overflow-y: auto; padding: 0 22px 18px; overscroll-behavior: contain; }
.sheet :focus-visible { outline-color: var(--green); }
.sheet__notice { margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; background: var(--maize); color: var(--green); font-weight: 600; font-size: var(--step-small); }
.sheet__notice.is-closed { background: var(--green); color: var(--ivory); }
.sheet__block { margin: 0; padding: 18px 0 20px; border: 0; border-top: 2px solid var(--ivory-2); min-width: 0; }
.sheet__block legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font-size: var(--step-body); font-weight: 700; color: var(--green); }
.sheet__block > legend + * { clear: both; }
.sheet__products { display: grid; gap: 10px; }
.sheet__products li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; background: #fff; border: 2px solid transparent; transition: border-color .25s; }
.sheet__products li.is-on { border-color: var(--maize); }
.sheet__products img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; background: var(--ivory-2); }
.sheet__pname { font-weight: 600; line-height: 1.2; }
.sheet__pprice { margin-top: 2px; font-size: var(--step-small); color: #4b5a52; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--green); color: var(--ivory); font-size: 1.35rem; font-weight: 600; line-height: 1; cursor: pointer; transition: transform .25s var(--ease-out), background-color .2s; }
.qty button:active { transform: scale(.9); }
.qty button[aria-disabled="true"] { background: var(--ivory-2); color: #6b7670; cursor: not-allowed; }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
/* Muy angosto (o letra muy grande): los botones de cantidad bajan debajo del nombre. */
@media (max-width: 309px) {
  .sheet__products li { grid-template-columns: 48px 1fr; gap: 8px 12px; }
  .sheet__products img { width: 48px; height: 48px; border-radius: 12px; }
  .sheet__products .qty { grid-column: 2; }
}
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: var(--ivory-2); }
.seg[hidden] { display: none; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 48px; border-radius: 999px; font-weight: 600; transition: background-color .25s, color .25s; }
.seg input:checked + span { background: var(--green); color: var(--ivory); }
.seg input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.seg input:disabled + span { opacity: .45; text-decoration: line-through; }
.sheet__when { margin-top: 12px; }
.sheet__when[hidden] { display: none; }
.sheet__hint { font-size: var(--step-small); font-weight: 500; color: #3d4c44; }
.sheet__hint--far { margin-top: 6px; padding: 10px 14px; border-radius: 12px; background: #fff; }
.sheet__hint[hidden] { display: none; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 8px; font-weight: 500; cursor: pointer; }
.check[hidden] { display: none; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--green); cursor: pointer; }
/* Tarjeta «marcá tu casa en el mapa» */
.spot { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 68px; margin-top: 12px; padding: 12px 14px; border: 2px solid var(--ivory-2); border-radius: 18px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .25s, transform .3s var(--ease-out); }
.spot[hidden] { display: none; }
.spot:hover { border-color: var(--maize); }
.spot:active { transform: scale(.985); }
.spot:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.spot.is-set { border-color: var(--maize); }
.spot[aria-busy="true"] { cursor: progress; opacity: .7; }
.spot__pin { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--maize); color: var(--green); }
.spot__pin svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.spot__text { display: grid; gap: 2px; min-width: 0; }
.spot__text strong { font-weight: 700; line-height: 1.25; color: var(--green); overflow-wrap: anywhere; text-wrap: balance; }
.spot__text small { font-size: var(--step-small); font-weight: 500; color: #4b5a52; text-wrap: pretty; }
.spot__go { font-size: var(--step-small); font-weight: 700; color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
/* ¿Para cuándo? Días y turnos como fichas */
/* Sin la elección de arriba, los turnos quedan pegados al título flotante: siempre van debajo. */
.slots { clear: both; margin-top: 12px; }
.slots[hidden] { display: none; }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.days[hidden] { display: none; }
.times { display: flex; gap: 8px; margin: 6px -22px 0; padding: 8px 22px 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 22px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--ivory-2) transparent; }
.pick { position: relative; flex: none; scroll-snap-align: start; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: grid; place-items: center; align-content: center; min-height: 44px; padding: 0 18px; border: 2px solid #d9d2bf; border-radius: 999px; background: #fff; font-weight: 600; transition: background-color .2s, border-color .2s, color .2s; }
/* Ancho fluido: en cualquier celu se asoma medio turno a la derecha, así se nota que la fila sigue. */
.times .pick { flex: 0 0 clamp(72px, (100% - 10px) / 4.5, 88px); }
.times .pick span { min-height: 60px; padding: 6px 8px; border-radius: 16px; }
.pick b { font-weight: 700; font-variant-numeric: tabular-nums; }
.pick small { font-size: .75rem; font-weight: 500; color: #56645c; font-variant-numeric: tabular-nums; }
.pick input:checked + span { border-color: var(--green); background: var(--green); color: var(--ivory); }
.pick input:checked + span small { color: var(--ivory-2); }
.pick input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
@media (hover: hover) { .pick:hover input:not(:checked) + span { border-color: var(--maize); } }
.when-say { clear: both; margin-top: 12px; text-wrap: pretty; }
.when-say:empty { display: none; }
.sheet__privacy { margin-top: 6px; font-size: .8125rem; font-weight: 500; color: #4b5a52; }
.sheet__privacy .link { min-height: 32px; font-size: inherit; color: var(--green); }
.sheet__privacy .link[hidden] { display: none; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field > span { font-size: var(--step-small); font-weight: 600; }
.field i { font-style: normal; font-weight: 500; color: #56645c; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid #d9d2bf; border-radius: 14px; background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.4; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 76px; font: inherit; font-size: 1rem; }
.field input::placeholder, .field textarea::placeholder { color: #6f7a73; }
.field input:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--maize); outline-offset: 1px; }
.field [aria-invalid] { border-color: #b3261e; }
.field em { font-style: normal; font-size: var(--step-small); font-weight: 600; color: #9c2318; }
.field em:empty { display: none; }
.sheet__foot { padding: 14px 22px calc(16px + env(safe-area-inset-bottom)); background: var(--ivory); border-top: 2px solid var(--ivory-2); }
.sheet__sum { display: grid; gap: 2px; margin: 0 0 12px; font-size: var(--step-small); line-height: 1.4; }
.sheet__sum div { display: flex; justify-content: space-between; gap: 12px; }
.sheet__sum div[hidden] { display: none; }
.sheet__sum dt { color: #3d4c44; font-weight: 500; }
.sheet__sum dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet__error { margin-bottom: 12px; padding: 12px 16px; border-radius: 14px; background: #f7ddd5; color: #7a1d12; font-weight: 600; font-size: var(--step-small); }
.sheet__error[hidden] { display: none; }
.sheet__error .link { min-height: 36px; margin-top: 4px; color: var(--green); }
/* Celulares angostos o con letra grande: el texto nunca empuja el total fuera del botón. */
.sheet__pay { width: 100%; justify-content: space-between; white-space: normal; text-align: left; }
.sheet__pay span { min-width: 0; text-wrap: balance; }
.sheet__pay strong { flex: none; font-variant-numeric: tabular-nums; }
/* Sin poder pagar todavía (o yendo a Mercado Pago) el total sobra: el texto va solo y centrado. */
.sheet__pay[aria-disabled="true"] { justify-content: center; text-align: center; }
.sheet__pay[aria-disabled="true"] span { line-height: 1.1; }
/* Envío a cotizar: todavía no se cobra, así que el botón no muestra un total. */
.sheet__pay[data-quote] { justify-content: center; text-align: center; }
.sheet__pay[data-quote] strong { display: none; }
.sheet__trust[hidden] { display: none; }
.sheet__pay[aria-disabled="true"] strong { display: none; }
.sheet__pay.btn--maize:hover { background: var(--maize-2); }
.sheet__pay[aria-disabled="true"] { background: var(--ivory-2); color: #56645c; cursor: not-allowed; }
.sheet__pay[aria-busy="true"] { background: var(--maize); color: var(--green); cursor: progress; }
.sheet__pay[aria-busy="true"] span { animation: pay-pulse 1.1s ease-in-out infinite; }
@keyframes pay-pulse { 50% { opacity: .45; } }
.sheet__trust { margin-top: 10px; font-size: .8125rem; font-weight: 500; color: #4b5a52; text-align: center; text-wrap: balance; }

/* ------- Acceso al último pedido ------- */
.last-order { position: fixed; z-index: 20; left: var(--margin); bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--ivory); color: var(--green); font-weight: 600; font-size: var(--step-small); text-decoration: none; box-shadow: 0 8px 24px rgb(18 38 31 / .28); }
.last-order b { font-variant-numeric: tabular-nums; }
.last-order svg { width: 1.1em; height: 1.1em; }
.last-order[hidden] { display: none; }

/* ------- Movimiento: entradas ------- */
.split-line { padding-bottom: .08em; }
html.anim [data-rise] { opacity: 0; transform: translateY(26px); }

/* Sin movimiento: las escenas fijadas se leen como páginas normales. */
.static .s-build__pin, .static .s-gallery__pin { height: auto; min-height: 100svh; }
.static .s-build__steps { gap: 18px; }
.static .s-build__steps li { grid-area: auto; opacity: 1; transform: none; }
.static .s-build__steps li p { display: block; }
.static .s-gallery__frame { display: grid; gap: 28px; }
.static .frame-slide { position: relative; opacity: 1; }
.static .frame-slide img { transform: none; aspect-ratio: 4 / 5; height: auto; }
.static .s-gallery__dots { display: none; }

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