/* ==========================================================================
   LOUCS STORE — hoja de estilos
   --------------------------------------------------------------------------
   Índice
     0. Tokens y propiedades registradas
     1. Reset y base
     2. Utilidades y foco
     3. Preloader
     4. Header
     5. Controles (segmentados, botones, CTA)
     6. Hero: marca de agua, escenario, riel, información
     7. Banda
     8. Catálogo
     9. Cómo pedir
    10. Footer
    11. Barra móvil de pedido
    12. Diálogo de encargo
    13. Coreografía de entrada y keyframes
    14. Cambio de tema (View Transitions)
    15. Responsive
    16. Movimiento reducido
   ========================================================================== */


/* ==========================================================================
   FUENTES (autoalojadas: la página funciona sin conexión)
   Archivo — variable en peso y ANCHO (62–125%): permite los titulares anchos
   en cursiva y los nombres condensados con una sola familia.
   Figtree — variable en peso, para texto corrido e interfaz.
   ========================================================================== */
@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: 'Archivo'; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../fonts/archivo-latin-wdth-italic.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 Y PROPIEDADES REGISTRADAS
   ========================================================================== */

/* Registrar --accent como <color> permite animar el cambio de color entre
   zapatillas: el brillo, el anillo y los detalles se funden en vez de saltar. */
@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #8f9bb3;
}
/* Ángulo animable para el borde giratorio del botón de WhatsApp. */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: dark;

  /* Color — tema oscuro (por defecto) */
  --bg-0: #0a0a0a;
  --bg-1: #1a1a1a;
  --ink: #f4f3f0;
  --ink-2: rgb(244 243 240 / .68);
  --ink-3: rgb(244 243 240 / .42);
  --on-ink: #0a0a0a;
  --line: rgb(255 255 255 / .16);
  --line-strong: rgb(255 255 255 / .42);
  --glass: rgb(255 255 255 / .045);
  --glass-2: rgb(255 255 255 / .09);
  --watermark: rgb(255 255 255 / .05);
  --floor: rgb(0 0 0 / .95);
  --shoe-shadow: rgb(0 0 0 / .6);
  --glow-strength: .85;
  --red: #e10600;
  --wa: #25d366;
  --wa-ink: #04210f;

  /* Acento: lo reemplaza JS con el color de cada zapatilla */
  --accent: #8f9bb3;
  --accent-ink: color-mix(in srgb, var(--accent) 72%, var(--ink));

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

  /* Escala de espacio y radios */
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --header-h: 76px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;

  /* Curvas de animación */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);

  transition: --accent .9s var(--ease-out);
}

/* Tema claro: conserva el beige original de la tienda */
[data-theme='light'] {
  color-scheme: light;
  --bg-0: #eae7df;
  --bg-1: #f8f6f0;
  --ink: #121212;
  --ink-2: rgb(18 18 18 / .66);
  --ink-3: rgb(18 18 18 / .42);
  --on-ink: #f4f3f0;
  --line: rgb(18 18 18 / .14);
  --line-strong: rgb(18 18 18 / .4);
  --glass: rgb(255 255 255 / .55);
  --glass-2: rgb(255 255 255 / .85);
  --watermark: rgb(0 0 0 / .045);
  --floor: rgb(0 0 0 / .42);
  --shoe-shadow: rgb(0 0 0 / .32);
  --glow-strength: .5;
}


/* ==========================================================================
   1. RESET Y BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: radial-gradient(ellipse 90% 70% at 28% 18%, var(--bg-1) 0%, var(--bg-0) 72%) fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
main { overflow-x: clip; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--bg-0); }


/* ==========================================================================
   2. UTILIDADES Y FOCO
   ========================================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  padding: .7rem 1rem; border-radius: var(--r-sm);
  background: var(--ink); color: var(--on-ink); font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip:focus { top: 1rem; }

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


/* ==========================================================================
   3. PRELOADER
   ========================================================================== */

.preloader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--bg-0);
  pointer-events: none;
  transition: translate .95s var(--ease-inout) .1s, visibility 0s linear 1.1s;
}
.is-ready .preloader { translate: 0 -100%; visibility: hidden; }

