/* Anton e Inter Tight (Google Fonts, licencia SIL OFL 1.1), alojadas en el sitio. Subconjunto latino. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* PULSO — demo de oddfox.app */
:root {
  --ink: #0a0a0a;
  --night: #030303; /* negro del video */
  --yellow: #ffc21a;
  --red: #e63946;
  --green: #8bd32f;
  --white: #f5f5f0;
  --muted: #a8a8a0;
  --line: rgba(245, 245, 240, 0.14);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --text: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --pad-l: max(var(--gutter), env(safe-area-inset-left));
  --pad-r: max(var(--gutter), env(safe-area-inset-right));
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
canvas { display: block; max-width: 100%; }

a { color: inherit; }

p,
h1,
h2,
h3,
figure,
ul { margin: 0; }

ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: var(--pad-l);
  z-index: 200;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* Lenis */
html.lenis,
html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: var(--night);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
  /* Red de seguridad si el JS no llega a ejecutarse. */
  animation: preloader-out 0.6s ease 7s forwards;
}
.preloader__inner {
  display: flex;
  align-items: flex-end;
  gap: 0.4em;
}
.preloader__logo {
  font-family: var(--display);
  font-size: clamp(64px, 14vw, 180px);
  line-height: 0.8;
  letter-spacing: 0.01em;
  color: var(--white);
}
.preloader__pct {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  min-width: 5ch;
  text-align: right;
}
.preloader__bar {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.25s linear;
}
.is-loaded .preloader,
.is-static .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes preloader-out {
  to { opacity: 0; visibility: hidden; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(14px + env(safe-area-inset-top)) var(--pad-r) 14px var(--pad-l);
  background: linear-gradient(to bottom, rgba(3, 3, 3, 0.72), rgba(3, 3, 3, 0));
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.brand__pulse {
  width: 34px;
  height: 17px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.brand__word {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
  font-size: 14px;
  font-weight: 500;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  text-decoration: none;
  color: var(--white);
}
.site-nav a:hover { color: var(--yellow); }
.site-nav .site-nav__go {
  padding: 0 18px;
  border: 1px solid rgba(255, 194, 26, 0.7);
  border-radius: 999px;
  color: var(--yellow);
}
.site-nav .site-nav__go:hover { background: var(--yellow); color: var(--ink); }

/* ---------- Hero ----------
   La secuencia se "fija" con position: sticky dentro de un contenedor alto
   (300vh de recorrido en escritorio, 250vh en móvil). El diseño queda definido
   desde el primer dibujo: sin saltos. El último 100vh es el tramo en que el
   bloque de sabores sube sobre el último fotograma. */
.hero-track { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .hero-track { height: 400vh; height: calc(100svh + 300vh); }
  .hero-track > .hero { position: sticky; top: 0; }
  .flavors { margin-top: -100vh; margin-top: -100svh; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 767px), (prefers-reduced-motion: no-preference) and (max-aspect-ratio: 4/5) {
  .hero-track { height: 350vh; height: calc(100svh + 250svh); }
}
/* Sin GSAP (CDN caído): imagen fija y recorrido normal. */
.is-static .hero-track { height: auto; }
.is-static .hero { position: relative; }
.is-static .flavors { margin-top: 0; }

.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
}
.hero__canvas,
.hero__can {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
}
.hero__canvas { z-index: 1; }
.hero__can { z-index: 3; }

.hero__fallback { display: none; }
.hero__fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__title {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  top: 47%;
  translate: 0 -50%;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(72px, 19.5vw, 420px);
  line-height: 0.84;
  letter-spacing: 0.005em;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
  pointer-events: none;
}
.hero__line { display: block; will-change: transform, opacity; }
.hero__line--accent { color: var(--yellow); }
.hero__half--word { margin-left: 0.22em; }

/* Escritorio: cada línea se parte a los lados de la lata y entra un poco detrás. */
.is-split .hero__title {
  --gap: calc(var(--can-w, 22vw) - 0.2em);
  font-size: min(calc((100vw - var(--can-w, 22vw)) / 4.6), 34vh);
  line-height: 0.86;
}
.is-split .hero__line {
  display: grid;
  grid-template-columns: 1fr var(--gap) 1fr;
}
.is-split .hero__title { translate: var(--can-x, 0px) -50%; }
.is-split .hero__half:first-child { grid-column: 1; justify-self: end; }
.is-split .hero__half:last-child { grid-column: 3; justify-self: start; margin-left: 0; }

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.hero__word {
  position: absolute;
  z-index: 5;
  font-family: var(--display);
  font-size: clamp(56px, 10.5vw, 210px);
  line-height: 0.86;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 6px 48px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero__idx {
  display: block;
  margin-bottom: 0.9em;
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--yellow);
  text-shadow: none;
}
.hero__word--1 { left: var(--pad-l); top: 17%; }
.hero__word--2 { right: var(--pad-r); top: 41%; text-align: right; }
.hero__word--2 .hero__idx { color: var(--yellow); }
.hero__word--3 { left: calc(var(--pad-l) + 4vw); bottom: 13%; color: var(--yellow); }
.hero__word--3 .hero__idx { color: var(--white); }

.hero__hud {
  position: absolute;
  z-index: 6;
  left: var(--pad-l);
  bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hero__track {
  position: relative;
  width: clamp(64px, 10vw, 140px);
  height: 1px;
  background: rgba(245, 245, 240, 0.25);
  overflow: hidden;
}
.hero__progress {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.hero__hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
}
.hero__hint-line {
  width: 1px;
  height: 44px;
  background: var(--yellow);
  transform-origin: 50% 0;
  animation: hint 1.8s var(--ease-out) infinite;
}
@keyframes hint {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.hero__dim {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

/* Modo estático: movimiento reducido o sin GSAP. */
.is-static .hero__fallback {
  display: block;
  position: absolute;
  inset: 0;
}
.is-static .hero__canvas,
.is-static .hero__can,
.is-static .hero__word,
.is-static .hero__hud,
.is-static .hero__vignette { display: none; }
.is-static .hero__title {
  text-shadow: 0 8px 60px rgba(0, 0, 0, 0.7);
}
.is-static .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(3, 3, 3, 0.55), rgba(3, 3, 3, 0.15) 45%, rgba(3, 3, 3, 0.65));
}

/* ---------- Secciones ---------- */
.anchor {
  position: absolute;
  top: 0;
}
.section-head {
  position: relative;
  z-index: 3;
}
.eyebrow {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span { color: var(--yellow); margin-right: 0.6em; }
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 7.4vw, 132px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

/* ---------- Sabores ---------- */
.flavors {
  --c: var(--yellow);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "head stage ui";
  align-items: end;
  gap: 24px;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(104px, 12vh, 150px) var(--pad-r) clamp(56px, 8vh, 96px) var(--pad-l);
  background: var(--ink);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  isolation: isolate;
}
.flavors[data-active="berries"] { --c: var(--red); }
.flavors[data-active="limon"] { --c: var(--green); }

.flavors > .section-head { grid-area: head; align-self: start; }

.flavors__tint {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
  pointer-events: none;
}
.flavors__tint--berries { background: radial-gradient(70% 60% at 50% 62%, rgba(230, 57, 70, 0.34), rgba(230, 57, 70, 0) 72%); }
.flavors__tint--maracuya { background: radial-gradient(70% 60% at 50% 62%, rgba(255, 194, 26, 0.26), rgba(255, 194, 26, 0) 72%); }
.flavors__tint--limon { background: radial-gradient(70% 60% at 50% 62%, rgba(139, 211, 47, 0.28), rgba(139, 211, 47, 0) 72%); }
.flavors[data-active="berries"] .flavors__tint--berries,
.flavors[data-active="maracuya"] .flavors__tint--maracuya,
.flavors[data-active="limon"] .flavors__tint--limon { opacity: 1; }

.flavors__bigname {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.flavors__bigname span {
  grid-area: 1 / 1;
  font-family: var(--display);
  font-size: clamp(120px, 23vw, 440px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 245, 240, 0.13);
  opacity: 0;
  transform: translateY(6%);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.flavors[data-active="berries"] [data-name="berries"],
.flavors[data-active="maracuya"] [data-name="maracuya"],
.flavors[data-active="limon"] [data-name="limon"] { opacity: 1; transform: none; }

.flavors__stage {
  grid-area: stage;
  position: relative;
  height: clamp(420px, 68vh, 720px);
  perspective: 1200px;
}
.flavors__tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.can {
  --can-w: clamp(150px, 15vw, 250px);
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: var(--can-w);
  margin-left: calc(var(--can-w) / -2);
}
.can img { width: 100%; height: auto; }
.can__pos {
  position: relative;
  transform-origin: 50% 100%;
  transition: transform 0.95s var(--ease-out), opacity 0.95s var(--ease-out);
}
.can[data-pos="center"] { z-index: 3; }
.can[data-pos="center"] .can__pos { transform: translate3d(0, 0, 0) scale(1.14); }
.can[data-pos="left"] .can__pos { transform: translate3d(-82%, -6%, 0) scale(0.76); opacity: 0.55; }
.can[data-pos="right"] .can__pos { transform: translate3d(82%, -6%, 0) scale(0.76); opacity: 0.55; }
.can__float { animation: float 5.6s ease-in-out infinite; }
.can__shadow {
  position: absolute;
  left: 8%; right: 8%;
  bottom: -9%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
  animation: shadow 5.6s ease-in-out infinite;
}
.can__shadow::before {
  content: "";
  position: absolute;
  inset: -60% -30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  opacity: 0.32;
  z-index: -1;
}
.can[data-flavor="berries"] .can__float,
.can[data-flavor="berries"] .can__shadow { animation-delay: -1.9s; }
.can[data-flavor="limon"] .can__float,
.can[data-flavor="limon"] .can__shadow { animation-delay: -3.8s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.4deg); }
  50% { transform: translate3d(0, -5%, 0) rotate(1.4deg); }
}
@keyframes shadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.74); opacity: 0.55; }
}

.flavors__ui {
  grid-area: ui;
  position: relative;
  z-index: 3;
  display: grid;
  gap: 22px;
  justify-items: end;
  text-align: right;
}
.tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.6);
}
.tab {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 600 15px/1 var(--text);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.tab:hover { color: var(--c); }
.tab[aria-selected="true"] { background: var(--c); color: var(--ink); }
.flavors__panel { max-width: 30ch; }
.flavors__desc {
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  min-height: 2.6em;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.flavors__desc.is-out { opacity: 0; transform: translateY(8px); }

/* ---------- Lo que tiene ---------- */
.facts {
  position: relative;
  z-index: 2;
  padding: clamp(88px, 12vw, 180px) var(--pad-r) clamp(72px, 9vw, 140px) var(--pad-l);
  background: var(--ink);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.fact {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 32px clamp(16px, 2vw, 32px) 40px;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fact:nth-child(2) .fact__icon { stroke: var(--red); }
.fact:nth-child(3) .fact__icon { stroke: var(--green); }
.fact__big {
  font-family: var(--display);
  font-size: clamp(56px, 6.4vw, 112px);
  line-height: 0.9;
  text-transform: uppercase;
}
.fact__big small {
  font-size: 0.42em;
  margin-left: 0.08em;
  color: var(--yellow);
}
.fact:nth-child(3) .fact__big small { margin: 0 0.1em; font-size: 0.62em; vertical-align: 0.12em; }
.fact__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
.facts__note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 20px 0;
  background: var(--ink);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  width: max-content;
  padding-right: clamp(20px, 3vw, 44px);
  animation: marquee 26s linear infinite;
}
.marquee span {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 96px);
  line-height: 1;
  text-transform: uppercase;
}
.marquee span:nth-of-type(3n + 2) { color: transparent; -webkit-text-stroke: 1.5px var(--white); }
.marquee svg {
  width: clamp(48px, 5vw, 80px);
  height: auto;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
@keyframes marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(28px, 4vw, 44px);
  min-height: 92vh;
  min-height: 92svh;
  padding: clamp(96px, 12vw, 160px) var(--pad-r) clamp(96px, 12vw, 160px) var(--pad-l);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(55% 45% at 50% 58%, rgba(255, 194, 26, 0.17), rgba(255, 194, 26, 0) 70%),
    var(--ink);
}
.cta__pulse {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: -1;
  width: 100%;
  height: 34%;
  translate: 0 -50%;
  fill: none;
  stroke: rgba(255, 194, 26, 0.28);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.cta__pulse polyline { vector-effect: non-scaling-stroke; }
.cta__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(60px, 11.5vw, 220px);
  line-height: 0.86;
  text-transform: uppercase;
}
.cta__title span { color: var(--yellow); }
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 34px 0 28px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: 600 19px/1 var(--text);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--yellow);
  animation: ring 2.4s var(--ease-out) infinite;
  pointer-events: none;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.98); }
