/* ==========================================================================
   BLORISHOP — hoja de estilos
   Tema claro: crema + azul cobalto + lima. Tipografía ancha (extended),
   esquinas muy redondeadas, catálogo tipo "bento" con tarjetas de colores.
   --------------------------------------------------------------------------
   Índice
     0. Tokens
     1. Reset y base
     2. Preloader (corredor + cortinas)
     3. Header flotante
     4. Controles
     5. Hero
     6. Cinta
     7. Catálogo (bento)
     8. Cómo pedir
     9. Footer, barra móvil, diálogo
    10. Keyframes y entrada
    11. Responsive
    12. Movimiento reducido
   ========================================================================== */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url('../fonts/figtree-latin-wght-normal.woff2') format('woff2'); }

/* ==========================================================================
   0. TOKENS
   ========================================================================== */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #ececea;
  --white: #ffffff;
  --ink: #0e1017;
  --ink-2: rgb(14 16 23 / .70);
  --ink-3: rgb(14 16 23 / .46);
  --line: rgb(14 16 23 / .12);
  --blue: #0e1017;          /* acento = negro (el nombre se conserva por compatibilidad) */
  --blue-hi: #3a3d46;
  --blue-deep: #000000;
  --lime: #ffffff;
  --sky: #d9d9d6;
  --peach: #f4f4f2;
  --gray: #8b8e96;

  --accent: #ffffff;

  --font-display: 'Archivo', 'Arial Black', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1rem, 3.6vw, 3rem);
  --header-h: 66px;
  --r-lg: 40px;
  --r-md: 26px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.76, 0, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* Titulares: tipografía ancha (extended) */
.wide { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; }

/* ==========================================================================
   1. RESET Y BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ol { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip {
  position: fixed; top: .6rem; left: .6rem; z-index: 400; padding: .6rem 1rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700;
  translate: 0 -200%; transition: translate .25s var(--ease-out);
}
.skip:focus { translate: 0 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ''; width: .62rem; height: .62rem; border-radius: 50%; background: var(--ink); }

.h2 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  line-height: .98; letter-spacing: -.03em;
  font-size: clamp(2.3rem, 6vw, 5rem);
}
.h2 em { font-style: normal; color: var(--gray); }

/* ==========================================================================
   2. PRELOADER — tres estrellas que se encienden + losetas
   Fondo negro. El logo aparece dentro de un anillo de texto giratorio y un
   aro blanco que se completa con --p (0 → 1, lo mueve el JS). Al llegar a
   100 (.is-out) el logo se agranda y se apaga, y las losetas negras se
   encogen girando desde el centro hacia los bordes (el JS les pone --d).
   ========================================================================== */
.pre { position: fixed; inset: 0; z-index: 300; pointer-events: none; --p: 0; color: #fff; }
.pre__tiles { position: absolute; inset: 0; display: grid; background: #0e1017; }
.pre__tiles.has-tiles { background: transparent; }
.pre__tiles i {
  display: block; margin: -.5px; background: #0e1017;
  transition: scale .6s var(--ease-inout), rotate .6s var(--ease-inout); transition-delay: calc(var(--d, 0) * 1ms + 450ms);
}
.pre.is-out .pre__tiles i { scale: 0; rotate: 90deg; }

.pre__ui { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: clamp(.8rem, 3vh, 1.6rem); transition: opacity .35s ease .1s, scale .6s var(--ease-inout); }
.pre.is-out .pre__ui { opacity: 0; scale: 1.18; }

.pre__stage { position: relative; display: grid; justify-items: center; gap: clamp(1.4rem, 4.5vh, 2.4rem); --b: .13; }
.pre__stage.l1 { --b: .42; } .pre__stage.l2 { --b: .72; } .pre__stage.l3 { --b: 1; }
.pre__halo { position: absolute; left: 50%; top: 40%; width: 170%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(255 255 255 / .12) 0, rgb(255 255 255 / .04) 30%, transparent 58%); opacity: 0; scale: .7; transition: opacity .7s ease, scale .9s var(--ease-out); }
.l1 .pre__halo { opacity: .35; scale: .8; } .l2 .pre__halo { opacity: .65; scale: .95; } .l3 .pre__halo { opacity: 1; scale: 1.1; }

.pre__badge { position: relative; width: min(62vw, 340px); aspect-ratio: 1; }
.pre__logo {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%;
  filter: brightness(var(--b)); transition: filter .6s var(--ease-out), box-shadow .6s var(--ease-out);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .18), 0 0 calc(var(--b) * 70px) rgb(255 255 255 / calc(var(--b) * .2));
  animation: logo-in 1s var(--ease-spring) .15s backwards;
}
.pre__flash { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1px rgb(255 255 255 / .7), 0 0 28px 2px rgb(255 255 255 / .4); opacity: 0; scale: .9; }
.l3 .pre__flash { animation: pre-flash 1s var(--ease-out) forwards; }

