/* Distrimarcas · catálogo de pedidos
   Capas: base → identidad Distrimarcas (negro + oro) → v3 (fotos grandes del modelo). */

:root {
  --bg: #ecebe8;
  --surface: #f8f8f6;
  --surface-2: #e2e1dd;
  --ink: #141413;
  --ink-2: #55544f;
  --ink-3: #8a8983;
  --line: #d3d2cd;
  --accent: #c8102e;
  --accent-soft: #f6dfe2;
  --on-ink: #f8f8f6;
  --wa: #1c9e4f;
  --wa-ink: #ffffff;
  --ok: #1c7a45;
  --shadow: 0 10px 30px rgba(20, 20, 19, 0.12);
  --display: "Anton", "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --body: "Sora", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --r: 14px;
  --gutter: 16px;
  --bar-h: 76px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1c1c1a;
    --surface-2: #262624;
    --ink: #efeeea;
    --ink-2: #b4b3ad;
    --ink-3: #7f7e78;
    --line: #34332f;
    --accent: #ff4d5e;
    --accent-soft: #3a1a1e;
    --on-ink: #141413;
    --wa: #25b35c;
    --ok: #4cc27f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211;
  --surface: #1c1c1a;
  --surface-2: #262624;
  --ink: #efeeea;
  --ink-2: #b4b3ad;
  --ink-3: #7f7e78;
  --line: #34332f;
  --accent: #ff4d5e;
  --accent-soft: #3a1a1e;
  --on-ink: #141413;
  --wa: #25b35c;
  --ok: #4cc27f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Encabezado ---------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0;
  font-family: var(--display); font-size: 22px; letter-spacing: 0.02em;
}
.brand-mark {
  width: 34px; height: 32px;
  background: var(--ink);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.brand .o { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.top-back {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 8px 4px; margin-left: -4px;
  font-weight: 600; font-size: 14px;
}
.top-spacer { flex: 1; }
.cart-btn {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--on-ink);
  border: 0; border-radius: 999px;
  padding: 9px 14px; font-weight: 600; font-size: 14px;
}
.cart-btn .count {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 0 calc(var(--bar-h) + 40px);
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  margin: 16px 0 0;
  border-radius: 20px;
  overflow: hidden;
  background: #8d8c88 var(--hero) center 30% / cover no-repeat;
  color: #fff;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.62) 100%);
}
.hero-in { position: relative; z-index: 1; padding: 20px; width: 100%; }
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 14vw, 124px);
  line-height: 0.88;
  letter-spacing: 0.005em;
}
.hero h1 .o { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.hero p { margin: 10px 0 0; max-width: 36ch; font-size: 14px; opacity: 0.95; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hero-tags span {
  font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35);
}

/* Regla del precio por mayor */
.rule {
  margin: 14px 0 0;
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px;
}
.rule-n {
  font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent);
}
.rule b { display: block; font-size: 14px; }
.rule span { font-size: 13px; color: var(--ink-2); }

/* ---------- Filtros ---------- */
.filters {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 57px); z-index: 10;
  margin: 18px calc(var(--gutter) * -1) 0;
  padding: 10px var(--gutter);
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  background: var(--bg);
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: var(--ink-2);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* ---------- Tarjetas ---------- */
.grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  text-align: left; background: none; border: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.card-img {
  position: relative;
  aspect-ratio: 3 / 4; width: 100%; max-width: 100%;
  border-radius: var(--r); overflow: hidden; background: var(--surface-2);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-badge {
  position: absolute; left: 8px; top: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--surface); color: var(--ink); padding: 4px 8px; border-radius: 999px;
}
.card-telas {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 11px; font-weight: 600;
  background: rgba(20,20,19,0.72); color: #fff; padding: 4px 8px; border-radius: 999px;
}
.card h3 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: 21px; line-height: 1.05; letter-spacing: 0.01em;
  text-wrap: balance;
}
.card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; color: var(--ink-2); }
.card-price b { font-size: 16px; color: var(--ink); }

