/* =============================================================================
   DEFIT SUPPLEMENTS — PIXI WEB V2
   Sistema de diseño + animaciones
   ============================================================================= */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  /* Marca */
  /* La marca no usa negro. El plum profundo cubre el rol del texto de alto
     contraste y el lila tenue el de las superficies grandes. */
  --ink:        #2A2440;
  --carbon:     #3A3357;
  --carbon-2:   #4A4270;
  --mist:       #F4F2FC;
  --mist-2:     #EAE7F8;
  --paper:      #F9F8F6;
  --cream:      #FDF1E3;
  --white:      #FFFFFF;

  --pink:       #E6007E;
  --pink-2:     #E91E63;
  --pink-soft:  #FFD9EA;
  --pink-pale:  #FCE7F0;

  --blue:       #00AEEF;
  --blue-deep:  #0056B3;
  --blue-soft:  #CDEEFB;
  --blue-pale:  #E8F6FE;

  --lilac:      #8E8BD8;
  --lilac-soft: #E2E1F7;

  --grey:       #888888;
  --grey-2:     #CCCCCC;
  --grey-line:  rgba(42,36,64,.14);

  /* Tipografía */
  --f-display: 'Anton', 'Archivo Black', Impact, sans-serif;
  --f-brand:   'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-mono:    'Space Mono', 'Courier New', monospace;

  /* El tope en vh evita que los titulares gigantes desborden pantallas bajas */
  --fs-mega: clamp(3.2rem, min(13vw, 17vh), 14rem);
  --fs-xxl:  clamp(2.6rem, min(8.5vw, 13vh), 9.5rem);
  --fs-xl:   clamp(2.1rem, 5.6vw, 6rem);
  --fs-lg:   clamp(1.7rem, 3.6vw, 3.6rem);
  --fs-md:   clamp(1.25rem, 2vw, 1.9rem);
  --fs-body: clamp(1rem, 1.05vw, 1.15rem);
  --fs-mono: clamp(.66rem, .8vw, .82rem);

  /* Layout */
  --pad:     clamp(1.15rem, 4.5vw, 5rem);
  --gap:     clamp(1rem, 2vw, 2.25rem);
  --r-xl:    clamp(1.5rem, 3vw, 3rem);
  --r-lg:    1.25rem;
  --r-pill:  999px;
  --nav-h:   clamp(64px, 6vw, 84px);
  --curve-lap: clamp(1.2rem, 3.5vw, 3.5rem);  /* cuánto monta un bloque sobre el anterior */
  --mq-pad:  clamp(.9rem, 2vw, 1.6rem);
  --sec-tight-pad: clamp(3rem, 6vh, 5.5rem);
  --phero-pad-b: clamp(2rem, 4vh, 3rem);

  /* Movimiento */
  --e-out:   cubic-bezier(.16,1,.3,1);
  --e-io:    cubic-bezier(.65,.05,.36,1);
  --e-back:  cubic-bezier(.34,1.56,.64,1);

  /* Tema dinámico (lo mueve el JS por sección) */
  --theme-bg: var(--mist);
  --theme-fg: var(--ink);
  --theme-ac: var(--pink);
}

/* ------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1.5rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--mist);
  overflow-x: hidden;
  overflow-x: clip;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

/* El [hidden] del navegador es una regla de user-agent, así que cualquier
   display declarado aquí le gana y el elemento sigue viéndose. Pasó con
   .linea (display:grid), que quedaba visible con el bloque vacío, y con
   .cform, que mostraba login y registro al mismo tiempo. */
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------- 3. PRIMITIVAS DE TEXTO */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  /* Anton ocupa ~0.96em entre ascendentes y descendentes. Con .84 los renglones
     se encimaban en cuanto el titular envolvía a 3-4 líneas, que es lo que pasa
     en móvil: "LIMITES," caía sobre "ALCANZA TUS". .92 conserva el aire
     apretado del diseño sin que las letras se toquen. */
  line-height: .92;
  letter-spacing: -.01em;
}
.brandtype {
  font-family: var(--f-brand);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .92;
}
.mono {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: .22em;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: .24em;
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: '';
  width: 2.4em; height: 1px;
  background: currentColor;
  opacity: .55;
}
/* Palabra en contorno.
   El relleno se apaga con -webkit-text-fill-color, NO con color: transparent.
   Si se usa color, el currentColor del trazo resuelve a transparente y la
   palabra desaparece por completo, ocupando su espacio pero sin pintarse.
   El @supports deja texto sólido en el navegador que no soporte el trazo,
   en vez de dejarlo invisible. */
.outline { paint-order: stroke fill; }
@supports (-webkit-text-stroke: 1px red) {
  .outline {
    -webkit-text-stroke: clamp(1.5px, .22vw, 3.5px) currentColor;
    -webkit-text-fill-color: transparent;
  }
}
.lead { font-size: var(--fs-md); line-height: 1.35; font-weight: 500; letter-spacing: -.015em; }
.muted { opacity: .62; }

/* ------------------------------------------------------------ 4. LAYOUT */
.shell { padding-inline: var(--pad); }
.sec { position: relative; padding-block: clamp(4.5rem, 11vh, 10rem); }
.sec--tight { padding-block: var(--sec-tight-pad); }
.sec--flush { padding-block: 0; }
.grid { display: grid; gap: var(--gap); }
.row { display: flex; gap: var(--gap); }
.between { justify-content: space-between; }
.center { align-items: center; }

