/* ============================================================
   CANNABIDOL, Laboratorios Lira
   Experiencia scrollytelling.
   script.js publica variables por escena (ver cada bloque):
     .rail --sp (progreso total)  .rituals --vel  --mx/--my (puntero -1..1)
     [data-pin]     --p (progreso fijado 0..1) y fases propias
   Sin .anim (movimiento reducido / sin JS) todo se muestra en
   su estado final, en flujo normal y sin secciones fijadas.
   ============================================================ */

/* Tipografías propias (OFL, Google Fonts) servidas desde /assets/fonts:
   sin peticiones a terceros y sin bloquear el render por otro dominio. */
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("./assets/fonts/dm-mono-400-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("./assets/fonts/dm-mono-400-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: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("./assets/fonts/dm-mono-500-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("./assets/fonts/dm-mono-500-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: 'DM Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("./assets/fonts/dm-sans-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("./assets/fonts/dm-sans-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: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url("./assets/fonts/instrument-serif-italic-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url("./assets/fonts/instrument-serif-italic-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: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url("./assets/fonts/instrument-serif-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url("./assets/fonts/instrument-serif-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; }

@property --in { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --deep: #06120a;
  --forest: #0b2113;
  --forest-2: #12301c;
  --card: #1f3324;
  --moss: #2f6b38;
  --brand: #79b829;
  --lime: #c9f24e;
  --sun: #f4c94a;
  --cream: #f4f1e8;
  --paper: #ebe7da;
  --sage: #e4e9dc;
  --ink: #07130b;
  --muted: #4c5c50;

  --line: rgba(7, 19, 11, .14);
  --line-light: rgba(244, 241, 232, .16);

  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --pad: clamp(20px, 6vw, 96px);
  --stage: 100vh;
  --safe-b: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --mx: 0;
  --my: 0;
  --sp: 0;
  --vel: 0;
}
/* --sp y --vel se publican en .rail y .rituals (ver script.js). */
@supports (height: 100lvh) {
  :root { --stage: 100lvh; --safe-b: calc(100lvh - 100svh); }
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 0;
  -webkit-text-size-adjust: 100%;
  background: var(--deep);
}
html:not(.anim) { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; padding: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 6px; }
[data-theme='light'] :focus-visible { outline-color: var(--moss); }
.on-light .hdr :focus-visible { outline-color: var(--moss); }
.menu-open .hdr :focus-visible { outline-color: var(--lime); }

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

.skip {
  position: fixed;
  z-index: 1200;
  top: 12px; left: 12px;
  padding: 12px 18px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--ink);
  font: 500 12px var(--mono);
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
}

.display {
  font: 400 clamp(50px, 8.6vw, 140px)/.9 var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.display i { color: var(--moss); font-style: italic; }
.display--light { color: var(--cream); }
.display--light i { color: var(--lime); }

.lead {
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.6;
}
.lead--light { color: rgba(244, 241, 232, .72); }

.kicker {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 var(--pad);
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
  font: 500 10px var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.kicker span { opacity: .7; white-space: pre; }
.kicker--light { border-color: var(--line-light); color: var(--cream); }
/* La linea de cada capitulo se dibuja de izquierda a derecha al entrar. */
.anim .kicker { border-bottom-color: transparent; }
.anim .kicker::after {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-io) .1s;
  content: '';
}
.anim .kicker--light::after { background: var(--line-light); }
.anim .kicker.is-in::after { transform: none; }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-height: 54px;
  padding: 16px 22px 16px 26px;
  overflow: hidden;
  border-radius: 99px;
  font: 500 11px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: box-shadow .4s ease, color .4s ease;
  will-change: transform;
}
.btn span, .btn i { position: relative; z-index: 1; line-height: 1; }
.btn i {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-style: normal;
  font-size: 13px;
  transition: transform .45s var(--ease);
}
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 0 14px 40px -10px rgba(201, 242, 78, .55); }
.btn::before {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--cream);
  transform: translate3d(0, 102%, 0);
  transition: transform .55s var(--ease-io);
  content: '';
}
@media (hover: hover) { .btn:hover::before { transform: none; } }
@media (hover: hover) { .btn:hover i { transform: rotate(-45deg); } }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 500 11px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.link span { position: relative; }
.link span::after {
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .5s var(--ease);
  content: '';
}
@media (hover: hover) { .link:hover span::after { transform: scaleX(1); } }
.link i { font-style: normal; font-size: 14px; color: var(--moss); transition: transform .4s var(--ease); }
.link--light { color: var(--cream); }
.link--light i { color: var(--lime); }
@media (hover: hover) { .link:hover i { transform: translate(3px, -3px); } }

/* ---------- Texto dividido (palabras / letras) ---------- */
/* Margen interior arriba: la máscara no recorta acentos de mayúsculas (Á, É). */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em .04em .14em; margin: -.2em -.04em -.14em; }
.wi { display: inline-block; will-change: transform; }
.c { display: inline-block; will-change: transform; }

.ch { display: inline-block; will-change: transform; }
/* Cada letra sube desde su mascara, girando y enfocandose, en cascada. */
.anim [data-split] .ch {
  opacity: 0;
  transform: translate3d(0, 108%, 0) rotate(9deg) scale(.92);
  transform-origin: 0 100%;
  filter: blur(6px);
  transition: transform 1.25s var(--ease), opacity .9s ease, filter 1s ease;
  transition-delay: calc(var(--ci, 0) * 24ms + 60ms);
}
.anim [data-split].is-in .ch { opacity: 1; transform: none; filter: none; }

.anim [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 1s ease, transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.anim [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   CAPAS GLOBALES
   ============================================================ */
.grain {
  position: fixed;
  z-index: 900;
  inset: -100px;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.anim .grain { animation: grain 1.2s steps(6) infinite; }
/* En móviles el grano (6 % de opacidad) apenas se ve y fundirlo sobre toda
   la página en cada frame es caro para la GPU: se omite. */
@media (max-width: 760px), (hover: none) { .grain { display: none; } }
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-30px, 20px); }
  40% { transform: translate(25px, -35px); }
  60% { transform: translate(-15px, 40px); }
  80% { transform: translate(35px, 10px); }
  100% { transform: translate(0, 0); }
}

.rail {
  position: fixed;
  z-index: 950;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
}
.rail i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--lime));
  transform: scaleX(var(--sp));
  transform-origin: left;
}

/* ---------- Loader ---------- */
.loader { display: none; }
.anim .loader {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--cream);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io);
}
.anim.is-loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__inner { display: grid; justify-items: center; gap: 18px; transition: transform 1.1s var(--ease-io), opacity .6s ease; }
.is-loaded .loader__inner { transform: translateY(-18vh); opacity: 0; }
.loader__leaf { width: 54px; height: 54px; overflow: visible; }
.loader__leaf path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.2;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1.6s var(--ease) .1s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__word { font: 600 clamp(28px, 4vw, 44px)/1 var(--sans); letter-spacing: -.04em; overflow: hidden; }
.loader__word span, .loader__word b { display: inline-block; animation: rise 1s var(--ease) both; }
.loader__word b { color: var(--lime); font-weight: 400; animation-delay: .12s; }
@keyframes rise { from { transform: translateY(110%); } }
.loader__count { font: 500 11px var(--mono); letter-spacing: .2em; opacity: .6; }
.loader__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 8vh; height: 1px; background: var(--line-light); }
.loader__bar i { display: block; height: 100%; background: var(--lime); transform: scaleX(var(--load, 0)); transform-origin: left; transition: transform .3s ease; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  /* El navegador mueve la planta como cursor nativo, sin esperar a JavaScript. */
  .anim body, .anim body * { cursor: url('./assets/cursor/sprig.svg') 16 22, auto; }
  .anim body :is(a, button, summary, [role="tab"]),
  .anim body :is(a, button, summary, [role="tab"]) * {
    cursor: url('./assets/cursor/sprig-hover.svg') 18 24, pointer;
  }
  .anim body:has(.cursor.is-down), .anim body:has(.cursor.is-down) * {
    cursor: url('./assets/cursor/sprig-press.svg') 15 20, auto;
  }
  .anim body :is(input, textarea, [contenteditable="true"]) { cursor: text; }
  .anim .cursor { display: block; }
  .cursor {
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    pointer-events: none;
    transform: translate3d(-100px, -100px, 0);
    transition: none;
    will-change: transform;
  }
  .cursor__label {
    position: absolute;
    top: 0; left: 26px;
    padding: 6px 9px;
    border: 1px solid rgba(244, 241, 232, .16);
    border-radius: 99px;
    background: rgba(6, 18, 10, .65);
    white-space: nowrap;
    font: 400 9px var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0;
    transform: translateY(-50%) translateX(-4px);
    transition: opacity .18s ease, transform .2s var(--ease);
  }
  .cursor.is-label .cursor__label { opacity: 1; transform: translateY(-50%); }
  .cursor.is-hidden { opacity: 0; }
}

/* ============================================================
   HEADER + MENU + INDICE
   ============================================================ */
