/*
 * Ettaka! Coffee Shot — hoja de estilos única (propia, sin dependencias).
 * Paleta tomada de la propuesta gráfica de marca: negro, marrón café, beige y vainilla.
 */

/* ------------------------------------------------------------------ fuentes */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alfa Slab One';
  src: url('../fonts/alfa-slab-one-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ base */
:root {
  --ink: #111;
  --paper: #fff;
  --brown: #a76737;
  --beige: #e5c8a8;
  --cream: #f6ecdf;
  --vanilla: #fdd276;
  --coffee: #1e130c;
  --bolt: var(--brown);
  --hdr: 72px;
  --radius: 22px;
  --shadow: 6px 6px 0 var(--ink);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --slab: 'Alfa Slab One', 'Rockwell', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1; }
strong { font-weight: 800; }
::selection { background: var(--vanilla); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

.kicker {
  margin: 0 0 .2em;
  font-weight: 800; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: .08em; font-size: 15px;
  color: var(--brown);
}
.kicker--light { color: var(--vanilla); }
.title {
  font-weight: 900; font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: .9; letter-spacing: -.01em;
  margin-bottom: .35em;
}
.title--md { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.title--light { color: var(--cream); }
.slab, .hero__title em { font-family: var(--slab); font-weight: 400; font-style: normal; font-stretch: 100%; display: inline-block; transform: skewX(-8deg); }
.bang { color: var(--brown); }

/* botones: píldora con sombra dura, como las pegatinas de la marca */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 28px;
  border: 3px solid var(--ink); border-radius: 999px;
  background: var(--vanilla); color: var(--ink);
  font: inherit; font-weight: 800; font-stretch: 112%; font-size: 16px; line-height: 1.1;
  text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  box-shadow: 0 5px 0 var(--ink);
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn--ghost { background: var(--paper); }
.btn--sm { padding: 9px 18px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.btn--sm:hover { box-shadow: 0 5px 0 var(--ink); }
.btn--block { width: 100%; }

/* ------------------------------------------------------------------ cabecera */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 max(24px, (100% - 1200px) / 2);
  background: var(--beige);
  transition: background-color .3s, box-shadow .3s, height .3s;
}
.hdr.is-scrolled { background: rgba(246, 236, 223, .94); box-shadow: 0 3px 0 var(--ink); }
@supports (backdrop-filter: blur(8px)) { .hdr.is-scrolled { backdrop-filter: blur(8px); background: rgba(246, 236, 223, .82); } }
.hdr__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hdr__iso { width: 40px; height: 42px; transition: transform .5s var(--ease-back); }
.hdr__brand:hover .hdr__iso { transform: rotate(-14deg) scale(1.08); }
.hdr__logo { width: 132px; height: 25px; }
.hdr__nav { display: flex; align-items: center; gap: 30px; }
.hdr__nav a:not(.btn) {
  position: relative;
  font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 14px; letter-spacing: .05em;
  text-decoration: none;
}
.hdr__nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: var(--brown); border-radius: 3px;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out);
}
.hdr__nav a:not(.btn):hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__burger { display: none; }

/* ------------------------------------------------------------------ cintas (marquee) */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee span {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee--top { background: var(--ink); color: var(--vanilla); padding: 9px 0; font-size: 14px; }
.marquee--top .marquee__track { animation-duration: 26s; }

.bands {
  position: relative; height: 210px; overflow: hidden;
  background: linear-gradient(var(--cream) 50%, var(--coffee) 50%);
}
.marquee--band {
  position: absolute; left: -5%; width: 110%; top: 50%;
  padding: 14px 0; font-size: clamp(22px, 3.2vw, 40px); line-height: 1.1;
  border-block: 4px solid var(--ink);
}
.marquee--a { background: var(--vanilla); color: var(--ink); transform: translateY(-50%) rotate(-4deg); z-index: 1; }
.marquee--b { background: var(--brown); color: var(--cream); transform: translateY(-50%) rotate(3deg); }
.marquee--a .marquee__track { animation-duration: 40s; }
.marquee--b .marquee__track { animation-duration: 46s; }

/* ------------------------------------------------------------------ separador de goteo */
.drip { position: absolute; left: 0; width: 100%; height: clamp(50px, 7vw, 110px); z-index: 3; pointer-events: none; }
.hero > .drip { bottom: 1px; transform: translateY(100%); }
.drip--top { top: -1px; }
.drip--beige { fill: var(--beige); }
.drip--ink { fill: var(--ink); }

/* ------------------------------------------------------------------ portada */
.hero {
  position: relative; z-index: 2;
  background: var(--beige);
  padding-top: var(--hdr);
}
.hero__stage {
  position: relative;
  min-height: calc(100vh - var(--hdr) - 39px);
  min-height: calc(100svh - var(--hdr) - 39px);
  display: grid; place-items: center;
  padding: 40px 24px 90px;
  overflow-x: hidden; overflow-x: clip; /* los sachets sobresalen por los lados */
}
.hero__center { position: relative; z-index: 2; text-align: center; max-width: 760px; }
.hero__logo {
  width: min(500px, 74vw); margin: 0 auto 18px;
  filter: drop-shadow(6px 8px 0 rgba(17, 17, 17, .18));
  animation: pop 1s var(--ease-back) .1s both, wobble 6s ease-in-out 1.2s infinite;
}
@keyframes pop { from { opacity: 0; transform: scale(.3) rotate(-14deg); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg) scale(1.02); } }
.hero__title {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(2rem, 5.4vw, 4.6rem); line-height: .95; letter-spacing: -.01em;
  margin-bottom: 18px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; animation: lineup .9s var(--ease-out) both; }
.hero__title .line:nth-child(1) > span { animation-delay: .45s; }
.hero__title .line:nth-child(2) > span { animation-delay: .58s; }
.hero__title em { color: var(--brown); text-transform: none; font-size: 1.05em; }
@keyframes lineup { from { transform: translateY(110%); } }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 520px; margin: 0 auto 26px; animation: fadeup .8s var(--ease-out) .75s both; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeup .8s var(--ease-out) .9s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(24px); } }

