/* =========================================================
   GNXYZ — Elite Bodies
   Paleta clínica: negro, grises, blanco y acento violeta.
   ========================================================= */

:root {
  --bg: #080808;
  --bg-2: #0f0f11;
  --bg-3: #16161a;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --fg: #f7f7f5;
  --fg-2: #bcbcc1;
  --fg-3: #80808a;
  --card: #ededeb;
  --card-2: #d5d5d3;
  --violet: #8b6dff;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-variation-settings: "wdth" 100;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--fg); color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--fg-3); }
.italic { font-style: italic; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 56px);
}
.section-head .idx {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-3);
}

.title {
  margin: 0;
  font-size: clamp(40px, 7vw, 104px);
  line-height: .95;
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.035em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  border-radius: 999px;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn--light { background: var(--fg); color: var(--bg); }
.btn--light:hover { background: #fff; }
.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--fg); }
.play {
  width: 0; height: 0;
  border-left: 7px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}

/* =========================================================
   FONDO AURORA (mesh gradient animado)
   Dos capas: violeta (inicio) y mono gris/blanco (al bajar).
   El scroll sólo cambia opacidades -> barato para el teléfono.
   ========================================================= */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  background: #080808;
  pointer-events: none;
}
.aurora__layer { position: absolute; inset: 0; will-change: opacity; }
.aurora__layer--mono { opacity: 0; }
.blob {
  position: absolute;
  display: block;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  will-change: transform;
  backface-visibility: hidden;
}
/* capa violeta */
.blob--v1 { left: -28vmax; top: -32vmax; background: radial-gradient(closest-side, rgba(112, 80, 240, .55), rgba(76, 54, 170, .2) 50%, transparent); animation: drift-a 22s ease-in-out infinite alternate; }
.blob--v2 { right: -30vmax; top: -12vmax; width: 72vmax; height: 72vmax; background: radial-gradient(closest-side, rgba(60, 59, 96, .95), rgba(41, 41, 67, .4) 50%, transparent); animation: drift-b 28s ease-in-out infinite alternate; }
.blob--v3 { left: 6vmax; bottom: -48vmax; background: radial-gradient(closest-side, rgba(72, 48, 56, .8), transparent); animation: drift-c 25s ease-in-out infinite alternate; }
.blob--v4 { right: 2vmax; bottom: -18vmax; width: 52vmax; height: 52vmax; background: radial-gradient(closest-side, rgba(150, 112, 255, .3), transparent); animation: drift-a 18s ease-in-out infinite alternate-reverse; }
/* capa mono (gris / blanco / negro con un toque violeta) */
.blob--m1 { left: -22vmax; top: -28vmax; background: radial-gradient(closest-side, rgba(255, 255, 255, .11), rgba(210, 210, 220, .04) 50%, transparent); animation: drift-b 26s ease-in-out infinite alternate; }
.blob--m2 { right: -26vmax; top: 8vmax; background: radial-gradient(closest-side, rgba(140, 140, 150, .24), transparent); animation: drift-c 30s ease-in-out infinite alternate; }
.blob--m3 { left: 18vmax; bottom: -42vmax; background: radial-gradient(closest-side, rgba(90, 68, 165, .38), transparent); animation: drift-a 24s ease-in-out infinite alternate; }
.blob--m4 { right: 8vmax; bottom: -12vmax; width: 46vmax; height: 46vmax; background: radial-gradient(closest-side, rgba(41, 41, 67, .85), transparent); animation: drift-b 20s ease-in-out infinite alternate-reverse; }