.pre__star { position: absolute; inset: 0; opacity: 0; pointer-events: none; transform-origin: var(--x) var(--y); scale: .35; }
.pre__star > img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 3px rgb(255 255 255 / .8)) drop-shadow(0 0 10px rgb(255 255 255 / .4)); opacity: .9; }
.pre__star .burst, .pre__star .rays { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; border-radius: 50%; opacity: 0; }
.pre__star .burst { width: 56%; aspect-ratio: 1; background: radial-gradient(circle, rgb(255 255 255 / .55) 0, rgb(255 255 255 / .22) 16%, transparent 58%); scale: .2; }
.pre__star .rays { width: 78%; aspect-ratio: 1; background: repeating-conic-gradient(from 0deg, rgb(255 255 255 / .5) 0 1deg, transparent 1.2deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 12%, transparent 62%); mask: radial-gradient(circle, #000 0, #000 12%, transparent 62%); scale: .3; }
.l1 .s1, .l2 .s2, .l3 .s3 { animation: star-on .85s var(--ease-spring) forwards; }
.l1 .s1 .burst, .l2 .s2 .burst, .l3 .s3 .burst { animation: star-burst .9s ease-out forwards; }
.l1 .s1 .rays, .l2 .s2 .rays, .l3 .s3 .rays { animation: star-rays 1s ease-out forwards; }
.l3 .pre__star { animation: star-on .85s var(--ease-spring) forwards, star-off .8s ease 1.2s forwards; }

.pre__cap { display: grid; justify-items: center; gap: .9rem; }
.pre__cap em { font: 700 .72rem/1 var(--font-display); font-style: normal; font-stretch: 125%; letter-spacing: .62em; padding-left: .62em; color: rgb(255 255 255 / .5); }
.pre__dots { display: flex; gap: .8rem; }
.pre__dots i { width: 14px; height: 14px; background: rgb(255 255 255 / .16); transition: background-color .4s, filter .4s, scale .5s var(--ease-spring);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.l1 .pre__dots i:nth-child(1), .l2 .pre__dots i:nth-child(-n+2), .l3 .pre__dots i { background: #fff; scale: 1.25; }
@keyframes star-on { 0% { opacity: 0; scale: .35; } 35% { opacity: 1; scale: 1.28; } 100% { opacity: 1; scale: 1; } }
@keyframes star-off { to { opacity: 0; } }
@keyframes star-burst { 0% { opacity: 0; scale: .2; } 25% { opacity: .7; } 100% { opacity: 0; scale: 1.5; } }
@keyframes star-rays { 0% { opacity: 0; scale: .3; rotate: 0deg; } 25% { opacity: .6; } 100% { opacity: 0; scale: 1.1; rotate: 40deg; } }
@keyframes pre-flash { 0% { opacity: 0; scale: .9; } 20% { opacity: 1; } 100% { opacity: 0; scale: 1.9; } }
body.is-ready .pre { animation: pre-gone 0s linear 2.2s forwards; }

/* ==========================================================================
   3. HEADER FLOTANTE (píldora)
   ========================================================================== */
.site-header {
  position: sticky; top: .8rem; z-index: 80;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem;
  height: var(--header-h); margin: .8rem var(--gutter) 0; padding: 0 .65rem 0 .7rem;
  background: rgb(255 255 255 / .78); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgb(255 255 255 / .9); border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgb(14 16 23 / .28), 0 0 0 1px var(--line);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-stuck { background: rgb(255 255 255 / .94); box-shadow: 0 16px 40px -16px rgb(14 16 23 / .38), 0 0 0 1px var(--line); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mono {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; background: var(--ink); color: #fff;
  font: 800 1.55rem/1 var(--font-display); font-stretch: 125%; letter-spacing: -.04em; transition: rotate .6s var(--ease-spring), border-radius .5s var(--ease-out);
}
.brand:hover .brand__mono { rotate: -8deg; border-radius: 50%; }
.brand__logo { flex: none; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); transition: rotate .6s var(--ease-spring); }
.brand:hover .brand__logo { rotate: -12deg; }
.brand__text { display: grid; line-height: 1.05; }
.brand__text strong { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: 1.12rem; letter-spacing: -.03em; }
.brand__text small { font-size: .72rem; color: var(--ink-3); }

.nav { display: flex; justify-content: center; gap: .2rem; }
.nav a {
  padding: .5rem 1rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-stretch: 105%; font-size: .9rem; color: var(--ink-2);
  transition: background-color .25s, color .25s;
}
.nav a:hover { background: var(--paper); color: var(--ink); }

/* ==========================================================================
   4. CONTROLES
   ========================================================================== */
.seg {
  position: relative; display: inline-grid; grid-template-columns: repeat(var(--n, 3), 1fr);
  padding: 4px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line);
}
.seg button {
  position: relative; z-index: 1; min-height: 38px; padding: 0 1.1rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: .82rem; color: var(--ink-2);
  transition: color .25s;
}
.seg button[aria-checked='true'] { color: #fff; }
.seg__thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px;
  width: calc((100% - 8px) / var(--n, 3)); background: var(--ink); translate: calc(var(--idx, 0) * 100%) 0;
  transition: translate .5s var(--ease-out);
}
.seg--sm { background: var(--paper); box-shadow: none; }
.seg--sm button { min-height: 30px; padding: 0 .75rem; font-size: .74rem; }

/* Botón principal: tinta + círculo lima con ícono */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 58px; padding: 0 1.7rem 0 .55rem; border-radius: 999px; background: var(--ink); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: .98rem; letter-spacing: -.01em;
  transition: background-color .3s, color .3s, translate .35s var(--ease-spring), box-shadow .3s;
}
.cta svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--lime); color: var(--ink); transition: rotate .5s var(--ease-spring); }
.cta:hover { background: #2b2e37; translate: 0 -3px; box-shadow: 0 14px 26px -12px rgb(14 16 23 / .6); }
.cta:hover svg { rotate: -14deg; }
.cta:active { translate: 0 0; }
.cta--sm { min-height: 46px; padding: 0 1.2rem 0 .4rem; font-size: .88rem; }
.cta--sm svg { width: 34px; height: 34px; padding: 8px; }
.cta--block { width: 100%; }

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.28fr) 92px;
  grid-template-areas: 'info stage rail';
  gap: clamp(1rem, 2.4vw, 2.2rem); align-items: stretch;
  padding: 1.4rem var(--gutter) 2.4rem;
  min-height: calc(100svh - var(--header-h) - 1.6rem);
}

