:root {
  --paper: #ffffff;
  --ink: #000000;
  --muted: #5d5d5a;
  --tile: #f3f2ef;
  --line: #d8d7d2;
  --oak: #a9763f;
  --oak-ink: #ffffff;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000;
    --ink: #ffffff;
    --muted: #a4a4a0;
    --tile: #131313;
    --line: #2c2c2c;
    --oak: #d3a06a;
    --oak-ink: #000000;
  }
}
:root[data-theme="dark"] {
  --paper: #000000;
  --ink: #ffffff;
  --muted: #a4a4a0;
  --tile: #131313;
  --line: #2c2c2c;
  --oak: #d3a06a;
  --oak-ink: #000000;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: 1280px; margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  text-decoration: none;
  font-weight: 600; font-size: 26px; letter-spacing: .14em; line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand small { font-weight: 300; font-size: 12px; letter-spacing: .02em; margin-left: 10px; text-transform: uppercase; }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-size: 17px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--ink); }
.consult-btn {
  background: none; border: 1.5px solid var(--ink); padding: 8px 16px;
  display: inline-flex; gap: 10px; align-items: center; font-size: 16px;
  transition: background .2s, color .2s; border-radius: 5px;
}
.consult-btn:hover { background: var(--ink); color: var(--paper); }
.consult-btn .count {
  min-width: 24px; height: 24px; border-radius: 12px; padding: 0 6px;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600;
  display: inline-grid; place-items: center;
}
.consult-btn:hover .count { background: var(--paper); color: var(--ink); }
.consult-btn.bump .count { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Hero (composición del logo) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 62px);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: clamp(40px, 9vh, 110px) clamp(20px, 4vw, 48px) 0 clamp(20px, 4vw, 210px);
  max-width: 1200px; margin: 0 auto;
}
@media (max-width: 800px) { .hero { padding: clamp(30px, 4vh, 110px) clamp(20px, 4vw, 48px) 0 clamp(20px, 15vw, 210px); } }
.wordmark { display: inline-block; text-align: center; /* align-self: flex-start; */ } 
@media (max-width: 800px) { .wordmark {align-self: center; margin-bottom: 20px;} }
.wordmark .zehn {
  display: block; margin: 0;
  font-weight: 600; font-size: clamp(120px, 17.5vw, 250px);
  letter-spacing: .06em; line-height: .86; margin-right: -.06em;
}
.wordmark .muebles {
  display: block; margin-bottom: clamp(10px, 1.6vw, 24px);
  font-weight: 300; font-size: clamp(16px, 2.4vw, 34px);
  letter-spacing: .03em; text-transform: uppercase;
}
.hero-copy { max-width: 420px; padding: 40px 0 48px; position: relative; z-index: 2; }
.hero-copy p { margin: 0 0 24px; font-size: 21px; line-height: 1.45; }
.btn {
  display: inline-block; text-decoration: none; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); padding: 12px 24px; font-size: 17px; font-weight: 600;
  transition: background .2s, border-color .2s, color .2s; border-radius: 5px;
}
.btn:hover { background: var(--oak); border-color: var(--oak); color: var(--oak-ink); }
.btn.ghost { background: transparent; color: var(--ink); margin-left: 8px; }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.hero-cabinet {
  position: absolute; right: -90px; bottom: 8vh; z-index: 1;
  width: clamp(300px, 46vw, 700px); height: auto; display: block;
}
.hero-cabinet .draw {
  fill: none; stroke: var(--ink);
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.5s cubic-bezier(.6,.05,.25,1) forwards;
}
.hero-cabinet .d2 { animation-delay: .9s; animation-duration: 1s; }
.hero-cabinet .d3 { animation-delay: 1.5s; animation-duration: .5s; }
.hero-cabinet .d4 { animation-delay: 1.75s; animation-duration: .5s; }

