/* =========================================================================
   ScentLab — your scent, right now
   One-page scroll experience · dark + neón cian
   Type:  Cormorant Garamond (display, del logo) · Unbounded (acento) · Inter (cuerpo)
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

:root {
  /* ---- color (tomado de los SVG del logo real) ---- */
  --void:        #06080E;
  --night:       #0A0C10;
  --night-2:     #0E1116;
  --night-3:     #141922;
  --neon:        #78D4E2;
  --neon-deep:   #4BBFC8;
  --halo:        #9DD5E5;
  --cream:       #F0ECE3;   /* blanco cálido, sin el tinte amarillo del beige anterior */
  --cream-dim:   rgba(240, 236, 227, 0.72);
  --cream-faint: rgba(240, 236, 227, 0.6);   /* AA sobre --night para texto pequeño */
  --line:        rgba(120, 212, 226, 0.22);
  --line-soft:   rgba(240, 236, 227, 0.12);

  /* ---- type scale ---- */
  --step--1: clamp(0.80rem, 0.76rem + 0.18vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.20rem, 1.05rem + 0.70vw, 1.55rem);
  --step-2:  clamp(1.55rem, 1.20rem + 1.70vw, 2.60rem);
  --step-3:  clamp(2.10rem, 1.45rem + 3.20vw, 4.20rem);
  --step-hero: clamp(2.90rem, 1.60rem + 9.4vw, 8.60rem);

  /* ---- rhythm ---- */
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --measure: 34em;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

body {
  background: var(--night);
  color: var(--cream);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
}

a { color: inherit; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

::selection { background: var(--neon); color: var(--void); }

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

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

.skip-link {
  position: fixed; top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--neon); color: var(--void);
  font-family: "Unbounded", sans-serif;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.75rem 1.25rem; text-decoration: none;
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* =========================================================================
   Ambient layers
   ========================================================================= */
.atmosphere {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb-a {
  width: 46vmax; height: 46vmax;
  left: -14vmax; top: -10vmax;
  background: radial-gradient(circle at 40% 40%, rgba(75, 191, 200, 0.42), transparent 70%);
}
.orb-b {
  width: 40vmax; height: 40vmax;
  right: -12vmax; bottom: -14vmax;
  background: radial-gradient(circle at 50% 50%, rgba(20, 32, 58, 0.9), transparent 72%);
}
.vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(6, 8, 14, 0.55) 100%),
    radial-gradient(120% 90% at 50% 100%, transparent 35%, var(--void) 100%);
}
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.028;
  mix-blend-mode: screen;
}

/* scroll progress hairline */
.progress {
  position: fixed; top: 0; left: 0; z-index: 150;
  height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon-deep), var(--neon), var(--halo));
  box-shadow: 0 0 12px rgba(120, 212, 226, 0.7);
}

/* =========================================================================
   Header — hidden until past the hero
   ========================================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: linear-gradient(180deg, rgba(6, 8, 14, 0.82), rgba(6, 8, 14, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
}
.header.is-visible { transform: translateY(0); opacity: 1; }

.header-mark {
  font-family: "Cormorant Garamond", Garamond, serif;
  font-size: 1.15rem; letter-spacing: 0.42em;
  text-decoration: none; color: var(--cream);
  padding-left: 0.42em;
  text-shadow: 0 0 18px rgba(120, 212, 226, 0.35);
}

/* =========================================================================
   Buttons / links
   ========================================================================= */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  font-family: "Unbounded", sans-serif;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--cream);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}
.btn:hover {
  border-color: var(--neon);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(120, 212, 226, 0.4), 0 0 34px rgba(120, 212, 226, 0.28);
}
.btn:active { transform: translateY(1px); }

.btn-solid {
  --bg: var(--neon);
  color: var(--void);
  border-color: var(--neon);
  font-weight: 600;
}
.btn-solid:hover {
  color: var(--void);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 44px rgba(120, 212, 226, 0.55);
}

.btn .ig-glyph { width: 1.05em; height: 1.05em; flex: none; }