.hero__sachet {
  position: absolute; z-index: 1; top: 50%;
  height: min(66vh, 600px); width: auto;
  filter: drop-shadow(14px 18px 0 rgba(17, 17, 17, .14));
}
.hero__sachet--l { left: max(2vw, 50% - 640px); --r: -13deg; animation: sachet-in 1.1s var(--ease-back) .25s both, bob 5s ease-in-out 1.4s infinite; }
.hero__sachet--r { right: max(2vw, 50% - 640px); --r: 11deg; animation: sachet-in 1.1s var(--ease-back) .4s both, bob 5.6s ease-in-out 1.5s infinite reverse; }
@keyframes sachet-in { from { opacity: 0; transform: translateY(40%) rotate(calc(var(--r) * -2)); } to { transform: translateY(-50%) rotate(var(--r)); } }
@keyframes bob {
  0%, 100% { transform: translateY(-50%) rotate(var(--r)); }
  50% { transform: translateY(calc(-50% - 18px)) rotate(calc(var(--r) + 3deg)); }
}
.hero__ripsip {
  position: absolute; z-index: 2; right: max(14vw, 50% - 470px); bottom: 70px;
  width: clamp(120px, 14vw, 200px);
  animation: pop .9s var(--ease-back) 1.1s both;
}
.hero__drop { position: absolute; z-index: 1; fill: var(--brown); width: 34px; height: 48px; animation: float 4s ease-in-out infinite; }
.hero__drop--1 { left: 22%; top: 16%; width: 26px; height: 36px; }
.hero__drop--2 { right: 24%; top: 12%; animation-delay: -1.5s; }
.hero__drop--3 { left: 17%; bottom: 14%; width: 44px; height: 62px; animation-delay: -2.6s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-16px) rotate(8deg); } }

