/* ==========================================================================
   PROTEÍNAS MAYORISTAS · Sistema visual
   Catálogo de distribuidor: base clara, negro y rojo de la marca. Títulos en
   Archivo condensada recta (la cursiva queda solo en el logo), precios como cifra
   limpia y sin amarillo de flyer. Mobile first.
   ========================================================================== */

:root {
  --bg: #f3f3ef;
  --bg-alt: #e9e9e3;
  --surface: #ffffff;
  --surface-2: #efefea;
  --line: rgba(17, 17, 20, 0.1);
  --line-strong: rgba(17, 17, 20, 0.22);
  --text: #111114;
  --muted: #5b5b63;
  --ink: #0e0e10;
  --red: #e3120b;
  --red-deep: #b80e08;
  --red-glow: rgba(227, 18, 11, 0.32);
  --hi: #ff4d45; /* acento sobre fondos oscuros */
  --gold: #8a5a00;
  --tile: #ffffff;
  --ok: #178a47;

  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 16px;
  --container: 1280px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(17, 17, 20, 0.06), 0 8px 24px -12px rgba(17, 17, 20, 0.18);
}

/* Zonas oscuras (header, footer, asesoría): los mismos tokens, invertidos. */
.site-header, .site-footer, .dark {
  --bg: #0e0e10;
  --bg-alt: #16161a;
  --surface: #1b1b20;
  --surface-2: #26262c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f6f6f3;
  --muted: #a9a9b1;
  --tile: #f6f6f3;
  --gold: #d9d9de;
  --ok: #3ecf6e;
  background: var(--bg);
  color: var(--text);
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 72px; }
}

/* Cursor de la marca: flecha negra y, sobre lo que se puede clicar, roja. Solo con mouse (en pantallas táctiles
   no hay cursor). Los campos de texto conservan el cursor de escritura. */
