/* Feinswear — hoja de estilos pública
   Editorial claro: papel hueso, tinta negra, un único bloque negro para la esfera.
   Anton (titulares, el mismo trazo del logo) + Geist (texto). */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #ecebe8;
  --surface: #f6f6f4;
  --tone: #e2e1dd;
  --tone-2: #d6d5d0;
  --ink: #0e0e0e;
  --ink-soft: #5c5b57;
  --night: #0e0e0e;
  --night-2: #1a1a19;
  --night-ink: #ecebe8;
  --night-soft: #9a9994;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --step-statement: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  --step-head: clamp(3rem, 1.4rem + 6vw, 7.5rem);

  --m: clamp(20px, 3vw, 48px);
  --bar-h: 64px;
  --gap-section: clamp(120px, 13vw, 200px);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Grano de papel: fijo, encima de todo y sin capturar clics */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 55; pointer-events: none;
  opacity: 0.06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 10px; }

/* ---------- Botones: píldora con la flecha en su propio círculo ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 8px 0 28px;
  background: var(--ink); color: var(--ground);
  border: 0; border-radius: 999px;
  font-family: var(--text); font-size: var(--step-body); font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease);
}
.btn:not(:has(.btn__icon)) { padding-right: 28px; }
.btn__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(236, 235, 232, 0.14);
  transition: transform 500ms var(--ease), background-color 300ms var(--ease);
}
.btn:hover { background: #262624; }
.btn:hover .btn__icon { transform: translate(3px, -2px) scale(1.06); background: rgba(236, 235, 232, 0.22); }
.btn:active { transform: scale(0.98); }
.btn--light { background: var(--night-ink); color: var(--ink); }
.btn--light:hover { background: #ffffff; }
.btn--light .btn__icon { background: rgba(14, 14, 14, 0.08); }
.btn--light:hover .btn__icon { background: rgba(14, 14, 14, 0.14); }
.btn[disabled] { background: var(--tone-2); color: var(--ink-soft); cursor: not-allowed; transform: none; }
.btn--wide { width: 100%; justify-content: space-between; }
.btn--wide:not(:has(.btn__icon)) { justify-content: center; }

.link {
  font-weight: 500; text-decoration: underline; text-underline-offset: 0.24em;
  text-decoration-thickness: 1.5px;
  transition: text-underline-offset 300ms var(--ease);
}
.link:hover { text-underline-offset: 0.36em; }

/* ---------- Aviso superior y barra ---------- */

.notice {
  position: relative; z-index: 31;
  display: flex; justify-content: center; gap: 0 40px; flex-wrap: wrap;
  padding: 10px var(--m); background: var(--night); color: var(--night-soft);
  font-size: var(--step-small); letter-spacing: 0.01em;
}
.notice span { white-space: nowrap; }

/* La barra se invierte sola: clara sobre la esfera, oscura sobre el papel */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  height: var(--bar-h); padding: 0 var(--m);
  background: var(--ground); color: var(--ink);
  transition: background-color 400ms var(--ease), color 400ms var(--ease);
}
.bar.is-dark { background: transparent; color: var(--night-ink); }
.bar__brand {
  display: flex; align-items: center; gap: 12px; justify-self: start;
  text-decoration: none; font-family: var(--display); font-size: 1.375rem; letter-spacing: 0.02em;
}
.bar__brand img { width: 34px; height: auto; border-radius: 50%; filter: grayscale(1) invert(1); mix-blend-mode: multiply; transition: transform 700ms var(--ease), filter 400ms var(--ease); }
.bar.is-dark .bar__brand img { filter: grayscale(1) brightness(1.3); mix-blend-mode: lighten; }
.bar__brand:hover img { transform: rotate(-30deg); }
.bar__nav { display: flex; gap: 36px; }
.bar__nav a, .bar__cart {
  position: relative; text-decoration: none; font-size: var(--step-body); font-weight: 500;
  background: none; border: 0; padding: 8px 0; cursor: pointer;
}
.bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 500ms var(--ease);
}
.bar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.bar__cart { justify-self: end; display: inline-flex; align-items: center; gap: 8px; }
.bar__count {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: var(--ink); color: var(--ground); font-size: var(--step-small); font-weight: 600; font-variant-numeric: tabular-nums;
  transition: transform 400ms var(--ease);
}
.bar.is-dark .bar__count { background: var(--night-ink); color: var(--ink); }
.bar__count.is-bump { transform: scale(1.3); }

