/* Jewelry Mom — estilos de la maqueta. Primero móvil. */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f2ea;
  --bg-alt: #efe7da;
  /* Placas de las fotos: las imágenes tienen fondo blanco y se funden con ellas (mix-blend-mode: multiply). */
  --plate: #f0e9de;
  --plate-line: #e2d9ca;
  --ink: #1f1a17;
  --muted: #5f554b;
  --line: #dcd2c2;
  --accent: #86621f;
  --accent-soft: #c9a45c;
  /* Color de marca: vino. */
  --wine: #5c1f2c;
  --wine-ink: #f7efe6;
  --wine-muted: #dcc3bf;
  --band-bg: #1f1a17;
  --band-ink: #f3ece0;
  --band-muted: #bfb3a2;
  /* Tonos de las placas por categoría y del bodegón de portada (siempre claros: las fotos los necesitan). */
  --hero: #f1e5d4;
  --tono-champan: #f2e6d3;
  --tono-arena: #ece2d6;
  --tono-rubor: #f3e2dc;
  --tono-salvia: #e4e8dc;
  --tono-malva: #e9e3ea;
  --focus: #86621f;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --max: 1320px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15110f;
    --bg-alt: #1f1916;
    --plate: #ebe4d8;
    --plate-line: #d8cfc0;
    --ink: #f0e8dc;
    --muted: #b6ab9b;
    --line: #3a322b;
    --accent: #dcb86e;
    --accent-soft: #c9a45c;
    --wine: #4a1824;
    --band-bg: #ede5d8;
    --band-ink: #1f1a17;
    --band-muted: #5f554b;
    --focus: #dcb86e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15110f;
  --bg-alt: #1f1916;
  --plate: #ebe4d8;
  --plate-line: #d8cfc0;
  --ink: #f0e8dc;
  --muted: #b6ab9b;
  --line: #3a322b;
  --accent: #dcb86e;
  --accent-soft: #c9a45c;
  --wine: #4a1824;
  --band-bg: #ede5d8;
  --band-ink: #1f1a17;
  --band-muted: #5f554b;
  --focus: #dcb86e;
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
/* El atributo hidden siempre gana a cualquier display de componente. */
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Aviso de vista previa (franja de marca) ---------- */
.preview-note {
  background: var(--wine);
  color: var(--wine-ink);
  font-size: 12px;
  letter-spacing: .06em;
  text-align: center;
  padding: 7px var(--gutter);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 60px;
  gap: 8px;
}
.menu-btn { justify-self: start; margin-left: -10px; }
/* Logo: raster con transparencia (símbolo de cinta + nombre). Alto fijo; el ancho sale de la proporción. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.brand img { display: block; width: auto; flex: none; }
.brand-sym { height: 30px; }
.brand-name { height: 25px; margin-top: 3px; }
.nav { display: none; }
.tools { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-right: -10px; }
.tools .desk { display: none; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  border-radius: var(--radius);
  text-decoration: none;
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn.round { border: 1px solid var(--line); border-radius: 999px; }
.icon-btn.round:hover { border-color: var(--ink); background: transparent; }
/* Por debajo de 340 px solo cabe el nombre con holgura entre el menú y la lupa. */
@media (max-width: 339px) {
  .brand .brand-sym { display: none; }
  .brand .brand-name { height: 23px; margin-top: 0; }
}
@media (min-width: 1180px) {
  .bar { grid-template-columns: auto 1fr auto; min-height: 72px; gap: 24px; }
  .brand { gap: 7px; }
  .brand-sym { height: 34px; }
  .brand-name { height: 27px; }
  .menu-btn { display: none; }
  .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px clamp(14px, 1.4vw, 22px);
  }
  .nav a {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 0 12px;
    border-bottom: 1px solid transparent;
  }
  .nav a:hover { border-bottom-color: currentColor; }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .tools .desk { display: inline-grid; }
}