.btn__icon { width: 24px; height: 24px; fill: currentColor; }
@keyframes ring {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.35, 1.7); opacity: 0; }
}
.cta__small {
  max-width: 40ch;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(48px, 6vw, 80px) var(--pad-r) calc(32px + env(safe-area-inset-bottom)) var(--pad-l);
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.warning {
  max-width: 980px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 194, 26, 0.45);
  border-radius: 14px;
  background: rgba(255, 194, 26, 0.07);
  font-size: 16px;
  line-height: 1.5;
}
.warning strong { color: var(--yellow); }
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(40px, 6vw, 72px);
}
.site-footer__row--small {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.site-footer__logo {
  font-family: var(--display);
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 245, 240, 0.35);
}
.site-footer__links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.site-footer__links a,
.studio {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
}
.site-footer__links a:hover,
.studio:hover { color: var(--yellow); }
.studio { color: var(--white); }
.studio strong { color: var(--yellow); }

/* ---------- Grano ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Aparición al hacer scroll ---------- */
.js:not(.is-static) [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.js:not(.is-static) [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js:not(.is-static) .fact:nth-child(2) { transition-delay: 0.08s; }
.js:not(.is-static) .fact:nth-child(3) { transition-delay: 0.16s; }
.js:not(.is-static) .fact:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Páginas legales y 404 ---------- */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.page .site-header { position: sticky; background: rgba(3, 3, 3, 0.85); }
.legal {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad-r) 80px var(--pad-l);
}
.legal h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  text-transform: uppercase;
}
.legal .updated { margin: 16px 0 40px; color: var(--muted); font-size: 14px; }
.legal h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--yellow);
}
.legal p,
.legal li { color: #dcdcd5; margin-bottom: 12px; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal a { color: var(--yellow); text-underline-offset: 3px; }

.notfound {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
  padding: 120px var(--pad-r) 80px var(--pad-l);
}
.notfound .notfound__code {
  font-family: var(--display);
  font-size: clamp(140px, 30vw, 440px);
  line-height: 0.8;
  color: var(--yellow);
}
.notfound__line {
  width: min(560px, 100%);
  height: auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}
.notfound h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.9;
  text-transform: uppercase;
}
.notfound p { color: var(--muted); max-width: 40ch; }
.notfound .btn::after { display: none; }