/* ------------------------------------------------------------------ quién es Ettaka */
.about { position: relative; padding: clamp(120px, 14vw, 190px) 0 90px; background: var(--cream); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.about__intro { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; }
.pills { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; max-width: 470px; }
.pills li {
  border: 3px solid var(--ink); border-radius: 999px; padding: 11px 22px;
  background: var(--paper);
  font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 15px; text-align: center;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .25s var(--ease-out), background-color .25s;
}
.pills li:hover { transform: translateX(8px) rotate(-1deg); background: var(--vanilla); }

.about__visual { position: relative; }
.equation {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1.25fr; align-items: center; gap: 10px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow);
  padding: 34px 26px 26px;
}
.equation__item { text-align: center; }
.equation__item svg { width: 100%; height: 110px; }
.equation__item span { display: block; margin-top: 10px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }
.equation__op { font-weight: 900; font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.equation__result svg { width: 100%; height: 150px; }
.about__caption { margin: 22px 6px 0; font-size: 16px; }

.badges { position: absolute; inset: 0; pointer-events: none; }
.badge { position: absolute; width: 112px; height: 112px; display: grid; place-items: center; animation: spin 18s linear infinite; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--vanilla); stroke: var(--ink); stroke-width: 4; }
.badge span { position: relative; text-align: center; font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 12px; line-height: 1.15; }
.badge--1 { top: -64px; right: -20px; }
.badge--2 { top: -70px; left: 30%; animation-direction: reverse; animation-duration: 22s; }
.badge--2 svg { fill: var(--brown); }
.badge--2 span { color: var(--paper); }
.badge--3 { bottom: -50px; right: 20%; width: 92px; height: 92px; animation-duration: 15s; }
.badge--3 svg { fill: var(--paper); }
@keyframes spin { to { transform: rotate(360deg); } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: clamp(70px, 9vw, 120px);
}
.stat { border-top: 4px solid var(--ink); padding-top: 14px; }
.stat strong { font-weight: 900; font-stretch: 125%; font-size: clamp(52px, 6vw, 88px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__unit { font-family: var(--slab); color: var(--brown); font-size: clamp(22px, 2.2vw, 32px); margin-left: 6px; display: inline-block; transform: skewX(-8deg); }
.stat p { margin: 6px 0 0; font-size: 15px; max-width: 200px; }

/* ------------------------------------------------------------------ productos */
.products { position: relative; background: var(--coffee); color: var(--cream); }
.products__head { padding: 70px 0 60px; text-align: center; }
.products__head .title { color: var(--cream); }
.products__head .title .slab { color: var(--vanilla); }
.products__head .kicker { color: var(--vanilla); }
.products__sub { max-width: 560px; margin: 0 auto; font-size: 18px; color: rgba(246, 236, 223, .85); }

/* escenario de sabores */
.flavors { position: relative; }
.flavors__pin { position: relative; }
.flavor {
  --in: 1; --out: 0; --f: 0;
  position: relative;
  min-height: 100vh;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 4vw;
  isolation: isolate;
  padding: 90px max(24px, (100% - 1200px) / 2) 110px;
  overflow: hidden;
  color: var(--fg, var(--paper));
}
#pure { --fg: var(--paper); --bolt: var(--beige); background: var(--brown); }
#vanilla { --fg: var(--ink); --bolt: var(--vanilla); background: var(--vanilla); }
#vanilla .flavor__iso { --bolt: var(--paper); }
.flavor__word {
  position: absolute; left: 0; top: 50%; z-index: 0;
  display: flex; white-space: nowrap;
  transform: translate(calc(-15% - var(--f) * 25%), -50%);
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(120px, 24vw, 380px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--fg); opacity: .3;
  pointer-events: none;
}
.flavor__visual { position: relative; z-index: 1; height: min(78vh, 720px); }
.flavor__iso {
  position: absolute; left: 50%; top: 50%;
  width: min(62vh, 560px); height: auto; aspect-ratio: 588.5 / 614;
  transform: translate(-50%, -50%) rotate(calc(-25deg + var(--f) * 50deg)) scale(calc(.5 + var(--in) * .5));
  opacity: calc(.2 + var(--in) * .8);
}
.flavor__sachet {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  height: min(68vh, 620px); aspect-ratio: 270 / 1004;
  transform: translate(-50%, calc(-50% + (1 - var(--in)) * 70vh)) rotate(calc(-8deg + (1 - var(--in)) * 30deg));
  perspective: 1400px;
}
.flip {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--f) * 360deg));
  animation: bob2 5s ease-in-out infinite;
}
@keyframes bob2 { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(12px 16px 0 rgba(17, 17, 17, .2)); }
.flip__back { transform: rotateY(180deg); }
.flavor__estuche {
  position: absolute; z-index: 2; right: 0; top: 10%;
  height: min(46vh, 420px); width: auto;
  transform: translateX(calc((1 - var(--in)) * 60vw)) rotate(calc(10deg - var(--f) * 8deg));
  filter: drop-shadow(10px 12px 0 rgba(17, 17, 17, .18));
}
.flavor__caja {
  position: absolute; z-index: 4; left: -2%; bottom: 2%;
  width: min(22vw, 300px); height: auto;
  transform: translateY(calc((1 - var(--in)) * 60vh)) rotate(calc(-7deg + var(--f) * 5deg));
  filter: drop-shadow(10px 12px 0 rgba(17, 17, 17, .18));
}
.flavor__info {
  position: relative; z-index: 5;
  opacity: var(--in);
  transform: translateY(calc((1 - var(--in)) * 80px));
}
.flavor__num { font-weight: 800; font-stretch: 112%; letter-spacing: .15em; font-size: 14px; margin-bottom: 10px; opacity: .8; }
.flavor__name {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: .95; margin-bottom: 20px;
}
.flavor__name .slab { display: block; font-size: 1.55em; line-height: 1; text-transform: uppercase; }
#pure .flavor__name .slab { color: var(--beige); }
.flavor__desc { font-size: 18px; max-width: 430px; }
.meter { margin: 24px 0; display: grid; gap: 10px; max-width: 400px; }
.meter div { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px; }
.meter dt { font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.meter dd { margin: 0; height: 14px; border: 2px solid currentColor; border-radius: 99px; overflow: hidden; }
.meter dd span { display: block; height: 100%; width: calc(var(--v) * 100% * var(--in)); background: currentColor; border-radius: 99px; }
.flavor__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.flavor__tags span {
  border: 2px solid currentColor; border-radius: 99px; padding: 5px 14px;
  font-weight: 800; font-stretch: 112%; font-size: 13px; text-transform: uppercase;
}
.flavors__nav, .flavors__progress { display: none; }

/* modo animado (JS): el escenario se queda fijo y los sabores se suceden con el scroll */
.js-motion .flavors { height: calc((var(--n, 2) + 1) * 100vh); }
.js-motion .flavors__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.js-motion .flavor { position: absolute; inset: 0; min-height: 0; padding-top: calc(var(--hdr) + 20px); }
.js-motion .flavor + .flavor { clip-path: circle(calc(var(--in) * 150%) at 30% 55%); }
.js-motion .flavor:not(:last-of-type) .flavor__visual { transform: scale(calc(1 - var(--out) * .15)); }
.js-motion .flavors__nav {
  display: flex; gap: 6px; position: absolute; z-index: 10; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 99px; padding: 5px; box-shadow: 0 4px 0 var(--ink);
}
.flavors__nav a {
  padding: 7px 18px; border-radius: 99px; color: var(--ink); text-decoration: none;
  font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 13px;
  transition: background-color .25s, color .25s;
}
.flavors__nav a.is-active { background: var(--ink); color: var(--vanilla); }
.js-motion .flavors__progress { display: block; position: absolute; z-index: 10; left: 0; right: 0; top: var(--hdr); height: 5px; background: rgba(17, 17, 17, .15); }
.flavors__progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Rip & Sip */
.rip { position: relative; background: radial-gradient(ellipse at 70% 50%, #3a2416 0%, var(--coffee) 60%); }
.rip__pin {
  --t1: 1; --t2: 1; --b1: 0; --b2: 0; --b3: 1;
  min-height: 100vh;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px;
  padding: 100px max(24px, (100% - 1200px) / 2);
}
.rip__copy .title { font-size: clamp(3rem, 8vw, 7rem); }
.amp { font-family: var(--slab); color: var(--vanilla); display: inline-block; transform: skewX(-8deg); }
.rip__steps { list-style: none; counter-reset: s; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.rip__steps li {
  counter-increment: s;
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(18px, 1.8vw, 22px); color: rgba(246, 236, 223, .55);
  transition: color .35s, transform .35s var(--ease-out);
}
.rip__steps li::before {
  content: counter(s);
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid currentColor; font-weight: 900; font-stretch: 125%;
  transition: background-color .35s, color .35s, border-color .35s;
}
.rip__steps li.is-on { color: var(--cream); transform: translateX(10px); }
.rip__steps li.is-on::before { background: var(--vanilla); border-color: var(--vanilla); color: var(--ink); }
.rip__steps strong { color: var(--vanilla); }
.rip__stage { position: relative; height: min(80vh, 700px); display: grid; place-items: center; }
.rip__glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(253, 210, 118, .35), transparent 65%); }
.rip__sachet { position: relative; height: min(70vh, 600px); aspect-ratio: 270 / 1004; transform: rotate(-6deg); }
.rip__sachet img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(12px 16px 0 rgba(0, 0, 0, .35)); }
.rip__top {
  clip-path: polygon(0 0, 100% 0, 100% 11%, 90% 12.2%, 80% 10.8%, 70% 12.4%, 60% 10.9%, 50% 12.3%, 40% 10.7%, 30% 12.2%, 20% 10.9%, 10% 12.3%, 0 11%);
  transform-origin: 100% 12%;
  transform: translate(calc(var(--t1) * 45%), calc(var(--t1) * -22%)) rotate(calc(var(--t1) * 38deg));
  opacity: calc(1 - var(--t2) * .9);
}
.rip__bottom { clip-path: polygon(0 11%, 10% 12.3%, 20% 10.9%, 30% 12.2%, 40% 10.7%, 50% 12.3%, 60% 10.9%, 70% 12.4%, 80% 10.8%, 90% 12.2%, 100% 11%, 100% 100%, 0 100%); }
.rip__drop {
  position: absolute; left: 50%; top: 9%; width: 34px; height: 48px; fill: var(--brown);
  stroke: var(--paper); stroke-width: 2;
  opacity: min(1, calc(var(--t2) * 4));
  transform: translate(calc(-50% + var(--t2) * var(--dx)), calc(var(--t2) * var(--dy))) rotate(calc(var(--t2) * var(--rot))) scale(calc(.3 + var(--t2) * .9));
}
.rip__drop--1 { --dx: -160px; --dy: -190px; --rot: -40deg; }
.rip__drop--2 { --dx: -40px; --dy: -260px; --rot: -10deg; width: 44px; height: 62px; }
.rip__drop--3 { --dx: 90px; --dy: -230px; --rot: 25deg; }
.rip__drop--4 { --dx: 170px; --dy: -120px; --rot: 50deg; width: 26px; height: 36px; }
.rip__drop--5 { --dx: -210px; --dy: -70px; --rot: -60deg; width: 24px; height: 34px; }
.rip__burst {
  position: absolute; width: clamp(130px, 14vw, 190px); aspect-ratio: 1;
  display: grid; place-items: center;
  transform: scale(var(--s, 0)) rotate(calc((1 - var(--s, 0)) * -40deg));
  pointer-events: none;
}
.rip__burst svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--vanilla); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.rip__burst span { position: relative; font-family: var(--slab); font-size: clamp(22px, 2.4vw, 32px); color: var(--ink); transform: rotate(-8deg) skewX(-8deg); }
.rip__burst--rip { --s: var(--b1); right: 8%; top: 4%; }
.rip__burst--sip { --s: var(--b2); left: 4%; top: 18%; }
.rip__burst--sip svg { fill: var(--brown); }
.rip__burst--sip span { color: var(--paper); }
.rip__burst--ettaka { --s: var(--b3); right: 4%; bottom: 8%; width: clamp(170px, 18vw, 240px); }
.rip__burst--ettaka svg { fill: var(--paper); }
.js-motion .rip { height: 260vh; }
.js-motion .rip__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-top: calc(var(--hdr) + 20px); padding-bottom: 30px; }