/* Foto pendiente */
.noimg {
  width: 100%; height: 100%;
  display: grid; place-items: center; text-align: center; padding: 14px;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--ink) 5%, transparent) 10px 11px),
    var(--surface-2);
}
.noimg strong {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 6vw, 34px); line-height: 0.95;
  color: transparent; -webkit-text-stroke: 1px var(--ink-2);
}
.noimg span { display: block; margin-top: 8px; font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* Bloque de marca propia */
.brandup {
  margin-top: 32px;
  display: grid; gap: 12px;
  background: var(--ink); color: var(--on-ink);
  border-radius: 20px; padding: 22px 20px;
}
.brandup h2 {
  margin: 0; font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 0.95;
}
.brandup h2 .o { color: transparent; -webkit-text-stroke: 1.2px var(--on-ink); }
.brandup p { margin: 0; font-size: 14px; opacity: 0.85; max-width: 52ch; }
.brandup ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.brandup li { font-size: 12px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--on-ink) 35%, transparent); padding: 5px 10px; border-radius: 999px; }

.foot { margin-top: 28px; font-size: 13px; color: var(--ink-3); display: grid; gap: 4px; }
.foot b { color: var(--ink-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 14px 18px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  background: var(--ink); color: var(--on-ink);
}
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-light { background: var(--on-ink); color: var(--ink); }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* ---------- Producto ---------- */
.pd { display: grid; gap: 18px; padding-top: 14px; }
@media (min-width: 860px) { .pd { grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; } .pd-gal { position: sticky; top: 80px; } }

.gal {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gal::-webkit-scrollbar { display: none; }
.gal > * {
  flex: 0 0 72%; max-width: 400px; aspect-ratio: 3 / 4;
  scroll-snap-align: start; border-radius: var(--r); overflow: hidden; background: var(--surface-2);
}
@media (min-width: 860px) { .gal { margin: 0; padding: 0; } .gal > * { flex-basis: 80%; } }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal-hint { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }

.pd-head .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.pd-head h1 {
  margin: 2px 0 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(36px, 10vw, 54px); line-height: 0.95; text-wrap: balance;
}
.pd-head p { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; max-width: 60ch; }

.prices {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.prices div { background: var(--surface); padding: 10px 12px; }
.prices small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.prices b { font-size: 18px; }
.prices .hl b { color: var(--accent); }

.block { display: grid; gap: 10px; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.block-h h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.block-h span { font-size: 13px; color: var(--ink-2); }

.telas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tela {
  text-align: left; border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px;
}
.tela b { font-size: 15px; }
.tela span { font-size: 12px; color: var(--ink-2); }
.tela[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.spec { font-size: 13px; color: var(--ink-2); margin: 0; }

.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.color {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 14px; font-weight: 600;
}
.color i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.color.other i { background: conic-gradient(#c8102e, #e8b84a, #2f7d4a, #3b6fb6, #7a4bb3, #c8102e); }
.color[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field input, .field textarea, .other-input {
  width: 100%; border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 12px 14px; font-size: 16px;
}
.other-input:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }

/* Matriz de tallas */
.sizes { display: grid; gap: 6px; }
.size {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px;
}
.size.on { border-color: var(--ink); }
.size-name { font-family: var(--display); font-size: 22px; line-height: 1; }
.size-price { font-size: 12px; color: var(--ink-3); }
.step { display: flex; align-items: center; gap: 2px; }
.step button {
  width: 40px; height: 40px; border-radius: 10px; border: 0;
  background: var(--surface-2); font-size: 20px; font-weight: 600; line-height: 1;
}
.step input {
  width: 46px; height: 40px; text-align: center; border: 0; background: transparent;
  font-size: 17px; font-weight: 700; -moz-appearance: textfield;
}
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

details.guide { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
details.guide summary { padding: 12px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.table-wrap { overflow-x: auto; padding: 0 14px 14px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap th, .table-wrap td { padding: 7px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.table-wrap th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.table-wrap td:first-child { font-weight: 700; }
.table-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }

.note {
  font-size: 13px; color: var(--ink-2); background: var(--surface-2);
  border-radius: 12px; padding: 10px 12px; margin: 0;
}

/* ---------- Barra inferior ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
}
.bar-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar-info { flex: 1; min-width: 0; line-height: 1.25; }
.bar-info b { display: block; font-size: 17px; }
.bar-info span { font-size: 12px; color: var(--ink-2); }
.bar .btn { flex: none; }

/* ---------- Pedido ---------- */
.page-h { padding-top: 18px; }
.page-h h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 11vw, 60px); line-height: .95; }
.page-h p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.steps { display: flex; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.steps span { flex: 1; padding-top: 6px; border-top: 3px solid var(--line); }
.steps span.on { color: var(--ink); border-color: var(--ink); }

.tier {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px;
}
.tier-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.tier-top b { font-weight: 700; }
.tier-bar { margin-top: 10px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.tier-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s ease; }
.tier.done .tier-bar i { background: var(--ok); }
.tier.done .tier-top b { color: var(--ok); }

.lines { margin-top: 14px; display: grid; gap: 10px; }
.line {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px;
}
.line-img { width: 64px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-img .noimg strong { font-size: 13px; }
.line-img .noimg span { display: none; }
.line h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; }
.line-meta { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.line-meta i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.line-sizes { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ls {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 10px; padding: 2px;
}
.ls b { padding: 0 6px 0 8px; font-size: 13px; }
.ls button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: var(--surface-2); font-weight: 700; }
.ls .q { min-width: 24px; text-align: center; font-weight: 700; font-size: 14px; }
.line-foot { margin-top: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.line-foot .sub { font-size: 16px; font-weight: 700; }
.line-foot .calc { font-size: 12px; color: var(--ink-3); }

.totals {
  margin-top: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px; display: grid; gap: 6px; font-size: 14px;
}
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .save { color: var(--ok); font-weight: 600; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 20px; font-weight: 700; }

.empty { text-align: center; padding: 40px 10px; display: grid; gap: 12px; justify-items: center; }
.empty strong { font-family: var(--display); font-weight: 400; font-size: 34px; color: transparent; -webkit-text-stroke: 1px var(--ink-2); }
.empty p { margin: 0; color: var(--ink-2); }

/* ---------- Formulario ---------- */
.form { margin-top: 16px; display: grid; gap: 14px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-size: 13px; font-weight: 700; }
.field small { font-size: 12px; color: var(--ink-3); }
.field .err { color: var(--accent); font-size: 12px; font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px;
  padding: 12px; font-weight: 600; text-align: left; display: grid; gap: 2px;
}
.seg button span { font-size: 12px; color: var(--ink-2); font-weight: 400; }
.seg button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

/* ---------- Resumen ---------- */
.msg {
  margin-top: 16px; max-width: 640px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; white-space: pre-wrap; font-size: 13px; line-height: 1.55;
  font-family: var(--body);
}
.send { margin-top: 14px; display: grid; gap: 10px; max-width: 640px; }
.send-num { font-size: 13px; color: var(--ink-2); text-align: center; }
.send-num b { user-select: all; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--on-ink);
  padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); transition: .25s ease; z-index: 40; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Añadidos v2 ---------- */
.card h3 small {
  display: block; margin-top: 2px;
  font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0;
  color: var(--ink-3);
}
.about { margin-top: 28px; display: grid; gap: 10px; }
.about h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.about > p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 60ch; }
.contact { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 4px; }
.contact-item {
  display: grid; gap: 2px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 40px 12px 14px; position: relative;
}
.contact-item::after {
  content: "→"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--ink-3);
}
.contact-item b { font-size: 14px; }
.contact-item span { font-size: 12px; color: var(--ink-2); }
.cmp td { text-align: left !important; }
.cmp td.num, .cmp th { text-align: center !important; }
.cmp th:nth-child(3) { text-align: left !important; }
.cmp tr.cur td { background: var(--surface-2); font-weight: 600; }
.cmp td:nth-child(3) { min-width: 170px; font-size: 12px; }

/* ---------- Muestras de color ---------- */
.swatches {
  display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px;
}
.swatches::-webkit-scrollbar { display: none; }
.sw { flex: 0 0 66px; scroll-snap-align: center; }
@media (min-width: 860px) {
  .swatches { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
.block-h h2 #color-name { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink-2); }
.note-sm { margin: 0; font-size: 12px; color: var(--ink-3); }
.desc { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 60ch; }
.sw {
  display: grid; justify-items: center; gap: 5px; background: none; border: 0; padding: 4px 2px;
  border-radius: 12px; color: var(--ink-2);
}
.sw i {
  width: 40px; height: 40px; border-radius: 50%; display: block;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent);
  transition: transform .15s ease;
}
.sw span { font-size: 11px; line-height: 1.2; text-align: center; font-weight: 600; }
.sw[aria-checked="true"] { color: var(--ink); }
.sw[aria-checked="true"] i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); transform: scale(1.04); }
.card-colors { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink-3); }
.card-colors i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.card-colors i:last-of-type { margin-right: 4px; }
.gal-prev { position: relative; }
.gal-prev img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s ease; }
.gal-prev img.cargando { filter: grayscale(1) blur(2px); }
.prev-tag {
  position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 700;
  background: rgba(20,20,19,.72); color: #fff; padding: 5px 10px; border-radius: 999px;
}

/* ---------- Tallas agotadas ---------- */
.size-price .so { display: none; color: var(--accent); font-weight: 600; }
.size.off { background: var(--surface-2); border-style: dashed; }
.size.off .size-name { color: var(--ink-3); text-decoration: line-through; }
.size.off .sp { display: none; }
.size.off .so { display: inline; }
.size.off .step { opacity: .35; }
.sw-off i { position: relative; opacity: .55; }
.sw-off i::after {
  content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px;
  background: var(--accent); transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.sw-off span { text-decoration: line-through; }

/* ==========================================================================
   DISTRIMARCAS · identidad (sobrescribe la base)
   Negro carbón + oro del monograma DM. Bodoni Moda (títulos) + Jost (texto).
   ========================================================================== */
:root {
  --bg: #f5f1ea;
  --surface: #fffdf9;
  --surface-2: #ebe5da;
  --ink: #15130f;
  --ink-2: #57514a;
  --ink-3: #8c857b;
  --line: #ddd5c8;
  --accent: #a8742f;
  --accent-soft: #f3e6cf;
  --gold-1: #9a6229; --gold-2: #f2d491; --gold-3: #b98640;
  --night: #100e0b;
  --on-ink: #f5f1ea;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Futura", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0d0a; --surface: #1a1712; --surface-2: #24201a; --ink: #f2ece2; --ink-2: #bdb4a6; --ink-3: #857d70;
    --line: #342e25; --accent: #e2bb72; --accent-soft: #3a2e1a; --on-ink: #15130f;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0d0a; --surface: #1a1712; --surface-2: #24201a; --ink: #f2ece2; --ink-2: #bdb4a6; --ink-3: #857d70;
  --line: #342e25; --accent: #e2bb72; --accent-soft: #3a2e1a; --on-ink: #15130f;
}
body { font-size: 15.5px; letter-spacing: .005em; }

/* Encabezado oscuro con el logo blanco */
.top { background: color-mix(in srgb, var(--night) 94%, transparent); border-bottom-color: #2a251d; }
.top-back { color: #f5f1ea; }
.brand-logo { height: 34px; width: auto; display: block; }
.cart-btn { background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3)); color: #15130f; }
.cart-btn .count { background: #15130f; color: #f2d491; }

/* Portada */
.hero {
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(242, 212, 145, .16), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(154, 98, 41, .22), transparent 60%),
    var(--night);
  min-height: 0; color: #f5f1ea; align-items: stretch;
  border: 1px solid #2a251d;
}
.hero::after { display: none; }
.hero-in { display: grid; gap: 18px; padding: 26px 20px 22px; }
@media (min-width: 760px) { .hero-in { grid-template-columns: minmax(200px, 300px) 1fr; align-items: center; gap: 36px; padding: 36px; } }
.hero-logo { width: min(240px, 62%); height: auto; justify-self: start; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.hero-copy { display: grid; gap: 10px; }
.hero .eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #e2bb72; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 9vw, 58px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.hero p { margin: 0; max-width: 46ch; font-size: 15px; color: #d8d0c3; opacity: 1; }
.hero-tags span { background: transparent; border-color: rgba(226, 187, 114, .45); color: #f2e3c2; font-weight: 500; letter-spacing: .03em; }

.rule-n { font-family: var(--display); font-weight: 600; color: var(--accent); }
.chip { font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Tarjetas y títulos con la serif */
.card h3, .pd-head h1, .page-h h1, .about h2, .card-h h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.005em; }
.card h3 { font-size: 19px; line-height: 1.15; }
.card-badge { font-weight: 600; letter-spacing: .12em; font-size: 10px; }
.card-ejemplo {
  position: absolute; right: 8px; top: 8px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--night); color: #e2bb72; padding: 4px 8px; border-radius: 999px;
}
.noimg { background:
  repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--accent) 10%, transparent) 12px 13px), var(--surface-2); }
.noimg strong { font-family: var(--display); font-weight: 500; color: var(--ink-2); -webkit-text-stroke: 0; font-size: clamp(18px, 5vw, 26px); }
.empty strong { font-family: var(--display); color: var(--ink-2); -webkit-text-stroke: 0; }
.size-name { font-family: var(--display); font-weight: 600; }
.pd-head h1 { font-size: clamp(32px, 9vw, 48px); line-height: 1.02; }
.prices .hl b { color: var(--accent); }
.prices b.sm { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.ejemplo-note { border-left: 3px solid var(--accent); }

/* Botones principales en negro con texto dorado */
.btn { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { padding: 9px 12px; font-size: 13px; border-radius: 10px; }
.btn-wa.is-off { opacity: .4; pointer-events: none; }
.foot b { font-family: var(--display); font-weight: 600; letter-spacing: .04em; }

/* Fichas descargables */
.fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ficha { margin: 0; display: grid; gap: 8px; }
.ficha-img { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 1 / 1; }
.ficha-img img { width: 100%; height: 100%; object-fit: cover; }
.ficha .btn { width: 100%; }


/* ==========================================================================
   v3 · fotos del modelo en grande, buscador, galería con zoom
   ========================================================================== */
html.no-scroll { overflow: hidden; }
main { max-width: 1240px; }
.top-in, .bar-in { max-width: 1240px; }

/* Portada con mosaico de modelos */
.hero-in { grid-template-columns: 1fr; padding: 26px 20px; gap: 22px; }
.hero-copy { gap: 12px; align-content: center; }
.hero-logo { width: 132px; margin-bottom: 4px; }
.hero h1 { font-size: clamp(34px, 8.5vw, 64px); }
.hero-cta { justify-self: start; margin-top: 6px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3)); color: #15130f; }
.hero-mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.hero-mosaic img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 12%;
  border-radius: 12px; border: 1px solid rgba(226, 187, 114, .22);
}
.hero-mosaic .m3, .hero-mosaic .m4, .hero-mosaic .m5 { display: none; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.15fr); padding: 44px; gap: 44px; }
  .hero-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
  .hero-mosaic .m3, .hero-mosaic .m4, .hero-mosaic .m5 { display: block; }
  .hero-mosaic img:nth-child(3n+2) { transform: translateY(22px); }
}

/* Barra de herramientas: filtros + buscador */
.tools {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 57px); z-index: 10;
  margin: 18px calc(var(--gutter) * -1) 0; padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; gap: 8px; scroll-margin-top: 60px;
}
.tools .filters { position: static; margin: 0; padding: 0; background: none; }
.chip span { font-size: 12px; opacity: .6; margin-left: 2px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; color: var(--ink-3);
}
.search:focus-within { border-color: var(--ink); color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 16px; outline: none; }
@media (min-width: 760px) {
  .tools { grid-template-columns: 1fr minmax(260px, 360px); align-items: center; }
}

/* Tarjetas: el modelo en grande */
.grid { margin-top: 10px; gap: 22px 12px; }
@media (min-width: 720px) { .grid { gap: 34px 20px; } }
.card { text-decoration: none; color: inherit; gap: 10px; }
.card-img { aspect-ratio: 4 / 5; border-radius: 16px; box-shadow: 0 1px 0 var(--line); }
.card-img img { object-position: center 14%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.045); }
.card-img::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(16,14,11,.28)); pointer-events: none;
}
.card-badge { top: 10px; left: 10px; background: rgba(255,253,249,.92); }
.card-in {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  font-size: 11px; font-weight: 600; background: var(--night); color: #f2d491;
  padding: 5px 9px; border-radius: 999px;
}
.card-body { display: grid; gap: 6px; padding: 0 2px; }
.card h3 { display: grid; gap: 1px; font-size: 21px; line-height: 1.1; }
.card h3 .ref { font-family: var(--display); }
.card h3 small { margin: 0; font-family: var(--body); font-size: 12.5px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; }
.card-colors { gap: 4px; }
.card-colors i { width: 13px; height: 13px; }
.card-price { font-size: 13px; }
.card-price b { font-size: 14px; font-weight: 600; color: var(--accent); }
.grid > .empty { grid-column: 1 / -1; }