/* ---------- Portada: la esfera en su bloque negro ---------- */

.hero { position: relative; height: 380svh; margin-top: calc(var(--bar-h) * -1); }
.hero__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__stage {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--night); color: var(--night-ink);
  transform: scale(calc(1 - var(--exit, 0) * 0.06));
  border-radius: calc(var(--exit, 0) * 32px);
  transform-origin: 50% 0;
  will-change: transform;
}
.hero__canvas, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__fallback {
  position: absolute; left: 50%; top: 55%;
  width: min(62svh, 78vw); height: auto;
  translate: -50% -50%;
  mix-blend-mode: lighten;
}
.webgl .hero__fallback { display: none; }

.hero__copy {
  position: absolute; z-index: 2; left: var(--m); top: calc(var(--bar-h) + 80px);
  max-width: 36ch;
}
.hero__sentence {
  font-size: var(--step-lead); font-weight: 400; line-height: 1.25; letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero__count {
  position: absolute; z-index: 2; right: var(--m); top: calc(var(--bar-h) + 86px);
  font-size: var(--step-small); line-height: 1.5; color: var(--night-soft); text-align: right;
}

.hero__word {
  position: absolute; z-index: 1; left: -5vw; bottom: -0.11em;
  font-family: var(--display); font-size: 50vw; line-height: 0.8; letter-spacing: -0.01em;
  white-space: nowrap; color: var(--night-ink);
  pointer-events: none;
  opacity: var(--word-o, 0);
  transform: translate3d(0, calc((1 - var(--word-o, 0)) * 14%), 0) scale(var(--word-s, 1));
  transform-origin: 40% 100%;
}
.no-anim .hero__word, html:not(.js) .hero__word { --word-o: 1; }

.hero__hint {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: var(--step-small); color: var(--night-soft);
  opacity: var(--hint-o, 1);
  transition: opacity 400ms var(--ease);
}
.hero__hint::after {
  content: ""; width: 1.5px; height: 36px; background: currentColor;
  transform-origin: top; animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Portada: la libreta, el lápiz y la esfera ---------- */

.bar.is-clear { background: transparent; }
.hero--sketch { height: 540svh; }
.paper { background: #f8f7f3; color: var(--ink); }
.paper__grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.paper__margin { transform: translateX(calc(var(--m) * 0.5)); }
.sketch { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #2e2e33; overflow: visible; }
.sketch.is-live path { stroke-dasharray: 1 2; visibility: hidden; }
.sketch [data-sketch-logo] { transition: opacity 200ms linear; }
.paper .hero__canvas { z-index: 2; cursor: grab; }
.paper .hero__canvas:active { cursor: grabbing; }
.hero__shade {
  position: absolute; z-index: 1; height: 28px; border-radius: 50%;
  background: #1d1c1a; filter: blur(16px); opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%);
}
.pencil {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: 300px; height: 80px; margin: -40px 0 0 -10px;
  transform-origin: 10px 40px; pointer-events: none; will-change: transform;
}
.pencil__shade { opacity: calc(0.16 - var(--lift, 0) * 0.08); filter: blur(5px); }
html:not(.js) .pencil { display: none; }

.paper .hero__copy { z-index: 5; max-width: min(40vw, 540px); top: calc(var(--bar-h) + 72px); }
.story { display: grid; margin-bottom: 32px; }
.story__line {
  grid-area: 1 / 1;
  font-size: var(--step-statement); font-weight: 400; line-height: 1.15; letter-spacing: -0.03em;
  max-width: 15em; text-wrap: balance;
  opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(4px);
  transition: opacity 700ms var(--ease), transform 900ms var(--ease), filter 700ms var(--ease);
}
.story__line.is-on { opacity: 1; transform: none; filter: none; }
html:not(.js) .story__line:not(:first-child) { display: none; }
html:not(.js) .story__line:first-child { opacity: 1; transform: none; filter: none; }
.paper .hero__hint { left: var(--m); translate: none; align-items: flex-start; color: var(--ink-soft); }

/* ---------- La pieza protagonista ---------- */

.drop {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center;
  padding: var(--gap-section) var(--m);
}
.drop__media { position: relative; }
.drop__frame { position: relative; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; }
.drop__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply;
  transition: opacity 700ms var(--ease), transform 1200ms var(--ease);
}
.drop__frame img[data-side="back"] { opacity: 0; transform: scale(1.04); }
.drop__media.is-back img[data-side="front"] { opacity: 0; transform: scale(1.04); }
.drop__media.is-back img[data-side="back"] { opacity: 1; transform: none; }
.flip {
  position: absolute; left: 50%; bottom: 24px; translate: -50% 0;
  display: flex; padding: 5px; gap: 4px; border-radius: 999px; background: var(--ink);
}
.flip button {
  min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--night-soft); font-size: var(--step-body); font-weight: 500;
  transition: background-color 400ms var(--ease), color 400ms var(--ease);
}
.flip button[aria-pressed="true"] { background: var(--night-ink); color: var(--ink); }
.flip button:hover:not([aria-pressed="true"]) { color: var(--night-ink); }

.drop__info { display: grid; gap: 22px; max-width: 520px; }
.drop__name {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.01em;
}
.drop__price { font-size: var(--step-lead); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.drop__desc { display: grid; gap: 0.8em; font-size: var(--step-body); color: var(--ink); max-width: 46ch; }
.drop__more { font-size: var(--step-body); }

/* ---------- Frase de la marca ---------- */

.statement { padding: 0 var(--m) var(--gap-section); }
.statement__big {
  max-width: 30ch; margin-left: calc(100% / 12);
  font-size: var(--step-statement); font-weight: 400; line-height: 1.15; letter-spacing: -0.03em;
}
.statement__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 34ch)); gap: 24px 48px;
  margin: 56px 0 0 calc(100% / 12 * 5);
}
.statement__cols p { font-size: var(--step-body); }