/* ---------- Separadores ---------- */
.band { background: var(--ink); width: 100%; }
.band.strip { height: clamp(48px, 8vw, 110px); }
.catalog-intro {
  background: var(--ink); color: var(--paper);
  padding: clamp(72px, 11vw, 150px) 0 clamp(64px, 9vw, 120px);
}
.catalog-intro .lead { color: color-mix(in srgb, var(--paper) 68%, var(--ink)); }
.catalog { padding-top: clamp(40px, 6vw, 72px); }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
  .hero { padding-left: clamp(20px, 6vw, 60px); }
  .hero-cabinet { position: relative; align-self: flex-end; width: min(80vw, 480px); bottom: auto; margin: 0 calc(-1 * clamp(20px, 4vw, 48px)) 6vh 0; }
  .hero-copy { padding-bottom: 32px; }
}

/* ---------- Secciones ---------- */
section { padding: clamp(64px, 5vw, 128px) 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
h2 { font-weight: 300; font-size: clamp(34px, 5vw, 60px); line-height: 1.08; margin: 0 0 12px; letter-spacing: -.005em; max-width: 18ch; }
.lead { color: var(--muted); max-width: 52ch; margin: 0; }

/* ---------- Catálogo ---------- */
.catalog-head { margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.filters button {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 0; font-size: 18px; color: var(--muted);
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); font-weight: 600; }

.grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  /* background: var(--line); border: 1px solid var(--line); */
}

/* ---------- Tarjeta de producto: info superpuesta sobre la imagen ---------- */
.item { background: var(--paper); display: flex; flex-direction: column; position: relative; }
.item .art {
  background: var(--tile); aspect-ratio: 4 / 3;
  display: grid; place-items: center; transition: background .25s;
  overflow: hidden; border-radius: 10px;
  height: 400px;
  position: relative;
  cursor: pointer;
  text-decoration: none; color: inherit;
}
.item .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item:hover .art { background: color-mix(in srgb, var(--oak) 22%, var(--tile)); }
.item .info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px 18px;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border-radius: 0 0 10px 10px;
}
.item h3 { margin: 0; font-size: 21px; font-weight: 400; line-height: 1.2; }
.item .dims { color: rgba(255, 255, 255, 0.8); font-size: 16px; }
.item .row { margin-top: auto; padding-top: 0px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-size: 22px; font-weight: 300; }
.add {
  border: 1.5px solid rgba(255, 255, 255, 0.6); background: none; color: #ffffff; padding: 7px 14px; font-size: 16px;
  transition: background .2s, color .2s, border-color .2s; border-radius: 5px;
}
.add:hover { background: #ffffff; color: #000000; }
.add.done { background: var(--oak); border-color: var(--oak); color: var(--oak-ink); }

/* ---------- Nosotros ---------- */
.about { background: var(--ink); color: var(--paper); }
.about .lead { color: color-mix(in srgb, var(--paper) 68%, var(--ink)); }
.about .cols { display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: 1fr 1fr; align-items: start; }
.about dl { margin: 0; border-top: 1px solid var(--paper); }
.about dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 30%, var(--ink)); }
.about dt { font-weight: 600; }
.about dd { margin: 0; color: color-mix(in srgb, var(--paper) 68%, var(--ink)); }
@media (max-width: 800px) { .about .cols { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact .cols { display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: 1fr 1fr; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
input, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink); padding: 10px 0; border-radius: 0; width: 100%;
}
textarea { resize: vertical; min-height: 110px; border: 1.5px solid var(--ink); padding: 10px 12px; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; }
.note { color: var(--muted); font-size: 15px; margin: 0; }
.contact ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.contact li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8em 1fr; gap: 12px; }
.contact li span:first-child { font-weight: 600; }
@media (max-width: 800px) { .contact .cols { grid-template-columns: 1fr; } }

/* .contact li.link-row { padding: 0; } */
.contact li.link-row { display: block; padding: 0; }
.contact-link {
  display: grid; grid-template-columns: 8em 1fr; gap: 12px;
  padding: 16px 0; text-decoration: none; color: inherit;
  transition: color .2s;
}
.contact-link:hover { color: var(--oak); }
.contact-link span:first-child { font-weight: 600; }

/* ---------- Página de detalle de producto ---------- */
.back-link {
  display: inline-block; text-decoration: none; color: var(--muted);
  font-size: 16px; margin-bottom: 28px;
  border: 1px solid black; border-radius: 10px; padding: 10px;
}
.back-link:hover { color: var(--ink); }

