/* Tienda de ropa deportiva - tokens from DESIGN.md + section styles.
   Direction: "The specimen catalogue" (taste-skill, dealt via draw.mjs). */

/* ---------- tokens ---------- */
:root {
  --bg: #F7F5F1;
  --surface: #FFFFFF;
  --ink: #111113;
  --muted: #5B5B61;
  --border: #E2DFD8;
  --accent: #D9FF4B;
  --accent-ink: #0A0A0B;
  --success: #2E7D4F;
  --error: #C4342B;

  /* Fixed (non-theme) pair for the "always dark stage / always paper" parts
     of the page - the hero stage, the fan of value cards, the catalogue
     card and the postcard footer. These are a deliberate print/stage
     device, not the site's light/dark theme, so they never invert when
     --ink/--bg flip for a future dark theme. */
  --ink-fixed: #111113;
  --paper-fixed: #F7F5F1;
  --surface-fixed: #FFFFFF;
  --border-fixed: #E2DFD8;
  --muted-fixed: #5B5B61;
  --muted-on-dark: #9a9a9d;
  --surface-2: #EDEAE3; /* tone step from --bg, for filled boxes that would otherwise need an outline */

  --font-display: 'Anton', 'Archivo Black', 'Arial Narrow', sans-serif;
  --font-text: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.8rem + 0.08vw, 0.875rem);
  --step-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --step-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --step-head: clamp(2rem, 1.4rem + 2.6vw, 3.75rem);
  --step-display: clamp(2.75rem, 1.2rem + 7vw, 6rem);
  --step-hero: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);

  --margin: clamp(1rem, 2.4vw, 2.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(5rem, 10vw, 9rem);
  --radius: 4px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 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: 220ms;
  --t-ui: 280ms;
  --t-reveal: 800ms;
  --stagger: 80ms;
}

/* Dark theme: applied by the theme picker (data-theme="dark" on <html>, set
   before first paint by the inline script in <head>); it is never applied
   automatically from the OS preference. --ink-fixed/--paper-fixed above are
   deliberately NOT redefined here: the catalogue, fan and footer sections
   are "always dark" stages by design, independent of light/dark theme, so
   they keep their own fixed tokens instead of the theme-reversible
   --ink/--bg pair. */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0A0B;
  --surface: #17171A;
  --surface-2: #1E1E22;
  --ink: #F2F1ED;
  --muted: #9C9CA3;
  --border: #2A2A2E;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; text-wrap: balance; }
p { max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gutter); }
.section { padding-block: calc(var(--section) / 2); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--step-head); line-height: 1.02; }
.section-head p { margin-top: 0.75rem; font-family: var(--font-text); text-transform: none; }
.on-dark { background: var(--ink-fixed); color: var(--paper-fixed); }
.on-dark .muted { color: var(--muted-on-dark); }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; font-size: var(--step-small); white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out);
  will-change: transform;
}
.button:active { transform: scale(0.97); }
.button--ghost {
  background: var(--surface-2); color: inherit;
}
.on-dark .button--ghost { background: rgba(247,245,241,0.14); }
.link {
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease;
}
@media (hover:hover) { .link:hover { text-decoration-color: var(--accent); } }
.field {
  width: 100%; min-height: 3.25rem; padding: 0 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: var(--step-body);
}
.field:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--margin);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  transition: background var(--t-ui) ease, box-shadow var(--t-ui) ease;
}
.site-header.is-scrolled {
  background: var(--bg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10); /* taste-skill-ignore: fixed sticky bar, the named shadow exception */
}
.wordmark { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 0.35em; }
.wordmark .slash { color: var(--ink); }
.site-nav { display: none; gap: clamp(1rem, 2vw, 1.75rem); align-items: center; }
.site-nav a { font-size: var(--step-small); font-weight: 600; position: relative; padding-bottom: 4px; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent);
  transition: right var(--t-hover) var(--ease-out);
}
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
@media (min-width: 64rem) { .site-nav { display: flex; } }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-cta .button { min-height: 2.6rem; padding: 0 1.1rem; }
.nav-toggle { display: inline-flex; min-height: 2.6rem; align-items:center; padding: 0 0.9rem; background: var(--surface-2); border-radius: var(--radius); font-size: var(--step-small); font-weight: 600; }
@media (min-width: 64rem) { .nav-toggle { display: none; } }
.mobile-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 49;
  background: var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,0.14); /* taste-skill-ignore: a real floating menu overlay */
  padding: calc(1.1rem + 2.6rem) var(--margin) 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-size: var(--step-lead); font-weight: 600; }