:root { --cursor: auto; --cursor-link: pointer; }
@media (pointer: fine) {
  :root {
    --cursor: url("../img/cursor.4bcdd4ad676e.svg") 3 2, auto;
    --cursor-link: url("../img/cursor-link.5e309039565d.svg") 3 2, pointer;
  }
}
html { cursor: var(--cursor); }
a[href], button:not(:disabled), summary, label[for], select, [role="button"], [data-zoom], [data-zoom-src],
input[type="checkbox"], input[type="radio"], input[type="submit"] { cursor: var(--cursor-link); }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea, [contenteditable] { cursor: text; }
button:disabled, a[aria-disabled="true"], [aria-disabled="true"] { cursor: not-allowed; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* Patrón sutil de figuras del rubro (mancuerna, shaker, scoop…) sobre el fondo claro. */
  background: url("../img/fondo-patron.d06d7a9ebbd7.svg") 0 0 / 240px 240px, var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: var(--cursor-link); background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 479px) { .hide-sm { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }

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

.i { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.i.flip { transform: scaleX(-1); }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display); font-weight: 800; font-stretch: 75%;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.display em { font-style: inherit; color: var(--red); }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.accent { color: var(--red); }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 99px; padding: 7px 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red-glow); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 99px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  background: var(--btn-bg); border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red-glow); }
.btn--primary:hover { --btn-bg: #f2261f; box-shadow: 0 14px 30px -10px var(--red-glow); }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.85rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--light { --btn-bg: var(--text); color: var(--bg); }
.btn--light:hover { --btn-bg: var(--red); color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; box-shadow: none; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--bg); transition: transform 0.25s var(--ease), background 0.2s;
}
.icon-btn:hover { transform: scale(1.06); background: var(--red); color: #fff; }
.icon-btn .i--check { display: none; }
.icon-btn.is-added { background: var(--red); color: #fff; }
.icon-btn.is-added .i--plus { display: none; }
.icon-btn.is-added .i--check { display: inline-block; }
.icon-btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.icon-btn--ghost:hover { border-color: var(--red); }

[data-cart-toggle] .when-on { display: none; }
[data-cart-toggle].is-added .when-on { display: inline; }
[data-cart-toggle].is-added .when-off { display: none; }

.link-btn { color: var(--muted); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.link-arrow .i { transition: transform 0.25s var(--ease); color: var(--red); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Barra de condiciones ---------- */
.announce { background: #000; color: #e7e7ea; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.announce__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.announce__track span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 26px; white-space: nowrap; }
.announce__track .i { color: var(--hi); }
/* Sitio en revisión (DJANGO_SITE_PREVIEW): franja fija para que el cliente no la confunda con el sitio real. */
.preview-bar { background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: .02em; text-align: center; padding: 6px 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header: barra negra (logo, buscador, cuenta, carrito) + barra roja de categorías ---------- */
.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.6); }
.site-header__inner {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "search search";
  align-items: center; gap: 10px 16px; padding-block: 10px;
}
.brand { grid-area: brand; display: block; }
.brand img { width: 128px; height: auto; }
.site-header__actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: 8px; }
.header-search { grid-area: search; position: relative; }
.header-search .i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: #6b6b73; pointer-events: none; }
.header-search input {
  width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 8px; border: 0; background: #fff; color: #111114;
  font: inherit; font-size: 0.95rem;
}
.header-search input::placeholder { color: #85858c; }
.header-search input:focus { outline: 2px solid var(--red); outline-offset: 0; }
@media (min-width: 900px) {
  .site-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand search actions"; gap: 28px; padding-block: 12px; }
  .brand img { width: 150px; }
  .header-search { max-width: 640px; width: 100%; justify-self: center; }
  .header-search input { height: 46px; }
}

.nav { background: var(--red); color: #fff; }
.nav__inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px;
  font-size: 0.86rem; font-weight: 700; white-space: nowrap; transition: background 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(0, 0, 0, 0.18); }
.nav a:first-child { padding-left: 0; }
.nav a:first-child:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
.nav__hot { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav__cta { margin-left: auto; background: var(--ink); border-radius: 6px; min-height: 32px !important; }
.nav__cta:hover { background: #000 !important; }
.nav-toggle { display: none; }

.stack-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 14px;
  border-radius: 8px; background: var(--red); color: #fff; font-size: 0.85rem; font-weight: 800;
  transition: background 0.2s;
}
.stack-pill:hover { background: #f2261f; }
.stack-pill b { min-width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.25); font-size: 0.78rem; transition: background 0.2s, transform 0.3s var(--ease); }
.stack-pill.has-items b { background: #fff; color: var(--red); }
.stack-pill.bump b { transform: scale(1.35); }
@media (max-width: 420px) { .stack-pill span { display: none; } }

/* ---------- Títulos ---------- */
.display--hero { font-size: clamp(2.8rem, 9vw, 5.6rem); }
.display--xl { font-size: clamp(2.6rem, 8vw, 5.4rem); }
.display--lg { font-size: clamp(2.1rem, 5vw, 3.6rem); }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section--alt { background: url("../img/fondo-patron.d06d7a9ebbd7.svg") 0 0 / 240px 240px, var(--bg-alt); }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.section-head .eyebrow { margin-bottom: 0; }
.section-head--center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head--row { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 768px) { .section-head--row { grid-template-columns: 1fr auto; } }
.section-head--row > div:first-child { display: grid; gap: 14px; }
.section-head__lead { color: var(--muted); font-size: 1.05rem; max-width: 36em; }

.ship-meter { display: grid; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.ship-meter__bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ship-meter__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-deep), var(--red)); border-radius: inherit; transition: width 0.6s var(--ease); }
.ship-meter.is-free .ship-meter__bar span { background: var(--ok); }
.ship-meter.is-free p { color: var(--ok); }
.volume-note { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.volume-note.is-on { color: var(--ok); }
.sheet-bar .volume-note { color: #d6d6dc; margin-top: 4px; }
.sheet-bar .volume-note.is-on { color: #6ee7a0; }

/* ---------- Tarjeta de producto ---------- */
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .p-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .p-grid { grid-template-columns: repeat(4, 1fr); } }

.p-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.p-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 18px 40px -22px rgba(17, 17, 20, 0.45); }
.p-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--tile); padding: 12%; overflow: hidden; }
.p-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--ease); }
.p-card:hover .p-card__media img { transform: scale(1.05); }
/* Ropa: foto a sangre completa, cuadrada como el resto para que la grilla quede pareja. */
.p-card--photo .p-card__media { padding: 0; }
.p-card--photo .p-card__media img { object-fit: cover; mix-blend-mode: normal; transform: scale(1.26); }
.p-card--photo:hover .p-card__media img { transform: scale(1.33); }
/* En el carrusel de ropa de la portada (solo prendas) se mantiene el formato vertical. */
.carousel .p-card--photo .p-card__media { aspect-ratio: 4 / 5; }
.carousel .p-card--photo .p-card__media img { transform: scale(1.32); }
.carousel .p-card--photo:hover .p-card__media img { transform: scale(1.4); }
.p-card__tags { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; background: var(--ink); color: #fff; }
.tag--sale { background: var(--red); }
/* Descuento del precio mayorista frente al Sugerido Venta. */
.tag--retail { background: #fff; color: var(--red-deep); box-shadow: inset 0 0 0 1px rgba(184, 14, 8, 0.25); }
.tag--retail small { font-size: 0.85em; font-weight: 700; }
.tag--dark { background: var(--ink); color: #fff; }
/* Columna flexible: el pie (precio + botón) queda anclado al fondo, así todas las tarjetas de una fila
   tienen el botón a la misma altura aunque el nombre ocupe 2 líneas o haya "3 sabores" o precio tachado. */
.p-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.p-card__brand { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.p-card__name { font-size: 0.98rem; font-weight: 700; line-height: 1.3; }
.p-card__name a:hover { color: var(--red); }
.p-card__variants { font-size: 0.76rem; font-weight: 700; color: var(--gold); }
.p-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.p-card__foot .icon-btn { flex: none; }
@media (max-width: 379px) {
  .p-card__body { padding: 12px; }
  .p-card__foot .price strong { font-size: 0.98rem; }
  .p-card__foot .icon-btn { width: 36px; height: 36px; }
}
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price strong { font-size: 1.1rem; font-weight: 800; }
.price s { font-size: 0.82rem; color: var(--muted); }

/* ---------- Preguntas frecuentes ---------- */
.faq-home { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-home { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } .faq-home .section-head { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq-list { display: grid; gap: 10px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: border-color 0.25s; }
.faq[open] { border-color: var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px;
  font-weight: 700; font-size: 1.02rem; cursor: var(--cursor-link); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { flex: none; color: var(--red); transition: transform 0.3s var(--ease); }
.faq[open] summary .i { transform: rotate(45deg); }
.faq__answer { padding: 0 22px 20px; color: var(--muted); }
.faq__answer p + p { margin-top: 10px; }
.faq__answer a { color: var(--text); text-decoration: underline; }

/* ---------- Página de FAQ y guías ---------- */
.faq-topic { margin-bottom: 44px; max-width: 860px; }
.faq-topic__title { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.8rem; text-transform: uppercase; margin-bottom: 16px; }
.help-cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin: 20px 0 96px;
  padding: 32px; border-radius: calc(var(--radius) + 6px); background: linear-gradient(120deg, rgba(224, 38, 29, 0.2), var(--surface) 60%); border: 1px solid var(--line-strong);
}
.help-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.guide-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
  display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.35s var(--ease);
}
.guide-card:hover { border-color: var(--red); transform: translateY(-4px); }
.guide-card h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.6rem; text-transform: uppercase; line-height: 1.05; }
.guide-card p { color: var(--muted); font-size: 0.95rem; }
.guide-card__meta { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }

.guide__head { display: grid; gap: 14px; padding: 40px 0 28px; max-width: 860px; }
.guide__head .eyebrow { margin: 0; }
.guide__meta { color: var(--muted); font-size: 0.9rem; }
.guide__layout { display: grid; gap: 40px; padding-bottom: 40px; }
@media (min-width: 1024px) { .guide__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; } }
.guide__answer {
  display: grid; gap: 6px; padding: 22px 24px; margin-bottom: 32px; border-radius: var(--radius);
  background: var(--surface); border-left: 4px solid var(--red); font-size: 1.08rem;
}
.guide__answer b { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.guide__cover { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.prose { font-size: 1.05rem; line-height: 1.75; color: #2b2b31; max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: clamp(1.8rem, 3.4vw, 2.4rem); text-transform: uppercase; line-height: 1.05; color: var(--text); margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; color: var(--text); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--red); }
.prose strong { color: var(--text); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.guide__main, .guide__side { min-width: 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--red); padding-left: 18px; color: var(--muted); }
.guide__faqs { margin-top: 48px; }
.guide__faqs h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 2rem; text-transform: uppercase; margin-bottom: 16px; }
.guide__disclaimer { margin-top: 32px; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.guide__side { display: grid; gap: 16px; }
@media (min-width: 1024px) { .guide__side { position: sticky; top: calc(var(--header-h) + 24px); } }
.guide__products { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); }
.guide__products h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.5rem; text-transform: uppercase; }
.guide-product { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.guide-product img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--tile); padding: 4px; mix-blend-mode: normal; }
.guide-product small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.guide-product b { display: block; font-size: 0.92rem; line-height: 1.25; }
.guide-product:hover b { color: var(--red); }

/* ---------- Cuenta de cliente ---------- */
.auth { padding: 48px var(--gutter) 110px; display: grid; justify-items: center; }
.auth-card {
  width: min(100%, 480px); display: grid; gap: 16px; padding: 32px 28px; border-radius: calc(var(--radius) + 6px);
  background: var(--surface); border: 1px solid var(--line-strong);
}
.auth-card--wide { width: min(100%, 760px); }
.auth-card .eyebrow { margin: 0; }
.auth-form { display: grid; gap: 16px; }
.auth-form .link-btn { justify-self: center; }
.auth-switch { text-align: center; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.auth-perks li { display: flex; gap: 10px; align-items: center; }
.auth-perks .i { color: var(--ok); }
.auth-sub { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.5rem; text-transform: uppercase; margin-top: 8px; }
.field__hint { font-size: 0.8rem; color: var(--muted); margin-top: -8px; }
.field__hint ul { margin: 4px 0 0; padding-left: 18px; }
.account { padding-bottom: 96px; }
.account__grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .account__grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.account-card { display: grid; gap: 14px; padding: 24px; border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.account-card h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.6rem; text-transform: uppercase; }
.account-order { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.account-order:hover b { color: var(--red); }
.account-order span { display: grid; gap: 2px; }
.account-order small { color: var(--muted); font-size: 0.8rem; }
.account-order__right { text-align: right; justify-items: end; }
.status-pill { padding: 2px 10px; border-radius: 99px; background: var(--surface-2); font-weight: 700; }
.account-order .status-pill--pending { color: var(--gold); }
.account-order .status-pill--paid, .account-order .status-pill--delivered, .account-order .status-pill--ready { color: var(--ok); }
.account-order .status-pill--cancelled { color: var(--red-deep); }
.account-data { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 0.92rem; }
.account-data dt { color: var(--muted); }
.account-data dd { margin: 0; overflow-wrap: anywhere; }
.account-card .link-btn { justify-self: start; }
.account-link { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: border-color 0.2s; }
.account-link:hover, .account-link.is-in { border-color: var(--red); }
.account-link.is-in { color: var(--red); }

/* ---------- 404 ---------- */
.not-found { display: grid; gap: 22px; justify-items: start; padding-block: 64px 110px; }
.not-found__code { font-size: clamp(7rem, 22vw, 14rem); color: transparent; -webkit-text-stroke: 2px var(--red); line-height: 0.85; }
.not-found .filters { flex-wrap: wrap; overflow: visible; }
.not-found .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Página 500: sin el encabezado del sitio, solo una franja oscura con el logo. */
.error-bar { background: #0e0e10; padding-block: 14px; }

/* ---------- Compra por categoría ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  position: relative; overflow: hidden; display: grid; grid-template-rows: 1fr auto; min-height: 240px;
  border-radius: var(--radius); background: var(--tile); color: var(--text); isolation: isolate; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.cat-card img {
  position: absolute; right: 6%; top: 8%; width: 52%; height: 50%; object-fit: contain; mix-blend-mode: multiply;
  transition: transform 0.6s var(--ease); z-index: -1;
}
.cat-card__body { grid-row: 2; display: grid; gap: 2px; padding: 18px 60px 18px 18px; }
.cat-card__body b { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: clamp(1.15rem, 2.6vw, 1.9rem); text-transform: uppercase; line-height: 1; overflow-wrap: anywhere; }
.cat-card__body small { font-size: 0.8rem; font-weight: 600; opacity: 0.65; }
.cat-card__go {
  position: absolute; right: 14px; bottom: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; transition: background 0.25s, transform 0.35s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(227, 18, 11, 0.5); border-color: var(--red); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card:hover .cat-card__go { background: var(--red); transform: translateX(3px); }

/* ---------- Banda de ofertas ---------- */
.offer-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--red-deep), var(--red) 55%, #ff4a3d); color: #fff; }
.offer-band::before {
  content: "%"; position: absolute; right: -2%; top: 50%; translate: 0 -50%; font-family: var(--font-display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(14rem, 30vw, 26rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.14); pointer-events: none;
}
.offer-band__inner { position: relative; display: grid; gap: 24px; align-items: center; padding-block: 44px; }
@media (min-width: 960px) { .offer-band__inner { grid-template-columns: auto 1fr auto; gap: 40px; } }
.offer-band__kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.offer-band__title { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 6px 0 8px; }
.offer-band__title span { color: var(--hi); }
.offer-band__copy p:last-child { font-weight: 600; opacity: 0.9; }
.offer-band__items { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.offer-band__items::-webkit-scrollbar { display: none; }
.offer-band__item {
  position: relative; flex: none; width: 104px; height: 104px; border-radius: var(--radius-sm); background: var(--tile);
  padding: 10px; transition: transform 0.3s var(--ease);
}
.offer-band__item img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.offer-band__item .tag { position: absolute; top: -6px; left: -6px; }
.offer-band__item:hover { transform: translateY(-4px); }
.offer-band .btn { justify-self: start; }

.filter--sale { border-color: var(--red); color: var(--red); }

/* ---------- Perks ---------- */
.perks { border-block: 1px solid var(--line); }
.perks__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .perks__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .perks__grid { grid-template-columns: repeat(4, 1fr); } }
.perk { display: flex; align-items: center; gap: 16px; padding: 26px 8px; border-bottom: 1px solid var(--line); }
.perk:last-child { border-bottom: 0; }
@media (min-width: 1024px) { .perk { border-bottom: 0; border-right: 1px solid var(--line); padding: 34px 24px; } .perk:first-child { padding-left: 0; } .perk:last-child { border-right: 0; } }
.perk > .i { width: 34px; height: 34px; color: var(--red); }
.perk b { display: block; }
.perk span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Formularios (asesoría y cuenta) ---------- */
.signup { position: relative; overflow: hidden; }
.signup::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 100%, rgba(224, 38, 29, 0.22), transparent 55%); pointer-events: none; }
.signup__inner { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .signup__inner { grid-template-columns: 1fr 1fr; gap: 64px; } }
.signup__copy { display: grid; gap: 18px; }
.signup__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.signup__list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.signup__list .i { color: #fff; background: var(--red); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }

.signup-form { position: relative; display: grid; gap: 18px; padding: 28px; border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--line-strong); }
@media (min-width: 640px) { .signup-form { padding: 36px; } }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.field label { margin-bottom: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field input::placeholder { color: #66635e; }
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 38, 29, 0.18); }
.field.has-error input { border-color: var(--red); }
.field__error { color: var(--red); font-size: 0.8rem; min-height: 0; }
.field__error:empty { display: none; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > div, .chips > div > div { display: contents; }
.chip { position: relative; cursor: var(--cursor-link); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line-strong); font-size: 0.88rem; font-weight: 600; transition: all 0.2s; }
.chip:hover span { border-color: var(--text); }
.chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.signup-form__success {
  position: absolute; inset: 0; border-radius: inherit; background: var(--surface); display: grid; place-content: center; justify-items: center; gap: 16px;
  text-align: center; padding: 32px; animation: pop-in 0.5s var(--ease) both;
}
.signup-form__success[hidden] { display: none; }
.signup-form__success .i { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--red); color: #fff; }
.signup-form__success p { font-size: 1.15rem; font-weight: 700; max-width: 22em; }

/* ---------- Carrusel ropa ---------- */
.carousel-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 16px;
  scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.is-dragging a { pointer-events: none; }
.carousel > * { scroll-snap-align: start; }
@media (min-width: 640px) { .carousel { grid-auto-columns: 40%; } }
@media (min-width: 1024px) { .carousel { grid-auto-columns: 23%; gap: 20px; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); } }

/* ---------- Marcas ---------- */
.brands { padding: 48px 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.brands .eyebrow { color: var(--muted); text-align: center; margin-bottom: 28px; }
.brands__track { display: flex; gap: 16px; width: max-content; animation: marquee calc(var(--items, 12) * 3s) linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__item { width: 180px; height: 96px; display: grid; place-items: center; padding: 18px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.brands__item img { max-width: 100%; max-height: 60px; width: auto; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: 0.75; transition: filter 0.3s, opacity 0.3s; }
.brands__item:hover img { filter: none; opacity: 1; }

/* ---------- Sucursales ---------- */
.stores { display: grid; gap: 16px; }
@media (min-width: 900px) { .stores { grid-template-columns: repeat(3, 1fr); } }
.store { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s; }
.store:hover { border-color: var(--line-strong); }
.store__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.store__city { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.store h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.8rem; text-transform: uppercase; line-height: 1; }
.store__line { display: flex; gap: 10px; color: var(--muted); font-size: 0.92rem; }
.store__line .i { color: var(--red); margin-top: 2px; }
.store__note { font-size: 0.8rem; color: var(--muted); padding-left: 30px; margin-top: -6px; }
.store .link-arrow { margin-top: 8px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-open { color: var(--ok); }
.status.is-open i { background: var(--ok); box-shadow: 0 0 0 0 rgba(62, 207, 110, 0.5); animation: pulse 2s infinite; }
.status.is-closed { color: var(--red-deep); }
.status.is-closed i { background: var(--red); }

/* ---------- Footer ---------- */
.site-footer { border-top: 4px solid var(--red); padding-top: 64px; }
.site-footer__cta { display: grid; gap: 28px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .site-footer__cta { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer__grid { display: grid; gap: 36px 20px; padding: 56px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__grid > div { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer__grid > div:first-child { grid-column: 1 / -1; display: grid; gap: 16px; max-width: 320px; }
@media (min-width: 900px) { .site-footer__grid > div:first-child { grid-column: auto; } }
.site-footer__grid h3 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer__grid > div { display: grid; gap: 8px; align-content: start; }
.site-footer__grid a:hover { color: var(--red); }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: all 0.2s; }
.socials a:hover { border-color: var(--red); background: var(--red); color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }

.newsletter { display: grid; gap: 10px; margin-top: 8px; }
.newsletter label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.newsletter__row { display: flex; gap: 8px; }
.newsletter input[type="email"] {
  flex: 1; width: 0; min-width: 0; height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--bg);
}
.newsletter input[type="email"]:focus { outline: none; border-color: var(--red); }
.newsletter__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter__msg { font-size: 0.85rem; color: var(--ok); min-height: 0; }
.newsletter__msg.is-error { color: #ff6b63; }

/* ---------- WhatsApp flotante y toasts ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .i { width: 30px; height: 30px; }

.toast-stack { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(92vw, 460px); }
.toast { padding: 14px 18px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line-strong); font-weight: 600; animation: pop-in 0.4s var(--ease) both; }
.toast--success { border-color: var(--ok); }
.toast--error { border-color: var(--red); }

/* ---------- Catálogo ---------- */
.page-head { padding: 56px 0 32px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 28px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line-strong); font-size: 0.88rem; font-weight: 600; transition: all 0.2s; }
.filter:hover { border-color: var(--text); }
.filter.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.filters-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 40px; }

/* ---------- Tienda: filtros + resultados ---------- */
.shop { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .shop { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; } }
.shop__results { min-width: 0; }
.shop__filters {
  position: fixed; inset: 0 auto 0 0; z-index: 90; width: min(88vw, 340px); overflow-y: auto; padding: 20px;
  background: var(--bg-alt); border-right: 1px solid var(--line-strong); transform: translateX(-105%);
  transition: transform 0.35s var(--ease); visibility: hidden;
}
.shop__filters.is-open { transform: none; visibility: visible; }
.shop__backdrop { position: fixed; inset: 0; z-index: 89; background: rgba(0, 0, 0, 0.6); }
.shop__filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.shop__filters-head h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.8rem; text-transform: uppercase; }
.shop__filters-foot { position: sticky; bottom: -20px; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 16px 0 20px; background: var(--bg-alt); }
.shop__filters-foot .btn { white-space: nowrap; padding-inline: 18px; }
@media (min-width: 1024px) {
  .shop__filters {
    /* `inset` va en una sola declaración: un `inset: auto` después del `top` lo anulaba y el sticky no funcionaba. */
    position: sticky; inset: calc(var(--header-h) + 16px) auto auto; z-index: 1; width: auto; max-height: calc(100vh - var(--header-h) - 32px);
    padding: 0 6px 0 0; background: none; border: 0; transform: none; visibility: visible;
  }
  .shop__filters-head, .shop__filter-btn { display: none !important; }
  .shop__filters-foot { position: static; grid-template-columns: 1fr; padding-top: 4px; background: none; }
  .shop__filters-foot .btn--primary { display: none; }
}
.facet { border: 0; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; min-width: 0; }
.facet__title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.facet__link { padding: 6px 0; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.facet__link:hover, .facet__link.is-active { color: var(--text); }
.facet__link.is-active::before { content: "› "; color: var(--red); }
.check-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: var(--cursor-link); font-size: 0.92rem; }
.check-row input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.check-row span { flex: 1; }
.check-row small { color: var(--muted); font-size: 0.78rem; }
.shop__search { position: relative; }
.shop__search .i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); }
.shop__search input {
  width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: var(--bg);
}
.shop__search input:focus { outline: none; border-color: var(--red); }
.shop__toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 1023px) {
  /* En móvil "Filtros" y "Ordenar" siguen a mano al bajar por el listado. */
  .shop__toolbar {
    position: sticky; top: var(--header-h); z-index: 40; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter);
    background: rgba(243, 243, 239, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
    flex-wrap: nowrap; gap: 10px;
  }
  /* Una sola línea: el selector de orden se achica en vez de bajar a otra fila. */
  .shop__toolbar .shop__count { font-size: 0.8rem; white-space: nowrap; }
  .shop__toolbar .shop__sort { min-width: 0; flex: 0 1 190px; }
  .shop__toolbar .shop__sort select { width: 100%; min-width: 0; }
}
@media (max-width: 399px) { .shop__toolbar .shop__count { display: none; } }
.shop__filter-btn b { min-width: 22px; height: 22px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--red); color: #fff; font-size: 0.72rem; }
.shop__count { color: var(--muted); font-size: 0.9rem; margin-right: auto; }
.shop__sort select {
  height: 40px; padding: 0 36px 0 14px; border-radius: 99px; border: 1.5px solid var(--line-strong); background-color: var(--bg);
  color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: var(--cursor-link);
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat;
}
.shop__sort select option { background: var(--surface); color: var(--text); }
.shop__sort select:focus { outline: none; border-color: var(--red); }
.shop__filters { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.shop__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.chip-x {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 14px; border-radius: 99px; font-size: 0.82rem; font-weight: 700;
  background: rgba(224, 38, 29, 0.14); border: 1px solid rgba(224, 38, 29, 0.5);
}
.chip-x .i { width: 14px; height: 14px; }
.chip-x:hover { border-color: var(--red); }
@media (min-width: 1100px) { .p-grid--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .p-grid--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

.pdp { display: grid; gap: 32px; padding: 40px 0 88px; }
.pdp > *, .pdp__actions > * { min-width: 0; }
.pdp__actions .btn { white-space: normal; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } }
.pdp__gallery { display: grid; gap: 12px; min-width: 0; }
@media (min-width: 900px) { .pdp__gallery { position: sticky; top: calc(var(--header-h) + 24px); } }
.pdp__media { width: 100%; background: var(--tile); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); aspect-ratio: 1; display: grid; place-items: center; padding: 10%; position: relative; cursor: zoom-in; }
.pdp__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pdp__thumbs::-webkit-scrollbar { display: none; }
.pdp__thumb {
  position: relative; flex: none; width: 76px; height: 76px; border-radius: var(--radius-sm); background: var(--tile);
  padding: 6px; border: 2px solid transparent; transition: border-color 0.2s;
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp__thumb.is-active, .pdp__thumb:hover { border-color: var(--red); }
.pdp__thumb small {
  position: absolute; left: 4px; right: 4px; bottom: 4px; border-radius: 6px; background: var(--ink); color: #fff;
  font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; text-align: center; padding: 1px 0;
}
.pdp__highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pdp__highlights li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 0.95rem; }
.pdp__highlights .i { color: var(--ok); margin-top: 2px; }
.pdp__quality {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(62, 207, 110, 0.4); background: rgba(62, 207, 110, 0.08); transition: border-color 0.2s;
}
.pdp__quality .i { color: var(--ok); width: 28px; height: 28px; }
.pdp__quality span { display: grid; font-size: 0.85rem; color: var(--muted); }
.pdp__quality b { color: var(--text); font-size: 0.95rem; }
.pdp__quality:hover { border-color: var(--ok); }

.variants { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.variants legend { font-size: 0.85rem; color: var(--muted); padding: 0; margin-bottom: 10px; }
.variants legend b { color: var(--text); }
.variants__options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { position: relative; cursor: var(--cursor-link); }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 99px;
  border: 1.5px solid var(--line-strong); font-size: 0.88rem; font-weight: 700; transition: all 0.2s;
}
.variant:hover span { border-color: var(--text); }
.variant input:checked + span { border-color: var(--red); background: rgba(224, 38, 29, 0.14); }
.variant input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.variant.is-soldout { cursor: not-allowed; }
.variant.is-soldout span { opacity: 0.45; text-decoration: line-through; }
.variant.is-soldout small { text-decoration: none; font-size: 0.7rem; }

.pdp-tabs {
  position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 0; margin-bottom: 8px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.pdp-tabs::-webkit-scrollbar { display: none; }
.pdp-tabs a { flex: none; padding: 8px 16px; border-radius: 99px; font-size: 0.85rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); }
.pdp-tabs a:hover, .pdp-tabs a.is-active { color: var(--text); border-color: var(--red); }
.pdp-content { display: grid; gap: 12px; padding-bottom: 56px; max-width: 900px; }
.pdp-section { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 70px); }
.pdp-section h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: clamp(1.8rem, 3.4vw, 2.4rem); text-transform: uppercase; margin-bottom: 16px; }
.pdp-specs { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .pdp-specs { grid-template-columns: 1fr 1fr; } }
.pdp-specs li { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; }
.pdp-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pdp-benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.pdp-benefits .i { color: var(--red); flex: none; margin-top: 3px; }
.pdp-docs { display: flex; flex-wrap: wrap; gap: 16px; }
.pdp-doc { width: min(100%, 420px); border-radius: var(--radius); overflow: hidden; background: #fff; cursor: zoom-in; border: 1px solid var(--line-strong); }
.pdp-doc img { width: 100%; height: auto; }
.pdp-section--quality h2 .i { color: var(--ok); width: 32px; height: 32px; }

.zoom { width: min(96vw, 1000px); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: #fff; overflow: auto; }
.zoom::backdrop { background: rgba(0, 0, 0, 0.85); }
.zoom img { width: 100%; height: auto; display: block; }
.zoom__close { position: sticky; top: 10px; float: right; margin: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; z-index: 1; }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); box-shadow: 0 -10px 30px -12px rgba(17, 17, 20, 0.25);
  border-top: 1px solid var(--line-strong); animation: pop-in 0.3s var(--ease) both;
}
.buy-bar__info { display: grid; min-width: 0; font-size: 0.82rem; }
.buy-bar__info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar__info span { font-weight: 800; font-size: 1rem; }
@media (min-width: 900px) { .buy-bar { display: none !important; } }
.has-buy-bar .wa-float { bottom: 84px; }

.pdp__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp__info { display: grid; gap: 18px; align-content: start; }
@media (min-width: 900px) { .pdp__info { position: sticky; top: calc(var(--header-h) + 24px); } }
.pdp__price strong { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 3rem; line-height: 1; }
.pdp__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp__meta a, .pdp__meta span { font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-strong); }
.pdp__actions { display: grid; gap: 10px; }
@media (min-width: 520px) { .pdp__actions { grid-template-columns: 1fr 1fr; } }
.pdp__perks { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.pdp__perks div { display: flex; gap: 12px; align-items: center; }
.pdp__perks .i { color: var(--red); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--muted); padding-top: 28px; }
.breadcrumbs a:hover { color: var(--text); }

/* ---------- Carrito y checkout ---------- */
[hidden] { display: none !important; }
.cart-form { display: contents; }
.icon-btn:disabled, .btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn:disabled:hover { background: var(--text); color: var(--bg); }
.accent-ok { color: var(--ok); }

.cart-toast {
  color: var(--text);
  position: fixed; left: 50%; bottom: 24px; z-index: 80; translate: -50% 0; width: max-content; max-width: min(92vw, 460px);
  display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 18px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--ok); font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 20px 50px -20px rgba(17, 17, 20, 0.45); animation: pop-in 0.35s var(--ease) both;
}
.cart-toast.is-error { border-color: var(--red); }
.cart-toast a { flex: none; padding: 6px 14px; border-radius: 99px; background: var(--red); color: #fff; font-size: 0.82rem; font-weight: 700; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 99px; height: 42px; }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; border-radius: 99px; color: var(--muted); }
.qty button:hover:not(:disabled) { color: var(--text); }
.qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty .i { width: 1em; height: 1em; }
.qty output, .qty input { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.qty input { width: 40px; border: 0; background: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty--lg { height: 56px; }
.qty--lg button { width: 48px; }

.cart-layout, .checkout, .order__grid { display: grid; gap: 28px; align-items: start; padding-bottom: 96px; }
/* Los ítems de grid no se achican bajo su contenido si no se les permite: evita el desborde en móvil. */
.cart-layout > *, .checkout > *, .order__grid > *, .checkout__main > * { min-width: 0; }
.btn--block { white-space: normal; text-align: center; }
@media (min-width: 1024px) { .cart-layout, .checkout, .order__grid { grid-template-columns: 1fr 380px; gap: 40px; } }

.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.cart-line {
  display: grid; grid-template-columns: 76px 1fr auto; grid-template-areas: "media info remove" "media qty total";
  gap: 10px 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); animation: pop-in 0.35s var(--ease) both;
}
@media (max-width: 479px) {
  .cart-line { grid-template-columns: 64px 1fr auto; gap: 8px 12px; padding: 16px 0; }
  .cart-line .qty { height: 38px; }
  .cart-line .qty button { width: 34px; }
  .cart-line__total { font-size: 0.98rem; }
  .summary { padding: 20px 18px; }
}
@media (min-width: 720px) {
  .cart-line { grid-template-columns: 96px 1fr auto 110px auto; grid-template-areas: "media info qty total remove"; gap: 20px; }
}
.cart-line__media { grid-area: media; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--tile); padding: 8px; }
.cart-line__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-line__info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.cart-line__name { font-weight: 700; line-height: 1.3; }
.cart-line__name:hover { color: var(--red); }
.cart-line__variant { font-size: 0.82rem; font-weight: 700; color: var(--gold); }
.cart-line__unit { font-size: 0.82rem; }
.cart-line .qty { grid-area: qty; justify-self: start; }
.cart-line__total { grid-area: total; justify-self: end; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.cart-line form:last-child { grid-area: remove; justify-self: end; }
.cart-line__remove { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.cart-line__remove:hover { color: var(--text); background: var(--surface-2); }

.cart-empty { display: grid; justify-items: center; gap: 16px; padding: 40px 0 120px; }
.cart-empty > .i { width: 56px; height: 56px; color: var(--red); }
.cart-empty p { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.cart-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.summary {
  position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; padding: 24px;
  border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line-strong);
}
.summary__title { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.8rem; text-transform: uppercase; line-height: 1; }
.summary__rows { margin: 0; display: grid; gap: 10px; }
.summary__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.summary__rows dt { color: var(--muted); }
.summary__rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary__total { border-top: 1px solid var(--line); padding-top: 14px; align-items: baseline; }
.summary__total dt { color: var(--text); font-weight: 700; }
.summary__total dd { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 2rem; }
.summary__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-height: 300px; overflow-y: auto; }
.summary__items li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-size: 0.88rem; }
.summary__thumb { position: relative; width: 48px; height: 48px; border-radius: 10px; background: var(--tile); padding: 4px; }
.summary__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.summary__thumb b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 0.7rem; }
.summary__name { font-weight: 600; line-height: 1.3; }
.summary__name small { display: block; font-size: 0.78rem; color: var(--gold); font-weight: 700; }
.summary__note { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem; color: var(--muted); }
.summary__note .i { color: var(--ok); }
.summary__back { justify-self: center; font-size: 0.9rem; }

.coupon { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.coupon label { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.coupon__row { display: flex; gap: 8px; }
.coupon__row input {
  flex: 1; width: 0; min-width: 0; height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line-strong);
  background: var(--bg); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.coupon__row input:focus { outline: none; border-color: var(--red); }
.coupon__applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.coupon__applied .i { color: var(--ok); }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; cursor: var(--cursor-link); }
.check input { width: 18px; height: 18px; accent-color: var(--red); }

.checkout__main { display: grid; gap: 20px; }
.checkout__login { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px dashed var(--line-strong); font-size: 0.92rem; color: var(--muted); }
.checkout__login .i { color: var(--red); }
.checkout__step { display: grid; gap: 18px; padding: 24px; border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 640px) { .checkout__step { padding: 30px; } }
.checkout__step h2 { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.checkout__step h2 span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 1rem; font-style: normal; }
.checkout__panel { display: grid; gap: 18px; }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.field select, .field textarea, .field input[type="number"] {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--bg);
  font: inherit; color: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { height: 52px; padding-block: 0; }
.field textarea { resize: vertical; min-height: 90px; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 38, 29, 0.18); }
.field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field input[type="text"], .field input[type="email"], .field input[type="password"] { font: inherit; }

.options { display: grid; gap: 10px; }
@media (min-width: 640px) { .options { grid-template-columns: 1fr 1fr; } }
.options--stores { grid-template-columns: 1fr; }
@media (min-width: 900px) { .options--stores { grid-template-columns: repeat(3, 1fr); } }
.option { position: relative; cursor: var(--cursor-link); }
.field label.option { font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__body {
  height: 100%; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px 18px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); transition: border-color 0.2s, background 0.2s;
}
.option__body .i { grid-row: span 2; color: var(--muted); width: 26px; height: 26px; }
.option__body b, .option__body small { grid-column: 2; }
.option__body > b:first-child, .option__body > b:first-child ~ small { grid-column: 1 / -1; }
.option__body small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.option:hover .option__body { border-color: var(--text); }
.option input:checked + .option__body { border-color: var(--red); background: linear-gradient(160deg, rgba(224, 38, 29, 0.14), transparent 70%); }
.option input:checked + .option__body .i { color: var(--red); }
.option input:focus-visible + .option__body { outline: 2px solid var(--red); outline-offset: 3px; }

.pdp__buy { display: grid; gap: 10px; }
.pdp__actions { grid-template-columns: auto 1fr; }
.pdp__stock { color: var(--ok); font-weight: 700; font-size: 0.9rem; }
.pdp__soldout { display: grid; gap: 14px; justify-items: start; padding: 18px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.pdp__ask { justify-self: start; }

.order { padding-bottom: 24px; }
.order__head { display: grid; justify-items: start; gap: 14px; padding: 56px 0 36px; }
.order__head .eyebrow { margin: 0; }
.order__check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; animation: pop-in 0.6s var(--ease); }
.order__check .i { width: 32px; height: 32px; }
.order__main { display: grid; gap: 20px; }
.order-card { display: grid; gap: 14px; justify-items: start; padding: 26px; border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); }
.order-card--highlight { border-color: var(--red); background: linear-gradient(160deg, rgba(224, 38, 29, 0.14), var(--surface) 55%); }
.order-card h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.order__amount { color: var(--text); }
.pay-options { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.88rem; }
.order-card--paid { border-color: rgba(62, 207, 110, 0.5); background: linear-gradient(160deg, rgba(62, 207, 110, 0.12), var(--surface) 55%); }
.order-card--paid h2 { display: flex; align-items: center; gap: 10px; }
.order-card--paid h2 .i { color: var(--ok); }
.order__bank { margin: 0; width: 100%; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line-strong); font: 600 0.92rem/1.7 var(--font-body); white-space: pre-wrap; }