/* inline nudge toward Instagram at the end of chapters */
.ig-nudge {
  display: inline-flex; align-items: baseline; gap: 0.5em;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  font-family: "Unbounded", sans-serif;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--cream-dim);
  transition: color 0.3s ease;
}
.ig-nudge span { color: var(--neon); }
.ig-nudge .arw { transition: transform 0.3s var(--ease-out); display: inline-block; }
.ig-nudge:hover { color: var(--cream); }
.ig-nudge:hover .arw { transform: translateX(6px); }

/* =========================================================================
   Chapter scaffold
   ========================================================================= */
main { position: relative; z-index: 2; }

.chapter {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 13vh, 9rem) var(--gutter);
}
/* "El shot" es solo un titular de transición: compacto, sin ocupar pantalla entera */
#shot {
  min-height: 0;
  padding-block: clamp(2.5rem, 7vh, 4.5rem);
}
#noche { min-height: 82svh; }
.wrap { width: min(100%, 68rem); margin-inline: auto; }
.measure { max-width: var(--measure); }

.eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--neon);
  display: flex; align-items: center; gap: 0.9em;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: clamp(28px, 6vw, 64px); height: 1px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.big-line {
  font-size: var(--step-3);
  font-style: italic;
  font-weight: 400;
  max-width: 18ch;
  text-wrap: balance;
}
.big-line .glow { color: var(--neon); text-shadow: 0 0 26px rgba(120, 212, 226, 0.5); }

.lede {
  margin-top: 1.6rem;
  font-size: var(--step-1);
  color: var(--cream-dim);
  max-width: var(--measure);
  line-height: 1.55;
}

/* atmospheric section imagery ------------------------------------------------ */
.has-bg { position: relative; overflow: hidden; }
.has-bg > .wrap { position: relative; z-index: 2; }

.section-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; }

.section-bg--right {
  /* la imagen es un halo suave centrado a la derecha, difuminado ANTES de llegar
     a cualquier borde de la sección (arriba, abajo, izquierda) — sin líneas duras */
  -webkit-mask-image: radial-gradient(58% 46% at 84% 50%, #000 6%, rgba(0, 0, 0, 0.4) 42%, transparent 72%);
          mask-image: radial-gradient(58% 46% at 84% 50%, #000 6%, rgba(0, 0, 0, 0.4) 42%, transparent 72%);
  opacity: 0.42;
}

.section-bg--cover { opacity: 0.5; }
.section-bg--cover::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(6, 8, 14, 0.55) 40%, rgba(6, 8, 14, 0.78) 100%);
}

/* móvil: la imagen atmosférica deja de ser un halo lateral (composición de
   escritorio) y pasa a sangrar desde el borde superior, disolviéndose antes
   del texto — ritmo vertical propio de teléfono */
@media (max-width: 700px) {
  .section-bg--right {
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 80%);
            mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 40%, transparent 80%);
  }
  .section-bg--right img { object-position: center top; }
}

/* =========================================================================
   HERO v2 — círculo de inversión con el scroll
   app.js escribe --yoff, --ball, --clip-r / --clip-x / --clip-y sobre .hero-pin
     Fase 1: el círculo sube desde abajo hasta el centro
     Fase 2: el círculo crece hasta cubrir la pantalla
   Un clip-path circular replica el círculo → invierte el color del título
   ========================================================================= */
.hero-invert {
  position: relative;
  height: 300vh;
}
.hero-pin {
  --yoff: 62vh;
  --ball: 380px;
  --clip-r: 0px;
  --clip-x: 50%;
  --clip-y: 112%;
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
}

/* escena de fondo (video de bruma) — lo que se ve FUERA del círculo */
.hero-scene { position: absolute; inset: 0; z-index: 0; background: var(--void); }
.hero-scene-media {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; opacity: 0.72;
}
.hero-scene-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(125% 95% at 50% 40%, transparent 0%, rgba(6, 8, 14, 0.4) 62%, rgba(6, 8, 14, 0.78) 100%),
    linear-gradient(180deg, rgba(6, 8, 14, 0.5) 0%, transparent 40%, rgba(6, 8, 14, 0.62) 100%);
}

.hero-wordmark {
  position: absolute; left: 50%; top: clamp(3.25rem, 10vh, 6.5rem);
  transform: translateX(-50%);
  z-index: 5;
  font-family: "Cormorant Garamond", Garamond, serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 4.4vw, 2.5rem);
  letter-spacing: 0.44em; padding-left: 0.44em;
  color: var(--cream);
  text-shadow: 0 0 34px rgba(120, 212, 226, 0.32);
  pointer-events: none; white-space: nowrap;
  mix-blend-mode: difference; /* también se invierte sobre el círculo */
}

