/* =====================================================================
   MÁS MADERA · Prototipo 2 · "Showroom de autor"
   Móvil primero (375 px) → tablet (768) → escritorio (1100+)
   ===================================================================== */

:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --bg-2: #13110f;
  --bg-3: #1c1916;
  --ink: #f3ede4;
  --ink-2: #d8cfc3;
  --muted: #a69c8f;
  --line: rgba(243, 237, 228, .12);
  --line-2: rgba(243, 237, 228, .24);
  --accent: #d09a6a;
  --accent-ink: #1a120b;
  --wa: #1f9d55;
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4.2vw, 64px);
  --header: 60px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* Veta de madera: ruido estirado en horizontal */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='450'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.11' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.06 0 0 0 0 0.03 2.2 0 0 0 -0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fine: repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 6px);
}
@media (min-width: 900px) { :root { --header: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); max-width: 1680px; margin: 0 auto; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.sec-title {
  font: 400 clamp(2.3rem, 6.4vw, 3.4rem)/1 var(--display);
  letter-spacing: -.01em;
  margin-top: .6rem;
  text-wrap: balance;
}
/* En escritorio, títulos de sección en una sola línea */
@media (min-width: 900px) { .sec-title { white-space: nowrap; font-size: clamp(2.6rem, min(4vw, 7.4vh), 4.6rem); } }
.lead { color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 48ch; }
.note { color: var(--muted); font-size: .85rem; margin-top: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.faq-h { font: inherit; margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: 999px;
  border: 1px solid transparent; background: none; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #e0ae80; }
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: .88rem; }
.btn--lg { min-height: 56px; padding: 0 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Pantalla de carga ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  cursor: pointer; overflow: hidden;
}
.intro-short .loader > * { display: none; }
.loader-rings {
  position: absolute; left: 50%; top: 50%;
  width: min(82vmin, 620px); height: min(82vmin, 620px);
  transform: translate(-50%, -50%);
  fill: none; stroke: var(--accent); stroke-width: .55; stroke-linecap: round;
}
.loader-rings .pith { fill: var(--accent); stroke: none; }
.loader-rings .check { stroke-width: .35; opacity: .55; }
.loader-title { position: relative; z-index: 2; }
.loader-word {
  display: block;
  font: 400 clamp(3.2rem, 14vw, 10rem)/1 var(--display);
  letter-spacing: .02em; white-space: nowrap;
  color: var(--ink);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 230, 200, .18);
  clip-path: inset(0 100% 0 0);
}
.loader-cutter {
  position: absolute; top: -8%; bottom: -8%; left: 0; width: 2px;
  background: linear-gradient(transparent, #fff3e3 20%, #fff3e3 80%, transparent);
  box-shadow: 0 0 18px 4px rgba(255, 210, 160, .45);
  opacity: 0;
}
.loader-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.loader-count { font: 200 clamp(2.2rem, 6vw, 3.6rem)/1 var(--sans); letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.loader-skip { position: absolute; top: max(20px, env(safe-area-inset-top)); right: var(--gutter); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero.is-revealing { z-index: 101; }

/* ---------- Progreso, cursor ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.cursor { display: none; }
.has-cursor .cursor {
  display: block; position: fixed; left: 0; top: 0; width: 0; height: 0;
  z-index: 200; pointer-events: none; mix-blend-mode: difference;
}
.has-cursor .cursor::before {
  content: ""; position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%;
  background: var(--ink); transform: scale(.14); transition: transform .45s var(--ease), background-color .3s;
}
.cursor span {
  position: absolute; left: -40px; top: -40px; width: 80px; height: 80px;
  display: grid; place-items: center; border-radius: 50%;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s var(--ease);
}
.has-cursor .cursor.is-ver { mix-blend-mode: normal; }
.has-cursor .cursor.is-ver::before { transform: scale(1); background: var(--accent); }
.has-cursor .cursor.is-ver span { opacity: 1; transform: none; }
.has-cursor .cursor.is-hidden::before { transform: scale(0); }
.has-cursor body, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }

/* ---------- Encabezado ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
  transition: transform .55s var(--ease), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(11, 10, 9, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; font-size: .82rem; letter-spacing: .26em; }
.logo svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.3; }
.nav { display: none; gap: 2rem; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header .btn--accent { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .3rem 0 1rem;
  background: none; border: 0; font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.menu-btn i { position: relative; width: 22px; height: 10px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn i::before { top: 0; }
.menu-btn i::after { bottom: 0; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-4.25px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  padding: calc(var(--header) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font: 400 clamp(2.3rem, 11vw, 3.4rem)/1.15 var(--display); text-decoration: none; padding: 4px 0; border-bottom: 1px solid var(--line); }
.menu-foot { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .header .btn--accent { display: inline-flex; }
  .menu-btn { display: none; }
}

/* ---------- Video / imagen de respaldo ---------- */
.media { position: absolute; inset: 0; overflow: hidden; background: var(--bg-2); }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media video { opacity: 0; transition: opacity 1s ease; }
.media.is-playing video { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 540px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero-media .media img { transform: scale(1.06); }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,10,9,.62) 0%, rgba(11,10,9,.05) 26%, rgba(11,10,9,.25) 52%, rgba(11,10,9,.94) 100%),
    linear-gradient(90deg, rgba(11,10,9,.5) 0%, rgba(11,10,9,0) 60%);
}
.dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mote { position: absolute; border-radius: 50%; background: rgba(255, 222, 186, .7); filter: blur(.6px); }
.hero-content {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
  display: flex; flex-direction: column; gap: 14px;
}
.hero-eyebrow { color: #ecd2b4; }
.hero-title {
  /* Se ajusta al ancho y al alto: nunca choca con el encabezado */
  font: 400 clamp(2.6rem, min(12.2vw, 11vh), 8rem)/.92 var(--display);
  letter-spacing: -.015em; max-width: 11ch; text-wrap: balance;
}
@media (min-width: 900px) { .hero-title { max-width: 17ch; } }
.hero-title .word { display: inline-block; will-change: transform; }
.hero-lead { color: #ece4d8; font-size: .98rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hero-actions .btn { padding: 0 1rem; font-size: .9rem; }
.hero-facts { display: none; list-style: none; margin: 6px 0 0; padding: 0; gap: 2rem; font-size: .85rem; color: var(--ink-2); }
.hero-facts b { display: block; font: 400 1.9rem/1 var(--display); color: var(--ink); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 28px; width: 24px; height: 64px; display: none; }
.scroll-cue::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.scroll-cue span { position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateY(58px); opacity: 1; } 100% { transform: translateY(60px); opacity: 0; } }
@media (min-height: 700px) and (min-width: 360px) { .hero-facts { display: flex; } }
@media (min-width: 700px) {
  .hero-content { bottom: clamp(36px, 7vh, 96px); gap: clamp(12px, 2.2vh, 20px); }
  .hero-lead { font-size: 1.12rem; }
  .hero-actions .btn { padding: 0 1.4rem; font-size: .95rem; min-height: 52px; }
  .scroll-cue { display: block; }
}
@media (min-width: 1100px) { .hero-content { right: 30%; } }

/* ---------- Secciones (ritmo) ---------- */
.sec-head { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(20px, 2.6vw, 36px); }

/* ---------- Colección: pasillo horizontal (escritorio) ---------- */
.hall { display: none; }
.stories { display: block; }
@media (min-width: 900px) {
  .hall { display: block; position: relative; height: 100vh; overflow: hidden; }
  .stories { display: none !important; }
}
.hall-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.hall.hall--static { height: auto; overflow: visible; }
.hall--static .hall-track { flex-direction: column; width: auto; }
.hall--static .panel { height: 100vh; }
/* Cada mesa: texto a la izquierda y foto a la derecha, en columnas que no se pisan */
.panel {
  position: relative; flex: none; width: 100vw; height: 100%; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 5vw;
  padding: calc(var(--header) + 2vh) var(--gutter) 4vh;
}
.panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 78% 50%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%); pointer-events: none; }
.panel-text { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.9vh, 20px); }
.panel-name {
  /* Tamaño según alto de pantalla y largo del nombre (--len): siempre cabe en su columna */
  font-family: var(--display); font-weight: 400; line-height: .86;
  font-size: min(22vh, 12rem, calc(44vw / (var(--len) * .5)));
  letter-spacing: -.02em; white-space: nowrap; margin: 0;
  will-change: transform;
}
.panel-photo {
  position: relative; z-index: 2;
  height: min(72vh, 680px); aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--bg-3); border: 0; padding: 0;
}
.panel-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.panel-index { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.panel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.panel-badge { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--accent); color: var(--accent); padding: 4px 10px; border-radius: 999px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); }
.from { display: flex; flex-direction: column; }
.from small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.from b { font: 400 clamp(2.2rem, 5.5vh, 3rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.panel-desc { max-width: 46ch; color: var(--ink-2); font-size: .95rem; }
.panel-buy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; }
@media (max-height: 780px) { .panel-desc { display: none; } }

/* ---------- Colección: historias (teléfono) ---------- */
.stories {
  position: relative; margin: 0 var(--gutter);
  height: min(74svh, 660px); min-height: 480px;
  border-radius: 14px; overflow: hidden; background: var(--bg-2);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
@media (min-width: 600px) { .stories { max-width: 520px; margin: 0 auto; } }
.stories-bars { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 6; display: flex; gap: 4px; }
.stories-bars .bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.stories-bars .bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.stories-stage { position: absolute; inset: 0; }
.story { position: absolute; inset: 0; visibility: hidden; }
.story.is-active { visibility: visible; }
.story-img { position: absolute; inset: 0; overflow: hidden; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,9,.55) 0%, rgba(11,10,9,0) 22%, rgba(11,10,9,.15) 45%, rgba(11,10,9,.94) 100%); pointer-events: none; }
.story-top { position: absolute; z-index: 3; top: 26px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #efe6da; }
.story-body { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.story-name { font: 400 clamp(3.4rem, 18vw, 6.5rem)/.84 var(--display); letter-spacing: -.015em; }
.story-name .char { display: inline-block; }
.story-meta { font-size: .85rem; color: var(--ink-2); }
.story-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.story-row .from b { font-size: 2.2rem; }
.story-nav { position: absolute; z-index: 2; top: 40px; bottom: 140px; width: 34%; background: none; border: 0; padding: 0; opacity: 0; }
.story-nav--prev { left: 0; }
.story-nav--next { right: 0; }
.stories-hint { position: absolute; z-index: 4; left: 0; right: 0; bottom: -28px; text-align: center; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.collection .note { margin-top: 44px; }
@media (min-width: 900px) { .collection .note { margin-top: 20px; } }

/* ---------- Recomendador ---------- */
/* Todo el recomendador (controles + planta) cabe en una pantalla */
.finder {
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header) + 12px) 0 20px;
}
.finder > .wrap { width: 100%; }
.finder .sec-title { white-space: nowrap; font-size: clamp(2rem, 8.4vw, 2.6rem); }
.finder-grid { display: grid; gap: 18px; }
.finder-people { display: flex; align-items: baseline; gap: .7rem; margin-top: clamp(8px, 2vh, 24px); font-size: 1.05rem; color: var(--ink-2); }
.finder-people output { font: 400 clamp(3.2rem, min(15vw, 11vh), 6.5rem)/.85 var(--display); color: var(--accent); min-width: .9em; text-align: center; font-variant-numeric: tabular-nums; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 2px 0 0; background: transparent;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line-2) var(--fill)); }
input[type="range"]::-moz-range-track { height: 2px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line-2) var(--fill)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -13px; border-radius: 50%; background: var(--ink); border: 6px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 6px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--accent); }
.range-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); padding: 0 6px; font-variant-numeric: tabular-nums; }
.shape { border: 0; padding: 0; margin: clamp(10px, 2.4vh, 24px) 0 0; }
.shape legend { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.shape label { display: inline-flex; margin-right: 6px; }
.shape input { position: absolute; opacity: 0; pointer-events: none; }
.shape span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: .92rem; transition: background-color .3s, color .3s; }
.shape input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.shape input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.finder-result { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; overflow: hidden; }
.finder-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 4px; }
.finder-name { font: 400 clamp(2.4rem, min(11vw, 8.5vh), 5rem)/.9 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.finder-name .char { display: inline-block; }
.finder-size { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.finder-size span { font-size: .88rem; color: var(--muted); }
.finder-size b { font: 400 clamp(1.5rem, 4vh, 2.2rem)/1.1 var(--display); }
.finder .plan { height: clamp(120px, 24svh, 210px); margin: 8px 0 4px; }
.finder-note { color: var(--muted); font-size: .84rem; min-height: 1.3em; }
.finder-actions { display: flex; gap: 8px; margin-top: 10px; }
.finder-actions .btn { flex: 1 1 auto; min-height: 44px; padding: 0 .9rem; font-size: .88rem; }
.finder-alt { margin-top: 10px; font-size: .84rem; color: var(--muted); }
.finder-alt button { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (min-width: 900px) {
  .finder-grid { grid-template-columns: 1fr 1.15fr; gap: 5vw; align-items: center; }
  .finder .sec-title { font-size: clamp(2.6rem, min(4vw, 7.4vh), 4.6rem); }
  .finder-result { padding: clamp(18px, 3vh, 32px) clamp(24px, 3vw, 40px); }
  .finder .plan { height: clamp(160px, 34vh, 300px); }
  .finder-actions { justify-content: flex-start; }
  .finder-actions .btn { flex: 0 0 auto; padding: 0 1.3rem; font-size: .92rem; }
}

/* ---------- Planta cenital ---------- */
.plan { width: 100%; height: auto; margin: 14px 0 6px; overflow: visible; }
.plan .gridline { stroke: rgba(243, 237, 228, .07); stroke-width: .6; }
.plan .tbl { stroke: rgba(255, 235, 210, .45); stroke-width: 1; }
.plan .chair rect { fill: rgba(243, 237, 228, .08); stroke: var(--ink); stroke-width: 1.1; }
.plan .chair line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.plan .chair.is-opt rect { stroke-dasharray: 3 3; fill: none; stroke: var(--muted); }
.plan .chair.is-opt line { stroke: var(--muted); stroke-width: 1.5; }
.plan .dim { fill: var(--muted); font: 600 9px var(--sans); letter-spacing: .06em; }
.plan .dimline { stroke: var(--accent); stroke-width: .8; }

/* ---------- Índice editorial ---------- */
.index { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.index-head { display: flex; flex-direction: column; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: none; font-size: .86rem; font-weight: 600;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip sup { font-size: .65em; margin-left: 3px; opacity: .7; }
.index-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); position: relative; }
.row-item { border-bottom: 1px solid var(--line); }
/* Cada fila lleva una miniatura fija: se ve qué es antes de leer el nombre */
.row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  width: 100%; padding: 12px 0; background: none; border: 0; text-align: left;
  transition: opacity .4s;
}
.row-num { display: none; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-thumb { position: relative; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: var(--bg-3); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.row-name { display: block; font: 400 clamp(1.45rem, 6.2vw, 3rem)/1.05 var(--display); letter-spacing: -.005em; transition: transform .6s var(--ease), color .3s; }
.row-meta { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); }
.row-cat { display: none; }
.row-price { display: none; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .95rem; }
.row-ico { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.row-ico svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.row-ico .i-arrow { display: none; }
.row[aria-expanded="true"] .row-ico { transform: rotate(45deg); background: var(--ink); color: var(--bg); }
.row-drawer { height: 0; overflow: hidden; }
.drawer-inner { display: grid; gap: 14px; padding: 4px 0 22px; }
.drawer-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--bg-3); }
.drawer-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-inner p { color: var(--ink-2); font-size: .92rem; }
.drawer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-foot .from b { font-size: 2rem; }
.index-float { display: none; }
@media (min-width: 900px) {
  .index-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .chips { justify-content: flex-end; max-width: 52%; }
  .row { grid-template-columns: 2.4rem 112px minmax(0, 1fr) 11rem 9.5rem 44px; gap: 24px; padding: 14px 0; }
  .row-num { display: block; }
  .row-thumb { width: 112px; height: 80px; }
  .row-meta { display: none; }
  .row-cat { display: block; font-size: .85rem; color: var(--muted); }
  .row-price { display: block; text-align: right; }
  .row-ico .i-plus { display: none; }
  .row-ico .i-arrow { display: block; }
  .row[aria-expanded="true"] .row-ico { transform: none; background: none; color: inherit; }
}
.has-hover .index-list:hover .row { opacity: .4; }
.has-hover .index-list .row:hover { opacity: 1; }
.has-hover .row:hover .row-name { transform: translateX(10px); color: var(--accent); }
.has-hover .row:hover .row-thumb img { transform: scale(1.08); }
.has-hover .row:hover .row-ico { background: var(--ink); color: var(--bg); }
.has-hover .index-float {
  display: block; position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: clamp(220px, 20vw, 340px); aspect-ratio: 4 / 5;
  overflow: hidden; border-radius: 4px; opacity: 0; visibility: hidden;
}
.index-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.index-float img.is-current { opacity: 1; }

/* ---------- Maderas ---------- */
.woods-head { position: relative; min-height: 56svh; display: flex; align-items: flex-end; overflow: hidden; padding: 96px 0 40px; }
.woods-head-veil { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(11,10,9,.35) 35%, rgba(11,10,9,.88) 100%); }
.woods-head-text { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.wood-band { position: relative; min-height: 44svh; display: flex; align-items: flex-end; overflow: hidden; border-top: 1px solid rgba(0, 0, 0, .55); }
.band-grain {
  position: absolute; inset: 0;
  background-color: var(--c);
  background-image: var(--grain), var(--fine), linear-gradient(102deg, var(--c) 0%, var(--l) 42%, var(--c) 70%, var(--l) 100%);
  background-size: 900px 450px, 100% 100%, 100% 100%;
  background-position: var(--gx, 0) 0, 0 0, 0 0;
}
.band-grain::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,9,0) 30%, rgba(11,10,9,.82) 100%); }
.band-cover { position: absolute; inset: 0; z-index: 2; background: var(--bg); transform-origin: 100% 50%; will-change: transform; }
.band-blade {
  position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 3px;
  background: linear-gradient(transparent, #fff6ea 15%, #fff6ea 85%, transparent);
  box-shadow: 0 0 28px 8px rgba(255, 214, 170, .35);
  will-change: transform;
}
.band-text { position: relative; z-index: 4; width: 100%; padding: 36px var(--gutter) 28px; display: grid; gap: 14px; }
.band-name { font: 400 clamp(4rem, min(18vw, 24vh), 11rem)/.84 var(--display); letter-spacing: -.02em; color: #fff; }
.band-name em { font-style: italic; }
.band-desc { color: #efe6da; max-width: 36ch; font-size: 1rem; }
.band-tag { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #f1d3b3; }
@media (min-width: 900px) {
  .band-text { grid-template-columns: 1fr minmax(0, 36ch); align-items: end; column-gap: 48px; padding-bottom: 36px; }
  .band-text > div { grid-column: 2; display: grid; gap: 12px; }
  .band-name { grid-row: 1; grid-column: 1; }
}

/* ---------- Proceso ---------- */
.process { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.process-media { position: absolute; inset: 0; }
.process-veil { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(11,10,9,.78) 22%, rgba(11,10,9,.8) 78%, var(--bg) 100%); }
.process-inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header) + 28px); padding-bottom: 32px; }
.saw { position: relative; margin-top: 32px; }
.saw-track { position: absolute; z-index: 1; left: 7px; top: 0; width: 2px; height: 0; background: rgba(243, 237, 228, .16); }
.saw-cut { position: absolute; inset: 0; background: var(--accent); box-shadow: 0 0 14px rgba(208, 154, 106, .7); transform-origin: 50% 0; transform: scaleY(0); will-change: transform; }
.saw-blade { position: absolute; left: 1px; top: 0; width: 0; height: 0; z-index: 3; will-change: transform; }
.saw-blade svg { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; fill: var(--accent); filter: drop-shadow(0 0 8px rgba(255, 200, 150, .6)); }
.saw-blade circle { fill: var(--bg); }
.sawdust { position: absolute; z-index: 2; width: 3px; height: 3px; border-radius: 50%; background: #f0c99f; pointer-events: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.step { position: relative; padding-left: 40px; opacity: .38; transition: opacity .5s; }
.step.is-on { opacity: 1; }
.step-dot { position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--accent); background: var(--bg); z-index: 2; transition: background-color .4s, box-shadow .4s; }
.step.is-on .step-dot { background: var(--accent); box-shadow: 0 0 0 6px rgba(208, 154, 106, .2); }
.step-num { font: 400 1.05rem/1 var(--display); color: var(--accent); margin-right: .4rem; }
.step h3 { font: 600 1.15rem/1.3 var(--sans); }
.step p { color: var(--ink-2); font-size: .92rem; margin-top: 4px; max-width: 36ch; }
@media (min-width: 900px) {
  .saw { margin-top: clamp(32px, 6vh, 64px); }
  .saw-track { left: 0; top: 7px; width: 0; height: 2px; }
  .saw-cut { transform-origin: 0 50%; transform: scaleX(0); }
  .saw-blade { top: 1px; left: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding-left: 0; padding-top: 44px; }
  .step-dot { top: 0; }
  .step-num { display: block; font-size: 4rem; margin: 0 0 14px; }
  .step h3 { font-size: 1.3rem; }
}

/* ---------- Galería ---------- */
.home { padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 80px); }
.home-head { display: grid; gap: 14px; margin-bottom: 24px; }
.ig-link { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: 8px; }
.mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: var(--bg-3); }
.mosaic figure:first-child { grid-column: span 2; grid-row: span 1; }
.mosaic figure:nth-child(4) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: .8rem; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }
@media (min-width: 900px) {
  .home-head { grid-template-columns: 1fr auto; align-items: end; }
  .mosaic { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(160px, 15vw, 260px); gap: 12px; }
  .mosaic figure:nth-child(1) { grid-column: 1 / span 7; grid-row: span 2; }
  .mosaic figure:nth-child(2) { grid-column: 8 / span 5; }
  .mosaic figure:nth-child(3) { grid-column: 8 / span 5; }
  .mosaic figure:nth-child(4) { grid-column: 1 / span 5; }
  .mosaic figure:nth-child(5) { grid-column: 6 / span 7; }
  .mosaic figcaption { font-size: .88rem; padding: 40px 18px 14px; }
}