.preloader__inner { display: grid; justify-items: center; gap: clamp(1rem, 3vh, 1.8rem); translate: 0 -3vh; }
.preloader__logo {
  width: clamp(130px, 26vw, 210px); height: auto; border-radius: 50%;
  opacity: 0; scale: .45; rotate: -14deg;
  filter: drop-shadow(0 0 34px rgb(155 92 255 / .5));
  animation:
    logo-in 1s var(--ease-spring) .05s forwards,
    logo-glow 2.4s ease-in-out 1.05s infinite;
}
.preloader__word {
  display: flex; gap: .03em;
  font-family: var(--font-display);
  font-weight: 900; font-style: italic; font-stretch: 125%;
  font-size: clamp(1.7rem, 6.4vw, 3.9rem);
  letter-spacing: .02em;
  overflow: hidden;
  padding: 0 .05em .12em;
}
.preloader__word span {
  display: inline-block;
  translate: 0 115%;
  animation: letter-rise .8s var(--ease-out) calc(.5s + var(--i) * 60ms) forwards;
}
.preloader__word .dot { color: #9b5cff; }
.preloader__bar {
  position: absolute; left: 50%; bottom: 18vh; translate: -50% 0;
  width: min(220px, 50vw); height: 2px; background: var(--line); overflow: hidden;
}
.preloader__bar::after {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  transform-origin: left; transform: scaleX(0);
  animation: bar-load 1.7s var(--ease-inout) .2s forwards;
}


/* ==========================================================================
   4. HEADER
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg-0) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}

.brand { display: flex; align-items: center; gap: .75rem; }
.brand__logo {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 1px var(--line), 0 6px 18px -6px rgb(155 92 255 / .55);
  transition: rotate .6s var(--ease-spring), scale .3s var(--ease-out), box-shadow .4s;
}
.brand:hover .brand__logo { rotate: -10deg; scale: 1.08; box-shadow: 0 0 0 1px var(--line-strong), 0 10px 26px -6px rgb(155 92 255 / .8); }
.brand__text { display: grid; line-height: 1.1; }
.brand__text strong {
  font-family: var(--font-display); font-weight: 900; font-stretch: 118%;
  font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase;
}
.brand__text small { font-size: .74rem; color: var(--ink-3); font-weight: 500; }

.nav { display: flex; gap: clamp(1rem, 2.6vw, 2.2rem); }
.nav a {
  position: relative; padding: .4rem 0;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent-ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.tools { display: flex; align-items: center; gap: .6rem; }


/* ==========================================================================
   5. CONTROLES
   ========================================================================== */

/* --- Control segmentado con indicador que se desliza ---------------------- */
.seg {
  --n: 3; --idx: 0;
  position: relative;
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.seg button {
  position: relative; z-index: 1;
  padding: .48rem .95rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; white-space: nowrap;
  color: var(--ink-2);
  transition: color .3s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-checked='true'] { color: var(--on-ink); }
.seg__thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / var(--n));
  border-radius: 999px; background: var(--ink);
  translate: calc(var(--idx) * 100%) 0;
  transition: translate .55s var(--ease-spring);
}
.seg--sm button { padding: .32rem .7rem; font-size: .72rem; }

/* --- Botón de ícono (tema) ------------------------------------------------ */
.icon-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .3s, rotate .6s var(--ease-spring), background-color .3s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--glass-2); rotate: 24deg; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .i-sun { display: none; }
[data-theme='light'] .icon-btn .i-sun { display: block; }
[data-theme='light'] .icon-btn .i-moon { display: none; }

/* --- Flechas del escenario ------------------------------------------------ */
.arrow {
  position: absolute; top: 46%; z-index: 5;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .45s var(--ease-spring), border-color .3s, background-color .3s;
}
.arrow svg { width: 20px; height: 20px; transition: translate .35s var(--ease-out); }
.arrow--prev { left: 0; }
.arrow--next { right: 0; }
.arrow:hover { border-color: var(--line-strong); background: var(--glass-2); transform: scale(1.1); }
.arrow--prev:hover svg { translate: -3px 0; }
.arrow--next:hover svg { translate: 3px 0; }
.arrow:active { transform: scale(.92); }