@media (min-width: 64rem) { .mobile-nav { display: none !important; } }

/* ---------- hero: anchored text / specimen half ---------- */
.hero { padding-top: 0; }
.hero-split { display: grid; grid-template-columns: 1fr; min-height: 100svh; }
@media (min-width: 56rem) { .hero-split { grid-template-columns: 1fr 1fr; } }
.hero-text {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(1.1rem + 2.6rem) var(--margin) 3rem;
  min-height: 52svh;
}
@media (min-width: 56rem) { .hero-text { min-height: 100svh; } }
.hero-text .top { font-size: var(--step-small); font-weight: 700; color: var(--muted); }
.hero-headline {
  font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.02em;
}
.hero-headline .row { display: flex; align-items: center; gap: 0.3em; }
.hero-copy { margin-top: 1.5rem; max-width: 38ch; font-size: var(--step-lead); font-family: var(--font-text); text-transform: none; color: var(--muted); }
.hero-actions { margin-top: 2rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

.hero-stage {
  position: relative; overflow: hidden; background: var(--ink-fixed);
  min-height: 48svh; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 56rem) { .hero-stage { position: sticky; top: 0; height: 100svh; min-height: 0; } }
.hero-stage .track-lines { position: absolute; inset: 0; opacity: 0.14; }
.hero-tile {
  position: relative; width: min(66%, 420px); aspect-ratio: 1; background: var(--paper-fixed);
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.hero-tile .corner-slash { position: absolute; top: 14px; left: 14px; width: 34px; height: 4px; background: var(--accent); transform: rotate(-42deg); transform-origin: left center; }
.hero-tile .tile-word { color: var(--ink-fixed); font-size: clamp(1.5rem, 4vw, 2.25rem); padding-inline: 1.5rem; text-align: center; }
.hero-tile .tile-caption { position: absolute; left: 18px; bottom: 16px; font-size: var(--step-small); color: var(--ink-fixed); }
.hero-tile .tile-caption .fact { color: var(--muted-fixed); display: block; }

/* track-lines signature pattern (brand mark) */
.track-lines {
  background-image: repeating-linear-gradient(to bottom, currentColor 0, currentColor 1px, transparent 1px, transparent 9px); /* taste-skill-ignore: hard-edged stripe pattern (brand signature), not a colour gradient */
  color: var(--paper-fixed);
}

/* ---------- nosotros ---------- */
.nosotros { background: var(--bg); }
.nosotros-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .nosotros-grid { grid-template-columns: 7fr 5fr; } }
.nosotros-text h2 { font-size: var(--step-head); }
.nosotros-text p { font-family: var(--font-text); text-transform: none; margin-top: 1rem; max-width: 56ch; }
/* Dedicated portraits: both panels fill the SAME height and keep faces visible. */
.nosotros-media {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 8px;
  aspect-ratio: 8 / 5;
  min-width: 0;
}
.nosotros-media figure { margin: 0; min-width: 0; min-height: 0; overflow: hidden; }
.nosotros-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 40rem) {
  .nosotros-grid { gap: 1.75rem; }
  .nosotros-media { gap: 5px; }
}