/* Cómo pedir */
.how { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 10px; counter-reset: paso; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li {
  counter-increment: paso; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 56px;
  display: grid; gap: 2px;
}
.how li::before {
  content: counter(paso); position: absolute; left: 14px; top: 12px;
  font-family: var(--display); font-size: 30px; line-height: 1; color: var(--accent);
}
.how b { font-size: 15px; }
.how span { font-size: 13px; color: var(--ink-2); }
.foot { justify-items: start; padding-top: 22px; border-top: 1px solid var(--line); }
.foot img { width: 64px; height: auto; margin-bottom: 4px; }

/* Ficha de producto */
.pd { padding-top: 16px; }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; } .pd-gal { top: 74px; } }
.gal {
  gap: 0; margin-inline: calc(var(--gutter) * -1); padding: 0;
  border-radius: 0; scroll-behavior: auto;
}
.gal > .gal-slide {
  flex: 0 0 100%; max-width: none; aspect-ratio: 4 / 5;
  border: 0; padding: 0; border-radius: 0; background: var(--surface-2);
  position: relative; cursor: zoom-in; scroll-snap-align: start;
}
.gal .gal-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.gal .gal-slide.fit { background: #fff; }
.gal .gal-slide.fit img { object-fit: contain; }
.gal-tag {
  position: absolute; left: 12px; bottom: 12px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(16,14,11,.72); color: #f2e3c2; padding: 5px 10px; border-radius: 999px;
}
@media (min-width: 600px) {
  .gal { margin: 0; border-radius: 18px; }
}
.gal-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gal-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .2s ease, background .2s ease; }
.gal-dots i.on { width: 20px; background: var(--ink); }
.gal-thumbs { display: none; }
@media (min-width: 900px) {
  .gal-dots { display: none; }
  .gal-thumbs { display: grid; grid-template-columns: repeat(3, 92px); gap: 10px; margin-top: 12px; }
  .gal-thumbs button {
    padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
    aspect-ratio: 4 / 5; opacity: .6; transition: opacity .2s ease, box-shadow .2s ease;
  }
  .gal-thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
  .gal-thumbs button[aria-selected="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
  .gal-thumbs button:hover { opacity: 1; }
}
.pd-head { display: grid; gap: 4px; }
.pd-head h1 { font-size: clamp(38px, 9vw, 60px); }
.pd-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; }
.pd-nav a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pd-nav a:hover { color: var(--ink); border-color: var(--ink); }

