/* Kombucha Lentita. Cada sabor: fondo = pulpa de la fruta, etiqueta = cáscara. */
:root {
  --lila: #cdb8ff;
  --ciruela: #2a0f3d;
  --te: #ffe3b0;
  --te-ink: #3a1a05;
  --pulpa-naranjilla: #b7d64b;
  --pulpa-tomate: #ff8a3d;
  --hibisco: #e86aa6;
  --niebla: #f4f0ff;

  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Figtree", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-pill: 999px;
  --r-card: 18px;
  --r-ctl: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--lila); color: var(--ciruela); font: 400 18px/1.55 var(--text); overflow-x: clip; }
::selection { background: var(--ciruela); color: var(--lila); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--ciruela); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ciruela); color: var(--lila); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; }
.scene-on .anchor img { visibility: hidden; }
.anchor { position: relative; display: grid; place-items: center; }
.anchor img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Nav: dos fichas sueltas en ciruela, legibles sobre cualquier fondo. */
.nav { position: fixed; z-index: 20; top: 14px; left: 0; right: 0; padding: 0 clamp(12px, 2vw, 24px); display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand-chip { background: var(--ciruela); border-radius: var(--r-pill); }
.brand { background: none; color: var(--lila); font: 400 32px/1 var(--display); text-decoration: none; height: 52px; padding: 0 20px 4px; display: inline-flex; align-items: center; border-radius: var(--r-pill); }
.nav nav { background: var(--ciruela); color: var(--lila); border-radius: var(--r-pill); display: flex; align-items: center; gap: 4px; padding: 4px; font-weight: 600; font-size: 15px; }
.nav nav a { text-decoration: none; padding: 0 16px; height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-pill); }
.nav nav a:hover { background: rgb(255 255 255 / .1); }
.nav nav .nav-cta { background: var(--lila); color: var(--ciruela); }
.nav nav .nav-cta:hover { background: #ddd0ff; }

.sec { position: relative; padding: clamp(96px, 11vw, 150px) 0; background: var(--bg); color: var(--fg); }
.hero { --bg: var(--lila); --fg: var(--ciruela); --btn: var(--ciruela); --btn-ink: var(--lila); }
.proceso { --bg: var(--te); --fg: var(--te-ink); }
.s-naranjilla { --bg: var(--pulpa-naranjilla); --fg: #1f2a00; --btn: #2b1300; --btn-ink: #f6c066; }
.s-tomate { --bg: var(--pulpa-tomate); --fg: #3d0a0a; --btn: #7a1020; --btn-ink: #fff0e6; }
.s-mora { --bg: var(--hibisco); --fg: #2a0420; --btn: #3e0826; --btn-ink: #ffd9ec; }
.etiqueta { --bg: var(--niebla); --fg: var(--ciruela); }
.donde { --bg: var(--ciruela); --fg: var(--lila); }
.pedir { --bg: var(--lila); --fg: var(--ciruela); }

h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(48px, 6.2vw, 92px); line-height: .92; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px;
  background: var(--btn); color: var(--btn-ink); border: 0; border-radius: var(--r-pill);
  font: 600 18px/1.2 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: scale(.96); }

/* Hero: el titular se abre en dos y la botella se para en el medio. */
.hero { min-height: 100dvh; padding-top: 96px; padding-bottom: 48px; display: flex; align-items: center; }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 24px; }
.hero h1 { grid-column: 1 / -1; grid-row: 1; font-size: clamp(76px, 11.2vw, 172px); line-height: .9; display: flex; flex-direction: column; position: relative; z-index: 1; }
.hero h1 .l2 { align-self: flex-end; }
/* La botella va en la fila de abajo, entre el texto y los datos: el titular queda libre y legible. */
.hero-anchor { grid-column: 2; grid-row: 2; height: min(50vh, 460px); align-self: end; margin-top: 12px; }
.hero-copy { grid-column: 1; grid-row: 2; align-self: end; padding-top: 32px; }
.lead { font-size: 18px; max-width: 28em; margin-bottom: 26px; }
.hero-facts { grid-column: 3; grid-row: 2; align-self: end; justify-self: end; display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 0; }
.hero-facts dt { font-size: 14px; font-weight: 600; }
.hero-facts dd { margin: 0; font: 400 32px/1.1 var(--display); }

/* Proceso: sección fija; la botella recorre la línea de días. */
.proceso { padding: 0; height: 340vh; }
.pin { position: sticky; top: 0; height: 100vh; overflow: clip; display: flex; align-items: stretch; }
.pin-grid { width: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding-top: 92px; padding-bottom: 40px; gap: 16px; }
.pin-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.pin-head h2 { font-size: clamp(44px, 5.4vw, 80px); }
.pin-head p { font-size: 18px; max-width: 30em; }
.track { position: relative; min-height: 0; }
.track { --hw: 80px; }
.track-line { position: absolute; left: var(--hw); right: var(--hw); top: 50%; height: 4px; background: var(--te-ink); }
.track-line i { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--te-ink); }
.hold-anchor { position: absolute; top: 50%; transform: translate(-50%, -50%); height: min(100%, 420px); width: 160px; left: var(--hw); }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.days li { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; transition: opacity .3s; }
.days li:not(.on) { opacity: .72; }
.days b { font: 400 32px/1 var(--display); }

/* Sabores. */
.sabor { min-height: 100vh; display: flex; align-items: center; overflow: clip; }
.sabor-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto; gap: 0 48px; align-items: center; }
.fruit-word { grid-column: 1 / -1; grid-row: 1; font: 400 clamp(110px, 17vw, 260px)/.8 var(--display); letter-spacing: -.04em; color: color-mix(in oklab, var(--fg) 18%, var(--bg)); white-space: nowrap; margin-bottom: -.25em; user-select: none; }
.sabor-anchor { grid-column: 1; grid-row: 1 / 3; height: min(76vh, 640px); }
.sabor-copy { grid-column: 2; grid-row: 2; max-width: 34em; }
.flip .sabor-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.flip .fruit-word { text-align: right; }
.flip .sabor-anchor { grid-column: 2; }
.flip .sabor-copy { grid-column: 1; justify-self: end; }
.sabor-copy h2 + p { margin-top: 20px; font-size: 18px; }
.specs { margin: 28px 0 32px; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 2px solid color-mix(in oklab, var(--fg) 30%, transparent); }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; }