/* ---------- showcase: frame run, one lifted ---------- */
.showcase { background: var(--bg); }
.showcase-head { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: clamp(2rem,5vw,3rem); }
.showcase-head h2 { font-size: var(--step-head); }
.showcase-head .link { font-size: var(--step-small); font-weight: 600; align-self: start; }
.run { display: flex; align-items: flex-end; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 0.5rem; }
.run::-webkit-scrollbar { height: 6px; }
.tile {
  position: relative; flex: 0 0 auto; width: 30vw; max-width: 230px; height: 30vh; min-height: 220px;
  scroll-snap-align: start; overflow: hidden; background: var(--surface-2);
}
.tile.is-lifted { height: 66vh; min-height: 420px; max-width: 280px; }
.tile .tile-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-inline: 1.5rem; }
.tile .tile-media svg { width: 54%; height: 54%; color: var(--ink); filter: grayscale(1); transition: filter var(--t-ui) ease, color var(--t-ui) ease; }
.tile:hover .tile-media svg, .tile:focus-within .tile-media svg { filter: grayscale(0); color: var(--ink); }
.tile .corner-slash { position: absolute; top: 10px; right: 10px; width: 26px; height: 3px; background: var(--accent); transform: rotate(-42deg) scale(0); transition: transform var(--t-ui) var(--ease-out); transform-origin: right center; }
.tile:hover .corner-slash, .tile:focus-within .corner-slash { transform: rotate(-42deg) scale(1); }
.tile-info { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.6rem; padding-inline: 2px; font-size: var(--step-small); }
.tile-info .fact { color: var(--muted); }
.run-note { margin-top: 1.25rem; font-size: var(--step-small); color: var(--muted); max-width: 46ch; }

/* brand specimen tiles (Marcas): text instead of icon, no dramatic lift (only 2 items) */
.run--brands { flex-wrap: wrap; }
.run--brands .tile { flex: 1 1 320px; width: auto; max-width: 560px; height: 42vh; min-height: 300px; }
.run--brands .tile.is-lifted { height: 46vh; min-height: 330px; max-width: 560px; }
.tile-word {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 5vw, 3rem); text-align: center; color: var(--muted);
  transition: color var(--t-ui) ease;
}
.tile:hover .tile-word, .tile:focus-within .tile-word { color: var(--ink); }

/* ---------- features: four distinct blocks (not a card grid) ---------- */
.features { background: var(--ink-fixed); color: var(--paper-fixed); }
.features .section-head h2, .features .section-head p { color: var(--paper-fixed); }
.value-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gutter);
  margin-top: 1rem;
}
.value-block {
  position: relative; overflow: hidden; padding: clamp(1.5rem, 3vw, 2.5rem);
  grid-column: 1 / -1; background: var(--surface-fixed); color: var(--ink-fixed);
}
.value-block svg { width: 2.25rem; height: 2.25rem; }
.value-block h3 { font-size: var(--step-h3); margin-top: 1.25rem; max-width: 18ch; }
.value-block p { font-family: var(--font-text); text-transform: none; margin-top: 0.75rem; color: var(--muted-fixed); max-width: 46ch; }
@media (min-width: 56rem) {
  .value-block--lead { grid-column: 1 / 8; min-height: 320px; }
  .value-block--stat { grid-column: 8 / 13; }
  .value-block--corner { grid-column: 1 / 6; }
  .value-block--split { grid-column: 6 / 13; }
}
.value-block--lead .value-block__icon-bg {
  position: absolute; right: -1.5rem; bottom: -1.5rem; width: 9rem; height: 9rem;
  color: var(--border-fixed); opacity: 0.9;
}
.value-block--stat { background: var(--ink-fixed); color: var(--paper-fixed); }
.value-block--stat p { color: var(--muted-on-dark); }
.value-block--corner svg { position: absolute; top: 1.75rem; right: 1.75rem; margin: 0; }
.value-block--corner h3 { font-size: var(--step-head); max-width: 12ch; }
.value-block--split {
  background: var(--ink-fixed); color: var(--paper-fixed);
  outline: 2px solid var(--accent); outline-offset: -2px;
  display: flex; align-items: flex-start; gap: 1.5rem;
}
.value-block--split svg { flex: 0 0 auto; width: 3rem; height: 3rem; margin-top: 0.25rem; }
.value-block--split p { color: var(--muted-on-dark); }