/* --- CTA WhatsApp: borde cónico que gira + respiración -------------------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.05rem 1.6rem; border-radius: 999px;
  background: var(--wa); color: var(--wa-ink);
  font-weight: 800; font-size: 1rem; letter-spacing: .01em;
  box-shadow: 0 14px 34px -12px rgb(37 211 102 / .7);
  transition: transform .4s var(--ease-spring), box-shadow .4s;
  animation: cta-breathe 3.4s ease-in-out infinite;
}
.cta::before {                       /* destello giratorio en el borde */
  content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 0 62%, rgb(255 255 255 / .95) 82%, transparent 100%);
  animation: spin-angle 3.2s linear infinite;
}
.cta::after {                        /* relleno: deja visible solo 2px del destello */
  content: ''; position: absolute; inset: 2px; z-index: -1; border-radius: inherit;
  background: linear-gradient(135deg, #2be06e, var(--wa) 55%, #1ebe5a);
}
.cta svg { width: 22px; height: 22px; flex: none; transition: rotate .5s var(--ease-spring); }
.cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 22px 44px -12px rgb(37 211 102 / .85); }
.cta:hover svg { rotate: -14deg; }
.cta:active { transform: translateY(0) scale(.97); }
.cta--sm { padding: .75rem 1.15rem; font-size: .9rem; animation: none; }
.cta--block { width: 100%; }


/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .72fr);
  grid-template-areas: 'stage info' 'rail info';
  column-gap: clamp(1.5rem, 4vw, 4.5rem);
  row-gap: .6rem;
  align-items: center;
  padding: .5rem var(--gutter) 3.5rem;
  min-height: calc(100svh - var(--header-h));
  overflow: clip;
}

/* --- Marca de agua gigante ------------------------------------------------ */
.hero__watermark {
  position: absolute; inset: 0; z-index: 0;
  display: grid; align-items: center;
  pointer-events: none; user-select: none;
  overflow: hidden;
  translate: calc(var(--px, 0) * -34px) calc(var(--py, 0) * -18px);
  transition: translate .8s var(--ease-out);
}
.hero__watermark span {
  display: block;
  font-family: var(--font-display);
  font-weight: 900; font-style: italic; font-stretch: 125%;
  font-size: clamp(7rem, 21vw, 21rem);
  line-height: .8; letter-spacing: -.02em; text-transform: uppercase;
  white-space: nowrap; color: var(--watermark);
  margin-top: -12vh;
  padding-left: 1vw;
  transition: opacity .5s var(--ease-out), translate .8s var(--ease-out), filter .5s;
}
.hero__watermark.is-swapping span { opacity: 0; translate: -4% 0; filter: blur(8px); transition-duration: .25s; }

/* --- Escenario ------------------------------------------------------------ */
.stage {
  grid-area: stage;
  position: relative; z-index: 2;
  height: clamp(380px, 66vh, 720px);
  cursor: grab; touch-action: pan-y; user-select: none;
  perspective: 1200px;
}
.stage.is-dragging { cursor: grabbing; }

.stage__glow {                         /* resplandor del color de la zapatilla */
  position: absolute; inset: 4% 10% 12%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 70%, transparent), transparent 72%);
  filter: blur(34px); opacity: var(--glow-strength);
  animation: breathe 7s ease-in-out infinite;
}