@keyframes drift-a {
  0%   { transform: translate3d(-4%, -3%, 0) rotate(-8deg) scale(1); }
  100% { transform: translate3d(12%, 10%, 0) rotate(12deg) scale(1.15); }
}
@keyframes drift-b {
  0%   { transform: translate3d(5%, 0, 0) scale(1.05); }
  100% { transform: translate3d(-14%, 12%, 0) scale(.9); }
}
@keyframes drift-c {
  0%   { transform: translate3d(0, 6%, 0) scale(1); }
  100% { transform: translate3d(10%, -14%, 0) scale(1.2); }
}
.aurora__grain {
  position: absolute; inset: 0; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #050505;
  display: grid;
  place-items: center;
  transition: transform 1.1s var(--ease-io);
}
.loader.is-done { transform: translateY(-100%); }
.loader__inner {
  width: min(560px, 78vw);
  transition: opacity .5s ease, transform 1.1s var(--ease-io);
}
.loader.is-done .loader__inner { opacity: 0; transform: translateY(40px); }

.loader__logo { position: relative; }
.loader__mark { width: 100%; height: auto; }
.loader__mark--base {
  opacity: .1;
  animation: markIn 1.2s var(--ease) both;
}
.loader__mark--fill {
  position: absolute;
  inset: 0;
  --p: -10%;
  -webkit-mask-image: linear-gradient(100deg, #000 var(--p), transparent calc(var(--p) + 10%));
          mask-image: linear-gradient(100deg, #000 var(--p), transparent calc(var(--p) + 10%));
}
.loader__tag {
  width: 100%;
  height: auto;
  margin-top: 2px;
  opacity: 0;
  clip-path: inset(0 50% 0 50%);
  animation: tagIn 1.4s .6s var(--ease) forwards;
}
.loader.is-pulse .loader__logo { animation: pulse .6s var(--ease); }

@keyframes markIn {
  from { opacity: 0; transform: translateX(-14px) skewX(-6deg); filter: blur(6px); }
  to   { opacity: .1; transform: none; filter: none; }
}
@keyframes tagIn {
  to { opacity: .85; clip-path: inset(0 0 0 0); }
}
@keyframes pulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.025); filter: brightness(1.4); }
  100% { transform: scale(1); }
}

.loader__bar {
  position: relative;
  height: 1px;
  margin-top: 46px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.loader__bar span {
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform-origin: left;
  transform: scaleX(0);
}
.loader__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.loader__meta #loaderPct { color: var(--fg); font-variant-numeric: tabular-nums; }
.loader__foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
  padding: 0 var(--gutter);
  transition: background .5s var(--ease), height .5s var(--ease), border-color .5s, transform .6s var(--ease);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
}
body.is-ready .nav { transform: none; transition-delay: .5s; }
.nav.is-scrolled {
  height: 62px;
  background: rgba(11, 11, 11, .72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  transition-delay: 0s;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand img { height: 22px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a, .nav__cta {
  position: relative;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--fg-2);
  transition: color .3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  color: var(--fg);
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.nav__cta:hover { background: var(--fg); color: var(--bg); }
.nav__burger { display: none; width: 34px; height: 34px; margin-left: auto; position: relative; }
.nav__burger span {
  position: absolute; left: 6px; right: 6px; height: 1px; background: var(--fg);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__burger span:first-child { top: 13px; }
.nav__burger span:last-child { top: 20px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  gap: 6px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu a {
  font-size: 44px;
  font-weight: 600;
  font-variation-settings: "wdth" 115;
  letter-spacing: -.03em;
  line-height: 1.15;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  overflow: hidden;
}
/* marco fijo que difumina el final de la portada; el ADN se mueve dentro */
.hero__fade {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  mix-blend-mode: screen; /* el negro del ADN deja ver la aurora morada */
}
.hero__fade, .hero::after {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.45) 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.45) 80%, transparent 100%);
}
.hero__bg {
  position: absolute;
  inset: -4% 0 -12% 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
  transform: scale(1.12);
  opacity: 0;
  transition: transform 2.6s var(--ease), opacity 1.6s ease;
}
body.is-ready .hero__bg img { transform: scale(1); opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8,8,8,.6) 0%, rgba(8,8,8,.2) 45%, rgba(8,8,8,0) 70%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(40px, 7vh, 90px); }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(58px, 11vw, 190px);
  line-height: .86;
  letter-spacing: -.045em;
  font-variation-settings: "wdth" 118;
  text-transform: uppercase;
}
.hero__title .italic { font-weight: 300; font-variation-settings: "wdth" 125; letter-spacing: -.035em; }