/* ---------- Tienda ---------- */

.shop { padding: 0 var(--m) var(--gap-section); }
.shop__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.shop__title, .page-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.01em;
}
.shop__sentence { font-size: var(--step-lead); letter-spacing: -0.02em; max-width: 24ch; text-align: right; }
.shop__more { margin-top: 64px; display: flex; justify-content: center; }

.grid {
  display: grid; gap: 48px 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid--feature { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
.grid--feature .tile:first-child { grid-column: span 2; grid-row: span 2; }
.grid--feature .tile:first-child .tile__media { aspect-ratio: auto; flex: 1; min-height: 520px; }
.grid--feature .tile:first-child .tile__media img { object-fit: contain; }
.grid--feature .tile:first-child a { height: 100%; display: flex; flex-direction: column; }

.tile a { display: block; text-decoration: none; }
.tile__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.tile__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply;
  transition: transform 1200ms var(--ease), opacity 700ms var(--ease);
}
.tile__alt { opacity: 0; }
.tile__go {
  position: absolute; left: 16px; bottom: 16px;
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--ground);
  font-size: 0.875rem; font-weight: 500;
  opacity: 0; transform: translateY(10px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
@media (hover: hover) {
  .tile a:hover .tile__media img { transform: scale(1.045); }
  .tile a:hover .tile__alt { opacity: 1; }
  .tile a:hover .tile__go { opacity: 1; transform: none; }
}
.tile__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.tile__name { font-weight: 500; font-size: var(--step-body); letter-spacing: -0.01em; }
.tile__price { font-size: var(--step-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile__price s { color: var(--ink-soft); margin-right: 6px; }
.tile__meta { display: block; margin-top: 2px; font-size: var(--step-small); color: var(--ink-soft); }
.tile--out .tile__media img { opacity: 0.4; }
.empty { font-size: var(--step-lead); padding: 40px 0; }

/* ---------- Banda de fotos ---------- */

.band { padding-bottom: var(--gap-section); }
.band__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.01em;
  margin: 0 var(--m) 48px;
}
.band__row { display: flex; height: 78svh; min-height: 460px; gap: 6px; padding: 0 6px; }
.band__panel {
  position: relative; overflow: hidden; flex: 2 1 0; min-width: 0;
  transition: flex-grow 900ms var(--ease);
}
.band__panel:nth-child(1) { flex-grow: 5; }
.band__panel:nth-child(3) { flex-grow: 3; }
.band__panel img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.band__label {
  position: absolute; left: 20px; bottom: 20px;
  padding: 10px 18px; border-radius: 999px; background: var(--ground); color: var(--ink);
  font-size: var(--step-body); font-weight: 500;
}
@media (hover: hover) {
  .band__row:hover .band__panel { flex-grow: 2; }
  .band__row .band__panel:hover { flex-grow: 6; }
}
.band__caption { margin: 18px var(--m) 0; font-size: var(--step-small); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Guía de tallas ---------- */

.guide { padding: 0 var(--m) var(--gap-section); }
.guide__col { container-type: inline-size; width: min(680px, 100%); margin: 0 auto; }
.guide__word {
  font-family: var(--display); font-weight: 400; font-size: 36.5cqw; line-height: 0.8;
  letter-spacing: -0.01em; text-align: center; margin-bottom: 28px;
}
.guide__note { font-size: var(--step-body); color: var(--ink-soft); margin-bottom: 20px; text-align: center; }
.guide__bar { background: var(--surface); margin-bottom: 6px; border-radius: 14px; overflow: hidden; }
.guide__bar summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; padding: 0 22px; cursor: pointer; list-style: none;
  font-weight: 500; font-size: var(--step-body);
  transition: background-color 300ms var(--ease);
}
.guide__bar summary::-webkit-details-marker { display: none; }
.guide__bar summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; transition: transform 500ms var(--ease); }
.guide__bar[open] summary::after { transform: rotate(45deg); }
.guide__bar summary:hover { background: #fbfaf7; }
.sizes { width: calc(100% - 44px); margin: 0 22px 20px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--step-body); }
.sizes th, .sizes td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--tone); }
.sizes tr:last-child th, .sizes tr:last-child td { border-bottom: 0; }
.sizes thead th { color: var(--ink-soft); font-weight: 400; }
.sizes td:last-child, .sizes th:last-child { text-align: right; }