.hdr {
  position: fixed;
  z-index: 800;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  color: var(--cream);
  transition: transform .6s var(--ease), color .5s ease;
}
.hdr.is-hidden { transform: translateY(-120%); }
/* Fuera del hero el header lleva un velo translúcido: el contenido que
   pasa por debajo nunca se cruza con el logotipo ni con el menú. */
.hdr::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(6, 18, 10, .78);
  border-bottom: 1px solid var(--line-light);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0;
  transition: opacity .5s ease, background .5s ease, border-color .5s ease;
  pointer-events: none;
  content: '';
}
.hdr.is-solid::before { opacity: 1; }
.on-light .hdr::before { background: rgba(244, 241, 232, .84); border-color: var(--line); }
.menu-open .hdr::before { opacity: 0; }
.on-light .hdr { color: var(--ink); }
.anim .hdr { opacity: 0; transform: translateY(-30px); transition: transform .6s var(--ease), color .5s ease, opacity .8s ease; }
.anim.is-loaded .hdr { opacity: 1; transform: none; transition-delay: 0s, 0s, .9s; }
.anim.is-loaded .hdr.is-hidden { transform: translateY(-120%); }

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  /* Zona táctil de 44px sin mover el logotipo. */
  padding: 12px 0;
  margin: -12px 0;
  font: 600 21px/1 var(--sans);
  letter-spacing: -.045em;
}
.mark span { color: var(--brand); font-weight: 400; }
.mark small { margin-left: 8px; font: 400 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }

.nav {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line-light);
  border-radius: 99px;
  background: rgba(6, 18, 10, .32);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: background .5s ease, border-color .5s ease;
}
.on-light .nav { border-color: var(--line); background: rgba(244, 241, 232, .6); }
.nav a {
  position: relative;
  padding: 10px 15px;
  border-radius: 99px;
  font: 500 10.5px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .35s ease, color .35s ease;
}
.nav a:hover { background: rgba(244, 241, 232, .12); }
.on-light .nav a:hover { background: rgba(7, 19, 11, .07); }
.nav a.is-current { background: var(--lime); color: var(--ink); }
/* Una pastilla viaja entre secciones en lugar de saltar de enlace en enlace. */
.nav a { z-index: 1; }
.nav.has-pill a.is-current { background: transparent; }
.nav__pill {
  position: absolute;
  z-index: 0;
  top: 5px; bottom: 5px; left: 0;
  width: var(--pw, 0px);
  border-radius: 99px;
  background: var(--lime);
  box-shadow: 0 6px 20px -8px rgba(201, 242, 78, .7);
  transform: translateX(var(--px, 0px));
  transition: transform .75s var(--ease), width .75s var(--ease), opacity .4s ease;
  pointer-events: none;
}

.burger { display: none; }

.menu {
  position: fixed;
  z-index: 790;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px var(--pad) 32px;
  background: var(--deep);
  color: var(--cream);
  clip-path: circle(0 at calc(100% - 44px) 40px);
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__bg { position: absolute; inset: 0; opacity: .22; }
.menu__bg::after { position: absolute; inset: 0; background: linear-gradient(180deg, var(--deep), transparent 40%, var(--deep)); content: ''; }
.menu__links { position: relative; display: grid; gap: 2px; margin-bottom: auto; margin-top: auto; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-light);
  font: 400 clamp(40px, 11vw, 64px)/1.05 var(--serif);
  transform: translateY(30px);
  opacity: 0;
  transition: transform .8s var(--ease), opacity .6s ease;
}
.menu.is-open .menu__links a { transform: none; opacity: 1; transition-delay: calc(var(--i, 0) * 60ms + 250ms); }
.menu__links em { font: 500 10px var(--mono); letter-spacing: .14em; color: var(--lime); font-style: normal; }

.chapters { display: none; }
@media (min-width: 1100px) {
  .chapters {
    position: fixed;
    z-index: 700;
    right: 22px;
    top: 50%;
    display: grid;
    color: var(--cream);
    transform: translateY(-50%);
    transition: color .5s ease, opacity .6s ease;
  }
  .on-light .chapters { color: var(--ink); }
  .anim .chapters { opacity: 0; }
  .anim.is-loaded .chapters { opacity: 1; transition-delay: 0s, 1.2s; }
  /* 24 px por enlace: zona táctil mínima de WCAG 2.5.8. */
  .chapters a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 24px; }
  .chapters span {
    font: 500 9.5px var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .35s ease, transform .45s var(--ease);
  }
  .chapters i { width: 10px; height: 1px; background: currentColor; opacity: .4; transition: width .5s var(--ease), opacity .35s ease, background .35s ease; }
  .chapters a:hover span, .chapters a:focus-visible span, .chapters:hover a.is-current span { opacity: 1; transform: none; }
  .chapters:hover::before, .chapters:focus-within::before { position: absolute; z-index: -1; inset: -14px -12px -14px -150px; border-radius: 18px; background: rgba(6, 18, 10, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); content: ''; }
  .on-light .chapters:hover::before, .on-light .chapters:focus-within::before { background: rgba(244, 241, 232, .75); }
  .chapters a.is-current i { width: 34px; opacity: 1; background: var(--brand); }
  .chapters a:hover i, .chapters a:focus-visible i { opacity: 1; }
}

/* ============================================================
   COREOGRAFIA ENTRE SECCIONES
   [data-rise] --en: la seccion entra como una tarjeta estrecha de
   esquinas amplias y se ensancha hasta ocupar toda la pantalla.
   [data-pin] --out: al soltarse, la escena se queda atras (avanza
   mas lenta, se encoge y se oscurece) mientras la siguiente la cubre.
   ============================================================ */
.anim [data-rise] {
  --en: 1;
  --rr: calc(36px + (1 - var(--en)) * 48px);
  clip-path: inset(0 calc((1 - var(--en)) * 4.5vw) 0 round var(--rr) var(--rr) 0 0);
}
.anim .fmt, .anim .rituals, .anim .stores { margin-top: -36px; }
.anim .reveal::after,
.anim .fmt::after,
.anim .rituals::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: #020804;
  opacity: calc(var(--out, 0) * .6);
  pointer-events: none;
  content: '';
}
.anim .reveal__stick,
.anim .fmt__stick,
.anim .rituals__stick {
  translate: 0 calc(var(--out, 0) * 42vh);
  scale: calc(1 - var(--out, 0) * .07);
}

/* ============================================================
   00 HERO
   Fases (script.js): --in intro, --a expansion del arco,
   --b lema, --c salida bajo el manifiesto.
   El arco se dibuja sobre .hero__frame: script.js mide esa celda
   de la retícula y publica --wt/--wb/--wl/--wrr/--wr en px, así
   el arco nunca se cruza con el titular ni con los textos.
   ============================================================ */
.hero {
  --a: 0; --b: 0; --c: 0; --in: 1;
  --fw: min(33vw, 52vh);
  position: relative;
  background: var(--deep);
  color: var(--cream);
}
.anim .hero { height: 360vh; --in: 0; }
.anim.is-loaded .hero { --in: 1; transition: --in 2s var(--ease-io) .25s; }

.hero__stick {
  position: relative;
  height: var(--stage);
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
.anim .hero__stick { position: sticky; top: 0; }
.hero__stick::after {
  position: absolute;
  z-index: 9;
  inset: 0;
  background: var(--deep);
  opacity: calc(var(--c) * .75);
  pointer-events: none;
  content: '';
}

.hero__bg { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.hero__bg i {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}
.hero__bg i:nth-child(1) { left: -18vmax; top: -22vmax; background: radial-gradient(circle, #2f7a2c, transparent 65%); }
.hero__bg i:nth-child(2) { right: -22vmax; bottom: -26vmax; background: radial-gradient(circle, #3f8f3a, transparent 65%); opacity: .45; }
.hero__bg i:nth-child(3) { left: 30%; top: 30%; width: 40vmax; height: 40vmax; background: radial-gradient(circle, rgba(201, 242, 78, .4), transparent 60%); opacity: .25; }
.anim .hero__bg i { animation: drift 18s ease-in-out infinite alternate; }
.anim .hero__bg i:nth-child(2) { animation-duration: 22s; animation-direction: alternate-reverse; }
.anim .hero__bg i:nth-child(3) { animation-duration: 14s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 5vh, 0) scale(1.15); }
}

.hero__pollen { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: calc(1 - var(--c)); }

.hero__window {
  /* Valores de reserva sin JS; script.js los sustituye por medidas reales. */
  --wt: 30vh;
  --wb: 7vh;
  --wl: 34.5vw;
  --wrr: 34.5vw;
  --wr: 15.5vw;
  --wdy: 8vh;
  --ia: calc(1 - var(--a));
  --lift: calc((1 - var(--in)) * (var(--stage) - var(--wt) - var(--wb)));
  position: absolute;
  z-index: 1;
  inset: 0;
  clip-path: inset(
    calc(var(--ia) * var(--wt) + var(--lift)) calc(var(--ia) * var(--wrr))
    calc(var(--ia) * var(--wb)) calc(var(--ia) * var(--wl))
    round calc(var(--ia) * var(--wr)) calc(var(--ia) * var(--wr)) calc(var(--ia) * 20px) calc(var(--ia) * 20px)
  );
  will-change: clip-path;
}
.hero__window img {
  --s0: .45;
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, var(--stage) * .8003);
  height: auto;
  aspect-ratio: 1122 / 1402;
  transform:
    translate(-50%, -46%)
    translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px + var(--ia) * var(--wdy)), 0)
    scale(calc((var(--s0) + (1 - var(--s0)) * var(--a)) * (1.16 - var(--in) * .16 + var(--c) * .06)));
  will-change: transform;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 30%, rgba(6, 18, 10, .55) 100%),
    linear-gradient(180deg, rgba(6, 18, 10, .35), transparent 30%, transparent 60%, rgba(6, 18, 10, .7));
  opacity: calc(.25 + var(--a) * .75);
}
/* El velo oscurece la foto antes de que entre el lema. */
.hero__window::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(6, 18, 10, .9), rgba(6, 18, 10, .7));
  opacity: clamp(0, var(--b) * 3, 1);
  content: '';
}