/* ventana circular hacia la foto de la botella: la imagen está fija al viewport
   y un clip-path circular (mismo --clip-* que el texto) la revela; el aro cian
   marca el borde del círculo que sube y crece. */
.invert-reveal {
  position: absolute; inset: 0; z-index: 2;
  clip-path: circle(var(--clip-r) at var(--clip-x) var(--clip-y));
  will-change: clip-path;
  background: var(--void);
}
.invert-reveal-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 52%;
  display: block;
}
.invert-ring {
  position: absolute;
  left: var(--clip-x); top: var(--clip-y);
  width: calc(var(--clip-r) * 2); height: calc(var(--clip-r) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow:
    0 0 0 1.5px rgba(120, 212, 226, 0.9),
    0 0 70px 6px rgba(120, 212, 226, 0.35);
  z-index: 3;
  pointer-events: none;
  will-change: left, top, width, height;
}

/* dos capas con el mismo título; la de "dentro" va recortada al círculo */
.hero-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 2rem;
  pointer-events: none;
}
.hero-layer h1, .hero-layer-h {
  margin: 0;
  font-family: "Cormorant Garamond", Garamond, serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 1.1rem + 8vw, 7rem);
  line-height: 1; letter-spacing: 0.01em;
}
.hero-layer h1 span, .hero-layer-h span { display: block; }
.hero-layer em { font-style: inherit; }

.hero-layer--out {
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 44px rgba(6, 8, 14, 0.85);
}
.hero-layer--out em { color: var(--neon-deep); }

.hero-layer--in {
  z-index: 4;
  color: var(--neon);
  text-shadow: 0 0 44px rgba(120, 212, 226, 0.6);
  clip-path: circle(var(--clip-r) at var(--clip-x) var(--clip-y));
  will-change: clip-path;
}
.hero-layer--in em { color: #fff; }

.hero-hint {
  position: absolute; left: 50%; bottom: clamp(1.6rem, 4.5vh, 2.75rem);
  transform: translateX(-50%); z-index: 5;
  font-family: "Unbounded", sans-serif;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream-faint);
  mix-blend-mode: difference;
}
.hero-hint span { display: inline-block; animation: hintPulse 2.6s ease-in-out infinite; }
@keyframes hintPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* =========================================================================
   Marquee
   ========================================================================= */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding-block: 1.1rem;
  background: rgba(6, 8, 14, 0.4);
}
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: scrollx 34s linear infinite;
}
.marquee-track span {
  font-family: "Unbounded", sans-serif;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-faint);
  white-space: nowrap;
}
.marquee-track .sep { color: var(--neon); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* =========================================================================
   CH2 — El shot  (sticky machine reveal + steps)
   ========================================================================= */
.shot { min-height: 210vh; padding-block: 0; display: block; }

.shot-stage {
  position: sticky; top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 5vh, 3rem);
  padding: clamp(5rem, 12vh, 8rem) var(--gutter) clamp(3rem, 8vh, 5rem);
  text-align: center;
}
.shot-copy {
  position: relative; z-index: 2;
  transform: translateY(calc(var(--reveal, 0) * -12px));
}
.shot-copy .big-line { max-width: 16ch; margin-inline: auto; }
.shot-copy-note {
  margin-top: 1.1rem;
  font-size: var(--step-0);
  color: var(--cream-faint);
  letter-spacing: 0.02em;
}