/* ---------- Checkout ---------- */
.checkout-page .site-header { background: rgba(3, 3, 3, 0.9); }
.co {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--pad-r) 80px var(--pad-l);
}
.co__step {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  grid-template-areas: "head head" "form summary";
  gap: 32px clamp(24px, 4vw, 64px);
  align-items: start;
}
.co__head { grid-area: head; }
.co__form { grid-area: form; display: grid; gap: 28px; }
.summary { grid-area: summary; }
.co__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.88;
  text-transform: uppercase;
}
.co__title:focus { outline: none; }
.demo-note {
  max-width: 62ch;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 194, 26, 0.45);
  border-radius: 12px;
  background: rgba(255, 194, 26, 0.07);
  font-size: 15px;
}
.demo-note strong { color: var(--yellow); }

.co__block {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.co__block legend {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  text-transform: uppercase;
}
.co__block legend span {
  font-family: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--yellow);
}
.co__hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.co__hint--top { margin: -6px 0 14px; }

.co__cans { display: grid; gap: 10px; }
.line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111110;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.line img { width: 44px; height: auto; }
.line[data-flavor="berries"] { --c: var(--red); }
.line[data-flavor="maracuya"] { --c: var(--yellow); }
.line[data-flavor="limon"] { --c: var(--green); }
.line.is-on { border-color: var(--c); background: #151513; }
.line__name { font-family: var(--display); font-size: 26px; line-height: 1; text-transform: uppercase; }
.line__desc { font-size: 14px; color: var(--muted); }
.line__price { margin-top: 2px; font-size: 14px; font-weight: 600; }
.qty {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.qty__btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font: 500 22px/1 var(--text);
  cursor: pointer;
}
.qty__btn:hover:not(:disabled) { background: rgba(245, 245, 240, 0.1); }
.qty__btn:disabled { color: #6f6f69; cursor: default; }
.qty__val {
  min-width: 2ch;
  text-align: center;
  font-weight: 600;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: grid; gap: 6px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label,
.check label { font-size: 15px; font-weight: 500; }
.field label span { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #4a4a46;
  border-radius: 12px;
  background: #121211;
  color: var(--white);
  font: 400 16px/1.2 var(--text);
}
.field input::placeholder { color: #8c8c86; }
.field input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--yellow); }
.field input[aria-invalid="true"] { border-color: #ff6b75; }
.field__err { min-height: 0; font-size: 14px; color: #ff8a92; }
.field__err:empty { display: none; }

.more { margin-top: 16px; }
.more summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--yellow);
  cursor: pointer;
}
.more[open] summary { margin-bottom: 8px; }

.pay {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pay__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay__opt {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #4a4a46;
  border-radius: 14px;
  background: #121211;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.pay__opt strong { font-size: 16px; }
.pay__opt span { font-size: 13px; color: var(--muted); }
.pay__input:checked + .pay__opt { border-color: var(--yellow); background: rgba(255, 194, 26, 0.08); }
.pay__input:checked + .pay__opt strong { color: var(--yellow); }
.pay__input:focus-visible + .pay__opt { outline: 3px solid var(--yellow); outline-offset: 3px; }

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 6px 12px;
  align-items: start;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--yellow);
}
.check label { font-weight: 400; color: #dcdcd5; }
.check .field__err { grid-column: 2; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.co__submit { display: grid; gap: 12px; }
.btn--block { width: 100%; justify-content: center; }
.btn--block::after { display: none; }
.form-error { font-weight: 600; color: #ff8a92; }
.form-error:empty { display: none; }
.co__small { font-size: 13px; color: var(--muted); text-align: center; }

.summary {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #111110;
}
.summary h2 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}
.summary__list { display: grid; gap: 8px; margin-bottom: 16px; }
.summary__list li { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.summary__empty { margin-bottom: 16px; color: var(--muted); font-size: 15px; }
.summary__empty[hidden] { display: none; }
.sums { display: grid; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.sums div { display: flex; justify-content: space-between; font-size: 15px; }
.sums dt { color: var(--muted); }
.sums dd { margin: 0; font-variant-numeric: tabular-nums; }
.sums .sums__total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.sums .sums__total dt { color: var(--white); font-weight: 600; }
.sums .sums__total dd { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--yellow); }
.summary__free { margin-top: 14px; font-size: 14px; color: var(--green); }
.summary__free:empty { display: none; }

.co__done {
  display: grid;
  justify-items: start;
  gap: 22px;
  max-width: 720px;
}
.co__done[hidden],
.co__step[hidden] { display: none; }
.co__done-pulse {
  width: min(400px, 100%);
  height: auto;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.co__done .eyebrow span:last-child { color: var(--white); margin: 0; }
.co__lead { font-size: clamp(18px, 2vw, 22px); max-width: 40ch; }
.co__lead strong { color: var(--yellow); font-weight: 600; }
.summary__list--done { width: min(420px, 100%); margin: 0; }
.co__total strong { font-family: var(--display); font-size: 32px; font-weight: 400; color: var(--yellow); margin-left: 6px; }
.simple {
  padding: 18px 20px;
  border-left: 3px solid var(--green);
  background: rgba(139, 211, 47, 0.07);
  border-radius: 0 12px 12px 0;
}
.simple h2 { margin-bottom: 6px; font-size: 16px; font-weight: 600; color: var(--green); }

@media (max-width: 900px) {
  .co__step {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "form" "summary";
  }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr; }
  .pay__opt { min-height: 60px; }
  .line { grid-template-columns: 36px minmax(0, 1fr); padding: 12px; }
  .line img { width: 36px; grid-row: span 2; }
  .line .qty { grid-column: 2; justify-self: start; }
  .line__desc { display: none; }
}

/* ---------- Tablet / móvil ---------- */
@media (max-width: 1023px) {
  .flavors {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "stage" "ui";
    align-items: start;
    gap: 8px;
  }
  .flavors__stage { height: clamp(360px, 56vh, 560px); }
  .flavors__ui { justify-items: center; text-align: center; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
  .site-nav a:not(.site-nav__go) { display: none; }
  .hero__hud { display: none; }
  .flavors__stage { height: clamp(380px, 60svh, 560px); margin-top: 8px; }
  .can { --can-w: 29vw; bottom: 12%; }
  .can[data-pos="left"] .can__pos { transform: translate3d(-74%, -6%, 0) scale(0.72); }
  .can[data-pos="right"] .can__pos { transform: translate3d(74%, -6%, 0) scale(0.72); }
  .tab { padding: 0 15px; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact,
  .fact:nth-child(3) {
    grid-template-columns: 44px 1fr;
    column-gap: 20px;
    row-gap: 8px;
    padding: 26px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .fact:first-child { border-top: 0; }
  .fact__icon { grid-row: span 2; }
  .fact__big { font-size: 56px; }
  .btn { min-height: 58px; }
}

/* Hero en pantallas verticales (mismo criterio que el JS para elegir los fotogramas móviles). */
@media (max-width: 767px), (max-aspect-ratio: 4/5) {
  .hero__title {
    top: 0;
    /* La tapa de la lata cubre la parte baja de "TU PULSO" (con translate: sin saltos de diseño). */
    translate: 0 calc(var(--can-top, 40svh) + 0.34em - 100%);
    font-size: min(21vw, 15svh);
    line-height: 0.86;
  }
  .is-static .hero__title { top: 50%; translate: 0 -50%; }

  /* Durante el chapuzón la cámara se aleja: ENERGÍA y SABOR arriba de la imagen,
     PULSO abajo. Así no tapan el maracuyá ni el hielo. */
  /* (GSAP anima transform en estas palabras: se ubican con top/bottom, no con translate). */
  .hero__word { font-size: min(15vw, 9svh); }
  .hero__word--1,
  .hero__word--2 { top: auto; bottom: calc(100% - var(--wide-top, 22svh) - 0.3em); }
  .hero__word--1 { left: var(--pad-l); }
  .hero__word--2 { right: var(--pad-r); }
  .hero__word--3 {
    top: calc(var(--wide-bottom, 78svh) - 23px - 0.28em);
    bottom: auto;
    left: var(--pad-l);
    font-size: min(26vw, 15svh);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .preloader { display: none; }
  .hero__hint { display: none; }
}