/* Bloques de color a sangre — el gesto central de la referencia */
.block { position: relative; overflow: hidden; overflow: clip; background: var(--theme-bg); color: var(--theme-fg); }
.block--mist   { --theme-bg: var(--mist);  --theme-fg: var(--ink);   --theme-ac: var(--pink); }
.block--mist2  { --theme-bg: var(--mist-2); --theme-fg: var(--ink);  --theme-ac: var(--blue-deep); }
.block--lilacs { --theme-bg: var(--lilac-soft); --theme-fg: var(--ink); --theme-ac: var(--blue-deep); }
.block--cream  { --theme-bg: var(--cream); --theme-fg: var(--ink);   --theme-ac: var(--pink); }
.block--paper  { --theme-bg: var(--paper); --theme-fg: var(--ink);   --theme-ac: var(--blue-deep); }
.block--pink   { --theme-bg: var(--pink);  --theme-fg: var(--white);  --theme-ac: var(--ink); }
.block--pinks  { --theme-bg: var(--pink-soft); --theme-fg: #3D0021;  --theme-ac: var(--pink); }
.block--blue   { --theme-bg: var(--blue);  --theme-fg: var(--ink);    --theme-ac: var(--white); }
.block--blues  { --theme-bg: var(--blue-soft); --theme-fg: #00293F;  --theme-ac: var(--blue-deep); }
.block--lilac  { --theme-bg: var(--lilac); --theme-fg: var(--ink);    --theme-ac: var(--white); }

/* Costura entre bloques de color: el siguiente bloque monta sobre el anterior
   con la esquina superior redondeada. Es el gesto de transición de la referencia. */
.block--curve {
  border-radius: clamp(1.6rem, 5vw, 5.5rem) clamp(1.6rem, 5vw, 5.5rem) 0 0;
  margin-top: calc(-1 * var(--curve-lap));
  z-index: 2;
}

/* Reserva del solape.
   La costura sube el bloque siguiente sobre el anterior, y en bloques de poco
   padding —marquesinas y secciones cortas— eso se come el contenido. Quien
   precede a una costura reserva ese espacio abajo. */
.mqband:has(+ .block--curve),
.block:has(+ .block--curve) > .mqband:last-child {
  padding-bottom: calc(var(--mq-pad) + var(--curve-lap));
}
.sec--tight:has(+ .block--curve),
/* El footer con costura es hermano de <main>, no de la última sección: sin esto
   la última sección corta de la página se queda sin reserva. */
main:has(+ .block--curve) > .sec--tight:last-child {
  padding-bottom: calc(var(--sec-tight-pad) + var(--curve-lap));
}
main:has(+ .block--curve) > .block:last-child > .mqband:last-child {
  padding-bottom: calc(var(--mq-pad) + var(--curve-lap));
}
/* Cabezas de página: el titular se apoya abajo, así que también reservan */
.block:has(+ .block--curve) > .phero:last-child,
main:has(+ .block--curve) > .block:last-child > .phero:last-child {
  padding-bottom: calc(var(--phero-pad-b) + var(--curve-lap));
}
.block--stack { z-index: 2; }

/* ------------------------------------------------------------ 5. BOTONES */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .8em;
  padding: 1.05em 1.9em;
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
  letter-spacing: .2em;
  background: var(--theme-fg);
  color: var(--theme-bg);
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--e-out), transform .5s var(--e-back);
  will-change: transform;
}
.btn::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--theme-ac);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--e-out);
}
.btn:hover { color: var(--theme-fg); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: scale(.96); }
.btn .arw { transition: transform .45s var(--e-out); }
.btn:hover .arw { transform: translateX(5px); }

.btn--ghost { background: transparent; color: var(--theme-fg); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { color: var(--theme-bg); }
.btn--ghost::after { background: var(--theme-fg); }
.btn--big { padding: 1.35em 2.6em; }
.btn--sm  { padding: .8em 1.35em; letter-spacing: .16em; }

/* ------------------------------------------------------------ 6. LOADER */
.loader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: var(--mist);
  transition: transform 1s var(--e-out), opacity .5s ease .35s;
}
.loader.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.loader__logo { width: min(46vw, 340px); position: relative; overflow: hidden; }
.loader__logo img { width: 100%; }
.loader__wipe {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 34%, rgba(230,0,126,.5) 48%, rgba(0,174,239,.5) 62%, transparent 78%);
  mix-blend-mode: multiply;
  animation: wipe 1.35s var(--e-io) infinite;
}
@keyframes wipe { from { transform: translateX(-115%); } to { transform: translateX(115%); } }
.loader__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(1.5rem,4vw,3rem); height: 2px; background: rgba(42,36,64,.15); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s linear; }
.loader__pct { position: absolute; right: var(--pad); bottom: clamp(2.4rem,5.5vw,4.2rem); color: var(--ink); }

/* ------------------------------------------------------------ 7. CURSOR */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 900;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 1.5px solid var(--paper);
  mix-blend-mode: difference;
  pointer-events: none;
  transition: width .35s var(--e-out), height .35s var(--e-out), margin .35s var(--e-out), background .35s ease, opacity .3s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hot { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: var(--paper); border-color: transparent; }