/* modos de consumo */
.modes { background: var(--cream); color: var(--ink); padding: 100px 0; }
.modes__title { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.8rem, 3.6vw, 3rem); text-align: center; margin-bottom: 44px; }
.modes__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mode {
  --rx: 0deg; --ry: 0deg;
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 22px 22px; text-align: center;
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .15s linear, background-color .3s;
}
.mode:hover { background: var(--vanilla); }
.mode svg { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--brown); transition: transform .5s var(--ease-back); }
.mode:hover svg { transform: scale(1.18) rotate(-10deg); }
.mode strong { display: block; font-family: var(--slab); font-weight: 400; font-size: 34px; line-height: 1; text-transform: uppercase; margin-bottom: 8px; transform: skewX(-8deg); }
.mode p { margin: 0; font-size: 15px; }

/* formatos */
.formats { background: var(--vanilla); color: var(--ink); padding: 100px 0 110px; text-align: center; }
.formats .kicker { color: var(--ink); opacity: .7; }
.formats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.format {
  --rx: 0deg; --ry: 0deg;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow);
  padding: 26px 24px 24px;
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .15s linear;
}
.format__img { height: 280px; display: grid; place-items: center; margin-bottom: 18px; background: var(--cream); border-radius: 18px; overflow: hidden; }
.format__img img { height: 240px; width: auto; transform: rotate(-6deg); transition: transform .6s var(--ease-back); filter: drop-shadow(8px 10px 0 rgba(17, 17, 17, .14)); }
.format__img--wide img { height: auto; width: 86%; max-height: 240px; object-fit: contain; }
.format:hover .format__img img { transform: rotate(4deg) scale(1.1) translateY(-6px); }
.format h4 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 24px; margin-bottom: 8px; }
.format p { margin: 0; font-size: 16px; }