/* ---------- cta: the reply card ---------- */
.cta { background: var(--ink-fixed); color: var(--paper-fixed); position: relative; overflow: hidden; }
.cta-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .cta-row { grid-template-columns: 5fr 7fr; } }
.cta-copy { font-size: var(--step-lead); font-family: var(--font-text); text-transform: none; max-width: 38ch; }
.cta-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.5rem; }
.cta-list li { position: relative; padding-left: 1.5rem; font-size: var(--step-body); }
.cta-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 14px; height: 2px; background: var(--accent); }
.cta-list-note { margin-top: 1rem; font-size: var(--step-small); color: var(--muted-on-dark); max-width: 42ch; }
.reply-card {
  background: var(--paper-fixed); color: var(--ink-fixed); border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem); transform: rotate(1.4deg);
  max-width: 560px; margin-left: auto; position: relative;
}
.reply-card h3 { font-size: var(--step-h3); max-width: 16ch; }
.reply-card p { font-family: var(--font-text); text-transform: none; margin-top: 0.75rem; color: var(--muted-fixed); }
.reply-card .reply-card-tags { margin-top: 1rem; font-size: var(--step-small); color: var(--muted-fixed); }
.reply-card .doc-mock { position: absolute; top: -26px; right: 28px; width: 70px; height: 92px; background: var(--surface-2); }
.reply-card .doc-mock span { display: block; height: 2px; background: var(--border-fixed); margin: 10px 10px 0; }
.reply-card .doc-mock span:nth-child(1) { margin-top: 16px; width: 60%; background: var(--accent); }
.reply-card .button { width: 100%; margin-top: 1.5rem; min-height: 3.5rem; }

/* ---------- promociones ---------- */
.promo { background: var(--ink-fixed); color: var(--paper-fixed); position: relative; overflow: hidden; }
.section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.promo-row { position: relative; z-index: 1; }
.promo .muted { color: var(--muted-on-dark); }
.promo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.promo-row > div { max-width: 56ch; }
.promo-row h2 { font-size: var(--step-head); }
.promo-row p { font-family: var(--font-text); text-transform: none; margin-top: 0.75rem; }
.promo .button--ghost { background: rgba(247,245,241,0.14); color: inherit; flex: 0 0 auto; }

/* ---------- faq ---------- */
.faq { background: var(--bg); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 56rem) {
  .faq-list { display: block; column-count: 2; column-gap: var(--gutter); }
  .faq-item { break-inside: avoid; margin-bottom: 10px; }
}
.faq-item { background: var(--surface-2); padding: 1.25rem 1.5rem; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: var(--step-lead); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; flex: 0 0 auto; transition: transform var(--t-ui) ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-family: var(--font-text); text-transform: none; margin-top: 0.9rem; max-width: 64ch; }