.cursor__lbl { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .25s; }
.cursor.is-hot .cursor__lbl { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ------------------------------------------------------------ 8. TOPBAR */
.topbar {
  position: relative; z-index: 60;
  background: var(--blue); color: var(--ink);
  border-bottom: 1px solid rgba(42,36,64,.2);
  overflow: hidden;
  overflow: clip;
}
.topbar .mq__item { padding-block: .78em; }
.topbar strong { font-weight: 700; }

/* ------------------------------------------------------------ 9. NAV */
.nav {
  position: sticky; top: 0; z-index: 70;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap);
  padding-inline: var(--pad);
  background: color-mix(in srgb, var(--theme-bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  color: var(--theme-fg);
  border-bottom: 1px solid color-mix(in srgb, var(--theme-fg) 12%, transparent);
  transition: background .6s ease, color .6s ease, border-color .6s ease, transform .5s var(--e-out);
}
.nav.is-hidden { transform: translateY(-101%); }
.nav__logo { display: block; width: clamp(96px, 11vw, 150px); flex: none; }
.nav__logo img { width: 100%; transition: filter .6s ease; }
.nav.on-dark .nav__logo img { filter: brightness(0) invert(1); }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.6rem); }
.nav__link { position: relative; padding-block: .4em; }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--e-out);
}
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: clamp(.7rem, 1.6vw, 1.5rem); }
.nav__cart { display: inline-flex; align-items: center; gap: .55em; padding: .7em 1.1em; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.4px currentColor; transition: background .35s, color .35s; }
.nav__cart:hover { background: var(--theme-fg); color: var(--theme-bg); }
.nav__count { min-width: 1.5em; height: 1.5em; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: #fff; font-size: 10px; }
.nav__burger { display: none; width: 44px; height: 44px; }
.nav__burger i { display: block; height: 1.6px; background: currentColor; margin: 5px auto; width: 22px; transition: transform .4s var(--e-out), opacity .3s; }
.nav.is-open .nav__burger i:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav.is-open .nav__burger i:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger i:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--mist); color: var(--ink);
    padding: var(--pad) var(--pad) calc(var(--pad) * 1.5);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .7s var(--e-out);
  }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); }
  .nav__link { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.1; letter-spacing: -.01em; border-bottom: 1px solid rgba(42,36,64,.14); padding-block: .35em; }
  .nav__link.mono { font-family: var(--f-display); font-size: clamp(2rem,9vw,3.4rem); letter-spacing: -.01em; }
  .nav__link::after { display: none; }
}

/* --------------------------------------------------------- 10. MARQUEE */
.mq { display: flex; width: max-content; will-change: transform; animation: mq var(--mq-dur, 26s) linear infinite; }
.mq:hover { animation-play-state: paused; }
.mq--rev { animation-direction: reverse; }
.mq__item { display: inline-flex; align-items: center; gap: 1.2em; padding-inline: .6em; white-space: nowrap; }
.mq__item::after { content: '✦'; opacity: .5; font-size: .7em; }
@keyframes mq { to { transform: translateX(-50%); } }
.mqband { overflow: hidden; overflow: clip; padding-block: var(--mq-pad); }
.mqband .mq__item { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.7rem, 5.2vw, 5rem); line-height: 1; letter-spacing: -.01em; }
.mqband--edge { border-block: 1.5px solid currentColor; }

/* ------------------------------------------------------------- 11. HERO */
.hero { position: relative; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; overflow: clip; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .3; }
.hero__glow--a { width: 46vw; height: 46vw; left: -12vw; top: -8vw; background: var(--blue); animation: float 17s ease-in-out infinite; }
.hero__glow--b { width: 36vw; height: 36vw; right: -8vw; bottom: -12vw; background: var(--pink); animation: float 21s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate3d(6%, 8%, 0) scale(1.12); } }

.hero__mark { position: absolute; inset: 0; display: grid; place-items: center; opacity: .16; }
.hero__mark svg { width: 120%; height: auto; }

.hero__inner { position: relative; z-index: 2; padding: clamp(2rem,5vh,5rem) var(--pad) clamp(2rem,4vh,4rem); width: 100%; }
.hero__ttl { font-size: var(--fs-mega); max-width: 15ch; }
.hero__ttl em { font-style: normal; color: var(--pink); }
.hero__sub { max-width: 34ch; margin-top: clamp(1.4rem, 3vh, 2.5rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.6rem, 3.5vh, 2.8rem); }

.hero__bags { position: absolute; z-index: 1; right: calc(var(--pad) * -.4); bottom: 0; width: min(58vw, 720px); pointer-events: none; }
.hero__bags img { width: 100%; filter: drop-shadow(0 40px 70px rgba(42,36,64,.24)); }
.hero__dots i { position: absolute; border-radius: 50%; }
.hero__scroll { position: relative; z-index: 2; display: flex; align-items: center; gap: .8em; padding: 0 var(--pad) clamp(1.2rem,3vh,2rem); }
.hero__scroll .ln { flex: 1; height: 1px; background: currentColor; opacity: .25; }
.hero__mouse { width: 20px; height: 32px; border-radius: 12px; box-shadow: inset 0 0 0 1.4px currentColor; position: relative; }
.hero__mouse::after { content: ''; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: currentColor; animation: wheel 1.7s var(--e-io) infinite; }
@keyframes wheel { 0%,100% { transform: translateY(0); opacity: 1 } 60% { transform: translateY(9px); opacity: 0 } }

@media (max-width: 900px) {
  .hero__bags { position: relative; right: auto; width: 92%; margin: clamp(1.5rem,4vh,3rem) auto -8%; }
  .hero__ttl { max-width: none; }
}

/* -------------------------------------------------- 12. FÓRMULA (filas) */
.formula__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--gap); margin-bottom: clamp(2rem,5vw,4rem); }
.formula__ttl { font-size: var(--fs-xl); max-width: 20ch; }
.frow {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: clamp(.7rem, 2vw, 1.5rem);
  border-top: 1.5px solid color-mix(in srgb, var(--theme-fg) 20%, transparent);
  cursor: pointer;
}
.frow:last-child { border-bottom: 1.5px solid color-mix(in srgb, var(--theme-fg) 20%, transparent); }
.frow__words { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .55em; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.5rem, 4.6vw, 4.2rem); line-height: 1; }
.frow__words span { transition: color .4s var(--e-out), transform .5s var(--e-out); }
.frow:hover .frow__words span { color: var(--theme-ac); transform: translateX(.12em); }
.frow__words span:nth-child(2) { transition-delay: .04s }
.frow__words span:nth-child(3) { transition-delay: .08s }
.frow__words span:nth-child(4) { transition-delay: .12s }
.frow__n { position: relative; z-index: 2; flex: none; text-align: right; }
.frow__prod { display: block; opacity: .52; margin-bottom: .35em; }
.frow__pic {
  position: absolute; z-index: 0; right: 8%; top: 50%;
  width: clamp(115px, 13vw, 205px); aspect-ratio: 1;
  transform: translate(0, -50%) scale(.7) rotate(-8deg);
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--e-out), transform .6s var(--e-out);
}
.frow__pic img { width: 100%; height: 100%; object-fit: contain; }
.frow:hover .frow__pic { opacity: .92; transform: translate(0, -50%) scale(1) rotate(4deg); }
@media (hover: none) { .frow__pic { display: none; } }