/* ---------- Sobre la marca ---------- */

.about { padding: 48px var(--m) var(--gap-section); }
.about__row { display: grid; grid-template-columns: 34% 1fr; align-items: start; }
.about__facts { display: grid; gap: 20px; width: 200px; font-size: var(--step-small); }
.about__facts dt { color: var(--ink-soft); }
.about__facts dd { font-weight: 500; font-size: var(--step-body); }
.about__para { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; max-width: 40ch; }
.about__row--records { margin-top: 120px; grid-template-columns: 34% 1fr 1fr; gap: 0 64px; }
.about__row--records .about__record:first-child { grid-column: 2; }
.about__record h3 { font-size: var(--step-body); font-weight: 600; margin-bottom: 14px; }
.about__record li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: var(--step-body); max-width: 340px; }
.about__record li span:last-child { color: var(--ink-soft); text-align: right; }

/* ---------- Preguntas ---------- */

.faq { padding: 0 var(--m) var(--gap-section); min-height: 80svh; overflow-x: clip; }
.faq__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.01em;
}
.faq__list { margin: 80px 0 0 33.33%; }
.faq__item { margin: 0 -24px 8px; padding: 10px 24px; border-radius: 18px; transition: background-color 400ms var(--ease); }
.faq__item[open] { background: var(--surface); padding-bottom: 24px; }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: var(--step-lead); letter-spacing: -0.02em; cursor: pointer; list-style: none; padding: 12px 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform 500ms var(--ease);
}
.faq__item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq__item p { max-width: 52ch; font-size: var(--step-body); padding-top: 4px; }

/* ---------- Pie: negro, se descubre al final ---------- */