/* Anillo en el piso (elipse) + destello orbitando */
.stage__ring {
  position: absolute; left: 3%; right: 3%; bottom: 3%; height: 19%;
  color: var(--ink); overflow: visible;
}
.ring { fill: none; vector-effect: non-scaling-stroke; }
.ring--base  { stroke: url(#ringGrad); stroke-width: 1.5; }
.ring--outer { stroke: url(#ringGrad); stroke-width: 1; opacity: .32; }
.ring--glint {
  stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: .07 .93;
  filter: drop-shadow(0 0 6px var(--accent));
  animation: orbit 5.5s linear infinite;
}

.stage__floor {                        /* sombra difusa bajo la zapatilla */
  position: absolute; left: 50%; bottom: 10%; z-index: 1;
  width: 66%; height: 8%; translate: -50% 0;
  background: radial-gradient(ellipse at center, var(--floor), transparent 70%);
  filter: blur(12px);
  animation: floor-pulse 6s ease-in-out infinite;
}

/* Contenedor que se anima al cambiar de modelo (entra / sale) */
.shoe-wrap {
  position: absolute; inset: 0 0 18%; z-index: 3;
  display: grid; place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  transition: transform .75s var(--ease-spring), opacity .4s var(--ease-out), filter .4s var(--ease-out);
  will-change: transform, opacity, filter;
}
.shoe-wrap.is-leaving { opacity: 0; filter: blur(10px); transform: translateX(-12%) scale(.84) rotate(-6deg); transition-duration: .3s, .26s, .26s; }
.shoe-wrap.is-leaving[data-dir='prev'] { transform: translateX(12%) scale(.84) rotate(6deg); }
.shoe-wrap.is-entering { transition: none; opacity: 0; filter: blur(12px); transform: translateX(14%) scale(.8) rotate(7deg); }
.shoe-wrap.is-entering[data-dir='prev'] { transform: translateX(-14%) scale(.8) rotate(-7deg); }

/* La zapatilla: tilt 3D (variables que escribe JS) + flotación con `translate` */
.shoe {
  width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(var(--s, 1));
  transition: transform .55s var(--ease-out);
  filter: drop-shadow(0 34px 26px var(--shoe-shadow));
  animation: float 6s ease-in-out infinite;
  pointer-events: none; -webkit-user-drag: none;
}
.stage.is-dragging .shoe { transition-duration: .12s; }

.stage__hint {
  position: absolute; left: 50%; bottom: -5%; z-index: 4; translate: -50% 0;
  display: flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 600; color: var(--ink-3);
  transition: opacity .4s;
}
.stage__hint svg { width: 26px; height: 18px; animation: wobble 3.6s ease-in-out infinite; }
.stage.is-dragging .stage__hint { opacity: 0; }

/* --- Riel de miniaturas --------------------------------------------------- */
.rail-wrap {
  grid-area: rail; position: relative; z-index: 3;
  display: flex; align-items: center; gap: 1rem; min-width: 0;
  padding-top: 1.2rem;
}
.counter {
  flex: none; display: flex; align-items: baseline; gap: .3rem;
  font-family: var(--font-display); font-stretch: 112%; font-variant-numeric: tabular-nums;
  color: var(--ink-3); font-weight: 600;
}
.counter b {
  font-size: 1.9rem; font-weight: 900; font-style: italic; color: var(--ink);
  display: inline-block; min-width: 2ch;
}
.counter b.is-ticking { animation: tick .5s var(--ease-out); }

.rail {
  display: flex; gap: .6rem; min-width: 0;
  padding: .45rem .3rem;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.rail::-webkit-scrollbar { display: none; }
.rail button {
  flex: none; width: 78px; height: 56px; padding: 6px;
  scroll-snap-align: center;
  border: 1px solid var(--line); border-radius: 15px;
  background: var(--glass);
  opacity: .62;
  transition: transform .45s var(--ease-spring), opacity .3s, border-color .3s, background-color .3s;
}
.rail button img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s var(--ease-spring); }
.rail button:hover { opacity: 1; transform: translateY(-3px); }
.rail button:hover img { transform: scale(1.1) rotate(-6deg); }
.rail button[aria-current='true'] {
  opacity: 1; border-color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 16%, var(--glass));
  transform: translateY(-3px) scale(1.06);
}

/* --- Información del modelo (tipografía directa sobre el fondo) ----------- */
.info {
  grid-area: info; position: relative; z-index: 3;
  display: grid; gap: 1.15rem; align-content: center;
}
.info__row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
  font-size: .78rem; font-weight: 700;
}
.pill--stock::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #3ddc84; box-shadow: 0 0 0 0 rgb(61 220 132 / .6);
  animation: ping 2.4s ease-out infinite;
}
.title {
  display: grid;
  font-family: var(--font-display);
  font-weight: 900; font-style: italic; font-stretch: 112%;
  font-size: clamp(2.1rem, 3.5vw + .4rem, 4rem);
  line-height: .98; letter-spacing: .015em; text-transform: uppercase;
  text-wrap: balance;
}
.title span { display: block; }
.colorway {
  font-family: var(--font-display); font-stretch: 105%;
  font-weight: 700; font-size: 1.12rem; color: var(--accent-ink);
}
.desc { max-width: 42ch; color: var(--ink-2); font-size: .97rem; }

.sizes { display: grid; gap: .7rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.sizes__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; }
.sizes__head span { font-weight: 700; font-size: .92rem; }
.sizes__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .45rem; }
.size {
  height: 46px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--glass);
  font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums;
  transition: transform .4s var(--ease-spring), background-color .25s, color .25s, border-color .25s;
}
.size:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.size[aria-checked='true'] {
  background: var(--ink); color: var(--on-ink); border-color: var(--ink);
  animation: pop .5s var(--ease-spring);
}
.size.is-flip { animation: flip .45s var(--ease-out); }