/* ------------------------------------------------ 13. LÍNEAS (sticky) */
.linea { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; overflow: clip; }
.linea__inner { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(4rem,9vh,8rem) var(--pad); width: 100%; }
.linea__kicker { display: block; margin-bottom: 1.4em; }
.linea__ttl { font-size: var(--fs-xxl); }
.linea__ttl .l2 { display: block; color: color-mix(in srgb, var(--theme-fg) 45%, transparent); }
.linea__txt { max-width: 44ch; margin-top: clamp(1rem,2.2vh,1.8rem); opacity: .82; }
.linea__specs { display: flex; flex-wrap: wrap; gap: clamp(1rem,3vw,2.8rem); margin-top: clamp(1.5rem,3.5vh,2.6rem); }
.linea__spec b { display: block; font-family: var(--f-display); font-size: clamp(1.9rem,3.6vw,3.4rem); line-height: 1; }
.linea__spec span { opacity: .6; }
.linea__cta { margin-top: clamp(1.6rem,3.5vh,2.6rem); display: flex; flex-wrap: wrap; gap: .7rem; }

.linea__stage { position: relative; display: grid; place-items: center; min-height: 46vh; }
.linea__ring { position: absolute; width: min(78%, 520px); aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--theme-fg) 12%, transparent); }
.linea__ring::after { content: ''; position: absolute; inset: 12%; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--theme-fg) 30%, transparent); }
.linea__word { position: absolute; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(4rem, 15vw, 13rem); line-height: 1; opacity: .13; letter-spacing: -.03em; white-space: nowrap; }
.linea__bag { position: relative; z-index: 2; width: min(74%, 460px); filter: drop-shadow(0 34px 55px rgba(42,36,64,.22)); }
.linea__flavors { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: clamp(1rem,2.5vh,2rem); }
.chip {
  padding: .55em 1em; border-radius: var(--r-pill);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1.3px color-mix(in srgb, var(--theme-fg) 32%, transparent);
  transition: background .3s, color .3s, transform .35s var(--e-back);
}
.chip:hover, .chip.is-on { background: var(--theme-fg); color: var(--theme-bg); transform: translateY(-3px); }

@media (max-width: 980px) {
  .linea__inner { grid-template-columns: minmax(0,1fr); }
  .linea__stage { order: -1; min-height: 40vh; }
}

/* --------------------------------------------- 14. SABORES (horizontal) */
.flavors { overflow: hidden; overflow: clip; }
.flavors__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--gap); padding-inline: var(--pad); margin-bottom: clamp(1.5rem,4vw,3rem); }
.flavors__track { display: flex; gap: var(--gap); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 1rem; }
.flavors__track::-webkit-scrollbar { display: none; }
.fcard {
  flex: 0 0 clamp(230px, 26vw, 340px);
  scroll-snap-align: center;
  border-radius: var(--r-xl);
  padding: clamp(1.2rem,2vw,2rem);
  background: var(--c, var(--blue));
  color: #fff;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .6s var(--e-out);
}
.fcard:hover { transform: translateY(-10px) rotate(-1.2deg); }
.fcard__pic { aspect-ratio: 1; display: grid; place-items: center; }
.fcard__pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--e-out); }
.fcard:hover .fcard__pic img { transform: scale(1.07) rotate(3deg); }
.fcard__ttl { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.4rem,2.4vw,2.2rem); line-height: .95; }
.fcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }

/* ------------------------------------------------------- 15. REELS */
.reels__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: var(--gap); align-items: start; }
.reel { position: relative; border-radius: var(--r-xl); overflow: hidden; overflow: clip; background: var(--carbon); aspect-ratio: 9/16; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__ov { position: absolute; inset: auto 0 0 0; padding: clamp(1rem,2vw,1.8rem); background: linear-gradient(transparent, rgba(42,36,64,.85)); color: #fff; }
.reel__ttl { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.3rem,2vw,1.9rem); line-height: .95; }
.reels__copy { align-self: center; }
.reels__ttl { font-size: var(--fs-xl); }

/* ---------------------------------------------- 16. TARJETA DE PRODUCTO */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--gap); }
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard__media {
  position: relative; border-radius: var(--r-xl); overflow: hidden; overflow: clip;
  background: var(--c-soft, var(--blue-pale));
  aspect-ratio: 1;
  display: grid; place-items: center;
  transition: background .5s ease;
}
.pcard__media::before {
  content: ''; position: absolute; inset: auto -20% -55% -20%;
  aspect-ratio: 1; border-radius: 50%;
  background: var(--c, var(--blue));
  opacity: .22;
  transform: translateY(30%) scale(.6);
  transition: transform .8s var(--e-out);
}
.pcard:hover .pcard__media::before { transform: translateY(6%) scale(1); }
.pcard__media img { position: relative; width: 78%; transition: transform .75s var(--e-out); }
.pcard:hover .pcard__media img { transform: scale(1.08) translateY(-2%) rotate(-2.5deg); }
.pcard__tag { position: absolute; top: .9rem; left: .9rem; z-index: 3; padding: .5em .9em; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.pcard__tag--off { background: var(--pink); }
.pcard__add {
  position: absolute; z-index: 3; inset: auto .8rem .8rem .8rem;
  display: flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em; border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .18em; text-transform: uppercase;
  transform: translateY(130%); opacity: 0;
  transition: transform .55s var(--e-out), opacity .4s;
}
.pcard:hover .pcard__add, .pcard:focus-within .pcard__add { transform: translateY(0); opacity: 1; }
.pcard__add:hover { background: var(--pink); }
.pcard__body { padding-top: 1rem; display: flex; flex-direction: column; gap: .3rem; }
/* El precio va nowrap y el nombre no baja de su palabra más larga, así que en
   nombres largos ("Creatina Monohidratada") la suma no cabía en la tarjeta y el
   precio se salía encima de la vecina. Con wrap el precio baja a su propia
   línea y margin-left lo mantiene a la derecha en los dos casos.
   El nombre lleva `width: min-content` a propósito: el salto de línea de flex se
   decide con el tamaño hipotético del ítem, así que con `auto` (max-content) el
   precio bajaba en 20 de 28 tarjetas aunque hubiera espacio. Con min-content
   solo baja cuando de verdad no cabe, y flex-grow le devuelve el sobrante. */
.pcard__line { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .1rem 1rem; }
.pcard__name { flex: 1 1 auto; width: min-content; font-family: var(--f-brand); font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; font-size: clamp(1rem,1.35vw,1.2rem); line-height: 1.1; }
.pcard__flav { opacity: .58; font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; }
.pcard__price { margin-left: auto; font-family: var(--f-display); font-size: clamp(1.15rem,1.7vw,1.5rem); white-space: nowrap; }
.pcard__was { text-decoration: line-through; opacity: .42; font-size: .82em; margin-right: .4em; font-family: var(--f-mono); }

/* ------------------------------------------------------------ 17. STATS */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,190px), 1fr)); gap: var(--gap); }
.stat { border-top: 1.5px solid color-mix(in srgb, var(--theme-fg) 22%, transparent); padding-top: 1.1rem; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(2.6rem, 6.5vw, 6rem); line-height: .88; }
.stat span { opacity: .6; }