.shot-figure {
  position: relative;
  flex: none;
  width: auto;
  height: min(46vh, 440px);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 0 0 1px rgba(6, 8, 14, 0.6), 0 40px 120px -40px rgba(0, 0, 0, 0.9);
}
.shot-figure::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 60px rgba(6, 8, 14, 0.85);
  pointer-events: none;
}
.shot-img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* wipe up as --reveal goes 0 → 1 */
  clip-path: inset(calc((1 - var(--reveal, 0)) * 100%) 0 0 0);
  transform: scale(calc(1.08 - var(--reveal, 0) * 0.08));
  filter: saturate(calc(0.68 + var(--reveal, 0) * 0.5)) brightness(calc(0.74 + var(--reveal, 0) * 0.32));
  transition: clip-path 0.12s linear, transform 0.12s linear, filter 0.12s linear;
}
.shot-scan {
  position: absolute; left: 0; right: 0;
  top: calc(var(--reveal, 0) * 100%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  box-shadow: 0 0 22px var(--neon);
  opacity: calc(0.9 - var(--reveal, 0) * 0.9);
}

/* --- desktop: copy and framed portrait side by side --- */
@media (min-width: 900px) {
  .shot-stage {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(3rem, 8vw, 7rem);
    text-align: left;
  }
  .shot-copy .big-line { margin-inline: 0; }
  .shot-figure { height: min(74vh, 520px); }
}

/* ---- los 4 pasos: sección fijada, cada paso se "carga" con el scroll ---- */
.steps-scroll { position: relative; }
.steps-spacer { height: 320vh; }   /* recorrido de scroll mientras el pin está fijo */
.steps-pin {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; align-items: center;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
  overflow: hidden;
}
.steps-stage {
  width: min(100%, 68rem);
  margin-inline: auto;
  display: grid; grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .steps-stage { grid-template-columns: 1.15fr 0.85fr; }
}

.steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: clamp(1.4rem, 4vh, 2.75rem);
}

/* hint "desplázate para conocer más" — se desvanece al avanzar por los pasos
   (--sp lo escribe app.js sobre #pasos, 0 → 1 durante el recorrido fijado) */
.steps-hint {
  grid-column: 1 / -1;
  order: -2;
  margin: 0 0 clamp(1.25rem, 4vh, 2.5rem);
  text-align: center;
  font-family: "Unbounded", sans-serif;
  font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cream-faint);
  opacity: clamp(0, calc(1 - var(--sp, 0) * 3.5), 1);
  transition: opacity 0.25s linear;
  pointer-events: none;
}
.steps-hint .arw-d {
  display: inline-block; margin-left: 0.5em;
  animation: hintPulse 2.6s ease-in-out infinite;
}

.step { --fill: 0; }
.step-n {
  display: block; margin-bottom: 0.55rem;
  font-family: "Unbounded", sans-serif;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--neon);
  opacity: calc(0.4 + var(--fill) * 0.6);
}
.step-row { display: grid; grid-template-columns: 34px 1fr; gap: 1.3rem; align-items: stretch; }
.step-bar {
  position: relative; width: 2px; justify-self: center;
  background: var(--line-soft); border-radius: 2px;
}
.step-bar i {
  position: absolute; left: 0; right: 0; top: 0;
  height: calc(var(--fill) * 100%);
  background: var(--neon);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(120, 212, 226, 0.6);
}
.step-txt h3 {
  font-size: var(--step-1); font-style: italic;
  opacity: calc(0.4 + var(--fill) * 0.6);
}
.step-txt p {
  margin-top: 0.3rem;
  color: var(--cream-dim); font-size: var(--step-0);
  opacity: calc(0.35 + var(--fill) * 0.65);
}

.steps-media {
  position: relative;
  order: -1;                 /* imagen arriba de los pasos en móvil */
  height: clamp(126px, 22svh, 190px);
  aspect-ratio: 3 / 4;       /* el ancho se deriva del alto en móvil */
  margin-inline: auto;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--night-2);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
}
.step-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
}
.step-img.is-current { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .step-img { transition: none; }
}
@media (min-width: 900px) {
  .steps-media {
    order: 0;
    width: min(32vw, 360px); height: auto;
    justify-self: end; margin-inline: 0;
  }
}

.shot-tail {
  text-align: left;
  /* el ancho incluye los gutters para que el texto quede alineado
     con el borde izquierdo de los pasos (.steps-stage dentro de .steps-pin) */
  width: min(100%, calc(68rem + 2 * var(--gutter)));
  margin-inline: auto;
  padding: clamp(2.5rem, 7vh, 4.5rem) var(--gutter) 0;
}

/* =========================================================================
   CH3 — La colección
   ========================================================================= */
.collection { text-align: left; }
.collection .head { margin-bottom: clamp(2.5rem, 7vh, 4.5rem); }
.collection h2 { font-size: var(--step-2); font-style: italic; max-width: 18ch; }