/* ---------- contact: photo strip + two-panel (info / form) ---------- */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 1.5rem; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-panel { padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-direction: column; }
.contact-panel--info { background: var(--ink-fixed); color: var(--paper-fixed); gap: 1.75rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item svg { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; margin-top: 0.2rem; }
.contact-item h3 { font-family: var(--font-text); text-transform: none; font-size: var(--step-body); font-weight: 700; }
.contact-item p { font-family: var(--font-text); text-transform: none; margin-top: 0.25rem; color: var(--muted-on-dark); }
.contact-item p .link { color: inherit; font-weight: 600; }
.contact-note { margin-top: auto; padding-top: 1.5rem; font-size: var(--step-small); color: var(--muted-on-dark); }
.contact-panel--form { background: var(--surface-fixed); color: var(--ink-fixed); }
.contact-panel--form .field-label { font-size: var(--step-small); font-weight: 700; margin-top: 1rem; }
.contact-panel--form .field-label:first-child { margin-top: 0; }
/* The form panel is an always-white card (fixed pair), so its fields must not follow the dark theme. */
.contact-panel--form .field { margin-top: 0.5rem; background: var(--surface-fixed); border-color: var(--border-fixed); color: var(--ink-fixed); }
.contact-panel--form .form-note { color: var(--muted-fixed); }
.contact-panel--form textarea.field { min-height: 9rem; padding-block: 0.75rem; resize: vertical; }
.contact-panel--form .button { margin-top: 1.5rem; width: 100%; min-height: 3.5rem; }
.contact-panel--form .form-note, .contact-panel--form .form-success { text-align: center; }
/* Trust bar: sits right under the hero. Default (no JS / reduced motion) is a
   static, centred, wrapping row; script.js adds .is-marquee and repeats the
   set until it fills any screen width. The hairline borders keep it visible
   on the dark theme, where its fill is almost the page background. */
.trust-bar {
  background: var(--ink-fixed); width: 100%; padding-block: 1.35rem;
  border-block: 1px solid rgba(247,245,241,0.16);
}
.trust-bar__viewport { overflow: hidden; }
.trust-bar__track { display: flex; justify-content: center; }
.trust-set { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; row-gap: 0.75rem; padding-inline: var(--margin); }
.trust-item {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1;
  color: var(--paper-fixed); white-space: nowrap;
}
.trust-item svg { width: 1.5rem; height: 1.5rem; color: var(--accent); flex: 0 0 auto; }
/* brand slash between items (also closes each set, so loop seams read the same) */
.trust-item::after {
  content: ""; flex: 0 0 auto; width: 22px; height: 3px; margin-inline: 1.5rem 0.9rem;
  background: var(--accent); transform: rotate(-42deg);
}
/* static layout wraps, so a slash would dangle at a line end: use spacing instead */
.trust-bar:not(.is-marquee) .trust-item::after { display: none; }
.trust-bar:not(.is-marquee) .trust-item { margin-inline: 1.25rem; }

.trust-bar.is-marquee .trust-bar__viewport {
  /* soft entry/exit instead of a hard cut at the edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); /* taste-skill-ignore: alpha mask for edge fade, not a colour gradient */
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.trust-bar.is-marquee .trust-bar__track {
  justify-content: flex-start; width: max-content; will-change: transform;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}
.trust-bar.is-marquee .trust-set { flex-wrap: nowrap; padding-inline: 0; }
.trust-bar.is-marquee:hover .trust-bar__track,
.trust-bar.is-marquee:focus-within .trust-bar__track { animation-play-state: paused; }
/* --sets = how many identical sets script.js laid out; one set's width is exactly 100% / --sets */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% / var(--sets, 2))); }
}
.form-note { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.form-success { margin-top: 0.75rem; font-size: var(--step-small); color: var(--success); display: none; }
.form-success.is-shown { display: block; }

/* ---------- footer: back of the card ---------- */
.site-footer { background: var(--ink-fixed); color: var(--paper-fixed); padding-block: var(--section); }
.postcard {
  background: var(--paper-fixed); color: var(--ink-fixed); max-width: 980px; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem); position: relative;
  /* 12 true semicircular scallops (sine-sampled, not a straight-edge zigzag) along
     the top edge, closed by straight sides -- a stamp/postcard-perforation motif. */
  clip-path: polygon(
    0.000% 0.0px, 1.042% 3.8px, 2.083% 7.1px, 3.125% 9.2px, 4.167% 10.0px, 5.208% 9.2px, 6.250% 7.1px, 7.292% 3.8px,
    8.333% 0.0px, 9.375% 3.8px, 10.417% 7.1px, 11.458% 9.2px, 12.500% 10.0px, 13.542% 9.2px, 14.583% 7.1px,
    15.625% 3.8px, 16.667% 0.0px, 17.708% 3.8px, 18.750% 7.1px, 19.792% 9.2px, 20.833% 10.0px, 21.875% 9.2px,
    22.917% 7.1px, 23.958% 3.8px, 25.000% 0.0px, 26.042% 3.8px, 27.083% 7.1px, 28.125% 9.2px, 29.167% 10.0px,
    30.208% 9.2px, 31.250% 7.1px, 32.292% 3.8px, 33.333% 0.0px, 34.375% 3.8px, 35.417% 7.1px, 36.458% 9.2px,
    37.500% 10.0px, 38.542% 9.2px, 39.583% 7.1px, 40.625% 3.8px, 41.667% 0.0px, 42.708% 3.8px, 43.750% 7.1px,
    44.792% 9.2px, 45.833% 10.0px, 46.875% 9.2px, 47.917% 7.1px, 48.958% 3.8px, 50.000% 0.0px, 51.042% 3.8px,
    52.083% 7.1px, 53.125% 9.2px, 54.167% 10.0px, 55.208% 9.2px, 56.250% 7.1px, 57.292% 3.8px, 58.333% 0.0px,
    59.375% 3.8px, 60.417% 7.1px, 61.458% 9.2px, 62.500% 10.0px, 63.542% 9.2px, 64.583% 7.1px, 65.625% 3.8px,
    66.667% 0.0px, 67.708% 3.8px, 68.750% 7.1px, 69.792% 9.2px, 70.833% 10.0px, 71.875% 9.2px, 72.917% 7.1px,
    73.958% 3.8px, 75.000% 0.0px, 76.042% 3.8px, 77.083% 7.1px, 78.125% 9.2px, 79.167% 10.0px, 80.208% 9.2px,
    81.250% 7.1px, 82.292% 3.8px, 83.333% 0.0px, 84.375% 3.8px, 85.417% 7.1px, 86.458% 9.2px, 87.500% 10.0px,
    88.542% 9.2px, 89.583% 7.1px, 90.625% 3.8px, 91.667% 0.0px, 92.708% 3.8px, 93.750% 7.1px, 94.792% 9.2px,
    95.833% 10.0px, 96.875% 9.2px, 97.917% 7.1px, 98.958% 3.8px, 100.000% 0.0px, 100% 100%, 0% 100%
  );
}
.postcard-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 1rem; }
@media (min-width: 48rem) { .postcard-grid { grid-template-columns: 1fr 1fr; } }
.postcard-sign h3 { font-size: var(--step-h3); max-width: 14ch; }
.postcard-sign p { font-family: var(--font-text); text-transform: none; margin-top: 0.75rem; color: var(--muted-fixed); }
.postcard-address { display: flex; flex-direction: column; gap: 0.6rem; font-size: var(--step-body); }
.postcard-address a { text-decoration: underline; text-decoration-color: transparent; }
.postcard-address a:hover { text-decoration-color: var(--accent); }
.postcard-stamp { position: absolute; top: 20px; right: 20px; width: 84px; height: 64px; border: 4px solid var(--paper-fixed); outline: 1px dashed var(--border-fixed); overflow: hidden; }
.postcard-stamp img { width: 100%; height: 100%; object-fit: cover; }
.postcard-foot { margin-top: 2.5rem; text-align: center; font-size: var(--step-small); color: var(--muted-fixed); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(20px); }
  .js [data-rise].is-in { opacity: 1; transform: none; transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
  .js .mask-line { display: block; overflow: hidden; }
  .js .mask-line span { display: block; transform: translateY(110%); transition: transform 900ms var(--ease-expo); }
  .js .mask-line.is-in span { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; }
}


