/* =============================================================
   Maderas Pablo García — styles.css
   1. Tokens · 2. Reset · 3. Utilities · 4. Typography
   5. Components · 6. Sections · 7. Effects · 8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --yellow:   #F0B323;   /* amarillo de la tarjeta */
  --yellow-2: #DB9C0C;
  --yellow-3: #FBE7A8;
  --ink:      #17140F;   /* negro cálido, nunca #000 */
  --ink-2:    #2A251E;
  --ink-3:    #4A4237;
  --paper:    #F7F2E8;
  --paper-2:  #EDE4D3;
  --white:    #FFFDF8;
  --mute:     #6B6155;
  --wood:     #B07A45;
  --core:     #C9A97A;   /* color del aglomerado en el canto */
  --line:     rgba(23, 20, 15, .14);
  --line-2:   rgba(23, 20, 15, .28);
  --line-light: rgba(247, 242, 232, .16);
  --ok:       #2F6B3A;
  --err:      #B3261E;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1320px;
  --radius: 4px;
  --radius-sm: 2px;
  --shadow: 0 1px 2px rgba(23,20,15,.06), 0 12px 32px -12px rgba(23,20,15,.22);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.02; letter-spacing: -0.02em; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--yellow);
  border-radius: 8px; font-weight: 600;
}
.skip-link:not(:focus) { clip-path: inset(50%); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker, .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow { margin-bottom: 18px; }
.eyebrow-light { color: var(--yellow); }

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 84px);
  letter-spacing: -0.025em;
}
.section-title em, .hero-title em {
  font-style: italic;
  font-weight: 500;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -0.03em;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-3);
  max-width: 58ch;
  margin-top: 20px;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 2px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--bg);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(23,20,15,.45); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { --bg: var(--ink); --fg: var(--paper); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .4s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(5px); }
.link-arrow-mute { color: var(--ink-3); border-bottom-color: var(--line-2); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--mono); font-size: 12px;
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 2px;
}

.chip {
  padding: 8px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 2px;
  font-size: 14px; font-weight: 500;
  transition: background-color .25s, border-color .25s, color .25s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--yellow); }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: var(--paper-2); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar-phones { display: flex; gap: 20px; }
.topbar a:hover { color: var(--yellow); }
.topbar-addr, .tb-l, .tb-hide-m { display: none; }
.topbar-phones { width: 100%; justify-content: space-between; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--yellow);
  transition: background-color .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.nav.is-solid { background: rgba(247, 242, 232, .97); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { background: rgba(247, 242, 232, .86); backdrop-filter: saturate(1.4) blur(12px); }
}
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nav-logo { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.nav-logo img { width: 150px; }
.nav-logo-sub {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.nav-links { display: none; }
.nav-links a { position: relative; font-weight: 500; font-size: 15px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links-cta { display: none; }
.nav-cta { display: none; }

.nav-burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .4s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Menú móvil */
.nav-links.is-open {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 16px var(--gutter) 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(23,20,15,.3);
  animation: menuIn .45s var(--ease-out);
}
.nav-links.is-open a {
  font-family: var(--display); font-weight: 600;
  font-size: 30px; padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.nav-links.is-open a::after { display: none; }
.nav-links.is-open .nav-links-cta { display: block; color: var(--wood); border-bottom: 0; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--yellow);
  padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px);
  overflow: clip;
}
.hero::before {
  /* veta de madera muy sutil sobre el amarillo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-radial-gradient(ellipse at 120% 140%, transparent 0 22px, rgba(23,20,15,.035) 23px 24px);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(23,20,15,.12); }
.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(46px, 6.9vw, 104px);
  line-height: .9;
  letter-spacing: -0.03em;
  margin: 22px 0 26px;
}
.hero-title em { display: inline-block; font-size: .62em; line-height: 1; margin-top: .08em; color: var(--ink-2); }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); max-width: 44ch; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px;
  font-family: var(--mono); font-size: 13px;
}
.hero-facts li { display: flex; gap: 6px; align-items: center; }
.hero-facts li::before { content: "■"; font-size: 8px; }
.hero-facts strong { font-weight: 500; }

/* Pila de tableros 3D */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 340px; padding-top: 60px; perspective: 1400px; }
.stack {
  --rx: 56deg; --rz: -38deg; --gap: 26px;
  position: relative;
  width: min(64vw, 420px); aspect-ratio: 3 / 2;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateZ(var(--rz));
  transition: transform .9s var(--ease-out);
}
.board {
  --t: 16px;                       /* grosor visual del tablero */
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * var(--gap)));
  background: var(--tex) center / cover, #E9E2D3;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(23,20,15,.08);
}
.board-white { background: linear-gradient(135deg, #FBFAF6, #ECE8DF); }
/* cantos: frontal y lateral, con el núcleo de aglomerado visible */
.board::before, .board::after {
  content: ""; position: absolute;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.6) 0 2px, transparent 2px calc(100% - 2px), rgba(23,20,15,.25) calc(100% - 2px)),
    radial-gradient(circle at 30% 40%, rgba(120,80,40,.35) 0 1px, transparent 1.5px) 0 0 / 7px 5px,
    var(--core);
}
.board::before {             /* canto frontal (lado largo) */
  left: 0; right: 0; bottom: 0; height: var(--t);
  transform-origin: bottom; transform: rotateX(-90deg);
  filter: brightness(.92);
}
.board::after {              /* canto lateral (lado corto) */
  top: 0; bottom: 0; right: 0; width: var(--t);
  transform-origin: right; transform: rotateY(90deg);
  filter: brightness(.78);
}
.stack-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  margin-top: 8px;
  font-family: var(--mono); font-size: 11px;
}
.stack-legend li { display: flex; align-items: center; gap: 8px; }
.stack-legend li::before {
  content: ""; width: 14px; height: 14px; border-radius: 3px;
  background: var(--sw) center / cover; box-shadow: inset 0 0 0 1px rgba(23,20,15,.25);
}
.stack-legend span { color: var(--ink-3); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 18px 0; }
.marquee-track {
  display: flex; gap: 28px; width: max-content;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(22px, 3vw, 36px);
  animation: marquee 38s linear infinite;
}
.marquee-track i { color: var(--yellow); font-style: normal; font-size: .6em; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head-split { display: grid; gap: 12px; }

/* ---------- Productos ---------- */
.product-grid { display: grid; gap: 16px; }
.product {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-veneer {
  position: relative; height: 150px;
  background: var(--tex) center / cover;
  transition: background-size .8s var(--ease-out);
}
.product-veneer::after {
  /* canto inferior: el tablero se ve "cortado" */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--core);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(23,20,15,.25);
}
.product-veneer-kitchen::before {
  /* frentes de cocina dibujados sobre la textura */
  content: ""; position: absolute; inset: 18px 18px 28px;
  background:
    linear-gradient(90deg, transparent calc(33.33% - 2px), rgba(23,20,15,.55) calc(33.33% - 2px) 33.33%, transparent 33.33% calc(66.66% - 2px), rgba(23,20,15,.55) calc(66.66% - 2px) 66.66%, transparent 66.66%),
    linear-gradient(transparent 46%, rgba(23,20,15,.55) 46% 48%, transparent 48%);
  border: 2px solid rgba(23,20,15,.55);
}
.product-veneer-photo { height: 190px; background-position: center 70%; }
.product-veneer-photo::after { display: none; }
.product:hover .product-veneer-photo { background-size: 108%; }
.product-num {
  position: absolute; top: 14px; left: 16px;
  font-family: var(--mono); font-size: 12px;
  padding: 3px 8px; border-radius: 2px;
  background: var(--yellow); color: var(--ink);
}
.product-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 26px; }
.product-body h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 28px;
}
.product-body p { color: var(--ink-3); }
.product-body .link-arrow { margin-top: auto; align-self: flex-start; }
.product-links { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: auto; }