.fichas { display: block; }
.ficha-dl {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.ficha-dl:hover { border-color: var(--ink); }
.ficha-dl svg { flex: none; color: var(--accent); }
.ficha-dl span { display: grid; gap: 1px; }
.ficha-dl b { font-size: 14px; font-weight: 600; }
.ficha-dl small { font-size: 12px; color: var(--ink-3); }

/* Visor a pantalla completa */
.zoom {
  position: fixed; inset: 0; z-index: 60; background: rgba(10, 9, 7, .94);
  display: grid; place-items: center; padding: 56px 12px 56px;
}
.zoom-img { width: 100%; height: 100%; display: grid; place-items: center; }
.zoom-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.zoom-x, .zoom-nav {
  position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff;
  width: 44px; height: 44px; border-radius: 999px; font-size: 20px; line-height: 1;
}
.zoom-x { top: 10px; right: 12px; }
.zoom-nav { top: 50%; transform: translateY(-50%); font-size: 30px; }
.zoom-nav.prev { left: 10px; } .zoom-nav.next { right: 10px; }
.zoom-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #d8d0c3; font-size: 13px; }
.zoom-cap b { color: #fff; font-weight: 600; }

/* v3 · ajustes finos */
.card-badge { left: auto; right: 10px; }
.card-in { right: auto; left: 10px; }
@media (min-width: 900px) {
  .pd-gal { width: 100%; max-width: min(100%, calc((100vh - 210px) * .8)); }
}
@media (max-width: 759px) {
  .hero-logo { display: none; }
  .hero-in { padding: 22px 18px 20px; gap: 18px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .16em; }
  .hero-tags span:nth-child(n+3) { display: none; }
}
