/* Miguetex · catálogo de pedidos
   Paleta: concreto (fondo), tinta (texto y botones), rojo Chicago (acento),
   verde WhatsApp (solo para enviar). Tipos: Anton (display) + Sora (texto). */

: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; }