/* --- Escenario: panel azul con anillos --- */
.stage {
  grid-area: stage; position: relative; z-index: 2;
  min-height: clamp(440px, 72vh, 780px);
  cursor: grab; touch-action: pan-y; user-select: none; perspective: 1200px;
}
.stage.is-dragging { cursor: grabbing; }
.stage__panel {
  position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 68% 22%, #4a4d55 0%, #1e2025 46%, #0a0a0c 100%);
  box-shadow: 0 40px 70px -40px rgb(0 0 0 / .8);
}
.stage__rings {
  position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 50% 60%, transparent 0 62px, rgb(255 255 255 / .09) 62px 64px);
  translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px); transition: translate .8s var(--ease-out);
}
.stage__glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 60%, rgb(255 255 255 / .24) 0, transparent 52%), radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--accent) 40%, transparent) 0, transparent 46%); opacity: .6; mix-blend-mode: screen; }
.stage__watermark {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; pointer-events: none; user-select: none;
  translate: calc(var(--px, 0) * 24px) calc(var(--py, 0) * 12px); transition: translate .8s var(--ease-out);
}
.stage__watermark span {
  display: block; max-width: 100%; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%; letter-spacing: -.05em; line-height: .8;
  font-size: clamp(5rem, 13vw, 12.5rem); color: transparent; -webkit-text-stroke: 2px rgb(255 255 255 / .3);
  translate: 0 -12%;
  transition: opacity .4s var(--ease-out), translate .6s var(--ease-out);
}
.stage__watermark.is-swapping span { opacity: 0; translate: 0 -2%; transition-duration: .22s; }