.buy { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; padding-top: .6rem; }
.price { display: grid; line-height: 1.1; }
.price span { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.price strong {
  font-family: var(--font-display); font-stretch: 115%;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 900; font-style: italic;
  font-variant-numeric: tabular-nums;
}
.note { flex: 1 1 100%; font-size: .82rem; color: var(--ink-3); max-width: 40ch; }


/* ==========================================================================
   7. BANDA
   ========================================================================== */

.band {
  position: relative; z-index: 4;
  margin: 1.5rem -3% 0; padding: .95rem 0;
  background: var(--ink); color: var(--on-ink);
  rotate: -1.2deg; overflow: hidden;
}
.band__track {
  display: flex; width: max-content;
  animation: marquee 34s linear infinite;
}
.band:hover .band__track { animation-play-state: paused; }
.band__track span {
  display: inline-flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem;
  font-family: var(--font-display); font-stretch: 125%;
  font-weight: 900; font-style: italic; font-size: clamp(1.05rem, 2vw, 1.5rem);
  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
}
.band__track span::after {          /* tajo rojo, guiño al estilo de la referencia */
  content: ''; width: 14px; height: 1.5em; background: var(--red); transform: skewX(-24deg);
}


/* ==========================================================================
   8. CATÁLOGO
   ========================================================================== */

.catalog { padding: clamp(4rem, 9vw, 7rem) var(--gutter) clamp(3rem, 6vw, 5rem); max-width: 1500px; margin: 0 auto; }
.catalog__head {
  display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem;
  margin-bottom: clamp(4.5rem, 8vw, 6.5rem);
}
.h2 {
  font-family: var(--font-display); font-stretch: 118%;
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.8rem); line-height: .95;
}
.catalog__count { color: var(--ink-3); font-weight: 600; margin-top: .5rem; font-variant-numeric: tabular-nums; }

.grid {
  display: grid; gap: clamp(4rem, 6vw, 5.2rem) clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

/* Tarjeta con borde abierto: la zapatilla sobresale por arriba */
.card {
  --c: var(--accent);
  position: relative; display: block;
  padding: 6.3rem 1.1rem 1.15rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--glass), transparent 70%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .4s, background-color .4s, transform .55s var(--ease-spring), box-shadow .5s;
}
.card::before {                       /* resplandor del color de la zapatilla */
  content: ''; position: absolute; inset: -20% 6% auto; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 60%, transparent), transparent);
  filter: blur(26px); opacity: 0;
  transition: opacity .5s;
}
.card::after {                        /* barrido de brillo al pasar el cursor */
  content: ''; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .09) 50%, transparent 62%);
  translate: -120% 0;
  transition: translate .9s var(--ease-out);
}
.card__img {
  position: absolute; left: 50%; top: 0; translate: -50% -36%;
  width: 116%; height: 8.2rem; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 18px 14px var(--shoe-shadow));
  transition: transform .6s var(--ease-spring), filter .5s;
  pointer-events: none;
}
.card h3 {
  font-family: var(--font-display); font-stretch: 70%;
  font-weight: 800; font-size: 1.55rem; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em;
}
.card__color { color: var(--ink-2); font-size: .86rem; margin-top: .15rem; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; }
.card__price { font-weight: 800; font-variant-numeric: tabular-nums; }
.card__go {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); transition: background-color .3s, color .3s, rotate .5s var(--ease-spring), border-color .3s;
}
.card__go svg { width: 15px; height: 15px; }