/* ------------------------------------------------------- 18. MANIFIESTO */
.mani { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.5rem,4vw,5rem); align-items: center; }
.mani__ttl { font-size: var(--fs-xl); }
.mani__txt { display: grid; gap: 1em; max-width: 48ch; margin-top: clamp(1rem,2.5vh,2rem); opacity: .82; }
.mani__pic { border-radius: var(--r-xl); overflow: hidden; overflow: clip; aspect-ratio: 4/5; }
.mani__pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
@media (max-width: 860px) { .mani { grid-template-columns: minmax(0,1fr); } }

/* ---------------------------------------------------------- 19. SOCIAL */
.social__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,180px), 1fr)); gap: .6rem; }
.social__cell { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; overflow: clip; }
.social__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--e-out); }
.social__cell:hover img { transform: scale(1.09); }

/* ------------------------------------------------------ 20. NEWSLETTER */
.news { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.5rem,4vw,4rem); align-items: center; }
.news__ttl { font-size: var(--fs-xl); }
.field { display: flex; gap: .5rem; margin-top: clamp(1.2rem,3vh,2rem); flex-wrap: wrap; }
.field input {
  flex: 1 1 240px; min-width: 0;
  padding: 1.15em 1.4em; border-radius: var(--r-pill);
  background: transparent; border: 1.5px solid color-mix(in srgb, var(--theme-fg) 32%, transparent);
  font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .12em;
}
.field input::placeholder { color: color-mix(in srgb, var(--theme-fg) 45%, transparent); text-transform: uppercase; }
@media (max-width: 860px) { .news { grid-template-columns: minmax(0,1fr); } }