/* ---- marquee infinito de fragancias (patrón InfiniteSlider) ---- */
.vials-marquee {
  --vgap: clamp(1rem, 2vw, 1.5rem);
  --vdur: 30s;
  position: relative;
  overflow-x: auto;              /* fallback sin JS / reduced-motion: scroll manual */
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding: 6px 0 1.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.vials-marquee.slider-on { overflow: hidden; }
.vials-marquee::-webkit-scrollbar { height: 4px; }
.vials-marquee::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.vials-track { display: flex; width: max-content; will-change: transform; }
.slider-on .vials-track { animation: vialsScroll var(--vdur) linear infinite; }
.vials-marquee:hover { --vdur: 110s; }                       /* durationOnHover: se frena */
.vials-marquee:focus-within .vials-track { animation-play-state: paused; }
@keyframes vialsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* táctil: el ticker sigue corriendo automáticamente (igual que en escritorio),
   solo un poco más lento para que se alcance a leer al pasar */
@media (hover: none) {
  .vials-marquee { --vdur: 42s; }
}

/* modo carrusel: avance automático por JS (scrollLeft) + arrastre nativo con
   el dedo / rueda / trackpad. Sustituye el @keyframes de CSS. */
.vials-marquee.slider-drag {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.vials-marquee.slider-drag:active { cursor: grabbing; }
.vials-marquee.slider-drag::-webkit-scrollbar { display: none; }
.slider-drag .vials-track { animation: none !important; transform: none !important; will-change: auto; }

.vials {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--vgap);
  padding-right: var(--vgap);    /* separa un set del siguiente (el track no lleva gap) */
  flex: none;
}
.vial {
  flex: 0 0 clamp(258px, 78vw, 340px);
  background: linear-gradient(180deg, var(--night-2), var(--night));
  border: 1px solid var(--line-soft);
  padding: 0;
  overflow: hidden;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
  transition-delay: calc(var(--i) * 80ms);
}
.vials.is-in .vial,
.slider-on .vial { opacity: 1; transform: translateY(0); }
.vial:hover, .vial:focus-within {
  border-color: var(--line);
  box-shadow: 0 0 0 1px rgba(120, 212, 226, 0.28), 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.vial-media { aspect-ratio: 7 / 4; overflow: hidden; background: var(--void); }
.vial-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.9;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
}
.vial:hover .vial-media img, .vial:focus-within .vial-media img { transform: scale(1.04); opacity: 1; }
.vial-body { padding: 1.4rem 1.4rem 1.7rem; }
.vial-house {
  font-family: "Unbounded", sans-serif;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--neon);
}
.vial-name {
  font-family: "Cormorant Garamond", Garamond, serif;
  font-style: italic; font-size: 1.7rem; line-height: 1.1;
  margin: 0.15rem 0 1rem;
}
.notes { display: grid; gap: 0.6rem; }
.note { display: grid; grid-template-columns: 5.4em 1fr; gap: 0.9em; font-size: 0.85rem; align-items: start; }
.note dt {
  font-family: "Unbounded", sans-serif;
  font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cream-faint);
  padding-top: 0.5em;
}
.note dd { color: var(--cream-dim); }

/* =========================================================================
   CH4 — Dónde
   ========================================================================= */
.where h2 { font-size: var(--step-2); font-style: italic; }
.where .addr {
  margin-top: 1.2rem;
  font-size: var(--step-1);
  color: var(--cream-dim);
  font-style: normal;
  max-width: 24ch;
}
.map-frame {
  margin-top: clamp(2.2rem, 6vh, 3.5rem);
  position: relative;
  border: 1px solid var(--line);
  padding: 8px;
  background: rgba(6, 8, 14, 0.5);
}
.map-frame::before, .map-frame::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--neon);
}
.map-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.map-frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.map-frame iframe {
  width: 100%; height: clamp(280px, 42vh, 440px);
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.9) hue-rotate(160deg);
  opacity: 0.86;
}
.where-soon {
  margin-top: clamp(2rem, 5vh, 3rem);
  font-family: "Unbounded", sans-serif;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream-dim);
}
.where-soon::before {
  content: ""; display: inline-block;
  width: clamp(24px, 5vw, 48px); height: 1px; margin-right: 0.9em;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--neon), transparent);
}