/* ---------- Categorías (cuadrícula con foto) ---------- */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat a {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 6px;
  height: 170px; padding: 12px;
  border-radius: var(--radius-sm); overflow: clip; isolation: isolate;
  color: #fff; text-align: center;
}
.cat-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform 1s var(--ease-out);
}
.cat a::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(23,20,15,.28), rgba(23,20,15,.6));
  transition: background-color .4s;
}
.cat a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 1;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.cat a:hover .cat-bg, .cat a:focus-visible .cat-bg { transform: scale(1.07); }
.cat a:hover::before, .cat a:focus-visible::before { transform: scaleX(1); }
.cat-name {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(21px, 2.6vw, 36px); line-height: 1;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.cat-sub {
  font-family: var(--mono); font-size: 11px; color: var(--yellow-3);
  transition: opacity .4s, transform .5s var(--ease-out);
}

.cat-cocinas .cat-bg   { background-image: url(assets/img/fotos/cocina-frente.webp); background-position: 40% 60%; }
.cat-tableros .cat-bg  { background-image: url(assets/img/fotos/almacen.webp); background-position: center 75%; }
.cat-cortes .cat-bg    { background-image: url(assets/img/fotos/taller.webp); background-position: center 60%; }
.cat-servicios .cat-bg { background-image: url(assets/img/fotos/taller.webp); background-position: center 55%; }
.cat-wide { grid-column: span 2; }
.cat-listonaje .cat-bg { background-image: url(assets/img/tex-milos-nuez.webp); }
/* Sin foto todavía: dibujos sobre textura */
.cat-puertas .cat-bg { background-image: url(assets/img/tex-cerezo.webp); }
.cat-puertas .cat-bg::before {               /* puerta de cuarterones */
  content: ""; position: absolute; left: 50%; top: 12%; width: 30%; height: 88%; transform: translateX(-50%);
  border: 3px solid rgba(40,20,10,.45); border-bottom: 0;
  background:
    radial-gradient(circle at 84% 55%, #E9C46A 0 4px, #8A6A2A 5px, transparent 6px),
    linear-gradient(rgba(40,20,10,.35), rgba(40,20,10,.35)) 50% 12% / 70% 2px no-repeat,
    linear-gradient(rgba(40,20,10,.35), rgba(40,20,10,.35)) 50% 46% / 70% 2px no-repeat,
    linear-gradient(rgba(40,20,10,.35), rgba(40,20,10,.35)) 50% 52% / 70% 2px no-repeat,
    linear-gradient(rgba(40,20,10,.35), rgba(40,20,10,.35)) 50% 92% / 70% 2px no-repeat,
    linear-gradient(90deg, rgba(40,20,10,.35), rgba(40,20,10,.35)) 15% 50% / 2px 80% no-repeat,
    linear-gradient(90deg, rgba(40,20,10,.35), rgba(40,20,10,.35)) 85% 50% / 2px 80% no-repeat;
}
.cat-ventanas .cat-bg { background-image: url(assets/img/bosque.webp); background-position: center 70%; }
.cat-ventanas .cat-bg::before {              /* marco de ventana de madera */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #8B5A2B, #A06B37) 50% 0 / 12px 100% no-repeat,
    linear-gradient(#8B5A2B, #A06B37) 0 44% / 100% 10px no-repeat;
  border: 16px solid #9A6532;
  box-shadow: inset 0 0 0 3px rgba(40,20,10,.35);
}
.cat-ferreteria .cat-bg {                    /* cabezas de tornillo */
  background:
    linear-gradient(45deg, transparent 46%, rgba(40,40,40,.85) 46% 54%, transparent 54%) 0 0 / 44px 44px,
    radial-gradient(circle at 50% 50%, #E2E2DE 0 9px, #9C9C96 11px, rgba(0,0,0,.4) 12px, transparent 13px) 0 0 / 44px 44px,
    linear-gradient(135deg, transparent 46%, rgba(40,40,40,.85) 46% 54%, transparent 54%) 22px 22px / 44px 44px,
    radial-gradient(circle at 50% 50%, #E8C46A 0 9px, #9B7A2E 11px, rgba(0,0,0,.4) 12px, transparent 13px) 22px 22px / 44px 44px,
    #3A332B;
}
.cat-ferreteria a::after { background: linear-gradient(180deg, rgba(23,20,15,.45), rgba(23,20,15,.7)); }

.visit-lead { font-size: 18px; color: var(--ink-3); margin-top: 16px; max-width: 40ch; }

/* ---------- Cocinas: configurador ---------- */
.kitchen { background: var(--white); }
.kc { display: grid; gap: 22px; align-items: start; }
.kc-stage { display: grid; gap: 10px; }
.kc-fallback { width: 100%; border-radius: var(--radius); }
@media (max-width: 959px) {
  .kc-stage { position: sticky; top: 72px; z-index: 5; background: var(--white); padding: 6px 0 8px; }
}
.js .kc-fallback { display: none; }

.kc-room {
  --door: #EFE6D2; --top: #C79A5B;
  position: relative; aspect-ratio: 16 / 10;
  border-radius: var(--radius); overflow: clip;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.kc-wall {
  position: absolute; inset: 0 0 9% 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.6), transparent 40%),
    var(--white);
}
.kc-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 9%;
  background: repeating-linear-gradient(90deg, #8E8A84 0 18%, #85817B 18% 18.4%), #8E8A84;
}
.kc-run {
  position: absolute; left: 5%; right: 5%; top: 7%; bottom: 9%;
  display: flex; align-items: stretch;
}
.kc-mod {
  position: relative; flex-basis: 0; min-width: 0;
  display: grid; grid-template-rows: 30% 26% 4% 40%;
  cursor: pointer;
  animation: kcIn .5s var(--ease-out);
}
@keyframes kcIn { from { opacity: 0; transform: translateY(8px); } }
.kc-mod:hover::after {
  content: "×"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--yellow); font-size: 20px; line-height: 1;
}
.kc-alto, .kc-base, .kc-tall { display: flex; gap: 2px; padding: 0 1px; }
.kc-alto { grid-row: 1; padding-bottom: 2px; }
.kc-top {
  grid-row: 3; position: relative;
  background: var(--top);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.12);
  z-index: 1;
}
.kc-base { grid-row: 4; position: relative; padding-bottom: 12%; padding-top: 2px; }
.kc-tall { grid-row: 1 / -1; flex-direction: column; position: relative; padding-bottom: calc(40% * .12); }
.kc-plinth { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: #4A4540; }
.kc-tall .kc-plinth { height: 4.8%; }
.kc-stack { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.kc-door {
  position: relative; flex: 1;
  background: var(--door);
  border-radius: 1.5px;
  box-shadow: inset 0 0 0 1px rgba(23,20,15,.12), inset 0 -12px 18px -14px rgba(0,0,0,.25);
}
.kc-blind { flex: .7; }
.kc-oven {
  flex: 3.4; border-radius: 2px;
  background: linear-gradient(180deg, #2A2A2C, #121214);
  box-shadow: inset 0 0 0 3px #8C8C8E, inset 0 6px 0 3px #8C8C8E;
}
.kc-small { flex: .9; }
.kc-sink {
  position: absolute; left: 22%; right: 22%; top: 25%; height: 50%;
  background: #C9CCCF; border-radius: 2px;
}
.kc-sink::after {           /* grifo */
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 3px; height: 260%;
  background: #9EA3A8; border-radius: 2px 2px 0 0;
  box-shadow: 6px -2px 0 -1px #9EA3A8;
}
/* diseño enmarcado */
.d-enmarcada .kc-door { box-shadow: inset 0 0 0 1px rgba(23,20,15,.15), inset 0 0 0 6px var(--door-frame, rgba(255,255,255,.06)), inset 0 0 0 7px rgba(23,20,15,.2); }
/* tiradores */
.h-barra .kc-door::after { content: ""; position: absolute; right: 9%; top: 10%; width: 3px; height: 26%; border-radius: 2px; background: #2A2826; }
.h-barra .kc-alto .kc-door::after { top: auto; bottom: 10%; }
.h-barra .kc-stack .kc-door::after, .h-concha .kc-stack .kc-door::after { right: 35%; left: 35%; width: auto; height: 3px; top: 22%; }
.h-concha .kc-door::after { content: ""; position: absolute; left: 50%; top: 9%; width: clamp(8px, 28%, 16px); height: clamp(4px, 1vw, 7px); transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #B08D4A; box-shadow: inset 0 2px 0 rgba(0,0,0,.25); }
.h-concha .kc-alto .kc-door::after { top: auto; bottom: 9%; }
.h-concha .kc-stack .kc-door::after { height: clamp(4px, 1vw, 7px); left: 50%; right: auto; width: clamp(8px, 28%, 16px); }
.h-gola .kc-base .kc-door:first-child::before, .h-gola .kc-base .kc-door::before, .h-gola .kc-stack .kc-door::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: rgba(23,20,15,.55); }
.h-gola .kc-alto .kc-door::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(23,20,15,.45); }
.h-gola .kc-blind::before, .kc-oven::before, .kc-oven::after { display: none; }
.kc-blind::after { display: none !important; }

.kc-meta { font-family: var(--mono); font-size: 12px; color: var(--mute); text-align: center; }

.kc-panel { display: grid; gap: 18px; padding: 22px; border-radius: calc(var(--radius) + 6px); background: var(--paper); border: 1px solid var(--line); }
.kc-step { display: grid; gap: 10px; }
.kc-step .tb-label em { font-style: normal; text-transform: none; letter-spacing: 0; }
.kc-step-row { grid-template-columns: 1fr 1fr; gap: 16px; }
.kc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kc-chips .chip { padding: 7px 13px; font-size: 13px; }
.kc-chips-sm .chip { padding: 5px 11px; font-size: 12px; }
.kc-chips .chip small { display: block; font-size: 10px; font-family: var(--mono); color: var(--mute); }
.kc-chips .chip.is-active small { color: var(--yellow-3); }
.kc-adds { display: flex; flex-wrap: wrap; gap: 6px; }
.kc-adds button {
  padding: 6px 12px; border-radius: 2px; font-size: 13px; font-weight: 600;
  background: var(--yellow-3); transition: background-color .2s, transform .3s var(--ease-out);
}
.kc-adds button:hover { background: var(--yellow); transform: translateY(-1px); }
.kc-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.kc-check input { accent-color: var(--ink); width: 16px; height: 16px; }
.kc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.kc-sw {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c); background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(23,20,15,.18);
  transition: transform .3s var(--ease-out), box-shadow .2s;
}
.kc-swatches-sm .kc-sw { width: 30px; height: 30px; }
.kc-sw:hover { transform: scale(1.1); }
.kc-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.kc-cta { width: 100%; }
.kc-note { font-size: 12px; color: var(--mute); text-align: center; margin-top: -8px; }

/* ---------- Tableros: explorador ---------- */
.boards { background: var(--white); }

/* Texturas dibujadas en CSS: --face es la cara, --edge el canto */
.tx-particle      { --face: radial-gradient(circle at 20% 30%, rgba(110,70,30,.5) 0 1.3px, transparent 1.8px) 0 0 / 9px 7px, radial-gradient(circle at 70% 60%, rgba(255,240,210,.55) 0 1px, transparent 1.5px) 0 0 / 6px 8px, radial-gradient(circle at 40% 80%, rgba(90,55,20,.4) 0 1.8px, transparent 2.3px) 0 0 / 13px 11px, #C9A97A; }
.tx-particle-fine { --face: radial-gradient(circle at 30% 40%, rgba(110,70,30,.35) 0 .7px, transparent 1px) 0 0 / 4px 3px, radial-gradient(circle at 70% 70%, rgba(255,240,210,.5) 0 .6px, transparent .9px) 0 0 / 3px 4px, #D6BC92; }
.tx-particle-green      { --face: radial-gradient(circle at 20% 30%, rgba(40,70,30,.5) 0 1.3px, transparent 1.8px) 0 0 / 9px 7px, radial-gradient(circle at 70% 60%, rgba(230,240,200,.5) 0 1px, transparent 1.5px) 0 0 / 6px 8px, #A9B07C; }
.tx-particle-fine-green { --face: radial-gradient(circle at 30% 40%, rgba(40,70,30,.35) 0 .7px, transparent 1px) 0 0 / 4px 3px, #B9BF8E; }
.tx-mdf-green { --face: radial-gradient(rgba(20,40,15,.14) .5px, transparent .9px) 0 0 / 3px 3px, linear-gradient(135deg, #8E9A6C, #7D8A5C); }
.tx-mdf-red   { --face: radial-gradient(rgba(60,15,10,.14) .5px, transparent .9px) 0 0 / 3px 3px, linear-gradient(135deg, #B9705E, #A65F4E); }
.tx-mdf-black { --face: radial-gradient(rgba(255,255,255,.06) .5px, transparent .9px) 0 0 / 3px 3px, linear-gradient(135deg, #2B2824, #1E1B18); }
.tx-mdf      { --face: radial-gradient(rgba(60,35,15,.12) .5px, transparent .9px) 0 0 / 3px 3px, linear-gradient(135deg, #B88E5F, #A97F51); }
.tx-osb      { --face: repeating-linear-gradient(12deg, transparent 0 9px, rgba(120,80,30,.35) 9px 11px, transparent 11px 26px), repeating-linear-gradient(-8deg, #D2A660 0 12px, #BE8E46 12px 19px, #E3BF7E 19px 30px, #C99A52 30px 38px); }
.tx-osb-x    { --face: repeating-linear-gradient(98deg, transparent 0 9px, rgba(120,80,30,.35) 9px 11px, transparent 11px 26px), repeating-linear-gradient(84deg, #D2A660 0 12px, #BE8E46 12px 19px, #E3BF7E 19px 30px, #C99A52 30px 38px); }
.tx-ply      { --face: repeating-linear-gradient(0deg, #EAD3A8 0 3px, #DDC292 3px 5px, #EFDBB5 5px 9px, #E0C799 9px 11px); --edge: #E4CB9C; }
.tx-ply-x    { --face: repeating-linear-gradient(90deg, #E2C694 0 3px, #D3B37E 3px 5px, #E8CFA2 5px 9px); --edge: repeating-linear-gradient(90deg, #C9A570 0 2px, #B8935C 2px 3px); }
.tx-alist    { --face: repeating-linear-gradient(0deg, transparent 0 2px, rgba(150,95,40,.12) 2px 3px), linear-gradient(0deg, #E6C189 0 12.5%, #D6A86A 12.5% 25%, #EBCB93 25% 37.5%, #DDB278 37.5% 50%, #E8C58C 50% 62.5%, #D2A465 62.5% 75%, #EACB95 75% 87.5%, #DBAF73 87.5%); --edge: repeating-linear-gradient(90deg, #D9B07A 0 24px, #C99C62 24px 26px); }
.tx-abeto    { --face: repeating-linear-gradient(0deg, #F0DFBC 0 4px, #E6D0A6 4px 6px, #F3E5C6 6px 11px); }
.tx-abeto-x  { --face: repeating-linear-gradient(90deg, #E9D4A9 0 4px, #DCC392 4px 6px, #EEDDB7 6px 11px); }
.tx-alist-knots { --face: radial-gradient(ellipse 5px 4px at 30% 40%, rgba(120,70,25,.75) 0 2px, rgba(150,95,40,.35) 3px, transparent 5px) 0 0 / 70px 46px, radial-gradient(ellipse 4px 3px at 70% 75%, rgba(120,70,25,.7) 0 1.5px, transparent 4px) 0 0 / 54px 38px, repeating-linear-gradient(0deg, transparent 0 2px, rgba(150,95,40,.12) 2px 3px), linear-gradient(0deg, #ECCF9C 0 25%, #E2BE86 25% 50%, #EED3A2 50% 75%, #E4C28C 75%); --edge: repeating-linear-gradient(90deg, #D9B07A 0 24px, #C99C62 24px 26px); }
.tx-entab    { --face: linear-gradient(90deg, transparent 0 30%, rgba(90,50,15,.14) 30% 30.6%, transparent 30.6% 72%, rgba(90,50,15,.14) 72% 72.6%, transparent 72.6%) 0 0 / 100% 14px, linear-gradient(90deg, transparent 0 52%, rgba(90,50,15,.14) 52% 52.6%, transparent 52.6%) 0 7px / 100% 14px, repeating-linear-gradient(0deg, #DDA866 0 7px, #CF9856 7px 14px, #E2B172 14px 21px, #D6A060 21px 28px); --edge: repeating-linear-gradient(90deg, #C99457 0 14px, #B98549 14px 15px); }
.tx-xps      { --face: radial-gradient(circle at 50% 50%, rgba(255,255,255,.7) 0 1px, transparent 1.6px) 0 0 / 5px 5px, #B8D8EE; --edge: #A9CDE6; }
.tx-ply-face { --face: repeating-linear-gradient(0deg, #EAD3A8 0 3px, #DDC292 3px 5px, #EFDBB5 5px 9px, #E0C799 9px 11px); --edge: #E4CB9C; }
.tx-calabo  { --face: repeating-linear-gradient(0deg, #C9876A 0 3px, #BC7A5E 3px 5px, #D2937A 5px 9px); --edge: #B9805F; }
.tx-euca    { --face: repeating-linear-gradient(0deg, #D9A27E 0 4px, #C98F6B 4px 6px, #E2B18F 6px 11px, #B57B5A 11px 12px); --edge: #C99470; }
.tx-abedul  { --face: repeating-linear-gradient(0deg, #F1E0C3 0 4px, #E9D4B1 4px 6px, #F4E6CD 6px 11px); --edge: #E9D6B4; }
.tx-abedul-x { --face: repeating-linear-gradient(90deg, #E9D4B1 0 4px, #DEC59C 4px 6px); --edge: repeating-linear-gradient(90deg, #D7BC8F 0 2px, #C8AA7C 2px 3px); }
.tx-pino    { --face: repeating-linear-gradient(0deg, #E8C38A 0 5px, #D9AC6E 5px 7px, #EDCC98 7px 13px); --edge: #DDB27A; }
.tx-pino-x  { --face: repeating-linear-gradient(90deg, #DDB27A 0 5px, #CC9C60 5px 7px); --edge: repeating-linear-gradient(90deg, #C99A60 0 2px, #B88A52 2px 3px); }
.tx-pino-knots { --face: radial-gradient(ellipse 6px 4px at 35% 40%, rgba(110,60,20,.8) 0 2px, rgba(140,85,35,.4) 3px, transparent 6px) 0 0 / 52px 40px, radial-gradient(ellipse 4px 3px at 75% 70%, rgba(110,60,20,.7) 0 1.5px, transparent 4px) 0 0 / 38px 30px, repeating-linear-gradient(0deg, #E8C38A 0 5px, #D9AC6E 5px 7px, #EDCC98 7px 13px); --edge: #DDB27A; }
.tx-film    { --face: radial-gradient(circle at 50% 50%, rgba(0,0,0,.35) 0 1.6px, transparent 2px) 0 0 / 7px 7px, radial-gradient(circle at 50% 50%, rgba(255,255,255,.08) 0 1.6px, transparent 2px) 3.5px 3.5px / 7px 7px, #4A3022; --edge: #3A2418; }
.tx-hardboard { --face: linear-gradient(135deg, #7A5A3C, #6A4C31); --edge: #6E5034; }
.tx-mel      { --face: url(assets/img/melaminas/roble-gold-syncro.webp) center / cover, #C49A62; --edge: #B88A55; }
.tx-chapa    { --face: url(assets/img/tex-roble-biscotti.webp) center / cover, #C9A06B; --edge: #A57A47; }
.tx-gloss    { --face: linear-gradient(120deg, #FFFFFF 0 30%, #EFEDE8 45%, #FFFFFF 55%, #F2F0EC 100%); --edge: #4A3B2C; }
.tx-camper   { --face: linear-gradient(135deg, #D8D4CB, #C9C4BA); --edge: #3E3A34; }
.tx-lacado   { --face: linear-gradient(135deg, #FBFAF6, #EEEBE4); --edge: #E8E4DB; }

.tb-finder { display: grid; gap: 12px; margin-bottom: 28px; }
.tb-finder-q { font-family: var(--display); font-weight: 600; font-size: 20px; }
.tb-finder-chips { display: flex; gap: 8px; overflow-x: auto; overflow-y: visible; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.tb-finder-chips .chip { flex: none; }

.tb-explorer { display: grid; gap: 20px; }
.tb-list {
  display: flex; gap: 8px; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x proximity; padding: 4px 2px 10px; margin-inline: -2px;
  scrollbar-width: thin;
}
.tb-list li { flex: none; scroll-snap-align: start; }
.tb-list button {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1.5px solid var(--line-2); border-radius: 2px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: border-color .25s, background-color .25s, color .25s, opacity .3s, transform .4s var(--ease-out);
}
.tb-list button:hover { border-color: var(--ink); }
.tb-list button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.tb-list button.is-dim { opacity: .3; }
.tb-thumb {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--face);
  box-shadow: inset 0 0 0 1px rgba(23,20,15,.15);
}

.tb-panels { position: relative; }
.tb-panel {
  display: grid; gap: 28px;
  padding: 22px; border-radius: calc(var(--radius) + 6px);
  background: var(--paper);
  border: 1px solid var(--line);
}
html:not(.is-ready) .tb-panel + .tb-panel { margin-top: 16px; }
.tb-panel.is-entering { animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

/* Corte del tablero en 3D */
.tb-visual { display: grid; gap: 18px; align-content: center; }
.tb-viz {
  position: relative; display: grid; place-items: center;
  min-height: 290px; perspective: 1200px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(23,20,15,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(23,20,15,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper-2);
  overflow: clip;
  cursor: pointer;
}
.tb-slab {
  --gap: 0px;
  position: relative; width: min(62vw, 300px); aspect-ratio: 3 / 2;
  transform-style: preserve-3d;
  --rx: 58deg; --rz: -34deg;
  transform: rotateX(var(--rx)) rotateZ(var(--rz)) translateZ(calc(var(--total) * -0.5px));
  transition: transform .9s var(--ease-out);
}
.tb-viz.is-dragging { cursor: grabbing; }
.tb-viz.is-dragging .tb-slab { transition: none; }
.tb-viz { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.tb-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; color: var(--mute); white-space: nowrap;
  padding: 4px 10px; border-radius: 2px; background: rgba(255,253,248,.8);
  transition: opacity .4s;
}
.tb-viz.was-used .tb-hint { opacity: 0; }
.tb-panel.is-exploded .tb-slab { --gap: 26px; }
.tb-layer {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  background: var(--face);
  transform: translateZ(calc(var(--z) * 1px + var(--t) + var(--i) * var(--gap)));
  transition: transform .8s var(--ease-out);
  box-shadow: inset 0 0 0 1px rgba(23,20,15,.06);
}
.tb-layer::before, .tb-layer::after {
  content: ""; position: absolute;
  background: var(--edge, var(--face));
}
.tb-layer::before {                /* canto frontal */
  left: 0; right: 0; bottom: 0; height: var(--t);
  transform-origin: bottom; transform: rotateX(-90deg);
  filter: brightness(.9);
}
.tb-layer::after {                 /* canto lateral */
  top: 0; bottom: 0; right: 0; width: var(--t);
  transform-origin: right; transform: rotateY(90deg);
  filter: brightness(.75);
}
.tb-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; counter-reset: capa; font-size: 12px; color: var(--ink-3); }
.tb-legend li { display: flex; align-items: center; gap: 10px; counter-increment: capa; }
.tb-legend li { gap: 6px; }
.tb-dot { flex: none; width: 22px; height: 12px; border-radius: 2px; background: var(--face); box-shadow: inset 0 0 0 1px rgba(23,20,15,.18); }

.tb-info { display: grid; gap: 16px; align-content: center; }
.tb-info .eyebrow { margin: 0; }
.tb-info h3 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.4vw, 56px); line-height: .95; }
.tb-lema { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 21px; line-height: 1.25; color: var(--ink); }
.tb-info > p:not(.eyebrow):not(.tb-lema) { color: var(--ink-3); }
.tb-block { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.tb-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.tb-formats { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.tb-formats span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-right: 6px; }
.tb-ask { font-size: 14px; color: var(--ink-3); }

/* Tipos (variantes) */
html:not(.js) [data-js-only] { display: none !important; }
.tb-variants { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tb-variants .chip { padding: 6px 13px; font-size: 13px; }
.tb-vpanel { display: grid; gap: 12px; }
html:not(.is-ready) .tb-vpanel + .tb-vpanel { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.tb-vname { font-family: var(--display); font-weight: 600; font-size: 18px; }
.tb-multi .tb-vname { display: none; }
.tb-vnote { font-size: 14px; color: var(--ink-3); }
.tb-vpanel.is-entering { animation: pieceIn .45s var(--ease-out); }
.tb-sub { display: grid; gap: 8px; }
.tb-label em { font-style: normal; text-transform: none; letter-spacing: 0; }
.tb-foot { font-size: 12px; color: var(--mute); }

/* Medidas: rectángulo a escala + grosores disponibles */
.tb-fmts { display: grid; gap: 4px; }
.tb-fmts li {
  display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 2px 12px;
  padding: 6px 10px 6px 6px; border-radius: 8px;
  font-size: 14px;
  transition: opacity .3s, background-color .3s;
}
.tb-fmts b { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.tb-fg { grid-column: 2; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.tb-shape { grid-row: span 2; }
@media (min-width: 540px) {
  .tb-fmts li { grid-template-columns: 76px auto 1fr; }
  .tb-fg { grid-column: auto; text-align: right; }
  .tb-shape { grid-row: auto; }
}
.tb-shape {
  display: block; justify-self: start;
  width: calc(var(--w) * 76px); height: calc(var(--h) * 76px);
  background: radial-gradient(circle at 30% 40%, rgba(110,70,30,.35) 0 .7px, transparent 1px) 0 0 / 4px 3px, var(--core);
  border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(23,20,15,.2);
  transition: background-color .3s;
}
.tb-fmts li.is-on { background: var(--yellow-3); }
.tb-fmts li.is-on .tb-shape { background-color: var(--yellow); }
.tb-fmts li.is-off { opacity: .3; }

/* Especies / colores con muestra real */
.tb-acabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.tb-acab { display: grid; gap: 5px; width: 100%; text-align: left; font-size: 12px; line-height: 1.25; color: var(--ink-2); }
.tb-acab small { display: block; color: var(--mute); }
.tb-acab-img {
  display: block; aspect-ratio: 4 / 3; border-radius: 6px;
  background: var(--img);
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(23,20,15,.12);
  transition: transform .4s var(--ease-out), box-shadow .3s;
}
.tb-acab:hover .tb-acab-img { transform: translateY(-2px); }
.tb-acab[aria-pressed="true"] .tb-acab-img { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.tb-fmts b small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 400; color: var(--mute); }

/* Comparativa de pesos */
.tb-weights { display: grid; gap: 6px; }
.tb-weights li { display: grid; grid-template-columns: 120px 1fr 64px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.tb-weights b { font-family: var(--mono); font-weight: 500; font-size: 12px; text-align: right; }
.tb-wbar { height: 10px; border-radius: 2px; background: var(--line-2); transform-origin: left; transform: scaleX(var(--p)); }
.tb-weights .is-me { color: var(--ink); font-weight: 600; }
.tb-weights .is-me .tb-wbar { background: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow-2); }
.tb-panel.is-entering .tb-wbar { animation: wIn 1s var(--ease-out) both; }
@keyframes wIn { from { transform: scaleX(0); } }

/* Grosores: barras a escala */
.tb-thick { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 2px; }
.tb-thick li { min-width: 26px; }
@media (max-width: 539px) { .tb-bar { width: 20px; } .tb-thick b { font-size: 11px; } }
.tb-g { display: grid; justify-items: center; gap: 6px; padding: 4px 2px; border-radius: 6px; transition: background-color .25s; }
html:not(.js) .tb-g { cursor: default; }
.tb-g:hover { background: var(--paper-2); }
.tb-g[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.tb-g[aria-pressed="true"] .tb-bar { background-color: var(--yellow); }
.tb-bar {
  display: block; width: 28px; height: calc(var(--mm) * 1.4px);
  border-radius: 2px;
  background:
    radial-gradient(circle at 30% 40%, rgba(110,70,30,.35) 0 .8px, transparent 1.2px) 0 0 / 5px 4px,
    var(--core);
  box-shadow: inset 0 2px 0 var(--wood), inset 0 -2px 0 var(--wood);
  transform-origin: bottom;
}
.tb-panel.is-entering .tb-bar, .tb-vpanel.is-entering .tb-bar { animation: barUp .7s var(--ease-out) both; }
.tb-thick li:nth-child(2) .tb-bar { animation-delay: .04s; }
.tb-thick li:nth-child(3) .tb-bar { animation-delay: .08s; }
.tb-thick li:nth-child(4) .tb-bar { animation-delay: .12s; }
.tb-thick li:nth-child(5) .tb-bar { animation-delay: .16s; }
.tb-thick li:nth-child(6) .tb-bar { animation-delay: .2s; }
.tb-thick li:nth-child(7) .tb-bar { animation-delay: .24s; }
.tb-thick li:nth-child(8) .tb-bar { animation-delay: .28s; }
@keyframes barUp { from { transform: scaleY(0); } }
.tb-thick b { font-family: var(--mono); font-weight: 500; font-size: 12px; }

.tb-usos { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-usos li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 2px;
  background: var(--yellow-3); font-size: 13px; font-weight: 500;
}
.tb-usos li::before { content: "✓"; font-weight: 700; }
.tb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 8px; }

/* Cantos de PVC */
.tb-edge {
  display: grid; gap: 18px; align-items: center;
  margin-top: 20px; padding: 22px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--ink); color: var(--paper);
}
.tb-edge h3 { font-family: var(--display); font-weight: 600; font-size: 26px; margin-bottom: 6px; }
.tb-edge p { color: rgba(247,242,232,.72); max-width: 60ch; }
.tb-edge .link-arrow { color: var(--yellow); justify-self: start; }
.tb-edge-visual { position: relative; width: 120px; height: 64px; }
.tb-edge-visual::before {
  content: ""; position: absolute; inset: 10px 0 10px 18px;
  background: radial-gradient(circle at 30% 40%, rgba(110,70,30,.45) 0 1px, transparent 1.5px) 0 0 / 6px 5px, var(--core);
}
.tb-edge-visual span {
  position: absolute; left: 10px; top: 4px; bottom: 4px; width: 8px; border-radius: 2px;
  background: url(assets/img/melaminas/roble-gold-syncro.webp) center / cover, #C49A62;
  transform-origin: top;
}
.tb-edge.is-in .tb-edge-visual span { animation: edgeDown 1.2s var(--ease-out) .3s both; }
@keyframes edgeDown { from { transform: scaleY(0); } }

/* ---------- Melaminas ---------- */
.swatches { background: var(--paper-2); }
.swatch-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.swatch-layout { display: grid; gap: 24px; align-items: start; }
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.swatch { position: relative; }
.swatch button {
  display: block; width: 100%; text-align: left;
  border-radius: var(--radius-sm);
  transition: transform .45s var(--ease-out);
}
.swatch-img {
  display: block; aspect-ratio: 1; width: 100%;
  border-radius: var(--radius-sm);
  background: var(--img) center / cover, var(--white);
  box-shadow: inset 0 0 0 1px rgba(23,20,15,.1), 0 1px 2px rgba(23,20,15,.06);
  transition: box-shadow .35s var(--ease-out), transform .45s var(--ease-out);
}
.swatch-name { display: block; font-size: 12px; line-height: 1.3; margin-top: 7px; color: var(--ink-2); }
.swatch button:hover .swatch-img { transform: translateY(-3px) rotate(-1.2deg); box-shadow: inset 0 0 0 1px rgba(23,20,15,.1), 0 12px 22px -10px rgba(23,20,15,.5); }
.swatch button[aria-pressed="true"] .swatch-img { box-shadow: 0 0 0 3px var(--paper-2), 0 0 0 5px var(--ink); }
.swatch.is-hidden { display: none; }

.swatch-detail {
  position: sticky; top: 96px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 18px 22px;
  border: 1px solid var(--line);
  display: grid; gap: 12px;
}
.swatch-detail-img { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); background: var(--img) center / cover; box-shadow: inset 0 0 0 1px rgba(23,20,15,.1); }
.swatch-detail .eyebrow { margin: 4px 0 0; }
.swatch-detail h3 { font-family: var(--display); font-weight: 600; font-size: 28px; }
.swatch-detail-formats li { font-family: var(--mono); font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); }
.swatch-detail-hint { font-size: 13px; color: var(--mute); }
.swatch-foot { margin-top: 36px; }

/* ---------- Servicios ---------- */
.services { background: var(--ink); color: var(--paper); }
.services .section-title em { color: var(--yellow); }
.steps { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: clip; }
.step { background: var(--ink); padding: 28px 24px 32px; display: grid; gap: 14px; align-content: start; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--yellow); }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 32px; }
.step p { color: rgba(247,242,232,.72); max-width: 40ch; }

.step-visual { position: relative; height: 120px; margin: 6px 0 4px; }
.step-visual span { position: absolute; inset: 0; }
/* Corte: tablero y línea de sierra que lo recorre */
.step-visual-cut span {
  inset: 20px 10% 20px 0;
  background: url(assets/img/tex-roble-biscotti.webp) center / cover;
  border-radius: 2px;
}
.step-visual-cut span::before {
  content: ""; position: absolute; top: -12px; bottom: -12px; left: 62%;
  border-left: 2px dashed var(--yellow);
}
.step-visual-cut span::after {
  content: "620 mm"; position: absolute; left: 0; right: 38%; bottom: -20px;
  font-family: var(--mono); font-size: 11px; color: var(--yellow); text-align: center;
  border-top: 1px solid var(--yellow); padding-top: 2px;
}
.is-ready .step.is-in .step-visual-cut span::before { animation: saw 2.6s var(--ease-soft) .3s both; }
@keyframes saw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* Canteado: canto que se aplica sobre la pieza */
.step-visual-edge span {
  inset: 20px 10% 20px 0;
  background: var(--core);
  border-radius: 2px;
  background-image: radial-gradient(circle at 30% 40%, rgba(120,80,40,.4) 0 1px, transparent 1.5px);
  background-size: 7px 5px;
}
.step-visual-edge span::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: var(--yellow); border-radius: 2px 2px 0 0;
  transform-origin: left;
}
.is-ready .step.is-in .step-visual-edge span::before { animation: edge 1.6s var(--ease-out) .3s both; }
@keyframes edge { from { transform: scaleX(0); } }
/* Transporte: furgoneta minimalista sobre línea de calle */
.step-visual-truck span::before {
  content: ""; position: absolute; left: 0; bottom: 10px; width: 150px; height: 70px;
  background:
    radial-gradient(circle at 30px 56px, var(--ink-2) 0 6px, var(--paper) 6.5px 12px, transparent 12.5px),
    radial-gradient(circle at 120px 56px, var(--ink-2) 0 6px, var(--paper) 6.5px 12px, transparent 12.5px),
    linear-gradient(var(--yellow), var(--yellow)) 0 0 / 104px 56px no-repeat,
    linear-gradient(rgba(23,20,15,.5), rgba(23,20,15,.5)) 112px 18px / 22px 14px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 106px 12px / 44px 44px no-repeat;
  border-radius: 4px 10px 4px 4px;
}
.step-visual-truck span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  border-top: 2px dashed rgba(247,242,232,.35);
}
.is-ready .step.is-in .step-visual-truck span::before { animation: drive 2.2s var(--ease-out) .2s both; }
@keyframes drive { from { transform: translateX(-30px); opacity: 0; } }

/* Taller: fotos y vídeo reales */
.bento {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px;
  margin-top: 40px;
}
.bento-item { position: relative; margin: 0; border-radius: var(--radius); overflow: clip; background: var(--ink-2); }
.bento-item img, .bento-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out); }
.bento-item button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.bento-item:hover img { transform: scale(1.05); }
.bento-item figcaption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 4px 10px; border-radius: 2px;
  background: rgba(23,20,15,.72); color: var(--paper);
  font-family: var(--mono); font-size: 11px;
  pointer-events: none;
}
.bento-video { grid-row: span 2; }
.bento-video figcaption::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #E5484D; animation: rec 1.4s ease-in-out infinite; vertical-align: 1px; }
@keyframes rec { 50% { opacity: .25; } }
.bento-tall { grid-row: span 2; }
.bento-wide { grid-column: span 2; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 90vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(23,20,15,.88); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-size: 24px; line-height: 1;
}
.lightbox[open] { animation: menuIn .4s var(--ease-out); }

.services-cta {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  margin-top: 40px; padding: 28px; border-radius: var(--radius);
  background: var(--ink-2);
}
.services-cta p { font-size: 19px; max-width: 46ch; }

/* ---------- Pedido ---------- */
.order { background: var(--paper); }
.order-grid { display: grid; gap: 40px; align-items: start; }
.order-alt { display: grid; gap: 6px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.order-alt p { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.order-alt a { font-family: var(--display); font-weight: 600; font-size: 22px; }
.order-alt a:hover { color: var(--wood); }

.order-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 8px 18px 24px;
  box-shadow: var(--shadow);
}
.tabs { display: flex; gap: 4px; padding: 6px; margin: 4px -10px 12px; background: var(--paper-2); border-radius: 2px; }
.tabs button {
  flex: 1; padding: 10px 12px; border-radius: 2px;
  font-weight: 600; font-size: 14px; color: var(--ink-3);
  transition: background-color .3s, color .3s;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--yellow); }

.form { display: grid; gap: 22px; padding-top: 12px; }
.form + .form { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.has-tabs .form + .form { margin-top: 0; padding-top: 12px; border-top: 0; }
.form-alt-title { font-family: var(--display); font-weight: 600; font-size: 26px; }
.has-tabs .form-alt-title { display: none; }
.fs { border: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.fs legend {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 20px;
  margin-bottom: 14px; padding: 0;
}
.fs legend span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow); font-family: var(--mono); font-size: 12px; font-weight: 500;
}
.fs legend small { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--mute); }

.row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea, .piece input, .piece select {
  width: 100%; min-height: 48px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field select:focus, .field textarea:focus, .piece input:focus, .piece select:focus {
  outline: none; border-color: var(--ink); background: var(--white);
}
.is-invalid { border-color: var(--err) !important; background: #FDF1EF !important; }
.field-error { font-size: 13px; color: var(--err); min-height: 0; }
.field-error:empty { display: none; }
.hint { font-size: 13px; color: var(--mute); }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.choice-label { font-size: 13px; font-weight: 600; margin-right: 4px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 8px; min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  transition: border-color .2s, background-color .2s, color .2s;
}
.choice span::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--ink-3);
  transition: background-color .2s, box-shadow .2s;
}
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--ink); background: var(--yellow-3); }
.choice input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 3px var(--yellow-3); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice-sm span { min-height: 40px; padding: 6px 12px; }


.file-drop {
  display: grid; gap: 4px; place-items: center; text-align: center;
  padding: 24px 16px;
  border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.file-drop span { font-size: 13px; color: var(--mute); font-weight: 400; }
.file-drop:hover, .file-drop.is-over { border-color: var(--ink); background: var(--yellow-3); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.file-list { display: grid; gap: 4px; font-family: var(--mono); font-size: 12px; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; background: var(--paper); border-radius: 6px; }

.delivery-fields { display: none; }
.delivery-fields.is-on { display: grid; animation: pieceIn .5s var(--ease-out); }
html:not(.is-ready) .delivery-fields { display: grid; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.consent a { text-decoration: underline; }

.form-foot { display: grid; gap: 12px; }
.btn-submit { width: 100%; position: relative; }
.btn-submit.is-sending { pointer-events: none; }
.btn-submit.is-sending .btn-label::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { font-size: 14px; }
.form-status.is-error { color: var(--err); }

.form-success { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 48px 12px; }
.form-success svg { width: 76px; height: 76px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success circle { fill: var(--yellow); stroke: none; }
.form-success path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .7s var(--ease-out) .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-family: var(--display); font-weight: 600; font-size: 34px; }
.form-success p { color: var(--ink-3); max-width: 40ch; }
.form-success a { text-decoration: underline; }

/* ---------- Visítanos ---------- */
.visit { position: relative; background: var(--white); overflow: clip; }
.visit-forest {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(110px, 14vw, 200px);
  background: var(--bg) center bottom / cover;
  -webkit-mask-image: linear-gradient(transparent, #000 70%);
          mask-image: linear-gradient(transparent, #000 70%);
  opacity: .9;
}
.visit-grid { position: relative; display: grid; gap: 32px; }
.visit-info address { font-size: 18px; line-height: 1.5; margin: 24px 0; }
.phones { display: grid; gap: 0; margin-bottom: 20px; }
.phones div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.phones dt { font-size: 14px; color: var(--mute); }
.phones dd { font-weight: 600; text-align: right; }
.phones a:hover { color: var(--wood); }
.visit-hours { display: grid; gap: 2px; margin-bottom: 24px; color: var(--ink-2); }
.visit-hours p:first-child { display: flex; align-items: center; gap: 10px; }
.visit-hours-mute { font-size: 14px; color: var(--mute); }
.open-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 2px;
  font-size: 12px; font-weight: 600; background: var(--paper-2); color: var(--ink-3);
}
.open-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.open-badge.is-open { background: #E3F1E4; color: var(--ok); }
.visit-map {
  position: relative; min-height: 340px;
  border-radius: var(--radius); overflow: clip;
  background:
    linear-gradient(90deg, rgba(23,20,15,.06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(23,20,15,.06) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper-2);
  box-shadow: var(--shadow);
}
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 6px;
  font-size: 14px; color: var(--ink-3);
}
.map-load strong { font-family: var(--display); font-size: 24px; color: var(--ink); }
.map-pin {
  width: 34px; height: 34px; margin-bottom: 6px;
  background: var(--yellow); border: 3px solid var(--ink);
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  transition: transform .5s var(--ease-out);
}
.map-load:hover .map-pin { transform: rotate(-45deg) translate(4px, -4px); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper-2); padding: 64px 0 28px; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer-brand img { width: 190px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: rgba(247,242,232,.6); }
.footer-nav, .footer-contact { display: grid; gap: 8px; align-content: start; }
.footer a:hover { color: var(--yellow); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: 13px; color: rgba(247,242,232,.55); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 18px 0 14px;
  background: #1FAF5A; color: #fff; border-radius: 2px;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px -8px rgba(23,20,15,.45);
  transition: transform .45s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float span { display: none; }

/* ---------- Página legal / gracias ---------- */
.page-simple { padding: clamp(48px, 8vw, 110px) 0; }
.prose { max-width: 72ch; }
.prose h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 7vw, 80px); margin-bottom: 28px; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-3); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose a { text-decoration: underline; }
.prose .todo { background: var(--yellow-3); padding: 0 4px; border-radius: 3px; }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }  /* defensa: nunca ocultar texto partido */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .wa-float span { display: inline; }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .swatch-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}

@media (min-width: 720px) {
  .tb-panel { grid-template-columns: 1fr 1fr; padding: 28px; gap: 36px; }
  .tb-finder-chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .tb-edge { grid-template-columns: auto 1fr auto; padding: 26px 32px; }
  .topbar-addr, .tb-l { display: inline; }
  .tb-hide-m { display: inline; }
  .topbar-phones { width: auto; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-wide { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .product-wide .product-veneer { height: auto; min-height: 260px; }
  .product-wide .product-veneer::after { left: auto; top: 0; width: 10px; height: auto; }
  .product-wide .product-body { padding: 36px; }
  .product-wide h3 { font-size: 44px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .cat a { height: 230px; }
  .cat-sub { opacity: 0; transform: translateY(6px); }
  .cat a:hover .cat-sub, .cat a:focus-visible .cat-sub { opacity: 1; transform: none; }
  .bento-wide { grid-column: span 2; }
  .services-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 36px; }
  .row-3 { grid-template-columns: repeat(3, 1fr); }
  .order-card { padding: 12px 32px 32px; }
  .tabs { margin-inline: -20px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; }
  .section-head-split { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
  .section-head-split .section-lead { margin-top: 0; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; gap: 28px; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-logo img { width: 168px; }

  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-stage { min-height: 520px; padding-top: 0; }
  .stack-legend { position: absolute; right: 0; bottom: 4%; display: grid; margin: 0; }
  .stack { width: 400px; }

  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-wide { grid-column: 1 / -1; }

  .swatch-layout { grid-template-columns: 1fr 300px; }
  .tb-explorer { grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
  .kc { grid-template-columns: 1.45fr 1fr; gap: 28px; }
  .kc-stage { position: sticky; top: 100px; }
  .tb-list { flex-direction: column; overflow: visible; padding: 0; margin: 0; position: sticky; top: 100px; }
  .tb-list button { width: 100%; border-radius: 12px; border-color: transparent; }
  .tb-list button:hover { border-color: var(--line-2); }
  .tb-panel { grid-template-columns: 1.25fr 1fr; padding: 28px; }
  .tb-viz { min-height: 440px; }
  .tb-slab { width: 360px; }
  .order-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .order-intro { position: sticky; top: 110px; }
  .visit-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
  .visit-map { min-height: 460px; }
}

@media (min-width: 1280px) {
  .stack { width: 460px; }
  .hero-stage { min-height: 580px; }
  .swatch-layout { grid-template-columns: 1fr 340px; }
}

/* =============================================================
   9. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 80s; }
  .tb-panel.is-entering .tb-bar { animation-duration: .3s; }
}

/* =============================================================
   10. Pedido: materiales, piezas con canto y despiece
   ============================================================= */
.field .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mats { display: grid; gap: 10px; }
.mat {
  position: relative; display: grid; gap: 10px; grid-template-columns: 1fr 1fr;
  padding: 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
}
.mat > .field:nth-of-type(2) { grid-column: 1 / -1; grid-row: 2; }
.mat-tag {
  position: absolute; top: -11px; left: 12px;
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 2px;
  background: var(--ink); color: var(--yellow); font: 600 12px var(--mono);
}
.mats:not(:has(.mat + .mat)) .mat-tag { display: none; }
.mats:not(:has(.mat + .mat)) .mat { padding: 0; border: 0; }
.mat-veta { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.mat-veta input { accent-color: var(--ink); width: 17px; height: 17px; flex: none; }
.mat-veta small { color: var(--mute); }
.mat-del { position: absolute; top: 4px; right: 4px; }
.mats:not(:has(.mat + .mat)) .mat-del { display: none; }
.mat:has(.mat-del) > .field:first-of-type { margin-right: 0; }
.mats:has(.mat + .mat) .mat { padding-top: 18px; }
[data-mat-add] { justify-self: start; }
.mat-tab { grid-column: 1 / -1; }
.mat-tab-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mat-tab-in select { flex: 1 1 200px; max-width: 320px; }
.mat-tab-otra { display: inline-flex; align-items: center; gap: 6px; }
.mat-tab-otra[hidden] { display: none; }
.mat-tab-otra input { width: 92px; }
.mat-tab-otra b { font-weight: 400; color: var(--mute); }
.mat-tab-otra em { font-style: normal; font-size: 13px; color: var(--mute); }
.hint-top { margin-top: -6px; }

.pieces { display: grid; gap: 10px; counter-reset: pz; }
.pieces-head { display: none; }
.piece {
  counter-increment: pz;
  display: grid; gap: 6px; align-items: start;
  grid-template-columns: 1fr 1fr 64px 40px;
  grid-template-areas: "l a u d" "m n n n";
}
.piece > .pc-m:nth-of-type(1) { grid-area: l; }
.piece > .pc-m:nth-of-type(2) { grid-area: a; }
.piece .pc-uds { grid-area: u; }
.piece .pc-mat { grid-area: m; }
.piece .pc-name { grid-area: n; }
.piece .piece-del { grid-area: d; }
.pieces:not(.has-mats) .pc-mat-col { display: none; }
.pieces:not(.has-mats) .piece { grid-template-areas: "l a u d" "n n n n"; }
.piece input, .piece select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: var(--paper); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s;
}
.piece input:focus, .piece select:focus { outline: none; border-color: var(--ink); background: var(--white); }
.pc-m { display: grid; gap: 4px; min-width: 0; }
.piece .pc-canto {
  min-height: 30px; padding: 3px 26px 3px 8px; font-size: 12px; border-radius: 6px;
  background-color: transparent; border: 1px dashed var(--line-2); color: var(--mute);
}
.piece .pc-canto.is-on { border: 1.5px solid var(--ink); background-color: var(--yellow-3); color: var(--ink); font-weight: 600; }
.pc-m:has(.pc-canto[data-n="1"]) input { box-shadow: inset 0 -3px 0 var(--ink); }
.pc-m:has(.pc-canto[data-n="2"]) input { box-shadow: inset 0 -3px 0 var(--ink), inset 0 -7px 0 var(--paper), inset 0 -10px 0 var(--ink); }
.piece .pc-name { min-height: 40px; font-size: 14px; }
.piece-del { width: 40px; height: 40px; border-radius: 50%; font-size: 22px; color: var(--mute); margin-top: 3px; }
.piece-del:hover { background: var(--paper-2); color: var(--err); }
.pieces:not(:has(.piece + .piece)) .piece-del { visibility: hidden; }
.piece + .piece { padding-top: 10px; border-top: 1px dashed var(--line-2); }
.piece.is-new { animation: pieceIn .5s var(--ease-out); }
@keyframes pieceIn { from { opacity: 0; transform: translateY(-6px); } }
.pieces-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pc-canto-tipo { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.pc-canto-tipo select { min-height: 40px; padding: 6px 30px 6px 10px; border-radius: var(--radius-sm); background-color: var(--paper); border: 1.5px solid transparent; font-weight: 400; }

/* Resultado del despiece */
.dsp {
  display: grid; gap: 16px; margin-top: 6px;
  padding: 18px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
}
.dsp[hidden] { display: none; }
.dsp .eyebrow { color: var(--yellow); margin: 0 0 2px; }
.dsp-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 16px; }
.dsp-title { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1; }
.dsp-total { font: 500 13px/1.4 var(--mono); color: var(--yellow-3); text-align: right; }
.dsp-total b { color: var(--yellow); font-size: 20px; font-weight: 600; }
.dsp-mats { display: grid; gap: 14px; }
.dsp-mat { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: rgba(247,242,232,.06); border: 1px solid var(--line-light); }
.dsp-mat h4 { font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dsp-mat h4 .mat-tag { position: static; background: var(--yellow); color: var(--ink); }
.dsp-mat h4 small { font: 400 12px var(--mono); color: rgba(247,242,232,.65); }
.dsp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.dsp-stats div { padding: 8px 10px; border-radius: 8px; background: rgba(247,242,232,.07); }
.dsp-stats dt { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: rgba(247,242,232,.6); }
.dsp-stats dd { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dsp-stats .is-key { background: var(--yellow); color: var(--ink); }
.dsp-stats .is-key dt { color: var(--ink-3); }
.dsp-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dsp-board { display: grid; gap: 4px; }
.dsp-board svg { width: 100%; height: auto; display: block; background: #fff; border-radius: 4px; }
.dsp-board figcaption { font: 400 11px var(--mono); color: rgba(247,242,232,.65); }
.dsp-warn { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: #FDF1EF; color: var(--err); }
.dsp-note { font-size: 12px; color: rgba(247,242,232,.6); }
.dsp.is-busy .dsp-mats { opacity: .5; transition: opacity .2s; }

@media (min-width: 540px) {
  .mat { grid-template-columns: 1.1fr 1.4fr .8fr; }
  .mat > .field:nth-of-type(2) { grid-column: auto; grid-row: auto; }
  .mats:has(.mat + .mat) .mat { padding-right: 46px; }
  .pieces-head {
    display: grid; gap: 6px; grid-template-columns: 1fr 1fr 64px 1.2fr 40px;
    font-size: 12px; font-weight: 600; color: var(--mute);
  }
  .pieces-head small { font-weight: 400; }
  .pieces.has-mats .pieces-head { grid-template-columns: 1fr 1fr 64px 58px 1.2fr 40px; }
  .pieces:not(.has-mats) .pieces-head .pc-mat-col { display: none; }
  .piece, .pieces:not(.has-mats) .piece { grid-template-columns: 1fr 1fr 64px 1.2fr 40px; grid-template-areas: "l a u n d"; }
  .pieces.has-mats .piece { grid-template-columns: 1fr 1fr 64px 58px 1.2fr 40px; grid-template-areas: "l a u m n d"; }
  .piece .pc-name { min-height: 46px; }
  .dsp { padding: 22px; }
  .dsp-stats { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   11. Cocinas: diseñador a medida
   ============================================================= */
.kc-view { position: relative; display: grid; gap: 8px; }
.kc-view[hidden] { display: none; }
.kc-elev { border-radius: var(--radius); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.kc-elev svg { display: block; width: 100%; height: auto; max-height: 62vh; }
.kc-elev .kc-m { cursor: pointer; }
.kc-elev .kc-hit { fill: transparent; stroke: none; }
.kc-elev .kc-m:hover .kc-hit { fill: rgba(240,179,35,.18); }
.kc-elev .kc-m.is-sel .kc-hit { fill: rgba(240,179,35,.16); stroke: var(--yellow-2); stroke-width: 1.2; }
.kc-t { font: 500 7px var(--mono); fill: var(--mute); }
.kc-t-b { font-size: 8px; font-weight: 600; fill: var(--ink); }
.kc-t-esq { font: 500 7px var(--mono); fill: #A99B84; letter-spacing: .05em; }
.kc-cota { stroke: var(--mute); stroke-width: .5; }
.kc-walltabs { display: flex; gap: 6px; flex-wrap: wrap; }
.kc-walltabs[hidden] { display: none; }
.kc-walltabs button {
  padding: 7px 14px; border-radius: 2px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--line-2); background: var(--white);
}
.kc-walltabs button small { font: 400 11px var(--mono); color: var(--mute); }
.kc-walltabs button[aria-selected="true"] { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.kc-walltabs button[aria-selected="true"] small { color: var(--yellow-3); }
.kc-view { grid-template-columns: 1fr auto; grid-template-areas: "tabs plan" "elev elev"; align-items: end; }
.kc-walltabs { grid-area: tabs; align-self: center; }
.kc-elev { grid-area: elev; }
.kc-plan {
  grid-area: plan; width: 112px;
  padding: 5px; border-radius: 10px; background: var(--white); border: 1px solid var(--line);
}
@media (min-width: 960px) { .kc-plan { width: 150px; } }
.kc-plan[hidden] { display: none; }
.kc-plan svg { display: block; width: 100%; height: auto; max-height: 96px; }
.kc-pw { fill: #8C8070; cursor: pointer; }
.kc-pw.is-on { fill: var(--yellow-2); }
.kc-pm { fill: var(--paper-2); stroke: var(--ink-3); stroke-width: 1.2; }
.kc-pm.is-alta { fill: #D9CDB6; }
.kc-pm.is-hueco { fill: none; stroke-dasharray: 4 3; }
.kc-pa { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.kc-pt { font: 600 24px var(--sans); fill: var(--mute); cursor: pointer; }
.kc-pt.is-on { fill: var(--ink); }

.kc-chips .chip { display: inline-flex; align-items: center; gap: 7px; }
.kc-ico { width: 18px; height: 14px; border: 0 solid currentColor; flex: none; }
.kc-ico-lineal { border-top-width: 4px; }
.kc-ico-l { border-top-width: 4px; border-right-width: 4px; }
.kc-ico-u { border-top-width: 4px; border-left-width: 4px; border-right-width: 4px; }
.kc-ico-paralela { border-top-width: 4px; border-bottom-width: 4px; }
.kc-walls { display: flex; flex-wrap: wrap; gap: 8px; }
.kc-wallin {
  display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px;
  border-radius: 2px; background: var(--white); border: 1.5px solid var(--line-2); font-size: 13px; font-weight: 600;
}
.kc-wallin input { width: 66px; min-height: 34px; padding: 4px 8px; border-radius: 2px; border: 0; background: var(--paper); font: 600 15px var(--sans); text-align: right; }
.kc-wallin input:focus { outline: 2px solid var(--ink); }
.kc-wallin em { font-style: normal; font-weight: 400; color: var(--mute); padding-right: 6px; }

.kc-runs { display: grid; gap: 14px; }
.kc-runbox { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.kc-runhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.kc-fit { font: 500 12px var(--mono); padding: 3px 8px; border-radius: 2px; }
.kc-fit.is-ok { background: #E3F0E1; color: var(--ok); }
.kc-fit.is-gap { background: var(--yellow-3); color: var(--ink-2); }
.kc-fit.is-over { background: #FDF1EF; color: var(--err); }
.kc-fitbtn { font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.kc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kc-row {
  display: grid; gap: 6px; align-items: end;
  grid-template-columns: 1fr 1fr auto; grid-template-areas: "t t t" "w h b";
  padding: 8px; border-radius: 10px; background: var(--paper);
  transition: box-shadow .2s, background-color .2s;
}
.kc-row.is-sel { background: var(--yellow-3); box-shadow: inset 0 0 0 1.5px var(--yellow-2); }
.kc-row select { grid-area: t; min-height: 38px; padding: 6px 10px; border-radius: 8px; border: 1.5px solid transparent; background-color: var(--white); font-weight: 600; font-size: 14px; }
.kc-row .kc-num:nth-of-type(1) { grid-area: w; }
.kc-row .kc-num:nth-of-type(2) { grid-area: h; }
.kc-num { display: grid; gap: 2px; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.kc-num input { width: 100%; min-height: 38px; padding: 6px 8px; border-radius: 8px; border: 1.5px solid transparent; background: var(--white); font: 600 15px var(--sans); color: var(--ink); }
.kc-num input:disabled { opacity: .35; }
.kc-num select { width: 100%; min-height: 38px; padding: 6px 22px 6px 8px; border-radius: 8px; border: 1.5px solid transparent; background-color: var(--white); background-position: right 6px center; font: 600 15px var(--sans); color: var(--ink); }
.kc-num select:focus { outline: none; border-color: var(--ink); }
.kc-row select:focus, .kc-num input:focus { outline: none; border-color: var(--ink); }
.kc-rowbtns { grid-area: b; display: flex; gap: 2px; }
.kc-rowbtns button { width: 34px; height: 38px; border-radius: 8px; font-size: 20px; line-height: 1; color: var(--ink-3); }
.kc-rowbtns button:hover:not(:disabled) { background: var(--white); color: var(--ink); }
.kc-rowbtns button:disabled { opacity: .25; }
.kc-rowbtns [data-del]:hover { color: var(--err) !important; }
.kc-runbox .kc-adds button { font-size: 12px; padding: 5px 10px; }

.kc-mel { max-height: 172px; overflow-y: auto; padding: 4px; margin: -4px; gap: 7px; }
.kc-mel .kc-sw { width: 34px; height: 34px; }
.kc-sw { background: var(--c); }

.kc-info {
  margin-top: 36px; display: grid; gap: 18px;
  padding: 24px; border-radius: calc(var(--radius) + 6px); border: 1px dashed var(--line-2);
}
.kc-info-head h3 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.05; margin: 2px 0 6px; }
.kc-info-head p:last-child { color: var(--mute); font-size: 14px; max-width: 60ch; }
.kc-info-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.kc-info-list li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--paper); font-size: 13px; color: var(--mute); }
.kc-info-list b { font-size: 15px; color: var(--ink); }
.kc-info-marca { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.kc-info .link-arrow { justify-self: start; }

@media (max-width: 959px) {
  .kc-elev svg { max-height: 36vh; }
  .kc-stage { box-shadow: 0 10px 14px -14px rgba(23,20,15,.4); }
}
@media (min-width: 540px) {
  .kc-row { grid-template-columns: 1.5fr 76px 76px auto; grid-template-areas: "t w h b"; }
}
@media (min-width: 960px) {
  .kc-info { grid-template-columns: 300px 1fr; align-items: start; gap: 28px; }
  .kc-info .link-arrow { grid-column: 2; }
}
@media (max-width: 539px) {
  .piece .pc-canto { padding: 3px 18px 3px 6px; font-size: 11px; background-position: right 4px center; }
  .dsp-total { text-align: left; width: 100%; }
}

/* Cocinas: opciones de cada módulo, laterales, herrajes y revisión */
.kc-tri { fill: none; stroke: rgba(23,20,15,.42); stroke-width: .35; stroke-dasharray: 2 1.4; }
.kc-t-sm { font-size: 5px; letter-spacing: .04em; }
.kc-pm.is-fr { fill: #CFE0EA; }
.kc-pm.is-placa { fill: #3A3631; }
.kc-optbtn { width: auto !important; padding: 0 10px; font-size: 12px !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink) !important; }
.kc-row.is-sel .kc-optbtn { text-decoration: none; background: var(--white); }
.kc-det { grid-column: 1 / -1; display: grid; gap: 10px; padding: 10px; margin-top: 2px; border-radius: 8px; background: var(--white); }
.kc-grp { display: grid; gap: 6px; }
.kc-grp-t { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.kc-grp-t small { text-transform: none; letter-spacing: 0; }
.kc-grp-c { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.kc-grp-c .chip { padding: 5px 11px; font-size: 12px; }
.kc-cj { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kc-cjrow { display: inline-flex; align-items: center; border-radius: 8px; background: var(--paper); }
.kc-cjrow select { min-height: 34px; padding: 4px 26px 4px 10px; border: 0; border-radius: 8px; background-color: transparent; font-weight: 600; font-size: 13px; }
.kc-cjrow button { width: 28px; height: 34px; font-size: 17px; color: var(--ink-3); }
.kc-cjrow button:hover { color: var(--err); }
.kc-mini { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 2px; border: 1.5px dashed var(--line-2); }
.kc-mini:hover { background: var(--yellow); border-color: var(--yellow); }
.kc-detnote { font-size: 12px; color: var(--mute); }
.kc-lats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; }
.kc-lats > span { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.kc-sum { display: grid; gap: 16px; padding: 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.kc-sumcol { display: grid; gap: 8px; align-content: start; }
.kc-sumlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: 13px; }
.kc-sumlist li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dotted var(--line-2); }
.kc-sumlist b { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.kc-avisos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.kc-avisos li { padding: 7px 10px; border-radius: 8px; background: var(--yellow-3); color: var(--ink-2); }
.kc-ok { font-size: 13px; padding: 7px 10px; border-radius: 8px; background: #E3F0E1; color: var(--ok); }
@media (min-width: 700px) { .kc-sum { grid-template-columns: 1fr 1fr; } }
@media (max-width: 539px) {
  .kc-row { grid-template-columns: 1fr 1fr; grid-template-areas: "t t" "w h" "b b"; }
  .kc-rowbtns { justify-content: flex-end; }
  .kc-optbtn { margin-right: auto; }
}
.kc-desp-t { margin-top: 10px; }
.kc-mt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-right: 6px; border-radius: 2px; background: var(--ink); color: var(--yellow); font: 600 10px var(--mono); font-style: normal; }
.kc-despchk { align-items: flex-start; }
.kc-despchk small { color: var(--mute); }
.kc-desp-t { margin-top: 10px; }
.kc-mt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-right: 6px; border-radius: 2px; background: var(--ink); color: var(--yellow); font: 600 10px var(--mono); font-style: normal; }
.kc-despchk { align-items: flex-start; }
.kc-despchk small { color: var(--mute); }

/* Cajones: distribución y frente a mano · laterales por pared */
.kc-cjrow { gap: 4px; padding: 3px 4px 3px 8px; }
.kc-cjrow i { font: 600 11px var(--mono); font-style: normal; color: var(--mute); }
.kc-cjrow label { display: grid; gap: 0; }
.kc-cjrow small { font: 500 9px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mute); padding-left: 2px; }
.kc-cjrow select { min-height: 30px; padding: 2px 22px 2px 4px; }
.kc-cjrow input { width: 62px; min-height: 30px; padding: 2px 6px; border-radius: 6px; border: 1.5px solid transparent; background: var(--white); font: 600 13px var(--sans); }
.kc-cjrow input:focus { outline: none; border-color: var(--ink); }
.kc-latbox { gap: 10px; }
.kc-latbox b small { font-weight: 400; color: var(--mute); }
.kc-latrow { display: grid; gap: 6px; }
.kc-latrow > span { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
@media (min-width: 540px) { .kc-latrow { grid-template-columns: 76px 1fr; align-items: center; } }

.kc-bt { display: grid; gap: 2px; font-size: 12px; font-weight: 600; }
.kc-bt small { font-weight: 400; color: var(--mute); }
.kc-bt select { min-height: 32px; padding: 3px 26px 3px 8px; border-radius: 8px; border: 1.5px solid transparent; background-color: var(--paper); font-weight: 600; font-size: 13px; }
.kc-grp-c .kc-detnote { flex-basis: 100%; }
.chip[disabled] { cursor: default; opacity: 1; }
.kc-num select { grid-area: auto; }
.kc-row > select { grid-area: t; }
@media (min-width: 540px) { .kc-row { grid-template-columns: 1.5fr 84px 84px auto; } }
.kc-num select { padding-right: 20px; background-position: right 4px center; }

/* ---------- Menú: Productos desplegable ---------- */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop-btn span { font-size: 10px; transition: transform .25s; }
.nav-drop-panel {
  position: absolute; top: calc(100% + 14px); left: -18px; z-index: 30; min-width: 230px;
  display: grid; gap: 0; padding: 10px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(23,20,15,.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel, .nav-drop.is-open .nav-drop-panel { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover .nav-drop-btn span, .nav-drop.is-open .nav-drop-btn span { transform: rotate(180deg); }
.nav-drop-panel a { padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.nav-drop-panel a::after { display: none; }
.nav-drop-panel a:hover { background: var(--yellow-3); }
.nav-drop-panel .nav-sub { padding: 5px 10px 5px 26px; font-size: 13px; color: var(--mute); }
.nav-drop-panel .nav-sub::before { content: "–"; margin-right: 6px; }
.nav-drop-panel .nav-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; font-weight: 600; }
/* En el menú del móvil, la lista va abierta debajo de «Productos» */
.nav-links.is-open .nav-drop { display: block; border-bottom: 1px solid var(--line); }
.nav-links.is-open .nav-drop-btn { border-bottom: 0; }
.nav-links.is-open .nav-drop-btn span { display: none; }
.nav-links.is-open .nav-drop-panel {
  position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none;
  min-width: 0; padding: 0 0 10px; grid-template-columns: 1fr 1fr;
}
.nav-links.is-open .nav-drop-panel a { font: 500 16px var(--sans); text-transform: none; padding: 7px 0; border-bottom: 0; }
.nav-links.is-open .nav-drop-panel .nav-sub { padding-left: 14px; font-size: 14px; }
.nav-links.is-open .nav-drop-panel .nav-all { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.mat-tab-in { font-size: 14px; margin: 0; }
.mat-tab-in small { color: var(--mute); font-size: 12px; }
.nav-links.is-open .nav-drop-panel { grid-template-columns: 1fr; }

/* ---------- Pedido: puertas, ventanas y persianillas ---------- */
.fs[hidden] { display: none; }
.ob-nada[hidden] { display: none; }
.ob-list { display: grid; gap: 10px; }
.ob-item {
  position: relative; display: grid; gap: 10px; grid-template-columns: 1fr 1fr;
  padding: 14px 44px 14px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
}
.ob-f { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.ob-f input, .ob-f select {
  width: 100%; min-height: 42px; padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; background-color: var(--paper); font: 500 15px var(--sans); color: var(--ink);
}
.ob-f select { padding-right: 30px; }
.ob-f input:focus, .ob-f select:focus { outline: none; border-color: var(--ink); }
.ob-herr { grid-column: 1 / -1; }
.ob-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 400; font-size: 14px; }
.ob-checks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ob-checks input { accent-color: var(--ink); width: 17px; height: 17px; }
.ob-del { position: absolute; top: 8px; right: 6px; }
@media (min-width: 700px) {
  .ob-item { grid-template-columns: 1fr 1fr 1fr 1fr 1fr 70px; align-items: end; }
  .ob-item-sm { grid-template-columns: 1fr 1fr 1fr 70px; }
  .ob-item-sm:not(:has(select)) { grid-template-columns: 1fr 1fr 70px; }
}
@media (min-width: 700px) { .ob-item:not(.ob-item-sm) { grid-template-columns: 1fr 1fr 1fr; } }
.ob-checks { gap: 6px 14px; }

/* ---------- Pedido: diseño de puertas, ventanas y persianillas ---------- */
.ob-dis { grid-column: 1 / -1; display: grid; gap: 14px; padding: 12px; border-radius: var(--radius-sm); background: var(--paper); }
.ob-dis[hidden] { display: none; }
.ob-dis-prev { display: grid; place-items: center; padding: 6px; border-radius: 10px; background: var(--paper-2, #F1EADC); }
.ob-dis-prev svg { display: block; max-width: 100%; height: auto; max-height: 260px; }
.ob-dis-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ob-dis-opts { display: grid; gap: 8px; }
.ob-dis-grp { display: grid; gap: 4px; }
.ob-dis-grp > span { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.ob-dis-grp > div { display: flex; flex-wrap: wrap; gap: 5px; }
.ob-dis-grp .chip { padding: 5px 11px; font-size: 12px; }
.ob-dis-txt textarea { width: 100%; min-height: 64px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1.5px solid transparent; background: var(--white); font: 400 14px/1.4 var(--sans); color: var(--ink); resize: vertical; }
.ob-dis-txt textarea:focus { outline: none; border-color: var(--ink); }
.ob-dis-sk { display: flex; align-items: center; gap: 10px; }
.ob-dis-sk img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.ob-dis-sk img[hidden] { display: none; }
@media (min-width: 700px) { .ob-dis { grid-template-columns: 200px 1fr; align-items: start; } }

.ob-pizarra { width: min(94vw, 640px); max-height: 94vh; padding: 16px; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
.ob-pizarra::backdrop { background: rgba(23,20,15,.55); }
.ob-piz-head { display: grid; gap: 2px; margin-bottom: 10px; }
.ob-piz-head span { font-size: 13px; color: var(--mute); }
.ob-pizarra canvas { display: block; width: 100%; aspect-ratio: 1; max-height: 62vh; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); touch-action: none; cursor: crosshair; }
.ob-piz-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ob-piz-btns > span { flex: 1; }
.ob-pizarra { margin: auto; inset: 0; position: fixed; }

/* =============================================================
   Listones, molduras, tapetas, batientes y zócalos (listones.js)
   ============================================================= */
.strips { background: var(--paper); }
.ls-layout { display: grid; gap: 24px; align-items: start; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ls-noscript { grid-column: 1 / -1; font-size: 15px; }
.js .ls-noscript { display: none; }
.ls-card.is-hidden { display: none; }
.ls-card button {
  grid-template-columns: minmax(0, 1fr);
  display: grid; gap: 2px; width: 100%; height: 100%; text-align: left; padding: 10px 10px 12px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: transform .45s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s;
}
.ls-card button:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ls-card button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ls-card-draw { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: var(--radius-sm); background: var(--paper-2); }
.ls-card-draw svg { width: 88%; height: 90%; }
.ls-card-name { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.15; }
.ls-card-sub { font-size: 12px; color: var(--mute); line-height: 1.35; }

.ls-shape > * { stroke: rgba(23,20,15,.55); stroke-width: 1.2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ls-cota line { stroke: var(--ink-3); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.ls-cota-t { font-family: var(--mono); fill: var(--ink); }
.ls-ph { fill: none; stroke: var(--line-2); stroke-width: 1.5px; stroke-dasharray: 5 4; }
.ls-ph-t { font-family: var(--display); font-weight: 600; fill: var(--ink-2); }
.ls-ph-s { font-family: var(--sans); fill: var(--mute); }

.ls-side { display: grid; gap: 16px; align-content: start; }
.ls-detail, .ls-cart { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 18px 18px 20px; display: grid; gap: 12px; }
.ls-draw { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); background: var(--paper-2); }
.ls-draw { grid-template-columns: 1.5fr 1fr; gap: 4px; padding: 8px; aspect-ratio: auto; height: 200px; }
.ls-draw > div { display: grid; place-items: center; height: 100%; min-width: 0; }
.ls-draw > div:only-child { grid-column: 1 / -1; }
.ls-draw svg { max-height: 100%; width: 100%; height: auto; }
.ls-draw-3d svg, .ls-card-draw svg { filter: drop-shadow(0 6px 6px rgba(23,20,15,.18)); }
.ls-draw-sec { border-left: 1px dashed var(--line-2); }
.ls-testa > use { stroke: rgba(23,20,15,.35); stroke-width: .6px; vector-effect: non-scaling-stroke; }
.ls-medida-txt { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-top: -4px; }
.ls-detail .eyebrow { margin: 4px 0 0; }
.ls-detail h3 { font-family: var(--display); font-weight: 600; font-size: 28px; }
.ls-uso { font-size: 14px; color: var(--ink-3); }
.ls-grp { display: grid; gap: 6px; }
.ls-grp > span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.ls-grp > span small { text-transform: none; letter-spacing: 0; }
.ls-grp > div, .ls-row > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ls-grp > p { font-size: 15px; font-weight: 500; }
.ls-grp .chip { padding: 6px 12px; font-size: 13px; }
.ls-rows { display: grid !important; gap: 6px; }
.ls-row { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; }
.ls-row > b { font: 600 12px/30px var(--mono); text-align: right; color: var(--ink-2); }
.ls-row > b::after { content: " ×"; color: var(--mute); font-weight: 400; display: none; }
.ls-rows-hint { font-size: 12px; color: var(--mute); }
.ls-qty { display: flex; gap: 8px; align-items: stretch; }
.ls-qty input { width: 96px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); background: var(--paper); font: 600 18px var(--mono); }
.ls-qty input:focus { outline: none; border-color: var(--ink); }
.ls-seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 2px; padding: 3px; }
.ls-seg button { padding: 4px 14px; border-radius: 2px; font-size: 14px; font-weight: 500; }
.ls-seg button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.ls-res { font-size: 14px; min-height: 1.6em; }
.ls-bars { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.ls-bar { width: 52px; height: 9px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--paper-2) 0 3px, var(--line) 3px 5px); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.ls-bar i { display: block; height: 100%; background: var(--wood); }
.ls-bar-more { font: 500 12px var(--mono); color: var(--mute); }
[data-ls-add].is-done { --bg: var(--ok); }
[data-ls-add]:disabled { opacity: .45; pointer-events: none; }

.ls-cart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ls-cart-head h3 { font-family: var(--display); font-weight: 600; font-size: 22px; }
.ls-cart-head span { font-size: 13px; color: var(--mute); }
.ls-cart-empty { font-size: 14px; color: var(--mute); }
.ls-cart-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ls-cart-list b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.ls-cart-list small { display: block; font-size: 12px; color: var(--mute); line-height: 1.35; }
.ls-step { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 2px; }
.ls-step button { width: 30px; height: 30px; font-size: 18px; line-height: 1; border-radius: 50%; }
.ls-step button:hover { background: var(--paper-2); }
.ls-step output { min-width: 26px; text-align: center; font: 600 14px var(--mono); }
.ls-cart-btns { display: grid; gap: 8px; }

/* En el formulario */
.ls-flist { display: grid; gap: 8px; }
.ls-frow { display: grid; grid-template-columns: 1fr 76px 40px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--paper); }
.ls-frow > span { font-size: 14px; line-height: 1.35; }
.ls-frow > span b { display: block; }
.ls-fempty { font-size: 14px; color: var(--mute); }
.ls-fempty a, .fs .hint a { text-decoration: underline; }

@media (min-width: 960px) {
  .ls-layout { grid-template-columns: 1fr 360px; }
  .ls-side { position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (max-width: 539px) {
  .ls-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ls-card-name { font-size: 15px; }
}

/* Puertas: solo premarco, sin diseño ni herrajes */
.is-premarco .ob-herr, .is-premarco .ob-dis, .is-premarco [data-ob-premarco] { display: none !important; }
.is-premarco [data-ob-hueco] { display: none !important; }

/* Premarco: medidas y dibujo (premarco.js) */
.ob-pm { grid-column: 1 / -1; display: grid; gap: 14px; padding: 12px; border-radius: var(--radius-sm); background: var(--paper); }
.ob-pm[hidden] { display: none; }
.ob-pm-prev { display: grid; place-items: center; padding: 8px; border-radius: 10px; background: var(--paper-2); }
.ob-pm-prev svg { width: 100%; max-height: 340px; height: auto; }
.ob-pm-prev .pm-cota line { stroke: var(--ink-3); stroke-width: 1; }
.ob-pm-prev .pm-txt text { font-family: var(--mono); fill: var(--ink); }
.ob-pm-side { display: grid; gap: 10px; align-content: start; }
.ob-pm-tit { font: 600 14px var(--sans); }
.ob-pm-tit small { font-weight: 400; color: var(--mute); }
.ob-pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
@media (min-width: 720px) { .ob-pm { grid-template-columns: 1.1fr 1fr; } }

/* =============================================================
   Configurador de puertas (puertas.js)
   ============================================================= */
.doors { background: var(--paper-2); }
.pz { display: grid; gap: 22px; align-items: start; }
.pz-stage { display: grid; gap: 14px; }
.pz-draw { border-radius: var(--radius); overflow: hidden; background: #EFE9DE; border: 1px solid var(--line); }
.pz-draw svg { width: 100%; height: auto; max-height: 520px; }
.pz-sum { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 14px 16px; }
.pz-sum ul { display: grid; gap: 4px; }
.pz-sum li { font-size: 14px; line-height: 1.4; padding-left: 14px; position: relative; }
.pz-sum li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.pz-sum li:first-child { font-weight: 600; }
.pz-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
[data-pz-add].is-done { --bg: var(--ok); }
.pz-qs { display: grid; gap: 12px; }
.pz-q { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 14px 16px 16px; display: grid; gap: 10px; }
.pz-q-t { font-family: var(--display); font-weight: 600; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.pz-q-t > span { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--yellow); font: 600 13px var(--mono); }
.pz-q-t small { font: 400 13px var(--sans); color: var(--mute); }
.pz-q-h { font-size: 13px; color: var(--mute); margin-top: -4px; }
.pz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-chips + .pz-chips { margin-top: 2px; }
.pz-chips .chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; font-size: 14px; text-align: left; }
.pz-chips .chip small { display: block; font-size: 11px; font-weight: 400; color: var(--mute); }
.pz-chips .chip.is-active small { color: var(--paper-2); }
.pz-chips .chip:has(small) { flex-direction: column; align-items: flex-start; gap: 0; border-radius: 12px; }
.pz-sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(23,20,15,.25); flex: none; }
.pz-sub { display: grid; gap: 5px; }
.pz-sub > span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.pz-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 10px; }
.pz-in input, .pz-nota textarea { border: 1.5px solid var(--line-2); }
.pz-nota textarea { width: 100%; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--paper); font: 400 14px/1.4 var(--sans); resize: vertical; }
.pz-otra { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.pz-otra input { accent-color: var(--ink); width: 17px; height: 17px; }

/* En el formulario */
.pz-flist { display: grid; gap: 8px; margin-bottom: 6px; }
.pz-flist-in { display: grid; gap: 8px; }
.pz-frow { display: grid; grid-template-columns: 54px 1fr 70px 40px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--paper); }
.pz-frow-img svg { width: 54px; height: auto; border-radius: 6px; }
.pz-frow-txt b { display: block; font-size: 14px; }
.pz-frow-txt small { display: block; font-size: 12px; color: var(--mute); line-height: 1.35; }

@media (min-width: 960px) {
  .pz { grid-template-columns: 400px 1fr; gap: 28px; }
  .pz-stage { position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
}
@media (max-width: 959px) {
  /* Móvil: el dibujo queda fijo arriba mientras se contestan las preguntas */
  .pz-stage { display: contents; }
  .pz-draw { order: 0; position: sticky; top: 64px; z-index: 5; height: 34vh; min-height: 200px; box-shadow: 0 10px 20px -14px rgba(23,20,15,.45); }
  .pz-draw svg { height: 100%; max-height: none; }
  .pz-qs { order: 1; }
  .pz-sum { order: 2; }
  .pz-btns { order: 3; }
  .pz [data-pz-cart] { order: 4; }
}

/* =============================================================
   10. Estilo señorial (27/10/2026)
   Casa con solera: serif clásica, negro y marfil, oro viejo.
   Va al final para mandar sobre lo anterior.
   ============================================================= */
:root {
  --yellow:   #B8913F;   /* oro viejo (el amarillo de la marca, apagado) */
  --yellow-2: #9A7832;
  --yellow-3: #E9DDBF;
  --paper:    #F6F2EA;   /* marfil */
  --paper-2:  #ECE5D7;
  --white:    #FDFBF7;
  --display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --radius: 3px;
  --radius-sm: 2px;
  --shadow: 0 1px 2px rgba(23,20,15,.05), 0 14px 34px -18px rgba(23,20,15,.28);
}
::selection { background: var(--yellow-3); color: var(--ink); }

/* Titulares */
.section-title {
  font-weight: 500; font-size: clamp(42px, 6.2vw, 92px);
  line-height: 1.02; letter-spacing: -0.012em;
}
.section-title em, .hero-title em { font-weight: 500; color: var(--yellow-2); letter-spacing: -0.01em; }
.services .section-title em, .hero .hero-title em { color: var(--yellow); }
h1, h2, h3 { letter-spacing: -0.005em; }

/* Antetítulos: versalitas espaciadas con filete dorado */
.kicker, .eyebrow {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: .24em; color: var(--yellow-2);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow-light, .services .eyebrow { color: var(--yellow); }
.kicker-dot { display: none; }

/* Botones: rectangulares, letra espaciada, sin saltos */
.btn {
  border-radius: 2px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; border-width: 1px;
}
.btn:hover { transform: none; box-shadow: none; }
.btn-ink:hover { --bg: var(--yellow-2); border-color: var(--yellow-2); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 13px; }
.btn-sm { min-height: 36px; font-size: 11.5px; }
.btn-yellow { --bg: var(--yellow); --fg: var(--ink); }
.link-arrow { font-weight: 500; border-bottom-width: 1px; }

/* Etiquetas / opciones: tipo pestaña fina */
.chip {
  border-radius: 2px; border-width: 1px; font-size: 13.5px; font-weight: 500;
  background: var(--white);
}
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-active small { color: var(--yellow-3); }

/* Barra de navegación: marfil con filete, no amarilla */
.topbar { background: var(--ink); color: rgba(246,242,234,.8); }
.nav { background: rgba(246,242,234,.97); box-shadow: 0 1px 0 var(--line); }
.nav-links a { font-size: 14px; letter-spacing: .02em; }
.nav-logo-sub { font-family: var(--sans); font-size: 10px; letter-spacing: .3em; color: var(--yellow-2); }
.nav-links.is-open a { font-weight: 500; font-size: 30px; }

/* Portada: fondo negro cálido con veta, letra marfil */
.hero { background: var(--ink); color: var(--paper); }
.hero::before {
  background:
    radial-gradient(ellipse at 85% 40%, rgba(184,145,63,.16), transparent 60%),
    repeating-radial-gradient(ellipse at 120% 140%, transparent 0 22px, rgba(246,242,234,.025) 23px 24px);
}
.hero .kicker { color: var(--yellow); }
.hero-title { font-weight: 500; line-height: .98; letter-spacing: -0.015em; font-size: clamp(50px, 7.2vw, 112px); }
.hero-sub { color: rgba(246,242,234,.78); }
.hero .btn-ink { --bg: var(--yellow); --fg: var(--ink); border-color: var(--yellow); }
.hero .btn-ink:hover { --bg: var(--paper); border-color: var(--paper); }
.hero .btn-ghost { --fg: var(--paper); border-color: rgba(246,242,234,.45); }
.hero .btn-ghost:hover { --bg: var(--paper); --fg: var(--ink); }
.hero-facts, .hero-facts li { color: rgba(246,242,234,.72); }
.hero-facts strong { color: var(--paper); }
.stack-legend li, .stack-legend span { color: rgba(246,242,234,.75); }

/* Cinta de materiales: cursiva serif, discreta */
.marquee { padding: 14px 0; border-top: 1px solid rgba(184,145,63,.35); }
.marquee-track { font-weight: 500; font-style: italic; font-size: clamp(20px, 2.4vw, 30px); animation-duration: 60s; }

/* Categorías: título abajo a la izquierda, como placa */
.cats { gap: 6px; }
.cat a { place-content: end start; justify-items: start; text-align: left; padding: 20px 22px; height: 190px; }
.cat a::after { background: linear-gradient(180deg, rgba(23,20,15,.12) 30%, rgba(23,20,15,.78)); }
.cat a::before { height: 2px; }
.cat-name { font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); text-shadow: none; }
.cat-sub { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow-3); }

/* Numeraciones: cifra serif dorada con aro fino, sin círculo amarillo */
.fs legend span, .pz-q-t > span {
  background: none; border: 1px solid var(--yellow); color: var(--yellow-2);
  font-family: var(--display); font-size: 16px; font-weight: 600;
}
.fs legend, .pz-q-t { font-weight: 600; font-size: 22px; }

/* Servicios: sin dibujos, cifras grandes */
.step-visual { display: none; }
.step-num { font-family: var(--display); font-style: italic; font-size: 44px; line-height: 1; color: var(--yellow); }
.step h3 { font-weight: 500; font-size: 34px; }

/* Tarjetas y paneles: menos redondeo, filetes finos */
.ls-card button, .ls-detail, .ls-cart, .pz-q, .pz-sum, .pz-draw, .swatch-detail, .order-card,
.tb-panel, .ls-draw, .ls-card-draw, .pz-frow, .ls-frow, .ob-pm, .ob-dis, .ob-item { border-radius: 3px; }
.ls-card-name { font-weight: 600; font-size: 20px; }
.ls-detail h3, .swatch-detail h3 { font-weight: 600; font-size: 32px; }
.ls-cart-head h3 { font-weight: 600; font-size: 24px; }
.ls-grp > span, .pz-sub > span, .ob-dis-grp > span {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; color: var(--mute);
}
.pz-sw { border-radius: 2px; }
.pz-sum li::before { width: 10px; height: 1px; border-radius: 0; top: .75em; }
.tb-info h3 { font-weight: 500; }

/* WhatsApp: más discreto */
.wa-float { border-radius: 50%; padding: 0; width: 52px; height: 52px; justify-content: center; background: #1F8F55; box-shadow: 0 8px 22px -10px rgba(23,20,15,.5); }
.wa-float span { display: none !important; }
.wa-float svg { width: 26px; height: 26px; }

/* Móvil: el dibujo de la puerta, bajo la barra */
@media (max-width: 959px) { .pz-draw { top: 92px; } }
.cat-ferreteria .cat-bg, .cat-ventanas .cat-bg { filter: saturate(.35) sepia(.25) brightness(.78); }
.windows { background: var(--paper); }
.hardware { background: var(--paper-2); }

/* Ferretería: lo que también tenemos en tienda */
.fr-more { margin-top: 36px; padding: 24px; border: 1px solid var(--line); background: var(--white); }
.fr-more ul { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fr-more li { padding: 8px 14px; border: 1px solid var(--line-2); font-size: 14px; background: var(--paper); }
.fr-more-h { color: var(--mute); font-size: 14px; margin: 0; }
.fr-more-h a { color: var(--ink); }
/* Avisos «a consultar» de los configuradores */
.pz-consulta { margin: 6px 0 0; padding: 10px 14px; border-left: 3px solid #B8913F; background: var(--white); font-size: 14px; color: var(--ink-3); }
.ls-consulta { margin: 0 0 20px; } .tb-aviso { margin: 18px 0 0; }