.card:hover, .card:focus-visible {
  border-color: color-mix(in srgb, var(--c) 70%, var(--ink) 15%);
  background: var(--glass-2);
  transform: translateY(-8px);
}
.card:hover::before, .card:focus-visible::before { opacity: .55; }
.card:hover::after, .card:focus-visible::after { translate: 120% 0; }
.card:hover .card__img, .card:focus-visible .card__img { transform: translateY(-10px) scale(1.07) rotate(-3deg); }
.card:hover .card__go { background: var(--ink); color: var(--on-ink); border-color: var(--ink); rotate: -45deg; }
.card[aria-current='true'] { border-color: var(--c); }

/* Entrada al hacer scroll (y al cambiar el filtro) */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease-out), translate .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.card.reveal.is-in { transition: opacity .8s var(--ease-out) calc(var(--i, 0) * 55ms), translate .9s var(--ease-out) calc(var(--i, 0) * 55ms), border-color .4s, background-color .4s, transform .55s var(--ease-spring), box-shadow .5s; }


/* ==========================================================================
   9. CÓMO PEDIR
   ========================================================================== */

.how { padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(4rem, 8vw, 6.5rem); max-width: 1500px; margin: 0 auto; }
.steps {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.2rem, 5vw, 3.5rem);
}
.steps::before {                      /* línea que une los pasos y se dibuja al entrar */
  content: ''; position: absolute; left: 0; right: 0; top: 2.2rem; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line));
  transform-origin: left; transform: scaleX(0);
  transition: transform 1.6s var(--ease-inout) .2s;
}
.steps.is-in::before { transform: scaleX(1); }
.step { position: relative; padding-top: 4.4rem; }
.step__n {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%;
  background: var(--bg-0); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-stretch: 118%; font-weight: 900; font-style: italic; font-size: 1.7rem;
  transition: background-color .4s, color .4s, scale .5s var(--ease-spring);
}
.step:hover .step__n { background: var(--ink); color: var(--on-ink); scale: 1.08; }
.step h3 { font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: 1.3rem; line-height: 1.15; margin-bottom: .5rem; }
.step p { color: var(--ink-2); max-width: 34ch; }


/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.footer { border-top: 1px solid var(--line); padding: 2.4rem var(--gutter) calc(2.4rem + env(safe-area-inset-bottom)); }
.footer__inner {
  max-width: 1500px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer__links { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; font-weight: 600; }
.footer__links a { color: var(--ink-2); transition: color .25s; }
.footer__links a:hover { color: var(--ink); }
.footer small { display: block; color: var(--ink-3); margin-top: .3rem; }


/* ==========================================================================
   11. BARRA MÓVIL DE PEDIDO
   ========================================================================== */

.dock {
  position: fixed; left: .7rem; right: .7rem; bottom: calc(.7rem + env(safe-area-inset-bottom)); z-index: 70;
  display: none; align-items: center; gap: .8rem;
  padding: .55rem .6rem .55rem .8rem; border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 20px 50px -18px rgb(0 0 0 / .6);
  translate: 0 140%; transition: translate .6s var(--ease-spring);
}
.dock.is-visible { translate: 0 0; }
.dock img { width: 58px; height: 42px; object-fit: contain; flex: none; }
.dock__text { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.dock__text strong { font-family: var(--font-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__text span { font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }


/* ==========================================================================
   12. DIÁLOGO DE ENCARGO
   ========================================================================== */

.order {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: min(94vw, 460px); max-height: 92svh; margin: auto; overflow: visible;
}
.order::backdrop {
  background: rgb(0 0 0 / .62);
  -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
  transition: background-color .35s, backdrop-filter .35s, -webkit-backdrop-filter .35s;
}
.order.is-open::backdrop { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.order__panel {
  position: relative; display: grid; gap: 1rem;
  padding: 1.6rem 1.5rem 1.5rem; border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / .8);
  opacity: 0; translate: 0 30px; scale: .94;
  transition: opacity .35s var(--ease-out), translate .55s var(--ease-spring), scale .55s var(--ease-spring);
}
.order.is-open .order__panel { opacity: 1; translate: 0 0; scale: 1; }

.order__close {
  position: absolute; right: .9rem; top: .9rem; z-index: 2;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass);
  transition: rotate .45s var(--ease-spring), background-color .3s;
}
.order__close:hover { rotate: 90deg; background: var(--glass-2); }
.order__close svg { width: 16px; height: 16px; }

.order__shoe {
  position: relative; height: 130px; display: grid; place-items: center; margin-top: .2rem;
}
.order__shoe::before {
  content: ''; position: absolute; inset: 10% 14%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 65%, transparent), transparent 72%);
  filter: blur(24px); opacity: .55;
}
.order__shoe img { position: relative; height: 130px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 16px 12px var(--shoe-shadow)); }
.order h2 { font-family: var(--font-display); font-stretch: 115%; font-weight: 900; font-style: italic; font-size: 1.55rem; text-transform: uppercase; text-align: center; line-height: 1.05; }
.order__lead { text-align: center; color: var(--ink-2); font-size: .9rem; margin-top: -.5rem; }

