/* ───────────────────────────────────────────────
   Premium Distribuciones · Línea de embotellado
   ─────────────────────────────────────────────── */

:root {
  /* world */
  --agua: #E8F0F1;          /* rinse-water ground */
  --agua-2: #DAE6E8;        /* deeper rinse band */
  --blanco: #FAFCFC;
  --botella: #0B3D22;       /* deep bottle green, ink */
  --botella-2: #0F4D2C;
  --tapa: #1E9A3C;          /* cap green */
  --tapa-ink: #177F33;      /* cap green for text/buttons on light */
  --tapa-hi: #3CC25D;
  --acero: #9FB3B8;         /* steel rail */
  --acero-ink: #4C6267;
  --gota: #1F5FBF;          /* water only */
  --texto-2: #3D5A4A;
  --wa: #1E9A3C;

  /* type */
  --display: "Unbounded", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-0: 0.875rem;
  --fs-1: 1rem;
  --fs-2: 1.125rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem);
  --fs-5: clamp(2rem, 1.2rem + 2.8vw, 3.5rem);
  --fs-6: clamp(2.5rem, 1.1rem + 4.6vw, 5.5rem);

  /* space */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 4rem);
  --section: clamp(5rem, 3rem + 7vw, 10rem);
  --radius-pill: 999px;
  --radius: 22px;

  --ease-liquid: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lift: 0 18px 40px -18px rgba(11, 61, 34, 0.35), 0 4px 10px -4px rgba(11, 61, 34, 0.18);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--agua);
  color: var(--botella);
  font-family: var(--body);
  font-size: var(--fs-2);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
svg { fill: currentColor; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--tapa); color: var(--blanco); }
:focus-visible { outline: 3px solid var(--gota); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--acero) var(--agua); }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--agua); }
::-webkit-scrollbar-thumb { background: var(--acero); border-radius: 999px; border: 3px solid var(--agua); }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--botella); color: var(--blanco); padding: .7rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }

/* ── buttons ───────────────────────────────── */
.btn {
  --bg: var(--tapa-ink); --fg: var(--blanco);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .85rem 1.6rem;
  border: 0; border-radius: var(--radius-pill);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: var(--fs-2); line-height: 1.1; text-decoration: none;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), 0 10px 22px -12px rgba(23, 127, 51, .7);
  transition: transform .35s var(--ease-liquid), box-shadow .35s var(--ease-liquid), background-color .2s;
}
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn:hover { background: var(--botella-2); transform: translateY(-2px); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 16px 26px -14px rgba(11,61,34,.8); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 0 rgba(0,0,0,.2); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; }
.btn--block { width: 100%; }
.btn--line { --bg: transparent; --fg: var(--botella); box-shadow: inset 0 0 0 1.5px var(--acero-ink); }
.btn--line:hover { background: var(--agua); color: var(--botella); box-shadow: inset 0 0 0 1.5px var(--botella); }

/* stepper: two caps and a count */
.stepper { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem; border-radius: var(--radius-pill); background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--acero); }
.stepper button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--agua); color: var(--botella); transition: background-color .2s, transform .3s var(--ease-liquid); }
.stepper button:hover { background: var(--tapa-ink); color: var(--blanco); }
.stepper button:active { transform: scale(.92); }
.stepper button svg { width: 1.1rem; height: 1.1rem; }
.stepper output { min-width: 2.4ch; text-align: center; font-family: var(--display); font-weight: 500; font-size: var(--fs-2); font-variant-numeric: tabular-nums; }