/* ---------- Menú lateral (móvil y tableta) ---------- */
.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(88vw, 380px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0 0 calc(16px + env(safe-area-inset-bottom));
  border: 0;
  background: var(--bg);
  color: var(--ink);
  flex-direction: column;
  overflow-y: auto;
}
.drawer[open] { display: flex; animation: drawer-in .26s var(--ease); }
.drawer::backdrop { background: rgba(20, 17, 14, .45); animation: fade-in .26s var(--ease); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) 8px 8px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-brand { display: inline-flex; align-items: center; }
.drawer-logo { display: block; height: 25px; width: auto; }
.drawer-nav { display: grid; padding: 8px 20px; }
.drawer-nav a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 52px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  text-decoration: none;
}
.drawer-nav a .n { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.drawer-nav a.minor { font-family: var(--sans); font-size: 15px; min-height: 48px; align-items: center; }
.drawer-nav a:hover span:first-child { color: var(--accent); }
.drawer-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 20px 12px; }
.drawer-tools .btn { min-height: 44px; padding: 0 10px; gap: 8px; font-size: 14px; letter-spacing: .02em; text-transform: none; }
.drawer-tools .btn svg { width: 18px; height: 18px; }
.drawer > .btn--wa { margin: 4px 20px 0; width: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--wine); border-color: var(--wine); color: var(--wine-ink); }
.btn:active { transform: scale(.985); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--wa { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 12.5px; }
.btn--wa.btn--sm { width: auto; flex: none; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0;
  border-bottom: 1px solid currentColor;
}

/* ---------- Tipografía editorial ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.section { padding: 64px 0; }
.section--flush { padding-top: 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } .section--flush { padding-top: 0; } }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 26px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 68px);
  line-height: .98;
  letter-spacing: -.015em;
}

/* ---------- Placa de producto (fotografía) ---------- */
/* La pieza se ve completa (contain) y el blanco de la foto se funde con la placa. */
.plate {
  position: relative;
  background: var(--plate);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
  mix-blend-mode: multiply;
  transition: transform .5s var(--ease);
}

/* ---------- Portada: imagen de marca ---------- */
/* La imagen ya lleva el nombre y el lema: se muestra completa, sin recortar, en móvil y en escritorio.
   El texto y «Ver colección» son HTML y van debajo. */
.hero { background: var(--hero); color: #1f1a17; }
.hero-wrap { max-width: var(--max); margin: 0 auto; }
.hero-figure { margin: 0; }
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  background: #efe3d2;
}
.hero-note { padding: 8px var(--gutter) 0; font-size: 12.5px; line-height: 1.4; color: #62574b; }
.hero-copy {
  display: grid;
  gap: 16px;
  padding: 14px var(--gutter) 30px;
}
.hero-copy .eyebrow { color: #7a5719; }
.hero-lede { max-width: 38ch; font-size: 16.5px; color: #4d443b; margin-top: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.hero .btn { background: #1f1a17; border-color: #1f1a17; color: #f7f2ea; }
.hero .btn:hover { background: #5c1f2c; border-color: #5c1f2c; }
.hero .link-arrow { color: #1f1a17; }
.hero :focus-visible { outline-color: #86621f; }
@media (min-width: 768px) {
  /* Ancho de la imagen: el máximo que deja ver también el botón en la primera pantalla. */
  .hero { --hero-w: min(100%, max(640px, calc((100svh - 290px) * 1.7768))); }
  .hero-wrap { padding: 22px var(--gutter) 0; }
  .hero-figure, .hero-copy { width: var(--hero-w); margin-inline: auto; }
  .hero-img { border-radius: var(--radius); }
  .hero-note { padding: 8px 0 0; text-align: center; }
  .hero-copy {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 40px;
    padding: 16px 0 34px;
  }
  .hero-lede { font-size: 17px; }
}

/* ---------- Ventajas confirmadas ---------- */
.perks { border-bottom: 1px solid var(--line); }
.perks-list {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.perks-list li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.perks-list svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 1px; }
.perks-list strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.perks-list span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
@media (min-width: 900px) {
  .perks-list { grid-template-columns: repeat(4, 1fr); padding-top: 28px; padding-bottom: 28px; }
}

/* ---------- Categorías: placas de color ---------- */
.section--cats { padding-top: 48px; }
.cat-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cat-tiles li { min-width: 0; }
.ctile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  color: #1f1a17;
  text-decoration: none;
  background: var(--tono-champan);
}
.ctile img {
  position: absolute;
  inset: 4% 6% 24%;
  width: 88%;
  height: 72%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .5s var(--ease);
}
.ctile-txt { position: absolute; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 2px; }
.ctile .cat-name { font-family: var(--serif); font-size: 24px; line-height: 1.05; }
.ctile .cat-count { font-size: 12.5px; letter-spacing: .04em; color: #4d443b; }
.ctile:hover img { transform: scale(1.04); }
.ctile:focus-visible { outline-offset: -4px; outline-color: #86621f; }
.tono-champan { background: var(--tono-champan); }
.tono-arena { background: var(--tono-arena); }
.tono-rubor { background: var(--tono-rubor); }
.tono-salvia { background: var(--tono-salvia); }
.tono-malva { background: var(--tono-malva); }
.ctile--all { background: #5c1f2c; color: #f7efe6; }
.ctile--all .cat-count { color: #dcc3bf; }
.ctile--all svg { position: absolute; right: 14px; top: 14px; width: 26px; height: 26px; transition: transform .2s var(--ease); }
.ctile--all:hover svg { transform: translateX(4px); }
.ctile--all:focus-visible { outline-color: #c9a45c; }
@media (min-width: 900px) {
  .section--cats { padding-top: 72px; }
  .cat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .ctile { aspect-ratio: 3 / 4; }
  .ctile .cat-name { font-size: 26px; }
}

/* ---------- Selección: fila desplazable ---------- */
.rail-nav { display: flex; align-items: center; gap: 8px; }
.rail-nav .icon-btn { display: none; }
@media (min-width: 900px) { .rail-nav .icon-btn { display: inline-grid; } .rail-nav .link-arrow { margin-left: 14px; } }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 44%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 6px;
  scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail .tile { scroll-snap-align: start; }
@media (min-width: 900px) {
  .rail {
    grid-auto-columns: calc((min(100vw, var(--max)) - 2 * var(--gutter) - 3 * 20px) / 4);
    gap: 20px;
    padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  }
}

/* ---------- Tarjeta de pieza ---------- */
.tile { position: relative; min-width: 0; }
.tile a.tile-link { text-decoration: none; display: block; }
.tile a.tile-link:hover img { transform: scale(1.04); }
.tile a.tile-link:hover .tile-name { text-decoration: underline; text-underline-offset: 3px; }
.tile-meta { padding-top: 10px; min-width: 0; }
.tile-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile-sub { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; }
.tile-price { font-size: 15px; font-weight: 600; white-space: nowrap; }
.tile-ref { font-size: 11.5px; letter-spacing: .1em; color: var(--muted); }
.badge-sel {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f7f2ea;
  color: #5c1f2c;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- Banda: cómo comprar ---------- */
.band {
  background: var(--band-bg);
  color: var(--band-ink);
}
.band .eyebrow { color: var(--accent-soft); }
.band .muted { color: var(--band-muted); }
.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: paso;
}
.steps li {
  counter-increment: paso;
  border-top: 1px solid color-mix(in srgb, var(--band-ink) 25%, transparent);
  padding-top: 18px;
  display: grid;
  gap: 8px;
}
.steps li::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--accent-soft);
}
.steps h3 { font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.steps p { color: var(--band-muted); max-width: 34ch; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band .eyebrow, :root:not([data-theme="light"]) .steps li::before { color: #7d5c1e; } }
:root[data-theme="dark"] .band .eyebrow, :root[data-theme="dark"] .steps li::before { color: #7d5c1e; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  gap: 28px;
  align-items: end;
}
.contact-p { color: var(--muted); max-width: 40ch; font-size: 18px; margin-top: 16px; }
.contact-actions { max-width: 420px; }
@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr auto; }
}

/* ---------- Pie ---------- */
.site-footer {
  background: var(--wine);
  color: var(--wine-ink);
  padding: 48px 0 32px;
  font-size: 14px;
}
.foot-grid { display: grid; gap: 32px; }
.brand .foot-logo { width: 200px; height: auto; }
.foot-brand p { margin-top: 10px; color: var(--wine-muted); max-width: 34ch; }
.foot-col { display: grid; align-content: start; }
.foot-col h2 { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--wine-muted); margin-bottom: 4px; }
.foot-col a { text-decoration: none; padding: 9px 0; }
.foot-col a:hover { text-decoration: underline; }
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--wine-ink) 22%, transparent);
  color: var(--wine-muted);
  font-size: 13px;
}
.site-footer :focus-visible { outline-color: #c9a45c; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
body:has(.fab) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* Botón flotante de WhatsApp (portada y catálogo; la ficha tiene su barra) */
.fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--wine-ink);
  box-shadow: 0 6px 18px rgba(31, 26, 23, .22);
  /* Aparece al desplazarse, para no tapar la primera pantalla. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
}
.fab.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.fab svg { width: 26px; height: 26px; }
.fab.is-on:hover { transform: translateY(-2px); }
.fab:focus-visible { outline-offset: 4px; }

/* ---------- Catálogo ---------- */
.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 14px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(40px, 10.5vw, 80px);
  line-height: 1;
  letter-spacing: -.015em;
  min-width: 0;
}
.count { font-size: 14px; color: var(--muted); white-space: nowrap; }

.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.search { position: relative; min-width: 0; }
.field-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.search input, .select select, .link-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0 14px;
  font-size: 16px;
}
.search input { padding-left: 44px; }
.search svg {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}
.search input:focus, .select select:focus, .link-box input:focus { border-color: var(--ink); }
.filters-btn {
  position: relative;
  min-height: 48px;
  padding: 0 16px;
  gap: 8px;
  font-size: 12.5px;
  border-color: var(--line);
}
.filters-btn:hover { border-color: var(--ink); }
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
}
@media (max-width: 479px) {
  .filters-btn { width: 48px; padding: 0; }
  .filters-btn [data-t] {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .filters-btn .badge { position: absolute; top: -7px; right: -7px; }
}
.chips {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 44px 3px 3px;
  margin: 0 -3px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { opacity: .7; margin-left: 5px; font-size: 12.5px; }
.selects { display: none; }
.select { display: grid; gap: 6px; min-width: 0; }
.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
@media (min-width: 900px) {
  .page-head { padding: 28px 0 20px; }
  .filters {
    grid-template-columns: minmax(240px, 1fr) auto;
    grid-template-areas: "search selects" "chips chips";
    align-items: end;
    gap: 14px 24px;
    padding-bottom: 16px;
  }
  .search { grid-area: search; max-width: 420px; }
  .filters-btn { display: none; }
  .selects { display: grid; grid-area: selects; grid-template-columns: 200px 230px; gap: 12px; }
  .chips { grid-area: chips; flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-right: 3px; }
}
.results-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 0 18px;
  font-size: 14px;
  color: var(--muted);
  min-height: 12px;
}
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 14px;
  cursor: pointer;
}
.pill:hover { border-color: var(--ink); }
.pill svg { width: 16px; height: 16px; }
.text-btn {
  border: 0;
  background: none;
  min-height: 44px;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
  padding-bottom: 80px;
}
.grid .tile { animation: tile-in .32s var(--ease) both; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.empty {
  padding: 32px 0 96px;
  display: grid;
  gap: 12px;
  justify-items: start;
}
.empty-title { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.empty .btn { margin-top: 8px; }

/* Panel de filtros secundarios (móvil) */
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  max-height: 88dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: var(--bg);
  color: var(--ink);
  flex-direction: column;
}
.sheet[open] { display: flex; animation: sheet-in .26s var(--ease); }
.sheet::backdrop { background: rgba(20, 17, 14, .45); animation: fade-in .26s var(--ease); }
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px 6px 20px;
}
.sheet-head h2 { font-family: var(--serif); font-size: 28px; line-height: 1; }
.sheet-body { overflow: auto; padding: 0 20px 8px; }
.sheet fieldset { border: 0; margin: 0; padding: 14px 0 16px; border-top: 1px solid var(--line); min-width: 0; }
.sheet legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
}
.opt input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.sheet-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.sheet-foot .btn { padding: 0 16px; }

/* ---------- Ficha de producto ---------- */
.pnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 6px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.back svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.back:hover svg { transform: translateX(-3px); }
.crumbs { display: none; font-size: 13.5px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (min-width: 720px) { .crumbs { display: block; } }
.product {
  display: grid;
  gap: 22px;
  padding-bottom: 64px;
}
.gallery { display: grid; gap: 10px; min-width: 0; }
.zoom-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.plate--lg img { padding: 7%; }
.zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(31, 26, 23, .82);
  color: #f7f2ea;
  font-size: 12.5px;
  border-radius: 999px;
}
.zoom-hint svg { width: 16px; height: 16px; }
.thumbs { display: flex; gap: 10px; }
.thumb {
  width: 76px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
}
.thumb .plate { display: block; }
.thumb[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.info { display: grid; gap: 18px; align-content: start; min-width: 0; }
.info .eyebrow .sep { margin: 0 4px; }
.info .eyebrow .ref-inline { color: var(--muted); }
.info h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 9vw, 60px);
  line-height: 1;
  letter-spacing: -.015em;
}
.price-line { display: flex; align-items: baseline; gap: 10px; }
.price { font-size: 28px; font-weight: 500; letter-spacing: -.01em; }
.price-cur { font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.price-note { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.desc { font-size: 17px; max-width: 46ch; }
.actions { display: grid; gap: 12px; }
.actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions .btn--ghost { padding: 0 10px; gap: 8px; font-size: 14px; letter-spacing: .02em; text-transform: none; }
.status {
  min-height: 1.5em;
  font-size: 14px;
  color: var(--muted);
}
.link-box { display: grid; gap: 6px; }
.link-box label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.wa-preview {
  border: 1px dashed var(--line);
  padding: 14px 16px;
  font-size: 14px;
  display: grid;
  gap: 8px;
  background: var(--bg-alt);
}
.wa-preview pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  color: var(--ink);
}
.trust {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.trust li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.trust svg { width: 22px; height: 22px; color: var(--accent); }
.accs { display: grid; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s var(--ease);
}
.acc[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.acc > :not(summary) { margin-bottom: 16px; }
.how-note { font-size: 15px; color: var(--muted); max-width: 46ch; }
.specs { margin: 0 0 12px; }
.specs div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
@media (min-width: 900px) {
  .pnav { padding: 14px 0 10px; }
  .product {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: start;
  }
  .info { position: sticky; top: 96px; }
  .actions .btn--wa { min-height: 58px; }
}
.related { border-top: 1px solid var(--line); }
.related-title { font-size: clamp(34px, 6vw, 56px); margin-bottom: 28px; }

/* Barra inferior de compra (móvil). No tapa contenido: el cuerpo reserva su altura y la zona segura. */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .24s var(--ease), visibility 0s linear .24s;
}
.buybar.is-on { transform: none; visibility: visible; transition: transform .24s var(--ease); }
.buybar-in { display: flex; align-items: center; gap: 12px; max-width: var(--max); margin: 0 auto; }
.buybar-txt { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.buybar-name { font-family: var(--serif); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buybar-price { font-size: 15px; font-weight: 600; }
.buybar-price small { font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
body.has-buybar { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .buybar { display: none; }
  body.has-buybar { padding-bottom: 0; }
}

/* ---------- Visor ampliado ---------- */
.viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #1f1a17;
}
.viewer[open] { animation: fade-in .2s var(--ease); }
.viewer::backdrop { background: rgba(20, 17, 14, .9); }
.viewer-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 8px 8px 16px;
  background: rgba(255, 255, 255, .92);
  font-size: 14px;
}
.viewer-bar .group { display: flex; gap: 4px; }
.viewer .icon-btn { color: #1f1a17; }
.viewer .icon-btn:hover { background: #efe7da; }
.viewer .icon-btn[disabled] { opacity: .35; cursor: default; }
.viewer :focus-visible { outline-color: #86621f; }
.viewer-stage {
  position: absolute;
  inset: calc(60px + env(safe-area-inset-top)) 0 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  place-items: center;
}
.viewer-stage img {
  width: min(100%, calc(100dvh - 60px));
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}
.viewer.is-zoomed .viewer-stage { place-items: start; }
.viewer.is-zoomed .viewer-stage img {
  width: max(200%, 1200px);
  max-width: none;
  cursor: zoom-out;
}

/* ---------- Movimiento discreto ---------- */
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes drawer-in { from { transform: translateX(-100%); } }
@keyframes tile-in { from { opacity: 0; transform: translateY(6px); } }
.motion .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.motion .reveal.is-in { opacity: 1; transform: none; }
/* Transición corta entre páginas donde el navegador la admite (Chromium, Safari 18.2+). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
  .site-header { view-transition-name: cabecera; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .motion .reveal { opacity: 1; transform: none; }
}

.notfound { padding: 64px 0 120px; display: grid; gap: 20px; justify-items: start; }
.notfound h1 { font-family: var(--serif); font-size: clamp(44px, 9vw, 80px); line-height: 1; }