.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
body.is-ready .line > span { transform: none; }
body.is-ready .line:nth-child(2) > span { transition-delay: .12s; }

.hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}
.hero__lead { max-width: 380px; margin: 0; color: var(--fg-2); font-size: 15px; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero__eyebrow, .hero__lead, .hero__actions, .hero__foot {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease, transform 1.2s var(--ease);
}
body.is-ready .hero__eyebrow { opacity: 1; transform: none; transition-delay: .1s; }
body.is-ready .hero__lead { opacity: 1; transform: none; transition-delay: .45s; }
body.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: .55s; }
body.is-ready .hero__foot { opacity: 1; transform: none; transition-delay: .8s; }

.hero__vials {
  position: absolute;
  right: clamp(0px, 4vw, 90px);
  top: 47%;
  width: clamp(260px, 29vw, 480px);
  aspect-ratio: 1 / .95;
  transform: translateY(-58%);
  z-index: 3;
  pointer-events: none;
  will-change: transform, translate;
}
.hero__vials .v {
  position: absolute;
  bottom: 0;
  width: 42%;
  height: auto;
  filter: grayscale(1) brightness(.92) contrast(1.05) drop-shadow(0 40px 40px rgba(0,0,0,.6));
  opacity: 0;
  transition: opacity 1.4s ease, transform 1.8s var(--ease);
}
.hero__vials .v1 { left: 0; transform: translateY(60px) rotate(-6deg); }
.hero__vials .v2 { left: 29%; width: 46%; bottom: 8%; z-index: 2; transform: translateY(80px); }
.hero__vials .v3 { right: 0; transform: translateY(60px) rotate(6deg); }
body.is-ready .hero__vials .v { opacity: 1; }
body.is-ready .hero__vials .v1 { transform: rotate(-6deg); transition-delay: .35s; }
body.is-ready .hero__vials .v2 { transform: none; transition-delay: .2s; }
body.is-ready .hero__vials .v3 { transform: rotate(6deg); transition-delay: .5s; }