.order__rows {
  display: grid; gap: .1rem; padding: .35rem 1rem; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--glass);
}
.order__rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; font-size: .9rem; }
.order__rows div + div { border-top: 1px solid var(--line); }
.order__rows dt { color: var(--ink-2); }
.order__rows dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.field { display: grid; gap: .4rem; font-weight: 700; font-size: .88rem; }
.field input {
  width: 100%; padding: .9rem 1rem; border-radius: 14px;
  border: 1px solid var(--line); background: var(--glass);
  font-weight: 500; font-size: 1rem;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: 0; border-color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); background: var(--glass-2); }


/* ==========================================================================
   13. COREOGRAFÍA DE ENTRADA Y KEYFRAMES
   --------------------------------------------------------------------------
   Antes de `.is-ready` los elementos del hero están ocultos; al quedar listo
   se encadena una sola secuencia: marca de agua → anillo → zapatilla → texto.
   Las animaciones usan fill-mode `backwards`, así no pisan los estados
   (hover, cambio de modelo) una vez terminadas.
   ========================================================================== */

body:not(.is-ready) :is(.hero__watermark, .stage__glow, .stage__ring, .stage__floor, .shoe-wrap, .arrow, .rail-wrap, .stage__hint, [data-swap]) { opacity: 0; }

.is-ready .hero__watermark { animation: wm-in 1.6s var(--ease-out) .55s backwards; }
.is-ready .stage__glow     { animation: glow-in 1.4s var(--ease-out) .9s backwards, breathe 7s ease-in-out 2.3s infinite; }
.is-ready .stage__ring     { animation: fade-in .6s ease-out .9s backwards; }
.is-ready .ring--base      { stroke-dasharray: 1; animation: ring-draw 1.8s var(--ease-out) .9s backwards; }
.is-ready .ring--outer     { stroke-dasharray: 1; animation: ring-draw 2.2s var(--ease-out) 1.1s backwards; }
.is-ready .stage__floor    { animation: floor-in 1s ease-out 1.3s backwards, floor-pulse 6s ease-in-out 2.3s infinite; }
.is-ready .shoe-wrap       { animation: shoe-drop 1.25s var(--ease-spring) 1.15s backwards; }
.is-ready .arrow           { animation: fade-in .8s ease-out 1.9s backwards; }
.is-ready .rail-wrap       { animation: rise .9s var(--ease-out) 1.8s backwards; }
.is-ready .stage__hint     { animation: fade-in .9s ease-out 2.3s backwards; }

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

