/* ==========================================================================
   ROVEX Vintage Supply — Wholesale
   Mundo visual: almacén de fardos. Papel crudo, tinta, cartón kraft y
   rojo de cinta de embalar. Tipografía itálica ancha (eco del logo) +
   mono de etiqueta de envío.
   ========================================================================== */

:root {
  --paper: #eeeae1;
  --paper-2: #e3ddd0;
  --paper-3: #f7f4ee;
  --ink: #0f0e0c;
  --ink-2: #24211d;
  --ink-3: #3a3631;
  --mute: #6a645a;
  --mute-light: #a49d92;
  --kraft: #c69c6d;
  --kraft-2: #b5895a;
  --red: #d42a1f;
  --red-2: #b11f15;
  --line: rgba(15, 14, 12, 0.14);
  --line-strong: rgba(15, 14, 12, 0.85);
  --line-light: rgba(238, 234, 225, 0.16);

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipos ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute-light);
}
.eyebrow--dark { color: var(--mute); }
.eyebrow .num {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 22px; padding: 0 6px;
  border: 1px solid currentColor; border-radius: 99px;
  font-size: 11px; letter-spacing: 0.04em;
}
.spark { color: var(--red); font-size: 14px; letter-spacing: 0; }

.h2 {
  margin-top: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 0.92;
  font-weight: 900;
  font-style: italic;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--red); }
.h2--light { color: var(--paper); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--bg); border-radius: var(--radius);
  font-family: var(--display); font-size: 15px; font-weight: 800; font-style: italic;
  font-variation-settings: "wdth" 110;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s var(--ease);
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--red { --bg: var(--red); --fg: #fff; }
.btn--red:hover { --bg: var(--red-2); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); box-shadow: 0 6px 0 0 var(--red); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.ticker__track {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 10px 0; padding-left: 28px;
  animation: ticker 38s linear infinite;
}
.ticker__track i { color: var(--red); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.header__logo { flex: none; display: block; }
.header__logo img { width: 112px; height: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px;
  font-family: var(--display); font-weight: 700; font-size: 14px; font-style: italic;
  font-variation-settings: "wdth" 106;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 8px 0 16px;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 99px;
  font-family: var(--display); font-weight: 800; font-style: italic; font-size: 14px;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: background-color 0.2s;
}
.cart-btn:hover { background: var(--red); }
.cart-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cart-btn__count {
  display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px;
  background: var(--paper); color: var(--ink); border-radius: 99px;
  font-family: var(--mono); font-style: normal; font-size: 13px; font-weight: 600;
}
.cart-btn.is-bump .cart-btn__count { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); background: var(--red); color: #fff; } }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 6vw, 96px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero .eyebrow { color: var(--mute); }
.hero__title {
  margin-top: 0;
  font-family: var(--display);
  font-size: clamp(54px, 8.6vw, 136px);
  line-height: 0.86;
  font-weight: 900; font-style: italic;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__title-accent { color: var(--red); }
.hero__lead { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-3); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin-top: 44px; border-top: 2px solid var(--ink);
}
.hero__facts > div { padding: 16px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line); }
.hero__facts > div:last-child { border-right: 0; margin-right: 0; }
.hero__facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.hero__facts dd {
  margin-top: 4px;
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(28px, 2.8vw, 40px);
  font-variation-settings: "wdth" 112; letter-spacing: -0.02em; line-height: 1;
}
.hero__facts small { font-size: 0.45em; font-weight: 700; letter-spacing: 0.02em; color: var(--mute); margin-left: 2px; }

.hero__visual { position: relative; }
.hero__photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  transform: rotate(1.4deg);
  box-shadow: 0 30px 60px -30px rgba(15, 14, 12, 0.45);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  /* cinta de embalar */
  content: ""; position: absolute; top: -6px; left: 50%; width: 46%; height: 34px;
  transform: translateX(-50%) rotate(-2deg);
  background: color-mix(in srgb, var(--kraft) 80%, transparent);
  mix-blend-mode: multiply;
}
.orbit { position: absolute; inset: auto -8% -10% -14%; width: 128%; height: auto; pointer-events: none; z-index: 2; }
.orbit path { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }

/* ---------- Etiqueta de fardo (componente firma) ---------- */
.tag {
  position: relative;
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  border-radius: 6px 22px 6px 6px;
  padding: 22px 20px 18px;
  font-family: var(--mono);
}
.tag__hole {
  position: absolute; top: 14px; right: 16px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--paper);
}
.tag__kicker { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.tag__name {
  margin-top: 6px;
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: 26px; line-height: 1;
  font-variation-settings: "wdth" 115; letter-spacing: -0.02em; text-transform: uppercase;
}
.tag__rows {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong);
  font-size: 12.5px;
}
.tag__rows span { color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; align-self: center; }
.tag__rows b { text-align: right; font-weight: 600; }
.tag__price {
  margin-top: 14px; padding-top: 12px; border-top: 1.5px solid var(--ink);
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: 30px; line-height: 1;
  color: var(--red); text-align: right; font-variation-settings: "wdth" 110;
}
.tag__price small { font-family: var(--mono); font-style: normal; font-weight: 500; font-size: 11px; color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; margin-right: 6px; }
.tag--hero {
  position: absolute; z-index: 3; left: -14%; bottom: 9%; width: min(260px, 64%);
  transform: rotate(-5deg);
  box-shadow: 0 22px 40px -18px rgba(15, 14, 12, 0.5);
  animation: sway 6s ease-in-out infinite;
  transform-origin: 85% 10%;
}
@keyframes sway { 50% { transform: rotate(-2.5deg); } }

/* ---------- Marcas ---------- */
.brands {
  border-block: 2px solid var(--ink);
  background: var(--kraft);
  overflow: hidden; white-space: nowrap;
}
.brands__track {
  display: inline-flex; align-items: center; gap: 0;
  animation: ticker 55s linear infinite;
}
.brands__track span {
  display: inline-flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px;
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(22px, 2.6vw, 34px);
  font-variation-settings: "wdth" 120; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink);
}
.brands__track span::after { content: "✦"; font-size: 0.5em; color: var(--paper-3); }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__aside { max-width: 30em; color: var(--mute); margin-top: 18px; }

/* ---------- Catálogo ---------- */
.filters { display: inline-flex; padding: 4px; border: 1.5px solid var(--ink); border-radius: 99px; background: var(--paper-3); }
.filters button {
  padding: 10px 18px; border: 0; background: none; border-radius: 99px;
  font-family: var(--display); font-weight: 800; font-style: italic; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute);
  transition: background-color 0.2s, color 0.2s;
}
.filters button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.filters button:not([aria-selected="true"]):hover { color: var(--ink); }

.catalog__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.catalog__grid > .lot { grid-column: span 2; }
/* 5 lotes: fila de 3 + fila de 2 más anchas, sin huecos */
.catalog__grid > .lot:nth-child(4):nth-last-child(2),
.catalog__grid > .lot:nth-child(5):last-child { grid-column: span 3; }
.catalog__grid > .lot:nth-child(4):nth-last-child(2) .lot__media,
.catalog__grid > .lot:nth-child(5):last-child .lot__media { aspect-ratio: 16 / 7; }
.catalog__note { margin-top: 28px; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }

.lot {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  border-radius: 6px 28px 6px 6px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.lot:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 8px 10px 0 0 var(--ink); }
.lot.is-hidden { display: none; }
.lot__media {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
  background: var(--kraft);
}
.lot__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.lot:hover .lot__media img { transform: scale(1.04); }
/* Cara tipográfica para lotes sin foto propia */
.lot__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 20px;
  background:
    repeating-linear-gradient(90deg, rgba(15,14,12,0.05) 0 2px, transparent 2px 7px),
    var(--kraft);
}
.lot--ab .lot__face { background: repeating-linear-gradient(90deg, rgba(15,14,12,0.06) 0 2px, transparent 2px 7px), var(--kraft-2); }
.lot--ud .lot__face { background: var(--ink); color: var(--paper); }
.lot__face-top { display: flex; gap: 16px; padding-right: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.lot__face-top span + span::before { content: "·"; margin-right: 16px; }
.lot__face-big {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(72px, 8vw, 124px); line-height: 0.8;
  font-variation-settings: "wdth" 125; letter-spacing: -0.04em; text-transform: uppercase;
}
.lot__face-big small { font-size: 0.3em; letter-spacing: -0.01em; font-variation-settings: "wdth" 112; }
.lot__face-season { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.lot__hole { position: absolute; top: 14px; right: 16px; z-index: 2; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.lot__badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  padding: 6px 10px; background: var(--red); color: #fff; border-radius: 2px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  transform: rotate(-3deg);
}
.lot__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 20px 20px 22px; }
.lot__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.lot__grade { color: var(--ink); font-weight: 600; }
.lot__name {
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(26px, 2.3vw, 32px); line-height: 0.95;
  font-variation-settings: "wdth" 116; letter-spacing: -0.02em; text-transform: uppercase;
}
.lot__name small { display: block; margin-top: 6px; font-size: 0.48em; color: var(--red); letter-spacing: 0; }
.lot__badge ~ .lot__face .lot__face-top { padding-top: 34px; }
.lot__desc { color: var(--ink-3); font-size: 15px; line-height: 1.5; }
.lot__rows {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong);
  font-family: var(--mono); font-size: 12px;
}
.lot__rows div { padding: 10px 0; }
.lot__rows div + div { padding-left: 14px; border-left: 1px dashed var(--line-strong); }
.lot__rows span { display: block; color: var(--mute); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.lot__rows b { font-weight: 600; font-size: 14px; }
.lot__foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; }
.lot__price { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 34px; line-height: 1; color: var(--red); font-variation-settings: "wdth" 110; letter-spacing: -0.02em; }
.lot__price small { display: block; margin-bottom: 4px; font-family: var(--mono); font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.lot__open {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius);
  font-family: var(--display); font-weight: 800; font-style: italic; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color 0.2s;
}
.lot__open:hover { background: var(--red); }
/* Toda la ficha es clicable, el botón es el objetivo accesible */
.lot__open::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Calculadora ---------- */
.calc { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.calc::before {
  content: ""; position: absolute; right: -12%; top: -30%; width: 70%; aspect-ratio: 2.2 / 1;
  border: 3px solid var(--line-light); border-radius: 50%; transform: rotate(-12deg);
}
.calc__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.calc__lead { margin-top: 24px; max-width: 30em; color: var(--mute-light); font-size: 18px; }
.calc__panel {
  background: var(--paper-3); color: var(--ink);
  border-radius: 6px 28px 6px 6px; padding: clamp(22px, 3vw, 36px);
  display: grid; gap: 22px;
  box-shadow: 10px 12px 0 0 var(--red);
}
.field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); padding: 0; }
.field select {
  appearance: none; width: 100%; min-height: 54px; padding: 0 48px 0 16px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0e0c' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  font-family: var(--display); font-weight: 800; font-style: italic; font-size: 18px; text-transform: uppercase;
  font-variation-settings: "wdth" 110;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
}
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper);
  font-family: var(--mono); font-weight: 600; font-size: 15px;
  transition: background-color 0.15s, color 0.15s;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.chip:hover span { background: var(--paper-2); }
.chip:hover input:checked + span { background: var(--ink); }
.chip--pending span::after { content: "*"; color: var(--red); margin-left: 2px; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.calc__stat { padding: 14px 16px; border-bottom: 1px dashed var(--line-strong); }
.calc__stat:nth-child(2) { border-left: 1px dashed var(--line-strong); }
.calc__stat--wide { grid-column: 1 / -1; }
.calc__stat.is-off { display: none; }
.calc__stat span, .calc__total span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.calc__stat b { display: block; margin-top: 4px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; font-variation-settings: "wdth" 112; }
.calc__total { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--ink); color: var(--paper); }
.calc__total span { color: var(--mute-light); }
.calc__total b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 30px; color: #fff; font-variation-settings: "wdth" 110; }
.calc__fine { font-family: var(--mono); font-size: 11.5px; color: var(--mute); line-height: 1.5; }