.counter {
  position: absolute; z-index: 5; left: 1.1rem; top: 1.1rem;
  display: inline-flex; align-items: baseline; gap: .3rem; padding: .45rem .95rem; border-radius: 999px; background: var(--lime); color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-variant-numeric: tabular-nums; font-size: .9rem;
}
.counter b { display: inline-block; min-width: 2ch; font-size: 1.1rem; }
.counter span { opacity: .6; }
.counter b.is-ticking { animation: tick .5s var(--ease-out); }
.seg--stage { position: absolute; z-index: 5; right: 1.1rem; top: 1.1rem; }

.shoe-wrap {
  --dirv: 1;
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 3;
  transition: transform .6s var(--ease-out), opacity .4s ease, filter .4s ease;
}
.shoe-wrap[data-dir='prev'] { --dirv: -1; }
.shoe-wrap.is-leaving {
  opacity: 0; filter: blur(6px);
  transform: translate(calc(var(--dirv) * -120px), -40px) rotate(calc(var(--dirv) * -12deg)) scale(.86);
  transition: transform .32s cubic-bezier(.6, 0, 1, .6), opacity .3s ease, filter .3s ease;
}
.shoe-wrap.is-entering {
  opacity: 0; filter: blur(6px); transition: none;
  transform: translate(calc(var(--dirv) * 140px), 50px) rotate(calc(var(--dirv) * 14deg)) scale(.86);
}
.shoe {
  width: min(88%, 680px); height: auto; max-height: 80%; object-fit: contain; margin-top: -3%;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(-7deg) translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 1));
  transition: transform .55s var(--ease-out);
  filter: drop-shadow(0 30px 24px rgb(0 0 0 / .6));
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}
.shoe-shadow {
  position: absolute; left: 22%; right: 22%; bottom: 17%; height: 5%; border-radius: 50%;
  background: rgb(0 0 0 / .6); filter: blur(14px); animation: floor-pulse 6s ease-in-out infinite;
}
.stage.is-dragging .shoe { transition: none; }

.stage__hint {
  position: absolute; z-index: 5; left: 1.2rem; bottom: 1.2rem; display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-stretch: 108%; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: rgb(255 255 255 / .85);
}
.stage__hint svg { width: 28px; animation: wobble 2.4s ease-in-out infinite; }

.arrows { position: absolute; right: 1.1rem; bottom: 1.1rem; display: flex; gap: .5rem; z-index: 5; }
.arrow {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: 0 10px 22px -10px rgb(0 0 0 / .6);
  transition: background-color .25s, color .25s, translate .35s var(--ease-spring);
}
.arrow svg { width: 22px; height: 22px; }
.arrow:hover { background: #d9d9d6; }
.arrow--prev:hover { translate: -3px 0; }
.arrow--next:hover { translate: 3px 0; }

/* --- Riel vertical de miniaturas --- */
.rail-wrap { grid-area: rail; position: relative; z-index: 3; min-height: 0; }
.rail {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: .6rem; padding: .3rem .2rem;
  overflow-y: auto; scrollbar-width: none; scroll-snap-type: y proximity;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.rail::-webkit-scrollbar { display: none; }
.rail button {
  position: relative; flex: none; width: 100%; aspect-ratio: 1; padding: 8px; scroll-snap-align: center;
  background: var(--white); border-radius: 24px; box-shadow: 0 0 0 1px var(--line); opacity: .75;
  transition: opacity .3s, box-shadow .3s, background-color .3s, scale .35s var(--ease-spring);
}
.rail button img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease-spring); }
.rail button:hover { opacity: 1; scale: 1.04; }
.rail button:hover img { transform: scale(1.1) rotate(-6deg); }
.rail button[aria-current='true'] { opacity: 1; background: var(--white); box-shadow: 0 0 0 3px var(--ink); }

/* --- Información (columna izquierda) --- */
.info { grid-area: info; position: relative; z-index: 3; display: grid; gap: .8rem; align-content: center; justify-items: start; padding: .4rem 0; }
.info__row { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .32rem .85rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: #fff;
}
.pill--stock { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.pill--stock::before { content: ''; width: 8px; height: 8px; background: #19c46a; border-radius: 50%; animation: ping 2s ease-out infinite; }

.title {
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; letter-spacing: -.035em;
  font-size: clamp(2rem, 3.3vw, 3.5rem); line-height: .98; margin-block: .1rem 0;
}
.title span { display: block; }
.title span:nth-child(2) { color: var(--gray); }
.colorway {
  display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .8rem .3rem .4rem; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line);
  font-family: var(--font-display); font-weight: 600; font-stretch: 108%; font-size: .86rem; color: var(--ink);
}
.colorway::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .6), 0 0 0 1px var(--line); flex: none; transition: background-color .5s; }
.desc { max-width: 42ch; color: var(--ink-2); font-size: .98rem; }