/* ---------- Revelado al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@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; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Panel "Agregado al carrito" ---------- */
.has-added { overflow: hidden; }
.added { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.added[hidden] { display: none; }
.added__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); animation: fade-in 0.25s ease both; }
.added__panel {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto; display: grid; gap: 16px; align-content: start;
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); background: var(--surface);
  border-top: 1px solid var(--line-strong); border-radius: 22px 22px 0 0; box-shadow: 0 -30px 60px -30px rgba(17, 17, 20, 0.5);
  animation: sheet-up 0.4s var(--ease) both;
}
.added__panel:focus { outline: none; }
@media (min-width: 768px) {
  .added { justify-content: flex-end; align-items: stretch; }
  .added__panel { width: min(420px, 100%); max-height: none; padding: 28px; border-radius: 0; border-top: 0; border-left: 1px solid var(--line-strong); animation-name: drawer-in; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .added__panel, .added__backdrop { animation: none; } }
.added__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.added__head h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.5rem; text-transform: uppercase; line-height: 1.1; }
.added__head h2 .i { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--ok); color: #fff; }
.added__x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); }
.added__x:hover { background: var(--surface-2); }
.added__item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--line); }
.added__item img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: var(--tile); padding: 6px; }
.added__item div { display: grid; gap: 3px; min-width: 0; }
.added__item span { font-size: 0.85rem; }
.added__rows div { display: flex; justify-content: space-between; align-items: baseline; }
.added__rows dd { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.6rem; }
.added__actions { display: grid; gap: 10px; }
.added__links { display: flex; justify-content: center; gap: 18px; }

