/* =========================================================================
   JERSEYPRO · Sistema visual
   Oscuro, editorial y con volt solo para lo importante.
   ========================================================================= */

:root {
  /* Superficies: un paso de tono separa cada nivel, nunca una línea. */
  --bg: #0b0b0a;
  --bg-2: #141412;
  --bg-3: #1c1c19;
  --bg-4: #272723;
  --ink: #f2f0e9;
  --ink-2: #bdbab1;
  --ink-3: #8c897f;
  --volt: #d4ff3a;
  --volt-ink: #0b0b0a;
  --bone: #ebe8e0;
  --bone-ink: #0b0b0a;
  --red: #ff5a47;

  /* Campos de color para las fichas de jersey */
  --field-pitch: #16261d;
  --field-night: #181d2a;
  --field-clay: #2a1c17;
  --field-olive: #232419;
  --field-plum: #241a22;

  --font: "TikTok Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.2rem, 1.08rem + 0.6vw, 1.55rem);
  --step-h3: clamp(1.4rem, 1.15rem + 1.1vw, 2.1rem);
  --step-h2: clamp(2.1rem, 0.9rem + 5.4vw, 6.6rem);
  --step-display: clamp(3.4rem, 0.9rem + 10.4vw, 13rem);

  --gutter: clamp(16px, 2.6vw, 40px);
  --maxw: 1520px;
  --section: clamp(96px, 12vw, 200px);
  --radius: 20px;
  --radius-sm: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 72px;
  --ribbon-h: 0px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--volt); color: var(--volt-ink); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.hide-sm {}