/* fondo de bruma en "El shot" — mantener textura visible, cargado a la derecha */
.section-bg--mist { opacity: 0.6; }
.section-bg--mist img { object-position: right center; }

/* =========================================================================
   CONTACTO — WhatsApp
   ========================================================================= */
.contacto { text-align: left; }
.contact-grid {
  margin-top: clamp(1.5rem, 5vh, 3rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--night-2), var(--night));
}
.contact-card h2 {
  font-size: var(--step-2); font-style: italic;
  max-width: 20ch; text-wrap: balance;
}
.contact-card p {
  margin: 0;
  color: var(--cream-dim);
  font-size: var(--step-0);
  line-height: 1.55;
  max-width: 34ch;
}
.contact-wa {
  margin-top: auto;          /* alinea los botones abajo aunque las tarjetas midan distinto */
  align-self: stretch;
  justify-content: center;
}
.wa-glyph { width: 1.15em; height: 1.15em; flex: none; }

.contact-num {
  display: block;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  text-align: center;
  font-family: "Unbounded", sans-serif;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-faint);
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-num span { color: var(--neon); }
.contact-num:hover { color: var(--cream); }

.footer-links { display: inline-flex; gap: 1.4rem 1.75rem; flex-wrap: wrap; }

/* =========================================================================
   Climax — Instagram
   ========================================================================= */
.climax {
  min-height: 100svh;
  align-items: center; text-align: center;
  overflow: hidden;
}
.climax::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 55%, rgba(75, 191, 200, 0.18), transparent 70%);
}
.climax-logo {
  display: block;
  width: min(90vw, 660px);
  aspect-ratio: 2.8 / 1;      /* recorta el aire transparente arriba/abajo del PNG cuadrado */
  height: auto;
  object-fit: cover;
  margin-inline: auto;
}
.climax .glow { color: var(--neon); text-shadow: 0 0 40px rgba(120, 212, 226, 0.6); }
.climax .cta-row { margin-top: clamp(2.4rem, 7vh, 4rem); }
.climax .handle {
  display: block; margin-top: 1.6rem;
  font-family: "Unbounded", sans-serif;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-faint);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-soft);
  padding: clamp(3rem, 8vh, 5rem) var(--gutter);
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
  align-items: center; justify-content: space-between;
  background: var(--void);
}
.footer-mark {
  font-family: "Cormorant Garamond", Garamond, serif;
  font-size: 1.1rem; letter-spacing: 0.4em; padding-left: 0.4em;
  text-decoration: none;
}
.footer small { color: var(--cream-faint); font-size: 0.74rem; letter-spacing: 0.04em; }
.footer a.f-ig {
  font-family: "Unbounded", sans-serif;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--cream-dim);
}
.footer a.f-ig:hover { color: var(--neon); }

/* =========================================================================
   JS reveal helper
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--rd, 0s); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* titular que aparece línea por línea (secciones "La noche" y "El shot") */
.big-line.stagger { opacity: 1; transform: none; transition: none; }
.big-line.stagger .ln {
  display: block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.big-line.stagger .ln + .ln { transition-delay: 0.13s; }
.big-line.stagger.is-in .ln { opacity: 1; transform: translateY(0); }

/* párrafo que aparece renglón por renglón (reutiliza .ln) */
.reveal.lines { opacity: 1; transform: none; transition: none; }
.reveal.lines .ln {
  display: block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.lines .ln + .ln { transition-delay: 0.12s; }
.reveal.lines.is-in .ln { opacity: 1; transform: translateY(0); }

/* =========================================================================
   Microinteracciones — capítulos inferiores
   Un solo lenguaje: la línea de neón se DIBUJA, el glow se CARGA.
   Nada nuevo en reposo; todo es movimiento o hover.
   ========================================================================= */

/* 1 · el guion del eyebrow se dibuja de izquierda a derecha al entrar */
.eyebrow::before,
.where-soon::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-out) 0.1s;
}
.eyebrow.is-in::before,
.where-soon.is-in::before { transform: scaleX(1); }

/* 2 · los titulares de Colección y Dónde entran con el mismo gesto que
   "La noche" / "El shot": renglón que sube (robusto, sin clip-path). */