.panel {
  width: 100%; max-width: 480px; display: grid; gap: 1.1rem; margin-top: .4rem; padding: 1.1rem 1.1rem 1.2rem;
  background: var(--white); border-radius: var(--r-md); box-shadow: 0 24px 40px -28px rgb(14 16 23 / .5), 0 0 0 1px var(--line);
}
.sizes { display: grid; gap: .6rem; }
.sizes__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sizes__head > span { font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.sizes__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; }
.size {
  aspect-ratio: 1 / 1; max-height: 56px; width: 100%; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: .92rem; font-variant-numeric: tabular-nums;
  background: var(--paper); box-shadow: inset 0 0 0 1px transparent;
  transition: background-color .22s, color .22s, scale .3s var(--ease-spring), box-shadow .22s;
}
.size:hover { scale: 1.08; box-shadow: inset 0 0 0 2px var(--ink); }
.size[aria-checked='true'] { background: var(--ink); color: #fff; }
.size.is-flip { animation: flip .5s var(--ease-out) backwards; }

.buy { display: grid; gap: .8rem; }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: .9rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.price span { font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.price strong { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; letter-spacing: -.04em; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.note { font-size: .78rem; line-height: 1.4; color: var(--ink-3); }

/* ==========================================================================
   6. CINTA
   ========================================================================== */
.ticker { margin: 0 var(--gutter); height: 66px; display: flex; align-items: center; overflow: hidden; border-radius: 999px; background: var(--ink); color: #fff; rotate: -.8deg; }
.ticker__track { display: flex; flex: none; width: max-content; animation: marquee 40s linear infinite;
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: 1.25rem; letter-spacing: -.02em; }
.ticker__track span { display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; white-space: nowrap; }
.ticker__track span::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: #fff; }

/* ==========================================================================
   7. CATÁLOGO (bento)
   ========================================================================== */
.catalog { padding: clamp(3.4rem, 8vw, 6.5rem) var(--gutter) clamp(3rem, 7vw, 5.5rem); max-width: 1560px; margin-inline: auto; }
.catalog__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; margin-bottom: clamp(1.4rem, 3.5vw, 2.6rem); }
.catalog__title { display: grid; gap: .9rem; }
.catalog__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.catalog__count { font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: .85rem; color: var(--ink-3); }

.grid { counter-reset: card; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; grid-auto-rows: minmax(310px, auto); gap: clamp(.7rem, 1.3vw, 1.1rem); }
.card {
  --bg: var(--paper-2); --hov: var(--ink); --hovc: #fff; --txt: var(--ink); --chip: rgb(14 16 23 / .08);
  counter-increment: card;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: .2rem;
  padding: 1.15rem 1.15rem 1.05rem; border-radius: var(--r-md);
  background: var(--bg); color: var(--txt);
  transition: background-color .45s var(--ease-out), color .35s, translate .5s var(--ease-spring), box-shadow .4s;
}
.card:nth-child(5n+1) { --bg: var(--paper-2); }
.card:nth-child(5n+2) { --bg: radial-gradient(ellipse 70% 55% at 50% 62%, #666972 0%, #2a2c32 62%, #131418 100%); --txt: #fff; --hov: #fff; --hovc: var(--ink); --chip: rgb(255 255 255 / .16); }
.card:nth-child(5n+3) { --bg: var(--sky); }
.card:nth-child(5n+4) { --bg: var(--peach); box-shadow: inset 0 0 0 1px var(--line); }
.card:nth-child(5n+5) { --bg: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.card:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; padding: 1.5rem 1.5rem 1.3rem; }
.card::before {                                    /* número de orden */
  content: counter(card, decimal-leading-zero);
  position: absolute; right: 1.1rem; top: 1rem; z-index: 2;
  font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: .78rem; letter-spacing: .02em; opacity: .55;
}
.card::after {                                     /* círculo que crece al pasar el cursor */
  content: ''; position: absolute; z-index: -1; left: 50%; top: 56%; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: var(--hov); translate: -50% -50%; scale: 0; transition: scale .6s var(--ease-out);
}
.card h3 { max-width: 78%; font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: 1.12rem; line-height: 1.02; letter-spacing: -.03em; }
.card__color { align-self: start; justify-self: start; margin-top: .45rem; padding: .18rem .65rem; border-radius: 999px; background: var(--chip); font-size: .74rem; font-weight: 600; transition: background-color .3s; }
.card__img {
  align-self: center; justify-self: center; width: 118%; max-width: none; aspect-ratio: 4 / 3; object-fit: contain; margin-block: -.4rem;
  rotate: -9deg; filter: drop-shadow(0 18px 14px rgb(14 16 23 / .28)); transition: transform .6s var(--ease-spring), rotate .6s var(--ease-spring);
}
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.card__price { padding: .4rem .85rem; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .25); font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: .9rem; font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s; }
.card__go { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); transition: rotate .5s var(--ease-spring), background-color .3s; }
.card__go svg { width: 18px; height: 18px; }

.card:nth-child(7n+1) h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); max-width: 70%; }
.card:nth-child(7n+1) .card__img { width: 108%; margin-block: -.4rem; }
.card:nth-child(7n+1) .card__price { font-size: 1.15rem; padding: .55rem 1.1rem; }
.card:nth-child(7n+1) .card__go { width: 52px; height: 52px; }

.card:hover { translate: 0 -6px; box-shadow: 0 26px 40px -26px rgb(14 16 23 / .55); color: var(--hovc); }
.card:hover::after { scale: 1; }
.card:hover .card__img { transform: scale(1.08) translateY(-6px); rotate: -3deg; }
.card:hover .card__color { background: color-mix(in srgb, var(--hovc) 18%, transparent); }
.card:hover .card__price { background: var(--hovc); color: var(--hov); box-shadow: none; }
.card:hover .card__go { rotate: -45deg; background: var(--hovc); color: var(--hov); }
.card[aria-current='true'] { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px #fff; }

/* Entrada al hacer scroll */
.reveal { opacity: 0; translate: 0 40px; scale: .96; transition: opacity .7s var(--ease-out), translate .8s var(--ease-out), scale .8s var(--ease-out), background-color .45s var(--ease-out), color .35s, box-shadow .4s; transition-delay: calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), 0s, 0s, 0s; }
.reveal.is-in { opacity: 1; translate: 0 0; scale: 1; }
.card.reveal.is-in { transition-delay: calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), 0s, 0s, 0s; }
.card.reveal.is-in:hover { translate: 0 -6px; }