/* Retícula: titular arriba, arco al centro, intro y etiquetas a los lados. */
.hero__layout {
  position: absolute;
  z-index: 6;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--fw) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: clamp(28px, 3.4vw, 64px);
  row-gap: clamp(22px, 4.2vh, 46px);
  padding: calc(80px + 3vh) var(--pad) calc(6.5vh + var(--safe-b));
  pointer-events: none;
}

.hero__title {
  grid-column: 1 / -1;
  grid-row: 1;
  font: 400 min(7.4vw, 14vh)/.9 var(--serif);
  letter-spacing: -.035em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 10px 60px rgba(6, 18, 10, .35);
  opacity: clamp(0, 1 - var(--a) * 1.9, 1);
  transform: translate3d(0, calc(var(--a) * -7vh), 0);
}
.hero__l1, .hero__l2 { display: inline-block; will-change: transform; }
.hero__l1 { transform: translate3d(calc(var(--a) * -12vw), 0, 0); }
.hero__l2 { margin-left: .14em; font-style: italic; color: var(--lime); transform: translate3d(calc(var(--a) * 12vw), 0, 0); }
.anim .hero__title .c {
  transform: translate3d(0, 105%, 0) rotate(8deg);
  opacity: 0;
  transition: transform 1.4s var(--ease), opacity .8s ease;
  transition-delay: calc(var(--i) * 40ms + .55s);
}
.anim .hero__title .cl { display: inline-block; overflow: hidden; padding: .2em .06em .16em; margin: -.2em -.06em -.16em; vertical-align: top; }
.anim.is-loaded .hero__title .c { transform: none; opacity: 1; }
/* Al abrirse el arco, cada letra sale de su mascara a su propio ritmo. */
.anim .hero__title .c { translate: 0 calc(var(--a) * var(--r, 0) * 16vh); rotate: calc(var(--a) * var(--r, 0) * 10deg); }

.hero__frame { position: relative; grid-column: 2; grid-row: 2; min-height: 0; }
/* Contorno del arco: sube con la intro y se expande y apaga al abrirse. */
.anim .hero__frame::before {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(201, 242, 78, .45);
  border-radius: 999px 999px 32px 32px;
  clip-path: inset(calc((1 - var(--in)) * 100%) 0 0 0);
  opacity: calc(1 - var(--a) * 2.4);
  transform: scale(calc(1 + var(--a) * .22));
  content: '';
}

.hero__intro,
.hero__side {
  grid-row: 2;
  align-self: end;
  opacity: clamp(0, 1 - var(--a) * 2.6, 1);
}
.hero__intro {
  grid-column: 1;
  justify-self: start;
  max-width: 330px;
  pointer-events: auto;
  transform: translate3d(calc(var(--a) * -5vw), 0, 0);
}
.hero__dek { font-size: 15px; line-height: 1.55; color: rgba(244, 241, 232, .78); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 24px; }

.hero__side {
  grid-column: 3;
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 26px;
  transform: translate3d(calc(var(--a) * 5vw), 0, 0);
}

.hero__cue {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 9.5px var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .7;
}
.hero__cue i { position: relative; width: 1px; height: 38px; overflow: hidden; background: rgba(244, 241, 232, .2); }
.hero__cue i::after { position: absolute; inset: 0; background: var(--lime); animation: cue 2s var(--ease-io) infinite; content: ''; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

.anim .hero__intro > *, .anim .hero__cue {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s ease, transform 1.2s var(--ease);
}
.anim .hero__intro > :nth-child(1) { transition-delay: 1.35s; }
.anim .hero__intro > :nth-child(2) { transition-delay: 1.5s; }
.anim .hero__cue { transition-delay: 1.85s; }
.anim.is-loaded .hero__intro > * { opacity: 1; transform: none; }
.anim.is-loaded .hero__cue { opacity: .7; transform: none; }

.hero__tagline {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  width: min(90vw, 1100px);
  font: 400 clamp(46px, 7.4vw, 124px)/.95 var(--serif);
  letter-spacing: -.025em;
  text-align: center;
  text-shadow: 0 10px 50px rgba(6, 18, 10, .5);
  transform: translate(-50%, -50%) translateY(calc(var(--c) * -8vh));
  pointer-events: none;
}
.hero__tagline em { display: block; color: var(--lime); }
.hero__tagline .wi { --t: clamp(0, (var(--b) * 1.35 - .3) * (var(--n, 6) + 1.5) - var(--i), 1); transform: translate3d(0, calc((1 - var(--t)) * 110%), 0) rotate(calc((1 - var(--t)) * 6deg)); filter: blur(calc((1 - var(--t)) * 8px)); }
.hero:not(.is-tagline) .hero__tagline { visibility: hidden; }
html:not(.anim) .hero__tagline { display: none; }

/* ============================================================
   01 MANIFIESTO (se desliza sobre el hero)
   --q progreso de lectura, cada palabra lleva --j.
   ============================================================ */
.manifesto { position: relative; z-index: 2; background: var(--cream); --q: 1; }
.anim .manifesto {
  height: 290vh;
  margin-top: calc(-1 * var(--stage));
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -40px 80px rgba(0, 0, 0, .35);
  --q: 0;
}
.manifesto__stick {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--stage);
  min-height: 560px;
  padding-top: 76px;
  overflow: hidden;
}
.anim .manifesto__stick { position: sticky; top: 0; }
html:not(.anim) .manifesto__stick { height: auto; padding-bottom: 12vh; }

/* Texto que se ilumina palabra por palabra y, a su lado, un arco cuya
   foto cambia con cada palabra clave (movimiento, pausa, recuperación). */