/* ===========================================================
   SPORTSWEAR: editorial imagery integration · October 2026
   All photos are generic / illustrative, not product photos.
   =========================================================== */

/* Hero keeps the original split layout, slash mark and specimen card. */
.hero-stage {
  isolation: isolate;
  background: #18191c;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -5%;
  z-index: -1;
  background: url("assets/01-hero-pareja.webp") center / cover no-repeat;
  filter: blur(45px) brightness(0.29) saturate(0.55);
  transform: scale(1.08);
  opacity: .75;
}
.hero-stage .track-lines { opacity: 0.08; pointer-events: none; }
.hero-photo-frame {
  position: relative;
  width: min(86%, 670px);
  aspect-ratio: 1.58;
  margin: -13% 0 0;
  z-index: 1;
  overflow: hidden;
  transform: rotate(-1.75deg);
  border: 7px solid rgba(247,245,241,.95);
  background: #343538;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}
.hero-photo-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(17,17,19,0.76);
  color: #f7f5f1;
  padding: .65rem .9rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
}
.hero-photo-label span { font-weight: 500; opacity: .8; }
.hero-stage .hero-tile {
  position: absolute;
  right: 6%;
  bottom: 11%;
  width: min(48%, 270px);
  min-height: 154px;
  aspect-ratio: auto;
  padding: 2.3rem 1.25rem 3.25rem;
  transform: rotate(2.5deg);
  background: var(--paper-fixed);
  border: 1px solid rgba(0,0,0,.08);
}
.hero-stage .hero-tile .tile-word {
  font-size: clamp(1.25rem, 2.35vw, 2.1rem);
  line-height: 1;
  padding-inline: 0;
}
.hero-stage .hero-tile .tile-caption { bottom: 13px; left: 14px; right: 10px; line-height: 1.45; }