/* próximos sabores */
.soon { background: var(--ink); color: var(--cream); padding: 110px 0 170px; }
.soon__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.soon .kicker { color: var(--vanilla); }
.soon p { font-size: 18px; max-width: 440px; color: rgba(246, 236, 223, .85); }
.soon .btn { margin-top: 10px; }
.soon__grid { --ink: var(--cream); list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
.soon__grid li { text-align: center; }
.soon__grid svg { width: 100%; max-width: 140px; height: auto; aspect-ratio: 588.5 / 614; margin: 0 auto 10px; transition: transform .6s var(--ease-back); animation: float 5s ease-in-out infinite; }
.soon__grid li:nth-child(2n) svg { animation-delay: -1.7s; }
.soon__grid li:nth-child(3n) svg { animation-delay: -3.1s; }
.soon__grid li:hover svg { transform: rotate(20deg) scale(1.12); }
.soon__grid span { font-family: var(--slab); font-size: 20px; text-transform: uppercase; display: inline-block; transform: skewX(-8deg); }
.soon__grid .is-soon svg { opacity: .9; }
.soon__grid .is-soon span { color: rgba(246, 236, 223, .55); }

/* ------------------------------------------------------------------ contacto */
.contact { position: relative; background: var(--beige); padding: clamp(140px, 14vw, 200px) 0 clamp(70px, 8vw, 120px); }
.contact .title { font-size: clamp(2.2rem, 4vw, 3.7rem); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__copy p { font-size: 18px; max-width: 440px; }
.contact__ripsip { width: min(300px, 70%); margin-top: 30px; animation: wobble 5s ease-in-out infinite; }
.form {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(24px, 3.4vw, 40px);
  display: grid; gap: 16px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 13px 16px;
  transition: box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; background: var(--paper); box-shadow: 0 0 0 4px var(--vanilla); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0392b; background: #fff3f1; }
.field__error { color: #b03224; font-size: 14px; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.check.is-invalid { color: #b03224; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy { font-size: 13.5px; line-height: 1.5; background: var(--cream); border-radius: 14px; padding: 14px 16px; }
.privacy p { margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__out { margin: 0; min-height: 1.5em; font-weight: 700; }
.form.is-sent .form__out { color: #1f7a3f; }
.form.is-failed .form__out, .form.is-invalid .form__out { color: #b03224; }
.form.is-sending button[type="submit"] { opacity: .65; pointer-events: none; }
.form.is-sending button[type="submit"] span::after { content: '…'; }

/* ------------------------------------------------------------------ pie */
.ftr { position: relative; background: var(--ink); color: var(--cream); padding: clamp(110px, 12vw, 170px) 0 28px; }
.ftr__logo { --ink: var(--beige); width: 100%; height: auto; aspect-ratio: 1548.5 / 293; margin-bottom: 50px; }
.ftr__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 40px; align-items: start; padding-bottom: 40px; border-bottom: 2px solid rgba(246, 236, 223, .2); }
.ftr__claim { font-size: 18px; margin: 0; }
.ftr__claim .slab { color: var(--vanilla); font-size: 24px; margin-top: 6px; }
.ftr__nav { display: grid; gap: 8px; }
.ftr__nav a { font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 15px; text-decoration: none; letter-spacing: .04em; width: fit-content; }
.ftr__nav a:hover { color: var(--vanilla); }
.ftr__iso { --ink: var(--cream); width: 86px; height: auto; aspect-ratio: 588.5 / 614; animation: spin 24s linear infinite; }
.ftr__bottom { margin: 22px 0 0; font-size: 13px; opacity: .7; }
.ftr__bottom a { color: inherit; }
.ftr__bottom a:hover { color: var(--vanilla); }

/* ------------------------------------------------------------------ 404 */
.notfound { min-height: 100vh; min-height: 100svh; background: var(--beige); display: grid; place-items: center; text-align: center; padding: calc(var(--hdr) + 40px) 24px 140px; position: relative; }
.notfound__code { display: flex; align-items: center; justify-content: center; gap: .1em; font-weight: 900; font-stretch: 125%; font-size: clamp(110px, 22vw, 260px); line-height: 1; }
.notfound__code svg { width: .85em; height: auto; aspect-ratio: 588.5 / 614; animation: wobble 3s ease-in-out infinite; }
.notfound h1 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 3rem); margin: 16px 0 14px; }
.notfound p { font-size: 18px; margin-bottom: 26px; }
.notfound + .ftr .drip { fill: var(--beige); }

/* ------------------------------------------------------------------ animaciones de entrada */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .mode[data-reveal].is-in, .js .format[data-reveal].is-in { transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity .8s var(--ease-out) var(--d, 0s), transform .15s linear; }

/* ecuación del isotipo: los dos iconos se juntan y aparece el rayo */
.js .equation__item, .js .equation__op, .js .equation__result { transition: transform .9s var(--ease-back), opacity .6s; }
.js .equation:not(.is-in) .equation__item--energy { transform: translateX(-40px) rotate(-20deg); opacity: 0; }
.js .equation:not(.is-in) .equation__item--aroma { transform: translateY(40px); opacity: 0; }
.js .equation:not(.is-in) .equation__op { transform: scale(0); opacity: 0; }
.js .equation:not(.is-in) .equation__result { transform: scale(.2) rotate(-90deg); opacity: 0; }
.js .equation.is-in .equation__item--aroma { transition-delay: .15s; }
.js .equation.is-in .equation__op--plus { transition-delay: .3s; }
.js .equation.is-in .equation__op--eq { transition-delay: .45s; }
.js .equation.is-in .equation__result { transition-delay: .6s; }
.equation.is-in .equation__result svg { animation: zap 2.8s ease-in-out 1.6s infinite; }
@keyframes zap { 0%, 80%, 100% { transform: none; } 85% { transform: scale(1.12) rotate(-6deg); } 90% { transform: scale(.96) rotate(4deg); } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
  .about__grid, .soon__inner, .contact__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 560px; margin-top: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .modes__grid { grid-template-columns: repeat(2, 1fr); }
  .flavor { grid-template-columns: 1fr 1fr; gap: 20px; }
  .rip__pin { grid-template-columns: 1fr 1fr; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .ftr__iso { display: none; }
}

@media (max-width: 760px) {
  :root { --hdr: 62px; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hdr { padding: 0 16px; }
  /* backdrop-filter convierte la cabecera en el contenedor de los elementos fijos y el menú
     (position: fixed) quedaría encerrado en ella: en móvil, fondo opaco sin desenfoque */
  .hdr.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(246, 236, 223, .97); }
  .hdr__iso { width: 34px; height: 36px; }
  .hdr__logo { width: 110px; height: 21px; }
  .hdr__burger {
    display: grid; place-content: center; gap: 5px;
    width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 50%; background: var(--vanilla);
    cursor: pointer; z-index: 2; padding: 0;
  }
  .hdr__burger span { display: block; width: 18px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform .3s, opacity .3s; }
  .hdr__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hdr__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hdr__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hdr__nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--vanilla);
    clip-path: circle(0 at calc(100% - 39px) 31px);
    transition: clip-path .6s var(--ease-out), visibility 0s .6s;
    visibility: hidden;
  }
  .hdr__nav a:not(.btn) { font-size: 34px; font-stretch: 125%; font-weight: 900; }
  .hdr__nav .btn { font-size: 18px; padding: 14px 30px; }
  .menu-open .hdr__nav { clip-path: circle(150% at calc(100% - 39px) 31px); visibility: visible; transition: clip-path .6s var(--ease-out); }
  .menu-open { overflow: hidden; }

  .hero__stage { padding: 26px 16px 80px; align-content: start; }
  .hero__logo { width: min(330px, 78vw); margin-top: 6px; }
  /* bob/sachet-in incluyen translateY(-50%): se compensa con bottom negativo (−50 % de 240 px + 40 px) */
  .hero__sachet { height: 240px; top: auto; bottom: -80px; }
  .hero__sachet--l { left: -34px; }
  .hero__sachet--r { right: -34px; }
  .hero__center { padding-bottom: 210px; }
  .hero__ripsip { right: auto; left: 50%; bottom: 70px; margin-left: -55px; width: 110px; }
  .hero__drop--1 { left: 6%; top: 6%; }
  .hero__drop--2 { right: 8%; top: 4%; }
  .hero__drop--3 { left: auto; right: 30%; bottom: 40px; width: 30px; height: 42px; }
  .hero__cta .btn { padding: 13px 20px; font-size: 14px; }

  .about { padding-top: 110px; }
  .pills li { font-size: 13px; padding: 10px 14px; }
  .equation { padding: 22px 12px 18px; gap: 4px; }
  .equation__item svg { height: 64px; }
  .equation__result svg { height: 96px; }
  .equation__item span { font-size: 10px; letter-spacing: .06em; }
  .badge { width: 86px; height: 86px; }
  .badge span { font-size: 10px; }
  .badge--1 { top: -50px; right: -6px; }
  .badge--2 { left: -10px; bottom: -60px; }
  .badge--3 { display: none; }
  .stats { margin-top: 90px; gap: 26px 16px; }
  .stat p { font-size: 14px; }

  .bands { height: 150px; }
  .marquee--band { padding: 10px 0; border-width: 3px; }

  .products__head { padding: 50px 0 40px; }
  .flavor { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; padding: 70px 16px 90px; gap: 6px; }
  .flavor__visual { height: 50vh; height: 50svh; }
  .flavor__sachet { height: 46vh; height: 46svh; }
  .flavor__iso { width: 44vh; width: 44svh; }
  .flavor__estuche { height: 26vh; height: 26svh; right: 2%; top: 14%; }
  .flavor__caja { width: 38vw; left: 0; bottom: 4%; }
  .flavor__num { display: none; }
  .flavor__name { font-size: 1.5rem; margin-bottom: 8px; }
  .flavor__name .slab { font-size: 1.7em; }
  .flavor__desc { font-size: 15px; line-height: 1.45; margin-bottom: 10px; }
  .meter { display: none; }
  .flavor__tags span { font-size: 11px; padding: 3px 10px; }
  .js-motion .flavor { padding-top: calc(var(--hdr) + 12px); padding-bottom: 80px; align-content: start; }
  .js-motion .flavor + .flavor { clip-path: circle(calc(var(--in) * 150%) at 50% 40%); }
  .js-motion .flavors__nav { bottom: 16px; }

  .rip__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding: 70px 16px 40px; }
  .rip__copy .title { font-size: 3rem; margin-bottom: .1em; }
  .rip__copy .kicker { display: none; }
  .rip__steps { margin-top: 10px; gap: 6px; }
  .rip__steps li { font-size: 15px; gap: 10px; }
  .rip__steps li::before { width: 32px; height: 32px; border-width: 2px; }
  .rip__stage { height: 100%; min-height: 0; }
  .rip__sachet { height: min(50vh, 420px); height: min(50svh, 420px); }
  .rip__drop--1 { --dx: -110px; --dy: -90px; }
  .rip__drop--2 { --dx: -20px; --dy: -120px; }
  .rip__drop--3 { --dx: 70px; --dy: -110px; }
  .rip__drop--4 { --dx: 120px; --dy: -50px; }
  .rip__drop--5 { --dx: -130px; --dy: -20px; }
  .rip__burst { width: 110px; }
  .rip__burst span { font-size: 19px; }
  .rip__burst--ettaka { width: 140px; right: 0; bottom: 0; }
  .js-motion .rip__pin { padding-top: calc(var(--hdr) + 8px); padding-bottom: 16px; }

  .modes, .formats { padding: 70px 0; }
  .modes__grid { gap: 14px; }
  .mode { padding: 20px 12px 16px; }
  .mode svg { width: 48px; height: 48px; }
  .mode strong { font-size: 26px; }
  .mode p { font-size: 14px; }
  .formats__grid { grid-template-columns: 1fr; }
  .format__img { height: 230px; }
  .format__img img { height: 200px; }
  .soon { padding: 80px 0 140px; }
  .soon__grid { gap: 22px 10px; }
  .soon__grid span { font-size: 15px; }

  .contact__grid { gap: 24px; }
  .contact .title { font-size: clamp(2rem, 10vw, 2.6rem); }
  .contact__ripsip { display: none; }
  .form { box-shadow: 6px 6px 0 var(--ink); }
  .form__row { grid-template-columns: 1fr; }

  .ftr__logo { margin-bottom: 34px; }
  .ftr__cols { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .flavor__tags { display: none; }
  .flavor__desc { font-size: 14px; }
}

/* ------------------------------------------------------------------ menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
}