/* ---------- Grados ---------- */
.grades__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.grade {
  position: relative; padding: clamp(24px, 3vw, 36px);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--paper-3);
  display: flex; flex-direction: column; gap: 16px;
}
.grade__stamp {
  display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 8px;
  border: 3px solid var(--red); border-radius: 50%; color: var(--red);
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: 38px;
  font-variation-settings: "wdth" 120; transform: rotate(-12deg);
  box-shadow: inset 0 0 0 4px var(--paper-3), inset 0 0 0 5.5px var(--red);
}
.grade--ab .grade__stamp { font-size: 28px; color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--paper-3), inset 0 0 0 5.5px var(--ink); }
.grade h3 { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 30px; line-height: 1; text-transform: uppercase; font-variation-settings: "wdth" 115; letter-spacing: -0.02em; }
.grade p { color: var(--ink-3); font-size: 16px; }
.grade ul { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-strong); display: grid; gap: 6px; font-family: var(--mono); font-size: 13px; }
.grade--promise { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grade--promise h3 { font-size: 26px; }
.checks { border-top: 0 !important; padding-top: 0 !important; margin-top: 0 !important; gap: 18px !important; font-family: var(--body) !important; font-size: 16px !important; }
.checks li { position: relative; padding-left: 34px; color: var(--paper-2); }
.checks li::before { content: "✦"; position: absolute; left: 0; top: -1px; color: var(--red); font-size: 18px; }

/* ---------- Galería ---------- */
.depot { padding-top: 0; }
.depot__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 290px); gap: clamp(12px, 1.6vw, 20px);
  grid-template-areas: "a b c" "a d c" "e e f";
}
.depot__item { overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.depot__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.depot__item:hover img { transform: scale(1.04); }
.depot__item:nth-child(1) { grid-area: a; }
.depot__item:nth-child(2) { grid-area: b; }
.depot__item:nth-child(3) { grid-area: c; }
.depot__item:nth-child(4) { grid-area: d; }
.depot__item:nth-child(5) { grid-area: e; }
.depot__item:nth-child(6) { grid-area: f; }

/* ---------- Proceso ---------- */
.process { background: var(--ink); color: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: s; border-top: 2px solid var(--paper); }
.step { position: relative; padding: 28px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-light); }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--red); letter-spacing: 0.1em; }
.step h3 { margin-top: 18px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(24px, 2.2vw, 30px); line-height: 1; text-transform: uppercase; font-variation-settings: "wdth" 115; letter-spacing: -0.02em; }
.step p { margin-top: 14px; color: var(--mute-light); font-size: 16px; }
.step b { color: var(--paper); font-weight: 600; }

/* ---------- Opiniones ---------- */
.reviews { background: var(--paper-2); }
.reviews__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.reviews__big {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(96px, 15vw, 220px); line-height: 0.8; letter-spacing: -0.05em;
  font-variation-settings: "wdth" 125; color: var(--red);
}
.reviews__label { margin-top: 14px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(24px, 2.6vw, 36px); text-transform: uppercase; font-variation-settings: "wdth" 118; letter-spacing: -0.01em; }
.reviews__list { display: grid; gap: 14px; }
.review {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start;
  padding: 20px 22px; background: var(--paper-3); border: 1.5px solid var(--ink); border-radius: var(--radius);
}
.review:nth-child(2) { margin-left: clamp(0px, 4vw, 56px); }
.review__q { grid-row: span 2; font-family: var(--display); font-weight: 900; font-size: 54px; line-height: 0.7; color: var(--red); }
.review p { font-size: 18px; font-weight: 500; line-height: 1.4; }
.review cite { font-family: var(--mono); font-style: normal; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.review cite::before { content: "✓ "; color: var(--red); }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__inner > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__list { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2;
  font-variation-settings: "wdth" 104;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--red); border-color: var(--red); background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff); }
.faq__item summary:hover { color: var(--red); }
.faq__item p { padding: 0 54px 24px 0; color: var(--ink-3); max-width: 46em; }