/* Brand panels become linked editorial photos rather than inert placeholders.
   Text remains the brand/category identifier, not a claim about photo products. */
.run--brands .tile { background: #151517; }
.run--brands .tile-link { position: absolute; inset: 0; display: block; }
.run--brands .tile-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -5px; }
.run--brands .tile-media { padding: 0; }
.run--brands .tile-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.07) 0%, rgba(0,0,0,.52) 100%);
  pointer-events: none;
}
.run--brands .tile-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 48% center;
  filter: grayscale(.2) brightness(.8);
  transition: transform 600ms var(--ease-out), filter 450ms ease;
}
.run--brands .tile:nth-child(2) .tile-media img { object-position: 58% center; }
.run--brands .tile:hover .tile-media img,
.run--brands .tile:focus-within .tile-media img { transform: scale(1.04); filter: grayscale(0) brightness(.92); }
.run--brands .tile .tile-word,
.run--brands .tile:hover .tile-word,
.run--brands .tile:focus-within .tile-word {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  font-size: clamp(2.1rem, 5.5vw, 4.1rem);
}
.run--brands .tile .corner-slash { z-index: 2; }
.run-note { max-width: 75ch; }

/* Technical fabric detail softens the 'original' trust card without
   covering the original copy or inventing product-specific claims. */
.value-block--lead {
  /* Text on a solid panel, photo kept sharp in its own panel (no wash-out gradient). */
  background-image: url("assets/05-detalle-ropa.webp");
  background-size: 44% 100%;
  background-position: right center;
  background-repeat: no-repeat;
  padding-right: calc(44% + 2rem);
}
.value-block--lead .value-block__icon-bg {
  z-index: 1; color: #fff; opacity: .9;
  right: 1.5rem; bottom: 1.5rem; width: 3.5rem; height: 3.5rem;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.45));
}
.value-block--lead h3, .value-block--lead p { position: relative; z-index: 2; }

/* Preserve strong text contrast over photographic backgrounds. */
.cta::before, .promo::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10,10,11,.76), rgba(10,10,11,.46));
}
.cta .section-bg { opacity: .43; object-position: center; }
.promo .section-bg { opacity: .55; object-position: 55% 45%; }

@media (max-width: 55.999rem) {
  .hero-stage { min-height: max(380px, 52svh); }
  .hero-photo-frame { width: min(90%, 720px); aspect-ratio: 1.65; margin-top: -10%; border-width: 5px; }
  .hero-stage .hero-tile { bottom: 7%; width: min(48%, 238px); min-height: 115px; padding: 1.7rem .75rem 2.65rem; }
  .hero-stage .hero-tile .tile-word { font-size: clamp(1.05rem, 4vw, 1.7rem); }
  .hero-stage .hero-tile .tile-caption { font-size: .6875rem; bottom: 9px; left: 10px; }
  .run--brands .tile, .run--brands .tile.is-lifted { height: 310px; min-height: 310px; }
  .value-block--lead {
    background-size: 100% 11rem;
    background-position: center top;
    padding-right: clamp(1.5rem, 3vw, 2.5rem);
    padding-top: calc(11rem + 1.5rem);
  }
  .value-block--lead .value-block__icon-bg { top: 7rem; bottom: auto; }
  .value-block--lead h3 { margin-top: 0; }
}
@media (max-width: 40rem) {
  .hero-photo-label span { display: none; } /* the specimen tile covers it at these widths */
}
@media (max-width: 30rem) {
  .hero-photo-label { font-size: .6875rem; padding: .5rem .6rem; }
  .hero-stage .hero-tile { bottom: 9%; min-height: 105px; width: 52%; }
  .hero-stage .hero-tile .tile-caption .fact { font-size: .6875rem; }
  .run--brands .tile, .run--brands .tile.is-lifted { flex: 1 1 100%; max-width: none; height: 260px; min-height: 260px; }
}