@media (max-width: 640px) { .hide-sm { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.is-locked { overflow: hidden; }

/* ---------- Tipografía ---------- */
.display, .h2, .wide {
  font-variation-settings: "wdth" 150;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
}
.display { font-size: var(--step-display); }
.h2 { font-size: var(--step-h2); }
.h3 { font-size: var(--step-h3); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.lead { font-size: var(--step-lead); line-height: 1.35; color: var(--ink); max-width: 40ch; }
.small { font-size: var(--step-small); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.tnum { font-variant-numeric: tabular-nums; }
.volt { color: var(--volt); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.stack > * + * { margin-top: var(--stack, 1rem); }
main { display: block; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--bg-4);
  --btn-ink: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.5em;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.25s, color 0.25s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--primary { --btn-bg: var(--volt); --btn-ink: var(--volt-ink); }
.btn--primary:hover { --btn-bg: #e2ff73; }
.btn--light { --btn-bg: var(--ink); --btn-ink: var(--bg); }
.btn--light:hover { --btn-bg: #fff; }
.btn--ghost { --btn-bg: transparent; padding-inline: 0.4em; }
.btn--ghost:hover { color: var(--volt); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: 0.9375rem; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
@media (hover: hover) { .btn:not(.btn--primary):not(.btn--light):not(.btn--ghost):hover { --btn-bg: #33332e; } }

.link {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s var(--ease-out), color 0.2s;
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 2px; }
.link svg { width: 1em; height: 1em; }

/* ---------- Chips y controles ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 44px; padding: 0 1.05em;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--ink);
  font-weight: 500; font-size: 0.9375rem;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { background: var(--bg-4); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: var(--bg); }
.chip .count { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 0.85em; }
.chip[aria-pressed="true"] .count, .chip.is-on .count { color: #5b5a55; }
.chip img { width: 22px; height: 22px; object-fit: contain; }
.chip[disabled] { opacity: 0.35; pointer-events: none; }

.field { display: grid; gap: 8px; }
.field > span, .field-label { font-weight: 600; font-size: 0.9375rem; }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--ink);
  font-size: 16px;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; background: var(--bg-4); box-shadow: 0 0 0 2px var(--volt); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23bdbab1' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg-3); }
.seg button { min-height: 42px; padding: 0 1.1em; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); transition: background-color 0.25s, color 0.25s; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.stepper { display: inline-flex; align-items: center; background: var(--bg-3); border-radius: 999px; padding: 4px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; transition: background-color 0.2s; }
.stepper button:hover { background: var(--bg-4); }
.stepper output { min-width: 2.2em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  position: relative;
  min-width: 56px; height: 52px; padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  font-weight: 700;
  display: inline-grid; place-items: center;
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease-out);
}
.size:hover { background: var(--bg-4); }
.size:active { transform: scale(0.95); }
.size[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.size small { position: absolute; top: -8px; right: -6px; font-size: 11px; font-weight: 700; background: var(--bg-4); color: var(--ink-2); border-radius: 999px; padding: 1px 6px; }
.size[aria-pressed="true"] small { background: var(--volt); color: var(--volt-ink); }

/* ---------- Cintillo de promoción ---------- */
.ribbon {
  position: relative; z-index: 60;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: var(--step-small);
  overflow: hidden;
}
.ribbon a { display: flex; align-items: center; justify-content: center; gap: 0.75em; min-height: 38px; padding: 8px var(--gutter); text-align: center; }
.ribbon strong { color: var(--ink); font-weight: 700; }
.ribbon .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.ribbon.is-thursday { background: var(--volt); color: var(--volt-ink); }
.ribbon.is-thursday strong { color: var(--volt-ink); }
.ribbon.is-thursday .dot { background: var(--volt-ink); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.35s, transform 0.45s var(--ease-out);
}
.header.is-solid { background: rgba(11, 11, 10, 0.94); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: block; width: 148px; color: var(--ink); flex: none; }
.logo svg { width: 100%; height: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 0.9375rem; color: var(--ink-2); transition: color 0.2s, background-color 0.2s; }
.nav a:hover { color: var(--ink); background: var(--bg-3); }
.nav a[aria-current="page"] { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.bag-btn { position: relative; }
.bag-btn .bag-count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  display: inline-grid; place-items: center;
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: transform 0.4s var(--ease-out);
}
.bag-btn.has-items .bag-count { background: var(--volt); color: var(--volt-ink); }
.bag-btn.bump .bag-count { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.35); } }
.menu-btn { display: none; width: 52px; padding: 0; }
.menu-btn .bars { display: block; width: 20px; }
.menu-btn .bars > span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease-out); }
.menu-btn .bars > span + span { margin-top: 5px; }
.menu-btn[aria-expanded="true"] .bars > span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars > span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .logo { width: 128px; }
  :root { --header-h: 64px; }
}
@media (max-width: 420px) {
  .bag-btn .bag-label { display: none; }
  .bag-btn { padding-inline: 1em; }
}

/* ---------- Menú (móvil) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  padding: calc(var(--header-h) + var(--ribbon-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-in-out), visibility 0s linear 0.6s;
}
.menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.6s var(--ease-in-out), visibility 0s; }
.menu__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 10px 0;
  font-variation-settings: "wdth" 150; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 3.6rem); line-height: 1;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), color 0.2s;
}
.menu__links a small { font: 500 var(--step-small) var(--font); font-variation-settings: "wdth" 100; text-transform: none; color: var(--ink-3); }
.menu__links a[aria-current="page"] { color: var(--volt); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links li:nth-child(1) a { transition-delay: 0.12s; }
.menu.is-open .menu__links li:nth-child(2) a { transition-delay: 0.17s; }
.menu.is-open .menu__links li:nth-child(3) a { transition-delay: 0.22s; }
.menu.is-open .menu__links li:nth-child(4) a { transition-delay: 0.27s; }
.menu.is-open .menu__links li:nth-child(5) a { transition-delay: 0.32s; }
.menu.is-open .menu__links li:nth-child(6) a { transition-delay: 0.37s; }
.menu.is-open .menu__links li:nth-child(7) a { transition-delay: 0.42s; }
.menu__foot { display: grid; gap: 14px; padding-top: 32px; color: var(--ink-2); }
.menu__foot .btn { justify-self: start; }

/* ---------- Iconos ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cursor (rastro) ---------- */
.cursor-trail { position: fixed; inset: 0; z-index: 9999; pointer-events: none; mix-blend-mode: screen; }

/* ---------- Animaciones de texto ---------- */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
[data-split] .wi { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0ms)); }
[data-split].is-in .wi { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
html.no-js [data-reveal], html.no-js [data-split] .wi { opacity: 1; transform: none; }

/* ---------- Ficha (tarjeta de jersey) ---------- */
.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  isolation: isolate;
}
.tile img {
  position: absolute; inset: 6% 6% 2%;
  width: 88%; height: 92%;
  object-fit: contain;
  transition: transform 0.9s var(--ease-out);
}
.tile[data-field="pitch"] { background: var(--field-pitch); }
.tile[data-field="night"] { background: var(--field-night); }
.tile[data-field="clay"] { background: var(--field-clay); }
.tile[data-field="olive"] { background: var(--field-olive); }
.tile[data-field="plum"] { background: var(--field-plum); }

.card { display: grid; gap: 14px; position: relative; text-align: left; width: 100%; }
.card__tags { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(11, 11, 10, 0.72); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag--volt { background: var(--volt); color: var(--volt-ink); }
.card__body { display: grid; gap: 4px; padding-inline: 2px; }
.card__team { font-weight: 700; font-size: 1.125rem; line-height: 1.2; }
.card__meta { color: var(--ink-2); font-size: 0.9375rem; }
.card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.card__price { font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.card__add {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-3); display: grid; place-items: center;
  transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease-out);
}
.card:hover .card__add { background: var(--ink); color: var(--bg); }
.card__add:active { transform: scale(0.9); }
@media (hover: hover) {
  .card:hover .tile img { transform: scale(1.07) rotate(-1.5deg); }
}
.card .tile::after {
  content: "Ver y elegir talla";
  position: absolute; left: 50%; bottom: 16px; z-index: 2;
  transform: translate(-50%, 12px);
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
@media (hover: hover) { .card:hover .tile::after { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Reseña ---------- */
.review-card { background: var(--bg-2); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.review-card__photo { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--bg-3); }
.review-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.review-card__stars { color: var(--volt); display: flex; gap: 2px; }
.review-card__stars .i { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.review-card blockquote { margin: 0; font-size: 1.125rem; line-height: 1.45; }
.review-card cite { font-style: normal; color: var(--ink-2); font-size: 0.9375rem; }
.review-card cite b { color: var(--ink); }

/* ---------- Medidor de estrellas ---------- */
.stars-meter { position: relative; display: inline-block; line-height: 0; }
.stars-meter .i { width: 1.2em; height: 1.2em; fill: currentColor; stroke: none; }
.stars-meter__base { display: inline-flex; gap: 2px; color: var(--bg-4); }
.stars-meter__fill { position: absolute; left: 0; top: 0; display: inline-flex; gap: 2px; overflow: hidden; white-space: nowrap; color: var(--volt); }

/* ---------- Grano de película (todo el sitio) ---------- */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 9998; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.14;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Capa (drawer, modal, sheet) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(5, 5, 4, 0.66);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0s linear 0.4s;
}
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s, visibility 0s; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(480px, 100%);
  background: var(--bg-2);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.45);
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.6s var(--ease-out), visibility 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; }
.drawer__title { font-variation-settings: "wdth" 150; font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 24px; }
.drawer__foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); background: var(--bg-3); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); transition: background-color 0.2s, transform 0.3s var(--ease-out); flex: none; }
.icon-btn:hover { background: var(--bg-4); }
.icon-btn:active { transform: scale(0.92); }

/* Bolsa */
.bag-progress { background: var(--bg-3); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 10px; margin-bottom: 18px; }
.bag-progress p { font-size: 0.9375rem; }
.bag-progress strong { color: var(--ink); }
.bag-progress__bar { height: 6px; border-radius: 99px; background: var(--bg-4); overflow: hidden; }
.bag-progress__bar i { display: block; height: 100%; width: 0; background: var(--volt); border-radius: inherit; transition: width 0.7s var(--ease-out); }

.bag-list { display: grid; gap: 12px; }
.bag-item {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--bg-3);
  animation: itemIn 0.5s var(--ease-out);
}
@keyframes itemIn { from { opacity: 0; transform: translateY(10px); } }
.bag-item .tile { aspect-ratio: 1; border-radius: 10px; }
.bag-item__info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.bag-item__top { display: flex; justify-content: space-between; gap: 8px; }
.bag-item__name { font-weight: 700; line-height: 1.2; }
.bag-item__meta { color: var(--ink-2); font-size: 0.875rem; line-height: 1.4; }
.bag-item__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 8px; }
.bag-item .stepper { padding: 2px; }
.bag-item .stepper button { width: 34px; height: 34px; }
.bag-item__price { font-weight: 800; font-variant-numeric: tabular-nums; }
.bag-item__remove { color: var(--ink-3); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.bag-item__remove:hover { color: var(--red); background: var(--bg-4); }

.bag-empty { text-align: left; display: grid; gap: 16px; padding: 24px 0; }
.bag-empty .wide { font-size: 2.2rem; }

.totals { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: 0.9375rem; }
.totals .is-discount { color: var(--volt); }
.totals .grand { color: var(--ink); font-weight: 800; font-size: 1.375rem; padding-top: 8px; align-items: baseline; }

.pay { display: grid; gap: 10px; margin: 22px 0 6px; }
.pay__title { font-weight: 700; }
.pay__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay__opt {
  display: grid; gap: 4px; justify-items: start; text-align: left;
  padding: 12px; border-radius: var(--radius-sm); background: var(--bg-3);
  font-size: 0.875rem; font-weight: 600; line-height: 1.2;
  transition: background-color 0.2s, color 0.2s;
}
.pay__opt .i { width: 22px; height: 22px; }
.pay__opt:hover { background: var(--bg-4); }
.pay__opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pay__detail { background: var(--bg-3); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.pay__detail strong { color: var(--ink); }
.clabe { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-4); border-radius: 10px; padding: 10px 10px 10px 14px; }
.clabe code { font-family: var(--font); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Ficha de producto (modal) */
.sheet {
  position: fixed; z-index: 80;
  left: 50%; top: 50%;
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100svh - 48px);
  background: var(--bg-2);
  border-radius: 28px;
  display: grid; grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  transform: translate(-50%, -46%) scale(0.98);
  opacity: 0; visibility: hidden;
  transition: transform 0.6s var(--ease-out), opacity 0.35s, visibility 0s linear 0.6s;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}
.sheet.is-open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; transition: transform 0.6s var(--ease-out), opacity 0.35s, visibility 0s; }
.sheet__media { position: relative; background: var(--field-pitch); min-height: 420px; }
.sheet__media img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; }
.sheet__media .tag { position: absolute; top: 18px; left: 18px; }
.sheet__body { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 32px 32px 0; display: grid; gap: 22px; align-content: start; }
.sheet__close { position: absolute; top: 16px; right: 16px; z-index: 3; }
.sheet__title { font-variation-settings: "wdth" 150; font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); line-height: 0.95; padding-right: 48px; }
.sheet__price { font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sheet__block { display: grid; gap: 10px; }
.sheet__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; }
.sheet__label a { font-weight: 500; font-size: 0.875rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.sheet__foot { position: sticky; bottom: 0; background: var(--bg-2); padding: 16px 0 calc(24px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.sheet__foot .btn--primary { flex: 1; }
.opt-list { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--bg-3); text-align: left; font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.opt:hover { background: var(--bg-4); }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.opt span:last-child { font-variant-numeric: tabular-nums; color: inherit; opacity: 0.7; font-weight: 500; }
.custom-fields { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.hint { font-size: 0.875rem; color: var(--ink-3); }

@media (max-width: 860px) {
  .sheet {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; max-height: 92svh;
    border-radius: 24px 24px 0 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    transform: translateY(100%);
    opacity: 1;
  }
  .sheet.is-open { transform: none; }
  .sheet__media { min-height: 0; height: 38svh; }
  .sheet__body { padding: 22px 20px 0; }
  .drawer { width: 100%; }
  .pay__opts { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, calc(100% + 48px));
  visibility: hidden;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 32px);
  padding: 12px 12px 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 0.9375rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.55s var(--ease-out), visibility 0s linear 0.55s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform 0.55s var(--ease-out), visibility 0s; }
.toast .btn { min-height: 38px; }

/* ---------- Banda diagonal ---------- */
.band {
  position: relative; z-index: 2;
  padding-block: clamp(36px, 6vw, 90px);
  overflow: hidden;
  pointer-events: none;
}
.band__strip {
  transform: rotate(-4deg);
  background: var(--ink);
  color: var(--bg);
  padding-block: 0.32em;
  white-space: nowrap;
  font-variation-settings: "wdth" 150; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 3.4rem); line-height: 1;
  margin-inline: -10vw;
}
.band__strip + .band__strip { transform: rotate(3deg); margin-top: -1.2em; background: var(--bg-3); color: var(--ink); }
.band__track { display: inline-flex; gap: 0.6em; will-change: transform; }
.band__track span { display: inline-flex; align-items: center; gap: 0.6em; }
.band__track b { color: var(--volt); font-weight: 800; }
.band__strip:first-child .band__track b { color: var(--bg); background: var(--volt); padding: 0 0.2em; border-radius: 0.12em; }
.band__star { width: 0.7em; height: 0.7em; }

/* ---------- Pie de página ---------- */
.footer { background: var(--bg); padding-top: var(--section); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; }
.footer__grid h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 14px; }
.footer__grid li + li { margin-top: 8px; }
.footer__grid a { color: var(--ink-2); transition: color 0.2s; }
.footer__grid a:hover { color: var(--ink); }
.footer__lead { font-size: var(--step-lead); line-height: 1.3; max-width: 22ch; margin-bottom: 22px; }
.footer__mark { color: var(--bg-3); padding-inline: var(--gutter); margin-bottom: -2.2vw; }
.footer__mark svg { width: 100%; height: auto; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; color: var(--ink-3); font-size: var(--step-small); position: relative; z-index: 1; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Encabezado de página interior ---------- */
.page-hero { padding-top: clamp(40px, 7vw, 110px); padding-bottom: clamp(32px, 5vw, 72px); }
.page-hero .display { font-size: clamp(2.2rem, 0.2rem + 9.2vw, 10.5rem); overflow-wrap: anywhere; }
.page-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; margin-top: clamp(20px, 3vw, 40px); }

/* ---------- Ficha con foto lifestyle (y respaldo de catálogo) ---------- */
.tile--photo > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .slot__fallback img { position: absolute; inset: 6% 6% 2%; left: 6%; top: 6%; width: 88%; height: 92%; max-width: none; transform: none; object-fit: contain; transition: transform 0.9s var(--ease-out); }

/* ---------- Ranura de imagen lifestyle ---------- */
/* Si la foto aún no existe, se muestra la composición de respaldo. */
.slot { position: relative; overflow: hidden; background: var(--bg-3); }
.slot > img, .slot > video { width: 100%; height: 100%; object-fit: cover; }
.slot__fallback { position: absolute; inset: 0; z-index: 1; display: none; }
.slot > img, .slot > video { transition: opacity 0.6s; }
.slot.is-missing > img, .slot.is-missing > video { opacity: 0; }
.slot.is-missing .slot__fallback { display: block; }
.slot__fallback img { position: absolute; width: 150%; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -42%); object-fit: contain; }

/* ---------- Utilidades de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-split] .wi { transform: none; }
  .cursor-trail { display: none; }
}