/* ---------------------------------------------------------- 21. FOOTER */
.foot { background: var(--mist); color: var(--ink); }
.foot__perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px), 1fr)); gap: var(--gap); padding: clamp(2rem,4vw,3rem) var(--pad); border-bottom: 1px solid rgba(42,36,64,.14); }
.perk b { display: block; font-family: var(--f-brand); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.perk span { opacity: .55; }
.foot__cols { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: var(--gap); padding: clamp(2.5rem,5vw,4rem) var(--pad); }
.foot__logo { width: clamp(150px,16vw,230px); }
.foot h4 { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .22em; text-transform: uppercase; opacity: .5; margin-bottom: 1.1em; font-weight: 400; }
.foot li + li { margin-top: .6em; }
.foot li a { opacity: .8; transition: opacity .3s, transform .3s var(--e-out); display: inline-block; max-width: 100%; }
.foot li a:hover { opacity: 1; transform: translateX(4px); }
.foot__wordmark { overflow: hidden; overflow: clip; padding-inline: var(--pad); border-top: 1px solid rgba(42,36,64,.14); }
.foot__wordmark span { display: block; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3.5rem, 19vw, 20rem); line-height: .78; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px rgba(42,36,64,.26); padding-block: .06em; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding: 1.5rem var(--pad) 2.2rem; opacity: .48; }
@media (max-width: 860px) { .foot__cols { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

/* ------------------------------------------------------ 22. CARRITO */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(42,36,64,.55); opacity: 0; pointer-events: none; transition: opacity .5s ease; -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px); }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; z-index: 95; top: 0; right: 0; bottom: 0;
  width: min(94vw, 440px);
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(101%);
  transition: transform .7s var(--e-out);
}
.cart.is-on { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.4rem 1rem; border-bottom: 1px solid var(--grey-line); }
.cart__x { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.4px var(--grey-line); display: grid; place-items: center; transition: background .3s, color .3s; }
.cart__x:hover { background: var(--ink); color: #fff; }
.cart__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; display: grid; gap: 1.1rem; align-content: start; }
.cart__empty { text-align: center; padding: 3rem 1rem; opacity: .55; }
.citem { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: .9rem; align-items: center; }
.citem__pic { border-radius: var(--r-lg); background: var(--blue-pale); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; overflow: clip; }
.citem__pic img { width: 84%; }
.citem__n { font-family: var(--f-brand); font-weight: 800; text-transform: uppercase; font-size: .92rem; line-height: 1.15; }
.citem__qty { display: inline-flex; align-items: center; gap: .5rem; margin-top: .45rem; }
.citem__qty button { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px var(--grey-line); display: grid; place-items: center; font-size: 13px; line-height: 1; }
.citem__qty button:hover { background: var(--ink); color: #fff; }
.citem__rm { opacity: .45; font-size: 11px; }
.citem__rm:hover { opacity: 1; color: var(--pink); }
.cart__foot { padding: 1.2rem 1.4rem 1.6rem; border-top: 1px solid var(--grey-line); display: grid; gap: .9rem; }
.cart__line { display: flex; justify-content: space-between; align-items: baseline; }
.cart__total { font-family: var(--f-display); font-size: 1.7rem; }
.cart__ship { padding: .8em 1em; border-radius: var(--r-lg); background: var(--blue-pale); color: #00293F; }
.cart__ship b { color: var(--blue-deep); }
.cart .btn { --theme-fg: var(--ink); --theme-bg: var(--paper); --theme-ac: var(--pink); justify-content: center; }
.cart__note { text-align: center; opacity: .45; }

/* --------------------------------------------- 23. PÁGINA: CATÁLOGO */
.phero { padding: clamp(3rem,7vh,6rem) var(--pad) var(--phero-pad-b); }
.phero__ttl { font-size: var(--fs-xxl); }
.crumbs { display: flex; gap: .6em; opacity: .55; margin-bottom: 1.4em; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: 0 var(--pad) clamp(1.5rem,3vw,2.5rem); }
.filters__set { display: flex; flex-wrap: wrap; gap: .5rem; }
.fbtn { padding: .8em 1.3em; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.4px color-mix(in srgb, var(--theme-fg) 24%, transparent); font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .16em; text-transform: uppercase; transition: background .35s, color .35s, transform .35s var(--e-back); }
.fbtn:hover { transform: translateY(-2px); }
.fbtn.is-on { background: var(--theme-fg); color: var(--theme-bg); box-shadow: none; }
.sortsel { padding: .8em 1.1em; border-radius: var(--r-pill); background: transparent; border: 1.4px solid color-mix(in srgb, var(--theme-fg) 24%, transparent); font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; }
.pcount { padding: 0 var(--pad) 1rem; opacity: .5; }

/* --------------------------------------------- 24. PÁGINA: PRODUCTO */
.pdp { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(1.5rem,4vw,4.5rem); padding: clamp(2rem,5vh,4rem) var(--pad) clamp(3rem,7vh,6rem); align-items: start; }
.pdp__stage { position: sticky; top: calc(var(--nav-h) + 1.5rem); border-radius: var(--r-xl); background: var(--c-soft, var(--blue-pale)); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; overflow: clip; }
.pdp__stage img { width: 80%; position: relative; z-index: 2; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2.5%) rotate(-1.5deg); } }
.pdp__halo { position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; background: var(--c, var(--blue)); opacity: .2; }
.pdp__ttl { font-size: var(--fs-xl); }
.pdp__price { display: flex; align-items: baseline; gap: .7rem; margin-block: clamp(1rem,2.5vh,1.6rem); }
.pdp__price b { font-family: var(--f-display); font-size: clamp(2rem,4vw,3.2rem); line-height: 1; }
.pdp__specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,110px),1fr)); gap: 1rem; padding-block: clamp(1.2rem,3vh,2rem); border-block: 1px solid color-mix(in srgb, var(--theme-fg) 16%, transparent); }
.pdp__specs b { display: block; font-family: var(--f-display); font-size: clamp(1.5rem,2.6vw,2.3rem); line-height: 1; }
.pdp__specs span { opacity: .55; }
.pdp__group { padding-block: clamp(1.2rem,3vh,1.8rem); }
.pdp__group h4 { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .2em; text-transform: uppercase; opacity: .5; font-weight: 400; margin-bottom: 1em; }
.pdp__flavs { display: flex; flex-wrap: wrap; gap: .45rem; }
.pdp__buy { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.qty { display: inline-flex; align-items: center; gap: .2rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.4px color-mix(in srgb, var(--theme-fg) 24%, transparent); }
.qty button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.qty button:hover { background: color-mix(in srgb, var(--theme-fg) 10%, transparent); }
.qty span { min-width: 2ch; text-align: center; font-family: var(--f-mono); }
.bens li { display: flex; gap: .8em; padding-block: .55em; border-bottom: 1px solid color-mix(in srgb, var(--theme-fg) 12%, transparent); }
.bens li::before { content: '→'; color: var(--theme-ac); flex: none; }
@media (max-width: 940px) { .pdp { grid-template-columns: minmax(0,1fr); } .pdp__stage { position: relative; top: 0; } }

/* --------------------------------------------- 25. PÁGINA: CONTACTO */
.cgrid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.5rem,4vw,4rem); }
.cform { display: grid; gap: .8rem; }
.cform label { display: grid; gap: .5em; }
.cform input, .cform textarea, .cform select {
  padding: 1.05em 1.2rem; border-radius: var(--r-lg);
  background: transparent; border: 1.5px solid color-mix(in srgb, var(--theme-fg) 24%, transparent);
}
.cform textarea { min-height: 130px; resize: vertical; }
.cinfo li { padding-block: 1.1rem; border-bottom: 1px solid color-mix(in srgb, var(--theme-fg) 16%, transparent); }
.cinfo b { display: block; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.3rem,2.4vw,2rem); line-height: 1; margin-top: .25em; }
@media (max-width: 860px) { .cgrid { grid-template-columns: minmax(0,1fr); } }

