/* =========================================================
   Aresia · estilos
   Paleta tomada del logo (ciruela + rosa lila) y de las carteras.
   ========================================================= */

/* fuentes servidas desde el mismo sitio (variables: un archivo cubre todos los pesos) */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../assets/fonts/bodoni-moda-latin-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../assets/fonts/bodoni-moda-latin-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-latin-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --ground: #f4f0ee;
  --ground-2: #ebe4e1;
  --ground-3: #e2d9d6;
  --panel: #fbf8f7;
  --ink: #24131c;
  --muted: #6a5862;
  --accent: #571441;          /* ciruela del logo */
  --accent-strong: #3f0c2f;
  --accent-ink: #fbeef5;
  --rose: #edc9db;            /* rosa lila del logo */
  --field-rosa: #efd3da;
  --field-beige: #eadfd2;
  --field-vino: #5b1526;
  --ribbon: #e8b3c9;
  --ribbon-2: #d494b1;
  --ribbon-3: #c27f9e;
  --rail-1: #8f7a70;
  --rail-2: #cdb8ab;
  --rail-3: #fff6ef;
  --floor: 40 18 28;
  --paper: #f7f2f1;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-text: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step-xs: 14px;
  --step-s: 16px;
  --step-m: clamp(21px, 1.8vw, 26px);
  --step-l: clamp(32px, 3.4vw, 52px);
  --step-xl: clamp(64px, 17vw, 300px);

  --margin: clamp(16px, 3vw, 44px);
  --bar-h: 64px;
  --marquee-h: 42px;
  --radius: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;

  /* en el teléfono la barra del navegador se esconde al bajar: las escenas fijas miden
     la pantalla grande (lvh) para no dejar una franja vacía, y lo que va abajo sube
     lo que mide esa barra (--tb) para que siempre se vea */
  --pin: 100vh;
  --tb: 0px;

  color-scheme: light;
}
@supports (height: 100lvh) {
  :root { --pin: 100lvh; --tb: calc(100lvh - 100svh); }
}

:root[data-theme="dark"] {
  --ground: #221620;
  --ground-2: #312029;
  --ground-3: #3d2934;
  --panel: #25171f;
  --ink: #f7e9f0;
  --muted: #c5afbb;
  --accent: #edc9db;
  --accent-strong: #f8dbe8;
  --accent-ink: #3a0b2a;
  --rose: #6b2552;
  --field-rosa: #3c2430;
  --field-beige: #33282a;
  --field-vino: #5b1526;
  --ribbon: #d99bb9;
  --ribbon-2: #bd7c9c;
  --ribbon-3: #a76a88;
  --rail-1: #5d4c45;
  --rail-2: #a18d82;
  --rail-3: #efe2d8;
  --floor: 0 0 0;
  --paper: #2c1d25;
  color-scheme: dark;
}

/* La página siempre abre en blanco; el modo noche solo se activa con el botón de la luna. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-s);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  /* sin overflow en body ni html: en el Safari del iPhone eso desactiva las escenas fijas (sticky).
     Cada sección recorta lo suyo. */
  transition: background-color 400ms ease, color 400ms ease;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--rose); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; 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: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ground); padding: 10px 14px; border-radius: 8px; text-decoration: none; transition: top var(--t-ui) var(--ease-out); }
.skip:focus { top: 12px; }

.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.07em;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
}

.h-l { font-family: var(--font-display); font-weight: 500; font-size: var(--step-l); line-height: 1.02; letter-spacing: -0.02em; }
.lead { font-size: var(--step-m); line-height: 1.35; max-width: 36ch; font-family: var(--font-display); font-weight: 400; }

/* lazo */
.lazo-ala { fill: var(--ribbon); }
.lazo-pliegue { fill: var(--ribbon-2); }
.lazo-cola { fill: var(--ribbon-2); }
.lazo-cola--b { fill: var(--ribbon-3); }
.lazo-nudo { fill: var(--ribbon-3); }

/* ---------- barra ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--margin);
  background: transparent;
  transition: background-color 300ms ease, transform 400ms var(--ease-out);
}
.bar.is-solid { background: var(--ground); }
.bar.is-hidden { transform: translateY(-100%); }
.bar__menu { justify-self: start; font-size: 16px; padding: 10px 2px; }
.bar__mark {
  font-family: var(--font-display); font-weight: 500; font-size: 34px; letter-spacing: -0.01em;
  text-decoration: none; line-height: 1;
}
.bar__end { justify-self: end; display: flex; align-items: center; gap: 18px; }
.bar__order { font-size: 16px; padding: 10px 2px; font-variant-numeric: tabular-nums; }
.bar__theme {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ground-2);
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.bar__theme:active { transform: scale(0.94); }
.bar__theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.bar__theme .i-moon { fill: currentColor; stroke: none; }
.bar__theme .i-sun { display: none; }
:root[data-theme="dark"] .bar__theme .i-moon { display: none; }
:root[data-theme="dark"] .bar__theme .i-sun { display: inline; }
@media (hover: hover) and (pointer: fine) { .bar__theme:hover { background: var(--ground-3); } }
.bar__order.is-bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.12); } 100% { transform: none; } }

/* ---------- 1. el riel ---------- */
.riel {
  position: relative;
  height: 100svh; min-height: 660px; max-height: 1100px;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-top: var(--bar-h);
  overflow: hidden;
  isolation: isolate;
}
.riel__title {
  text-align: center;
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: var(--step-m); line-height: 1.2; letter-spacing: -0.01em;
  padding: 6px var(--margin) 0;
  color: var(--ink);
}
.stage { position: relative; overflow: hidden; touch-action: pan-y; }
/* el piso del estudio: la esquina clara donde Aresia graba sus reels */
.stage::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  top: var(--floor-y, 78%);
  background: var(--ground-2);
  z-index: 0;
}
.stage.is-dragging { cursor: grabbing; }
.rail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.rail path { fill: none; stroke-linecap: round; }
.rail__shadow { stroke: rgb(var(--floor) / 0.12); stroke-width: 12; }
.rail__base { stroke: var(--rail-1); stroke-width: 10; }
.rail__mid { stroke: var(--rail-2); stroke-width: 6; }
.rail__hi { stroke: var(--rail-3); stroke-width: 1.6; opacity: 0.9; }
.rail__ends circle { fill: var(--rail-1); }
.rail__ends rect { fill: var(--rail-2); }

.shadows { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.shadow { /* taste-skill-ignore: sombra física en el piso bajo cada cartera colgada (parte de la escena del riel, como en la referencia) */
  position: absolute; left: 0; top: 0;
  width: 100px; height: 12px; border-radius: 50%;
  background: rgb(var(--floor) / 0.26);
  filter: blur(7px);
  will-change: transform, opacity;
}

.hangers { position: absolute; inset: 0; z-index: 2; }
.hang {
  position: absolute; left: 0; top: 0;
  width: 0; height: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.hang__hit {
  position: absolute; display: block;
  left: calc(var(--ax) * var(--iw) * -1);
  top: 0;
  width: var(--iw);
  height: calc(var(--rl) + (1 - var(--ay)) * var(--ih));
  border-radius: 24px;
}
.hang__hit:focus-visible { outline-offset: 6px; }
.hang__ribbon {
  position: absolute; top: -6px; left: calc(var(--rw) / -2);
  width: var(--rw); height: calc(var(--rl) + 6px);
  background: var(--ribbon);
  pointer-events: none;
}
.hang__ribbon::after, .ci__ribbon::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 45%; background: var(--ribbon-2); }
.hang__bow {
  position: absolute; pointer-events: none; max-width: none;
  width: var(--bw); height: calc(var(--bw) * 0.84);
  left: calc(var(--bw) / -2); top: calc(var(--rl) - var(--bw) * 0.33);
  z-index: 2;
  overflow: visible;
}
.hang__bag {
  position: absolute; pointer-events: none;
  width: var(--iw); height: var(--ih);
  left: calc(var(--ax) * var(--iw) * -1);
  top: calc(var(--rl) - var(--ay) * var(--ih));
}
.hang__bag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.dye {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 60%, transparent 100%); /* taste-skill-ignore: máscara del teñido, no es un relleno */
  mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 60%, transparent 100%); /* taste-skill-ignore: máscara del teñido, no es un relleno */
  -webkit-mask-size: 100% 250%; mask-size: 100% 250%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 100%; mask-position: 0 100%;
}

/* el llavero (osito, cerezas): cuelga del enganche de la cartera (--cu, --cv) y mide --ck
   del alto de su foto; gira alrededor de su aro */
.charm {
  position: absolute; z-index: 3; pointer-events: none;
  left: calc(var(--cu) * 100%); top: calc(var(--cv) * 100%);
  height: calc(var(--ck) * 100%); aspect-ratio: var(--car);
  translate: calc(var(--cax) * -100%) calc(var(--cay) * -100%);
  transform-origin: calc(var(--cax) * 100%) calc(var(--cay) * 100%);
  filter: drop-shadow(0 5px 5px rgb(40 18 28 / 0.22)); /* taste-skill-ignore: sombra física del llavero sobre la cartera, como la sombra de cada cartera en el piso */
}
.charm > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
@media (prefers-reduced-motion: no-preference) {
  .charm { animation: charm-sway var(--sway-d, 2.6s) var(--ease-in-out) var(--sway-o, 0s) infinite alternate; }
  .riel.is-off .charm { animation-play-state: paused; }
}
@keyframes charm-sway { from { rotate: -4deg; } to { rotate: 4deg; } }

.arrow {
  position: absolute; top: 48%; z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ground-2); color: var(--ink);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out), opacity 300ms ease;
}
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arrow--prev { left: var(--margin); }
.arrow--next { right: var(--margin); }
.arrow:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .arrow:hover { background: var(--ink); color: var(--ground); } }

.label {
  position: absolute; left: 50%; bottom: clamp(18px, 4.2vh, 44px); z-index: 6;
  transform: translateX(-50%);
  display: grid; justify-items: center; gap: 4px;
  text-align: center;
  transition: opacity 360ms var(--ease-out), transform 420ms var(--ease-out);
}
.label__name { font-family: var(--font-display); font-weight: 500; font-size: var(--step-l); line-height: 1.05; letter-spacing: -0.02em; }
.label__meta { color: var(--muted); font-size: 16px; }
.label.is-swapping .label__name, .label.is-swapping .label__meta { opacity: 0; transform: translateY(8px); }
.label__name, .label__meta { transition: opacity 260ms ease, transform 360ms var(--ease-out); }

.pill {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  background: var(--ink); color: var(--ground);
  font-size: 16px; font-weight: 500;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.pill:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .pill:hover { background: var(--accent); color: var(--accent-ink); } }

.marquee {
  position: relative; z-index: 6;
  height: var(--marquee-h); overflow: hidden;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center;
}
.marquee__track { display: flex; align-items: center; gap: 22px; white-space: nowrap; padding-left: 22px; font-size: 16px; width: max-content; }
.marquee__lazo { width: 22px; height: 18px; flex: none; }
.marquee__lazo .lazo-ala, .marquee__lazo .lazo-pliegue, .marquee__lazo .lazo-cola, .marquee__lazo .lazo-nudo { fill: currentColor; }
.marquee__lazo .lazo-pliegue, .marquee__lazo .lazo-cola--b, .marquee__lazo .lazo-nudo { opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 42s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

.riel__static { display: flex; justify-content: center; align-items: flex-end; gap: 4vw; padding: 12vh 4vw 0; }
.riel__static img { height: 34vh; width: auto; }

/* controles de la pieza (colores, llavero, botones, detalles) */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sw);
  position: relative;
  transition: transform var(--t-press) var(--ease-out);
}
.swatch::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--ink); opacity: 0; transform: scale(0.85);
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}
.swatch[aria-checked="true"]::after { opacity: 1; transform: none; }
.swatch:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .swatch:hover { transform: scale(1.08); } }
.modes {
  margin-top: 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--ink); color: var(--ground);
  border-radius: var(--radius); padding: 4px; position: relative;
}
.modes__knob {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / var(--n, 2)); border-radius: var(--radius);
  background: var(--ground);
  transform: translateX(calc(var(--k, 0) * 100%));
  transition: transform 420ms var(--ease-out);
}
.modes button { position: relative; z-index: 1; padding: 9px 8px; font-size: 16px; transition: color 300ms ease; white-space: nowrap; }
.modes--charm { margin-top: 10px; }
.modes button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 15px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); margin-top: 20px; }
.btn--soft { background: var(--ground-2); color: var(--ink); margin-top: 10px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-strong); }
  .btn--soft:hover { background: var(--ground-3); }
}
.btn__aside { font-weight: 500; opacity: 0.85; }
.acc { margin-top: 18px; display: grid; gap: 6px; }
.acc__item { background: var(--ground); border-radius: 12px; }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; font-size: 16px; font-weight: 500; text-align: left; }
.acc__plus { width: 14px; height: 14px; position: relative; flex: none; }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 320ms var(--ease-out); }
.acc__plus::after { transform: rotate(90deg); }
.acc__item.is-open .acc__plus::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel ul, .acc__panel p { padding: 0 14px 14px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.acc__panel li { padding-left: 14px; position: relative; }
.acc__panel li + li { margin-top: 4px; }
.acc__panel li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ribbon-2); }
@keyframes shutter { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }

/* ---------- 2. el clóset ---------- */
.closet-sec { padding: clamp(120px, 15vh, 200px) 0 clamp(60px, 8vh, 110px); position: relative; overflow: hidden; }
.closet-sec__head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 20px;
  padding: 0 var(--margin);
  align-items: end;
}
.closet-sec__head .h-l { grid-column: 1 / 7; }
.closet-sec__head .lead { grid-column: 8 / 13; font-family: var(--font-text); font-size: var(--step-s); max-width: 40ch; color: var(--ink); }
.closet { position: relative; margin-top: 60px; height: clamp(440px, 60vh, 560px); }
.closet__rail {
  position: absolute; left: var(--margin); right: var(--margin); top: 28px; height: 10px;
  border-radius: 6px; background: var(--rail-2);
}
.closet__rail::before { content: ""; position: absolute; left: 6px; right: 6px; top: 2px; height: 2px; border-radius: 2px; background: var(--rail-3); opacity: 0.9; }
.closet__rail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 0 0 6px 6px; background: var(--rail-1); }
.closet__row {
  position: absolute; left: 0; right: 0; top: 33px;
  display: flex; justify-content: center;
  perspective: 1600px;
  padding: 0 var(--margin);
}
.ci { flex: none; width: var(--slot, 56px); height: clamp(380px, 52vh, 500px); position: relative; transform: translateX(var(--shift, 0px)); transition: transform 560ms var(--ease-out); }
.ci__btn {
  position: absolute; left: 50%; top: 0;
  width: var(--w); height: 100%;
  margin-left: calc(var(--w) / -2);
  transform-origin: 50% 0;
  transform: rotateY(var(--ry, 70deg)) scale(var(--s, 0.96));
  transition: transform 700ms var(--ease-out), filter 360ms ease, opacity 360ms ease;
  transform-style: preserve-3d;
  display: block;
}
.ci:nth-child(even) .ci__btn { --ry: -70deg; }
.ci__ribbon { position: absolute; left: calc(50% - 3px); top: -6px; width: 6px; height: calc(var(--rl) + 6px); background: var(--ribbon); }
.ci__bow { position: absolute; max-width: none; left: calc(50% - 26px); top: calc(var(--rl) - 17px); width: 52px; height: 44px; z-index: 2; }
.ci__img { position: absolute; left: calc(50% - var(--ax) * var(--iw)); top: calc(var(--rl) - var(--ay) * var(--ih)); width: var(--iw); height: var(--ih); object-fit: contain; }
.ci__tag {
  position: absolute; z-index: 3;
  left: calc(50% + 22px); top: calc(var(--rl) + 14px);
  background: var(--rose); color: var(--ink);
  padding: 10px 14px 10px 22px; border-radius: 6px 12px 12px 6px;
  font-size: 14px; line-height: 1.3; text-align: left; white-space: nowrap;
  transform-origin: 0 50%;
  transform: rotate(8deg) scale(0.86); opacity: 0;
  transition: opacity 260ms ease, transform 520ms var(--ease-out);
  pointer-events: none;
}
.ci__tag::before { content: ""; position: absolute; left: 8px; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--ground); }
.ci__tag strong { display: block; font-weight: 600; }
.ci.is-active { z-index: 5; }
.ci.is-active .ci__btn { --ry: 0deg; --s: 1.04; }
.ci.is-active .ci__tag { opacity: 1; transform: rotate(-4deg) scale(1); }
.closet.is-peeking .ci:not(.is-active) .ci__btn { filter: blur(2.5px); opacity: 0.72; }

/* clóset 3D: la sección se fija y la cámara recorre el riel al hacer scroll.
   html.has-3d se pone en la cabecera, antes de pintar: el espacio del 3D queda reservado
   desde el principio y la versión plana nunca se llega a ver. */
.has-3d .closet-sec { padding-bottom: 0; overflow: visible; }
.has-3d .closet-sec .closet-track { height: 290vh; position: relative; }
.has-3d .closet-sec .closet-pin { position: sticky; top: 0; height: var(--pin); }
.has-3d .closet-sec .closet { position: absolute; inset: 0; height: auto; margin: 0; }
.has-3d .closet__rail { display: none; }
.has-3d .closet__row { /* taste-skill-ignore: lista accesible oculta a la vista (patrón sr-only), no es una línea */
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; /* taste-skill-ignore: patrón sr-only */
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.closet__loading { display: none; }
.has-3d .closet:not(.is-3d) .closet__loading {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  font-family: var(--font-display); font-style: italic; font-size: var(--step-m); color: var(--muted);
}
.closet__loading-bow { width: 64px; height: auto; aspect-ratio: 100 / 84; transform-origin: 50% 30%; }
@media (prefers-reduced-motion: no-preference) { .closet__loading-bow { animation: bow-sway 1.6s var(--ease-in-out) infinite alternate; } }
@keyframes bow-sway { from { rotate: -9deg; } to { rotate: 9deg; } }
.closet3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; opacity: 0; transition: opacity 700ms ease; }
.closet.is-3d .closet3d__canvas { opacity: 1; }
.closet3d__tag {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: grid; gap: 1px;
  margin: -8px 0 0 26px;
  background: var(--rose); color: var(--ink);
  padding: 10px 16px 11px 24px; border-radius: 6px 14px 14px 6px;
  font-size: 14px; line-height: 1.3; text-decoration: none; white-space: nowrap;
  opacity: 0; rotate: 6deg; scale: 0.9; transform-origin: 0 50%;
  pointer-events: none;
  transition: opacity 240ms ease, rotate 520ms var(--ease-out), scale 520ms var(--ease-out), background-color var(--t-hover) ease;
}
.closet3d__tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ground); }
.closet3d__tag strong { font-weight: 600; font-size: 16px; }
.closet3d__tag em { font-style: normal; color: var(--muted); }
.closet3d__tag.is-on { opacity: 1; rotate: -3deg; scale: 1; pointer-events: auto; }
.closet3d__tag.is-swap { animation: tag-swap 420ms var(--ease-out); }
@keyframes tag-swap { from { rotate: 9deg; scale: 0.92; } }
@media (hover: hover) and (pointer: fine) { .closet3d__tag:hover { background: var(--ground-3); } }
/* indicador del clóset: «desliza para ver más» (teléfono) o «baja para recorrer» (computadora).
   Aparece al llegar y se va en cuanto alguien desliza o recorre el riel */
.closet-hint {
  position: absolute; z-index: 4; left: 50%; bottom: calc(var(--tb) + clamp(22px, 5svh, 48px));
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 18px 9px 12px; border-radius: var(--radius);
  background: var(--ink); color: var(--ground);
  font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  opacity: 0; translate: -50% 16px; scale: 0.94; pointer-events: none;
  transition: opacity 320ms ease, translate 560ms var(--ease-out), scale 560ms var(--ease-out);
}
.closet-hint.is-on { opacity: 1; translate: -50% 0; scale: 1; transition-delay: 450ms; }
.closet-hint__swipe { position: relative; flex: none; width: 48px; height: 24px; }
/* la flecha tenue marca el camino del dedo (así el gesto se entiende aunque el punto esté por aparecer) */
.closet-hint__swipe svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.38; }
.closet-hint__swipe i { position: absolute; right: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--rose); }
/* la estela del dedo: dos puntos más chicos que lo siguen */
.closet-hint__swipe i:nth-child(2) { top: 7px; right: 5px; width: 10px; height: 10px; opacity: 0.55; }
.closet-hint__swipe i:nth-child(3) { top: 9px; right: 7px; width: 6px; height: 6px; opacity: 0.3; }
.closet-hint__wheel { position: relative; flex: none; width: 18px; height: 27px; border: 2px solid currentColor; border-radius: 10px; }
.closet-hint__wheel i { position: absolute; left: 50%; top: 5px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--rose); }
@media (prefers-reduced-motion: no-preference) {
  .closet-hint.is-on .closet-hint__swipe i { animation: hint-swipe 1.9s var(--ease-in-out) infinite; }
  .closet-hint.is-on .closet-hint__swipe i:nth-child(2) { animation-name: hint-trail; animation-delay: 70ms; }
  .closet-hint.is-on .closet-hint__swipe i:nth-child(3) { animation-name: hint-trail; animation-delay: 140ms; }
  .closet-hint.is-on .closet-hint__wheel i { animation: hint-wheel 1.6s var(--ease-in-out) infinite; }
}
/* el dedo se apoya, arrastra hacia la izquierda y se levanta (como al pasar una cartera) */
@keyframes hint-swipe {
  0% { translate: 0 0; scale: 0.6; opacity: 0; }
  14% { translate: 0 0; scale: 1; opacity: 1; }
  62% { translate: -28px 0; scale: 1; opacity: 1; }
  80%, 100% { translate: -28px 0; scale: 0.6; opacity: 0; }
}
@keyframes hint-trail {
  0%, 14% { translate: 0 0; opacity: 0; }
  30% { opacity: 0.45; }
  62% { translate: -24px 0; opacity: 0.3; }
  74%, 100% { translate: -24px 0; opacity: 0; }
}
@keyframes hint-wheel {
  0% { translate: 0 0; opacity: 0; }
  20% { opacity: 1; }
  70% { translate: 0 8px; opacity: 1; }
  100% { translate: 0 8px; opacity: 0; }
}
/* mientras alguien desliza el clóset de lado la página no se engancha en otra sección */
html.is-swiping { scroll-snap-type: none; scroll-behavior: auto; }
/* «Volver al inicio»: mientras la página sube, nada la engancha a mitad de camino */
html.is-jumping { scroll-snap-type: none; }

/* ---------- el clóset con puertas (js/gate.js) ----------
   Debajo del catálogo el clóset llega cerrado, con un lazo atado entre las manillas. Mientras está
   cerrado su recorrido mide una pantalla y lo que va después (data-inside) no se muestra. */
:root {
  --wd-frame: #e6c7d3;   /* el mueble */
  --wd-edge: #d6abbd;    /* cornisa y zócalo */
  --wd-door: #f6e8ed;    /* las puertas */
  --wd-line: #e0bccb;    /* molduras */
  --wd-in: #f0e5e3;      /* adentro */
}
:root[data-theme="dark"] {
  --wd-frame: #4b2b3c;
  --wd-edge: #3a1f2e;
  --wd-door: #5a3447;
  --wd-line: #75495f;
  --wd-in: #2c1c25;
}
.js.closet-locked [data-inside] { display: none; }
.js .closet-sec { padding-top: 0; }
.js .closet-sec__head { display: none; }
.js .closet-pin { position: relative; }
.js.closet-locked .closet-pin { min-height: var(--pin); }
.js.closet-locked .closet-sec .closet-track { height: auto; }

.gate { display: none; }
.js .gate {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--bar-h) + clamp(10px, 3vh, 34px)) var(--margin) calc(var(--tb) + clamp(18px, 4vh, 44px) + env(safe-area-inset-bottom));
  background: var(--ground);
  text-align: center;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.js:not(.closet-locked) .gate:not(.is-opening), .js .gate[hidden] { display: none; }