/* ── header bar ───────────────────────────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem var(--gutter);
  transition: background-color .4s, box-shadow .4s, padding .4s var(--ease-liquid);
}
.bar.is-solid { background: rgba(232, 240, 241, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 rgba(94,116,121,.25); padding-block: .6rem; }
/* el logo va en una placa verde, como en la etiqueta de la botella */
.brand { display: inline-flex; align-items: center; min-height: 2.9rem; padding: .45rem .8rem; border-radius: 14px; background: var(--tapa); color: var(--blanco); text-decoration: none; margin-right: auto; box-shadow: 0 8px 18px -12px rgba(11,61,34,.6); }
.brand__logo { display: block; height: 2.3rem; width: auto; aspect-ratio: 302.7 / 100; }
@media (max-width: 820px) { .brand__logo { height: 2rem; } }
.bar__nav { display: flex; gap: .4rem; }
.bar__nav a { padding: .5rem .85rem; border-radius: var(--radius-pill); text-decoration: none; font-weight: 500; font-size: var(--fs-1); transition: background-color .25s, color .25s; }
.bar__nav a:hover { background: rgba(255,255,255,.7); }
.bar__nav a.is-current { background: var(--botella); color: var(--blanco); }
.bar__menu { display: none; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; place-items: center; background: var(--botella); color: var(--blanco); }
.bar__menu svg { width: 1.3rem; height: 1.3rem; }
.bar__order { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.9rem; padding: .55rem 1.1rem .55rem .9rem; border-radius: var(--radius-pill); border: 0; background: var(--botella); color: var(--blanco); font-weight: 600; font-size: var(--fs-1); }
.bar__order svg { width: 1.25rem; height: 1.25rem; }
.bar__count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--tapa-hi); color: var(--botella); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar__count.is-bump { animation: bump .5s var(--ease-liquid); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ── hero ─────────────────────────────────── */
.hero { position: relative; min-height: max(100svh, 760px); display: grid; overflow: hidden; isolation: isolate; background: var(--agua-2); }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; touch-action: pan-y; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(232,240,241,.97) 0%, rgba(232,240,241,.93) 34%, rgba(232,240,241,.55) 52%, rgba(232,240,241,0) 68%),
    linear-gradient(0deg, rgba(232,240,241,.9) 0%, rgba(232,240,241,0) 22%);
}
.hero__inner {
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 3rem;
  padding: 7.5rem 0 4rem;
  pointer-events: none;
}
.hero__copy { pointer-events: auto; max-width: 46rem; }
.hero__title { font-weight: 300; font-size: clamp(2.3rem, 0.6rem + 4.4vw, 5.5rem); line-height: .98; letter-spacing: -0.035em; }
.hero__lede b { font-weight: 600; color: var(--botella); }
.hero__title .hero__slogan { margin-top: .9rem; font-size: clamp(1.25rem, 0.8rem + 1.5vw, 2.1rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; color: var(--tapa-ink); }
.hero__title .line.hero__slogan > span { white-space: normal; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; white-space: nowrap; }
.hero__lede { margin-top: 1.5rem; max-width: 34rem; font-size: var(--fs-3); line-height: 1.45; color: var(--texto-2); }

.quick { margin-top: 2.2rem; padding: 1.1rem; border-radius: 30px; background: rgba(250,252,252,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(159,179,184,.5); max-width: 36rem; }
.quick__products { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .55rem .95rem; border-radius: var(--radius-pill); background: var(--agua); font-weight: 600; font-size: var(--fs-1); line-height: 1.15; transition: background-color .25s, color .25s, box-shadow .25s; box-shadow: inset 0 0 0 1.5px transparent; }
.chip span::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--acero); transition: background-color .25s, transform .4s var(--ease-liquid); }
.chip input:hover + span { box-shadow: inset 0 0 0 1.5px var(--acero); }
.chip input:checked + span { background: var(--botella); color: var(--blanco); }
.chip input:checked + span::before { background: var(--tapa-hi); transform: scale(1.15); }
.chip input:focus-visible + span { outline: 3px solid var(--gota); outline-offset: 2px; }
.quick__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .9rem; }
.quick__row .btn { flex: 1 1 13.5rem; white-space: nowrap; }
.quick__city { flex: 1 1 9rem; min-width: 0; }
.quick__city select { width: 100%; min-height: 3.25rem; padding: .7rem 2.4rem .7rem 1.1rem; border-radius: var(--radius-pill); border: 0; box-shadow: inset 0 0 0 1.5px var(--acero); background-color: var(--blanco); font-weight: 600; font-size: var(--fs-1); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230B3D22' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem; text-overflow: ellipsis; }
.quick__city select:hover { box-shadow: inset 0 0 0 1.5px var(--acero-ink); }
.quick__city select:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--gota), 0 0 0 3px rgba(31,95,191,.25); }
.quick__price { margin-top: .7rem; padding-left: .3rem; font-size: var(--fs-1); font-weight: 600; color: var(--botella); font-variant-numeric: tabular-nums; }
.quick__route { margin-top: .7rem; padding-left: .3rem; font-size: var(--fs-1); font-weight: 600; color: var(--tapa-ink); }
.quick__alt { margin-top: .8rem; padding-left: .3rem; font-size: var(--fs-1); color: var(--texto-2); }
.quick__alt a { color: var(--tapa-ink); font-weight: 600; }