/* --------------------------------------- 26. ANIMACIONES DE ENTRADA */
[data-reveal] { opacity: 0; transform: translateY(clamp(20px, 4vh, 46px)); transition: opacity .9s var(--e-out), transform 1s var(--e-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

[data-clip] { clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--e-out); transition-delay: var(--d, 0s); }
[data-clip].in { clip-path: inset(0 0 0 0); }

[data-scale] { transform: scale(.86); opacity: 0; transition: transform 1.1s var(--e-out), opacity .8s ease; transition-delay: var(--d,0s); }
[data-scale].in { transform: none; opacity: 1; }

/* La palabra se enmascara para la animación de entrada. El padding agranda la
   máscara para que no rebane ascendentes ni descendentes, y el margen negativo
   lo cancela para no alterar el ritmo del renglón. */
.w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-block: .16em; margin-block: -.16em;
}
.w > i { display: inline-block; font-style: inherit; transform: translateY(105%) rotate(4deg); transition: transform 1.05s var(--e-out); transition-delay: var(--d, 0s); }
[data-split].in .w > i { transform: none; }

.ch { display: inline-block; opacity: 0; transform: translateY(.5em) scale(.9); transition: opacity .5s ease, transform .6s var(--e-back); transition-delay: var(--d,0s); }
[data-chars].in .ch { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], [data-clip], [data-scale], .w > i, .ch { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* --------------------------------------- 28. PÁGINAS DE CONTENIDO (legales) */
.doc {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 5vh, 4.5rem) var(--pad) clamp(4rem, 9vh, 8rem);
}
.doc__toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; min-width: 0; }
.doc__toc h4 {
  font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .2em;
  text-transform: uppercase; font-weight: 400; opacity: .5; margin-bottom: 1.2em;
}
.doc__toc nav { display: grid; }
.doc__toc a {
  padding: .55em 0 .55em 1em;
  border-left: 1.5px solid color-mix(in srgb, var(--theme-fg) 16%, transparent);
  opacity: .55; line-height: 1.3; font-size: .94em;
  transition: opacity .3s, border-color .3s, padding-left .3s var(--e-out);
}
.doc__toc a:hover { opacity: 1; padding-left: 1.35em; }
.doc__toc a.is-on { opacity: 1; border-color: var(--theme-ac); border-left-width: 2.5px; }

.doc__body { max-width: 70ch; min-width: 0; }
.doc__body > *:first-child { margin-top: 0; }
.doc__body h2 {
  font-family: var(--f-display); text-transform: uppercase; line-height: .92;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem); letter-spacing: -.01em;
  margin-top: 2.6em; padding-top: 1.1em;
  border-top: 1.5px solid color-mix(in srgb, var(--theme-fg) 16%, transparent);
}
.doc__body h3 {
  font-family: var(--f-brand); font-weight: 800; letter-spacing: -.015em;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.25; margin-top: 2em;
}
.doc__body p, .doc__body ul, .doc__body ol { margin-top: .95em; opacity: .86; }
.doc__body ul { display: grid; gap: .45em; }
.doc__body ul li { position: relative; padding-left: 1.3em; }
.doc__body ul li::before { content: '—'; position: absolute; left: 0; opacity: .45; }
.doc__body a[href] {
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: var(--theme-ac);
}
.doc__body strong { font-weight: 800; opacity: 1; }
.doc__note {
  margin-top: 1.4em; padding: 1.1em 1.3em; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--theme-fg) 6%, transparent);
  box-shadow: inset 0 0 0 1.4px color-mix(in srgb, var(--theme-fg) 12%, transparent);
  opacity: 1;
}
.doc__note p { margin-top: .5em; opacity: .8; }
.doc__note p:first-child { margin-top: 0; }
.doc__meta { margin-top: 2.5rem; opacity: .5; }

@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__toc { position: relative; top: 0; }
  .doc__toc nav { grid-auto-flow: column; grid-auto-columns: max-content; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
  .doc__toc nav::-webkit-scrollbar { display: none; }
  .doc__toc a {
    border-left: 0; padding: .7em 1.1em; white-space: nowrap;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1.4px color-mix(in srgb, var(--theme-fg) 16%, transparent);
  }
  .doc__toc a:hover { padding-left: 1.1em; }
  .doc__toc a.is-on { box-shadow: none; background: var(--theme-fg); color: var(--theme-bg); }
}

/* ============================================ 29. COMERCIO (Shopify) */

/* --- cajones genéricos: la bolsa ya usaba .cart, los nuevos comparten forma --- */
.drawer {
  position: fixed; z-index: 95; top: 0; right: 0; bottom: 0;
  width: min(94vw, 440px);
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(101%);
  transition: transform .7s var(--e-out);
}
.drawer.is-on { transform: none; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.4rem 1rem; border-bottom: 1px solid var(--grey-line);
}
.panel__body { flex: 1; overflow-y: auto; padding: 1.4rem; }
.panel__acciones { display: grid; gap: .6rem; }
.panel .btn { --theme-fg: var(--ink); --theme-bg: var(--paper); --theme-ac: var(--pink); justify-content: center; }

/* --- pestañas del panel de cuenta --- */
.tabs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .35rem; }
.tabs__b {
  padding: .95em .6em; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.4px var(--grey-line);
  font-family: var(--f-mono); font-size: var(--fs-mono);
  letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s, color .3s;
}
.tabs__b.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }

.form__err {
  padding: .85em 1em; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--pink) 12%, transparent);
  color: #7A0043; letter-spacing: .04em; line-height: 1.45;
}
.check { display: flex !important; align-items: flex-start; gap: .6em; cursor: pointer; }
.check input { width: 1.1em; height: 1.1em; margin-top: .15em; accent-color: var(--pink); flex: none; }
.check span { opacity: .8; }