.manifesto__body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  padding: 3vh var(--pad);
}
.manifesto__text {
  max-width: 18ch;
  font: 400 min(5vw, 8.2vh, 88px)/1.06 var(--serif);
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.manifesto__text em { font-style: italic; color: var(--moss); }
/* Las palabras aún no leídas quedan veladas (desenfoque y 58 % de opacidad),
   pero siempre con contraste suficiente para leerse (WCAG 1.4.3). */
.mw { --t: clamp(0, var(--q) * (var(--n) + 2) - var(--j), 1); opacity: calc(.58 + var(--t) * .42); transition: opacity .2s linear; }
/* Cada palabra se enfoca y se asienta al iluminarse. */
.anim .mw {
  display: inline-block;
  transform: translate3d(0, calc((1 - var(--t)) * .2em), 0);
  filter: blur(calc((1 - var(--t)) * 3px));
}
/* Las palabras clave reciben un trazo de rotulador tras leerse. */
.manifesto__text em {
  --kt: clamp(0, (var(--q) * (var(--n, 0) + 2) - var(--k1, 0) - 1) / 1.6, 1);
  padding: 0 .06em;
  margin: 0 -.06em;
  background: linear-gradient(90deg, rgba(201, 242, 78, .8), rgba(201, 242, 78, .5)) 0 86% / calc(var(--kt) * 100%) .3em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
html:not(.anim) .manifesto__text em { --kt: 1; }
.anim .manifesto__body { opacity: calc(1 - var(--out, 0) * 1.5); translate: 0 calc(var(--out, 0) * -10vh); }

.manifesto__art { display: grid; justify-items: center; gap: 20px; }
.manifesto__frame {
  position: relative;
  width: min(25vw, 40vh, 380px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 24px 24px;
  background: var(--paper);
  box-shadow: 0 40px 80px -40px rgba(11, 33, 19, .45);
}
.manifesto__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .9s ease, transform 1.4s var(--ease);
}
.manifesto__img.is-on { opacity: 1; transform: none; }
/* Con movimiento, cada foto sube como una cortina sobre la anterior,
   ligada al scroll (--w lo publica script.js con su palabra clave). */
.anim .manifesto__img { opacity: 1; transition: transform 1.6s var(--ease); }
.anim .manifesto__img + .manifesto__img { clip-path: inset(calc((1 - var(--w, 0)) * 100%) 0 0 0); }
.anim .manifesto__frame { rotate: calc((var(--q) - .5) * -4deg); }
.manifesto__steps { display: flex; gap: 8px; }
.manifesto__steps i { position: relative; width: 28px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(7, 19, 11, .14); }
.manifesto__steps i::after { position: absolute; inset: 0; background: var(--moss); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); content: ''; }
.manifesto__steps i.is-on::after { transform: none; }
html:not(.anim) .manifesto__steps { display: none; }
/* La foto de movimiento lleva un rótulo en la base: recortamos desde arriba. */
.manifesto__img--top { object-position: 50% 0; transform-origin: 50% 0; transform: scale(1.26); }
.manifesto__img--top.is-on { transform: scale(1.18); }

/* ============================================================
   01b REVELACION DE MARCA
   --a logotipo, --b arco, --c insignias, --p total.
   Todo se alinea al eje central: las órbitas se centran en la
   cúpula del arco y las insignias quedan en espejo sobre el anillo.
   ============================================================ */
.reveal {
  --a: 1; --b: 1; --c: 1; --p: 1;
  --aw: min(30vw, 440px, 44vh);
  --ah: 62vh;
  position: relative;
  z-index: 2;
  background: var(--cream);
}
.anim .reveal { height: 300vh; --a: 0; --b: 0; --c: 0; --p: 0; }
.reveal__stick {
  --oy: calc(100% - var(--ah) + var(--aw) / 2);
  position: relative;
  height: var(--stage);
  min-height: 620px;
  overflow: hidden;
}
.anim .reveal__stick { position: sticky; top: 0; }

.reveal__orbits {
  position: absolute;
  left: 50%;
  top: var(--oy);
  width: calc(var(--aw) * 2.6);
  height: auto;
  overflow: visible;
  transform: translate(-50%, -50%) rotate(calc(var(--p) * 120deg)) scale(calc(.7 + var(--b) * .3));
  opacity: calc(var(--a) * .9);
}
.reveal__orbits circle { fill: none; stroke: rgba(47, 107, 56, .2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.reveal__orbits circle:nth-child(2) { stroke-dasharray: 3 7; transform-box: view-box; transform-origin: 50% 50%; transform: rotate(calc(var(--p) * -260deg)); }
/* La orbita interior se traza con la llegada del logotipo. */
.reveal__orbits circle:first-child { stroke: rgba(47, 107, 56, .32); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--a)); }
.reveal__orbits .reveal__dot { fill: var(--brand); stroke: none; }

.reveal__logo {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(74vw, 980px);
  transform:
    translate(-50%, -50%)
    translateY(calc(var(--b) * -31vh))
    scale(calc(3.4 - var(--a) * 2.4 - var(--b) * .42));
  filter: blur(calc((1 - var(--a)) * 6px));
  will-change: transform;
}
.reveal__logo img { height: auto; object-fit: contain; }
/* Un destello recorre el logotipo mientras sube a su sitio. */
.anim .reveal__logo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .75) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: calc((1 - var(--b)) * 100%) 0;
  -webkit-mask: url("./assets/brand/cannabidol-logo.webp") center / 100% 100% no-repeat;
  mask: url("./assets/brand/cannabidol-logo.webp") center / 100% 100% no-repeat;
  opacity: calc(min(var(--b), 1 - var(--b)) * 4);
  pointer-events: none;
  content: '';
}

.reveal__arch {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: var(--aw);
  height: var(--ah);
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 -30px 80px -30px rgba(47, 107, 56, .45);
  /* Un segundo contorno acompaña al arco y se cierra sobre él al llegar. */
  outline: 1px solid rgba(47, 107, 56, calc(var(--b) * .35));
  outline-offset: calc(12px + (1 - var(--b)) * 60px);
  transform: translateX(-50%) translateY(calc((1 - var(--b)) * 105%));
  will-change: transform;
}
.reveal__arch img { object-position: 50% 40%; transform: scale(calc(1.3 - var(--b) * .24 - var(--p) * .04)); }

.reveal__badges { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.reveal__badges li {
  --t: clamp(0, var(--c) * 2.6 - var(--b) * .6, 1);
  position: absolute;
  top: var(--oy);
  display: grid;
  place-content: center;
  width: clamp(100px, 8.6vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  box-shadow: 0 20px 40px -18px rgba(7, 19, 11, .6);
  opacity: var(--t);
}
.reveal__badges li:nth-child(1) { left: calc(50% - var(--aw) * .76); transform: translate(-50%, -50%) scale(calc(.6 + var(--t) * .4)) rotate(calc((1 - var(--t)) * -30deg)); }
.reveal__badges li:nth-child(2) { left: calc(50% + var(--aw) * .76); background: var(--lime); color: var(--ink); transform: translate(-50%, -50%) scale(calc(.6 + var(--t) * .4)) rotate(calc((1 - var(--t)) * 30deg)); }
.reveal__badges b { font: 400 clamp(30px, 3vw, 44px)/1 var(--serif); }
/* Ya colocadas, las insignias flotan con un vaivén lento y desfasado. */
.anim .reveal__badges li { animation: bob 4.6s ease-in-out infinite alternate; }
.anim .reveal__badges li:nth-child(2) { animation-duration: 5.4s; animation-delay: -2s; }
@keyframes bob { from { translate: 0 6px; } to { translate: 0 -8px; } }
.reveal__badges span { margin-top: 4px; font: 500 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* ============================================================
   02 INGREDIENTES: tarjetas que se apilan
   Cada tarjeta recibe --e (entrada) y --cover (cubierta).
   ============================================================ */
.ingredients {
  position: relative;
  z-index: 2;
  padding: 76px 0 14vh;
  background: var(--forest);
  color: var(--cream);
  border-radius: 36px 36px 0 0;
  margin-top: -36px;
}
.ingredients__head { padding: 12vh var(--pad) 10vh; }

.stack { position: relative; padding-bottom: 4vh; }
.leafcard {
  --e: 1;
  --cover: 0;
  position: sticky;
  top: calc(10vh + var(--k) * 22px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  height: min(78vh, 720px);
  min-height: 460px;
  /* El margen deja cada tarjeta quieta y entera un tramo antes de que la
     siguiente la cubra: da tiempo a leer su nombre. */
  margin: 0 var(--pad) 28vh;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, .1);
  border-radius: 30px;
  background: var(--card);
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .45);
  /* Al quedar cubierta, la tarjeta retrocede e inclina su base hacia el fondo. */
  transform: perspective(1600px) translateY(calc(var(--cover) * -14px)) rotateX(calc(var(--cover) * -9deg)) scale(calc(1 - var(--cover) * .07));
  transform-origin: 50% 0;
  will-change: transform;
}
.leafcard:last-child { margin-bottom: 0; }
.leafcard::after {
  position: absolute;
  inset: 0;
  background: #020804;
  opacity: calc(var(--cover) * .6);
  pointer-events: none;
  content: '';
}
.leafcard__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 64px);
}
.leafcard__num {
  /* En el flujo (no absoluto): empuja el texto al pie y nunca lo pisa. */
  margin-bottom: auto;
  padding-bottom: 24px;
  font: 500 11px var(--mono);
  letter-spacing: .2em;
  color: var(--accent);
}
.leafcard__num::after { display: inline-block; width: 44px; height: 1px; margin-left: 12px; background: currentColor; vertical-align: middle; opacity: .6; transform: scaleX(var(--e)); transform-origin: left; content: ''; }
.leafcard h3 {
  font: 400 clamp(64px, 9.4vw, 160px)/.86 var(--serif);
  letter-spacing: -.03em;
  opacity: clamp(0, 1.4 - var(--cover) * 2, 1);
  transform: translate3d(0, calc((1 - var(--e)) * 60px), 0);
}
/* El nombre del activo se escribe letra a letra con la entrada de su tarjeta. */
.leafcard h3 .ch {
  --t: clamp(0, (var(--e) - .3 - var(--ci, 0) * .035) * 3.2, 1);
  transform: translate3d(0, calc((1 - var(--t)) * 108%), 0) rotate(calc((1 - var(--t)) * 10deg));
  transform-origin: 0 100%;
}
.leafcard__claim {
  margin-top: 22px;
  max-width: 20ch;
  font: italic 400 clamp(22px, 2.1vw, 32px)/1.15 var(--serif);
  color: var(--accent);
  opacity: clamp(0, min(var(--e) * 1.6 - .5, 1.3 - var(--cover) * 2), 1);
  clip-path: inset(-.3em calc((1 - clamp(0, var(--e) * 1.8 - .75, 1)) * 100%) -.3em -.3em);
}
.leafcard__art {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%);
  mask-image: linear-gradient(90deg, transparent, #000 28%);
  /* La ilustración se abre en un círculo desde su centro botánico. */
  clip-path: circle(calc(8% + var(--e) * 88%) at 66% 55%);
}
.leafcard__art img {
  transform: scale(calc(1.32 - var(--e) * .26 + var(--cover) * .08)) rotate(calc((1 - var(--e)) * 6deg));
  transform-origin: 70% 60%;
  filter: saturate(1.05);
}
.leafcard__art::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%);
  mix-blend-mode: soft-light;
  content: '';
}