.hero__bottle { --ar: 0.2727; position: relative; margin: 0; justify-self: center; align-self: center; height: min(74svh, 46rem); max-width: 100%; aspect-ratio: var(--ar); pointer-events: auto; }
.hero__bottle.is-wide { height: min(58svh, 36rem); }
.hero__bottle::after { content: ""; position: absolute; left: 50%; bottom: -2.5%; width: 190%; height: 7%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(11,61,34,.30), rgba(31,95,120,.10) 55%, rgba(255,255,255,0) 100%); z-index: -1; animation: shadowBob 6s ease-in-out infinite; }
.bottle-par, .bottle-tilt, .bottle { position: relative; height: 100%; }
.bottle-tilt { transform-style: preserve-3d; will-change: transform; }
.bottle { animation: bob 6s ease-in-out infinite; }
.bottle img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 24px 30px rgba(11,61,34,.18)); }
/* reflejo en la superficie del agua: no flota con la botella, la espeja */
.bottle__reflect { position: absolute; left: 0; top: 99%; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transform: scaleY(-1); opacity: .2; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 72%, rgba(0,0,0,.85) 100%); mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 72%, rgba(0,0,0,.85) 100%); filter: blur(1.5px); animation: reflectBob 6s ease-in-out infinite; }
/* destello de luz que recorre la botella, recortado a su silueta */
.bottle__sheen { position: absolute; inset: 0; pointer-events: none; -webkit-mask: url("../assets/img/productos/agua-625-160.webp") 50% 100% / contain no-repeat; mask: url("../assets/img/productos/agua-625-160.webp") 50% 100% / contain no-repeat; opacity: .8; background: linear-gradient(105deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 58%) no-repeat; background-size: 300% 100%; background-position: 120% 0; mix-blend-mode: soft-light; animation: sheen 7s cubic-bezier(.45,0,.2,1) 2.2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes reflectBob { 0%, 100% { transform: scaleY(-1) translateY(0) rotate(1.2deg); opacity: .2; } 50% { transform: scaleY(-1) translateY(-14px) rotate(-1deg); opacity: .1; } }
@keyframes shadowBob { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(.86); opacity: .75; } }
@keyframes sheen { 0% { background-position: 120% 0; } 32%, 100% { background-position: -20% 0; } }

/* ── products / lineup ───────────────────── */
.range { padding: var(--section) 0 calc(var(--section) * .8); background: var(--agua); }
.range__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem 4rem; align-items: end; }
.range__head h2 { font-size: var(--fs-5); max-width: 14ch; }
.range__head p { color: var(--texto-2); max-width: 34rem; }

.lineup {
  --scale: clamp(250px, 34vw, 470px);         /* pixels for 50 cm */
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(.6rem, 2.4vw, 3rem);
  min-height: calc(var(--scale) * 1.04);
  padding: 0 clamp(.5rem, 3vw, 3rem);
  overflow-x: auto; scrollbar-width: none;
  background: radial-gradient(ellipse 58% 85% at 50% 100%, rgba(250,252,252,.95), rgba(250,252,252,0) 72%);
}
.lineup::-webkit-scrollbar { display: none; }
.item {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center;
  padding: 0; border: 0; background: none;
  transition: transform .6s var(--ease-liquid), opacity .4s;
}
.item svg, .item img { height: calc(var(--h) / 500 * var(--scale)); width: auto; overflow: visible; transition: filter .4s; }
.item img { filter: drop-shadow(0 10px 8px rgba(11,61,34,.16)); }
.item__label { position: absolute; bottom: calc(100% + .6rem); left: 50%; transform: translate(-50%, 6px); white-space: nowrap; font-family: var(--display); font-size: .82rem; font-weight: 500; padding: .3rem .7rem; border-radius: 999px; background: var(--botella); color: var(--blanco); opacity: 0; transition: opacity .3s, transform .5s var(--ease-liquid); pointer-events: none; }
.lineup:hover .item:not(:hover):not([aria-checked="true"]) { opacity: .62; }
.item:hover .item__label, .item:focus-visible .item__label, .item[aria-checked="true"] .item__label { opacity: 1; transform: translate(-50%, 0); }
.item[aria-checked="true"] { transform: translateY(-14px); }
.item[aria-checked="true"] svg, .item[aria-checked="true"] img { filter: drop-shadow(0 22px 18px rgba(11,61,34,.26)); }
.item:focus-visible { outline: none; }
.item:focus-visible svg, .item:focus-visible img { outline: 3px solid var(--gota); outline-offset: 8px; border-radius: 12px; }

.shelf { position: relative; height: 2.2rem; margin-top: -2px; background: linear-gradient(var(--acero) 0 6px, var(--agua-2) 6px, transparent 70%); }