/* 3 · las esquinas del mapa se dibujan hacia dentro del encuadre */
.map-frame::before,
.map-frame::after {
  width: 0; height: 0; opacity: 0;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), opacity 0.3s ease;
}
.map-frame.is-in::before { width: 14px; height: 14px; opacity: 1; }
.map-frame.is-in::after  { width: 14px; height: 14px; opacity: 1; transition-delay: 0.12s; }

/* 4 · el glow de neón se enciende un instante después de asentarse el texto */
.big-line .glow {
  text-shadow: 0 0 0 rgba(120, 212, 226, 0);
  transition: text-shadow 0.7s var(--ease-out) 0.3s;
}
.big-line.stagger.is-in .glow { text-shadow: 0 0 28px rgba(120, 212, 226, 0.55); }

/* 5 · tarjeta de fragancia: subrayado que se traza + tracking que respira */
.vial-name { position: relative; }
.vial-name::after {
  content: ""; position: absolute; left: 0; bottom: -0.16em;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--neon), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.vial:hover .vial-name::after,
.vial:focus-within .vial-name::after { transform: scaleX(1); }
.vial-house { transition: letter-spacing 0.5s var(--ease-out); }
.vial:hover .vial-house,
.vial:focus-within .vial-house { letter-spacing: 0.3em; }