.gate.is-dragging { cursor: grabbing; }
.gate__copy { flex: none; display: grid; justify-items: center; gap: 8px; transition: opacity 320ms ease; }
.gate__title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-l); line-height: 1.02; letter-spacing: -0.02em; }
.gate__line { max-width: 34ch; color: var(--muted); font-size: 16px; }
.gate__stage {
  flex: 1 1 0; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 3.4vh, 38px) 0 clamp(22px, 4.4vh, 48px);
  cursor: pointer;
}
.gate__wardrobe {
  position: relative; height: 100%; max-height: 640px; aspect-ratio: 0.68; max-width: min(100%, 520px);
  display: flex; flex-direction: column;
  transform-origin: 50% 45%;
  scale: calc(1 + var(--zoom, 0) * 1.7);
}
.gate__crown { flex: none; height: 5.5%; margin: 0 -3.5%; border-radius: 8px 8px 3px 3px; background: var(--wd-edge); }
.gate__body { position: relative; flex: 1 1 auto; min-height: 0; padding: 4.5% 4.5% 4%; background: var(--wd-frame); }
.gate__base { position: relative; flex: none; height: 4.5%; margin: 0 -1.5%; border-radius: 3px 3px 6px 6px; background: var(--wd-edge); }
.gate__base::before, .gate__base::after { content: ""; position: absolute; top: 100%; width: 8%; height: 120%; border-radius: 0 0 5px 5px; background: var(--rail-1); }
.gate__base::before { left: 7%; }
.gate__base::after { right: 7%; }
.gate__cab { position: relative; height: 100%; perspective: 1100px; }
/* adentro: el riel con tres carteras colgadas de su lazo (se mecen cuando se abren las puertas) */
.gate__inside {
  position: absolute; inset: 0; overflow: hidden; container-type: size;
  background: var(--wd-in);
  box-shadow: inset 0 22px 26px -18px rgb(40 18 28 / 0.36); /* taste-skill-ignore: sombra de la cornisa dentro del mueble */
}
.gate__rail { position: absolute; left: 5%; right: 5%; top: 11cqh; height: 7px; margin-top: -3px; border-radius: 99px; background: var(--rail-2); box-shadow: inset 0 2px 0 var(--rail-3); }
.gate__hang { position: absolute; left: var(--x); top: 11cqh; width: 0; height: 0; transform-origin: 0 0; }
.gate__hang::before { content: ""; position: absolute; left: -1.5px; top: 0; width: 3px; height: 6cqh; background: var(--ribbon); }
.gate__hang img { position: absolute; left: 0; top: 5.6cqh; width: auto; max-width: none; height: calc(var(--h) * 1cqh); translate: calc(var(--ax) * -100%) 0; }
.gate__minibow { position: absolute; left: 0; top: 5.6cqh; width: 9cqh; height: auto; aspect-ratio: 100 / 84; max-width: none; translate: -50% -38%; overflow: visible; }
/* las puertas giran hacia afuera desde sus bisagras; el lazo va atado entre las manillas */
.gate__door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: var(--wd-door);
  will-change: transform;
}
.gate__door--l { left: 0; transform-origin: 0 50%; transform: rotateY(calc(var(--open, 0) * -108deg)); box-shadow: inset -1px 0 0 rgb(40 18 28 / 0.12); }
.gate__door--r { right: 0; transform-origin: 100% 50%; transform: rotateY(calc(var(--open, 0) * 108deg)); box-shadow: inset 1px 0 0 rgb(255 255 255 / 0.45); }
.gate__door::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 41%; height: 3.4%; background: var(--ribbon); box-shadow: inset 0 -2px 0 var(--ribbon-2); }
.gate__door::after { content: ""; position: absolute; z-index: 2; inset: 0; background: rgb(40 18 28); opacity: calc(var(--open, 0) * 0.3); pointer-events: none; }
.gate__panel { position: absolute; left: 13%; right: 13%; top: 6%; height: 29%; border-radius: 5px; box-shadow: inset 0 0 0 2px var(--wd-line), inset 3px 3px 0 1px rgb(255 255 255 / 0.4); }
.gate__panel--low { top: 50%; height: 43%; }
.gate__handle { position: absolute; z-index: 1; top: 34%; height: 18%; width: 6%; max-width: 9px; min-width: 5px; border-radius: 99px; background: var(--rail-2); box-shadow: inset 1px 0 0 var(--rail-3), 0 2px 3px rgb(40 18 28 / 0.22); }
.gate__door--l .gate__handle { right: 7%; }
.gate__door--r .gate__handle { left: 7%; }
.gate__bow {
  position: absolute; z-index: 3; left: 50%; top: 42.7%;
  width: 30%; max-width: 124px; height: auto; aspect-ratio: 100 / 84; overflow: visible;
  translate: -50% -40%; transform-origin: 50% 40%;
  opacity: clamp(0, 1 - var(--open, 0) * 4.5, 1);
  scale: calc(1 + var(--open, 0) * 1.6);
  rotate: calc(var(--open, 0) * -30deg);
}
/* el botón para deslizar: el círculo rosado se corre y las puertas se entreabren */
.gate__slide {
  position: relative; flex: none;
  width: min(360px, 100%); height: 62px; padding: 0 54px 0 70px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink); color: var(--ground);
  font-size: 16px; font-weight: 600;
  touch-action: pan-y;
  transition: opacity 320ms ease;
}
.gate__slide::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(62px + var(--knob, 0) * (100% - 62px)); border-radius: inherit; background: rgb(237 201 219 / 0.16); }
.gate__knob { position: absolute; z-index: 1; left: 6px; top: 6px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: #24131c; }
.gate__knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .gate__knob { background: #571441; color: #fbeef5; }
.gate__label { position: relative; white-space: nowrap; opacity: clamp(0, 1 - var(--knob, 0) * 1.8, 1); }
.gate__chev { position: absolute; right: 18px; top: 50%; width: 30px; height: 24px; translate: 0 -50%; opacity: calc(0.45 * clamp(0, 1 - var(--knob, 0) * 2, 1)); }
.gate__chev svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gate.is-opening .gate__copy, .gate.is-opening .gate__slide { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* al llegar: el lazo se mece, la flecha empuja y un brillo recorre el texto (como «deslizar para desbloquear») */
  .gate.is-seen:not(.is-touched) .gate__bow { animation: bow-sway 1.8s var(--ease-in-out) infinite alternate; }
  .gate.is-seen:not(.is-touched) .gate__knob svg { animation: gate-nudge 1.9s var(--ease-in-out) infinite; }
  .gate.is-seen:not(.is-touched) .gate__label {
    background: linear-gradient(100deg, var(--ground) 38%, var(--rose) 50%, var(--ground) 62%) 0 0 / 260% 100%; /* taste-skill-ignore: brillo de «desliza para abrir», no es un relleno */
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: gate-shine 2.8s linear infinite;
  }
  .gate.is-opening .gate__hang { animation: gate-swing 1.7s var(--ease-soft) 280ms both; }
  .gate.is-opening .gate__hang:nth-child(3) { animation-delay: 360ms; }
  .gate.is-opening .gate__hang:nth-child(4) { animation-delay: 440ms; }
}
@keyframes gate-nudge { 0%, 62%, 100% { translate: 0 0; } 32% { translate: 5px 0; } }
@keyframes gate-shine { from { background-position: 100% 0; } to { background-position: -160% 0; } }
@keyframes gate-swing { 0% { rotate: 0deg; } 24% { rotate: 8deg; } 50% { rotate: -4.5deg; } 74% { rotate: 2deg; } 100% { rotate: 0deg; } }

/* ---------- escenas fijas: cada una se queda en pantalla mientras el scroll la recorre ---------- */
@property --wk { syntax: "<color>"; inherits: true; initial-value: #e6c3cd; }

/* ---------- 3. una semana ---------- */
.week { position: relative; }
.js .week { height: 640vh; }  /* cada día tiene casi una pantalla de recorrido: no se pasan de golpe */
.week__pin {
  --wk: #e6c3cd;
  --field: var(--wk);
  --hy: 23svh;                              /* dónde cae el lazo */
  --bh: min(54svh, 560px);                  /* alto de la cartera */
  --bw: calc(var(--bh) * 0.9246);           /* 576 / 623 */
  --bow: calc(var(--bh) * 0.19);
  --rw: max(5px, calc(var(--bh) * 0.015));
  --hx: 66%;                                /* dónde cuelga la cartera */
  position: sticky; top: 0;
  height: var(--pin); min-height: 560px;
  overflow: hidden;
  background: var(--field);
  transition: --wk 900ms var(--ease-in-out);
}
:root[data-theme="dark"] .week__pin { --field: color-mix(in oklab, var(--wk) 17%, #1d0f17); }
.week__title { position: absolute; z-index: 3; left: var(--margin); top: calc(var(--bar-h) + 24px); max-width: 10em; font-family: var(--font-display); font-weight: 500; font-size: var(--step-l); line-height: 1.02; letter-spacing: -0.02em; }
/* el día en grande, a la izquierda de la cartera (nada lo tapa) */
.week__now { position: absolute; z-index: 3; left: var(--margin); top: 50%; transform: translateY(-42%); }
.week__giant {
  white-space: nowrap;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: min(10.5vw, 19svh); line-height: 1; letter-spacing: -0.035em;
  color: color-mix(in oklab, var(--wk) 34%, #3f0c2f);
  user-select: none;
}
:root[data-theme="dark"] .week__giant { color: color-mix(in oklab, var(--wk) 72%, #fff); }
/* la ranura del día: el que sale y el que entra ocupan la misma celda; el recorte deja
   aire para las curvas de la cursiva (la M, la J) */
.week__giant { display: grid; justify-items: start; overflow: hidden; padding: 0.1em 0.3em 0.26em 0.14em; margin: -0.1em -0.3em -0.26em -0.14em; }
.week__word { grid-area: 1 / 1; display: block; will-change: transform, opacity; }
.week__hang { position: absolute; left: var(--hx); top: 0; width: 0; height: 0; transform-origin: 0 0; z-index: 2; will-change: transform; }
.week__ribbon { position: absolute; top: -10px; left: calc(var(--rw) / -2); width: var(--rw); height: calc(var(--hy) + 10px); background: var(--ribbon); }
.week__ribbon::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 45%; background: var(--ribbon-2); }
.week__bag {
  position: absolute; top: var(--hy); left: calc(var(--bw) * -0.4514); width: var(--bw); height: var(--bh);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); /* taste-skill-ignore: suaviza el borde recortado de la foto (máscara) */
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); /* taste-skill-ignore: suaviza el borde recortado de la foto (máscara) */
}
.week__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.week__bow { position: absolute; max-width: none; overflow: visible; z-index: 2; width: var(--bow); height: calc(var(--bow) * 0.84); left: calc(var(--bow) / -2); top: calc(var(--hy) - var(--bow) * 0.33); }
.week__fact { margin-top: 14px; font-size: 18px; line-height: 1.45; max-width: 26ch; }
.week__days { position: absolute; z-index: 3; left: var(--margin); bottom: calc(var(--tb) + clamp(18px, 4svh, 40px)); display: flex; flex-wrap: wrap; gap: 0 26px; }
.week__days button {
  padding: 6px 0;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.015em;
  color: var(--muted);
  transition: color 300ms ease, transform var(--t-press) var(--ease-out);
}
.week__days button[aria-pressed="true"] { color: var(--ink); }
.week__days button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .week__days button:hover { color: var(--ink); } }
.week__cta { position: absolute; z-index: 3; right: var(--margin); bottom: calc(var(--tb) + clamp(22px, 4svh, 44px)); margin: 0; }

/* ---------- 4. reels ---------- */
.reels { position: relative; background: #12060d; color: #fbeef5; }
.js .reels { height: 540vh; }
.reels__pin {
  position: sticky; top: 0;
  height: var(--pin); min-height: 600px;
  overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  column-gap: clamp(28px, 5vw, 96px);
  padding: 0 var(--margin);
}
.reels__copy { grid-column: 1; grid-row: 1; justify-self: end; width: min(400px, 100%); position: relative; z-index: 2; }
.reels__title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-l); line-height: 1.02; letter-spacing: -0.02em; }
.reels__texts { display: grid; margin-top: clamp(20px, 4svh, 40px); }
.reels__text { grid-area: 1 / 1; transition: opacity 420ms ease, transform 640ms var(--ease-out), visibility 0s linear 420ms; }
.reels__text:not(.is-on) { opacity: 0; transform: translateY(16px); visibility: hidden; }
.reels__text.is-on { transition-delay: 140ms, 140ms, 0s; }
.reels__name { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -0.01em; }
.reels__desc { margin-top: 10px; font-size: 18px; line-height: 1.45; color: #dcc6d1; max-width: 30ch; }

.phone {
  --ph: min(80svh, 800px);
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 1;
  height: var(--ph); width: calc(var(--ph) * 0.4615);
  padding: calc(var(--ph) * 0.0125);
  border-radius: calc(var(--ph) * 0.072);
  background: #050104;
  outline: 1.5px solid #3d2733; outline-offset: -1.5px;
  will-change: transform;
}
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 4px; background: #2b1a24; }
.phone::before { left: -3px; top: 19%; height: 8%; }
.phone::after { right: -3px; top: 25%; height: 12%; }
.phone__screen {
  position: relative; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--ph) * 0.06);
  background: #000;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.phone__island { position: absolute; z-index: 5; top: calc(var(--ph) * 0.014); left: 50%; width: 30%; height: calc(var(--ph) * 0.034); transform: translateX(-50%); border-radius: 99px; background: #000; }
.phone__track { position: absolute; inset: 0; transform: translateY(calc(var(--k, 0) * -100%)); transition: transform 780ms var(--ease-in-out); will-change: transform; }
/* esquinas redondeadas del teléfono como máscara suave (solo en pantallas chicas; ver scenes.js) */
.phone__corners { display: none; }
.reel { position: absolute; left: 0; top: calc(var(--i, 0) * 100%); width: 100%; height: 100%; background: #000; }
.reel video { width: 100%; height: 100%; object-fit: cover; }

.reel-ui { position: absolute; inset: 0; z-index: 3; color: #fff; pointer-events: none; transition: opacity 500ms ease; }
.reel-ui::before, .reel-ui::after { content: ""; position: absolute; left: 0; right: 0; background: rgb(0 0 0 / 0.55); pointer-events: none; }
.reel-ui::before { top: 0; height: 16%;
  -webkit-mask-image: linear-gradient(#000, transparent); /* taste-skill-ignore: velo de legibilidad del reel (máscara), como en Instagram */
  mask-image: linear-gradient(#000, transparent); /* taste-skill-ignore: velo de legibilidad del reel (máscara) */ }
.reel-ui::after { bottom: 0; height: 44%;
  -webkit-mask-image: linear-gradient(transparent, #000); /* taste-skill-ignore: velo de legibilidad del reel (máscara), como en Instagram */
  mask-image: linear-gradient(transparent, #000); /* taste-skill-ignore: velo de legibilidad del reel (máscara) */ }
.reel-ui > * { position: absolute; z-index: 1; pointer-events: auto; }
.reel-ui__top { left: 16px; top: calc(var(--ph) * 0.06); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.reel-ui__sound {
  right: 12px; top: calc(var(--ph) * 0.052);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(0 0 0 / 0.4);
  transition: transform var(--t-press) var(--ease-out);
}
.reel-ui__sound svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reel-ui__sound .i-spk { fill: #fff; stroke: none; }
.reel-ui__sound .i-on, .reel-ui__sound[aria-pressed="true"] .i-off { display: none; }
.reel-ui__sound[aria-pressed="true"] .i-on { display: inline; }
.reel-ui__sound:active { transform: scale(0.9); }
.reel-ui__side { right: 6px; bottom: 19%; display: grid; gap: 8px; justify-items: center; }
.reel-ui__btn { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; transition: transform var(--t-press) var(--ease-out), color 200ms ease; }
.reel-ui__btn svg { width: 28px; height: 28px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reel-ui__btn:active { transform: scale(0.86); }
.reel-ui__btn[data-like][aria-pressed="true"] { color: #ff3d6e; }
.reel-ui__btn[aria-pressed="true"] svg { fill: currentColor; }
.reel-ui__btn.is-pop svg { animation: pop 480ms var(--ease-out); }
@keyframes pop { 30% { transform: scale(1.32); } 65% { transform: scale(0.9); } 100% { transform: none; } }
.reel-ui__meta { left: 14px; right: 64px; bottom: calc(var(--ph) * 0.034); display: grid; gap: 7px; justify-items: start; }
.reel-ui__user { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }
.reel-ui__user a { text-decoration: none; }
.reel-ui__avatar {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: #edc9db; color: #571441;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
}
.reel-ui__follow { padding: 4px 11px; border-radius: 8px; outline: 1px solid rgb(255 255 255 / 0.75); outline-offset: -1px; font-size: 14px; transition: background-color var(--t-hover) ease; }
.reel-ui__cap { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-ui__audio { font-size: 14px; opacity: 0.92; }
.reel-ui__product {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 3px;
  padding: 8px 14px 8px 10px; border-radius: 10px;
  background: rgb(255 255 255 / 0.92); color: #24131c;
  font-size: 14px; font-weight: 600;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.reel-ui__product svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reel-ui__product:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .reel-ui__product:hover { background: #fff; }
  .reel-ui__follow:hover { background: rgb(255 255 255 / 0.16); }
  .reel-ui__btn:hover { transform: scale(1.08); }
}
.reel-ui__burst { left: 50%; top: 44%; width: 104px; height: 104px; margin: -52px 0 0 -52px; color: #fff; opacity: 0; pointer-events: none !important; }
.reel-ui__burst svg { width: 100%; height: 100%; fill: currentColor; }
.reel-ui__burst.is-on { animation: burst 900ms var(--ease-out); }
@keyframes burst {
  0% { opacity: 0; transform: scale(0.3) rotate(-14deg); }
  18% { opacity: 1; transform: scale(1.14) rotate(-8deg); }
  34% { transform: scale(0.94) rotate(-8deg); }
  72% { opacity: 1; transform: scale(1) rotate(-8deg); }
  100% { opacity: 0; transform: translateY(-46px) scale(0.82) rotate(-8deg); }
}
.reels__dots { grid-column: 3; grid-row: 1; justify-self: start; display: grid; gap: 2px; }
.reels__dots button { display: grid; place-items: center; width: 30px; height: 28px; border-radius: 8px; }
.reels__dots button span { display: block; width: 8px; height: 8px; border-radius: 99px; background: #5a3a4b; transition: height 420ms var(--ease-out), background-color 300ms ease; }
.reels__dots button[aria-current="true"] span { height: 24px; background: #edc9db; }
@media (hover: hover) and (pointer: fine) { .reels__dots button:hover span { background: #b892a6; } .reels__dots button[aria-current="true"]:hover span { background: #edc9db; } }

/* ---------- 5. en la calle: el video llena la pantalla y se recoge en la cuadrícula ---------- */
.street { position: relative; }
.js .street { height: 290vh; }
.street__pin { position: sticky; top: 0; height: var(--pin); min-height: 560px; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.street__copy { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 20px; align-items: end; padding: calc(var(--bar-h) + 8px) var(--margin) 20px; }
.street__title { grid-column: 1 / 9; font-family: var(--font-display); font-weight: 500; font-size: var(--step-l); line-height: 1.02; letter-spacing: -0.02em; }
.street__aside { grid-column: 9 / 13; }
.street__statement { font-size: 18px; line-height: 1.45; max-width: 34ch; }
.street__more { margin-top: 8px; font-size: 16px; }
.zgrid {
  position: relative; z-index: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr 1.32fr 1fr; grid-template-rows: 1fr 1.32fr 1fr; gap: 8px;
  padding: 0 8px 8px;
}
/* mientras llega cada foto, su celda ya tiene el color de la foto (nunca un cuadro gris) */
.zgrid__cell { position: relative; overflow: hidden; min-height: 0; background: var(--ph, var(--ground-2)); }
.zgrid__cell img, .zgrid__cell video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zgrid__cell--hero { z-index: 1; }

/* ---------- 7. cómo pedir ---------- */
.steps { position: relative; padding: clamp(120px, 14vh, 200px) var(--margin) clamp(80px, 10vh, 140px); }
.steps__title { position: absolute; top: clamp(120px, 14vh, 200px); left: var(--margin); max-width: 9ch; }
.steps__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; }
.step--1 { grid-column: 5 / 8; }
.step--2 { grid-column: 8 / 13; }
.step__tile { position: relative; overflow: hidden; display: grid; place-items: center; }
.step--1 .step__tile { height: 34vh; min-height: 240px; }
.step--2 .step__tile { height: 62vh; min-height: 420px; }
.step__tile--rosa { background: var(--field-rosa); }
.step__tile--beige { background: var(--field-beige); }
.step__hang { position: absolute; left: 50%; bottom: 7%; height: 84%; aspect-ratio: 265 / 420; transform: translateX(-50%); transform-origin: 50% 0; }
.step__bag { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.step--2 .step__tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step__name { margin-top: 16px; font-size: 18px; font-weight: 600; }
.step__text { margin-top: 6px; font-size: 16px; color: var(--muted); max-width: 36ch; }
.step__swatches { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 10px; }
.step__swatches span { width: 16px; height: 16px; border-radius: 50%; background: var(--c); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 300ms ease, transform 300ms var(--ease-out); }
.step__swatches span.is-on { outline-color: var(--ink); transform: scale(1.12); }
.step { transition: opacity 500ms ease; }
.steps.is-live .step:not(.is-active) .step__tile { filter: saturate(0.7); }
.step__tile { transition: filter 500ms ease; }

/* «Así de fácil» como escena en tres momentos: eliges el color, cae el llavero y el mensaje
   se escribe solo con lo que elegiste */
.js .steps { height: 320vh; padding: 0; }
.step__tag {
  position: absolute; left: 16px; top: 16px; z-index: 4;
  padding: 7px 12px; border-radius: var(--radius);
  background: var(--panel); color: var(--ink); font-size: 14px;
  opacity: 0; transform: translate3d(0, -8px, 0) scale(0.7) rotate(-6deg);
  transition: opacity 260ms ease, transform 620ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step__tag strong { font-weight: 700; color: var(--accent); }
.step__tag.is-on { opacity: 1; transform: rotate(-4deg); }
.chat__photo {
  position: relative; width: 92px; aspect-ratio: 265 / 420;
  padding: 6px; border-radius: 14px 14px 4px 14px; background: #d9fdd3;
  transform-origin: 100% 100%;
  transition: opacity 300ms ease, transform 520ms var(--ease-out);
}
.chat__photo img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.chat__photo .charm { filter: none; }
.js .chat:not(.is-on) .chat__photo { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.9); }
.chat__typing {
  justify-self: start; display: flex; gap: 4px; align-items: center;
  padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--panel);
  opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 300ms ease 600ms, transform 460ms var(--ease-out) 600ms;
}
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.js .chat.is-sent .chat__typing { opacity: 1; transform: none; }
.chat__typing { display: none; }
.js .chat__typing { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .chat.is-sent .chat__typing span { animation: typing 1.1s ease-in-out infinite; }
  .chat.is-sent .chat__typing span:nth-child(2) { animation-delay: 0.15s; }
  .chat.is-sent .chat__typing span:nth-child(3) { animation-delay: 0.3s; }
}
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
.steps__pin { position: relative; }
.js .steps__pin { position: sticky; top: 0; height: var(--pin); min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--margin) clamp(36px, 6svh, 72px); }
/* el paso de ahora, en grande, entre el título y las fotos */
.steps__now { display: none; }
.js .steps__now {
  display: block; position: absolute; left: var(--margin); top: 37%; transform: translateY(-50%);
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: min(9.5vw, 13svh); line-height: 1; letter-spacing: -0.035em;
  color: var(--accent); white-space: nowrap; user-select: none;
}
.js .steps__now { display: grid; justify-items: start; overflow: hidden; padding: 0.1em 0.3em 0.24em 0.14em; margin: -0.1em -0.3em -0.24em -0.14em; }
.steps__word { grid-area: 1 / 1; display: block; }
.chat { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; justify-items: end; gap: 10px; }
.chat__bubble {
  max-width: min(340px, 100%);
  padding: 10px 12px 8px; border-radius: 16px 16px 4px 16px;
  background: #d9fdd3; color: #111b21;
  font-size: 16px; line-height: 1.4; text-align: left;
  transform-origin: 100% 100%;
  transition: opacity 300ms ease, transform 460ms var(--ease-out);
}
.js .chat:not(.is-on) .chat__bubble { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.96); }
.chat__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.18em; background: currentColor; }
@media (prefers-reduced-motion: no-preference) { .chat__caret { animation: caret 1s steps(1) infinite; } }
@keyframes caret { 50% { opacity: 0; } }
.chat__caret, .chat__meta { display: none; }
.js .chat__caret { display: inline-block; }
.js .chat.is-sent .chat__caret { display: none; }
.js .chat__meta { display: block; margin-top: 2px; text-align: right; font-size: 14px; color: #027eb5; opacity: 0; transition: opacity 300ms ease; }
.js .chat.is-sent .chat__meta { opacity: 1; }
.chat__ticks { display: inline-block; width: 18px; height: 11px; margin-left: 2px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chat__bubble { display: none; }
.js .chat__bubble { display: block; }
.chat__send {
  display: inline-flex; align-items: center; padding: 11px 18px; border-radius: var(--radius);
  background: var(--ink); color: var(--ground); font-size: 16px; font-weight: 600; text-decoration: none;
  transition: opacity 300ms ease, transform 420ms var(--ease-out), background-color var(--t-hover) ease;
}
.js .chat:not(.is-sent) .chat__send { opacity: 0; transform: translate3d(0, 10px, 0); pointer-events: none; }
.chat__send:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chat__send:hover { background: var(--accent); color: var(--accent-ink); } }

/* el cupón llega inclinado y se endereza; la postal sube y el sello se estampa */
.coupon, .postcard { transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-stamp]:not(.is-stamped) { opacity: 0; }
  [data-stamp].is-stamped { animation: stamp 760ms var(--ease-out) backwards; }
}
@keyframes stamp { from { opacity: 0; transform: rotate(16deg) scale(1.8); } 60% { opacity: 1; transform: rotate(1deg) scale(0.94); } to { opacity: 1; transform: rotate(3deg); } }

/* ---------- 6. catálogo: el estante ----------
   Sin JavaScript es una lista. Con JavaScript es una escena fija: cada tramo de scroll cuelga
   en grande una cartera (con su llavero) y pasa por sus colores; el fondo cambia con la categoría.
   En la computadora la lista queda a la derecha con una tarjeta en la fila de ahora; en el
   teléfono la lista es una tira de miniaturas y cada deslizada es una cartera. */
.shelf-sec { position: relative; background: var(--shelf-bg, var(--field-rosa)); transition: background-color 900ms var(--ease-in-out); }
.shelf { padding: 24px max(var(--margin), calc((100% - 1320px) / 2)) clamp(100px, 12vh, 160px); }
.shelf__head, .shelf__stage, .shelf__swatches, .shelf__open { display: none; }
.menu-list__cat { display: flex; justify-content: space-between; align-items: baseline; margin: 96px 0 40px; }
.menu-list__cat:first-of-type { margin-top: 40px; }
.menu-list__name { font-family: var(--font-display); font-weight: 500; font-size: var(--step-l); letter-spacing: -0.02em; line-height: 1.05; }
.menu-list__count { font-size: 16px; color: var(--muted); }
.menu-list__items { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 64px; }
.item { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; }
.item__thumb { width: 84px; height: 104px; object-fit: contain; padding: 8px; border-radius: 14px; background: var(--panel); }
.item__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item__name { font-size: 18px; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .item__name:hover { text-decoration-color: currentColor; } }
.item__price { font-size: 16px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item__desc { margin-top: 6px; font-size: 16px; color: var(--muted); max-width: 42ch; }
.item__note { margin-top: 6px; font-size: 16px; color: var(--accent); }
:root[data-theme="dark"] .item__note { color: var(--accent); }

.js .shelf-sec { height: 720vh; }  /* casi una pantalla por cartera: el scroll ya no las pasa de golpe */
.js .shelf {
  position: sticky; top: 0; height: var(--pin); min-height: 620px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: clamp(32px, 5vw, 96px);
  padding: calc(var(--bar-h) + 10px) max(var(--margin), calc((100% - 1320px) / 2)) clamp(22px, 4svh, 44px);
}
.js .shelf__head { display: flex; grid-column: 1; grid-row: 1; align-items: baseline; justify-content: space-between; gap: 16px; position: relative; z-index: 2; }
/* la categoría cambia en su ranura, como los días de la semana */
.shelf__cat {
  display: grid; justify-items: start; overflow: hidden;
  padding: 0.08em 0.3em 0.22em 0.12em; margin: -0.08em -0.3em -0.22em -0.12em;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(36px, 4.2vw, 64px); line-height: 1; letter-spacing: -0.025em; white-space: nowrap;
}
.shelf__cat > span { grid-area: 1 / 1; display: block; }
.shelf__count { display: flex; align-items: baseline; gap: 6px; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.shelf__count span:first-child { font-family: var(--font-display); font-size: clamp(28px, 2.4vw, 36px); color: var(--ink); }
.js .shelf__stage {
  --hy: 8svh; --bh: min(41svh, 430px);
  --rw: max(5px, calc(var(--bh) * 0.015)); --bow: calc(var(--bh) * 0.19);
  display: block; grid-column: 1; grid-row: 2; position: relative; min-height: 0;
  cursor: pointer;
}
.shelf__hang { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.shelf__ribbon { position: absolute; top: -60vh; left: calc(var(--rw) / -2); width: var(--rw); height: calc(60vh + var(--hy)); background: var(--ribbon); }
.shelf__ribbon::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 45%; background: var(--ribbon-2); }
.shelf__bag {
  --h: calc(var(--bh) * var(--s, 1));
  position: absolute; top: var(--hy);
  height: var(--h); width: calc(var(--h) * var(--ar, 0.77));
  left: calc(var(--h) * var(--ar, 0.77) * var(--ax, 0.42) * -1);
}
.shelf__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.shelf__bow { position: absolute; max-width: none; overflow: visible; z-index: 2; width: var(--bow); height: calc(var(--bow) * 0.84); left: calc(var(--bow) / -2); top: calc(var(--hy) - var(--bow) * 0.33); }
.shelf__caption { display: none; }
.js .shelf__caption { display: block; grid-column: 1; grid-row: 3; text-align: center; position: relative; z-index: 2; }
.shelf__name { font-family: var(--font-display); font-weight: 500; font-size: var(--step-l); line-height: 1.02; letter-spacing: -0.02em; }
.shelf__meta { margin-top: 6px; font-size: 16px; color: var(--muted); }
.js .shelf__swatches { margin-top: 12px; display: flex; justify-content: center; gap: 12px; }
.shelf__swatches span { width: 16px; height: 16px; border-radius: 50%; background: var(--c); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 300ms ease, transform 300ms var(--ease-out); }
.shelf__swatches span.is-on { outline-color: var(--ink); transform: scale(1.12); }
.shelf__desc { margin: 10px auto 0; max-width: 44ch; font-size: 16px; line-height: 1.45; }
.js .shelf__open { display: inline-flex; margin-top: 14px; }
.js .shelf__list { grid-column: 2; grid-row: 1 / 4; align-self: center; position: relative; }
.js .shelf .menu-list__cat { position: relative; margin: 26px 0 8px; }
.js .shelf .menu-list__cat:first-of-type { margin-top: 0; }
.js .shelf .menu-list__name { font-size: clamp(24px, 2.2vw, 32px); }
.js .shelf .menu-list__items { grid-template-columns: 1fr; gap: 2px; }
.js .shelf .item { position: relative; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 8px 14px; border-radius: 16px; cursor: pointer; }
.js .shelf .item__thumb { width: 46px; height: 56px; padding: 4px; border-radius: 10px; }
.js .shelf .item__desc, .js .shelf .item__note { display: none; }
.shelf__marker {
  position: absolute; left: 0; right: 0; top: 0; height: 0;
  border-radius: 16px; background: var(--panel);
  opacity: 0;
  transition: transform 560ms var(--ease-out), height 560ms var(--ease-out), opacity 300ms ease;
}
.shelf__marker.is-on { opacity: 1; }
.item__thumb { transition: transform 600ms var(--ease-out), outline-color 300ms ease; outline: 2px solid transparent; outline-offset: 2px; }
.item.is-active .item__thumb { transform: rotate(-3deg) scale(1.06); }
@media (hover: hover) and (pointer: fine) { .js .shelf .item:not(.is-active):hover .item__thumb { transform: scale(1.06); } }

/* ---------- tienda: todas las carteras (buscador, filtros, orden y vista; arma js/shop.js) ----------
   Inspirada en el catálogo de VTS: título grande y buscador arriba, filtros al lado (en el teléfono
   suben en una hoja), contador, orden, cuadrícula o lista y tarjetas con su cartera colgando. */
.shop { display: none; }
.js .shop {
  display: block; position: relative;
  padding: clamp(110px, 13vh, 180px) max(var(--margin), calc((100% - 1320px) / 2)) clamp(90px, 11vh, 150px);
  /* al filtrar, el navegador no «persigue» las tarjetas moviendo la página (bajaba unos 50 px);
     de mantener los resultados a la vista se encarga shop.js */
  overflow-anchor: none;
}
.shop__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.shop__kicker { margin-bottom: 8px; font-family: var(--font-display); font-style: italic; font-size: var(--step-m); line-height: 1.2; color: var(--muted); }
.shop__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 5.4vw, 84px); line-height: 0.98; letter-spacing: -0.035em; }
.shop__lead { margin-top: 16px; font-size: 18px; line-height: 1.45; max-width: 44ch; }
.shop__label { position: relative; display: block; }
.shop__glass { position: absolute; z-index: 1; left: 22px; top: 50%; width: 22px; height: 22px; translate: 0 -50%; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; transition: stroke 300ms ease, scale 300ms var(--ease-out); }
.shop__field {
  height: 62px; width: 100%; border: 0; border-radius: var(--radius);
  padding: 0 58px 0 58px; background: var(--panel); color: var(--ink); font-size: 17px;
  outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color 300ms ease, background-color 300ms ease;
  appearance: none; -webkit-appearance: none;
}
.shop__field::placeholder { color: var(--muted); }
.shop__field::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.shop__field:focus { outline-color: var(--accent); background: var(--ground); }
.shop__label:focus-within .shop__glass { stroke: var(--accent); scale: 1.1; }
.shop__clear { position: absolute; right: 11px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ground-2); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.shop__clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.shop__clear:active { transform: scale(0.88); }
.shop__clear[hidden] { display: none; }
.shop__bar { display: none; }
.shop__body { margin-top: clamp(36px, 6vh, 64px); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 56px); align-items: start; }
.shop__aside { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; scrollbar-width: thin; padding-right: 6px; transition: top 420ms var(--ease-out); }
.bar:not(.is-hidden) ~ main .shop__aside { top: calc(var(--bar-h) + 16px); }

/* el panel de filtros */
.sf__group { padding: 2px 0 22px; }
.sf__title { margin-bottom: 8px; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.sf__opts { display: grid; gap: 2px; }
.sf__opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 14px; text-align: left; font-size: 16px;
  transition: background-color 260ms ease, color 260ms ease, transform var(--t-press) var(--ease-out);
}
.sf__opt:active, .sf__color:active { transform: scale(0.97); }
.sf__box { flex: none; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: var(--ground-3); transition: background-color 260ms ease; }
.sf__box svg { width: 12px; height: 12px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 380ms var(--ease-out); }
.sf__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf__n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color 260ms ease; }
.sf__opt[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.sf__opt[aria-pressed="true"] .sf__box { background: var(--rose); }
.sf__opt[aria-pressed="true"] .sf__box svg { stroke-dashoffset: 0; }
.sf__opt[aria-pressed="true"] .sf__n { color: var(--ground-3); }
.sf__opt:disabled, .sf__color:disabled { opacity: 0.38; cursor: not-allowed; }
.sf__colors { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.sf__color { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; font-size: 16px; text-align: left; transition: background-color 260ms ease, transform var(--t-press) var(--ease-out); }
.sf__color .sf__n { margin-left: auto; }
.sf__dot { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 300ms ease, transform 420ms var(--ease-out); }
.sf__color[aria-pressed="true"] { background: var(--panel); }
/* de noche los colores oscuros (negro) llevan un aro claro para que se vean */
:root[data-theme="dark"] .sf__dot { outline-color: rgb(255 255 255 / 0.22); }
:root[data-theme="dark"] .card__dot { outline: 2px solid rgb(255 255 255 / 0.18); outline-offset: 1px; }
.sf__color[aria-pressed="true"] .sf__dot { outline-color: var(--ink); transform: scale(1.12); }
@media (hover: hover) and (pointer: fine) {
  .sf__opt:not([aria-pressed="true"]):not(:disabled):hover, .sf__color:not(:disabled):hover { background: var(--ground-2); }
  .sf__color:not(:disabled):hover .sf__dot { transform: scale(1.14); }
}
/* los grupos de filtros entran uno tras otro (al aparecer la tienda y al abrir la hoja) */
@media (prefers-reduced-motion: no-preference) {
  .js .shop:not(.is-seen) .shop__aside .sf__group { opacity: 0; }
  .shop.is-seen .shop__aside .sf__group, .shop-sheet.is-open .sf__group { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
}

/* la barra de resultados */
.shop__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.shop__count { margin-right: auto; font-size: 16px; color: var(--muted); }
.shop__count strong { display: inline-block; margin-right: 4px; font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.shop__sort { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 4px 0 18px; border-radius: var(--radius); background: var(--panel); }
.shop__sort-label { font-size: 14px; color: var(--muted); }
.shop__sort select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; height: 42px; padding: 0 38px 0 4px; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; }
.shop__sort select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.shop__chev { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: transform 300ms var(--ease-out); }
.shop__sort:focus-within .shop__chev { transform: rotate(180deg); }
.shop__view { position: relative; display: grid; grid-auto-flow: column; padding: 4px; border-radius: var(--radius); background: var(--panel); }
.shop__view-knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 42px; border-radius: var(--radius); background: var(--ink); transform: translateX(calc(var(--k, 0) * 100%)); transition: transform 460ms var(--ease-out); }
.shop__view button { position: relative; z-index: 1; width: 42px; height: 38px; display: grid; place-items: center; color: var(--muted); transition: color 300ms ease, transform var(--t-press) var(--ease-out); }
.shop__view button:active { transform: scale(0.9); }
.shop__view button[aria-pressed="true"] { color: var(--ground); }
.shop__view svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.shop__chips:empty { display: none; }
.shop__chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px 8px 15px; border-radius: var(--radius); background: var(--ink); color: var(--ground); font-size: 15px; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.shop__chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.shop__chip:active { transform: scale(0.94); }
.shop__chip--all { padding: 8px 6px; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 0.22em; }
@media (hover: hover) and (pointer: fine) { .shop__chip:not(.shop__chip--all):hover { background: var(--accent); color: var(--accent-ink); } }

/* las tarjetas: la cartera cuelga de su lazo, como en el riel */
.shop__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.card { min-width: 0; }
.card__in { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--panel); transition: transform 460ms var(--ease-out); }
.card__photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ground-2); cursor: pointer; }
.card__ribbon { position: absolute; left: calc(50% - 2px); top: 0; width: 4px; height: 11%; background: var(--ribbon); }
.card__ribbon::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 45%; background: var(--ribbon-2); }
.card__bow { position: absolute; z-index: 2; left: calc(50% - 21px); top: calc(11% - 14px); width: 42px; height: 36px; max-width: none; overflow: visible; transition: rotate 600ms var(--ease-out); }
.card__bag {
  position: absolute; left: 50%; top: 11%;
  height: calc(76% * var(--sz, 1)); aspect-ratio: var(--ar);
  translate: calc(var(--ax) * -100%) calc(var(--ay) * -100%);
  transform-origin: calc(var(--ax) * 100%) calc(var(--ay) * 100%);
  transition: scale 700ms var(--ease-out);
}
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card__img.dye[hidden] { display: none; }
/* las etiquetas van abajo de la foto, lejos de la cinta y el lazo (arriba chocaban con ellos) */
.card__tags { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: flex-end; gap: 6px 8px; pointer-events: none; }
.card__tag { padding: 6px 12px; border-radius: var(--radius); background: var(--panel); font-size: 14px; line-height: 1.2; white-space: nowrap; }
/* en tarjetas angostas no caben dos etiquetas en una fila (la segunda tapaba la cartera):
   queda solo la destacada («Pocas unidades»); la categoría ya está en los filtros */
.card__photo { container-type: inline-size; }
@container (max-width: 270px) {
  .card__tags:has(.card__tag--hi) .card__tag:not(.card__tag--hi) { display: none; }
}
.card__tag--hi { background: var(--accent); color: var(--accent-ink); }
.card__body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.card__kind { font-size: 14px; color: var(--muted); }
.card__name { margin-top: 2px; font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.05; letter-spacing: -0.015em; transition: color var(--t-hover) ease; }
.card__color { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 16px; }
.card__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.card__more { color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__price { font-size: 15px; color: var(--muted); }
.card__add { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--ground); transition: background-color 260ms ease, color 260ms ease, transform var(--t-press) var(--ease-out); }
.card__add svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: opacity 240ms ease, transform 460ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.card__check { opacity: 0; transform: scale(0.4) rotate(-45deg); }
.card__add:active { transform: scale(0.86); }
.card__add.is-added { background: var(--accent); color: var(--accent-ink); }
.card__add.is-added .card__plus { opacity: 0; transform: scale(0.4) rotate(90deg); }
.card__add.is-added .card__check { opacity: 1; transform: none; }
.card__photo:active .card__bag { scale: 0.97; }
@media (prefers-reduced-motion: no-preference) {
  .card__add.is-added { animation: add-pop 560ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) {
    .card:hover .card__bag { animation: card-swing 1.9s var(--ease-in-out); }
  }
}
@keyframes add-pop { 35% { transform: scale(1.18); } 100% { transform: none; } }
@keyframes card-swing { 18% { rotate: 4deg; } 42% { rotate: -2.6deg; } 66% { rotate: 1.3deg; } 100% { rotate: 0deg; } }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__in { transform: translateY(-6px); }
  .card:hover .card__bag { scale: 1.05; }
  .card:hover .card__bow { rotate: -7deg; }
  .card:hover .card__name { color: var(--accent); }
  .card__add:hover { background: var(--accent); color: var(--accent-ink); }
}
/* vista de lista (en la computadora): cada cartera es una fila */
@media (min-width: 821px) {
  .shop__grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .is-list .card__in { flex-direction: row; border-radius: 20px; }
  .is-list .card__photo { flex: none; width: 150px; aspect-ratio: auto; min-height: 176px; }
  .is-list .card__tags { display: none; }
  .is-list .card__body { flex-direction: row; align-items: center; gap: 24px; padding: 18px 24px; }
  .is-list .card__info { flex: 1; min-width: 0; }
  .is-list .card__foot { margin-top: 0; padding-top: 0; gap: 18px; }
}
/* teléfono: una tarjeta por modelo; el color se elige en los puntos y la cartera se tiñe (shop.js) */
.card__dots { display: flex; flex-wrap: wrap; margin: 6px -5px 0; }
.card__sw { width: 23px; height: 30px; display: grid; place-items: center; }
.card__sw::before { content: ""; width: 15px; height: 15px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(40 18 28 / 0.14); transition: box-shadow 260ms ease, transform 300ms var(--ease-out); }
.card__sw[aria-checked="true"]::before { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--ink); }
.card__sw:active::before { transform: scale(0.82); }
:root[data-theme="dark"] .card__sw::before { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
:root[data-theme="dark"] .card__sw[aria-checked="true"]::before { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--ink); }
.shop__empty { margin-top: 22px; padding: 56px 24px; border-radius: 24px; background: var(--panel); text-align: center; }
.shop__empty[hidden] { display: none; }
.shop__empty-bow { width: 74px; height: auto; aspect-ratio: 100 / 84; margin: 0 auto; overflow: visible; transform-origin: 50% 30%; }
@media (prefers-reduced-motion: no-preference) { .shop__empty-bow { animation: bow-sway 1.6s var(--ease-in-out) infinite alternate; } }
.shop__empty-title { margin-top: 16px; font-family: var(--font-display); font-weight: 500; font-size: 30px; }
.shop__empty-text { margin-top: 6px; color: var(--muted); }
.shop__empty .pill { margin-top: 18px; }

/* la hoja de filtros del teléfono */
.shop-sheet { position: fixed; inset: 0; z-index: 75; }
.shop-sheet[hidden] { display: none; }
.shop-sheet__scrim { position: absolute; inset: 0; background: rgb(28 10 20 / 0.42); opacity: 0; transition: opacity 380ms ease; }
.shop-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86svh;
  display: flex; flex-direction: column;
  border-radius: 26px 26px 0 0; background: var(--ground);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translate3d(0, 104%, 0); transition: transform 560ms var(--ease-out);
}
.shop-sheet.is-open .shop-sheet__scrim { opacity: 1; }
.shop-sheet.is-open .shop-sheet__panel { transform: none; }
.shop-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 6px; }
.shop-sheet__title { font-family: var(--font-display); font-weight: 500; font-size: 30px; }
.shop-sheet__x { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ground-2); transition: transform var(--t-press) var(--ease-out); }
.shop-sheet__x:active { transform: scale(0.9); }
.shop-sheet__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.shop-sheet__body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 18px 10px; }
.shop-sheet__foot { display: flex; gap: 10px; padding: 12px 18px 16px; }
.shop-sheet__clear, .shop-sheet__go { height: 54px; border-radius: var(--radius); font-weight: 600; font-size: 16px; transition: transform var(--t-press) var(--ease-out); }
.shop-sheet__clear { flex: 1; background: var(--ground-2); }
.shop-sheet__go { flex: 2; background: var(--ink); color: var(--ground); }
.shop-sheet__clear:active, .shop-sheet__go:active { transform: scale(0.97); }

/* ---------- 7. cupón ---------- */
.coupon-sec { padding: clamp(80px, 10vh, 120px) var(--margin) clamp(100px, 12vh, 160px); }
.coupon {
  --cut: 46%;
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: var(--cut) 1fr;
  min-height: 440px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 14px;
  -webkit-mask: radial-gradient(circle 15px at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 15px at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: muescas del cupón */
  mask: radial-gradient(circle 15px at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 15px at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: muescas del cupón */
}
:root[data-theme="dark"] .coupon { background: #6b2552; color: #fbeef5; }
.coupon__left { padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; column-gap: 20px; row-gap: 32px; }
.coupon__title { grid-column: 1; grid-row: 1; }
.coupon__text { grid-column: 1; grid-row: 2; }
/* la cartera elegida cuelga del borde del cupón (en tamaño real comparada con las demás) */
.coupon__preview { display: none; }
.js .coupon__preview {
  --ph: clamp(170px, 24vh, 230px);   /* alto de una cartera de tamaño 1 */
  --rl: 74px;                          /* largo de la cinta desde el borde */
  display: block; grid-column: 2; grid-row: 1 / 3; position: relative;
  width: clamp(150px, 15vw, 200px); margin: -48px 0 -48px;
}
.coupon__hang { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.coupon__ribbon { position: absolute; top: 0; left: -3px; width: 6px; height: var(--rl); background: var(--ribbon); }
.coupon__ribbon::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 45%; background: var(--ribbon-2); }
.coupon__bag {
  --h: calc(var(--ph) * var(--s, 1));
  position: absolute; top: calc(var(--rl) - var(--h) * var(--ay, 0));
  height: var(--h); width: calc(var(--h) * var(--ar, 0.77));
  left: calc(var(--h) * var(--ar, 0.77) * var(--ax, 0.42) * -1);
}
.coupon__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.coupon__bow { position: absolute; z-index: 2; max-width: none; overflow: visible; width: 46px; height: 39px; left: -23px; top: calc(var(--rl) - 15px); }
.coupon__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-l); line-height: 1; letter-spacing: -0.02em; }
.coupon__text { font-size: 16px; max-width: 34ch; }
.coupon__right { padding: 48px; border-left: 5px dotted var(--ground); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.field {
  height: 52px; width: 100%; border: 0; border-radius: 10px;
  background: rgb(255 255 255 / 0.13); color: inherit;
  padding: 0 16px; font-size: 16px;
  transition: background-color var(--t-hover) ease;
  appearance: none; -webkit-appearance: none;
}
select.field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbeef5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field::placeholder { color: inherit; opacity: 0.75; }
.field:focus { outline: 2px solid var(--accent-ink); outline-offset: 2px; background-color: rgb(255 255 255 / 0.2); }
.field option { color: #24131c; background: #fbf8f7; }
.field.is-invalid { outline: 2px solid #ffb3c8; }
.coupon__submit {
  margin-top: 8px; height: 56px; width: 100%; border-radius: 10px;
  background: #1d0b16; color: #fbeef5; font-weight: 600; font-size: 16px;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.coupon__submit:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .coupon__submit:hover { background: #000; } }

/* ---------- pie: la postal ---------- */
.foot { background: var(--accent); color: var(--accent-ink); padding: 120px var(--margin) 0; overflow: clip; }
:root[data-theme="dark"] .foot { background: #3a0b2a; color: #fbeef5; }
.postcard {
  max-width: 1120px; margin: 0 auto;
  min-height: 420px;
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 64px 52px 28px;
  -webkit-mask: radial-gradient(circle 22px at 50% 0, #0000 97%, #000) 0 0 / 92px 100% repeat-x; /* taste-skill-ignore: borde festoneado de la postal */
  mask: radial-gradient(circle 22px at 50% 0, #0000 97%, #000) 0 0 / 92px 100% repeat-x; /* taste-skill-ignore: borde festoneado de la postal */
}
.postcard__sign { font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.postcard__msg { margin-top: 16px; max-width: 34ch; font-size: 16px; }
.postcard__right { position: relative; padding-top: 4px; }
.postcard__stamp { position: absolute; right: 0; top: 0; width: 92px; aspect-ratio: 3 / 4; object-fit: cover; border: 6px solid var(--ground); transform: rotate(3deg); }
/* matasellos: tinta ciruela sobre la esquina del sello */
.postcard__mark { position: absolute; right: 42px; top: 46px; width: 168px; height: auto; overflow: visible; rotate: -11deg; color: var(--accent); opacity: 0.82; pointer-events: none; }
.postcard__mark .pm-ring { fill: none; stroke: currentColor; stroke-width: 2.2; }
.postcard__mark .pm-waves { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.postcard__mark text { fill: currentColor; font-family: var(--font-text); font-weight: 600; }
.postcard__mark .pm-arc { font-size: 10.5px; letter-spacing: 0.14em; }
.postcard__mark .pm-big { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.postcard__mark .pm-small { font-size: 9px; letter-spacing: 0.3em; }
@media (prefers-reduced-motion: no-preference) {
  .js .postcard__mark { opacity: 0; }
  [data-stamp].is-stamped ~ .postcard__mark { animation: postmark 680ms var(--ease-out) 560ms both; }
}
@keyframes postmark { from { opacity: 0; scale: 1.45; rotate: -24deg; } 55% { opacity: 0.9; scale: 0.96; } to { opacity: 0.82; scale: 1; rotate: -11deg; } }
.postcard__lines { display: grid; gap: 12px; padding-top: 120px; font-size: 18px; }
.postcard__imprint { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--muted); align-self: end; }
/* ---------- final: Aresia en grande al pie de la postal; se anima solo al aparecer,
   sin pedir más scroll (la página termina aquí) ---------- */
.finale { position: relative; margin: 0 calc(var(--margin) * -1); }
.finale__pin {
  display: grid; place-content: center; justify-items: center; gap: clamp(10px, 2.4svh, 28px);
  padding: clamp(56px, 9vh, 110px) var(--margin) calc(clamp(56px, 9vh, 110px) + env(safe-area-inset-bottom));
  overflow: hidden;
  text-align: center;
}
.finale__bow { width: clamp(96px, 10vw, 170px); height: auto; aspect-ratio: 100 / 84; overflow: visible; transform-origin: 50% 40%; }
.finale__word, .intro__word {
  font-family: var(--font-display); font-weight: 600;
  font-size: min(26vw, 44svh); line-height: 0.92; letter-spacing: -0.045em;
  color: #edc9db; white-space: nowrap;
  user-select: none;
}
/* la palabra animada (presentación y final): letras que suben y dos tintes en ola */
.word-fx { display: inline-flex; }
.word-fx__char { display: block; overflow: hidden; padding: 0.1em 0.08em 0.14em; margin: -0.1em -0.08em -0.14em; }
.word-fx__rise { display: grid; }
.word-fx__rise > span { grid-area: 1 / 1; }
.word-fx__ghost { color: transparent; -webkit-text-stroke: 1.5px rgb(237 201 219 / 0.55); }
.word-fx__a { color: #d494b1; }
.word-fx__b { color: #edc9db; }
.finale__line, .intro__line { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: var(--step-m); line-height: 1.3; max-width: 30ch; color: #fbeef5; }
/* «Volver al inicio»: lo último de la página; sube hasta el riel. Aparece con el final (scenes.js)
   y ya no se va, así está a mano cada vez que llegas abajo */
.finale__top {
  margin-top: clamp(6px, 1.6svh, 18px);
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 24px 0 18px; border-radius: var(--radius);
  background: #edc9db; color: #3a0b2a;
  font-family: var(--font-text); font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none;
  transition: background-color var(--t-hover) ease, scale var(--t-press) var(--ease-out);
}
.finale__top svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate 360ms var(--ease-out); }
.finale__top:active { scale: 0.96; }
/* con el teclado se ve siempre, aunque la animación del final no haya llegado a mostrarlo */
.finale__top:focus-visible { outline: 2px solid #edc9db; outline-offset: 4px; opacity: 1 !important; transform: none !important; }
@media (hover: hover) and (pointer: fine) {
  .finale__top:hover { background: #fbeef5; }
  .finale__top:hover svg { translate: 0 -3px; }
}

/* ---------- presentación al cargar ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: var(--accent); color: #edc9db;
  text-align: center;
  touch-action: none; overscroll-behavior: none; /* mientras está la presentación, el dedo no mueve la página de abajo */
  transition: transform 1050ms var(--ease-in-out);
}
:root[data-theme="dark"] .intro { background: #3a0b2a; }
.is-intro .intro, .intro.is-leaving { display: grid; }
.intro.is-leaving { transform: translate3d(0, -100%, 0); pointer-events: none; }
.intro__inner { display: grid; justify-items: center; gap: clamp(10px, 2.4svh, 28px); padding: 0 var(--margin); transition: transform 1050ms var(--ease-in-out), opacity 600ms ease; }
.intro.is-leaving .intro__inner { transform: translate3d(0, 40svh, 0); opacity: 0; }
.intro__bow { width: clamp(96px, 10vw, 170px); height: auto; aspect-ratio: 100 / 84; overflow: visible; transform-origin: 50% 40%; opacity: 0; }
.intro__word { font-size: min(24vw, 40svh); visibility: hidden; }
.intro.is-on .intro__word { visibility: visible; }
.intro__line { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .intro.is-waiting .intro__bow { animation: bow-sway 1.4s var(--ease-in-out) infinite alternate; } }
@media (prefers-reduced-motion: reduce) {
  .intro { transition: opacity 600ms ease; }
  .intro.is-leaving { transform: none; opacity: 0; }
  .intro.is-leaving .intro__inner { transform: none; }
}

/* ---------- menú ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--accent); color: var(--accent-ink);
  display: grid;
  clip-path: circle(0 at var(--mx, 40px) var(--my, 32px));
  transition: clip-path 620ms var(--ease-in-out);
}
.menu.is-open { clip-path: circle(150% at var(--mx, 40px) var(--my, 32px)); }
.menu[hidden] { display: none; }
.menu__inner { padding: 22px var(--margin) 40px; display: flex; flex-direction: column; min-height: 100%; }
.menu__close { align-self: flex-start; font-size: 16px; padding: 10px 2px; }
.menu__nav { margin-top: auto; padding-top: 40px; }
.menu__links a { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, min(5.4vw, 8svh), 84px); line-height: 1.04; letter-spacing: -0.03em; text-decoration: none; display: inline-block; transition: transform 400ms var(--ease-out), opacity 300ms ease; }
/* lo de adentro del clóset, más chico y en fila */
.menu__sub { margin-top: clamp(22px, 4svh, 40px); font-family: var(--font-display); font-style: italic; font-size: 18px; opacity: 0.8; }
.menu__more { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.menu__more a { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, min(2.6vw, 4.4svh), 36px); line-height: 1.2; letter-spacing: -0.02em; text-decoration: none; display: inline-block; padding: 4px 0; transition: transform 400ms var(--ease-out), opacity 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .menu__nav:hover a { opacity: 0.55; }
  .menu__links a:hover, .menu__more a:hover { opacity: 1; transform: translateX(10px); }
}
.menu__contact { margin-top: 40px; font-size: 16px; }

/* ---------- pedido ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(430px, 100vw);
  background: var(--panel); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 460ms var(--ease-out), visibility 0s linear 460ms;
  box-shadow: -30px 0 70px -30px rgb(40 18 28 / 0.35); /* taste-skill-ignore: cajón flotante del pedido */
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 520ms var(--ease-out), visibility 0s; }
.drawer__head { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 24px 8px; }
.drawer__title { font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: -0.02em; }
.drawer__close { font-size: 16px; padding: 8px 2px; }
.drawer__list { flex: 1; overflow: auto; padding: 8px 24px; display: grid; align-content: start; gap: 10px; }
.drawer__item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; background: var(--ground); border-radius: 14px; padding: 10px 12px; }
.drawer__item img { width: 60px; height: 72px; object-fit: contain; }
.drawer__item strong { display: block; font-weight: 600; }
.drawer__item span { color: var(--muted); font-size: 16px; }
.drawer__remove { font-size: 14px; color: var(--muted); padding: 8px; }
.drawer__empty { padding: 8px 24px; color: var(--muted); max-width: 36ch; }
.drawer__empty[hidden] { display: none; }
.drawer__foot { padding: 16px 24px 24px; }
.drawer__note { font-size: 14px; color: var(--muted); }
.scrim { position: fixed; inset: 0; z-index: 65; background: rgb(28 10 20 / 0.36); opacity: 0; transition: opacity 360ms ease; }
.scrim.is-on { opacity: 1; }
.scrim[hidden] { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 16px); opacity: 0;
  background: var(--ink); color: var(--ground);
  padding: 12px 20px; border-radius: var(--radius); font-size: 16px;
  transition: opacity 260ms ease, transform 360ms var(--ease-out);
  pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.orderfab { display: none; } /* solo en el teléfono (ver más abajo) */

/* ---------- la pieza: una cartera sola, colgando de su lazo, y sus opciones de compra (js/app.js) ----------
   A la izquierda la cartera cuelga de una cinta que baja desde arriba; a la derecha, nombre, precio,
   color, llavero y los botones. Encima de todo menos del pedido (z 65-70) y del aviso (z 80). */
.is-lifted { visibility: hidden !important; } /* la cartera de la página mientras está «afuera», en la pieza */
.qv {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 36vw); grid-template-rows: minmax(0, 1fr);
  color: var(--ink);
  outline: none;
}
.qv[hidden] { display: none; }
.qv__bg { position: fixed; inset: 0; background: var(--panel); }
.qv__top {
  position: absolute; z-index: 4; top: 16px; right: var(--margin);
  display: flex; align-items: center; gap: 18px;
}
.qv__order { font-size: 16px; padding: 10px 2px; }
.qv__order.is-bump { animation: bump 420ms var(--ease-out); }
.qv__close {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px 0 18px; border-radius: var(--radius);
  background: var(--ground-2); font-size: 16px; font-weight: 500;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.qv__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.qv__close:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .qv__close:hover { background: var(--ground-3); } }

/* el escenario: la cartera cuelga de --rl px de cinta; su caja mide lo mismo que su foto (--iw × --ih)
   y el lazo va en su punto de enganche (--ax, --ay), como en el riel */
.qv__stage { position: relative; z-index: 2; grid-column: 1; grid-row: 1; height: 100%; min-height: 0; }
.qv__pivot { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform-origin: 0 0; transition: opacity 360ms ease; }
.qv__ribbon {
  position: absolute; top: -4px; left: calc(var(--rw, 6px) / -2);
  width: var(--rw, 6px); height: calc(var(--rl, 120px) + 4px);
  background: var(--ribbon); transform-origin: 50% 0;
}
.qv__ribbon::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 45%; background: var(--ribbon-2); }
.qv__hang { position: absolute; left: 0; top: var(--rl, 120px); width: 0; height: 0; }
.qv__bow {
  position: absolute; z-index: 2; pointer-events: none; max-width: none; overflow: visible;
  width: var(--bw, 80px); height: calc(var(--bw, 80px) * 0.84);
  left: calc(var(--bw, 80px) / -2); top: calc(var(--bw, 80px) * -0.33);
}
.qv__bag {
  position: absolute;
  width: var(--iw, 300px); height: var(--ih, 400px);
  left: calc(var(--ax, 0.5) * var(--iw, 300px) * -1); top: calc(var(--ay, 0) * var(--ih, 400px) * -1);
  transform-origin: calc(var(--ax, 0.5) * 100%) 0;
}
.qv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.qv__img.dye[hidden] { display: none; }
.qv__stage.is-media .qv__pivot { opacity: 0; }
/* fotos y videos reales: se abren en el lugar de la cartera */
.qv__media {
  position: absolute; z-index: 1; left: 50%; top: calc((100% - 106px) / 2);
  translate: -50% -50%;
  height: min(66%, 640px); aspect-ratio: var(--ar, 1); max-width: 76%;
  border-radius: 14px; overflow: hidden; background: var(--ground-2);
}
.qv__media[hidden] { display: none; }
.qv__media img, .qv__media video { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .qv__media.is-entering { animation: shutter 900ms var(--ease-in-out) both; }
  .qv__media.is-entering > * { animation: settle 1300ms var(--ease-soft) both; }
}
.qv__views { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(18px, 3.4vh, 34px); display: flex; justify-content: center; gap: 10px; }
.qv__views[hidden] { display: none; }
.qv__view {
  position: relative; flex: none; width: 54px; height: 66px; border-radius: 10px; overflow: hidden;
  background: var(--ground-2);
  transition: transform var(--t-press) var(--ease-out);
}
.qv__view::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--ink); opacity: 0; transition: opacity 220ms ease; } /* taste-skill-ignore: borde de la miniatura elegida, no es una sombra */
.qv__view[aria-pressed="true"]::after { opacity: 1; }
.qv__view img { width: 100%; height: 100%; object-fit: cover; }
.qv__view--bag img { object-fit: contain; padding: 6px 4px; }
.qv__view:active { transform: scale(0.95); }
.qv__play { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; translate: -50% -50%; fill: #fff; filter: drop-shadow(0 1px 3px rgb(0 0 0 / 0.45)); } /* taste-skill-ignore: el triángulo de «video» se lee sobre cualquier foto */

/* la columna de la derecha: empieza debajo de «Pedido» y «Cerrar» y se desplaza sola si no cabe
   (lo que sube se desvanece en el borde en vez de cortarse) */
.qv__panel {
  position: relative; z-index: 1; grid-column: 2; grid-row: 1;
  align-self: end; height: calc(100% - 76px); min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding: 0 var(--margin) 48px 12px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22px); /* taste-skill-ignore: máscara del borde al desplazar, no es un relleno */
  mask-image: linear-gradient(to bottom, transparent, #000 22px); /* taste-skill-ignore: máscara del borde al desplazar, no es un relleno */
}
.qv__body { max-width: 440px; padding-top: clamp(26px, calc(15vh - 76px), 84px); }
.qv__kind { font-size: 14px; color: var(--muted); }
.qv__name { margin-top: 6px; font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 3.4vw, 56px); line-height: 1.02; letter-spacing: -0.025em; }
.qv__price { margin-top: 12px; font-size: 16px; }
.qv__blurb { margin-top: 14px; font-size: 16px; line-height: 1.5; max-width: 40ch; }
.qv__opt { margin-top: 22px; }
.qv__label { font-size: 16px; color: var(--muted); }
.qv__label strong { color: var(--ink); font-weight: 600; }
.qv__opt .modes { margin-top: 10px; }
.qv__buy { margin-top: 26px; display: grid; gap: 10px; }
.qv__add, .qv__wa, .qv__send {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; padding: 14px 22px; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; text-decoration: none; text-align: center;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, box-shadow var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.qv__add:active, .qv__wa:active, .qv__send:active { transform: scale(0.98); }
/* «Agregar a mi pedido»: el botón principal, como el «Add to cart» de la referencia; al tocarlo dice que ya está */
.qv__add { background: var(--ink); color: var(--ground); overflow: hidden; }
.qv__add-a, .qv__add-b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 260ms ease, transform 460ms var(--ease-out); }
.qv__add-b { position: absolute; inset: 0; opacity: 0; transform: translate3d(0, 70%, 0); }
.qv__add-b svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qv__add.is-done { background: var(--accent); color: var(--accent-ink); }
.qv__add.is-done .qv__add-a { opacity: 0; transform: translate3d(0, -70%, 0); }
.qv__add.is-done .qv__add-b { opacity: 1; transform: none; }
.qv__wa { justify-content: space-between; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); } /* taste-skill-ignore: borde del botón, no es una sombra */
.qv__wa span { font-weight: 500; color: var(--muted); transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .qv__add:hover { background: var(--accent); color: var(--accent-ink); }
  .qv__wa:hover { background: var(--ink); color: var(--ground); }
  .qv__wa:hover span { color: inherit; }
}

/* «¿No vas a llevar más?»: aparece al agregar, con otras carteras colgando */
.qv__more { margin-top: 22px; padding: 20px 18px 16px; border-radius: 18px; background: var(--ground); }
.qv__more[hidden] { display: none; }
.qv__ok { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; }
.qv__ok strong { font-weight: 600; }
.qv__ok-i { flex: none; width: 22px; height: 22px; margin-top: -1px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.qv__ok-i svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.qv__more-t { margin-top: 16px; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(28px, 2.3vw, 34px); line-height: 1.05; letter-spacing: -0.015em; }
.qv__more-x { margin-top: 6px; font-size: 15px; color: var(--muted); }
.qv__sugs { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qv__sug { display: grid; gap: 2px; width: 100%; text-align: left; }
.qv__sug-photo { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 6px; border-radius: 12px; overflow: hidden; background: var(--ground-2); transition: transform var(--t-press) var(--ease-out); }
.qv__sug:active .qv__sug-photo { transform: scale(0.97); }
.qv__sug-ribbon { position: absolute; left: calc(50% - 1.5px); top: 0; width: 3px; height: 12%; background: var(--ribbon); }
.qv__sug-bow { position: absolute; z-index: 2; left: calc(50% - 14px); top: calc(12% - 9px); width: 28px; height: 24px; max-width: none; overflow: visible; }
.qv__sug-bag {
  position: absolute; left: 50%; top: 12%;
  height: calc(74% * var(--sz, 1)); aspect-ratio: var(--ar, 0.8);
  translate: calc(var(--ax, 0.5) * -100%) 0;
  transform-origin: calc(var(--ax, 0.5) * 100%) 0;
}
.qv__sug-bag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.qv__sug-name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.qv__sug-meta { font-size: 14px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .qv__sug:hover .qv__sug-bag { animation: card-swing 1.9s var(--ease-in-out); }
  .qv__send:hover { background: var(--accent-strong); }
}
.qv__more-foot { margin-top: 16px; display: grid; gap: 2px; justify-items: center; }
.qv__send { background: var(--accent); color: var(--accent-ink); }
.qv__see { font-size: 15px; padding: 10px 4px; }
.qv__panel .acc { margin-top: 24px; }
.qv__ig { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--muted); }

/* teléfono y tablet en vertical: la cartera arriba y debajo sube la hoja con las opciones; baja todo junto */
@media (max-width: 820px) {
  .qv { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .qv__top { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; justify-content: space-between; gap: 10px; }
  .qv__top::before {
    content: ""; position: absolute; z-index: -1;
    left: -12px; right: -12px; top: calc(-10px - env(safe-area-inset-top)); bottom: -10px;
    background: var(--ground); opacity: 0; transition: opacity 220ms ease;
  }
  .qv.is-scrolled .qv__top::before { opacity: 1; }
  .qv__order { height: 42px; padding: 0 16px; border-radius: var(--radius); background: var(--ground-2); }
  .qv__close { height: 42px; padding: 0 14px 0 16px; }
  .qv__stage { height: clamp(340px, 56svh, 560px); }
  .qv__media { top: calc((100% - 76px) / 2 + 22px); height: min(60%, 420px); max-width: 82%; }
  .qv__views { bottom: 24px; gap: 8px; }
  .qv__view { width: 44px; height: 54px; border-radius: 9px; }
  .qv__panel {
    height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none;
    min-height: calc(100svh - clamp(340px, 56svh, 560px) + 14px);
    margin-top: -14px; padding: 24px 18px calc(36px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0; background: var(--ground);
  }
  .qv__body { max-width: none; padding-top: 0; }
  .qv__name { font-size: 36px; }
  .qv__more { margin-left: -4px; margin-right: -4px; padding: 18px 14px 14px; background: var(--panel); }
  .qv__panel .acc__item { background: var(--panel); }
}
@media (min-width: 601px) and (max-width: 820px) {
  .qv__body { max-width: 560px; margin: 0 auto; }
}

/* ---------- entradas ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* el riel entra cuando se levanta la presentación */
  .js:not(.is-intro) .riel__title { animation: rise 900ms var(--ease-out) 350ms backwards; }
  .js:not(.is-intro) .rail { animation: fade 900ms ease 250ms backwards; }
  .js:not(.is-intro) .label { animation: rise-label 900ms var(--ease-out) 850ms backwards; }
  /* títulos: cada palabra sube y aparece (sin recortes: el Safari del iPhone dejaba de dibujar
     la barra y otras capas fijas con decenas de letras recortadas en movimiento) */
  .split__w { display: inline-block; opacity: 0; transform: translateY(0.42em); transition: opacity 700ms ease, transform 950ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .is-in > .split > .split__w { opacity: 1; transform: none; }
  /* la marquesina descansa cuando el riel no se ve */
  .riel.is-off .marquee__track { animation-play-state: paused; }
}
/* las fotos que cargan tarde entran con un fundido (app.js pone .img-wait y luego .img-in) */
.img-wait { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .img-in { animation: img-in 700ms ease both; } }
@keyframes img-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-label { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- teléfono ---------- */
@media (max-width: 820px) {
  :root { --bar-h: 58px; --marquee-h: 38px; }
  .bar__mark { font-size: 26px; }
  .bar__end { gap: 10px; }
  .riel { min-height: 600px; max-height: none; }
  .riel__title { font-size: 19px; }
  .arrow { top: auto; bottom: 120px; width: 44px; height: 44px; }
  .label { bottom: 18px; width: calc(100% - 140px); }
  .label__name { font-size: 30px; }
  .label__meta { font-size: 16px; }

  .closet-sec__head { display: block; }
  .closet-sec__head .lead { margin-top: 14px; }
  .closet { height: auto; margin-top: 40px; }
  .closet__row {
    position: relative; top: 0; justify-content: flex-start;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    padding: 33px 40vw 20px; scrollbar-width: none;
  }
  .closet__row::-webkit-scrollbar { display: none; }
  .closet__rail { top: 28px; }
  .ci { --slot: 112px; height: 330px; scroll-snap-align: center; }

  /* la semana: el título arriba a la izquierda, la cartera cuelga a su derecha y el día va debajo */
  .week__pin { --hx: 60%; --hy: 20svh; --bh: min(34svh, 300px, 80vw); min-height: 520px; }
  .week__title { top: calc(var(--bar-h) + 8px); max-width: 6.6em; font-size: 30px; }
  .week__now { top: calc(var(--hy) + var(--bh) + 6px); right: var(--margin); transform: none; text-align: center; }
  .js .week { height: 460vh; }
  .week__giant { font-size: min(22vw, 10svh); justify-items: center; }
  .week__fact { margin: 6px auto 0; font-size: 16px; }
  .week__days { right: var(--margin); gap: 0 12px; }
  .week__days button { font-size: 16px; padding: 8px 0; }
  .week__cta { right: auto; left: var(--margin); bottom: calc(var(--tb) + clamp(18px, 4svh, 40px) + 54px); }

  /* reels: en el teléfono el reel ocupa toda la pantalla, como en Instagram */
  .js .reels { height: 560vh; }
  .reels__pin { display: block; padding: 0; min-height: 0; }
  .phone { --ph: 100svh; position: absolute; inset: 0; width: auto; height: auto; padding: 0; border-radius: 0; outline: 0; background: #000; }
  .phone::before, .phone::after, .phone__island { display: none; }
  .phone__screen { border-radius: 0; }
  .phone__corners {
    --r: 0px;
    display: block; position: absolute; inset: 0; z-index: 8; pointer-events: none;
    --c0: radial-gradient(circle at 100% 100%, transparent calc(var(--r) - 0.8px), #12060d var(--r)); /* taste-skill-ignore: máscara de esquina, no es un degradado de fondo */
    --c1: radial-gradient(circle at 0 100%, transparent calc(var(--r) - 0.8px), #12060d var(--r)); /* taste-skill-ignore: máscara de esquina */
    --c2: radial-gradient(circle at 100% 0, transparent calc(var(--r) - 0.8px), #12060d var(--r)); /* taste-skill-ignore: máscara de esquina */
    --c3: radial-gradient(circle at 0 0, transparent calc(var(--r) - 0.8px), #12060d var(--r)); /* taste-skill-ignore: máscara de esquina */
    background: var(--c0) 0 0 / var(--r) var(--r) no-repeat, var(--c1) 100% 0 / var(--r) var(--r) no-repeat, var(--c2) 0 100% / var(--r) var(--r) no-repeat, var(--c3) 100% 100% / var(--r) var(--r) no-repeat;
  }
  .reels__copy { position: absolute; z-index: 4; left: 16px; right: 72px; top: max(16px, env(safe-area-inset-top)); width: auto; justify-self: start; pointer-events: none; }
  .reels__title { font-family: var(--font-text); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
  .reels__texts, .reels__dots, .reel-ui__top { display: none; }
  .reel-ui__sound { top: max(10px, env(safe-area-inset-top)); }
  .reel-ui__side { bottom: calc(var(--tb) + 19%); }
  .reel-ui__meta { bottom: calc(var(--tb) + max(22px, env(safe-area-inset-bottom))); }

  .js .street { height: 230vh; }
  .street__copy { display: block; padding: calc(var(--bar-h) + 4px) var(--margin) 14px; }
  .street__title { font-size: 30px; }
  .street__aside { margin-top: 8px; }
  .street__statement { font-size: 16px; }
  .zgrid { grid-template-columns: 1fr 1.3fr 1fr; grid-template-rows: 1fr 1.5fr 1fr; gap: 5px; padding: 0 5px calc(var(--tb) + 5px); }

  /* catálogo en el teléfono: la cartera en grande al centro, su ficha debajo y la lista
     como una tira de miniaturas; cada deslizada cuelga la siguiente */
  .js .shelf-sec { height: 640vh; }
  .js .shelf {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto;
    padding: calc(var(--bar-h) + 4px) var(--margin) calc(var(--tb) + 14px);
  }
  .shelf__cat { font-size: 34px; }
  .js .shelf__stage { grid-column: 1; grid-row: 2; --hy: 4svh; --bh: min(35svh, 78vw, 460px); }
  .js .shelf__caption { grid-column: 1; grid-row: 3; }
  .shelf__name { font-size: 30px; }
  .shelf__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; }
  .js .shelf__open { margin-top: 10px; }
  .js .shelf__list { grid-column: 1; grid-row: 4; align-self: end; display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .js .shelf .menu-list__cat, .js .shelf__marker { display: none; }
  .js .shelf .menu-list__items { display: flex; gap: 6px; }
  .js .shelf .item, .js .shelf .item[data-reveal] { display: block; padding: 0; border-radius: 12px; opacity: 1; transform: none; }
  .js .shelf .item__thumb { width: 38px; height: 46px; padding: 3px; border-radius: 10px; }
  .js .shelf .item.is-active .item__thumb { outline-color: var(--ink); }
  /* los nombres siguen para los lectores de pantalla */
  .js .shelf .item__body { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* taste-skill-ignore: patrón sr-only */

  /* «Así de fácil» en el teléfono también es una escena: la Mini Bag ocupa la pantalla,
     se tiñe, le cae el llavero y luego el chat sube encima con el mensaje */
  .steps__title { position: static; max-width: none; margin-bottom: 28px; font-size: 30px; }
  .steps__row { display: grid; grid-template-columns: 1fr; gap: 28px; }
  .step--1, .step--2 { grid-column: 1 / -1; }
  .step--1 .step__tile { height: 40vw; min-height: 180px; }
  .step--2 .step__tile { height: 72vw; min-height: 280px; }
  .step__name { font-size: 18px; }
  .chat { left: 12px; right: 12px; bottom: 12px; }
  .js .steps { height: 340vh; padding: 0; }
  .js .steps__pin { justify-content: flex-start; min-height: 0; padding: calc(var(--bar-h) + 6px) var(--margin) calc(var(--tb) + 18px); }
  .js .steps__title { margin: 0; }
  /* (a la derecha deja solo el aire de la cursiva: con 0,3em se salía 2px de la pantalla y la página se movía de lado) */
  .js .steps__now { position: static; transform: none; font-size: min(15vw, 8svh); margin: 2px -0.14em 12px -0.14em; padding-right: 0.14em; }
  .js .steps__row { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); gap: 0; align-items: stretch; }
  .js .step--1, .js .step--2 { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-height: 0; background: var(--ground); position: relative; z-index: 1; }
  .js .step--2 { z-index: 2; }
  .js .step--1 .step__tile, .js .step--2 .step__tile { flex: 1 1 auto; height: auto; min-height: 0; }
  .js .step--2 { transform: translate3d(0, 112%, 0); transition: transform 780ms var(--ease-in-out); }
  .js .steps[data-beat="2"] .step--2 { transform: none; }
  .js .steps[data-beat="2"] .step--1 { transform: scale(0.94); opacity: 0.5; }
  .js .step--1 { transition: transform 780ms var(--ease-in-out), opacity 600ms ease; transform-origin: 50% 0; }

  .finale__word, .intro__word { font-size: 29vw; }
  .finale__line, .intro__line { font-size: 18px; }
  .finale__bow, .intro__bow { width: 92px; }

  .has-3d .closet-sec .closet-track { height: 260vh; }

  .menu-list__items { grid-template-columns: 1fr; gap: 28px; }
  .menu-list__name { font-size: 8.5vw; }
  .menu-list__cat { margin: 64px 0 28px; }
  .item { grid-template-columns: 64px 1fr; gap: 16px; }
  .item__thumb { width: 64px; height: 80px; padding: 6px; }

  .coupon { grid-template-columns: 1fr; min-height: 0; --cut: 50%;
    -webkit-mask: radial-gradient(circle 15px at 0 var(--cy, 190px), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% var(--cy, 190px), #0000 98%, #000) right / 51% 100% no-repeat; /* taste-skill-ignore: muescas del cupón */
    mask: radial-gradient(circle 15px at 0 var(--cy, 190px), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% var(--cy, 190px), #0000 98%, #000) right / 51% 100% no-repeat; /* taste-skill-ignore: muescas del cupón */ }
  .coupon__left { padding: 32px 24px 28px; min-height: 190px; column-gap: 12px; row-gap: 20px; }
  .js .coupon__preview { --ph: 150px; --rl: 34px; width: 118px; margin: -32px 0 -28px; }
  .coupon__right { border-left: 0; border-top: 5px dotted var(--ground); padding: 28px 20px 24px; }
  .field, .coupon__submit { height: 54px; }

  /* la tienda en el teléfono: barra fija con «Filtros» y las categorías, dos columnas y la hoja */
  .js .shop { padding: 52px var(--margin) 64px; }
  .shop__kicker { margin-bottom: 4px; font-size: 19px; }
  .shop__head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .shop__title { font-size: 46px; }
  .shop__lead { margin-top: 10px; font-size: 16px; }
  .shop__field { height: 54px; font-size: 16px; }
  .shop__bar {
    display: flex; align-items: center; gap: 8px;
    position: sticky; top: 0; z-index: 30;
    margin: 16px calc(var(--margin) * -1) 0; padding: 10px var(--margin);
    background: var(--ground);
    overflow-x: auto; scrollbar-width: none;
    transition: top 420ms var(--ease-out);
  }
  .shop__bar::-webkit-scrollbar { display: none; }
  .bar:not(.is-hidden) ~ main .shop__bar { top: var(--bar-h); }
  .shop__filters-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--radius); background: var(--ink); color: var(--ground); font-size: 15px; font-weight: 600; transition: transform var(--t-press) var(--ease-out); }
  .shop__filters-btn:active { transform: scale(0.95); }
  .shop__filters-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .shop__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rose); color: var(--ink); font-size: 13px; }
  .shop__badge[hidden] { display: none; }
  .shop__cats { display: flex; gap: 8px; }
  .shop__cat { flex: none; height: 42px; padding: 0 16px; border-radius: var(--radius); background: var(--panel); font-size: 15px; white-space: nowrap; transition: background-color 260ms ease, color 260ms ease, transform var(--t-press) var(--ease-out); }
  .shop__cat[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
  .shop__cat:active { transform: scale(0.95); }
  .shop__body { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
  .shop__aside { display: none; }
  .shop__tools { gap: 10px; }
  .shop__count strong { font-size: 28px; }
  .shop__sort { padding-left: 14px; }
  .shop__sort-label, .shop__view { display: none; }
  .shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
  .card__in { border-radius: 18px; }
  .card__tags { left: 8px; right: 8px; bottom: 8px; }
  .card__tag { padding: 5px 10px; font-size: 13px; }
  .card__tag--hi { display: none; }
  .card__bow { left: calc(50% - 17px); top: calc(11% - 11px); width: 34px; height: 29px; }
  .card__body { padding: 12px 12px 14px; }
  .card__kind { font-size: 13px; }
  .card__name { font-size: 21px; }
  .card__color { font-size: 15px; }
  .card__more { display: none; }
  .card__foot { padding-top: 10px; gap: 8px; }
  .card__price { font-size: 13px; line-height: 1.3; }
  .card__add { width: 42px; height: 42px; }

  /* tu pedido queda a mano abajo mientras recorres el catálogo (app.js) */
  .orderfab {
    position: fixed; z-index: 36; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 10px;
    height: 54px; padding: 0 10px 0 18px; border-radius: var(--radius);
    background: var(--ink); color: var(--ground);
    font-size: 16px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 14px 30px -14px rgb(40 18 28 / 0.55); /* taste-skill-ignore: botón flotante sobre el catálogo */
    translate: -50% calc(100% + 30px); opacity: 0; visibility: hidden;
    transition: translate 520ms var(--ease-out), opacity 300ms ease, visibility 0s linear 520ms, scale var(--t-press) var(--ease-out);
  }
  .orderfab.is-on { translate: -50% 0; opacity: 1; visibility: visible; transition: translate 560ms var(--ease-out), opacity 300ms ease, visibility 0s, scale var(--t-press) var(--ease-out); }
  .orderfab:active { scale: 0.96; }
  .orderfab svg { flex: none; width: 22px; height: 22px; max-width: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .orderfab__n { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 99px; display: grid; place-items: center; background: var(--rose); color: #24131c; font-variant-numeric: tabular-nums; }
  .orderfab.is-bump .orderfab__n { animation: bump 420ms var(--ease-out); }
  html.fab-on .toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
  /* el aviso usa el ancho de la pantalla (antes se partía en tres líneas) */
  .toast { width: max-content; text-align: center; }

  .foot { padding-top: 80px; }
  .postcard { grid-template-columns: 1fr; padding: 56px 24px 22px; gap: 28px;
    -webkit-mask-size: 64px 100%; mask-size: 64px 100%; }
  .postcard__stamp { width: 64px; top: -6px; }
  .postcard__mark { width: 86px; right: -12px; top: -38px; }
  .postcard__lines { padding-top: 0; font-size: 18px; }
  .postcard__left { padding-right: 70px; }
}

/* ---------- tablet en vertical (601–820 px) ----------
   usa el diseño del teléfono, pero con más aire: tres columnas en la tienda,
   letras y miniaturas un poco más grandes */
@media (min-width: 601px) and (max-width: 820px) {
  .riel__title { font-size: 22px; }
  .label__name, .shelf__name { font-size: 38px; }
  .shelf__cat { font-size: 42px; }
  .js .shelf .item__thumb { width: 50px; height: 60px; }
  .shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .card__name { font-size: 23px; }
}

@media (max-width: 480px) {
  .bar__theme { width: 34px; height: 34px; }
  .label { width: calc(100% - 120px); }
}

/* ---------- un gesto, un paso ----------
   En pantallas táctiles cada deslizada se detiene en la siguiente marca (un reel, una cartera):
   proximity solo actúa cerca de una marca y scroll-snap-stop impide pasar de largo.
   Con ratón o trackpad no se activa. */
.snaps { position: absolute; left: 0; top: 0; width: 1px; height: 100%; pointer-events: none; }
.snaps i { position: absolute; left: 0; width: 1px; height: 1px; } /* taste-skill-ignore: marcas invisibles para detener el deslizamiento, no son líneas */
@media (pointer: coarse) {
  html { scroll-snap-type: y proximity; }
  .snaps i { scroll-snap-align: start; scroll-snap-stop: always; }
}
html.no-sticky .snaps { display: none; }

/* ---------- plan B: el navegador no respeta las escenas fijas ----------
   (js/scenes.js lo detecta y pone html.no-sticky): cada escena mide una pantalla
   y se anima mientras cruza la pantalla, así nunca quedan tramos vacíos */
html.no-sticky .week, html.no-sticky .reels, html.no-sticky .street, html.no-sticky .steps, html.no-sticky .shelf-sec { height: auto; }
html.no-sticky .closet-sec .closet-track { height: auto; }
html.no-sticky .closet-sec .closet-pin, html.no-sticky .week__pin, html.no-sticky .reels__pin,
html.no-sticky .street__pin, html.no-sticky .steps__pin, html.no-sticky .shelf { position: relative; }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .ci, .ci__btn, .qv__pivot, .qv__add-a, .qv__add-b, .drawer, .menu, .phone__track, .reels__text, .week__pin { transition-duration: 1ms !important; }
}