/* ---------- Condiciones + FAQ ---------- */
.buy { padding: clamp(56px, 7vw, 100px) 0; border-top: 1px solid var(--line); }
.conds { list-style: none; margin: 28px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.cond { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.cond svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.cond h3 { font: 600 1.1rem/1.3 var(--sans); }
.cond p { color: var(--muted); font-size: .93rem; margin-top: 4px; }
@media (min-width: 700px) {
  .conds { grid-template-columns: repeat(2, 1fr); }
  .cond { grid-template-columns: 1fr; padding: 32px 28px 36px 0; }
  .cond:nth-child(odd) { border-right: 1px solid var(--line); }
  .cond:nth-child(even) { padding-left: 28px; }
}
@media (min-width: 1100px) {
  .conds { grid-template-columns: repeat(4, 1fr); }
  .cond { border-right: 1px solid var(--line); padding: 36px 28px 40px; border-bottom: 0; }
  .cond:first-child { padding-left: 0; }
  .cond:last-child { border-right: 0; }
}
.faq-wrap { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: 24px; }
.faq-title { font: 400 clamp(2.2rem, 5vw, 3.6rem)/1 var(--display); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 22px 0; background: none; border: 0; text-align: left; font-size: 1.05rem; font-weight: 600; }
.faq-q i { position: relative; flex: none; width: 14px; height: 14px; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--accent); transition: transform .45s var(--ease); }
.faq-q i::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] i::after { transform: rotate(0); }
.faq-a { height: 0; overflow: hidden; }
.faq-a p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 2fr; gap: 6vw; } .faq-q { font-size: 1.15rem; padding: 26px 0; } }

