/* =========================================================================
   HUMO LIBRE · Tienda
   Paleta: noche de Surquillo, humo, papel de enrolar, verde de marca,
   vidrio y brasa (el naranja de Artifum, solo para acciones).
   ========================================================================= */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/anton-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2-variations'), url(../fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2'); }

:root {
  --noche: #0B120E;
  --noche-2: #121C16;
  --humo: #C9D1CB;
  --humo-dim: #8E9A92;
  --papel: #E4E8E1;
  --papel-2: #F2F4EF;
  --tinta: #13201A;
  --tinta-dim: #4E5E55;
  --verde: #1DB653;
  --vidrio: #0F5A33;
  --brasa: #F07826;
  --brasa-hot: #FF8A3D;
  --wa: #1FA855;

  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --text: 'Bricolage Grotesque', system-ui, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.1vw, 0.88rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.45vw, 1.42rem);
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  --step-4: clamp(3rem, 2rem + 5vw, 6.5rem);
  --step-5: clamp(3.6rem, 1.5rem + 9vw, 10rem);

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bar-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--noche); color: var(--humo);
  font-family: var(--text); font-size: var(--step-0); line-height: 1.55;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-gated { overflow: hidden; height: 100svh; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brasa); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--brasa); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
main, .bar { position: relative; z-index: 2; }