.hero__foot {
  display: flex;
  gap: clamp(18px, 4vw, 56px);
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  position: relative;
  z-index: 2;
}
.scroll-cue { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { display: block; width: 1px; height: 22px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%;
  background: var(--fg); animation: cue 1.8s var(--ease-io) infinite;
}
@keyframes cue { to { top: 110%; } }

/* =========================================================
   INTRO
   ========================================================= */
.intro { padding: clamp(56px, 7vw, 110px) 0 clamp(28px, 3.5vw, 52px); }
.intro .eyebrow { white-space: nowrap; }
.statement {
  margin: 0;
  max-width: 1180px;
  font-size: clamp(26px, 3.7vw, 56px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 450;
  font-variation-settings: "wdth" 100;
  text-indent: 2.2em;
}
.statement .w { color: var(--fg-3); transition: color .6s ease; }
.statement .w.is-on { color: var(--fg); }

/* datos en chico, a la derecha del encabezado */
.stats { display: flex; margin: 0 0 0 auto; }
.stats div { padding-right: 22px; }
.stats div:last-child { padding-right: 0; }
.stats div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.stats dt {
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 600;
  font-variation-settings: "wdth" 115;
  letter-spacing: -.04em;
  line-height: 1;
}
.stats dd { margin: 6px 0 0; font-size: 12px; color: var(--fg-2); line-height: 1.3; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* =========================================================
   LÍNEAS
   ========================================================= */
.lines { padding: 0 0 clamp(48px, 6vw, 90px); position: relative; scroll-margin-top: 90px; }
.lines__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line-row {
  display: grid;
  grid-template-columns: 70px 1.2fr 1fr 60px;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 2.2vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: padding .6s var(--ease), color .4s;
}
.line-row::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .6s var(--ease);
  z-index: -1;
}
.line-row__n, .line-row__count { font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); transition: color .4s; }
.line-row__count { text-align: right; }
.line-row__name {
  font-size: clamp(30px, 4.4vw, 68px);
  font-weight: 600;
  font-variation-settings: "wdth" 115;
  letter-spacing: -.035em;
  line-height: 1;
  transition: transform .6s var(--ease);
}
.line-row__desc { color: var(--fg-2); font-size: 14px; max-width: 360px; transition: color .4s; }
@media (hover: hover) {
  .line-row:hover { color: var(--bg); padding-left: 20px; padding-right: 20px; }
  .line-row:hover::before { transform: scaleY(1); transform-origin: top; }
  .line-row:hover .line-row__n,
  .line-row:hover .line-row__count,
  .line-row:hover .line-row__desc { color: #3a3a3a; }
  .line-row:hover .line-row__name { transform: translateX(8px); font-style: italic; }
}
.lines__preview {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  aspect-ratio: 4 / 3;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.85);
  transition: opacity .35s ease, transform .5s var(--ease);
}
.lines__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lines__preview img { width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }

/* =========================================================
   CATÁLOGO
   ========================================================= */
.catalog { padding: clamp(40px, 5vw, 80px) 0 clamp(48px, 6vw, 90px); }
.catalog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--fg-2);
  transition: all .35s var(--ease);
}
.filters button sup { font-family: var(--f-mono); font-size: 9px; color: var(--fg-3); margin-left: 3px; }
.filters button:hover { color: var(--fg); border-color: var(--fg-2); }
.filters button.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters button.is-active sup { color: #555; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.card {
  position: relative;
  background: rgba(8, 8, 10, .78);
  outline: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card.is-hidden { display: none; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: radial-gradient(ellipse 70% 55% at 50% 58%, #ffffff 0%, var(--card) 55%, var(--card-2) 100%);
  overflow: hidden;
}
/* Contenedor que entra desde el costado; el fondo gris siempre queda fijo */
.card__vial {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: translate3d(-70%, 0, 0) rotate(-9deg);
  transition: transform 1.25s var(--ease), opacity .8s ease;
}
.card[data-dir="r"] .card__vial { transform: translate3d(70%, 0, 0) rotate(9deg); }
.card.is-in .card__vial { opacity: 1; transform: none; }
.card__vial::after {
  content: "";
  position: absolute; left: 24%; right: 24%; bottom: 7%;
  height: 16px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.3), transparent 70%);
  filter: blur(4px);
}
.card__vial img {
  position: absolute;
  z-index: 1;
  left: 0; right: 0;
  bottom: 8%;
  margin: 0 auto;
  height: 80%;
  width: auto;
  max-width: none;
  transition: transform 1s var(--ease), filter .8s ease;
}
.card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #4a4a48;
}
.card__body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 18px 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .8s ease .25s, transform 1s var(--ease) .25s;
}
.card.is-in .card__body { opacity: 1; transform: none; }
.card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  font-variation-settings: "wdth" 110;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.card__sub { margin: 6px 0 0; font-size: 12px; color: var(--fg-3); line-height: 1.35; }
.card__cta {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.only-sm { display: none; }
.card__cta .arr { display: inline-block; transition: transform .4s var(--ease); }
.card__cta:hover, .card__cta:active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

@media (hover: hover) {
  .card__vial img { filter: grayscale(1) contrast(1.05); }
  .card:hover .card__vial img { filter: grayscale(0); transform: translateY(-10px) scale(1.03); }
  .card:hover .card__cta .arr { transform: translateX(3px); }
}

/* =========================================================
   CALIDAD
   ========================================================= */
.quality { padding: clamp(40px, 5vw, 80px) 0 clamp(48px, 6vw, 90px); }
.quality__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.quality__grid article { padding: 0 28px 0 0; }
.quality__grid article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.q-n { font-family: var(--f-mono); font-size: 11px; color: var(--fg-3); }
.quality__grid h3 {
  margin: 28px 0 12px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.quality__grid p { margin: 0; font-size: 14px; color: var(--fg-2); }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { position: relative; padding: clamp(40px, 5vw, 80px) 0 clamp(56px, 7vw, 100px); overflow: hidden; isolation: isolate; }
.contact__title {
  margin: 0 0 clamp(32px, 4vw, 60px);
  font-size: clamp(52px, 12.5vw, 210px);
  font-weight: 700;
  font-variation-settings: "wdth" 118;
  letter-spacing: -.05em;
  line-height: .85;
  text-transform: uppercase;
}
.contact__title .italic { font-weight: 300; }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.contact__grid > div { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px; }
.big-link {
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: -.01em;
  width: fit-content;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
  overflow-wrap: anywhere;
}
a.big-link:hover { background-size: 100% 1px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding: 44px 0 24px; }
.footer__logo { width: min(420px, 70%); height: auto; opacity: .9; }
.footer__legal { max-width: 520px; margin: 24px 0 36px; font-size: 12px; color: var(--fg-3); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3);
}
.to-top:hover { color: var(--fg); }

/* =========================================================
   REVEALS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* El recorte va en la imagen (no en el contenedor observado): Chrome
   descuenta el clip-path del propio elemento al calcular la intersección. */
.reveal-img img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.2);
  transition: clip-path 1.4s var(--ease-io), transform 1.8s var(--ease);
}
.reveal-img figcaption { opacity: 0; transition: opacity 1s ease .8s; }
.reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.reveal-img.is-in figcaption { opacity: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .quality__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .quality__grid article:nth-child(3) { padding-left: 0; border-left: 0; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }

}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .line-row { grid-template-columns: 40px 1fr 40px; row-gap: 8px; }
  .line-row__desc { grid-column: 2 / 3; grid-row: 2; }
  .hero__vials { right: 24px; top: 34%; width: 300px; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card__body { padding: 12px 10px 12px; flex-direction: column; align-items: stretch; gap: 10px; }
  .card__name { font-size: 15px; }
  .card__sub { font-size: 11px; }
  .card__tag { top: 10px; left: 10px; font-size: 8.5px; }
  .only-sm { display: inline; }
  .card__cta { width: 100%; height: 40px; background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 500; }
  .quality__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .quality__grid article, .quality__grid article + article { padding: 0; border-left: 0; }
  .quality__grid h3 { margin-top: 10px; }
  .contact__grid { grid-template-columns: 1fr; }
  .intro .section-head { gap: 12px; align-items: flex-start; }
  .intro .idx, .intro .eyebrow { line-height: 18px; }
  .stats div { padding-right: 9px; }
  .stats div:nth-child(3) { padding-right: 0; }
  .stats div + div { padding-left: 9px; }
  .stats dt { font-size: 16px; }
  .stats dd { width: min-content; margin-top: 4px; font-size: 10px; line-height: 1.2; }
  .hide-sm { display: none; }
  .statement { text-indent: 0; }
  .hero__vials { display: none; }
  .hero__bg { opacity: .5; }
  .hero__title { font-size: 12.4vw; font-variation-settings: "wdth" 112; }
  .hero__title .italic { font-variation-settings: "wdth" 108; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .blob { animation: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 359px) {
  .intro .section-head { gap: 8px; }
  .intro .eyebrow { letter-spacing: .06em; }
  .stats div { padding-right: 7px; }
  .stats div + div { padding-left: 7px; }
  .stats dt { font-size: 15px; }
}