.formula {
  margin: 12vh var(--pad) 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.formula summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 0;
  list-style: none;
  cursor: pointer;
}
.formula summary::-webkit-details-marker { display: none; }
.formula summary span { font: 400 clamp(30px, 3.4vw, 52px)/1 var(--serif); }
.formula summary small { font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: .55; }
.formula summary b {
  position: relative;
  width: 52px; height: 52px;
  margin-left: auto;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: background .4s ease, transform .6s var(--ease);
}
.formula summary b::before, .formula summary b::after {
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  content: '';
}
.formula summary b::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.formula[open] summary b { background: var(--lime); color: var(--ink); transform: rotate(180deg); }
.formula[open] summary b::after { transform: translate(-50%, -50%) rotate(0); }
@media (hover: hover) { .formula:not([open]) summary:hover b { background: rgba(244, 241, 232, .1); } }
.formula__body { overflow: hidden; }
.formula__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 36px;
  /* Un foco bajo el puntero ilumina las juntas de la rejilla. */
  background: radial-gradient(280px circle at var(--gx, -999px) var(--gy, -999px), rgba(201, 242, 78, .8), transparent 70%), var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: 18px;
  overflow: hidden;
}
.formula__grid div { display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--forest); transition: background .45s ease; }
@media (hover: hover) { .formula__grid div:hover { background: #163a22; } }
.formula__grid b { font: 400 22px/1.1 var(--serif); color: var(--cream); }
.formula__grid .is-key { background: var(--card); }
.formula__grid .is-key b { color: var(--lime); }
.formula__grid .is-key b::after { margin-left: 10px; font: 500 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(201, 242, 78, .7); vertical-align: 3px; content: 'Activo clave'; }
.formula__grid span { font-size: 13.5px; line-height: 1.55; color: rgba(244, 241, 232, .66); }
.formula[open] .formula__grid div { animation: cell .7s var(--ease) both; }
.formula[open] .formula__grid div:nth-child(4n+2) { animation-delay: .05s; }
.formula[open] .formula__grid div:nth-child(4n+3) { animation-delay: .1s; }
.formula[open] .formula__grid div:nth-child(4n) { animation-delay: .15s; }
@keyframes cell { from { opacity: 0; transform: translateY(16px); } }

/* ============================================================
   03 FORMATOS
   --s cambio Gel -> Roll-On, --p progreso.
   ============================================================ */
.fmt { position: relative; z-index: 2; background: var(--sage); color: var(--ink); --s: 0; --p: 0; }
.anim .fmt { height: 380vh; }
.fmt__stick {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--stage);
  min-height: 640px;
  padding-top: 76px;
  overflow: hidden;
}
.anim .fmt__stick { position: sticky; top: 0; }

.fmt__head { position: relative; z-index: 3; padding: 4vh var(--pad) 0; }
.fmt__title { font: 400 clamp(40px, 5vw, 84px)/.92 var(--serif); letter-spacing: -.02em; }
.fmt__title i { color: var(--moss); }

.fmt__stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 30vw) 1fr;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 4vw;
  padding: 2vh var(--pad);
  min-height: 0;
}
.fmt__weight {
  align-self: center;
  justify-self: start;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 400 clamp(110px, 14vw, 240px)/.8 var(--serif);
  letter-spacing: -.05em;
  color: var(--forest);
}
.fmt__weight small { font: 500 14px var(--mono); letter-spacing: .1em; color: var(--moss); }
/* Contador mecánico: cada cifra es un carrete con 0-9 apilados. */
.odo { display: inline-flex; margin-bottom: -.158em; }
/* Las cifras son proporcionales: cada carrete mide .5em pero ocupa .42em. */
.odo__col {
  display: inline-block;
  width: calc(var(--vis, 1) * .5em);
  margin: 0 calc(var(--vis, 1) * -.04em);
  height: 1em;
  overflow: hidden;
  opacity: var(--vis, 1);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.odo__reel { display: block; transform: translate3d(0, calc(var(--d, 0) * -1em), 0); }
.odo__reel span { display: block; height: 1em; line-height: 1em; text-align: center; }
.anim .fmt__weight { align-items: flex-end; opacity: var(--i0, 1); translate: calc((1 - var(--i0, 1)) * -6vw) 0; }
.anim .fmt__weight small { margin-bottom: -.25em; }

.fmt__visual {
  position: relative;
  height: min(58vh, 620px);
  max-height: 100%;
  border-radius: 999px 999px 26px 26px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(11, 33, 19, .55);
}
.fmt__shot { position: absolute; inset: 0; }
.fmt__shot--a img { transform: scale(calc(1.06 + var(--s) * .2)) translateY(calc(var(--s) * -6%)) rotate(calc(var(--s) * -4deg)); }
.fmt__shot--b { clip-path: inset(calc((1 - var(--s)) * 100%) 0 0 0); }
.fmt__shot--b img { transform: scale(calc(1.3 - var(--s) * .24)) rotate(calc((1 - var(--s)) * 5deg)); }
/* Línea de escaneo lima que acompaña el borde del cambio Gel -> Roll-On. */
.fmt__visual::after {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  top: calc((1 - var(--s)) * 100%);
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 22px 5px rgba(201, 242, 78, .55);
  opacity: clamp(0, min(var(--s), 1 - var(--s)) * 8, 1);
  pointer-events: none;
  content: '';
}
/* Entrada: el arco crece desde el centro y las fichas llegan de los lados. */
.anim .fmt__visual { scale: calc(.82 + var(--i0, 1) * .18); }
.anim .fmt__info { opacity: var(--i0, 1); translate: calc((1 - var(--i0, 1)) * 6vw) 0; }
.fmt__ring {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: inherit;
  pointer-events: none;
}

.fmt__info { position: relative; display: grid; align-self: center; }
.fmt__card { position: relative; grid-area: 1 / 1; }
.fmt__card--a { opacity: clamp(0, 1 - var(--s) * 2.2, 1); transform: translateY(calc(var(--s) * -50px)); }
.fmt__card--b { opacity: clamp(0, var(--s) * 2.2 - 1.2, 1); transform: translateY(calc((1 - var(--s)) * 50px)); }
.anim .fmt__card--a { filter: blur(calc(clamp(0, var(--s) * 2.2, 1) * 10px)); }
.anim .fmt__card--b { filter: blur(calc(clamp(0, 2.2 - var(--s) * 2.2, 1) * 10px)); }
.fmt__card .eyebrow { margin-bottom: 14px; color: var(--moss); opacity: 1; }
.fmt__card h3 { font: 400 clamp(36px, 3.6vw, 60px)/.95 var(--serif); letter-spacing: -.02em; }
.fmt__card h3 i { color: var(--moss); }
.fmt__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.fmt__meta li { padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.fmt__meta li:first-child { background: var(--forest); border-color: var(--forest); color: var(--lime); }
.fmt__meta .fmt__g { display: none; }
.fmt__reg { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fmt__reg b { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink); }

.fmt__bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin: 0 var(--pad) calc(3.5vh + var(--safe-b));
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.fmt__tabs { display: flex; align-items: center; gap: 16px; }
.fmt__tab {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}
.fmt__tab strong { font: 400 20px/1 var(--serif); white-space: nowrap; }
.fmt__tab.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.fmt__tab strong { transition: transform .5s var(--ease); }
.fmt__tab.is-active strong { transform: scale(1.06); }
.fmt__progress { width: clamp(60px, 10vw, 160px); height: 2px; background: var(--line); }
.fmt__progress i { display: block; height: 100%; background: var(--moss); transform: scaleX(var(--p)); transform-origin: left; }

html:not(.anim) .fmt__card { position: relative; grid-area: auto; opacity: 1; transform: none; }
html:not(.anim) .fmt__card + .fmt__card { margin-top: 40px; }
html:not(.anim) .fmt__info { min-height: 0; }
html:not(.anim) .fmt__stick { height: auto; }

/* ============================================================
   04 RITUALES: recorrido horizontal por un dia
   --x desplazamiento (px), --p progreso, sol y cielo desde JS.
   ============================================================ */
.rituals { position: relative; z-index: 2; background: var(--deep); color: var(--cream); --x: 0px; --p: 0; }
.rituals__stick {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--stage);
  min-height: 620px;
  padding-top: 76px;
  overflow: hidden;
}
.anim .rituals__stick { position: sticky; top: 0; }
.rituals__sky {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(70vmax 50vmax at var(--sun-x, 20%) var(--sun-y, 70%), var(--sky-glow, rgba(244, 201, 74, .35)), transparent 70%),
    linear-gradient(180deg, var(--sky-top, #10301c), var(--sky-bottom, #06120a));
}
/* Sol (luna al final del día) y estrellas que aparecen al anochecer. */
.rituals__sun {
  position: absolute;
  left: var(--sun-x, 30%);
  top: var(--sun-y, 24%);
  width: clamp(54px, 6vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun-core, #fff4d6) 0 36%, transparent 72%);
  box-shadow: 0 0 90px 34px color-mix(in srgb, var(--sun-core, #fff4d6) 30%, transparent);
  transform: translate(-50%, -50%);
  opacity: .85;
}
.rituals__stars, .rituals__stars::after {
  position: absolute;
  inset: 0 0 35%;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, #fff, transparent), radial-gradient(1px 1px at 18% 64%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 27% 12%, #fff, transparent), radial-gradient(1px 1px at 39% 44%, #fff, transparent),
    radial-gradient(1px 1px at 47% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 58% 34%, #fff, transparent),
    radial-gradient(1px 1px at 66% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 74% 18%, #fff, transparent),
    radial-gradient(1px 1px at 86% 52%, #fff, transparent), radial-gradient(1.5px 1.5px at 94% 10%, #fff, transparent);
}
.rituals__stars { opacity: clamp(0, (var(--p) - .62) * 3, 1); }
.rituals__stars::after {
  inset: 0;
  transform: translate(3.5%, 6%);
  animation: twinkle 3.2s ease-in-out infinite alternate;
  content: '';
}
@keyframes twinkle { from { opacity: .15; } to { opacity: 1; } }

.rituals__track {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
  padding: 0 var(--pad);
  width: max-content;
  transform: translate3d(calc(var(--x) * -1), 0, 0);
  will-change: transform;
}
.rituals__intro { flex: 0 0 min(34vw, 520px); }
.rituals__intro .eyebrow { margin-bottom: 18px; }
.rituals__intro .display { font-size: clamp(48px, 6vw, 100px); }
.rituals__intro .lead { margin-top: 24px; }
.rituals__hint { display: inline-flex; gap: 10px; margin-top: 30px; font: 500 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.rituals__hint i { font-style: normal; animation: nudge 1.6s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }

.moment { --dx: 0; --adx: 0; flex: 0 0 clamp(260px, 24vw, 380px); align-self: center; }
/* Carrusel en 3D: cada momento gira hacia el centro y crece al llegar. */
.anim .moment { transform: perspective(1300px) rotateY(calc(var(--dx) * 16deg)) scale(calc(1 - var(--adx) * .1)); }
.anim .moment figure { transform: skewX(calc(var(--vel) * -5deg)); }
.anim .moment__copy { opacity: calc(1 - var(--adx) * .7); translate: calc(var(--dx) * 28px) 0; }
.moment figure {
  height: min(52vh, 520px, calc(var(--stage) - 320px));
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.moment img { transform: translate3d(calc(var(--dx) * -8%), 0, 0) scale(1.2); will-change: transform; }
/* Esta foto lleva un rótulo arriba: recortamos desde la base. */
.moment--low img { object-position: 50% 100%; transform-origin: 50% 100%; transform: translate3d(calc(var(--dx) * -8%), 0, 0) scale(1.3); }
.moment__copy { display: grid; grid-template-columns: 44px 1fr; gap: 10px 14px; margin-top: 20px; }
.moment__copy p { justify-self: start; padding: 5px 11px; border: 1px solid rgba(201, 242, 78, .35); border-radius: 99px; font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.moment time { grid-row: span 2; padding-top: 6px; font: 500 11px var(--mono); letter-spacing: .12em; color: var(--lime); }
.moment h3 { font: 400 clamp(26px, 2.2vw, 36px)/1 var(--serif); }

.rituals__clock {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 var(--pad) calc(4vh + var(--safe-b));
  font: 500 10px var(--mono);
  letter-spacing: .14em;
  opacity: .8;
}
.rituals__line { position: relative; flex: 1; height: 1px; background: var(--line-light); }
.rituals__line i { position: absolute; inset: 0; background: var(--lime); transform: scaleX(var(--p)); transform-origin: left; }
/* Marcador sobre la línea y hora flotando encima: nunca pisa 06:00 / 23:00. */
.rituals__line::before {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 100%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 242, 78, .18);
  transform: translate(-50%, -50%);
  content: '';
}
.rituals__line::after {
  position: absolute;
  bottom: 14px;
  left: calc(var(--p) * 100%);
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--ink);
  white-space: nowrap;
  transform: translateX(-50%);
  content: attr(data-time);
}

html:not(.anim) .rituals__track { width: auto; overflow-x: auto; padding-bottom: 30px; scroll-snap-type: x mandatory; }
html:not(.anim) .moment, html:not(.anim) .rituals__intro { scroll-snap-align: start; scroll-margin-left: var(--pad); }
html:not(.anim) .rituals__stick { height: auto; padding-bottom: 6vh; }
html:not(.anim) .rituals__clock { display: none; }

/* ============================================================
   05 DONDE ENCONTRARLO
   ============================================================ */
.stores {
  position: relative;
  z-index: 2;
  padding: 76px 0 14vh;
  background: var(--cream);
  overflow: hidden;
}
.stores__head { padding: 12vh var(--pad) 8vh; }
.stores__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0 var(--pad);
}
.stores__grid li {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: clamp(150px, 14vw, 200px);
  padding: 28px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  transition: border-color .5s ease, box-shadow .5s ease;
}
.stores__grid img { width: min(74%, 250px); height: auto; object-fit: contain; }
.stores__grid span { font: 500 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) { .stores__grid li:hover { border-color: rgba(47, 107, 56, .35); box-shadow: 0 24px 50px -32px rgba(11, 33, 19, .45); } }
/* Las tarjetas se despliegan en 3D, en cascada, y luego se inclinan hacia el puntero. */
.stores__grid { perspective: 1400px; }
.stores__grid li { position: relative; transform: rotateX(calc(var(--ty, 0) * -9deg)) rotateY(calc(var(--tx, 0) * 11deg)); }
.stores__grid li::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at calc(50% + var(--tx, 0) * 50%) calc(50% + var(--ty, 0) * 50%), rgba(201, 242, 78, .22), transparent 62%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
  content: '';
}
.stores__grid img { transition: transform .6s var(--ease); }
@media (hover: hover) {
  .stores__grid li:hover::after { opacity: 1; }
  .stores__grid li:hover img { transform: scale(1.07); }
}
.anim .stores__grid li[data-flip] {
  opacity: 0;
  rotate: x -72deg;
  translate: 0 60px;
  transition: rotate 1.3s var(--ease), translate 1.3s var(--ease), opacity .9s ease, transform .5s var(--ease), border-color .5s ease, box-shadow .5s ease;
  transition-delay: calc(var(--i) * 90ms), calc(var(--i) * 90ms), calc(var(--i) * 90ms), 0s, 0s, 0s;
}
.anim .stores__grid li[data-flip].is-in { opacity: 1; rotate: x 0deg; translate: 0 0; }
.stores__head .display i { white-space: nowrap; }
.stores__foot { margin: 28px var(--pad) 0; text-align: center; font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   06 GUIA
   ============================================================ */
.guide {
  position: relative;
  z-index: 2;
  padding: 76px 0 16vh;
  background: var(--forest);
  color: var(--cream);
  border-radius: 36px 36px 0 0;
  margin-top: -36px;
}
.guide__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 7vw; padding: 12vh var(--pad) 0; }
.guide__sticky { position: sticky; top: 110px; }
.guide__sticky .display { font-size: clamp(48px, 6.4vw, 108px); }

.faq { display: grid; align-content: start; border-top: 1px solid var(--line-light); }
.faq__item { position: relative; border-bottom: 1px solid var(--line-light); }
/* Las líneas de la lista se trazan una tras otra. */
.anim .faq__item { border-bottom-color: transparent; }
.anim .faq__item::after {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--line-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-io) calc(var(--i, 0) * 120ms + 200ms);
  content: '';
}
.anim .faq__item.is-in::after { transform: none; }
.faq__item summary em { white-space: pre; }
.faq__item summary {
  display: grid;
  grid-template-columns: 34px 1fr 44px;
  align-items: center;
  gap: 14px;
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary em { font: 500 10px var(--mono); font-style: normal; color: var(--lime); }
.faq__item summary span { font: 400 clamp(22px, 2.1vw, 32px)/1.15 var(--serif); transition: transform .5s var(--ease), color .4s ease; }
@media (hover: hover) { .faq__item summary:hover span { transform: translateX(8px); } }
.faq__item summary i { position: relative; width: 44px; height: 44px; border: 1px solid var(--line-light); border-radius: 50%; transition: background .4s ease, border-color .4s ease, transform .6s var(--ease); }
.faq__item summary i::before, .faq__item summary i::after {
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  content: '';
}
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.faq__item[open] summary i { background: var(--lime); border-color: var(--lime); color: var(--ink); transform: rotate(180deg); }
.faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq__item[open] summary span { color: var(--lime); }
.faq__body { overflow: hidden; }
.faq__body p { max-width: 54ch; padding: 0 58px 28px 48px; color: rgba(244, 241, 232, .74); font-size: 16px; line-height: 1.7; }
.faq__body strong { color: var(--cream); font-weight: 600; }
.faq__body a { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   07 FINAL
   --a crecimiento del circulo, --b composicion y texto.
   ============================================================ */
.finale { position: relative; z-index: 2; background: #011608; color: var(--cream); --a: 1; --b: 1; }
.anim .finale { height: 260vh; --a: 0; --b: 0; }
.finale__stick { position: relative; height: var(--stage); min-height: 600px; overflow: hidden; }
.anim .finale__stick { position: sticky; top: 0; }
.finale__orb {
  position: absolute;
  left: 50%;
  top: 53%;
  height: 86%;
  aspect-ratio: 1122 / 1402;
  clip-path: circle(calc(18% + var(--a) * 64%) at 50% 50%);
  transform: translate(-50%, -50%) translateX(calc(var(--b) * -21vw)) scale(calc(1.25 - var(--a) * .25 - var(--b) * .1));
  -webkit-mask-image: radial-gradient(closest-side, #000 75%, transparent);
  mask-image: radial-gradient(closest-side, #000 75%, transparent);
  will-change: transform, clip-path;
}
.finale__orb img { object-fit: cover; translate: calc(var(--mx) * -12px) calc(var(--my) * -9px); scale: 1.04; }
/* El anillo de luz respira suavemente cuando ya está abierto. */
.anim .finale__orb::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 52%, rgba(201, 242, 78, .32), transparent 55%);
  mix-blend-mode: screen;
  animation: breathe 3.6s ease-in-out infinite alternate;
  content: '';
}
@keyframes breathe { from { opacity: .15; } to { opacity: .9; } }
.finale__pollen { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: var(--a); }
html:not(.anim) .finale__pollen { display: none; }
.finale__copy {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  top: 50%;
  width: min(44vw, 640px);
  transform: translateY(-50%);
}
.finale__title { font: 400 clamp(54px, 7.6vw, 132px)/.9 var(--serif); letter-spacing: -.03em; }
.finale__title i { display: block; color: var(--lime); }
.finale__title .wi { --t: clamp(0, (var(--b) * 4.5 - 3.6) * (var(--n, 5) + 1.5) - var(--i), 1); transform: translate3d(0, calc((1 - var(--t)) * 110%), 0); }
.finale__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 40px; opacity: clamp(0, var(--b) * 6 - 5, 1); transform: translateY(calc((1 - var(--b)) * 60px)); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { position: relative; z-index: 2; padding: 10vh var(--pad) 28px; background: #011608; color: var(--cream); overflow: hidden; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-bottom: 5vh; border-bottom: 1px solid var(--line-light); }
.foot__legal { max-width: 62ch; color: rgba(244, 241, 232, .66); font-size: 14px; line-height: 1.6; }
.foot__word {
  margin: 4vh 0 2vh;
  padding: .04em 0 .16em;
  font: 600 clamp(56px, 17.2vw, 340px)/.92 var(--sans);
  letter-spacing: -.07em;
  white-space: nowrap;
  text-align: center;
}
.foot__word b { color: var(--brand); font-weight: 400; }
/* Cada letra sube desde su máscara; luego la palabra ondea bajo el puntero. */
.foot__word .fc { display: inline-block; font-style: normal; }
/* Margen interior extra arriba: la ola eleva las letras sin recortarlas. */
.anim .foot__word { overflow: hidden; padding-top: .26em; margin-top: calc(4vh - .22em); --gx: -2; }
.anim .foot__word .fc {
  --d: max(var(--i) / 11 - var(--gx), var(--gx) - var(--i) / 11);
  transform: translate3d(0, 112%, 0) rotate(8deg);
  translate: 0 calc(max(0, .16 - var(--d)) * -1.1em);
  transition: transform 1.4s var(--ease), translate .5s var(--ease);
  transition-delay: calc(var(--i) * 50ms), 0s;
}
.anim .foot__word.is-in .fc { transform: none; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .5; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1099px) {
  .nav { display: none; }
  .burger {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 6px 0 16px;
    border: 1px solid var(--line-light);
    border-radius: 99px;
    background: rgba(6, 18, 10, .32);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font: 500 10px var(--mono);
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .on-light .burger { border-color: var(--line); background: rgba(244, 241, 232, .6); }
  .burger i { position: absolute; right: 18px; width: 14px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
  .burger i:nth-of-type(1) { transform: translateY(-3px); }
  .burger i:nth-of-type(2) { transform: translateY(3px); }
  .burger span { margin-right: 30px; }
  .burger[aria-expanded='true'] i:nth-of-type(1) { transform: rotate(45deg); }
  .burger[aria-expanded='true'] i:nth-of-type(2) { transform: rotate(-45deg); }
  .menu-open .hdr { color: var(--cream) !important; }
  .menu-open .burger { border-color: var(--line-light) !important; background: rgba(6, 18, 10, .32) !important; }

  .formula__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide__grid { grid-template-columns: 1fr; }
  .guide__sticky { position: static; }

}

/* Formatos en pantallas horizontales medianas: número y ficha comparten columna. */
@media (max-width: 1099px) and (min-aspect-ratio: 1/1) {
  .fmt__stage { grid-template-columns: minmax(0, 1fr) minmax(240px, 34vw) minmax(0, 1fr); gap: 3vw; }
  .fmt__weight { font-size: clamp(90px, 12vw, 150px); }
}

/* Vertical (móviles y tablets): una sola columna centrada. */
@media (max-aspect-ratio: 1/1) {
  .hero { --fw: min(78vw, 46vh); }
  .hero__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    justify-items: center;
    row-gap: clamp(16px, 2.6vh, 30px);
    padding: calc(74px + 2vh) var(--pad) calc(4vh + var(--safe-b));
  }
  .hero__side { display: none; }
  .hero__cue { display: none; }
  .hero__title { grid-row: 1; font-size: min(17vw, 11.5vh); line-height: .92; }
  .hero__l1, .hero__l2 { display: block; }
  .hero__l2 { margin-left: 0; }
  .hero__frame { grid-column: 1; grid-row: 2; width: var(--fw); height: 100%; }
  .hero__intro { grid-column: 1; grid-row: 3; justify-self: center; max-width: 460px; text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__tagline { font-size: min(14vw, 96px); }

  .manifesto__body { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 3.4vh; padding: 2vh var(--pad); }
  .manifesto__art { order: -1; gap: 14px; }
  .manifesto__frame { width: min(48vw, 27vh, 340px); }
  .manifesto__text { max-width: 24ch; font-size: min(8.4vw, 4.8vh, 62px); text-align: center; }

  .reveal { --aw: min(70vw, 46vh); --ah: 54vh; }
  .reveal__badges {
    inset: calc(18vh + 6vw + 14px) 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  .reveal__badges li,
  .reveal__badges li:nth-child(1),
  .reveal__badges li:nth-child(2) {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: auto;
    aspect-ratio: auto;
    padding: 10px 18px;
    border-radius: 99px;
    transform: translateY(calc((1 - var(--t)) * 16px));
  }
  .reveal__badges b { font-size: 22px; }
  .reveal__badges span { margin: 0; }

  .finale__orb { height: 64%; top: 44%; transform: translate(-50%, -50%) translateY(calc(var(--b) * -14vh)) scale(calc(1.3 - var(--a) * .3 - var(--b) * .12)); }
  .finale__copy { left: var(--pad); right: var(--pad); top: auto; bottom: calc(6vh + var(--safe-b)); width: auto; text-align: center; transform: none; }
  .finale__title { font-size: min(15vw, 120px); }
  .finale__cta { justify-content: center; margin-top: 24px; }
}

/* Sin la cifra grande (vertical y móviles), el peso pasa a la primera etiqueta. */
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  .fmt__meta .fmt__g { display: block; }
}

/* Tablets en vertical */
@media (min-width: 761px) and (max-aspect-ratio: 1/1) {
  .fmt__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
  .fmt__weight { display: none; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .hdr { padding: 14px var(--pad); }
  .mark { font-size: 19px; }
  .mark small { display: none; }
  .kicker { padding: 18px 0 14px; font-size: 9px; }

  /* Hero */
  .hero__dek { display: none; }
  .hero__cta { gap: 10px 20px; }

  /* Manifiesto */

  /* Marca */
  .reveal__logo { width: 88vw; transform: translate(-50%, -50%) translateY(calc(var(--b) * -32vh)) scale(calc(3.2 - var(--a) * 2.2 - var(--b) * .2)); }
  .reveal__badges li, .reveal__badges li:nth-child(1), .reveal__badges li:nth-child(2) { padding: 8px 14px; }
  .reveal__badges b { font-size: 19px; }
  .reveal__badges span { font-size: 9px; }

  /* Ingredientes */
  .ingredients__head { padding: 8vh var(--pad) 7vh; }
  .leafcard { grid-template-columns: 1fr; grid-template-rows: 58% 1fr; height: 76vh; min-height: 0; top: calc(9vh + var(--k) * 14px); margin-bottom: 30vh; border-radius: 24px; }
  .leafcard__art { grid-row: 1; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .leafcard__copy { grid-row: 2; padding: 4px 24px 26px; }
  .leafcard__num { padding-bottom: 16px; }
  .leafcard h3 { font-size: clamp(54px, 16vw, 80px); }
  .leafcard__claim { margin-top: 12px; font-size: 21px; }
  .formula summary span { font-size: 28px; }
  .formula summary small { display: none; }
  .formula__grid { grid-template-columns: 1fr; }

  /* Formatos: arco, ficha y pestañas en columna; sin cifra encima de la foto. */
  .fmt__head { padding-top: 3vh; }
  .fmt__title { font-size: 38px; }
  .fmt__stage { grid-template-columns: 1fr; align-content: start; gap: 2.5vh; padding-top: 2.5vh; }
  .fmt__visual { height: 36vh; width: min(68vw, 300px); justify-self: center; }
  .fmt__weight { display: none; }
  .fmt__info { justify-items: center; text-align: center; }
  .fmt__card .eyebrow { display: none; }
  .fmt__card h3 { font-size: 34px; }
  .fmt__meta { justify-content: center; margin-top: 14px; }
  .fmt__tabs { justify-content: space-between; }

  /* Rituales */
  .rituals__intro { flex-basis: 84vw; }
  .rituals__intro .display { font-size: 50px; }
  .moment { flex-basis: 74vw; }
  .moment figure { height: min(46vh, 420px); }

  /* Tiendas */
  .stores__head { padding: 8vh var(--pad) 5vh; }
  .stores__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stores__grid li { min-height: 124px; gap: 14px; padding: 22px 14px 16px; border-radius: 18px; }
  .stores__grid img { width: 82%; }
  .stores__grid span { font-size: 9.5px; letter-spacing: .12em; }

  /* Guia */
  .guide__grid { padding-top: 8vh; gap: 8vh; }
  .faq__item summary { grid-template-columns: 26px 1fr 40px; gap: 10px; padding: 22px 0; }
  .faq__item summary i { width: 40px; height: 40px; }
  .faq__body p { padding: 0 0 24px 36px; font-size: 15px; }

  /* Final */
  .finale__orb { height: 58%; top: 44%; transform: translate(-50%, -50%) translateY(calc(var(--b) * -15vh)) scale(calc(1.3 - var(--a) * .3 - var(--b) * .12)); }

  .foot__word { font-size: 17.6vw; }
}

/* Móviles bajos en vertical (iPhone SE, Android compactos): cada escena
   fijada cabe en la ventana; sin esto las pestañas de formatos y el pie
   de otras escenas quedaban bajo el borde de la pantalla. */
@media (max-aspect-ratio: 1/1) and (max-height: 700px) {
  .hero__stick, .manifesto__stick, .reveal__stick, .fmt__stick, .rituals__stick, .finale__stick { min-height: 0; }
}

/* Móviles bajos: el orbe final se reduce para dejar sitio al texto. */
@media (max-aspect-ratio: 1/1) and (max-height: 760px) {
  .finale__title { font-size: min(13vw, 84px); }
}
@media (max-width: 760px) and (max-height: 700px) {
  /* El arco conserva su proporción vertical aunque la pantalla sea baja. */
  .fmt__visual { height: 32vh; width: min(68vw, 32vh * .82); }
  .fmt__head { padding-top: 1.5vh; }
  .fmt__stage { gap: 1.8vh; padding-top: 1.8vh; }
  .fmt__card h3 { font-size: 30px; }
  .fmt__reg { margin-top: 12px; padding-top: 10px; }
  .fmt__meta li:not(.fmt__g) { display: none; }
}

/* Pantallas bajas en horizontal (móviles girados): cada escena fijada cabe
   exactamente en la ventana, sin alturas mínimas que la desborden. */
@media (min-aspect-ratio: 1/1) and (max-height: 560px) {
  .hero__stick, .manifesto__stick, .reveal__stick, .fmt__stick, .rituals__stick, .finale__stick { min-height: 0; }
  .manifesto__stick, .fmt__stick, .rituals__stick { padding-top: 62px; }
  .manifesto .kicker, .fmt .kicker, .rituals .kicker { display: none; }
  .hdr { padding-top: 10px; padding-bottom: 10px; }

  .menu { padding-top: 76px; padding-bottom: 20px; }
  .menu__links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .menu__links a { font-size: min(8.5vh, 44px); }

  /* Hero */
  .hero__layout { padding: calc(64px + 2vh) var(--pad) calc(5vh + var(--safe-b)); row-gap: 3.5vh; }
  .hero__dek { display: none; }
  .hero__cta { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 0; }
  .hero__side { gap: 12px; }
  .hero__tagline { font-size: min(7vw, 15vh); }

  /* Manifiesto */
  .manifesto__body { padding: 2vh var(--pad); }
  .manifesto__text { font-size: min(4.4vw, 8.6vh); }
  .manifesto__frame { width: min(22vw, 46vh); }

  /* Marca: el logotipo queda bajo el header y sobre los anillos. */
  .reveal { --aw: min(26vw, 52vh); --ah: 64vh; }
  .reveal__orbits circle:nth-child(2), .reveal__orbits .reveal__dot { display: none; }
  .reveal__logo { transform: translate(-50%, -50%) translateY(calc(var(--b) * -26vh)) scale(calc(3.4 - var(--a) * 2.4 - var(--b) * .6)); }
  .reveal__badges li { width: 76px; }
  .reveal__badges b { font-size: 24px; }
  .reveal__badges span { font-size: 8px; }

  /* Ingredientes: las tarjetas se apilan bajo el header. */
  .leafcard { height: calc(var(--stage) - 100px); min-height: 0; top: calc(64px + var(--k) * 8px); margin-bottom: 22vh; }
  .leafcard__copy { padding: 24px 32px; }
  .leafcard__num { padding-bottom: 10px; }
  .leafcard h3 { font-size: min(9vw, 20vh); }
  .leafcard__claim { margin-top: 10px; font-size: 19px; }

  /* Formatos */
  .fmt__head { padding-top: 1vh; }
  .fmt__card .eyebrow { display: none; }
  .fmt__title { font-size: min(4.4vw, 9vh); }
  .fmt__stage { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); padding: 1.5vh var(--pad); }
  .fmt__visual { width: calc((var(--stage) - 200px) * .8); height: calc(var(--stage) - 200px); }
  .fmt__weight { font-size: min(11vw, 26vh); }
  .fmt__card h3 { font-size: min(3.4vw, 8vh); }
  .fmt__meta { margin-top: 10px; }
  .fmt__bottom { margin-bottom: calc(2vh + var(--safe-b)); padding-top: 10px; }
  .fmt__reg { margin-top: 12px; padding-top: 10px; }
  .fmt__tab { min-height: 38px; padding: 6px 14px; }

  /* Rituales */
  .rituals__intro { flex-basis: min(46vw, 440px); }
  .rituals__intro .eyebrow { margin-bottom: 10px; }
  .rituals__intro .display { font-size: min(5vw, 11vh); }
  .rituals__intro .lead { margin-top: 12px; font-size: 14px; }
  .rituals__hint { display: none; }
  .moment { flex-basis: min(30vw, 260px); }
  .moment figure { height: calc(var(--stage) - 240px); }
  .moment__copy { min-height: 0; margin-top: 12px; }
  .rituals__clock { margin-bottom: calc(3vh + var(--safe-b)); }

  /* Final */
  .finale__title { font-size: min(6.6vw, 15vh); }
  .finale__cta { margin-top: 20px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
html:not(.anim) .hero__window { --a: .0; }
html:not(.anim) .finale__stick { height: auto; padding: 14vh 0; display: grid; gap: 40px; }
html:not(.anim) .finale__stick { grid-template-columns: minmax(0, 1fr); }
/* El orbe nunca es más ancho que la pantalla: si no, estira la columna y el título se sale. */
html:not(.anim) .finale__orb { position: relative; inset: auto; width: min(100%, 56vh); height: auto; margin: 0 auto; transform: none; clip-path: none; }
html:not(.anim) .finale__copy { position: relative; inset: auto; transform: none; width: auto; margin: 0 var(--pad); }

/* Formatos sin movimiento: las dos fichas se ven a la vez, así que sobran
   la cifra única (120 g) y el selector Gel/Roll-On; el peso va en cada ficha. */
html:not(.anim) .fmt__weight, html:not(.anim) .fmt__bottom { display: none; }
html:not(.anim) .fmt__meta .fmt__g { display: block; }
html:not(.anim) .fmt__stick { padding-bottom: 10vh; }
@media (min-width: 761px) {
  html:not(.anim) .fmt__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html:not(.anim) .fmt__visual { width: min(100%, 46vh, 420px); justify-self: end; }
}
html:not(.anim) .reveal__stick { height: auto; min-height: 0; padding: 14vh var(--pad); display: grid; justify-items: center; gap: 40px; }
html:not(.anim) .reveal__logo, html:not(.anim) .reveal__arch, html:not(.anim) .reveal__badges { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; transform: none; filter: none; }
html:not(.anim) .reveal__arch { height: 60vh; }
html:not(.anim) .reveal__badges { display: flex; gap: 14px; }
html:not(.anim) .reveal__badges li { position: relative; inset: auto; transform: none; }
html:not(.anim) .reveal__orbits { display: none; }

/* ---------- Impresión ---------- */
@media print {
  .loader, .cursor, .grain, .rail, .hdr, .menu, .chapters, .skip, .hero__pollen, .finale__pollen { display: none !important; }
  html, body { background: #fff !important; }
}