.pgrid {
  display: grid; gap: clamp(32px, 6vw, 72px);
  grid-template-columns: 1.1fr 1fr; align-items: start;
}
@media (max-width: 860px) { .pgrid { grid-template-columns: 1fr; } }

.gallery-main {
  position: relative;
  background: var(--tile); border-radius: 10px; overflow: hidden;
  aspect-ratio: 4 / 3;
  touch-action: pan-y;
}
.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.gallery-track .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.gallery-track img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 24px; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
  z-index: 2;
}
.slide-arrow:hover { background: rgba(0, 0, 0, 0.55); }
.slide-arrow.prev { left: 12px; }
.slide-arrow.next { right: 12px; }

.slide-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px;
  z-index: 2;
}
.slide-dots .dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, 0.55); transition: background .2s, transform .2s;
}
.slide-dots .dot:hover { background: rgba(255, 255, 255, 0.85); }
.slide-dots .dot.active { background: #fff; transform: scale(1.2); }

.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 76px; height: 76px; padding: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: var(--tile);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active, .thumb:hover { border-color: var(--oak); }

.pdetails { padding-top: 4px; }
.pcat { color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.pdetails h1 { font-weight: 300; font-size: clamp(30px, 4vw, 46px); margin: 6px 0 4px; line-height: 1.1; }
.pdims { color: var(--muted); font-size: 17px; }
.pdesc { color: var(--ink); max-width: 52ch; margin: 20px 0 0; }
.pprice { font-size: 30px; font-weight: 300; margin: 24px 0 20px; }
.pactions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pactions .btn { padding: 13px 26px; }
.pactions .note, #pAddedNote { color: var(--oak); font-weight: 600; }
.pfacts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.pfacts > div { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pfacts dt { font-weight: 600; }
.pfacts dd { margin: 0; color: var(--muted); }

.pnotfound { padding: 40px 0; }
.pnotfound h1 { font-weight: 300; font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }

.related { border-top: 1px solid var(--line); padding-top: clamp(48px, 8vw, 96px); }
.related h2 { font-weight: 300; font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 24px; }
.related .item .art { height: 300px; }

footer { border-top: 1px solid var(--line); padding: 32px 0 44px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: baseline; color: var(--muted); font-size: 15px; }
footer .brand { color: var(--ink); font-size: 22px; }

/* ---------- Consulta (drawer) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 30; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 31;
  background: var(--paper); border-left: 1.5px solid var(--ink);
  transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; visibility: visible; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer h2 { font-size: 26px; font-weight: 600; margin: 0; max-width: none; }
.close { background: none; border: 0; font-size: 34px; line-height: 1; padding: 0 4px; }
.list { flex: 1; overflow: auto; padding: 8px 24px; }
.empty { color: var(--muted); padding: 24px 0; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .name { font-weight: 600; }
.line .sub { color: var(--muted); font-size: 15px; }
.line .amt { text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); margin-top: 6px; }
.qty button { background: none; border: 0; width: 34px; height: 34px; font-size: 20px; }
.qty button:hover { background: var(--ink); color: var(--paper); }
.qty span { min-width: 30px; text-align: center; }
.remove { background: none; border: 0; text-decoration: underline; font-size: 15px; color: var(--muted); margin-top: 6px; padding: 0; justify-self: end; align-self: end; }
.drawer footer { border-top: 1.5px solid var(--ink); padding: 20px 24px 24px; display: grid; gap: 14px; }
.total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 600; }
.drawer .btn { text-align: center; border: 1.5px solid var(--ink); width: 100%; }
.drawer .btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }

@media (max-width: 640px) {
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .site-header .bar { flex-wrap: wrap; gap: 10px 16px; padding-bottom: 8px; }
  .nav a { font-size: 16px; }
  .brand small { display: none; }
  .btn.ghost { margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cabinet .draw { animation: none; stroke-dashoffset: 0; }
  .drawer, .scrim, .item .art { transition: none; }
  .consult-btn.bump .count { animation: none; }
  .gallery-track { transition: none; }
}




.wa-float {
  position: fixed; right: 50px; bottom: 110px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  text-decoration: none;
  opacity: 0; transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 40;
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 40px; height: 40px; }
@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
}
@media (max-width: 860px) {
  .wa-float { right: 20px; bottom: 60px; }
}