/* ---------- Contacto ---------- */
.contact { position: relative; display: flex; align-items: center; overflow: hidden; padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 112px); background: radial-gradient(70% 60% at 85% 50%, rgba(208,154,106,.12), transparent 70%); }
.contact-rings { position: absolute; width: min(150vmin, 1300px); height: min(150vmin, 1300px); right: -55vmin; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--accent); stroke-width: .35; opacity: .28; pointer-events: none; }
.contact-inner { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; gap: 22px; }
.contact-title { font: 400 clamp(2.8rem, 11.5vw, 4.2rem)/.92 var(--display); letter-spacing: -.015em; text-wrap: balance; }
@media (min-width: 900px) { .contact-title { white-space: nowrap; font-size: clamp(3rem, min(6.2vw, 12vh), 7rem); } }
.contact-title .char { display: inline-block; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.contact-facts { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .85rem; color: var(--muted); }
.contact-facts li::before { content: "— "; color: var(--accent); }

.footer { border-top: 1px solid var(--line); padding: 24px 0 calc(96px + env(safe-area-inset-bottom)); font-size: .82rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (min-width: 900px) { .footer { padding-bottom: 28px; } }

/* ---------- WhatsApp flotante ---------- */
.fab {
  position: fixed; z-index: 50;
  right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7);
  transition: transform .5s var(--ease), opacity .4s;
}
.fab svg { width: 28px; height: 28px; position: relative; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2.8s ease-out infinite; }
.fab.is-away, .fab.in-hero { transform: scale(0); opacity: 0; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Ficha de producto ---------- */
.ficha { position: fixed; inset: 0; z-index: 90; }
.ficha[hidden] { display: none; }
.ficha-bg { position: absolute; inset: 0; background: var(--bg); }
.ficha-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ficha-grid { display: grid; min-height: 100%; }
.ficha-media { position: relative; height: 56svh; background: var(--bg-2); }
.ficha-gal { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ficha-gal::-webkit-scrollbar { display: none; }
.ficha-gal figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.ficha-gal img { width: 100%; height: 100%; object-fit: cover; }
.ficha-gal-ui { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 12px; pointer-events: none; }
.gal-arrow { display: none; pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(11,10,9,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gal-dots { display: flex; gap: 6px; pointer-events: auto; padding: 8px 10px; border-radius: 999px; background: rgba(11,10,9,.4); }
.gal-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); transition: transform .3s, background-color .3s; }
.gal-dots button[aria-current="true"] { background: #fff; transform: scale(1.3); }
.ficha-body { padding: 28px var(--gutter) calc(48px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 24px; }
.ficha-title { font: 400 clamp(3rem, 15vw, 7.5rem)/.88 var(--display); letter-spacing: -.015em; margin-top: -10px; }
.ficha-desc { color: var(--ink-2); max-width: 52ch; }
.opt-label { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s, border-color .3s; }
.opt:hover { border-color: var(--ink); }
.opt[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wood-pick { display: flex; align-items: center; gap: 16px; }
.swatch {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background-color: #b8673f; background-image: var(--grain), var(--fine); background-size: 420px 210px, 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 24px -10px rgba(0,0,0,.8);
}
.ficha-price { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.price-num { font: 400 clamp(3rem, 12vw, 4.6rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.price-note { font-size: .85rem; color: var(--muted); }
.ficha-plan { margin: 0; padding: 18px 16px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.ficha-plan[hidden] { display: none; }
.ficha-plan .plan { margin: 0; max-height: 300px; }
.ficha-plan figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.ficha-close {
  position: fixed; z-index: 95; top: max(12px, env(safe-area-inset-top)); right: 12px;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(11,10,9,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.ficha-close i { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); }
.ficha-close i::before, .ficha-close i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: var(--bg); transform: rotate(45deg); }
.ficha-close i::after { transform: rotate(-45deg); }
.flyer { position: fixed; left: 0; top: 0; z-index: 96; object-fit: cover; pointer-events: none; }
@media (min-width: 900px) {
  .ficha-grid { grid-template-columns: 1.1fr 1fr; }
  .ficha-media { position: sticky; top: 0; height: 100vh; }
  .ficha-body { padding: 104px clamp(28px, 4.5vw, 80px) 64px; gap: 28px; }
  .gal-arrow { display: grid; place-items: center; }
  .ficha-gal-ui { bottom: 24px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .loader-word { clip-path: none; }
  .band-cover, .band-blade { display: none; }
}

/* =====================================================================
   v2 · Catálogo por categorías, carrito, cookies y ajustes
   ===================================================================== */

/* Fotos siempre rectas */
.mosaic figure, .stories, .story-img, .ficha-gal figure, .ficha-gal img, .panel-photo, .panel-photo img { border-radius: 0; }

/* Imagen flotante del índice antiguo: eliminada */
.index-float { display: none !important; }

/* ---------- Menú Catálogo en el encabezado ---------- */
.nav { align-items: center; }
.nav-drop { position: relative; }
.nav-menu {
  position: absolute; left: -16px; top: 100%; min-width: 220px; padding: 10px 0;
  background: rgba(11, 10, 9, .96); border: 1px solid var(--line); backdrop-filter: blur(14px);
  display: grid; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.nav-menu a { padding: 9px 16px !important; font-size: .88rem; }
.nav-menu a::after { display: none; }
.nav-menu a:hover { background: var(--bg-3); }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.menu-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.menu-cats a { border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: .85rem; text-decoration: none; color: var(--ink-2); }

/* ---------- Botón carrito ---------- */
.header { gap: .7rem; }
.header > .logo { margin-right: auto; }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(11, 10, 9, .35); color: var(--ink); display: grid; place-items: center; padding: 0; flex: none;
}
.cart-btn svg { width: 21px; height: 21px; }
.cart-btn:hover { border-color: var(--ink); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }

/* ---------- Catálogo ---------- */
.catalog { padding: clamp(56px, 7vw, 104px) 0; }
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.cat-count { color: var(--muted); font-size: .9rem; margin: 0; font-variant-numeric: tabular-nums; }
.catalog .chips { margin-bottom: 28px; position: sticky; top: calc(var(--header) - 1px); z-index: 20; padding: 10px 0; background: linear-gradient(var(--bg) 75%, transparent); }
@media (max-width: 699px) {
  .catalog .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .catalog .chips::-webkit-scrollbar { display: none; }
  .catalog .chip { flex: none; }
}
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 36px 20px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; } }
.pcard[hidden] { display: none; }
.pcard { display: flex; flex-direction: column; min-width: 0; }
.pcard-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden; background: var(--bg-3); cursor: pointer; }
.pcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.pcard-img--alt { opacity: 0; }
.has-hover .pcard-photo:hover .pcard-img { transform: scale(1.04); }
.has-hover .pcard-photo:hover .pcard-img--alt { opacity: 1; }
.pcard-badge { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--bg); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; }
.pcard-badge.is-dark { background: #000; color: #fff; }
.pcard-count { position: absolute; right: 12px; bottom: 12px; background: rgba(11, 10, 9, .6); backdrop-filter: blur(6px); color: var(--ink); font-size: .72rem; padding: 4px 9px; border-radius: 999px; }
.pcard-body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.pcard-cat { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pcard-name { margin: 4px 0 12px; font: 400 clamp(1.6rem, 2.4vw, 2rem)/1.05 var(--display); }
.pcard-name button { all: unset; cursor: pointer; }
.pcard-name button:hover { color: var(--accent); }
.pcard-name button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pcard-label { margin: 0 0 6px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pcard-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tab {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 44px; padding: 6px 12px;
  border: 1px solid var(--line-2); background: none; font-size: .85rem; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums;
  transition: background-color .25s, color .25s, border-color .25s;
}
.tab small { font-size: .7rem; font-weight: 500; color: var(--muted); }
.tab:hover { border-color: var(--ink); }
.tab[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab[aria-checked="true"] small { color: rgba(11, 10, 9, .65); }
.pcard-woods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sw { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: none; font-size: .8rem; color: var(--ink-2); }
.sw i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.sw[aria-checked="true"] { border-color: var(--accent); color: var(--ink); }
.pcard-wood-one { margin: 0 0 14px; font-size: .82rem; color: var(--muted); }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pcard-price { margin: 0; display: flex; flex-direction: column; }
.pcard-price b { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcard-price small { font-size: .72rem; color: var(--muted); }
.pcard-add { flex: none; }
.pcard-add.is-done { background: var(--ink); color: var(--bg); }
.pcard-add[disabled] { opacity: .45; cursor: not-allowed; }
.catalog .note a { color: var(--accent); }
.note a { color: var(--accent); }

/* ---------- Ficha: acciones ---------- */
.ficha-actions { display: grid; gap: 10px; }
#fAdd[disabled] { opacity: .45; }
.ficha-gal-ui[hidden] { display: none; }

/* ---------- Carrito ---------- */
.cart { position: fixed; inset: 0; z-index: 200; }
.cart[hidden] { display: none; }
.cart-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: calc(18px + env(safe-area-inset-top)) 20px 16px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font: 400 2rem/1 var(--display); }
.cart-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: none; position: relative; }
.cart-x i::before, .cart-x i::after { content: ""; position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; background: var(--ink); }
.cart-x i::before { transform: rotate(45deg); } .cart-x i::after { transform: rotate(-45deg); }
.cart-list { list-style: none; margin: 0; padding: 8px 20px; flex: 1; overflow: auto; overscroll-behavior: contain; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 88px; object-fit: cover; background: var(--bg-3); }
.cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-info b { font-weight: 600; }
.cart-info span { font-size: .8rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--line-2); border-radius: 999px; width: max-content; }
.qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.1rem; }
.qty output { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-side b { font-variant-numeric: tabular-nums; }
.cart-rm { background: none; border: 0; color: var(--muted); font-size: .78rem; text-decoration: underline; padding: 4px 0; }
.cart-empty { padding: 48px 0; text-align: center; color: var(--muted); line-height: 2; }
.cart-empty a { color: var(--accent); }
.cart-foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-foot[hidden] { display: none; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.cart-total b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.cart-note, .cart-flow-note { margin: 0; font-size: .78rem; color: var(--muted); }
.cart-flow-note { text-align: center; margin-top: -4px; }
.cart-flow-note[hidden] { display: none; }
.flow-btn { gap: .45rem; }
.flow-btn[disabled] { opacity: .5; cursor: not-allowed; }
.flow-mark { font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; text-transform: lowercase; }
.cart-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 210;
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: .9rem; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); max-width: calc(100% - 32px);
}
.cart-toast[hidden] { display: none; }
.cart-toast button { background: none; border: 0; font-weight: 700; text-decoration: underline; color: inherit; white-space: nowrap; }

/* ---------- Aviso de cookies (chico) ---------- */
.cookies {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 150; max-width: 340px;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(19, 17, 15, .95); border: 1px solid var(--line);
  backdrop-filter: blur(10px); font-size: .78rem; color: var(--ink-2);
}
.cookies[hidden] { display: none; }
.cookies p { margin: 0; }
.cookies a { color: var(--accent); }
.cookies .btn { flex: none; min-height: 36px; }
@media (max-width: 600px) { .cookies { right: 90px; max-width: none; } }

/* ---------- Footer legal ---------- */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.catalog .chips { max-width: none; justify-content: flex-start; }
.cart-toast { width: max-content; }
@media (max-width: 600px) { .cookies { right: auto; left: 12px; max-width: calc(100% - 100px); padding: 8px 10px; font-size: .74rem; gap: 10px; } .cookies .btn { min-height: 32px; padding: 0 14px; } }

/* =====================================================================
   v3 · Más legible e intuitivo
   ===================================================================== */
:root { --muted: #c2b8ab; }
body { font-size: 17px; }
.note { font-size: .95rem; }
.cursor { display: none !important; }
.has-cursor, .has-cursor * { cursor: auto; }

/* Encabezado siempre visible y sólido al bajar */
.header.is-hidden { transform: none; }

/* Carrito en el encabezado: con texto */
.cart-btn--head { width: auto; padding: 0 14px 0 12px; border-radius: 999px; gap: 8px; display: inline-flex; align-items: center; font-weight: 600; font-size: .92rem; }
.cart-btn--head .cart-count { position: static; }
@media (max-width: 520px) { .cart-btn--head .cart-label { display: none; } .cart-btn--head { padding: 0 11px; } }

/* Botón flotante del carrito (aparece cuando hay productos) */
.cart-fab {
  position: fixed; right: 20px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 90; width: auto; height: 52px;
  display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: .95rem; box-shadow: 0 14px 30px -10px rgba(0,0,0,.7);
}
.cart-fab[hidden] { display: none; }
.cart-fab svg { width: 22px; height: 22px; }
.cart-fab b { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .8rem; }
.cart-fab-total { font-variant-numeric: tabular-nums; opacity: .8; font-weight: 600; }
@media (max-width: 520px) { .cart-fab > span:first-of-type { display: none; } }
.has-cart .cart-toast { bottom: calc(156px + env(safe-area-inset-bottom)); }

/* Barra de categorías: banner completo que se fija bajo el encabezado */
.catalog .chips { position: static; padding: 0; margin: 0; background: none; }
.cat-bar {
  position: sticky; top: calc(var(--header) - 1px); z-index: 40; margin: 6px 0 32px;
  background: rgba(11, 10, 9, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cat-bar .chips { display: flex; gap: 8px; padding: 12px 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.cat-bar .chips::-webkit-scrollbar { display: none; }
.cat-bar .chip { flex: none; min-height: 44px; font-size: .95rem; }
.cat-head { margin-bottom: 8px; }

/* Tarjetas: más grandes y claras */
.pcard-cat, .pcard-label { font-size: .76rem; }
.pcard-name { font-size: clamp(1.9rem, 2.6vw, 2.3rem); }
.tab { font-size: .95rem; min-height: 50px; padding: 7px 14px; }
.tab small { font-size: .78rem; }
.sw { font-size: .88rem; min-height: 40px; }
.pcard-price b { font-size: 1.5rem; }
.pcard-price small { font-size: .8rem; }
.pcard-add { min-height: 46px; font-size: .95rem; }
.pcard-photo::after {
  content: "Ver ficha"; position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; background: rgba(11,10,9,.72);
  color: var(--ink); font-size: .82rem; font-weight: 600; letter-spacing: .02em; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.pcard-photo:hover::after, .pcard-photo:focus-visible::after { opacity: 1; transform: none; }

/* Recomendador: foto + plano */
.finder-visual { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: center; margin: 12px 0 8px; }
.finder-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-3); }
.finder .plan, .finder-visual .plan { height: auto; margin: 0; }
@media (max-width: 520px) { .finder-visual { grid-template-columns: 1fr; } .finder-photo { aspect-ratio: 16 / 10; } }
.finder-note, .finder-alt { font-size: .95rem; }

/* Plano desde arriba */
.plan .tbl { stroke: rgba(255, 235, 210, .35); stroke-width: 1; }
.plan .plate { fill: #f6f1ea; stroke: rgba(0,0,0,.18); stroke-width: 1; }
.plan .plate-in { fill: none; stroke: rgba(0,0,0,.14); stroke-width: 1; }
.plan .cutl { stroke: #f6f1ea; stroke-width: 2.2; stroke-linecap: round; }
.plan .place.is-opt .plate { fill: none; stroke: rgba(255,248,238,.85); stroke-dasharray: 3 3; stroke-width: 1.4; }
.plan .place.is-opt .plate-in, .plan .place.is-opt .cutl { display: none; }
.plan .dim { fill: var(--ink); font: 700 11px var(--sans); letter-spacing: .02em; }
.plan .dimline { stroke: var(--accent); stroke-width: 1.2; }
.plan .scalebar line { stroke: var(--muted); stroke-width: 2; }
.plan .scalebar text { fill: var(--muted); font: 600 9px var(--sans); }
.ficha-plan figcaption { font-size: .9rem; color: var(--muted); }

/* Colección de portada: foto grande pegada al texto, sin espacio muerto */
@media (min-width: 900px) {
  .panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(32px, 4vw, 72px);
    padding-left: max(var(--gutter), calc((100vw - 1360px) / 2)); padding-right: max(var(--gutter), calc((100vw - 1360px) / 2));
  }
  .panel-photo { width: 100%; height: min(76vh, 760px); aspect-ratio: auto; justify-self: stretch; }
  .panel-photo img { transform: none; object-position: center 60%; }
  .panel-name { font-size: min(20vh, 10rem, calc(38vw / (var(--len) * .5))); }
  .panel-desc { font-size: 1.05rem; }
  .kv { font-size: 1rem; }
}
/* Tarjetas del catálogo en formato cuadrado: no corta las fotos horizontales */
.pcard-photo { aspect-ratio: 1 / 1; }

/* v4 · Catálogo compacto: 3 productos completos en una vista */
@media (min-width: 900px) { :root { --header: 64px; } }
.cat-bar { margin: 4px 0 24px; }
.cat-bar .chips { padding: 8px 0; gap: 6px; }
.cat-bar .chip { min-height: 38px; font-size: .9rem; padding: 0 14px; }
.cat-head .sec-title { font-size: clamp(2rem, 3.2vw, 3rem); }
.cat-grid { gap: 40px 24px; }
@media (min-width: 1100px) { .cat-grid { gap: 44px 28px; } }
.pcard-photo { aspect-ratio: 3 / 2; }
.pcard-img { object-position: center 55%; }
.pcard-body { padding-top: 12px; }
.pcard-name { margin: 2px 0 10px; font-size: clamp(1.7rem, 2.2vw, 2.1rem); }
.pcard-label { margin-bottom: 5px; }
.pcard-sizes { gap: 6px; margin-bottom: 10px; }
.tab { min-height: 46px; padding: 5px 12px; font-size: .92rem; }
.pcard-woods { margin-bottom: 10px; }
.sw { min-height: 36px; }
.pcard-foot { padding-top: 10px; }

/* Logo oficial */
.logo { gap: 0; }
.logo-img { display: block; height: 30px; width: auto; }
@media (min-width: 900px) { .logo-img { height: 36px; } }
.loader-word img { display: block; width: clamp(240px, 46vw, 560px); height: auto; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 40px; width: auto; align-self: flex-start; }

/* v5 · 3 productos completos en cualquier computador */
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1000px) and (max-height: 900px) {
  :root { --header: 58px; }
  .logo-img { height: 30px; }
  .cat-bar { margin-bottom: 18px; }
  .cat-bar .chips { padding: 6px 0; }
  .cat-bar .chip { min-height: 36px; }
  .pcard-photo { aspect-ratio: 16 / 10; }
  .pcard-body { padding-top: 10px; }
  .pcard-label { display: none; }
  .pcard-cat { font-size: .7rem; }
  .pcard-name { font-size: clamp(1.5rem, 2vw, 1.85rem); margin: 0 0 8px; }
  .tab { min-height: 42px; padding: 4px 10px; font-size: .88rem; }
  .tab small { font-size: .74rem; }
  .pcard-sizes { margin-bottom: 8px; }
  .sw { min-height: 32px; font-size: .84rem; }
  .sw i { width: 18px; height: 18px; }
  .pcard-woods, .pcard-wood-one { margin-bottom: 8px; }
  .pcard-foot { padding-top: 8px; }
  .pcard-price b { font-size: 1.3rem; }
  .pcard-add { min-height: 42px; }
}
@media (min-width: 1000px) and (max-height: 720px) {
  .pcard-photo { aspect-ratio: 2 / 1; }
  .pcard-price small { display: none; }
}
.logo-img { height: 22px; }
@media (min-width: 900px) { .logo-img { height: 26px; } }
@media (min-width: 1000px) and (max-height: 900px) { .logo-img { height: 24px; } }
.ficha:not([hidden]) ~ .cart-fab, .cart:not([hidden]) ~ .cart-fab { display: none; }

/* Pantalla de carga: solo el logo, sin anillos de tronco */
.loader-rings, .loader-cutter { display: none !important; }