.spec { margin-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: end; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--radius); background: var(--blanco); box-shadow: var(--shadow-lift); }
.spec__name { font-size: var(--fs-4); }
.spec__price { margin-top: .5rem; font-family: var(--display); font-weight: 500; font-size: var(--fs-3); color: var(--tapa-ink); font-variant-numeric: tabular-nums; }
.spec__desc { margin-top: .6rem; max-width: 46rem; color: var(--texto-2); }
.spec__note { margin-top: .5rem; max-width: 46rem; font-size: var(--fs-1); color: var(--texto-2); }
.spec__facts { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.spec__facts li { padding: .35rem .8rem; border-radius: 999px; background: var(--agua); font-size: var(--fs-0); font-weight: 600; }
.spec__actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spec.is-swap .spec__text { animation: specIn .55s var(--ease-liquid); }
@keyframes specIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }

/* ── process ─────────────────────────────── */
.process { position: relative; padding: var(--section) 0; background: var(--blanco); }
.process__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); }
.process__sticky { position: sticky; top: 7rem; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.pipe { width: 96px; height: auto; overflow: visible; }
.pipe__rail { fill: var(--agua-2); }
.pipe__flow { transform-origin: 60px 20px; transform-box: view-box; }
.pipe__nodes circle { fill: var(--blanco); stroke: var(--acero); stroke-width: 4; transition: fill .4s, stroke .4s; }
.pipe__nodes circle.is-on { fill: var(--gota); stroke: var(--gota); }
.pipe__drop path { fill: var(--gota); }
.process__photo { position: relative; margin: 0; border-radius: 160px 160px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow-lift); background: radial-gradient(ellipse 75% 60% at 50% 42%, var(--blanco), var(--agua-2)); isolation: isolate; }
/* la botella: el agua va por detrás, recortada a su silueta, y la botella translúcida encima */
.stage__bottle { position: absolute; left: 50%; top: 4.5%; height: 83%; aspect-ratio: 540 / 1980; transform: translateX(-50%); filter: drop-shadow(0 22px 22px rgba(11,61,34,.2)); }
.stage__bottle::after { content: ""; position: absolute; left: 50%; bottom: -3.5%; width: 230%; height: 6%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(11,61,34,.28), rgba(11,61,34,0)); z-index: -1; }
.stage__water { position: absolute; inset: 0; -webkit-mask: url("../assets/img/productos/agua-625-silueta.webp") center / 100% 100% no-repeat; mask: url("../assets/img/productos/agua-625-silueta.webp") center / 100% 100% no-repeat; }
.stage__water canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__bottle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
/* lo que enturbia el agua va sobre el plástico transparente, sin tocar la etiqueta ni la tapa */
.stage__tint, .stage__murk { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask: url("../assets/img/productos/agua-625-pet.webp") center / 100% 100% no-repeat; mask: url("../assets/img/productos/agua-625-pet.webp") center / 100% 100% no-repeat; }
.stage__tint { background: linear-gradient(180deg, #b79a55, #8a6f38); mix-blend-mode: multiply; opacity: 0; }
.stage__cap { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); max-width: calc(100% - 2rem); padding: .45rem 1rem; border-radius: 999px; background: var(--botella); color: var(--blanco); font-family: var(--display); font-size: .82rem; font-weight: 500; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 10px 22px -12px rgba(11,61,34,.7); }
.process__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.process__copy h2 { font-size: var(--fs-5); }
.process__lede { margin-top: 1rem; color: var(--texto-2); max-width: 36rem; }
.process__reg { margin-top: .9rem; font-size: var(--fs-1); color: var(--texto-2); }
.process__reg b { color: var(--botella); font-weight: 600; }
.steps { margin: 3rem 0 0; }
.steps__list { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1.2rem; padding: 1.5rem 0; border-top: 1.5px solid var(--agua-2); transition: opacity .5s; }
.step--final { border-bottom: 1.5px solid var(--agua-2); }
.step--final .step__n svg { width: 1.15rem; height: 1.5rem; --leaf: var(--agua); transition: color .4s; }
.step--final.is-on .step__n svg { --leaf: var(--gota); }
.step__n { grid-row: span 2; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 500; background: var(--agua); color: var(--acero-ink); transition: background-color .4s, color .4s; }
.step h3 { font-size: var(--fs-3); font-weight: 500; align-self: center; }
.step p { margin-top: .35rem; color: var(--texto-2); max-width: 34rem; }
.js-motion .step h3 { color: var(--acero-ink); transition: color .5s; }
.js-motion .step.is-on h3 { color: var(--botella); }
.step.is-on .step__n { background: var(--gota); color: var(--blanco); }

/* ── ice fresh ───────────────────────────── */
.ice { padding: var(--section) 0; background: linear-gradient(180deg, var(--blanco), var(--agua) 100%); }
.ice__scene { margin: 0 0 clamp(2.5rem, 5vw, 4.5rem); border-radius: 28px; overflow: hidden; aspect-ratio: 1536 / 620; box-shadow: var(--shadow-lift); }
.ice__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 0; }
.ice__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.ice__copy h2 { font-size: var(--fs-5); }
.ice__copy > p { margin-top: 1.2rem; margin-bottom: 2rem; color: var(--texto-2); max-width: 38rem; }
.ice__order { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.ice__copy > .ice__price { margin: .9rem 0 0; font-weight: 600; color: var(--botella); font-variant-numeric: tabular-nums; }
.uses { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
.uses div { padding-top: 1rem; border-top: 1.5px solid var(--acero); }
.uses dt { font-family: var(--display); font-weight: 500; font-size: var(--fs-2); }
.uses dd { margin: .3rem 0 0; color: var(--texto-2); font-size: var(--fs-1); }

/* ── trade (B2B) ─────────────────────────── */
.trade { padding: var(--section) 0; background: var(--botella); color: var(--agua); }
.trade h2 { font-size: var(--fs-5); max-width: 18ch; color: var(--blanco); }
.trade h2 span { display: block; }
.trade__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.trade__photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 40px 70px -40px rgba(0,0,0,.6); }
.trade__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.trade__grid { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.truths { list-style: none; margin: 0; padding: 0; }
.truths li { padding: 1.8rem 0; border-top: 1.5px solid rgba(232,240,241,.18); }
.truths li:last-child { border-bottom: 1.5px solid rgba(232,240,241,.18); }
.truths h3 { font-size: var(--fs-4); font-weight: 300; color: var(--tapa-hi); }
.truths p { margin-top: .5rem; color: #BFE3CB; max-width: 32rem; }
.truths .truths__motto { margin-top: .9rem; font-family: var(--display); font-weight: 400; font-size: var(--fs-1); line-height: 1.4; color: var(--blanco); }

.supply { padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--radius); background: var(--agua); color: var(--botella); box-shadow: 0 40px 70px -40px rgba(0,0,0,.6); }
.supply__title { font-size: var(--fs-3); font-weight: 500; margin-bottom: 1.4rem; }
.supply__note { margin-top: .8rem; font-size: var(--fs-0); color: var(--texto-2); text-align: center; }
.field { display: grid; gap: .4rem; margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: var(--fs-1); padding: 0; }
.field i { font-style: normal; font-weight: 400; color: var(--texto-2); }
.field input, .field select { width: 100%; min-height: 3.1rem; padding: .7rem 1rem; border-radius: 14px; border: 1.5px solid var(--acero); background: var(--blanco); font-size: var(--fs-1); transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230B3D22' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; padding-right: 2.5rem; }
.field input::placeholder { color: #566B62; }
.field input:hover, .field select:hover { border-color: var(--acero-ink); }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--gota); box-shadow: 0 0 0 3px rgba(31,95,191,.25); }
.field__error { display: none; font-style: normal; font-size: var(--fs-0); color: #A3261B; font-weight: 600; }
.field.has-error .field__error { display: block; }
.field.has-error input { border-color: #A3261B; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; }
.checks { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ── distribuidores ──────────────────────── */
.dealer { padding: clamp(4rem, 9vw, 7.5rem) 0; background: var(--blanco); }
.dealer__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.dealer h2 { font-size: var(--fs-5); max-width: 16ch; }
.dealer__copy p { max-width: 34rem; color: var(--texto-2); font-size: var(--fs-2); }
.dealer__copy .dealer__motto { margin-top: 1rem; font-family: var(--display); font-weight: 400; font-size: var(--fs-2); line-height: 1.4; color: var(--tapa-ink); }
.dealer__copy .btn { margin-top: 1.6rem; }
@media (max-width: 820px) { .dealer__grid { grid-template-columns: 1fr; } }

/* ── route ───────────────────────────────── */
.route { padding: var(--section) 0; background: var(--agua); overflow: hidden; }
.route__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.route__copy h2 { font-size: var(--fs-5); }
.route__copy > p { margin-top: 1rem; color: var(--texto-2); max-width: 30rem; }
.towns { list-style: none; margin: 2rem 0; padding: 0; }
.towns li + li { border-top: 1.5px solid var(--agua-2); }
.towns button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .2rem; border: 0; background: none; text-align: left; font-family: var(--display); font-size: var(--fs-3); font-weight: 400; letter-spacing: -0.02em; transition: color .25s, padding .45s var(--ease-liquid); }
.towns__name { display: grid; gap: .1rem; min-width: 0; }
.towns small { font-family: var(--body); font-size: var(--fs-0); font-weight: 400; letter-spacing: 0; color: var(--acero-ink); }
.towns__days { margin-left: auto; padding-left: .5rem; max-width: 48%; font-family: var(--body); font-size: var(--fs-1); font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--texto-2); text-align: right; }
.towns button[aria-pressed="true"] .towns__days { color: var(--tapa-ink); }
.route__next { margin-top: 1rem; max-width: 30rem; font-weight: 600; color: var(--botella); }
.route__terms { margin: 1.6rem 0 0; display: grid; gap: .7rem; max-width: 30rem; }
.route__terms div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding-top: .7rem; border-top: 1.5px solid var(--agua-2); }
.route__terms dt { font-weight: 700; font-size: var(--fs-1); }
.route__terms dd { margin: 0; color: var(--texto-2); font-size: var(--fs-1); }
.towns button:hover { color: var(--tapa-ink); padding-left: .7rem; }
.towns button[aria-pressed="true"] { color: var(--tapa-ink); padding-left: .7rem; }
.towns button[aria-pressed="true"]::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--tapa); margin-right: .6rem; flex: none; align-self: center; }
.towns button { justify-content: flex-start; }