/* ---------- Paginación numerada ---------- */
.pagination { display: grid; justify-items: center; gap: 14px; margin-top: 40px; }
.pagination__summary { color: var(--muted); font-size: 0.9rem; }
.pagination__pages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination__pages a, .pagination__pages span {
  min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 99px;
  border: 1.5px solid var(--line-strong); font-weight: 700; font-variant-numeric: tabular-nums;
}
.pagination__pages a:hover { border-color: var(--red); color: var(--text); }
.pagination__pages [aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }
.pagination__pages .is-gap { border: 0; min-width: 20px; padding: 0; color: var(--muted); }
.pagination__pages .i { width: 1em; height: 1em; }
.pagination__pages .is-prev .i { transform: rotate(180deg); }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 90px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); opacity: 0; translate: 0 12px; pointer-events: none;
  transition: opacity 0.25s, translate 0.3s var(--ease), background 0.2s;
}
.to-top.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: var(--red); border-color: var(--red); color: #fff; }
.to-top .i { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
#contenido:focus { outline: none; }

/* ---------- Seguimiento del pedido ---------- */
.timeline { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; counter-reset: step; }
.timeline li { position: relative; padding-top: 18px; font-size: 0.78rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 99px; background: var(--surface-2); }
.timeline li.is-done { color: var(--text); }
.timeline li.is-done::before { background: var(--ok); }
.order-tracking { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

/* ==========================================================================
   Componentes del sitio mayorista
   ========================================================================== */

/* Alturas del header fijo: dos filas en móvil (logo + buscador), una en PC. */
:root { --header-h: 114px; }
@media (min-width: 900px) { :root { --header-h: 70px; } }

.btn { border-radius: 8px; font-weight: 800; }
.btn--ghost { background: transparent; }
.dark .btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.account-link { border-radius: 8px; border-color: rgba(255, 255, 255, 0.28); }
.eyebrow { color: var(--red); font-weight: 800; }
.dark .eyebrow { color: var(--hi); }
.display em { color: var(--red); }
.section--tight { padding-block: 48px; }
.section--alt { background: url("../img/fondo-patron.d06d7a9ebbd7.svg") 0 0 / 240px 240px, var(--bg-alt); }
.section-head .display em, .section-head .display .accent { color: var(--red); }

/* ---------- Precio: cifra condensada, sin etiqueta ---------- */
.p-card .price strong, .pdp__price strong {
  display: inline-block; color: var(--text); font-family: var(--font-display); font-weight: 800; font-stretch: 80%;
  font-size: 1.55rem; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.pdp__price strong { font-size: 2.8rem; }
.p-card__name { font-size: 0.95rem; }
.p-card__brand { color: var(--muted); }
.icon-btn { border-radius: 8px; background: var(--ink); color: #fff; }
.p-card.is-soldout .p-card__media img { opacity: 0.45; filter: grayscale(1); }
/* Sello «Agotado» sobre la foto, estilo flyer (tarjeta y ficha). */
.soldout-stamp {
  position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%);
  padding: 6px 18px; border: 3px solid #fff; border-radius: 6px; background: var(--ink); color: #fff;
  font-family: var(--font-display); font-stretch: 75%; font-size: 1.2rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.soldout-stamp--lg { font-size: clamp(1.4rem, 4vw, 2.2rem); padding: 8px 26px; }
@media (max-width: 600px) {
  .soldout-stamp:not(.soldout-stamp--lg) { font-size: 0.95rem; padding: 4px 12px; border-width: 2px; }
}
.pdp__media:has(.soldout-stamp) img { opacity: 0.45; filter: grayscale(1); }

/* ---------- Flyers de la portada ---------- */
.flyers-wrap { padding-top: 16px; }
.flyers { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.flyers__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.flyers__track::-webkit-scrollbar { display: none; }
.flyer { scroll-snap-align: start; position: relative; }
.flyer a, .flyer picture { display: block; }
.flyer img { width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; }
@media (max-width: 699px) { .flyer img { aspect-ratio: auto; } }
/* El video va encima de la imagen (su portada) y aparece cuando ya está reproduciendo. */
.flyer__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.flyer__video.is-playing { opacity: 1; }
.flyers__arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; display: none; place-items: center;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: var(--shadow); transition: background 0.2s, color 0.2s;
}
.flyers__arrow:hover { background: var(--red); color: #fff; }
.flyers__arrow--prev { left: 14px; }
.flyers__arrow--next { right: 14px; }
@media (min-width: 900px) { .flyers__arrow { display: grid; } }
.flyers__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.flyers__dots button { width: 10px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); transition: width 0.3s var(--ease), background 0.3s; }
.flyers__dots button[aria-current="true"] { width: 28px; background: #fff; }

/* Flyer de respaldo (sin flyers cargados): negro con franja roja diagonal y productos. */
.flyer-hero {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 28px; align-items: center;
  padding: 36px 24px; border-radius: var(--radius);
}
.flyer-hero::before {
  content: ""; position: absolute; z-index: -1; right: -20%; bottom: -40%; width: 90%; height: 90%;
  background: radial-gradient(closest-side, rgba(227, 18, 11, 0.45), transparent); border-radius: 50%;
}
.flyer-hero__copy { display: grid; gap: 18px; justify-items: start; max-width: 620px; }
.flyer-hero__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 4px; background: var(--red); color: #fff; font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.flyer-hero__lead { color: var(--muted); font-size: 1.05rem; max-width: 34em; }
.flyer-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.flyer-hero__products { display: flex; justify-content: center; align-items: flex-end; }
.flyer-hero__products img { width: 34%; max-width: 220px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); }
.flyer-hero__products img:nth-child(2) { width: 42%; max-width: 270px; margin-inline: -6%; position: relative; z-index: 1; }
@media (min-width: 900px) {
  .flyer-hero { grid-template-columns: 1.1fr 1fr; padding: 56px 56px; min-height: 440px; }
  .flyer-hero::before { right: -8%; bottom: -30%; width: 55%; height: 140%; }
}

/* ---------- Condiciones de compra ---------- */
.terms { display: grid; gap: 10px; padding-block: 16px; }
@media (min-width: 640px) { .terms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .terms { grid-template-columns: repeat(4, 1fr); } }
.term { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.term > .i { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgba(227, 18, 11, 0.08); color: var(--red); }
.term b { display: block; font-size: 0.95rem; line-height: 1.25; }
.term span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.35; margin-top: 2px; }

/* ---------- Cómo comprar ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step__num {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 8px; background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.9rem;
}
.step h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Ofertas (banda negra) ---------- */
.offer-band { background: var(--ink); }
.offer-band::before { -webkit-text-stroke: 2px rgba(255, 255, 255, 0.08); }
.offer-band__item { background: #fff; }

/* ---------- Asesoría mayorista ---------- */
.lead { position: relative; overflow: hidden; }
.lead::before { content: ""; position: absolute; left: -15%; top: -40%; width: 70%; height: 180%; background: radial-gradient(closest-side, rgba(227, 18, 11, 0.22), transparent); pointer-events: none; }
.lead__inner { position: relative; display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .lead__inner { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }
.lead__copy { display: grid; gap: 18px; }
.lead__copy .display em { color: var(--hi); }
.lead__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.lead__list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.lead__list .i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--red); color: #fff; }
.signup-form { position: relative; display: grid; gap: 16px; padding: 24px; border-radius: var(--radius); background: #fff; color: #111114; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
@media (min-width: 640px) { .signup-form { padding: 32px; } }
.signup-form .field label, .signup-form .field legend { color: #5b5b63; }
.signup-form .field input[type="text"], .signup-form .field input[type="email"], .signup-form .field textarea {
  background: #f6f6f3; border-color: rgba(17, 17, 20, 0.2); color: #111114;
}
.signup-form .field textarea { min-height: 80px; }
.signup-form .chip span { border-color: rgba(17, 17, 20, 0.22); }
.signup-form__success { background: #fff; color: #111114; }
.signup-form__success[hidden] { display: none; }
.field input[type="search"] { font: inherit; }
.chip span { border-radius: 8px; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Barra del carrito: compra mínima y despacho ---------- */
.ship-meter.is-minimum .ship-meter__bar span { background: linear-gradient(90deg, var(--red-deep), var(--red)); }
.ship-meter.is-minimum p { color: var(--text); }
.ship-meter__bar { height: 8px; }

/* Ajustes de la revisión visual */
.cat-card__body b { overflow-wrap: normal; hyphens: auto; font-size: clamp(1.1rem, 2.2vw, 1.7rem); }
@media (max-width: 639px) {
  .terms { grid-template-columns: 1fr 1fr; gap: 8px; }
  .term { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .term > .i { width: 36px; height: 36px; padding: 8px; }
  .term b { font-size: 0.85rem; }
  .term span { display: none; }
}

/* Consistencia comercial: títulos sólidos y controles rectos (sin píldoras de tienda al detalle) */
.outline { color: var(--red); -webkit-text-stroke: 0; }
.dark .outline { color: var(--hi); }
.filter, .shop__search input, .shop__sort select, .pagination__pages a, .pagination__pages span,
.variant span, .qty, .qty button, .coupon__row input, .chip-x, .pdp__meta a, .pdp__meta span,
.pdp-tabs a, .newsletter input[type="email"], .status-pill { border-radius: 8px; }
.filter.is-active { background: var(--ink); border-color: var(--ink); }
.filter--sale.is-active { background: var(--red); border-color: var(--red); }
.page-head { padding: 32px 0 20px; }
.p-card__media { background: #fff; }

/* ---------- Margen del negocio (precio público sugerido − precio mayorista) ---------- */
.margin-tag {
  display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 8px; border-radius: 6px;
  background: rgba(23, 138, 71, 0.1); color: #0f6b36; font-size: 0.8rem; line-height: 1.2;
}
.margin-tag .i { width: 16px; height: 16px; flex: none; }
.margin-tag span { flex: 1; }
.margin-tag b { font-weight: 900; }
.margin-tag em { font-style: normal; font-weight: 900; background: var(--ok); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.74rem; }
.price__retail { display: block; width: 100%; font-size: 0.74rem; color: var(--muted); margin-top: 4px; }
.price__unit { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
/* Datos del revendedor bajo el precio: Sugerido Venta y ganancia. */
.p-card__facts { display: grid; gap: 4px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.p-card__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.p-card__facts dt { color: var(--muted); }
.p-card__facts dd { margin: 0; font-weight: 700; text-align: right; }
.p-card__facts .is-gain dd { color: var(--ok); }
.p-card__facts .is-gain em { font-style: normal; font-weight: 800; }
.p-card__facts dt, .p-card__facts dd { white-space: nowrap; }
/* Tarjetas angostas (2 columnas en celular): precio y datos se achican con la tarjeta para caber en una línea. */
.p-card { container-type: inline-size; }
@container (max-width: 220px) {
  .p-card__body { padding: 12px 12px 14px; }
  .p-card .price strong { font-size: clamp(1.15rem, 12cqi, 1.55rem); }
  .p-card__foot .icon-btn { width: 36px; height: 36px; }
  .p-card__facts { font-size: clamp(0.66rem, 6.2cqi, 0.8rem); gap: 3px; }
  .p-card__facts .c-u { display: none; }
}

/* ---------- Planilla de pedido (pedido rápido y sabores de la ficha) ---------- */
.sheet { display: grid; gap: 14px; padding-bottom: 120px; }
.sheet--pdp { padding-bottom: 0; gap: 10px; }
.sheet__head, .sheet-line {
  display: grid; grid-template-columns: minmax(0, 1.5fr) 0.7fr 0.8fr 1.1fr auto; align-items: center; gap: 12px;
}
.sheet__head { padding: 0 14px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sheet__head span:last-child { width: 132px; text-align: center; }
.sheet__category { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.8rem; text-transform: uppercase; margin: 18px 0 10px; }
.sheet__group { display: grid; gap: 10px; }
.sheet-product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sheet-product__head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.sheet-product__head img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; }
.sheet-product__head small { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.sheet-product__head b { display: block; line-height: 1.2; }
.sheet-product__head:hover b { color: var(--red); }
.sheet-product__lines { display: grid; }
.sheet--pdp .sheet-product__lines { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.sheet-line { padding: 8px 14px; border-top: 1px solid var(--line); font-size: 0.92rem; transition: background 0.2s; }
.sheet-line:first-child { border-top: 0; }
.sheet-line.has-qty { background: rgba(227, 18, 11, 0.05); box-shadow: inset 3px 0 var(--red); }
.sheet-line.is-soldout { color: var(--muted); }
.sheet-line__name { font-weight: 700; }
.sheet-line__name small { font-size: 0.72rem; color: var(--red); font-weight: 800; }
.sheet-line__stock { color: var(--muted); font-size: 0.82rem; }
.sheet-line__price { font-weight: 900; font-variant-numeric: tabular-nums; }
.sheet-line__margin { color: #0f6b36; font-size: 0.84rem; font-weight: 700; }
.sheet-line__margin em { font-style: normal; background: var(--ok); color: #fff; border-radius: 4px; padding: 1px 5px; font-size: 0.72rem; }
.sheet-line__qty { height: 38px; width: 132px; justify-content: space-between; background: var(--surface); }
.sheet-line__qty button { width: 36px; }
.sheet-line__qty input { width: 52px; }
.sheet.is-saving .sheet-line.has-qty { background: rgba(227, 18, 11, 0.1); }
.sheet__actions { display: grid; gap: 10px; }
@media (min-width: 520px) { .sheet__actions { grid-template-columns: 1fr 1fr; } }
.sheet__hint { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 719px) {
  .sheet__head { display: none; }
  .sheet-line { grid-template-columns: 1fr auto; grid-template-areas: "name qty" "meta qty"; row-gap: 2px; }
  .sheet-line__name { grid-area: name; }
  .sheet-line__qty { grid-area: qty; }
  .sheet-line__stock, .sheet-line__price, .sheet-line__margin { grid-area: meta; }
  .sheet-line__stock { display: none; }
  .sheet-line__price { justify-self: start; }
  .sheet-line__margin { justify-self: end; padding-right: 6px; }
}
/* En la ficha la columna es angosta: la tabla se compacta como en móvil. */
.sheet--pdp .sheet__head { display: none; }
.sheet--pdp .sheet-line { grid-template-columns: 1fr auto; grid-template-areas: "name qty" "meta qty"; row-gap: 2px; }
.sheet--pdp .sheet-line__name { grid-area: name; }
.sheet--pdp .sheet-line__qty { grid-area: qty; }
.sheet--pdp .sheet-line__stock, .sheet--pdp .sheet-line__price, .sheet--pdp .sheet-line__margin { grid-area: meta; }
.sheet--pdp .sheet-line__price { justify-self: start; }
.sheet--pdp .sheet-line__stock { justify-self: center; }
.sheet--pdp .sheet-line__margin { justify-self: end; padding-right: 6px; }

.sheet-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--ink); color: #fff; box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.5); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.sheet-bar__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px; }
.sheet-bar__meter { grid-column: 1 / -1; }
.sheet-bar .ship-meter p, .sheet-bar .ship-meter.is-minimum p { color: #fff; }
.sheet-bar .ship-meter.is-free p { color: #6ee7a0; }
.sheet-bar .ship-meter__bar { background: rgba(255, 255, 255, 0.18); }
.sheet-bar__total small { display: block; font-size: 0.72rem; color: #a9a9b1; }
.sheet-bar__total b { font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: 1.6rem; color: var(--hi); }
@media (min-width: 900px) { .sheet-bar__inner { grid-template-columns: 1fr auto auto; } .sheet-bar__meter { grid-column: auto; } }

.pdp__off { align-self: center; font-size: 0.8rem; }
.pdp__unit { display: block; width: 100%; font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.margin-tag--lg { font-size: 0.9rem; padding: 10px 12px; }
.margin-tag--lg .i { width: 20px; height: 20px; }
.nav__quick { background: rgba(0, 0, 0, 0.2); border-radius: 6px; min-height: 32px !important; margin-inline: 4px; }
.nav__quick .i { width: 16px; height: 16px; }
.link-inline { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.quick-cta {
  display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; font-size: 0.9rem; max-width: 640px; transition: background 0.2s;
}
.quick-cta > .i:first-child { color: var(--hi); width: 24px; height: 24px; }
.quick-cta span { flex: 1; }
.quick-cta b { color: var(--hi); }
.quick-cta:hover { background: var(--red); }

/* Planilla compacta (móvil y ficha): nombre arriba; precio y ganancia abajo, en columnas propias. */
@media (max-width: 719px) {
  .sheet-line { grid-template-columns: auto 1fr auto; grid-template-areas: "name name qty" "price margin qty"; column-gap: 10px; }
  .sheet-line__price { grid-area: price; }
  .sheet-line__margin { grid-area: margin; justify-self: start; padding-right: 0; }
}
.sheet--pdp .sheet-line { grid-template-columns: auto auto 1fr auto; grid-template-areas: "name name name qty" "price stock margin qty"; column-gap: 12px; }
.sheet--pdp .sheet-line__price { grid-area: price; }
.sheet--pdp .sheet-line__stock { grid-area: stock; display: block; justify-self: start; }
.sheet--pdp .sheet-line__margin { grid-area: margin; justify-self: end; }
@media (max-width: 479px) { .sheet--pdp .sheet-line__stock { display: none; } }

/* Botones flotantes sobre la barra de total del pedido rápido */
body:has(.sheet-bar) .wa-float { bottom: 104px; }
body:has(.sheet-bar) .to-top { bottom: 176px; }
@media (max-width: 899px) { body:has(.sheet-bar) .wa-float { bottom: 150px; } body:has(.sheet-bar) .to-top { bottom: 222px; } }
.sheet-line__margin { white-space: nowrap; }
@media (max-width: 719px) {
  .sheet-line__qty { width: 116px; }
  .sheet-line__qty button { width: 32px; }
  .sheet-line__qty input { width: 44px; }
}
@media (max-width: 439px) { .sheet-line__margin em { display: none; } }

/* ---------- Marcas ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .brand-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } }
.brand-tile {
  display: grid; grid-template-rows: 1fr auto; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.3s var(--ease), border-color 0.3s;
}
.brand-tile:hover { transform: translateY(-4px); border-color: var(--red); }
.brand-tile__logo { display: grid; place-items: center; height: 120px; padding: 18px 24px; background: #fff; }
.brand-tile__logo img { max-width: 100%; max-height: 80px; object-fit: contain; }
.brand-tile__logo b { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 1.6rem; text-transform: uppercase; text-align: center; }
.brand-tile__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; background: var(--ink); color: #fff; }
.brand-tile__foot b { font-size: 0.9rem; }
.brand-tile__foot small { color: #c9c9cf; font-weight: 700; font-size: 0.76rem; white-space: nowrap; }
.brand-tile--house .brand-tile__foot { background: var(--red); }
.brand-tile--house .brand-tile__foot small { color: #fff; }

.brand-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: -12px 0 24px; padding: 2px; }
.brand-strip::-webkit-scrollbar { display: none; }
.brand-chip {
  flex: none; display: grid; place-items: center; min-width: 110px; height: 56px; padding: 8px 16px; border-radius: 8px;
  background: #fff; border: 1.5px solid var(--line); font-weight: 800; font-size: 0.85rem; transition: border-color 0.2s;
}
.brand-chip img { max-height: 38px; max-width: 110px; object-fit: contain; }
.brand-chip:hover, .brand-chip.is-active { border-color: var(--red); }
.brand-chip.is-active { box-shadow: 0 0 0 2px var(--red); }
.brand-hero { width: auto; max-width: 220px; max-height: 110px; object-fit: contain; background: #fff; padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--line); }

/* ==========================================================================
   Portada v2: ganancia, categorías tipo flyer, destacados en carrusel y pedido rápido
   ========================================================================== */

/* ---------- Gana revendiendo ---------- */
.profit {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 24px; align-items: center;
  margin-top: 8px; padding: 28px 22px; border-radius: var(--radius);
}
.profit::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 55%; height: 220%;
  background: radial-gradient(closest-side, rgba(227, 18, 11, 0.35), transparent);
}
.profit__copy { display: grid; gap: 14px; justify-items: start; }
.profit__pct { color: var(--hi) !important; }
.profit__lead { color: var(--muted); max-width: 32em; }
.profit__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.profit-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px;
  border-radius: 10px; background: #fff; color: #111114; transition: transform 0.25s var(--ease);
}
.profit-item:hover { transform: translateX(4px); }
.profit-item img { width: 64px; height: 64px; object-fit: contain; }
.profit-item__body { min-width: 0; }
.profit-item__body b { display: block; line-height: 1.2; }
.profit-item__body small { display: block; color: #5b5b63; font-size: 0.8rem; margin-top: 2px; }
.profit-item__gain { display: grid; justify-items: end; }
.profit-item__gain b {
  font-family: var(--font-display); font-weight: 800; font-stretch: 80%; font-size: 1.4rem; line-height: 1;
  color: #0f6b36;
}
.profit-item__gain small { margin-top: 4px; padding: 1px 6px; border-radius: 4px; background: var(--ok); color: #fff; font-weight: 800; font-size: 0.74rem; }
@media (min-width: 960px) {
  .profit { grid-template-columns: 1fr 1.05fr; gap: 48px; padding: 44px 48px; }
}
@media (max-width: 419px) { .profit-item { grid-template-columns: 52px 1fr auto; } .profit-item img { width: 52px; height: 52px; } }

/* ---------- Categorías tipo flyer ---------- */
.cat-card {
  min-height: 210px; background: var(--ink); color: #fff; border: 0;
}
.cat-card::before {
  content: ""; position: absolute; z-index: -2; right: -30%; bottom: -45%; width: 90%; height: 100%;
  background: var(--red); border-radius: 24px;
}
.cat-card img { right: 4%; top: 6%; width: 58%; height: 64%; mix-blend-mode: normal; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5)); }
.cat-card__body { padding: 16px 56px 16px 16px; }
.cat-card__body b { color: #fff; }
.cat-card__body small { color: #d0d0d5; opacity: 1; font-weight: 600; }
.cat-card__go { background: #fff; color: var(--ink); }
.cat-card:hover { border-color: transparent; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.cat-card:hover .cat-card__go { background: #fff; }
@media (min-width: 1100px) { .cat-card { min-height: 240px; } }

/* ---------- Destacados: carrusel horizontal en móvil ---------- */
@media (max-width: 767px) {
  .p-grid--rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px;
    scroll-padding-inline: var(--gutter);
  }
  .p-grid--rail::-webkit-scrollbar { display: none; }
  .p-grid--rail > * { scroll-snap-align: start; }
}

/* ---------- Promo del pedido rápido ---------- */
.quick-promo__inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .quick-promo__inner { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.quick-promo__copy { display: grid; gap: 16px; justify-items: start; }
.quick-promo__list .i { background: var(--ink); color: #fff; }
.quick-preview {
  display: grid; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(17, 17, 20, 0.45);
}
.quick-preview__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--ink); color: #fff; font-size: 0.8rem; }
.quick-preview__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a40; }
.quick-preview__bar i:first-child { background: var(--red); }
.quick-preview__bar i:nth-child(2) { background: #6b6b73; }
.quick-preview__bar b { margin-left: 8px; }
.quick-preview__row {
  display: grid; grid-template-columns: 40px 1fr auto 56px; gap: 12px; align-items: center; padding: 8px 14px;
  border-top: 1px solid var(--line); font-size: 0.88rem;
}
.quick-preview__row:nth-child(2n + 3) { background: rgba(17, 17, 20, 0.03); }
.quick-preview__row img { width: 40px; height: 40px; object-fit: contain; }
.quick-preview__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-preview__price { font-weight: 900; }
.quick-preview__qty { display: grid; place-items: center; height: 30px; border: 1.5px solid var(--line-strong); border-radius: 6px; font-weight: 800; }
.quick-preview__total { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--ink); color: #fff; }
.quick-preview__total small { color: #a9a9b1; font-size: 0.75rem; }
.quick-preview__total b { color: #6ee7a0; font-size: 0.9rem; }
@media (max-width: 479px) { .quick-preview__row { grid-template-columns: 34px 1fr auto 44px; gap: 8px; font-size: 0.8rem; } .quick-preview__row img { width: 34px; height: 34px; } }
/* Categorías: tarjeta blanca (las fotos de Bsale traen fondo blanco o gris) con esquina roja en diagonal. */
.cat-card { background: #fff; color: var(--text); border: 1px solid var(--line); min-height: 230px; }
.cat-card::before { right: -38%; bottom: -62%; width: 95%; height: 100%; }
.cat-card img { right: 50%; translate: 50% 0; top: 8%; width: 70%; height: 52%; mix-blend-mode: multiply; filter: none; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card img { border-radius: 10px; }
.cat-card__body b { color: var(--text); }
.cat-card__body small { color: var(--red); }
.cat-card__go { background: var(--ink); color: #fff; }
.cat-card:hover .cat-card__go { background: var(--red); color: #fff; }
.cat-card::before { display: none; }
.cat-card { border: 1px solid var(--line); }
.cat-card:hover { border-color: var(--ink); }
/* El nombre ocupa todo el ancho (nunca bajo la flecha) y su tamaño sigue al de la tarjeta: «Termogénicos» o
   «Prohormonales» caben enteros en celular sin cortarse. Debajo, cantidad de productos y flecha en una fila. */
.cat-card { container-type: inline-size; }
.cat-card__body { padding: 14px 14px 14px 16px; gap: 6px; }
.cat-card__body b { font-size: clamp(1rem, 10.5cqi, 1.8rem); overflow-wrap: normal; hyphens: manual; word-break: normal; }
.cat-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat-card__go { position: static; flex: none; width: 34px; height: 34px; }
/* Hasta 3 fotos por categoría en abanico: la del centro (Strongest) adelante y más grande, las otras detrás.
   Son fotos sin fondo (.is-cutout, ver catalog/cutouts.py), así se enciman limpias. Van en su propia franja
   (fila 1 de la tarjeta), así un nombre de dos líneas nunca las tapa. */
.cat-card__media { position: relative; grid-row: 1; z-index: 0; height: clamp(104px, 14vw, 150px); margin: 16px 14px 0; }
.cat-card .cat-card__media img {
  position: absolute; top: 0; left: 50%; right: auto; width: 50%; height: 100%; translate: -50% 0;
  object-fit: contain; object-position: bottom; mix-blend-mode: multiply; border-radius: 0; filter: none;
  transition: transform 0.5s var(--ease);
}
.cat-card .cat-card__media img.is-cutout { mix-blend-mode: normal; filter: drop-shadow(0 8px 10px rgba(17, 17, 20, 0.18)); }
.cat-card__media--3 img:first-child, .cat-card__media--2 img:first-child { z-index: 1; }
.cat-card__media--3 img:nth-child(2) { translate: -104% 4%; width: 40%; height: 86%; }
.cat-card__media--3 img:nth-child(3) { translate: 4% 4%; width: 40%; height: 86%; }
.cat-card__media--2 img:first-child { translate: -80% 0; width: 46%; }
.cat-card__media--2 img:last-child { translate: -18% 4%; width: 42%; height: 88%; }
/* Ropa: fotos (no productos recortados) como tarjetitas con borde. */
.cat-card .cat-card__media--photo img { object-fit: cover; mix-blend-mode: normal; border-radius: 8px;
  border: 2px solid #fff; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45); filter: none; }
.cat-card__media--photo.cat-card__media--3 img:nth-child(2) { rotate: -6deg; }
.cat-card__media--photo.cat-card__media--3 img:nth-child(3) { rotate: 6deg; }
.cat-card:hover .cat-card__media img { transform: translateY(-4px); }
.cat-card:hover .cat-card__media img:first-child { transform: translateY(-4px) scale(1.04); }
.cat-card:has(.cat-card__media) { grid-template-rows: auto 1fr; }
.cat-card:has(.cat-card__media) .cat-card__body { grid-row: 2; align-self: end; }
/* En celular (2 columnas) la última categoría, si queda sola, ocupa la fila completa. */
@media (max-width: 767px) { .cat-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ==========================================================================
   Pantalla de carga: cajas sobre un pallet, contador hasta la compra mínima,
   etiqueta estampada y apertura en diagonal. La coreografía vive en main.js.
   ========================================================================== */
.preloader { display: none; }
.js.is-loading .preloader, .js .preloader.is-leaving { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.is-loading, .is-loading body { overflow: hidden; }
.preloader__panel { position: absolute; inset: -2px; background: #0e0e10; }
.preloader__panel--top {
  clip-path: polygon(0 0, 100% 0, 100% 44%, 0 62%);
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(227, 18, 11, 0.16), transparent 70%), #0e0e10;
}
.preloader__panel--bottom {
  clip-path: polygon(0 62%, 100% 44%, 100% 100%, 0 100%);
  background: radial-gradient(ellipse 60% 50% at 50% 70%, rgba(227, 18, 11, 0.08), transparent 70%), #0e0e10;
}
/* Franja roja a lo largo del corte diagonal: barre la pantalla antes de abrirla. */
.preloader__stripe { position: absolute; inset: 0; background: var(--red); clip-path: polygon(0 58%, 100% 40%, 100% 48%, 0 66%); transform: translateX(-101%); }
.preloader__core { position: relative; display: grid; justify-items: center; width: min(560px, 96vw); }
.preloader__logo { width: min(240px, 58vw); height: auto; margin-bottom: 4px; }
.preloader__scene { width: 100%; height: auto; overflow: visible; }
.preloader__floor { stroke: rgba(255, 255, 255, 0.18); stroke-width: 2; }
.preloader__shadow { fill: #000; opacity: 0.55; }
[data-box], .preloader__tag { transform-box: fill-box; transform-origin: 50% 100%; }
[data-box] { opacity: 0; }
.preloader__tag { opacity: 0; transform-origin: 50% 50%; }
.preloader__amount {
  margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-stretch: 80%;
  font-size: clamp(2.4rem, 9vw, 3.4rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums;
}
.preloader__meter { width: 220px; height: 4px; margin: 12px 0 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.preloader__meter span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.preloader__status { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: #a9a9b1; }
.preloader__core > * { animation: pre-in 0.6s var(--ease) both; }
.preloader__core > :nth-child(2) { animation-delay: 0.06s; }
.preloader__core > :nth-child(n + 3) { animation-delay: 0.12s; }
@keyframes pre-in { from { opacity: 0; transform: translateY(12px); } }
.sheet-line__retail { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); }

/* ---------- «Guarda tu pedido» (carrito bajo la compra mínima) ---------- */
.save-cart { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius-sm); border: 1.5px dashed var(--line-strong); background: var(--surface-2); font-size: 0.86rem; }
.save-cart input { height: 42px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: #fff; font: inherit; }
.save-cart input:focus { outline: none; border-color: var(--red); }
.save-cart--done { display: flex; gap: 10px; align-items: flex-start; border-style: solid; border-color: rgba(23, 138, 71, 0.4); background: rgba(23, 138, 71, 0.08); }
.save-cart--done .i { color: var(--ok); flex: none; margin-top: 2px; }

/* ---------- Páginas legales ---------- */
.legal { padding-bottom: 88px; }
.legal__head { display: grid; gap: 12px; padding: 28px 0 32px; max-width: 860px; }
.legal__head .eyebrow { margin: 0; }
.legal__updated { color: var(--muted); font-size: 0.88rem; }
.legal__summary { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--surface); border-left: 4px solid var(--red); box-shadow: var(--shadow); font-size: 1.02rem; font-weight: 600; }
.legal__layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .legal__layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.legal__body h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.legal__side { display: grid; gap: 14px; }
@media (min-width: 1024px) { .legal__side { position: sticky; top: calc(var(--header-h) + 20px); } }
.legal__nav, .legal__contact { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.legal__nav a { padding: 8px 10px; border-radius: 6px; font-weight: 700; font-size: 0.92rem; }
.legal__nav a:hover { background: var(--bg); }
.legal__nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.legal__contact { font-size: 0.9rem; }
.legal__contact a { color: var(--red); font-weight: 700; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__legal a:hover { color: var(--hi); }
.terms-accept { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); font-size: 0.86rem; }
.terms-accept.has-error { border-color: var(--red); background: rgba(227, 18, 11, 0.06); }
.terms-accept a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.terms-accept .check { align-items: flex-start; }
.terms-accept .check input { margin-top: 2px; }
.terms-accept__note { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 95; width: min(440px, calc(100vw - 32px));
  display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--ink); color: #f6f6f3;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6); font-size: 0.86rem; line-height: 1.5; animation: pop-in 0.35s var(--ease) both;
}
.cookie-banner a { color: var(--hi); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-banner .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.site-footer__legal .link-btn { color: inherit; font-size: inherit; text-decoration: none; padding: 0; }
.site-footer__legal .link-btn:hover { color: var(--hi); }
@media (max-width: 639px) { .cookie-banner { left: 8px; right: 8px; bottom: 8px; width: auto; } }

/* Ficha: nombres largos (packs) en un tamaño que no se coma la pantalla. */
.pdp__title--long { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.02; }
/* Tarjeta angosta (2 columnas en celular): «Ganas $X c/u» en una línea. */
@media (max-width: 479px) {
  .p-card .margin-tag { gap: 4px; padding: 5px 6px; font-size: 0.72rem; }
  .p-card .margin-tag .i, .p-card .margin-tag .c-u { display: none; }
  .p-card .margin-tag em { padding: 1px 4px; font-size: 0.68rem; }
}