/* ==========================================================================
   8. CÓMO PEDIR (bloque oscuro redondeado)
   ========================================================================== */
.how {
  position: relative; margin: 0 var(--gutter); padding: clamp(2.4rem, 6vw, 5rem) clamp(1.3rem, 4vw, 4rem);
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  background: var(--ink); color: #fff; border-radius: var(--r-lg); overflow: hidden;
}
.how::after { content: ''; position: absolute; right: -8%; top: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .16), transparent 66%); pointer-events: none; }
.how__head { position: relative; z-index: 1; display: grid; gap: 1rem; justify-items: start; max-width: 40rem; }
.how__head .eyebrow { color: #fff; }
.how__head .eyebrow::before { background: #fff; }
.how__head p { color: rgb(255 255 255 / .7); }
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.2rem); }
.step {
  display: grid; align-content: start; gap: .5rem; padding: 1.4rem 1.4rem 1.6rem; border-radius: var(--r-md);
  background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
  transition: background-color .35s, translate .5s var(--ease-spring);
}
.step:hover { background: rgb(255 255 255 / .13); }
.step__n {
  width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border-radius: 50%; margin-bottom: .7rem;
  background: #fff; color: var(--ink); font: 800 1.5rem/1 var(--font-display); font-stretch: 125%;
}
.step h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -.03em; line-height: 1.05; }
.step p { color: rgb(255 255 255 / .68); font-size: .95rem; }

/* ==========================================================================
   9. FOOTER, BARRA MÓVIL, DIÁLOGO
   ========================================================================== */
.footer { position: relative; overflow: hidden; padding: clamp(2.4rem, 5vw, 4rem) var(--gutter) 0; }
.footer__inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__brand strong { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1; }
.footer__brand small { color: var(--ink-3); }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.footer__links a { font-family: var(--font-display); font-weight: 600; font-stretch: 108%; font-size: .9rem; border-bottom: 2px solid var(--line); padding-bottom: 2px; transition: border-color .25s; }
.footer__links a:hover { border-color: var(--ink); }
.footer__giant {
  position: relative; z-index: 1; margin: clamp(1.4rem, 4vw, 3rem) 0 0; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%; letter-spacing: -.06em; line-height: .76;
  font-size: clamp(3rem, 15.2vw, 20rem); color: var(--ink); translate: 0 14%;
}