main { position: relative; z-index: 1; background: var(--ground); overflow-x: clip; }
.foot {
  position: sticky; bottom: 0; z-index: 0;
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto;
  overflow-x: clip;
  padding: calc(var(--bar-h) + 48px) var(--m) 24px;
  background: var(--night); color: var(--night-ink);
}
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: var(--step-body); }
.foot__cols p { color: var(--night-soft); margin-bottom: 6px; overflow-wrap: anywhere; }
.foot__cols p.foot__lead { color: var(--night-ink); font-weight: 500; margin-bottom: 14px; }
.foot__cols a { text-decoration: none; transition: color 300ms var(--ease); }
.foot__cols a:hover { color: var(--night-ink); }
.foot__word { grid-row: 3; width: 100%; height: auto; margin-bottom: 24px; }
.foot__word text { font-family: var(--display); font-size: 190px; fill: var(--night-ink); }
.foot__legal { grid-row: 4; font-size: var(--step-small); color: var(--night-soft); max-width: 80ch; }

/* ---------- Cesta ---------- */

.cart { position: fixed; inset: 0; z-index: 60; }
.cart[hidden] { display: none; }
.cart__scrim { position: absolute; inset: 0; background: rgba(14, 14, 14, 0.45); animation: fade 400ms var(--ease); }
.cart__panel {
  position: absolute; top: 10px; right: 10px; bottom: 10px; width: min(460px, calc(100% - 20px));
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px 24px max(24px, env(safe-area-inset-bottom));
  background: var(--ground); border-radius: 24px;
  box-shadow: 0 30px 80px rgba(14, 14, 14, 0.25); /* taste-skill-ignore: es un diálogo que flota */
  animation: slide-in 600ms var(--ease);
  overscroll-behavior: contain;
}
.cart.is-closing .cart__panel { animation: slide-out 260ms var(--ease-in-out) forwards; }
.cart.is-closing .cart__scrim { animation: fade 260ms reverse forwards; }
.cart__head { display: flex; justify-content: space-between; align-items: center; }
.cart__head h2 { font-family: var(--display); font-weight: 400; font-size: var(--step-statement); text-transform: uppercase; line-height: 1; }
.cart__x {
  background: var(--tone); border: 0; border-radius: 999px; font-weight: 500; cursor: pointer; padding: 10px 16px;
  transition: background-color 300ms var(--ease);
}
.cart__x:hover { background: var(--tone-2); }
.cart__items { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 18px; }
.cart__item { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: start; }
.cart__item img { width: 80px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); mix-blend-mode: multiply; border-radius: 10px; }
.cart__item p { font-size: var(--step-body); }
.cart__item a { text-decoration: none; font-weight: 500; }
.cart__meta { color: var(--ink-soft); }
.cart__qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; padding: 3px; border-radius: 999px; background: var(--tone); }
.cart__qty button, .cart__remove {
  min-width: 34px; height: 34px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: var(--step-body);
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.cart__qty button:hover { background: var(--surface); }
.cart__qty button:active { transform: scale(0.9); }
.cart__qty span { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.cart__remove { padding: 0 12px; font-size: var(--step-small); color: var(--ink-soft); text-decoration: underline; }
.cart__sum { display: grid; gap: 8px; font-size: var(--step-body); font-variant-numeric: tabular-nums; padding: 16px 18px; border-radius: 16px; background: var(--surface); }
.cart__sum div { display: flex; justify-content: space-between; }
.cart__sum .is-total { font-weight: 600; font-size: var(--step-body); }
.cart__note, .cart__empty { font-size: var(--step-small); color: var(--ink-soft); text-align: center; }
.cart__empty { font-size: var(--step-body); text-align: left; }
.cart__error { color: #a2281c; font-size: var(--step-body); }

@keyframes slide-in { from { transform: translateX(calc(100% + 20px)); } }
@keyframes slide-out { to { transform: translateX(calc(100% + 20px)); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Páginas interiores ---------- */

.inner { padding: 64px var(--m) var(--gap-section); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 56px; font-size: var(--step-body); }
.filters a {
  text-decoration: none; font-weight: 500; padding: 10px 18px; border-radius: 999px; background: var(--surface);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.filters a:hover { background: var(--tone); }
.filters a[aria-current="page"] { background: var(--ink); color: var(--ground); }

.product { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); padding: 24px var(--m) var(--gap-section); }
.product__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.product__gallery figure { background: var(--surface); aspect-ratio: 4 / 5; overflow: hidden; }
.product__gallery figure:first-child { grid-column: span 2; }
.product__gallery img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.product__info { position: sticky; top: calc(var(--bar-h) + 24px); align-self: start; display: grid; gap: 26px; }
.product__crumb { font-size: var(--step-small); color: var(--ink-soft); }
.product__crumb a { text-decoration: none; }
.product__crumb a:hover { text-decoration: underline; }
.product__name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.01em; }
.product__price { font-size: var(--step-lead); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.product__price s { color: var(--ink-soft); margin-right: 10px; }
.product__desc { display: grid; gap: 1em; font-size: var(--step-body); max-width: 50ch; }
.product__guide { font-size: var(--step-body); color: var(--ink-soft); }

.buy { display: grid; gap: 14px; }
.sizes-pick { border: 0; padding: 0; margin: 0; }
.sizes-pick legend { font-weight: 500; font-size: var(--step-body); margin-bottom: 12px; }
.sizes-pick__row { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes-pick label { position: relative; }
.sizes-pick input { position: absolute; opacity: 0; inset: 0; }
.sizes-pick span {
  display: grid; place-items: center; min-width: 64px; height: 52px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); font-weight: 500; cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease);
}
.sizes-pick label:hover span { background: var(--tone); }
.sizes-pick input:checked + span { background: var(--ink); color: var(--ground); }
.sizes-pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.sizes-pick input:disabled + span { color: #a6a199; text-decoration: line-through; cursor: not-allowed; background: transparent; }
.sizes-pick input:active:not(:disabled) + span { transform: scale(0.95); }
.buy__msg { font-size: var(--step-body); min-height: 1.5em; }

.prose { width: min(700px, 100%); }
.prose h1 { margin-bottom: 48px; }
.prose h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; margin: 44px 0 12px; line-height: 1.2; }
.prose p, .prose ul { margin-bottom: 1em; }
.prose ul { list-style: disc; padding-left: 1.2em; }

/* ---------- Entradas al hacer scroll ---------- */

.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(6px);
  transition: opacity 900ms var(--ease), transform 1100ms var(--ease), filter 900ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.band__panel img { transform: scale(1.1); transition: transform 1800ms var(--ease); }
.band__panel.is-in img { transform: scale(1); }
html:not(.js) .band__panel img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; filter: none; transition: opacity 300ms linear; }
  .band__panel img { transform: none; transition: none; }
  .hero__word { transform: none; }
  .hero__stage { transform: none; border-radius: 0; }
  .story__line { transform: none; filter: none; }
  .hero__hint::after { animation: none; }
  .cart__panel, .cart__scrim { animation-duration: 1ms; }
}

/* ---------- Garabatos de libreta ----------
   Tres capas de movimiento, cada una en su elemento para no pisarse:
   .doodle        -> profundidad con el scroll (propiedad translate, línea de tiempo del scroll)
   .doodle__move  -> el gesto propio de cada dibujo (transform, en bucle)
   .doodle__v     -> el temblor de la línea a mano (3 versiones que se alternan, opacity)
   Los de detrás quedan bajo el contenido; los de delante, encima de fotos y textos. */

/* :where() no suma especificidad: no pisa el position: sticky del pie ni otros ajustes */
:where(.has-doodles) { position: relative; }
:where(.has-doodles) > :where(:not(.doodle)) { position: relative; z-index: 1; }
.doodle--inner.doodle--back { z-index: -1; }

.doodle {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  z-index: 0; pointer-events: none; color: var(--ink);
  rotate: var(--rot);
}
.doodle--front { z-index: 3; }
.foot .doodle { color: var(--night-ink); }
.doodle__move { display: block; }
.doodle__art { display: block; width: 100%; height: auto; overflow: visible; }
.doodle__art path {
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}

/* 1. Se dibuja solo al entrar en pantalla, trazo a trazo */
.js .doodle__art path {
  stroke-dasharray: 1 2; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1100ms var(--ease-out);
  transition-delay: calc(var(--delay) + var(--k) * 160ms);
}
.js .doodle.is-drawn .doodle__art path { stroke-dashoffset: 0; }

/* 2. Temblor de línea hecha a mano (unos 8 dibujos por segundo) */
.doodle__v1, .doodle__v2 { opacity: 0; }
.doodle.is-live .doodle__v { animation: boil 375ms linear infinite; }
.doodle.is-live .doodle__v1 { animation-delay: -250ms; }
.doodle.is-live .doodle__v2 { animation-delay: -125ms; }
@keyframes boil { 0%, 33% { opacity: 1; } 33.4%, 100% { opacity: 0; } }

/* 3. El gesto de cada dibujo */
.doodle__move { animation: var(--gesture, none) var(--gesture-time, 4s) var(--ease-in-out) infinite; animation-play-state: paused; }
.doodle.is-live .doodle__move { animation-play-state: running; }
.doodle--star { --gesture: twinkle; --gesture-time: 3.4s; }
.doodle--sparkle { --gesture: pulse; --gesture-time: 2.6s; }
.doodle--spiral, .doodle--sun { --gesture: spin; --gesture-time: 22s; }
.doodle--spiral .doodle__move, .doodle--sun .doodle__move { animation-timing-function: linear; }
.doodle--arrow { --gesture: nudge; --gesture-time: 1.6s; }
.doodle--sphere { --gesture: coin; --gesture-time: 6s; }
.doodle--sphere .doodle__move { animation-timing-function: linear; }
.doodle--smiley, .doodle--crown, .doodle--question { --gesture: rock; --gesture-time: 2.8s; }
.doodle--flame { --gesture: flicker; --gesture-time: 0.9s; }
.doodle--flame .doodle__move { transform-origin: 50% 95%; animation-direction: alternate; }
.doodle--bolt { --gesture: zap; --gesture-time: 3.2s; }
.doodle--squiggle, .doodle--zigzag { --gesture: drift; --gesture-time: 4.5s; }
.doodle--plane { --gesture: fly; --gesture-time: 7s; }
.doodle--heart { --gesture: beat; --gesture-time: 1.3s; }

@keyframes twinkle { 0%, 100% { transform: rotate(-7deg) scale(1); } 50% { transform: rotate(7deg) scale(1.08); } }
@keyframes pulse { 0%, 100% { transform: scale(0.9) rotate(0deg); } 50% { transform: scale(1.1) rotate(20deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(9px, -4px); } }
@keyframes coin { from { transform: perspective(400px) rotateY(0deg); } to { transform: perspective(400px) rotateY(360deg); } }
@keyframes rock { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-4px); } }
@keyframes flicker { from { transform: scale(0.96, 0.94); } to { transform: scale(1.03, 1.1); } }
@keyframes zap { 0%, 86%, 100% { transform: none; } 89% { transform: translate(-3px, 2px) rotate(-5deg); } 92% { transform: translate(3px, -2px) rotate(4deg); } 95% { transform: translate(-2px, 1px) rotate(-2deg); } }
@keyframes drift { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
@keyframes fly {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(46px, -22px) rotate(-12deg); }
  50% { transform: translate(92px, 0) rotate(4deg); }
  75% { transform: translate(46px, 20px) rotate(14deg); }
}
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.14); } 40% { transform: scale(0.98); } }