/* ---------- Contacto ---------- */
.contact { background: var(--red); color: #fff; padding: clamp(72px, 10vw, 140px) 0; overflow: hidden; }
.contact__inner { display: grid; grid-template-columns: 1.15fr minmax(0, 0.85fr); gap: 40px; align-items: end; }
.contact__title {
  font-family: var(--display); font-weight: 900; font-style: italic;
  font-size: clamp(40px, 8vw, 128px); line-height: 0.86; letter-spacing: -0.035em;
  font-variation-settings: "wdth" 120; text-transform: uppercase;
}
.contact__title em { color: var(--ink); }
.contact__ways { display: grid; gap: 12px; }
.contact__way {
  display: grid; gap: 4px; padding: 20px 24px;
  border: 2px solid #fff; border-radius: var(--radius); text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.contact__way span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.contact__way b { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(20px, 2vw, 28px); font-variation-settings: "wdth" 108; }
.contact__way:not(.contact__way--wa) b { font-size: clamp(15px, 1.25vw, 18px); font-variation-settings: "wdth" 96; overflow-wrap: anywhere; }
.contact__way:hover { background: #fff; color: var(--red); transform: translateX(6px); }
.contact__way--wa { background: var(--ink); border-color: var(--ink); }
.contact__way--wa:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--mute-light); padding: 56px 0 40px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.footer__logo { width: 128px; filter: invert(1); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.footer__nav a { text-decoration: none; font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: 0.05em; font-size: 14px; color: var(--paper); }
.footer__nav a:hover { color: var(--red); }
.footer__fine { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-light); font-family: var(--mono); font-size: 12px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #1fa855; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,0.45);
  transition: transform 0.25s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* ---------- Diálogos ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(15, 14, 12, 0.62); backdrop-filter: blur(3px); }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper-3); font-size: 16px;
  transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--ink); color: var(--paper); }