/* Espalda de la botella. */
.etiqueta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.etiqueta-anchor { height: min(76vh, 640px); }
.etiqueta-copy > p { margin-top: 20px; max-width: 32em; }
.nutri { width: 100%; max-width: 520px; border-collapse: collapse; margin: 28px 0 18px; font-variant-numeric: tabular-nums; }
.nutri caption { text-align: left; font-weight: 600; font-size: 15px; padding-bottom: 10px; }
.nutri th, .nutri td { padding: 12px 0; border-top: 2px solid rgb(42 15 61 / .16); text-align: left; font-weight: 400; }
.nutri td { text-align: right; font-weight: 600; }
.ingr { font-size: 15px; }

/* Dónde. */
.donde h2 { margin-bottom: 40px; }
.out-anchor { position: absolute; top: 30%; right: 0; height: 300px; width: 10px; }
.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.places li { display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--r-card); background: rgb(205 184 255 / .1); font-size: 15px; }
.places b { font: 400 32px/1.05 var(--display); margin-bottom: 6px; }

/* Pedido. */
.pedir-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.pedir-anchor { height: min(76vh, 640px); }
.order { background: var(--ciruela); color: var(--lila); border-radius: 28px; padding: clamp(24px, 3.4vw, 44px); }
.order h2 { font-size: clamp(44px, 4.6vw, 68px); margin-bottom: 24px; color: #fff; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-card); cursor: pointer; margin-bottom: 8px; background: rgb(205 184 255 / .1); transition: background-color .2s var(--ease); }
.opt:has(input:checked) { background: var(--lila); color: var(--ciruela); }
.opt input { accent-color: var(--ciruela); width: 20px; height: 20px; margin: 0; }
.opt span { display: flex; flex-direction: column; }
.opt b { font-weight: 600; }
.opt small { font-size: 14px; opacity: .85; }
.opt i { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.flavor-pick[disabled] { opacity: .5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border: 2px solid var(--lila); border-radius: var(--r-pill); font-weight: 600; }
.chips input:checked + span { background: var(--lila); color: var(--ciruela); }
.chips input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: end; }
.qty > span, .field { font-weight: 600; font-size: 15px; }
.stepper { display: flex; align-items: center; margin-top: 8px; border: 2px solid var(--lila); border-radius: var(--r-pill); }
.stepper button { width: 46px; height: 46px; border: 0; background: none; color: var(--lila); font: 600 22px/1 var(--text); cursor: pointer; border-radius: var(--r-pill); }
.stepper button:active { background: rgb(255 255 255 / .12); }
.stepper output { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field input { height: 50px; border: 2px solid var(--lila); border-radius: var(--r-card); padding: 0 14px; font: 400 16px var(--text); background: #fff; color: var(--ciruela); caret-color: var(--ciruela); }
.field input::placeholder { color: #6f5a80; }
.field input[aria-invalid="true"] { border-color: #ff9bc4; box-shadow: 0 0 0 3px #ff9bc4; }
.error { color: #ffb3d1; font-weight: 600; font-size: 15px; margin-top: 8px; }
.total { margin: 22px 0; padding-top: 14px; border-top: 2px solid rgb(205 184 255 / .3); }
.total p { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.total .sum { font: 400 32px/1.25 var(--display); color: #fff; margin-top: 4px; }
.total .note { display: block; font-size: 14px; margin-top: 6px; }
.btn-big { width: 100%; min-height: 58px; --btn: var(--lila); --btn-ink: var(--ciruela); }
.status { margin-top: 14px; font-weight: 600; min-height: 1.5em; color: #fff; }

.foot { background: var(--ciruela); color: var(--lila); padding: 64px 0 48px; position: relative; z-index: 6; border-top: 2px solid rgb(205 184 255 / .2); }
.foot-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; font-size: 15px; align-items: end; }
.foot-mark { font: 400 clamp(64px, 9vw, 128px)/.9 var(--display); letter-spacing: -.03em; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); }
  .hero-anchor { grid-column: 2; }
  .hero-copy { grid-column: 1; }
  .hero-facts { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 28px; }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pedir-grid, .etiqueta-grid { grid-template-columns: minmax(0, 1fr); }
  .pedir-anchor, .etiqueta-anchor { height: 50vh; }
  .foot-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(64px, 19vw, 120px); }
  .hero h1 .l2 { align-self: flex-start; }
  .hero-anchor { grid-column: 1; grid-row: 2; height: 36vh; margin: 8px 0 0; }
  .hero-copy { grid-row: 3; padding-top: 12px; }
  .hero-facts { grid-row: 4; gap: 20px; }
  .hero-facts dd { font-size: 26px; }
  .pin-grid { padding-top: 80px; padding-bottom: 20px; gap: 8px; }
  .pin-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pin-head h2 { font-size: 40px; }
  .pin-head p { font-size: 15px; }
  .track { --hw: 50px; }
  .hold-anchor { height: min(100%, 260px); width: 100px; }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .days li { font-size: 14px; }
  .days b { font-size: 26px; }
  .sabor { min-height: auto; }
  .sabor-grid, .flip .sabor-grid { grid-template-columns: minmax(0, 1fr); }
  .fruit-word { font-size: 15.5vw; margin-bottom: 0; }
  .sabor-anchor, .flip .sabor-anchor { grid-column: 1; grid-row: 2; height: 50vh; }
  .sabor-copy, .flip .sabor-copy { grid-column: 1; grid-row: 3; justify-self: start; margin-top: 24px; }
}
@media (max-width: 560px) {
  .places { grid-template-columns: minmax(0, 1fr); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