/* 6 · el nudge a Instagram traza una hairline bajo el texto al enfocarse */
.ig-nudge { position: relative; }
.ig-nudge::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.4em;
  height: 1px;
  background: linear-gradient(90deg, var(--neon), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.ig-nudge:hover::after,
.ig-nudge:focus-visible::after { transform: scaleX(1); }

/* =========================================================================
   Versión móvil — decisiones propias de teléfono (no el escritorio encogido)
   · OCULTAR: capas que no se perciben o estorban en pantalla chica
   · AJUSTAR: ritmo vertical guiado por el contenido, no por el viewport
   · REDIMENSIONAR: recorridos de scroll más cortos, tipografía y marcos a escala
   ========================================================================= */
@media (max-width: 640px) {

  /* — OCULTAR ————————————————————————————————————— */
  .grain { display: none; }                 /* ruido imperceptible = una capa mezclada de más */
  #igHeader .btn-label { display: none; }    /* CTA del header pasa a solo-ícono */
  #igHeader { padding: 0.7rem; gap: 0; }     /* botón circular de 44px, solo el glyph */
  .header { padding-inline: 1.25rem; }
  .header-mark { font-size: 1rem; letter-spacing: 0.28em; }
  .hero-hint { letter-spacing: 0.2em; font-size: 0.56rem; }

  /* — AJUSTAR (ritmo) ———————————————————————————————— */
  /* los capítulos dejan de ser pantallas completas casi vacías: la altura
     la marca el contenido, con aire medido y sin huecos muertos */
  .chapter { min-height: 0; padding-block: clamp(2rem, 6vh, 3rem); }
  #noche { min-height: 0; padding-bottom: clamp(1.5rem, 4vh, 2.5rem); }
  #shot  { padding-block: clamp(1.25rem, 3.5vh, 2rem); }   /* solo un beat de transición */
  .lede { margin-top: 1.1rem; }

  .marquee { padding-block: 0.85rem; }
  .marquee-track { gap: 1.75rem; }
  .marquee-track span { font-size: 0.7rem; letter-spacing: 0.13em; }

  /* los 4 pasos: imagen a su tamaño, todo el bloque CENTRADO en la pantalla
     fijada — el aire sobrante se reparte arriba y abajo por igual, no se
     acumula debajo. Los gaps apretados evitan que se recorte. */
  .steps-spacer { height: 200vh; }
  .steps-pin { padding-block: clamp(1.75rem, 5vh, 3rem); }   /* align-items: center (base) */
  .steps-stage { gap: clamp(0.9rem, 2.5vh, 1.5rem); }
  .steps-media { height: clamp(126px, 20svh, 178px); }        /* tamaño casi original */
  .steps { gap: clamp(0.75rem, 2vh, 1.2rem); }
  .step-row { grid-template-columns: 20px 1fr; gap: 0.9rem; }
  .step-n { margin-bottom: 0.3rem; }
  .step-txt p { margin-top: 0.2rem; line-height: 1.4; }
  .steps-hint { margin-bottom: clamp(0.9rem, 3vh, 1.75rem); font-size: 0.55rem; letter-spacing: 0.2em; }

  /* "Míralo en acción" necesita aire tras el último paso al soltarse el pin */
  .shot-tail { padding-top: clamp(4rem, 13vh, 6.5rem); }

  /* el nudge a Instagram fluye como frase normal y se ajusta al ancho */
  .ig-nudge { display: block; line-height: 1.55; margin-top: clamp(1.4rem, 4vh, 2.5rem); }
  .collection .head { margin-bottom: clamp(1.5rem, 5vh, 2.5rem); }

  .vial-body { padding: 1.15rem 1.15rem 1.4rem; }
  .note { grid-template-columns: 4.4em 1fr; gap: 0.7em; font-size: 0.8rem; }

  .map-frame { margin-top: clamp(1.8rem, 5vh, 2.6rem); }
  .where .addr { margin-top: 1rem; }
  .where-soon { margin-top: clamp(1.4rem, 4vh, 2.25rem); }

  /* clímax: sin pantalla completa centrada — el logo entra con aire, no en un vacío */
  .climax { min-height: 0; padding-block: clamp(3rem, 9vh, 4.5rem); }
  .climax .cta-row { margin-top: clamp(1.75rem, 5vh, 2.5rem); }

  .footer { flex-direction: column; align-items: flex-start; gap: 1rem; text-align: left; }

  /* — REDIMENSIONAR (escala) —————————————————————————— */
  .hero-invert { height: 230vh; }            /* recorrido del círculo más corto en teléfono */
  .hero-wordmark { letter-spacing: 0.3em; font-size: clamp(1.15rem, 5vw, 1.5rem); top: clamp(2.5rem, 8vh, 4rem); }
  .invert-ring { box-shadow: 0 0 0 1.5px rgba(120, 212, 226, 0.9), 0 0 44px 4px rgba(120, 212, 226, 0.3); }

  .orb { filter: blur(52px); opacity: 0.4; }

  .big-line { max-width: 20ch; }
  .vial-name { font-size: clamp(1.4rem, 5.2vw, 1.7rem); margin-bottom: 0.85rem; }
  .map-frame iframe { height: clamp(220px, 40vh, 340px); }
  .climax-logo { width: 92vw; }
  .climax .handle { letter-spacing: 0.12em; }
}

/* =========================================================================
   Reduced motion — render final, legible states
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  .reveal, .step, .vial, .big-line.stagger .ln, .reveal.lines .ln { opacity: 1 !important; transform: none !important; }
  .eyebrow.is-in::before, .where-soon.is-in::before { transform: scaleX(1) !important; }
  .map-frame::before, .map-frame::after { width: 14px !important; height: 14px !important; opacity: 1 !important; }
  .big-line .glow { text-shadow: 0 0 26px rgba(120, 212, 226, 0.5) !important; }
  /* fragancias: el marquee sigue corriendo pero mucho más lento; frenar con hover/foco */
  .vials-marquee { --vdur: 120s; }
  .slider-on .vials-track { animation: vialsScroll var(--vdur) linear infinite !important; }
  .shot { min-height: 0; }
  .shot-stage { position: static; min-height: 0; }
  .shot-img { clip-path: none !important; transform: none !important; filter: saturate(1) brightness(1) !important; }
  .shot-scan { display: none; }
  /* 4 pasos: sin pin, todos "cargados" */
  .steps-spacer { display: none; }
  .steps-pin { position: static; height: auto; }
  .steps-hint { display: none; }
  .step { --fill: 1; }
  .progress { display: none; }
  /* hero v2: sin pin ni círculo animado — título simple sobre la escena */
  .hero-invert { height: auto; }
  .hero-pin { position: static; height: auto; min-height: 100svh; overflow: hidden; }
  .hero-scene-media { opacity: 0.4 !important; }
  .invert-reveal, .invert-ring { display: none; }
  .hero-layer--in { display: none; }
  .hero-wordmark { mix-blend-mode: normal; }
  .hero-hint span { animation: none; }
  .hero-hint { display: none; }
}