.map { margin: 0; position: relative; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map__rivers path { fill: none; stroke: #B9D2E6; stroke-width: 9; stroke-linecap: round; }
.map__river-label { fill: #3F6A8E; font-size: 13px; font-style: italic; font-family: var(--body); }
.map__roads path { fill: none; stroke: var(--botella); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; opacity: .55; transition: opacity .4s, stroke .4s, stroke-width .4s; }
.map__roads path.is-on { stroke: var(--tapa); opacity: 1; stroke-width: 5; stroke-dasharray: none; }
.map__truck { fill: var(--blanco); stroke: var(--tapa); stroke-width: 5; opacity: 0; pointer-events: none; }
.map__towns g { cursor: pointer; }
.map__towns circle:not(.halo) { fill: var(--botella); stroke: var(--agua); stroke-width: 3; transition: fill .3s; }
.map__towns .halo { fill: var(--tapa); opacity: 0; transform-box: fill-box; transform-origin: center; }
.map__towns text { font-family: var(--display); font-size: 17px; font-weight: 500; fill: var(--botella); paint-order: stroke; stroke: var(--agua); stroke-width: 5px; stroke-linejoin: round; }
.map__towns g.is-on circle:not(.halo) { fill: var(--tapa); }
.map__towns g.is-on .halo { opacity: .25; animation: halo 2.4s var(--ease-liquid) infinite; }
@keyframes halo { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.2); opacity: 0; } }

/* ── app ─────────────────────────────────── */
.app { padding: var(--section) 0; background: radial-gradient(38rem 38rem at 76% 48%, rgba(60,194,93,.5), rgba(60,194,93,0) 68%), var(--tapa-ink); color: var(--blanco); overflow: hidden; }
.app__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.app h2 { font-size: var(--fs-5); max-width: 15ch; }
.app__copy > p { margin-top: 1.2rem; max-width: 34rem; color: #F1FAF3; }
.app__features { list-style: none; margin: 1.8rem 0 2rem; padding: 0; max-width: 34rem; }
.app__features li { padding: .9rem 0; border-top: 1.5px solid rgba(241,250,243,.25); color: #F1FAF3; font-size: var(--fs-1); }
.app__features li:last-child { border-bottom: 1.5px solid rgba(241,250,243,.25); }
.app__features b { font-family: var(--display); font-weight: 500; color: var(--blanco); }
.btn--light { --bg: var(--blanco); --fg: var(--botella); box-shadow: inset 0 -3px 0 rgba(11,61,34,.12), 0 14px 26px -14px rgba(0,0,0,.45); }
.btn--light svg { color: var(--tapa-ink); }
.btn--light:hover { background: var(--agua); color: var(--botella); }
.app__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn--ghost { --bg: transparent; --fg: var(--blanco); box-shadow: inset 0 0 0 1.5px rgba(241,250,243,.7); }
.btn--ghost:hover { background: rgba(241,250,243,.14); color: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--blanco); }
.app__fallback { margin-top: 1rem; color: #F1FAF3; font-size: var(--fs-0); }

/* capturas reales de la app en marcos de teléfono */
.phones { position: relative; justify-self: center; width: min(100%, 30rem); aspect-ratio: 1 / 1.25; }
.phone { position: absolute; margin: 0; padding: 9px; border-radius: 40px; background: #072a17; box-shadow: 0 50px 80px -40px rgba(0,0,0,.6), inset 0 0 0 1.5px rgba(255,255,255,.14); }
.phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.phone--front { width: 58%; right: 4%; top: 0; transform: rotate(3deg); z-index: 2; }
.phone--back { width: 52%; left: 0; top: 14%; transform: rotate(-5deg); opacity: .92; }
.phone--back img { aspect-ratio: 775 / 1360; object-fit: cover; object-position: top; }

/* ── footer ──────────────────────────────── */
.foot { background: var(--botella); color: #BFE3CB; padding: clamp(3.5rem, 7vw, 6rem) 0 6.5rem; }
.foot__grid { display: grid; grid-template-columns: 1.25fr 1fr 1.35fr 1fr .9fr; gap: 2.5rem 2rem; }
.foot__logo { display: block; height: 6rem; width: auto; aspect-ratio: 109 / 100; color: var(--blanco); }
.foot__name { margin-top: 1rem; font-family: var(--display); font-weight: 500; font-size: var(--fs-3); color: var(--blanco); }
.foot__tag { margin-top: .3rem; }
.foot__h { font-family: var(--body); font-weight: 700; font-size: var(--fs-1); letter-spacing: 0; color: var(--blanco); margin-bottom: .7rem; }
.foot p { font-size: var(--fs-1); }
.foot__wa { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: var(--fs-3); font-weight: 400; color: var(--blanco); text-decoration: none; }
.foot__wa svg { width: 1.6rem; height: 1.6rem; color: var(--tapa-hi); }
.foot__wa:hover { text-decoration: underline; }
.foot__line { margin-top: .5rem; }
.foot__social { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.foot__line a, .foot__social a { color: var(--blanco); display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot__week { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: var(--fs-1); }
.foot__week li { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .5rem; }
.foot__week b { font-weight: 600; color: var(--blanco); }
.foot__legal { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(232,240,241,.15); font-size: var(--fs-0); }

/* ── order bar + drawer ──────────────────── */
.orderbar { position: fixed; z-index: 45; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: .5rem; padding: .45rem .45rem .45rem 1.2rem; border-radius: 999px; background: #072a17; color: var(--blanco); box-shadow: 0 0 0 1.5px #BFE3CB, 0 24px 50px -20px rgba(4,30,16,.8); transition: opacity .35s, transform .5s var(--ease-liquid); max-width: calc(100% - 2rem); animation: barIn .6s var(--ease-liquid); }
.orderbar[hidden] { display: none; }
.orderbar.is-tucked { opacity: 0; transform: translate(-50%, 140%); pointer-events: none; }
@keyframes barIn { from { transform: translate(-50%, 140%); } }
.orderbar__summary { border: 0; background: none; color: inherit; font-weight: 600; font-size: var(--fs-1); min-height: 2.75rem; padding: .4rem .2rem; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: .25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orderbar .btn { min-height: 2.8rem; padding: .6rem 1.2rem; font-size: var(--fs-1); }

.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(11,61,34,.45); animation: fade .35s ease-out; }
@keyframes fade { from { opacity: 0; } }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(100%, 28rem); background: var(--agua); padding: 1.5rem; display: flex; flex-direction: column; overflow-y: auto; box-shadow: -30px 0 60px -30px rgba(0,0,0,.4); animation: slideIn .55s var(--ease-liquid); }
.drawer__panel:focus { outline: none; }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.drawer__head h2 { font-size: var(--fs-4); }
.icon-btn { width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0; background: var(--blanco); display: grid; place-items: center; }
.icon-btn svg { width: 1.2rem; height: 1.2rem; }
.icon-btn:hover { background: var(--agua-2); }
.drawer__items { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .6rem; }
.drawer__items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .8rem .8rem .8rem 1.1rem; border-radius: 18px; background: var(--blanco); font-weight: 600; line-height: 1.3; }
.drawer__items li small { display: block; margin-top: .15rem; font-weight: 400; font-size: var(--fs-0); color: var(--texto-2); font-variant-numeric: tabular-nums; }
.drawer__items .stepper { box-shadow: none; background: var(--agua); }
.drawer__extra { justify-self: start; align-self: flex-start; min-height: 2.75rem; margin: -.4rem 0 1rem; padding: .4rem .2rem; border: 0; background: none; text-align: left; font-weight: 600; font-size: var(--fs-1); color: var(--tapa-ink); text-decoration: underline; text-underline-offset: .22em; }
.drawer__total { display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; margin: 0 0 1rem; padding: .9rem 1.1rem; border-radius: 18px; background: var(--botella); color: var(--blanco); font-weight: 600; }
.drawer__total b { font-family: var(--display); font-weight: 500; font-size: var(--fs-3); font-variant-numeric: tabular-nums; }
.field__hint { font-style: normal; font-size: var(--fs-0); font-weight: 600; color: var(--tapa-ink); }
.drawer__items .stepper button { background: var(--blanco); }
.drawer__empty { padding: 1.4rem; border-radius: 18px; background: var(--blanco); color: var(--texto-2); }
.drawer__empty a { color: var(--tapa-ink); font-weight: 600; }
.drawer__form { margin-top: auto; padding-top: 1rem; }
.drawer.is-empty .drawer__form { opacity: .5; pointer-events: none; }

@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ── responsive ──────────────────────────── */
@media (max-width: 1080px) {
  .bar__menu { display: grid; }
  .bar__nav { display: none; position: absolute; top: calc(100% + .35rem); right: var(--gutter); width: min(100% - 2 * var(--gutter), 19rem); flex-direction: column; gap: .15rem; padding: .5rem; border-radius: var(--radius); background: var(--blanco); box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(159,179,184,.5); }
  .bar__nav.is-open { display: flex; animation: menuIn .35s var(--ease-liquid); }
  .bar__nav a { display: flex; align-items: center; min-height: 3rem; padding: .6rem 1rem; font-size: var(--fs-2); }
  .foot__grid { grid-template-columns: 1.2fr 1fr 1.3fr; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 72px; }
  .bar { gap: .8rem; }
  .bar__order-label { display: none; }
  .bar__order { padding: .55rem .8rem; }
  .hero { min-height: auto; }
  /* primera pantalla del celular: título y texto a la izquierda, botella a la derecha, pedido debajo */
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(232,240,241,.94) 0%, rgba(232,240,241,.9) 52%, rgba(232,240,241,.3) 74%, rgba(232,240,241,.12) 100%),
      linear-gradient(0deg, rgba(232,240,241,.9) 0%, rgba(232,240,241,0) 30%);
  }
  .hero__inner { grid-template-columns: minmax(0, 1fr) clamp(5.25rem, 26vw, 9rem); grid-template-areas: "title bottle" "lede bottle" "quick quick"; align-items: start; gap: 0 .9rem; padding: 5.25rem 0 2.5rem; }
  .hero__copy { display: contents; }
  .hero__title { grid-area: title; }
  .hero__title .hero__slogan { margin-top: .6rem; }
  .hero__lede { grid-area: lede; margin-top: .9rem; font-size: var(--fs-2); line-height: 1.42; }
  .quick { grid-area: quick; position: relative; z-index: 1; margin-top: 1.3rem; max-width: none; }
  .hero__bottle, .hero__bottle.is-wide { grid-area: bottle; align-self: end; width: 100%; height: clamp(14rem, 36svh, 19rem); aspect-ratio: auto; }
  .hero__bottle::after { width: 150%; }
  .range__head, .process__grid, .ice__grid, .trade__grid, .trade__head, .route__grid, .app__grid { grid-template-columns: 1fr; }
  .trade__photo { aspect-ratio: 4 / 3; border-radius: 22px; }
  .app { background: radial-gradient(24rem 24rem at 50% 80%, rgba(60,194,93,.5), rgba(60,194,93,0) 68%), var(--tapa-ink); }
  .lineup { --scale: 320px; justify-content: flex-start; gap: 1.6rem; padding: 0 1rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x proximity; }
  .item { scroll-snap-align: center; }
  .shelf { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .spec { grid-template-columns: 1fr; }
  .process__visual { order: 2; }
  .process__sticky { position: relative; top: 0; grid-template-columns: 1fr; }
  .pipe { display: none; }
  .process__photo { aspect-ratio: 4 / 3.4; border-radius: 120px 120px var(--radius) var(--radius); }
  .ice__scene { aspect-ratio: 4 / 3; border-radius: 22px; }
  .uses { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .map { order: -1; }
  .phones { width: min(100%, 24rem); }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.5rem; }
  .foot__brand, .foot__col:nth-child(2), .foot__col:nth-child(3) { grid-column: 1 / -1; }
  .foot__week { max-width: 24rem; }
}

@media (max-width: 420px) {
  .chip span { padding: .5rem .85rem; font-size: .94rem; }
  .quick { padding: .85rem; border-radius: 24px; }
  .orderbar { width: calc(100% - 1.5rem); justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