/* Ficha de lote */
.modal { width: min(1080px, calc(100% - 32px)); margin: auto; }
.modal[open] { animation: rise 0.4s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.modal__body {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  max-height: calc(100dvh - 48px); overflow: hidden;
  background: var(--paper-3); border: 1.5px solid var(--ink); border-radius: 6px 32px 6px 6px;
}
.modal__media { position: relative; background: var(--kraft); border-right: 1.5px solid var(--ink); min-height: 320px; overflow: hidden; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.modal__media .lot__face { padding: 28px; }
.modal__thumbs { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.modal__thumbs button { width: 58px; height: 58px; padding: 0; border: 2px solid var(--paper-3); border-radius: 3px; overflow: hidden; background: none; opacity: 0.7; transition: opacity 0.2s; }
.modal__thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--red); }
.modal__thumbs img { position: static; width: 100%; height: 100%; object-fit: cover; }
.modal__info { overflow-y: auto; padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; align-content: start; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.modal__title {
  font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(34px, 4vw, 52px); line-height: 0.9;
  text-transform: uppercase; font-variation-settings: "wdth" 116; letter-spacing: -0.025em; padding-right: 44px;
}
.modal__title small { display: block; margin-top: 10px; font-size: 0.44em; color: var(--red); letter-spacing: 0; }
.modal__desc { display: grid; gap: 12px; color: var(--ink-3); font-size: 16px; }
.modal__list { display: flex; flex-wrap: wrap; gap: 6px; }
.modal__list li { padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 99px; font-family: var(--mono); font-size: 12px; }
.modal__h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.modal__brands { font-size: 15px; color: var(--ink-3); }
.modal__buy { display: grid; gap: 16px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.modal__price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.modal__price { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 44px; line-height: 1; color: var(--red); font-variation-settings: "wdth" 110; }
.modal__per { font-family: var(--mono); font-size: 13px; color: var(--mute); text-align: right; }
.modal__note { font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.modal__note--pending { color: var(--red-2); }

/* Drawer de pedido */
.drawer { margin: 0 0 0 auto; height: 100dvh; width: min(460px, 100%); }
.drawer[open] { animation: slide 0.4s var(--ease); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer__inner { display: flex; flex-direction: column; height: 100%; background: var(--paper-3); border-left: 1.5px solid var(--ink); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1.5px solid var(--ink); }
.drawer__head h2 { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 30px; text-transform: uppercase; font-variation-settings: "wdth" 115; letter-spacing: -0.02em; }
.drawer__list { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__empty { display: grid; place-items: center; gap: 18px; text-align: center; padding: 64px 12px; color: var(--mute); }
.drawer__empty b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 28px; color: var(--ink); text-transform: uppercase; font-variation-settings: "wdth" 115; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px 0; border-bottom: 1px dashed var(--line-strong); }
.line__name { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 20px; text-transform: uppercase; line-height: 1.05; font-variation-settings: "wdth" 112; }
.line__opt { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.line__price { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 22px; text-align: right; }
.line__ctrl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--radius); }
.qty button { width: 40px; height: 38px; border: 0; background: none; font-size: 18px; font-weight: 700; }
.qty button:hover { background: var(--paper-2); }
.qty output { min-width: 34px; text-align: center; font-family: var(--mono); font-weight: 600; }
.line__remove { border: 0; background: none; padding: 8px 0; font-family: var(--mono); font-size: 12px; text-decoration: underline; color: var(--mute); }
.line__remove:hover { color: var(--red); }
.drawer__foot { display: grid; gap: 14px; padding: 20px 24px 24px; border-top: 1.5px solid var(--ink); background: var(--paper); }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; }
.drawer__total span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.drawer__total b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 36px; font-variation-settings: "wdth" 110; }
.drawer__fine { font-size: 13.5px; color: var(--mute); line-height: 1.45; }
.drawer__alt { justify-self: center; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }
.drawer__alt:hover { color: var(--red); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 140%);
  padding: 14px 20px; background: var(--ink); color: var(--paper); border-radius: var(--radius);
  font-family: var(--mono); font-size: 13px; box-shadow: 6px 6px 0 var(--red);
  opacity: 0; visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0.4s; max-width: calc(100% - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav a { padding: 10px 9px; font-size: 13px; }
  .grades__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog__grid > .lot, .catalog__grid > .lot:nth-child(4):nth-last-child(2) { grid-column: span 1; }
  .catalog__grid > .lot:nth-child(5):last-child { grid-column: 1 / -1; }
  .catalog__grid > .lot:nth-child(4):nth-last-child(2) .lot__media { aspect-ratio: 5 / 4; }
  .grade--promise { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .step, .step + .step { padding: 24px 24px 24px 0; border-left: 0; border-top: 2px solid var(--paper); }
  .step:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-light); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__logo img { width: 92px; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 0 6px 0 12px; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px;
    border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper-3);
  }
  .menu-btn span:not(.sr-only) { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39;
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 24px;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    transform: translateY(-110%); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0.4s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 16px 0; font-size: 26px; font-weight: 900; border-bottom: 1px solid var(--line); font-variation-settings: "wdth" 115; }
  .nav a::after { display: none; }
  .header__actions { margin-left: auto; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 88%; margin: 12px auto 0; }
  .tag--hero { left: -10%; bottom: 6%; }
  .calc__inner, .reviews__inner, .faq__inner, .contact__inner { grid-template-columns: 1fr; }
  .faq__inner > div:first-child { position: static; }
  .modal__body { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__media { aspect-ratio: 4 / 3; min-height: 0; border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .modal__info { overflow: visible; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .hero__facts > div { padding-right: 10px; margin-right: 10px; }
  .hero__facts dd { font-size: 24px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .catalog__grid, .grades__grid { grid-template-columns: 1fr; }
  .catalog__grid > .lot, .catalog__grid > .lot:nth-child(5):last-child { grid-column: auto; }
  .catalog__grid > .lot:nth-child(5):last-child .lot__media { aspect-ratio: 5 / 4; }
  .filters { width: 100%; }
  .filters button { flex: 1; padding: 10px 8px; }
  .depot__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; grid-template-areas: "a b" "a c" "d c" "e e"; }
  .depot__item:nth-child(6) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { padding-left: 0; border-left: 0; }
  .review:nth-child(2) { margin-left: 0; }
  .faq__item p { padding-right: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
  .modal { width: 100%; margin: auto 0 0; }
  .modal__body { max-height: 92dvh; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