/* 4. Profundidad: los de detrás van más lentos que la página, los de delante más rápidos */
@supports (animation-timeline: view()) {
  .doodle {
    animation: depth linear both;
    animation-timeline: view();
  }
  @keyframes depth {
    from { translate: 0 calc(var(--depth) * 48px); }
    to { translate: 0 calc(var(--depth) * -48px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .doodle, .doodle__move, .doodle.is-live .doodle__v { animation: none; }
  .doodle__v1, .doodle__v2 { opacity: 0; }
  .js .doodle__art path { stroke-dashoffset: 0; transition: none; }
}

/* ---------- Tableta ---------- */

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--feature .tile:first-child .tile__media { min-height: 420px; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__row--records { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about__row--records .about__record:first-child { grid-column: auto; }
  .drop { grid-template-columns: 1fr 1fr; }
  .statement__cols { margin-left: calc(100% / 12 * 3); }
  .bar__nav { gap: 24px; }
}

/* ---------- Teléfono ---------- */

@media (max-width: 720px) {
  :root { --bar-h: 58px; }
  .notice { gap: 0 20px; font-size: var(--step-small); padding: 8px 16px; }
  .notice span:nth-child(n+2) { display: none; }
  .bar { grid-template-columns: 1fr auto; gap: 18px; }
  .bar__nav { display: none; }
  .bar__brand { font-size: var(--step-body); }

  .hero { height: 340svh; }
  .hero__copy { right: var(--m); top: calc(var(--bar-h) + 28px); max-width: none; }
  .hero__sentence { margin-bottom: 22px; }
  .hero__count { display: none; }
  .hero__word { left: -9vw; font-size: 64vw; bottom: -0.1em; }
  .hero__fallback { width: 86vw; top: 62%; }
  .hero--sketch { height: 500svh; }
  .paper .hero__copy { max-width: none; top: calc(var(--bar-h) + 24px); }
  .story { margin-bottom: 20px; }
  .story__line { max-width: none; }
  .paper .hero__hint { bottom: 18px; }

  .drop { grid-template-columns: 1fr; padding-top: 96px; gap: 36px; }
  .drop__media { margin: 0 calc(var(--m) * -1); }
  .flip { bottom: 16px; }

  .statement__big { margin-left: 0; }
  .statement__cols { grid-template-columns: 1fr; margin: 36px 0 0; }

  .shop__sentence { text-align: left; }
  .grid, .grid--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 8px; }
  .grid--feature .tile:first-child { grid-column: span 2; grid-row: auto; }
  .grid--feature .tile:first-child .tile__media { aspect-ratio: 4 / 5; flex: none; min-height: 0; }
  .tile__row { flex-direction: column; gap: 0; }
  .tile__name, .tile__price { font-size: var(--step-body); }

  .band__title { margin-bottom: 28px; }
  .band__row {
    display: grid; height: 90svh; min-height: 0; gap: 4px; padding: 0 4px;
    grid-template-columns: 36fr 28fr 36fr; grid-template-rows: 1fr 1fr;
    grid-template-areas: "a a b" "c d d";
  }
  .band__row > :nth-child(1) { grid-area: a; }
  .band__row > :nth-child(2) { grid-area: b; }
  .band__row > :nth-child(3) { grid-area: c; }
  .band__row > :nth-child(4) { grid-area: d; }
  .band__label { left: 12px; bottom: 12px; font-size: 0.875rem; padding: 8px 14px; }

  .guide { padding-left: 16px; padding-right: 16px; }
  .doodle--only-desk { display: none; }
  .doodle { width: calc(var(--w) * 0.72); }

  .about__row { grid-template-columns: 1fr; gap: 40px; }
  .about__para { order: -1; }
  .about__facts { grid-template-columns: 1fr 1fr; width: auto; }
  .about__row--records { grid-template-columns: 1fr; margin-top: 64px; }

  .faq__list { margin: 48px 0 0; }
  .faq__item { margin: 0 calc(var(--m) * -1) 6px; padding: 8px var(--m); }
  .faq__item p { font-size: var(--step-body); }

  .foot { grid-template-rows: auto minmax(16svh, 1fr) auto auto; }
  .foot__cols { gap: 32px 20px; font-size: var(--step-body); }

  .product { grid-template-columns: 1fr; gap: 28px; padding-top: 0; }
  .product__gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px;
    margin: 0 calc(var(--m) * -1); padding: 0 var(--m); overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .product__gallery figure { flex: 0 0 86%; scroll-snap-align: center; }
  .product__info { position: static; }

  .cart__panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 88svh; animation-name: rise; }
  .cart.is-closing .cart__panel { animation-name: sink; }
}
@keyframes rise { from { transform: translateY(100%); } }
@keyframes sink { to { transform: translateY(110%); } }

@media (min-width: 721px) { .doodle--only-phone { display: none; } }