@keyframes letter-rise   { to { translate: 0 0; } }
@keyframes logo-in       { to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes logo-glow     { 0%, 100% { filter: drop-shadow(0 0 28px rgb(155 92 255 / .4)); } 50% { filter: drop-shadow(0 0 46px rgb(155 92 255 / .75)); } }
@keyframes bar-load      { to { transform: scaleX(1); } }
@keyframes fade-in       { from { opacity: 0; } }
@keyframes rise          { from { opacity: 0; translate: 0 22px; } }
@keyframes wm-in         { from { opacity: 0; translate: -8% 0; filter: blur(14px); } }
@keyframes glow-in       { from { opacity: 0; scale: .5; } }
@keyframes ring-draw     { from { stroke-dashoffset: 1; opacity: 0; } to { stroke-dashoffset: 0; } }
@keyframes floor-in      { from { opacity: 0; scale: .3 1; } }
@keyframes shoe-drop     { 0% { opacity: 0; transform: translateY(-60px) scale(.7) rotate(-14deg); filter: blur(14px); } 100% { opacity: 1; } }
@keyframes swap-in       { from { opacity: 0; translate: 0 18px; filter: blur(6px); } }
@keyframes title-line    { from { opacity: 0; translate: -24px 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@keyframes float         { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes floor-pulse   { 0%, 100% { scale: 1; opacity: .95; } 50% { scale: .8 .9; opacity: .6; } }
@keyframes breathe       { 0%, 100% { scale: 1; opacity: var(--glow-strength); } 50% { scale: 1.08; opacity: calc(var(--glow-strength) * .72); } }
@keyframes orbit         { to { stroke-dashoffset: -1; } }
@keyframes wobble        { 0%, 100% { rotate: 0deg; } 50% { rotate: 14deg; } }
@keyframes ping          { 70%, 100% { box-shadow: 0 0 0 9px rgb(61 220 132 / 0); } }
@keyframes tick          { from { translate: 0 60%; opacity: 0; } }
@keyframes pop           { 0% { scale: .86; } 100% { scale: 1; } }
@keyframes flip          { 0% { rotate: x 90deg; opacity: 0; } 100% { rotate: x 0deg; opacity: 1; } }
@keyframes marquee       { to { translate: -50% 0; } }
@keyframes spin-angle    { to { --angle: 360deg; } }
@keyframes cta-breathe   { 0%, 100% { box-shadow: 0 14px 34px -12px rgb(37 211 102 / .55); } 50% { box-shadow: 0 22px 46px -10px rgb(37 211 102 / .95); } }


/* ==========================================================================
   14. CAMBIO DE TEMA (View Transitions API, con fallback instantáneo)
   ========================================================================== */

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; animation: theme-reveal .85s var(--ease-inout); }
@keyframes theme-reveal {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 50%)); }
  to   { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 50%)); }
}


/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .nav { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'stage' 'rail' 'info';
    row-gap: 1rem; min-height: 0; padding-bottom: 2.5rem;
  }
  .stage { height: clamp(280px, 44vh, 400px); }
  .arrow { width: 44px; height: 44px; top: 42%; }
  .arrow--prev { left: -.2rem; }
  .arrow--next { right: -.2rem; }
  .hero__watermark span { margin-top: -22vh; font-size: clamp(6rem, 30vw, 12rem); }
  .info { gap: 1rem; padding-top: .6rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { left: 2.2rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: top; transform: scaleY(0); }
  .steps.is-in::before { transform: scaleY(1); }
  .step { padding: .2rem 0 0 6rem; min-height: 4.4rem; }
  .dock { display: flex; }
  .footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  .brand__text small { display: none; }
  .site-header .seg { display: none; }
  .sizes__grid { gap: .35rem; }
  .size { height: 44px; border-radius: 12px; }
  .buy { align-items: stretch; }
  .buy .cta { flex: 1 1 100%; }
  .stage__hint { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.2rem .8rem; }
  .card { padding: 5rem .8rem .9rem; }
  .card__img { height: 6.6rem; }
  .card h3 { font-size: 1.25rem; }
  .card__color { font-size: .78rem; }
}

@media (max-width: 380px) {
  .brand__text { display: none; }
}


/* ==========================================================================
   16. MOVIMIENTO REDUCIDO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .preloader { display: none; }
  body:not(.is-ready) :is(.hero__watermark, .stage__glow, .stage__ring, .stage__floor, .shoe-wrap, .arrow, .rail-wrap, .stage__hint, [data-swap]) { opacity: 1; }
  .band__track { animation: none; }
}