/* Barra de pedido móvil */
.dock {
  position: fixed; left: .7rem; right: .7rem; bottom: calc(.7rem + env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: .7rem; padding: .5rem .5rem .5rem .9rem; border-radius: 999px;
  background: rgb(255 255 255 / .92); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -14px rgb(14 16 23 / .5), 0 0 0 1px var(--line);
  translate: 0 160%; transition: translate .5s var(--ease-out);
}
.dock.is-visible { translate: 0 0; }
.dock img { width: 54px; height: 40px; object-fit: contain; flex: none; }
.dock__text { display: grid; min-width: 0; flex: 1; line-height: 1.15; }
.dock__text strong { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: .92rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__text span { font-size: .74rem; color: var(--ink-3); }
.dock .cta { padding: 0 1.3rem; }

/* Diálogo de encargo */
.order { margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); width: min(94vw, 460px); max-height: 94dvh; overflow: visible; }
.order::backdrop { background: rgb(14 16 23 / .62); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.order.is-open::backdrop { opacity: 1; }
.order__panel {
  position: relative; display: grid; gap: .95rem; padding: 1.5rem 1.4rem 1.4rem; border-radius: var(--r-lg);
  background: var(--paper); box-shadow: 0 40px 80px -30px rgb(14 16 23 / .7);
  opacity: 0; translate: 0 40px; scale: .96; transition: opacity .3s, translate .5s var(--ease-spring), scale .5s var(--ease-spring);
}
.order.is-open .order__panel { opacity: 1; translate: 0 0; scale: 1; }
.order__close { position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; transition: rotate .4s var(--ease-spring), background-color .2s; }
.order__close svg { width: 18px; height: 18px; }
.order__close:hover { rotate: 90deg; background: var(--ink); color: #fff; }
.order__shoe { height: 150px; display: grid; place-items: center; border-radius: var(--r-md); background: radial-gradient(ellipse 80% 90% at 50% 40%, #50535b, #15161a 75%); }
.order__shoe img { height: auto; max-height: 124px; width: auto; max-width: 80%; object-fit: contain; rotate: -7deg; filter: drop-shadow(0 14px 12px rgb(0 0 0 / .6)); }
.order h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; letter-spacing: -.035em; font-size: 1.7rem; line-height: 1; }
.order__lead { color: var(--ink-2); margin-top: -.5rem; }
.order__rows { display: grid; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.order__rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; }
.order__rows > div + div { border-top: 1px dashed var(--line); }
.order__rows dt { font-family: var(--font-display); font-weight: 700; font-stretch: 108%; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; color: var(--ink-3); align-self: center; }
.order__rows dd { font-weight: 700; text-align: right; }
.field { display: grid; gap: .4rem; font-family: var(--font-display); font-weight: 700; font-stretch: 108%; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; color: var(--ink-2); }
.field input { min-height: 52px; padding: 0 1.1rem; border-radius: 999px; background: #fff; border: 0; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; text-transform: none; transition: box-shadow .2s; }
.field input:focus { outline: 0; box-shadow: 0 0 0 3px var(--ink); }

/* ==========================================================================
   10. KEYFRAMES Y ENTRADA
   ========================================================================== */
@keyframes spin { to { rotate: 360deg; } }
@keyframes logo-in { from { opacity: 0; scale: .5; rotate: -24deg; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes pre-gone { to { visibility: hidden; } }
@keyframes marquee { to { translate: -33.333% 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes floor-pulse { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .8 .9; opacity: .6; } }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 50% { rotate: 14deg; } }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px rgb(25 196 106 / 0); } }
@keyframes tick { from { translate: 0 60%; opacity: 0; } }
@keyframes flip { 0% { rotate: x 90deg; opacity: 0; } 100% { rotate: x 0deg; opacity: 1; } }

@keyframes panel-in { from { clip-path: inset(100% 0 0 0 round 40px); } to { clip-path: inset(0 0 0 0 round 40px); } }
@keyframes shoe-drop { 0% { opacity: 0; transform: translateY(-120px) rotate(-18deg) scale(.8); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; scale: .4; } }
@keyframes rise-down { from { opacity: 0; translate: 0 -22px; } }
@keyframes rise-up { from { opacity: 0; translate: 0 28px; } }
@keyframes swap-in { from { opacity: 0; translate: 0 18px; } }
@keyframes line-up { from { opacity: 0; translate: 0 60%; clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20% 0); } }

/* Estado inicial (mientras carga) */
body.is-loading .site-header, body.is-loading .stage__panel, body.is-loading .shoe-wrap, body.is-loading .counter,
body.is-loading .seg--stage, body.is-loading .arrows, body.is-loading .stage__hint, body.is-loading .rail-wrap { opacity: 0; }

body.is-ready .site-header   { animation: rise-down .8s var(--ease-out) 1s backwards; }
body.is-ready .stage__panel  { animation: panel-in 1.1s var(--ease-inout) .85s backwards; }
body.is-ready .shoe-wrap     { animation: shoe-drop 1s var(--ease-spring) 1.5s backwards; }
body.is-ready .counter, body.is-ready .seg--stage { animation: pop-in .6s var(--ease-spring) 1.7s backwards; }
body.is-ready .arrows, body.is-ready .stage__hint { animation: fade-in .7s ease 1.9s backwards; }
body.is-ready .rail-wrap     { animation: rise-up .9s var(--ease-out) 1.4s backwards; }

/* Texto del producto: se reanima en cada cambio de modelo (JS alterna .is-in) */
.info:not(.is-in) [data-swap], .info:not(.is-in) .title span { opacity: 0; }
.info.is-in [data-swap] { animation: swap-in .6s var(--ease-out) calc(var(--d, 0ms) + var(--i, 0) * 70ms) backwards; }
.info.is-in .title span { animation: line-up .75s var(--ease-out) calc(var(--d, 0ms) + 140ms + var(--l, 0) * 110ms) backwards; }

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'stage' 'rail' 'info'; min-height: 0; gap: .9rem; padding-top: 1rem; }
  .stage { min-height: 0; height: clamp(330px, 88vw, 560px); }
  .shoe { width: min(92%, 520px); }
  .rail-wrap { height: 78px; }
  .rail { flex-direction: row; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding: .2rem .3rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .rail button { width: auto; height: 100%; border-radius: 20px; }
  .info { padding: 1rem 0 .6rem; justify-items: stretch; }
  .panel { max-width: none; }
  .title { font-size: clamp(2.1rem, 8.4vw, 3.4rem); }
  .steps { grid-template-columns: 1fr; }
  .step { grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
  .step__n { grid-row: span 2; margin: 0; }
}
@media (max-width: 700px) {
  :root { --header-h: 60px; --r-lg: 30px; --r-md: 22px; }
  .site-header { margin-top: .6rem; top: .6rem; }
  .cta--head span { display: none; }
  .cta--head { padding: 0; width: 46px; justify-content: center; }
  .cta--head svg { width: 46px; height: 46px; padding: 12px; }
  .brand__mono, .brand__logo { width: 46px; height: 46px; }
  .stage__watermark span { font-size: clamp(4rem, 24vw, 9rem); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(260px, auto); }
  .card { padding: .95rem .85rem .85rem; }
  .card:nth-child(7n+1) { grid-column: span 2; grid-row: span 1; padding: 1.1rem; }
  .card:nth-child(7n+1) h3 { font-size: 1.4rem; }
  .card h3 { font-size: .98rem; max-width: 100%; }
  .card::before { display: none; }
  .card__img { width: 124%; }
  .card__price { font-size: .8rem; padding: .35rem .7rem; }
  .card__go { width: 36px; height: 36px; }
  .ticker { height: 54px; }
  .ticker__track { font-size: 1rem; }
  .how { margin-inline: .7rem; }
  .footer { padding-bottom: 5.8rem; }
  .sizes__grid { gap: .3rem; }
  .size { font-size: .84rem; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .card:nth-child(7n+1) { grid-column: auto; }
}
@media (min-width: 1001px) { .dock { display: none; } }

/* ==========================================================================
   12. MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none !important; }
}

@media (max-width: 700px) {
  .counter { left: .7rem; top: .7rem; padding: .35rem .7rem; font-size: .78rem; }
  .counter b { font-size: .95rem; }
  .seg--stage { right: .7rem; top: .7rem; padding: 3px; }
  .seg--stage button { min-height: 32px; padding: 0 .62rem; font-size: .72rem; }
  .seg--stage .seg__thumb { top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); }
}