/* ---------- Logotipo ---------- */
.lockup { font-family: var(--display); display: inline-grid; line-height: .84; letter-spacing: -.01em; text-transform: uppercase; }
.lockup__a { color: var(--verde); font-size: 1em; }
.lockup__b { color: #EEF1EC; font-size: 1.28em; }
.lockup__by { font-family: var(--text); font-size: .2em; font-weight: 800; justify-self: end; color: #EEF1EC; text-transform: none; letter-spacing: .02em; line-height: 1.6; }
.lockup__by b { color: var(--brasa); font-style: italic; }
.lockup--sm { font-size: 19px; }
.lockup--xl { font-size: clamp(5rem, 20vw, 16rem); }

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: var(--step-0); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .25s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn--ember { --bg: var(--brasa); --fg: #160A02; }
.btn--ember:hover { --bg: var(--brasa-hot); }
.btn--ghost { border-color: rgba(201, 209, 203, .45); --fg: #EEF1EC; }
.btn--ghost:hover { border-color: #EEF1EC; --bg: rgba(238, 241, 236, .08); }
.btn--quiet { --bg: #E7EBE5; --fg: var(--tinta); }
.btn--quiet:hover { --bg: #DCE2DA; }
.btn--paper { --bg: var(--papel); --fg: var(--tinta); }
.btn--paper:hover { --bg: #fff; }
.btn--wa { --bg: var(--wa); --fg: #fff; }
.btn--wa:hover { --bg: #189148; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Gate +18 ---------- */
.gate {
  position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 55%, transparent 0 35%, rgba(11, 18, 14, .55) 100%);
  transition: opacity .9s var(--ease), visibility .9s;
  overflow-y: auto;
}
.gate.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.no-gl .gate { background: radial-gradient(circle at 50% 35%, #1D3724, var(--noche) 70%); }
.gate__brand { font-size: clamp(34px, 7vw, 58px); margin-top: 1vh; }
.gate__stage { position: relative; width: min(400px, 100%); align-self: center; padding-top: 128px; }
.gate__bruma { position: absolute; left: 50%; top: 0; width: 170px; height: auto; transform: translateX(-50%); z-index: 1; filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); animation: peek 1.2s .3s var(--ease) both; }
@keyframes peek { from { transform: translate(-50%, 70px); opacity: 0; } }
.gate__card {
  position: relative; z-index: 2; background: var(--papel-2); color: var(--tinta);
  border-radius: 28px; padding: 26px 26px 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.gate__card.is-hit { animation: hit .35s ease-out; }
@keyframes hit { 25% { transform: translateY(4px) scale(.985) rotate(-.6deg); } 50% { transform: translateY(-2px) rotate(.4deg); } }
.gate__kicker { margin: 0 0 4px; color: var(--vidrio); font-weight: 700; font-size: var(--step--1); }
.gate__kicker--stop { color: #B42318; }
.gate__card h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.gate__actions { display: flex; gap: 10px; }
.gate__actions .btn--ember { flex: 1; }
.gate__fine { margin: 14px 0 0; color: var(--tinta-dim); font-size: var(--step--1); }
.gate__step { position: relative; }
.stamp { position: absolute; right: -6px; bottom: -14px; width: 110px; height: 110px; opacity: 0; }
.stamp.is-on { animation: slam .45s var(--ease) forwards; }
@keyframes slam { 0% { opacity: 0; transform: scale(3.2) rotate(-30deg); } 60% { opacity: 1; transform: scale(.88) rotate(-12deg); } 100% { opacity: 1; transform: scale(1) rotate(-14deg); } }
.gate__foot { color: rgba(238, 241, 236, .75); font-size: var(--step--1); margin: 10px 0 0; }

/* ---------- Barra ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: transform .45s var(--ease), background-color .3s; }
.bar__note { margin: 0; text-align: center; font-size: 12.5px; padding: 6px 12px; background: var(--vidrio); color: #E9F7EE; }
.bar__row { display: flex; align-items: center; gap: 20px; padding: 10px var(--gutter); }
.bar.is-solid .bar__row { background: rgba(11, 18, 14, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar.is-on-paper .bar__row { background: rgba(228, 232, 225, .86); color: var(--tinta); }
.bar.is-on-paper .lockup__b { color: var(--tinta); }
.bar.is-hidden { transform: translateY(-100%); }
.bar__brand { text-decoration: none; display: flex; }
.bar__nav { display: flex; gap: 22px; margin: 0 auto; font-weight: 600; font-size: 15px; }
.bar__nav a { text-decoration: none; opacity: .8; padding: 6px 0; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px; transition: background-size .3s var(--ease), opacity .2s; }
.bar__nav a:hover, .bar__nav a.is-current { opacity: 1; background-size: 100% 1.5px; }
.bar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.bar__nav + .bar__actions { margin-left: 0; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; opacity: .85; }
.icon-btn:hover { opacity: 1; }
.icon-btn svg { width: 20px; height: 20px; }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px 6px 18px; border-radius: 999px; border: 0; background: var(--brasa); color: #160A02; font-weight: 700; cursor: pointer; }
.cart-btn__count { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; background: #160A02; color: #fff; font-size: 14px; font-weight: 700; }
.cart-btn.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--gutter) clamp(36px, 7vh, 72px); }
.hero__fallback { display: none; }
.no-gl .hero__fallback { display: block; position: absolute; top: 16vh; left: var(--gutter); }
.hero__copy { max-width: 36rem; }
.hero__tag { font-family: var(--display); font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); line-height: .95; color: #EEF1EC; margin: 0 0 12px; text-transform: uppercase; }
.hero__text { margin: 0 0 24px; font-size: var(--step-1); line-height: 1.45; color: var(--humo); max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 22px 0 0; font-size: var(--step--1); color: var(--humo-dim); }
.hero__meta b { color: var(--verde); font-weight: 700; }
.hero__hint--touch { display: none; }
@media (pointer: coarse) { .hero__hint--pointer { display: none; } .hero__hint--touch { display: inline; } }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; width: 1.5px; height: 46px; background: rgba(238,241,236,.2); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--verde); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.is-revealed .reveal { opacity: 1; transform: none; }

/* ---------- Capítulos (scrollytelling) ---------- */
.ch { position: relative; height: 260vh; }
.ch--flavors { height: 480vh; }
.ch__pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding: var(--bar-h) var(--gutter) 40px; overflow: hidden; }
.ch__pin::after { content: ''; position: absolute; inset: 0 auto 0 0; width: min(760px, 62vw); background: radial-gradient(ellipse at 0% 55%, rgba(11,18,14,.72), transparent 70%); pointer-events: none; opacity: var(--o, 1); }
.ch__text { position: relative; z-index: 1; width: min(31rem, 46vw); opacity: var(--o, 1); transform: translateY(calc((1 - var(--o, 1)) * 30px)); }
.ch__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: var(--step-4); line-height: .9; color: #EEF1EC; margin: 0 0 18px; letter-spacing: -.005em; }
.ch__lead { font-size: var(--step-1); line-height: 1.45; margin: 0 0 26px; max-width: 28em; }
.ch__fallback { display: none; }
.no-gl .ch__fallback { display: block; width: min(40vw, 420px); margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }

.flavor-now { margin: 0 0 18px; min-height: 7.2rem; }
.flavor-now__name { font-family: var(--display); font-size: clamp(2.6rem, 1.8rem + 3vw, 4.6rem); line-height: .95; margin: 0; color: var(--fl, var(--verde)); text-transform: uppercase; transition: color .5s; }
.flavor-now__name.is-swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.flavor-now__notes { margin: 6px 0 0; color: var(--humo); }
.flavor-list { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 26px; }
.flavor-list li { width: 30px; height: 6px; border-radius: 3px; background: rgba(238,241,236,.18); transition: background-color .4s, width .4s var(--ease); }
.flavor-list li.is-on { width: 54px; background: var(--c); }

.facts { display: flex; gap: clamp(18px, 3vw, 40px); margin: 0 0 28px; }
.facts div { border-left: 1.5px solid rgba(29, 182, 83, .6); padding-left: 12px; }
.facts dt { font-family: var(--display); font-size: var(--step-2); color: #EEF1EC; line-height: 1; }
.facts dd { margin: 4px 0 0; font-size: var(--step--1); color: var(--humo-dim); }

/* ---------- Catálogo (papel) ---------- */
.catalog {
  position: relative; z-index: 3; background: var(--papel); color: var(--tinta);
  padding: calc(var(--bar-h) + 24px) var(--gutter) 90px;
  background-image: repeating-linear-gradient(0deg, rgba(19, 32, 26, .028) 0 1px, transparent 1px 5px);
}
.catalog::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: linear-gradient(var(--vidrio), var(--vidrio)) 0 0 / 100% 4px no-repeat; opacity: .9; }
.catalog__head { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 10px 40px; align-items: end; margin-bottom: 26px; }
.catalog__title { font-family: var(--display); font-weight: 400; font-size: var(--step-5); line-height: .82; margin: 0; text-transform: uppercase; color: var(--tinta); grid-column: 1; }
.catalog__lead { grid-column: 1; margin: 0; max-width: 34em; color: var(--tinta-dim); }
.search { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: flex; align-items: center; gap: 10px; background: var(--papel-2); border: 1.5px solid rgba(19,32,26,.18); border-radius: 999px; padding: 0 18px; min-height: 52px; }
.search:focus-within { border-color: var(--vidrio); }
.search svg { width: 20px; height: 20px; color: var(--tinta-dim); flex: none; }
.search input { border: 0; background: transparent; outline: none; width: 100%; padding: 12px 0; }

.tabs { position: sticky; top: var(--bar-tabs, 64px); z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin: 0 calc(var(--gutter) * -1) 10px; padding-inline: var(--gutter); background: linear-gradient(var(--papel) 75%, transparent); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(19,32,26,.2); background: transparent; color: var(--tinta); font-weight: 600; cursor: pointer; }
.tab:hover { border-color: var(--tinta); }
.tab[aria-pressed="true"] { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }
.tab small { opacity: .6; font-weight: 500; margin-left: 4px; }

.cat-block { padding-top: 34px; scroll-margin-top: 150px; }
.cat-block__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; border-bottom: 1.5px solid var(--tinta); padding-bottom: 10px; margin-bottom: 20px; }
.cat-block__head h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); text-transform: uppercase; margin: 0; line-height: 1; }
.cat-block__head p { margin: 0; color: var(--tinta-dim); font-size: var(--step--1); max-width: 48em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 22px; }

.card { position: relative; display: flex; flex-direction: column; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.card__stage { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; background: radial-gradient(circle at 50% 38%, #fff 0, var(--papel-2) 55%, #D9DFD6 100%); display: grid; place-items: center; overflow: hidden; margin-bottom: 12px; }
.card__stage img { width: 82%; height: 82%; object-fit: contain; transition: transform .6s var(--ease); filter: drop-shadow(0 16px 18px rgba(19,32,26,.25)); }
.card:hover .card__stage img, .card:focus-visible .card__stage img { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.card__flag { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--tinta); color: var(--papel); }
.card__flag--out { background: #B42318; color: #fff; }
.card__dots { position: absolute; right: 12px; bottom: 12px; display: flex; }
.card__dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--papel-2); margin-left: -5px; background: var(--c); }
.card__eyebrow { font-size: 12.5px; font-weight: 700; color: var(--vidrio); margin: 0 0 2px; }
.card__name { font-weight: 800; font-size: var(--step-1); line-height: 1.15; margin: 0 0 4px; letter-spacing: -.01em; }
.card__sub { margin: 0 0 10px; color: var(--tinta-dim); font-size: var(--step--1); line-height: 1.4; }
.card__row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__price { font-weight: 800; font-size: var(--step-1); }
.card__price small { font-weight: 500; font-size: 13px; color: var(--tinta-dim); margin-right: 4px; }
.card__add { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brasa); color: #160A02; font-size: 24px; font-weight: 600; line-height: 1; transition: transform .3s var(--ease); }
.card:hover .card__add { transform: rotate(90deg); }
.card.is-out { opacity: .55; }
.empty { padding: 48px 0; text-align: center; color: var(--tinta-dim); }
.empty .btn { margin-top: 12px; }

/* ---------- Cómo pedir ---------- */
.steps { padding: 120px var(--gutter) 80px; }
.steps__title { font-family: var(--display); font-weight: 400; font-size: var(--step-4); text-transform: uppercase; line-height: .9; color: #EEF1EC; margin: 0 0 40px; }
.steps__list { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 0; margin: 0; }
.steps__list li { counter-increment: s; border-top: 1.5px solid rgba(238,241,236,.25); padding-top: 18px; }
.steps__list li::before { content: counter(s); font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--verde); display: block; margin-bottom: 12px; }
.steps__list h3 { margin: 0 0 6px; font-size: var(--step-1); color: #EEF1EC; }
.steps__list p { margin: 0; color: var(--humo); max-width: 24em; }

/* ---------- Tienda y mayoristas ---------- */
.visit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; padding: 40px var(--gutter) 100px; }
.visit article { border-radius: 30px; padding: clamp(24px, 4vw, 48px); }
.visit h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: var(--step-2); line-height: 1; margin: 0 0 16px; }
.visit p { margin: 0 0 10px; max-width: 34em; }
.visit__store { background: var(--papel); color: var(--tinta); }
.visit__addr { font-weight: 700; font-size: var(--step-1); }
.visit__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.visit__store .btn--ghost { --fg: var(--tinta); border-color: rgba(19,32,26,.3); }
.visit__wholesale { background: var(--vidrio); color: #E9F7EE; display: flex; flex-direction: column; align-items: flex-start; }
.visit__wholesale h2 { color: #fff; }
.visit__wholesale .btn { margin-top: auto; }
.visit__wholesale p { margin-bottom: 24px; }

/* ---------- Footer ---------- */
.foot { padding: 0 var(--gutter) max(28px, env(safe-area-inset-bottom)); }
.foot__word { font-family: var(--display); font-size: clamp(4.5rem, 21vw, 22rem); line-height: .78; margin: 0 0 24px; color: #EEF1EC; text-transform: uppercase; white-space: nowrap; letter-spacing: -.01em; }
.foot__word span { color: var(--verde); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; border-top: 1.5px solid rgba(238,241,236,.2); padding-top: 18px; font-size: var(--step--1); color: var(--humo-dim); }
.foot__row p { margin: 0; max-width: 40em; }
.foot__row a { margin-right: 18px; }

/* ---------- Bruma ---------- */
.bruma { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(6px, env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: flex-end; pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.bruma.is-away { opacity: 0; transform: translateY(40px); }
.bruma__btn { pointer-events: auto; width: 74px; height: 110px; padding: 0; border: 0; background: none; cursor: pointer; order: 1; }
.bruma__btn img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); animation: float 3.6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.bruma__bubble { order: 0; margin: 0 -6px 70px 0; max-width: 220px; background: var(--papel-2); color: var(--tinta); font-size: 13.5px; line-height: 1.35; font-weight: 600; padding: 10px 14px; border-radius: 16px 16px 4px 16px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); transition: opacity .35s, transform .35s var(--ease); }
.bruma__bubble.is-hidden { opacity: 0; transform: translateY(8px) scale(.96); }

/* ---------- Hoja de producto ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; color: var(--tinta); background: transparent; }
dialog::backdrop { background: rgba(5, 9, 7, .62); backdrop-filter: blur(6px); }
.sheet { width: min(1060px, 100vw - 32px); margin: auto; }
.sheet[open] .sheet__inner { animation: rise .5s var(--ease); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet__inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; grid-template-rows: 1fr auto; background: var(--papel-2); border-radius: 30px; overflow: hidden; max-height: min(860px, calc(100svh - 32px)); }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); display: grid; place-items: center; cursor: pointer; color: var(--tinta); }
.sheet__close svg { width: 22px; height: 22px; }
.sheet__stage { grid-row: 1 / span 2; position: relative; min-height: 420px; background: radial-gradient(circle at 55% 40%, color-mix(in srgb, var(--fl, #1DB653) 55%, #fff) 0%, var(--fl, #1DB653) 45%, color-mix(in srgb, var(--fl, #1DB653) 45%, #000) 100%); transition: background .6s; display: grid; place-items: center; overflow: hidden; }
.sheet__stage::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 110%, rgba(255,255,255,.35), transparent 60%); pointer-events: none; }
.sheet__img { width: 62%; max-width: 360px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.35)); transition: transform .6s var(--ease); z-index: 1; }
.sheet__img.is-pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.06) rotate(-3deg); } }
.sheet__bruma { position: absolute; left: 10px; bottom: 0; width: 130px; z-index: 2; }
.sheet__bruma img { width: 100%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.sheet__says { position: absolute; left: 96px; bottom: 140px; white-space: nowrap; background: #fff; color: var(--tinta); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 14px 14px 14px 4px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.sheet__info { padding: 34px 34px 10px; overflow-y: auto; overscroll-behavior: contain; }
.sheet__eyebrow { margin: 0 0 4px; font-size: var(--step--1); font-weight: 700; color: var(--vidrio); }
.sheet__name { margin: 0 0 10px; font-size: var(--step-2); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; padding-right: 40px; }
.sheet__desc { margin: 0 0 18px; color: var(--tinta-dim); }
.sheet__h { font-size: var(--step-0); font-weight: 800; margin: 0 0 10px; padding: 0; }
.sheet__h span { font-weight: 500; color: var(--tinta-dim); }
.sheet__specs { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; }
.sheet__specs li { padding-left: 24px; position: relative; font-size: var(--step--1); }
.sheet__specs li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--verde); border-bottom: 2px solid var(--verde); transform: rotate(-45deg); }
.opts { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.opts__list { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; border-radius: 16px; border: 1.5px solid rgba(19,32,26,.16); background: #fff; cursor: pointer; text-align: left; }
.opt:hover { border-color: rgba(19,32,26,.4); }
.opt[aria-checked="true"] { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.opt b { white-space: nowrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid rgba(19,32,26,.16); background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; }
.sw i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -4px 8px rgba(0,0,0,.2); }
.sw sup { font-size: 10px; color: var(--brasa); font-weight: 800; }
.sw[aria-checked="true"] { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.sheet__notes { margin: 10px 0 0; color: var(--tinta-dim); font-size: var(--step--1); min-height: 1.4em; }
.sheet__foot { display: flex; gap: 12px; padding: 14px 34px 22px; border-top: 1.5px solid rgba(19,32,26,.1); background: var(--papel-2); }
.qty { display: flex; align-items: center; border: 1.5px solid rgba(19,32,26,.2); border-radius: 999px; }
.qty button { width: 44px; height: 48px; border: 0; background: none; font-size: 22px; cursor: pointer; border-radius: 999px; }
.qty output { min-width: 28px; text-align: center; font-weight: 800; }

/* ---------- Pedido ---------- */
.cart { margin: 0 0 0 auto; height: 100%; width: min(480px, 100vw); }
.cart[open] .cart__inner { animation: slide .45s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.cart__inner { height: 100svh; display: flex; flex-direction: column; background: var(--papel-2); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 12px; position: relative; }
.cart__head h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.2rem; line-height: 1; }
.cart__head .sheet__close { position: static; background: #E7EBE5; }
.cart__body { flex: 1; overflow-y: auto; padding: 0 22px 20px; overscroll-behavior: contain; }
.cart__items { list-style: none; padding: 0; margin: 0 0 16px; }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1.5px solid rgba(19,32,26,.08); }
.ci img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 14px; padding: 4px; }
.ci h4 { margin: 0; font-size: 15px; line-height: 1.25; }
.ci p { margin: 2px 0 0; font-size: 13px; color: var(--tinta-dim); }
.ci__fl { display: inline-flex; align-items: center; gap: 6px; }
.ci__fl i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ci__side { text-align: right; }
.ci__side strong { display: block; margin-bottom: 6px; }
.ci .qty { border-width: 1px; }
.ci .qty button { width: 32px; height: 32px; font-size: 18px; }
.ci .qty output { min-width: 20px; font-size: 14px; }
.cart__empty { text-align: center; padding: 50px 0; color: var(--tinta-dim); }
.ship-meter { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #E5F4EA; color: var(--vidrio); font-size: 14px; font-weight: 600; }
.ship-meter i { display: block; height: 5px; border-radius: 3px; background: rgba(15,90,51,.15); margin-top: 8px; overflow: hidden; }
.ship-meter i::after { content: ''; display: block; height: 100%; width: var(--w); background: var(--verde); border-radius: 3px; transition: width .5s var(--ease); }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.checkout legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg--wrap { grid-template-columns: repeat(4, 1fr); }
.seg button { min-height: 46px; padding: 6px 8px; border-radius: 14px; border: 1.5px solid rgba(19,32,26,.16); background: #fff; font-weight: 600; font-size: 13.5px; line-height: 1.2; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--tinta); color: var(--papel-2); border-color: var(--tinta); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.fields__group { display: contents; }
.fields__group[hidden] { display: none; }
.field { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 700; }
.field--wide { grid-column: 1 / -1; }
.field input { width: 100%; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid rgba(19,32,26,.18); background: #fff; font-weight: 500; font-size: 16px; }
.field input:focus { outline: none; border-color: var(--vidrio); }
.field.is-error input { border-color: #B42318; }
.field small { color: #B42318; font-weight: 600; }
.fields__note { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--tinta-dim); padding: 10px 14px; background: #fff; border-radius: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14.5px; margin: 0 0 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--vidrio); flex: none; margin: 0; }
.check.is-error { color: #B42318; }
.wa-preview { background: #DCF8C6; border-radius: 14px; padding: 10px 14px; color: #0B3B26; }
.wa-preview summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.wa-preview pre { white-space: pre-wrap; font-family: var(--text); font-size: 13.5px; margin: 10px 0 0; }
.cart__foot { padding: 14px 22px max(18px, env(safe-area-inset-bottom)); border-top: 1.5px solid rgba(19,32,26,.1); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.cart__total strong { font-size: 1.5rem; }
.cart__err { margin: 8px 0 0; color: #B42318; font-size: 14px; font-weight: 600; min-height: 0; }
.cart__err:empty { display: none; }
.cart__done { text-align: center; padding: 40px 6px; }
.cart__done-code { font-family: var(--display); font-size: 2.4rem; color: var(--vidrio); margin: 0; }
.cart__done h3 { margin: 6px 0 8px; font-size: var(--step-2); }
.cart__done p { color: var(--tinta-dim); margin: 0 0 20px; }
.cart__done .btn { margin-bottom: 8px; }

.fab-cart { position: fixed; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 35; display: none; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px 6px 18px; border-radius: 999px; border: 0; background: var(--noche); color: #fff; font-weight: 700; box-shadow: 0 14px 30px rgba(0,0,0,.4); cursor: pointer; }
.fab-cart .cart-btn__count { background: var(--brasa); color: #160A02; }

.toast { position: fixed; left: 50%; bottom: 90px; z-index: 400; transform: translate(-50%, 20px); opacity: 0; background: var(--tinta); color: var(--papel-2); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bar__nav { display: none; }
  .steps__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --bar-h: 84px; }
  .bar__row { padding-block: 8px; gap: 10px; }
  .bar__note { font-size: 11.5px; padding: 5px 10px; }
  .bar__actions { margin-left: auto !important; }
  .bar__note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bruma { display: none; }
  .cart-btn span:first-child { display: none; }
  .cart-btn { padding: 6px; }
  .hero { padding-bottom: 40px; }
  .hero__tag { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero__text { font-size: 1.04rem; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__scroll { display: none; }
  .ch__pin { align-items: flex-end; padding-bottom: 28px; }
  .ch__pin::before { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(11,18,14,.86) 45%); pointer-events: none; }
  .ch__text { position: relative; width: 100%; }
  .ch__title { font-size: clamp(2.6rem, 12vw, 3.6rem); margin-bottom: 10px; }
  .ch__lead { font-size: 1rem; margin-bottom: 16px; }
  .flavor-now { min-height: 5.6rem; margin-bottom: 12px; }
  .flavor-now__name { font-size: clamp(2.1rem, 10vw, 3rem); }
  .facts { margin-bottom: 18px; }
  .no-gl .ch__fallback { position: absolute; top: 90px; left: 50%; transform: translateX(-50%); width: 60vw; }
  .catalog__head { grid-template-columns: 1fr; }
  .search { grid-column: 1; grid-row: auto; }
  .catalog__title { font-size: clamp(3.4rem, 17vw, 5rem); }
  .grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .card__stage { border-radius: 14px; }
  .card__name { font-size: 1rem; }
  .card__sub { display: none; }
  .card__add { width: 36px; height: 36px; font-size: 20px; }
  .card__price { font-size: 1rem; }
  .steps { padding-top: 80px; }
  .steps__list { grid-template-columns: 1fr; gap: 18px; }
  .visit { grid-template-columns: 1fr; }
  .sheet { width: 100vw; margin: auto 0 0; }
  .sheet__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; border-radius: 26px 26px 0 0; max-height: 94svh; }
  .sheet__stage { grid-row: auto; min-height: 220px; height: 30svh; }
  .sheet__img { width: 46%; }
  .sheet__bruma { width: 92px; }
  .sheet__says { left: 72px; bottom: 96px; font-size: 13px; }
  .sheet__info { padding: 22px 18px 8px; }
  .sheet__foot { padding: 12px 18px max(14px, env(safe-area-inset-bottom)); }
  .seg--wrap { grid-template-columns: repeat(2, 1fr); }
  .bruma { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 60px); }
  .bruma__btn { width: 56px; height: 84px; }
  .bruma__bubble { margin-bottom: 52px; max-width: 180px; font-size: 12.5px; }
  .ch__pin::after { display: none; }
  .fab-cart:not([hidden]) { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Mientras el gate está activo, solo se ve el humo y la tarjeta */
body.is-gated .bar, body.is-gated main, body.is-gated .bruma, body.is-gated .fab-cart { opacity: 0; visibility: hidden; }
.bar, main, .bruma { transition: opacity .9s var(--ease) .2s, visibility .9s; }


/* 2026-11-02 · Scroll del carrito y ficha en celular y escritorio */
.cart__body,.sheet__info{overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior:contain}
.cart__inner{height:100%;max-height:100dvh}
@supports not (height:100dvh){.cart__inner{max-height:100vh}}