/* At narrow widths there is already a prominent catalogue CTA in the hero.
   Prioritize a fully visible wordmark and menu over a clipped header CTA. */
@media (max-width: 28rem) {
  .site-header .header-cta .button { display: none; }
  .site-header .header-cta { gap: .45rem; }
}

/* ===========================================================
   FLOATING UI: scroll progress · back-to-top · WhatsApp ·
   theme picker · brand-tile tilt
   =========================================================== */

/* Scroll progress: --scroll (0..1) is set on <html> by script.js and also
   drives the back-to-top bar below. */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--ink); transform: scaleX(var(--scroll, 0)); transform-origin: left center;
  pointer-events: none;
}

/* Bottom-right stack: back-to-top above the WhatsApp button. */
.fab-stack {
  position: fixed; right: var(--margin); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem;
}
.fab {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-width: 3.25rem; min-height: 3.25rem; border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18); /* taste-skill-ignore: floating action buttons, the named shadow exception */
  transition: transform var(--t-press) var(--ease-out), opacity var(--t-ui) ease, visibility var(--t-ui) ease;
}
.fab:active { transform: scale(0.97); }
.fab--whatsapp {
  padding: 0 0.8rem; background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-small); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.fab--whatsapp svg { width: 1.7rem; height: 1.7rem; flex: 0 0 auto; }
.fab--whatsapp span { display: none; }
@media (min-width: 48rem) {
  .fab--whatsapp { padding: 0 1.15rem 0 0.9rem; }
  .fab--whatsapp span { display: inline; }
}
/* Fixed pair so it stays visible over both the bone and the always-dark sections. */
.fab--top {
  position: relative; overflow: hidden;
  background: var(--paper-fixed); color: var(--ink-fixed); border: 1px solid var(--ink-fixed);
  opacity: 0; visibility: hidden; transform: translateY(8px);
}
.fab--top.is-shown { opacity: 1; visibility: visible; transform: none; }
.fab--top.is-shown:active { transform: scale(0.97); }
.fab--top svg { width: 1.3rem; height: 1.3rem; }
.fab--top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--ink-fixed); transform: scaleX(var(--scroll, 0)); transform-origin: left center;
}

/* Theme picker (rendered only when JS is available, since it needs JS to work). */
.theme-switcher {
  position: fixed; left: var(--margin); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; gap: 0.5rem; padding: 0.4rem 0.4rem 0.4rem 0.8rem;
  background: var(--paper-fixed); color: var(--ink-fixed); border: 1px solid var(--ink-fixed); border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18); /* taste-skill-ignore: floating control, the named shadow exception */
  font-size: var(--step-small); font-weight: 700;
}
.js .theme-switcher { display: flex; }
.theme-switcher select {
  font: inherit; color: inherit; background: transparent; cursor: pointer;
  border: 1px solid var(--border-fixed); border-radius: var(--radius); padding: 0.35rem 0.5rem; min-height: 2.25rem;
}
.theme-switcher select:focus-visible { outline: 2px solid var(--ink-fixed); outline-offset: 2px; }

/* Brand tiles tilt toward the cursor (pointer devices only, no reduced motion). */
.run--brands { overflow: visible; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .run--brands .tile {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 500ms var(--ease-out);
  }
  .run--brands .tile.is-tilting { transition: transform 90ms linear; }
}
@media (prefers-reduced-motion: reduce) {
  .fab, .fab--top.is-shown { transition: none; }
}