/* --- botón de favorito --- */
.pcard__fav, .pdp__fav {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.4px color-mix(in srgb, var(--theme-fg) 26%, transparent);
  color: var(--theme-fg);
  transition: background .3s, color .3s, transform .4s var(--e-back);
}
.pcard__fav { position: absolute; top: .9rem; right: .9rem; z-index: 4; width: 38px; height: 38px;
  background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pcard__fav:hover, .pdp__fav:hover { transform: scale(1.1); }
.pcard__fav.is-on, .pdp__fav.is-on { background: var(--pink); color: #fff; box-shadow: none; }
.pcard__fav.is-on svg path, .pdp__fav.is-on svg path { fill: currentColor; }

/* --- valor de opción inexistente (p. ej. Café en 2.2 lb) --- */
.chip.is-off, .chip:disabled {
  opacity: .3; cursor: not-allowed; text-decoration: line-through;
}
.chip.is-off:hover, .chip:disabled:hover { background: none; color: inherit; transform: none; }

/* --- descripción que llega como HTML desde Shopify --- */
.pdp__rich h4 + p, .pdp__rich p { opacity: .82; margin-top: .8em; }
.pdp__rich ul { display: grid; gap: .4em; margin-top: .8em; }
.pdp__rich li { position: relative; padding-left: 1.3em; opacity: .82; }
.pdp__rich li::before { content: '→'; position: absolute; left: 0; color: var(--theme-ac); }
.pdp__rich h4 { margin-top: 1.6em; }

/* --- esqueletos mientras llega el catálogo --- */
@keyframes latido { 50% { opacity: .45; } }
.skel {
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--theme-fg) 8%, transparent);
  aspect-ratio: 1; animation: latido 1.4s ease-in-out infinite;
}
.skel--stage { aspect-ratio: 1; }
.skel--txt { aspect-ratio: auto; min-height: 26rem; border-radius: var(--r-lg); }

/* --- aviso flotante --- */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: 2rem;
  transform: translate(-50%, 160%);
  background: var(--ink); color: var(--mist);
  padding: 1em 1.6em; border-radius: var(--r-pill);
  box-shadow: 0 16px 40px rgba(42,36,64,.35);
  max-width: min(90vw, 30rem); text-align: center; line-height: 1.4;
  transition: transform .6s var(--e-out);
}
.toast.is-on { transform: translate(-50%, 0); }
.toast[data-tipo="err"] { background: var(--pink); color: #fff; }

body.is-busy { cursor: progress; }
body.is-busy .cart__body, body.is-busy .panel__body { opacity: .55; transition: opacity .2s; }

/* --- página de cuenta --- */
.cuenta__grid {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.5rem,5vh,4.5rem) var(--pad) clamp(4rem,9vh,8rem);
}
.cuenta__side { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; min-width: 0; }
.cuenta__vacia { padding: clamp(3rem,8vh,7rem) var(--pad); max-width: 60ch; }
/* Los datos del cliente (correo, dirección) no van en versalitas: se leen mal */
.cinfo--llano b {
  text-transform: none; font-family: var(--f-body); font-weight: 700;
  font-size: 1.02rem; line-height: 1.4; letter-spacing: 0;
}

.pedido {
  border: 1.5px solid color-mix(in srgb, var(--theme-fg) 14%, transparent);
  border-radius: var(--r-xl); padding: clamp(1.1rem,2.2vw,1.7rem);
}
.pedido + .pedido { margin-top: 1rem; }
.pedido__top {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,120px), 1fr));
  gap: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-fg) 12%, transparent);
}
.pedido__n { font-family: var(--f-display); font-size: 1.5rem; line-height: 1; margin-top: .2em; }
.pedido__arts { display: grid; gap: .55rem; padding-top: 1rem; }
.pedido__art { display: flex; align-items: center; gap: .7rem; }
.pedido__pic {
  width: 40px; height: 40px; flex: none; border-radius: 10px; overflow: hidden; overflow: clip;
  background: color-mix(in srgb, var(--theme-fg) 8%, transparent);
  display: grid; place-items: center;
}
.pedido__pic img { width: 86%; }

@media (max-width: 900px) {
  .cuenta__grid { grid-template-columns: minmax(0, 1fr); }
  .cuenta__side { position: relative; top: 0; }
}

/* --- botones de cuenta y favoritos en la barra --- */
.nav__icon {
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.05em; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.4px currentColor;
  transition: background .35s, color .35s;
}
.nav__icon:hover { background: var(--theme-fg); color: var(--theme-bg); }
.nav__icon .badge {
  min-width: 1.5em; height: 1.5em; display: grid; place-items: center;
  border-radius: 50%; background: var(--pink); color: #fff; font-size: 10px;
}
.nav__icon .ico, .nav__cart .ico { flex: none; }
.nav__cart { display: inline-flex; align-items: center; gap: .5em; }

/* En pantallas chicas se ocultan las etiquetas y quedan los iconos. El área de
   toque se fija en 44px: sin esto el botón de cuenta quedaba de 15px de ancho. */
@media (max-width: 620px) {
  .nav__icon .lbl, .nav__cart .lbl { display: none; }
  .nav__icon, .nav__cart {
    padding: 0; width: 44px; height: 44px;
    justify-content: center; gap: 0;
  }
  .nav__icon .badge, .nav__cart .nav__count {
    position: absolute; top: -2px; right: -2px;
    min-width: 1.35em; height: 1.35em; font-size: 9px;
    box-shadow: 0 0 0 2px var(--theme-bg);
  }
  .nav__cart { position: relative; }
  .nav__right { gap: .45rem; }
}

/* --------------------------------------------------------- 27. UTILS */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tor { display: inline-block; }
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.wa {
  position: fixed; z-index: 80; right: clamp(1rem,2.5vw,2rem); bottom: clamp(1rem,2.5vw,2rem);
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(42,36,64,.3);
  transition: transform .45s var(--e-back);
}
.wa:hover { transform: scale(1.12) rotate(6deg); }
