/* ============================================================
   JS Muebles Proyectados · Sistema de diseño
   ------------------------------------------------------------
   Dirección: "showroom editorial". Base clara y cálida (crema,
   lino, arena), verde profundo y dorado del logo solo como
   acentos, tipografía serif con carácter (Fraunces) y layouts
   de revista: líneas finas, mucho aire, fotos a sangre.
   ============================================================ */
:root {
  /* paleta */
  --crema: #F6F2E9;
  --marfil: #FBF9F4;
  --lino: #EFE9DC;
  --arena: #E5DBC8;
  --arena-2: #D9CDB6;
  --tinta: #1C1B18;
  --tinta-2: #494741;
  --tinta-3: #7A776E;
  --linea: #DCD4C3;
  --linea-2: #C6BBA5;
  --verde: #0F4D2E;
  --verde-osc: #0A2E1E;
  --verde-neg: #0E1612;
  --verde-claro: #1F6B44;
  --verde-tenue: #E3EBE3;
  --dorado: #B8901F;
  --dorado-claro: #E4C76B;
  --tabaco: #6B4A32;
  --madera: #C9A87C;
  --ambar: #FFB54A;
  --wa: #25D366;
  --wa-osc: #1DA851;

  /* roles */
  --bg: var(--crema);
  --bg-elev: var(--marfil);
  --fg: var(--tinta);
  --fg-2: var(--tinta-2);
  --fg-3: var(--tinta-3);
  --brand: var(--verde);
  --accent: var(--dorado);

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-xs: 3px; --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --radius: var(--r-sm); --radius-sm: var(--r-xs);
  --shadow-sm: 0 1px 2px rgba(28, 27, 24, .05);
  --shadow-md: 0 10px 30px rgba(28, 27, 24, .10);
  --shadow-lg: 0 30px 70px rgba(28, 27, 24, .18);
  --container: 1280px;
  --gutter: clamp(18px, 4vw, 48px);
  --section: clamp(72px, 9vw, 132px);
  --t-fast: 180ms; --t-med: 420ms;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; margin: 0 0 .45em; letter-spacing: -.015em; font-variation-settings: 'SOFT' 50, 'opsz' 96; }
h1 { font-size: clamp(2.9rem, 6.6vw, 6rem); line-height: .98; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.04; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 500; line-height: 1.15; }
h4 { font-size: 1.1rem; font-weight: 500; }
h1 em, h2 em, h3 em, .serif em { font-style: italic; font-weight: 300; color: var(--verde); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--fg-2); max-width: 58ch; }
.muted { color: var(--fg-2); }
.small { font-size: .875rem; }
.serif { font-family: var(--font-display); }
.caps { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: var(--section) 0; }
.section-tight { padding: clamp(44px, 6vw, 80px) 0; }
.section-head { border-top: 1px solid var(--linea); padding-top: 22px; margin-bottom: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px clamp(24px, 5vw, 80px); align-items: end; }
.section-head > p, .section-head .lead { margin: 0; align-self: end; }
.section-head h2 { margin: 6px 0 0; }
.section-head.center { grid-template-columns: 1fr; text-align: center; max-width: 720px; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.solo { grid-template-columns: 1fr; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.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; }
:focus-visible { outline: 2px solid var(--verde-claro); outline-offset: 3px; border-radius: 2px; }
hr.rule { border: 0; border-top: 1px solid var(--linea); margin: 0; }

/* ---------- Kickers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; font-weight: 600; color: var(--fg-3); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.eyebrow .num { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.1rem; letter-spacing: 0; text-transform: none; color: var(--accent); line-height: 1; }
.on-dark .eyebrow { color: rgba(246,242,233,.6); }
.on-dark .eyebrow::before, .on-dark .eyebrow .num { background: var(--dorado-claro); color: var(--dorado-claro); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: var(--r-xs); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid transparent; line-height: 1; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn-primary, .btn-ink { background: var(--tinta); color: var(--crema); }
.btn-primary:hover, .btn-ink:hover { background: var(--verde-osc); }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-claro); }
.btn-gold { background: var(--dorado); color: var(--tinta); }
.btn-gold:hover { background: var(--dorado-claro); }
.btn-outline { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn-outline:hover { background: var(--tinta); color: var(--crema); }
.btn-light { border-color: rgba(246,242,233,.55); color: var(--crema); background: transparent; }
.btn-light:hover { background: var(--crema); color: var(--verde-osc); border-color: var(--crema); }
.btn-wa { background: var(--wa); color: #06331a; }
.btn-wa:hover { background: var(--wa-osc); color: #fff; }
.btn-sm { padding: 11px 16px; font-size: .72rem; }
.btn-lg { padding: 18px 30px; font-size: .84rem; }
@media (max-width: 600px) { .btn { white-space: normal; text-align: center; } .btn-lg { padding: 16px 20px; } }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); padding-bottom: 4px; border-bottom: 1px solid var(--linea-2); transition: border-color var(--t-fast), gap var(--t-fast); }
.link-arrow::after { content: "→"; font-family: var(--font-display); font-size: 1.1em; letter-spacing: 0; transition: transform var(--t-fast); }
.link-arrow:hover { border-color: var(--fg); gap: 14px; }
.on-dark .link-arrow { color: var(--crema); border-color: rgba(246,242,233,.35); }
.on-dark .link-arrow:hover { border-color: var(--crema); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--crema) 90%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--linea); }
.site-header .hdr { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.25rem; line-height: 1; letter-spacing: -.01em; font-weight: 500; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand small { display: block; font-family: var(--font-body); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 10px 14px; font-weight: 500; font-size: .94rem; color: var(--fg-2); transition: color var(--t-fast); }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-contact { display: none; }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.proj-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: .84rem; font-weight: 600; color: var(--fg-2); border-radius: var(--r-xs); transition: color var(--t-fast), background var(--t-fast); }
.proj-link:hover { color: var(--fg); background: var(--lino); }
.proj-link svg { width: 18px; height: 18px; }
.proj-link .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--verde); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.proj-link .count[data-zero="true"] { background: var(--arena-2); color: var(--tinta-2); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--linea-2); border-radius: var(--r-xs); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--fg); position: relative; transition: background var(--t-fast); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--fg); transition: transform var(--t-med) var(--ease), top var(--t-med) var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .site-header .hdr { height: 66px; }
  .brand { font-size: 1.1rem; } .brand img { width: 38px; height: 38px; }
  .nav-toggle { display: inline-flex; }
  .hdr-actions .btn { display: none; }
  .proj-link span { display: none; }
  .nav { position: fixed; inset: 66px 0 0 0; background: var(--crema); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 24px var(--gutter) 40px; gap: 0; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform var(--t-med) var(--ease), opacity var(--t-med); overflow: auto; z-index: 49; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.8rem); padding: 14px 0; border-bottom: 1px solid var(--linea); color: var(--fg); font-weight: 400; }
  .nav a::after { display: none; }
  .nav .nav-contact { display: grid; gap: 14px; margin-top: 28px; }
  .nav .nav-contact a { font-family: var(--font-body); font-size: 1rem; padding: 0; border: 0; }
  .nav .nav-contact .btn { font-size: .8rem; padding: 16px; }
}

/* ---------- Hero editorial (home) ---------- */
.hero-ed { position: relative; overflow: hidden; }
.hero-ed .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero-ed h1 { margin-bottom: .35em; max-width: 12ch; }
.hero-ed .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--linea); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.hero-facts span::before { content: "◆"; color: var(--accent); font-size: .55em; margin-right: 10px; vertical-align: 2px; }
.hero-ed h1 { font-size: clamp(2.7rem, 5.4vw, 5rem); }
.hero-art { position: relative; aspect-ratio: 1 / 1; }
.hero-art .ph { position: absolute; overflow: hidden; border-radius: var(--r-sm); background: var(--lino); }
.hero-art .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .ph-main { right: 0; top: 0; width: 62%; aspect-ratio: 3 / 4; }
.hero-art .ph-second { left: 0; bottom: 6%; width: 44%; aspect-ratio: 3 / 4; box-shadow: var(--shadow-lg); border: 6px solid var(--crema); }
.hero-art .ph-caption { position: absolute; right: 0; bottom: 0; width: 58%; display: grid; gap: 3px; padding-left: 16px; border-left: 1px solid var(--accent); font-size: .78rem; color: var(--fg-2); }
.hero-art .ph-caption strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--fg); line-height: 1.1; }
.hero-art .ph-caption em { font-style: normal; text-transform: uppercase; letter-spacing: .16em; font-size: .62rem; color: var(--fg-3); }
.hero-art .badge-3d { position: absolute; left: 30%; top: 6%; background: var(--verde-osc); color: var(--crema); padding: 12px 16px; border-radius: 999px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; box-shadow: var(--shadow-md); z-index: 2; transition: transform var(--t-fast); }
.hero-art .badge-3d:hover { transform: translateY(-2px); }
.hero-art .badge-3d svg { width: 16px; height: 16px; }
@media (max-width: 960px) {
  .hero-ed .container { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-art { max-width: 520px; }
  .hero-ed h1 { max-width: none; }
}
@media (max-width: 520px) { .hero-art .ph-caption { font-size: .7rem; } .hero-art .ph-caption strong { font-size: 1rem; } .hero-art .badge-3d { top: 4%; padding: 10px 12px; left: 26%; } }

/* ---------- Ticker (cinta de valores) ---------- */
.ticker { border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); overflow: hidden; background: var(--marfil); }
.ticker .track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker ul { list-style: none; margin: 0; padding: 14px 0; display: flex; gap: 0; }
.ticker li { padding: 0 28px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--fg-2); white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.ticker li::after { content: "◆"; color: var(--accent); font-size: .55em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; flex-wrap: wrap; width: auto; } .ticker ul { flex-wrap: wrap; justify-content: center; gap: 8px 0; } }

/* ---------- Agenda de fabricación ---------- */
.agenda { background: var(--arena); }
.agenda .container { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 14px 0; flex-wrap: wrap; }
.agenda-text { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; font-size: .92rem; color: var(--fg-2); }
.agenda-text strong { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.15rem; color: var(--fg); }
.agenda .link-arrow { border-color: var(--linea-2); }

/* ---------- Lista de categorías (recorrido) ---------- */
.cat-list { border-top: 1px solid var(--linea); }
.cat-row { display: grid; grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1.4fr) 110px 40px; gap: 20px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--linea); transition: background var(--t-fast), padding var(--t-med) var(--ease); position: relative; }
.cat-row:hover, .cat-row:focus-visible { background: var(--marfil); padding-left: 16px; }
.cat-row .num { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.cat-row h3 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 400; transition: transform var(--t-med) var(--ease); }
.cat-row:hover h3 { transform: translateX(6px); }
.cat-row p { margin: 0; font-size: .9rem; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-row .count { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; text-align: right; }
.cat-row .arrow { font-family: var(--font-display); font-size: 1.6rem; color: var(--fg-3); text-align: right; transition: color var(--t-fast), transform var(--t-med) var(--ease); }
.cat-row:hover .arrow { color: var(--fg); transform: translateX(4px); }
.cat-row .thumb { display: none; }
.cat-preview { position: fixed; z-index: 40; width: 250px; aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) rotate(-3deg) scale(.96); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); box-shadow: var(--shadow-lg); background: var(--lino); }
.cat-preview.show { opacity: 1; transform: translate(-50%, -50%) rotate(-2deg) scale(1); }
.cat-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .cat-row { grid-template-columns: 76px minmax(0, 1fr) 32px; gap: 16px; padding: 14px 0; }
  .cat-row .num, .cat-row .count { display: none; }
  .cat-row .thumb { display: block; width: 76px; aspect-ratio: 1; border-radius: var(--r-xs); overflow: hidden; background: var(--lino); }
  .cat-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .cat-row p { display: none; }
  .cat-row h3 { font-size: 1.35rem; }
  .cat-row:hover { padding-left: 0; }
  .cat-preview { display: none; }
}
.cat-row .thumb .mueble-svg { width: 100%; height: 100%; }

/* ---------- Showroom 3D (sección oscura) ---------- */
.on-dark { color: var(--crema); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--crema); }
.on-dark h2 em { color: var(--dorado-claro); }
.on-dark .muted, .on-dark p { color: rgba(246,242,233,.72); }
.showroom { background: radial-gradient(ellipse at 30% 30%, rgba(255,181,74,.12), transparent 50%), radial-gradient(ellipse at 80% 100%, rgba(31,107,68,.35), transparent 55%), var(--verde-neg); position: relative; overflow: hidden; }
.showroom .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.showroom-stage { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(ellipse at 50% 95%, rgba(255,181,74,.22), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.25)); border: 1px solid rgba(246,242,233,.08); touch-action: pan-y; }
.showroom-stage canvas { width: 100% !important; height: 100% !important; display: block; }
.showroom-stage .fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity 600ms var(--ease); }
.showroom-stage.live .fallback { opacity: 0; pointer-events: none; }
.showroom-stage .hint { position: absolute; left: 16px; bottom: 14px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,242,233,.55); display: inline-flex; gap: 10px; align-items: center; }
.showroom-stage .hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 0 0 rgba(255,181,74,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,181,74,.6); } 60% { box-shadow: 0 0 0 8px rgba(255,181,74,0); } }
.showroom-label { position: absolute; right: 16px; top: 14px; text-align: right; }
.showroom-label em { display: block; font-style: normal; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(246,242,233,.55); }
.showroom-label strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--dorado-claro); }
.showroom-label strong.flash { animation: flash 600ms var(--ease); }
@keyframes flash { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sw-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 22px 0 18px; border-bottom: 1px solid rgba(246,242,233,.14); }
.sw-tabs button { padding: 10px 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: rgba(246,242,233,.55); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-fast); }
.sw-tabs button[aria-selected="true"], .sw-tabs button:hover { color: var(--crema); border-color: var(--dorado-claro); }
.mat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mat-tile { display: grid; justify-items: center; gap: 7px; width: 74px; text-align: center; font-size: .66rem; line-height: 1.15; color: rgba(246,242,233,.7); cursor: pointer; transition: color var(--t-fast); }
.mat-tile .chip-c { width: 52px; height: 52px; border-radius: var(--r-xs); position: relative; overflow: hidden; background-color: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: transform var(--t-fast), box-shadow var(--t-fast); }
.mat-tile .chip-c.veta::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--vt) 0 1.5px, transparent 1.5px var(--paso)); opacity: var(--vo); }
.mat-tile:hover .chip-c { transform: translateY(-2px); }
.mat-tile[aria-pressed="true"] { color: var(--crema); }
.mat-tile[aria-pressed="true"] .chip-c { box-shadow: 0 0 0 2px var(--verde-neg), 0 0 0 3.5px var(--dorado-claro); }
.showroom .actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 28px; }
@media (max-width: 960px) { .showroom .container { grid-template-columns: 1fr; } }

/* ---------- Mosaico de proyectos ---------- */
.proj-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(120px, auto); gap: clamp(12px, 1.6vw, 22px); }
.proj-mosaic figure { margin: 0; position: relative; grid-column: span 3; display: flex; flex-direction: column; gap: 10px; }
.proj-mosaic figure:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.proj-mosaic figure:nth-child(2) { grid-column: span 4; }
.proj-mosaic figure:nth-child(4) { grid-column: span 4; }
.proj-mosaic figure:nth-child(5) { grid-column: span 3; }
.proj-mosaic .ph { position: relative; flex: 1; min-height: 240px; border-radius: var(--r-sm); overflow: hidden; background: var(--lino); }
.proj-mosaic .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.proj-mosaic figure:hover .ph img { transform: scale(1.04); }
.proj-mosaic .tipo { position: absolute; left: 12px; top: 12px; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(246,242,233,.9); color: var(--verde-osc); }
.proj-mosaic .tipo.comercial { background: var(--verde-osc); color: var(--crema); }
.proj-mosaic figcaption { display: grid; gap: 2px; }
.proj-mosaic figcaption strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.15; }
.proj-mosaic figcaption span { font-size: .82rem; color: var(--fg-2); }
@media (max-width: 960px) { .proj-mosaic figure, .proj-mosaic figure:nth-child(n) { grid-column: span 6; grid-row: auto; } .proj-mosaic figure:nth-child(1) { grid-column: span 12; } .proj-mosaic .ph { min-height: 220px; aspect-ratio: 4 / 4.5; } .proj-mosaic figure:nth-child(1) .ph { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .proj-mosaic { gap: 18px; } .proj-mosaic figure, .proj-mosaic figure:nth-child(n) { grid-column: span 12; } .proj-mosaic .ph { aspect-ratio: 4 / 4.2; } }

/* ---------- Proceso ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 2.5vw, 36px); border-top: 1px solid var(--linea); }
@media (max-width: 1000px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 22px; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 1px; background: var(--accent); }
.step .n { counter-increment: step; font-family: var(--font-display); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.step .n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--fg-2); margin: 0; }

/* ---------- Servicios ---------- */
.serv-grid { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
@media (max-width: 900px) { .serv-grid { grid-template-columns: 1fr; } }
.serv { padding: clamp(24px, 3vw, 40px) clamp(20px, 2.6vw, 36px); border-right: 1px solid var(--linea); }
.serv:last-child { border-right: 0; }
@media (max-width: 900px) { .serv { border-right: 0; border-bottom: 1px solid var(--linea); } .serv:last-child { border-bottom: 0; } }
.serv .num { font-family: var(--font-display); font-style: italic; font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 18px; }
.serv h3 { margin-bottom: 10px; }
.serv ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.serv li { display: flex; gap: 12px; font-size: .9rem; color: var(--fg-2); }
.serv li::before { content: "—"; color: var(--accent); }

/* ---------- Split / Nosotros ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .media { position: relative; }
.split .media img { border-radius: var(--r-sm); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.split .media .tag { margin-top: 14px; padding-left: 16px; border-left: 1px solid var(--accent); font-size: .82rem; color: var(--fg-2); max-width: 320px; }
.split .media .tag strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--fg); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--linea); }
.stats strong { display: block; font-family: var(--font-display); font-size: 2.3rem; font-weight: 400; line-height: 1; color: var(--fg); margin-bottom: 6px; }
.stats span { font-size: .8rem; color: var(--fg-2); }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; }
.facts li { padding: 12px 0; border-top: 1px solid var(--linea); display: flex; gap: 14px; align-items: baseline; font-size: .95rem; }
.facts li:last-child { border-bottom: 1px solid var(--linea); }
.facts li::before { content: "◆"; color: var(--accent); font-size: .5em; }

/* ---------- Banda comercial (B2B) ---------- */
.b2b { background: var(--verde-osc); }
.b2b .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.b2b .photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.b2b .photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-sm); }
.b2b .photos img:first-child { transform: translateY(-28px); }
.b2b .clients { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.b2b .clients li { padding: 10px 0; border-top: 1px solid rgba(246,242,233,.16); font-size: .92rem; color: rgba(246,242,233,.85); }
@media (max-width: 900px) { .b2b .container { grid-template-columns: 1fr; } .b2b .photos img:first-child { transform: none; } }

/* ---------- Confianza ---------- */
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.trust-row > div { padding: clamp(24px, 3vw, 40px) clamp(16px, 2.5vw, 32px); border-right: 1px solid var(--linea); }
.trust-row > div:last-child { border-right: 0; }
.trust-row strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 300; line-height: 1; margin-bottom: 8px; }
.trust-row strong .star { color: var(--dorado); font-size: .6em; vertical-align: .25em; }
.trust-row span { font-size: .88rem; color: var(--fg-2); }
.trust-row a { display: inline-flex; margin-top: 14px; }
@media (max-width: 700px) { .trust-row { grid-template-columns: 1fr; } .trust-row > div { border-right: 0; border-bottom: 1px solid var(--linea); } .trust-row > div:last-child { border-bottom: 0; } }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; }
.gallery a { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--lino); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery a:nth-child(4) { grid-row: span 2; }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; font-size: .78rem; font-weight: 500; color: var(--crema); background: linear-gradient(180deg, transparent, rgba(14,22,18,.85)); }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } .gallery a:nth-child(4) { grid-row: span 1; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; position: relative; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--linea-2); display: grid; place-items: center; font-family: var(--font-body); font-weight: 300; font-size: 1.2rem; color: var(--fg); transition: transform var(--t-med) var(--ease), background var(--t-fast); }
.faq details[open] summary::after { content: "–"; background: var(--tinta); color: var(--crema); border-color: var(--tinta); }
.faq details p { margin: 0 0 24px; color: var(--fg-2); max-width: 720px; }

/* ---------- CTA final ---------- */
.cta-band { background: var(--verde-osc); color: var(--crema); border-radius: var(--r-md); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(228,199,107,.35); }
.cta-band::before { content: ""; position: absolute; right: -60px; bottom: -160px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,181,74,.18), transparent 60%); }
.cta-band h2 { color: var(--crema); margin-bottom: .3em; }
.cta-band h2 em { color: var(--dorado-claro); }
.cta-band p { color: rgba(246,242,233,.78); margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--verde-neg); color: rgba(246,242,233,.72); padding: clamp(48px, 7vw, 96px) 0 28px; }
.site-footer .claim { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 300; line-height: 1.05; color: var(--crema); max-width: 16ch; margin: 0 0 clamp(32px, 5vw, 64px); }
.site-footer .claim em { color: var(--dorado-claro); font-style: italic; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 32px; border-top: 1px solid rgba(246,242,233,.14); }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--crema); font-family: var(--font-body); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.site-footer a:hover { color: var(--crema); }
.site-footer .brand { color: var(--crema); }
.site-footer .brand small { color: var(--dorado-claro); }
.site-footer .bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(246,242,233,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .76rem; color: rgba(246,242,233,.45); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(246,242,233,.25); display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast); }
.socials a:hover { background: rgba(246,242,233,.1); border-color: var(--crema); }
.socials svg { width: 17px; height: 17px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.4); transition: transform var(--t-fast); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 720px) { .cfg-page .wa-float { display: none; } }

/* ---------- Cabecera de página interior ---------- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(18px, 3vw, 36px); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.page-head .lead { margin-top: 8px; }
.hero-plain { padding: clamp(48px, 8vw, 110px) 0 clamp(36px, 6vw, 72px); }
.hero-plain h1 { max-width: 14ch; }
.hero-plain .lead { margin-top: 12px; }

/* ---------- Catálogo ---------- */
.chips { display: flex; gap: 6px 26px; flex-wrap: wrap; margin: 20px 0 32px; border-bottom: 1px solid var(--linea); }
.chip { padding: 12px 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--fg-3); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-fast); }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { color: var(--fg); border-color: var(--verde); }
.chip .n { font-family: var(--font-display); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 1em; color: var(--accent); margin-left: 6px; }
.prod-grid { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px) clamp(16px, 2.5vw, 28px); }
@media (max-width: 1000px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card { display: flex; flex-direction: column; }
.prod-card .thumb { background: var(--lino); aspect-ratio: 5 / 4; position: relative; overflow: hidden; border-radius: var(--r-sm); }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.prod-card:hover .thumb img { transform: scale(1.035); }
.prod-card .thumb .mueble-svg { width: 100%; height: 100%; }
.prod-card .thumb .badge { position: absolute; top: 12px; left: 12px; background: var(--crema); color: var(--verde-osc); padding: 6px 10px; border-radius: 999px; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.prod-card .body { padding: 16px 2px 0; display: grid; gap: 6px; flex: 1; }
.prod-card .cat { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--fg-3); }
.prod-card h3 { margin: 0; font-size: 1.45rem; font-weight: 400; }
.prod-card p { margin: 0; font-size: .9rem; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; gap: 12px; border-top: 1px solid var(--linea); margin-top: 12px; }
.prod-card .dots { display: flex; align-items: center; }
.prod-card .dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--crema); margin-left: -6px; box-shadow: 0 0 0 1px var(--linea-2); }
.prod-card .dots span:first-child { margin-left: 0; }
.prod-card .dots em { font-style: normal; font-size: .72rem; color: var(--fg-3); margin-left: 10px; }
.prod-card .link-arrow { border: 0; padding: 0; font-size: .72rem; }
.empty { text-align: center; padding: 60px 20px; color: var(--fg-2); }

/* ---------- Configurador (ficha de producto) ---------- */
.cfg { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: 12px; }
@media (max-width: 900px) { .cfg { grid-template-columns: minmax(0, 1fr); } }
.cfg-view { position: sticky; top: 90px; }
@media (max-width: 900px) {
  .cfg-view { position: sticky; top: 66px; z-index: 5; background: var(--bg); padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .cfg-view .stage { padding: 6px; }
  .cfg-view .stage .mueble-svg { max-height: 34vh; margin-inline: auto; }
  .cfg-view .summary, .cfg-view .small { display: none; }
  .stage .hint { left: 12px; top: 12px; font-size: .62rem; }
}
.stage { background: var(--lino); border-radius: var(--r-md); padding: 10px; position: relative; overflow: hidden; }
.stage .mueble-svg { width: 100%; height: auto; border-radius: var(--r-sm); }
.stage .hint { position: absolute; left: 18px; top: 18px; background: rgba(251,249,244,.9); padding: 7px 12px; border-radius: 999px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--verde-osc); display: inline-flex; gap: 8px; align-items: center; z-index: 2; }
.stage .hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dorado); animation: pulse 1.8s infinite; }
.view-tabs { display: inline-flex; gap: 22px; margin-bottom: 12px; border-bottom: 1px solid var(--linea); }
.view-tabs button { padding: 10px 0; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--fg-3); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; }
.view-tabs button[aria-selected="true"] { color: var(--fg); border-color: var(--verde); }
.view-tabs .new { font-size: .58rem; letter-spacing: .1em; background: var(--dorado); color: var(--tinta); padding: 2px 6px; border-radius: 999px; }
.stage3d { position: relative; width: 100%; aspect-ratio: 1000 / 640; border-radius: var(--r-sm); overflow: hidden; background: #eee8dc; touch-action: none; }
.stage3d canvas { display: block; width: 100% !important; height: 100% !important; }
.loading3d { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--fg-3); }
@media (max-width: 900px) { .view-tabs { margin-bottom: 8px; } .cfg-view .stage3d { max-height: 34vh; aspect-ratio: auto; height: 34vh; } }
.summary { margin-top: 14px; border-top: 1px solid var(--linea); padding: 14px 4px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .86rem; min-height: 46px; }
.summary div { display: flex; align-items: center; gap: 8px; }
.summary .sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px var(--linea-2); }
.summary b { color: var(--fg); font-weight: 600; }
.summary span { color: var(--fg-3); }
.cfg-panel { display: grid; gap: 20px; }
.cfg-panel .crumbs { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); display: flex; gap: 10px; flex-wrap: wrap; }
.cfg-panel .crumbs a:hover { color: var(--fg); }
.cfg-panel h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 4px 0 .25em; }
.cfg-panel .code { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.cfg-panel .desc { color: var(--fg-2); }
.feat { display: grid; }
.feat span { padding: 10px 0; border-top: 1px solid var(--linea); font-size: .9rem; display: flex; gap: 12px; align-items: baseline; }
.feat span:last-child { border-bottom: 1px solid var(--linea); }
.feat span::before { content: "◆"; color: var(--accent); font-size: .5em; }
.slot { border: 0; border-top: 1px solid var(--linea); padding: 18px 0 8px; margin: 0; }
.slot legend { padding: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; float: left; width: 100%; margin-bottom: 8px; }
.slot legend small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .74rem; letter-spacing: .04em; color: var(--fg-3); margin-top: 2px; }
.slot legend + * { clear: both; }
.slot .family { clear: both; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; margin: 12px 0 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-opt { position: relative; }
.sw-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-opt label { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 74px; cursor: pointer; font-size: .66rem; line-height: 1.15; text-align: center; color: var(--fg-2); font-weight: 500; padding: 6px 2px; border-radius: var(--r-xs); transition: color var(--t-fast); }
.sw-opt .chip-c { width: 50px; height: 50px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px rgba(28,27,24,.12); position: relative; background-color: var(--sw); overflow: hidden; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.sw-opt .chip-c.veta::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--vt) 0 1.5px, transparent 1.5px var(--paso)); opacity: var(--vo); }
.sw-opt .chip-c.veta.h::after { background: repeating-linear-gradient(0deg, var(--vt) 0 1.5px, transparent 1.5px var(--paso)); }
.sw-opt .chip-c.sq { border-radius: var(--r-xs); }
.sw-opt label:hover .chip-c { transform: translateY(-2px); }
.sw-opt input:checked + label { color: var(--fg); font-weight: 600; }
.sw-opt input:checked + label .chip-c { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--tinta); }
.sw-opt input:checked + label .chip-c::before { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; text-shadow: 0 1px 3px rgba(0,0,0,.8); z-index: 1; }
.sw-opt input:focus-visible + label .chip-c { outline: 2px solid var(--verde-claro); outline-offset: 3px; }
.cfg-actions { display: grid; gap: 12px; padding-top: 8px; }
.cfg-actions .row { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.cfg-actions .btn-wa, .cfg-actions .btn-add { width: 100%; }
.cfg-actions .note { font-size: .78rem; color: var(--fg-3); }
.cfg-actions .link-btn { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--fg-2); border-bottom: 1px solid var(--linea-2); padding-bottom: 2px; }
.cfg-actions .link-btn:hover { color: var(--fg); border-color: var(--fg); }
.cfg-medidas { display: grid; gap: 6px; font-size: .92rem; padding: 14px 0; border-top: 1px solid var(--linea); }
.cfg-medidas b { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.related-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--tinta); color: var(--crema); padding: 12px 20px; border-radius: 999px; font-size: .82rem; font-weight: 500; opacity: 0; pointer-events: none; transition: all var(--t-fast); z-index: 70; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cfg-sticky { display: none; }
@media (max-width: 720px) {
  .cfg-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--marfil); border-top: 1px solid var(--linea); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; }
  .cfg-sticky .sum { font-size: .72rem; color: var(--fg-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.cfg-page { padding-bottom: 84px; }
}

/* ---------- Glosario ---------- */
.glos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; border-top: 1px solid var(--linea); }
@media (max-width: 700px) { .glos { grid-template-columns: 1fr; } }
.glos div { padding: 16px 0; border-bottom: 1px solid var(--linea); font-size: .9rem; }
.glos b { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.glos span { color: var(--fg-2); }

/* ---------- Pared de acabados ---------- */
.swatch-wall { display: grid; gap: 28px; }
.sw-group h4 { font-family: var(--font-body); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 12px; font-weight: 600; }
.sw-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-tile { display: grid; justify-items: center; gap: 7px; width: 92px; text-align: center; padding: 8px 4px; font-size: .68rem; line-height: 1.15; transition: transform var(--t-fast); }
.sw-tile:hover { transform: translateY(-3px); }
.sw-tile .chip-c { width: 66px; height: 66px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px rgba(28,27,24,.12); background-color: var(--sw); position: relative; overflow: hidden; display: block; }
.sw-tile .chip-c.veta::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--vt) 0 1.5px, transparent 1.5px var(--paso)); opacity: var(--vo); }
.sw-tile b { color: var(--fg); font-weight: 600; }
.sw-tile small { color: var(--fg-3); font-size: .62rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-card { background: var(--verde-osc); color: var(--crema); border-radius: var(--r-md); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.contact-card h2 { color: var(--crema); font-size: 1.8rem; }
.contact-card .row { display: flex; gap: 14px; align-items: flex-start; font-size: .95rem; color: rgba(246,242,233,.82); padding-top: 14px; border-top: 1px solid rgba(246,242,233,.14); }
.contact-card .row svg { width: 20px; height: 20px; flex: none; color: var(--dorado-claro); margin-top: 3px; }
.contact-card .row strong { display: block; color: var(--crema); font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.map { border-radius: var(--r-md); overflow: hidden; min-height: 400px; background: var(--lino); }
.map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; filter: saturate(.8); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--fg-3); }
.field input, .field select, .field textarea { font: inherit; font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--fg); background: var(--marfil); border: 1px solid var(--linea-2); border-radius: var(--r-xs); padding: 13px 14px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--verde); outline: none; box-shadow: 0 0 0 3px rgba(15,77,46,.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }

/* ---------- Mi proyecto (solicitud de cotización) ---------- */
.proj-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .proj-layout { grid-template-columns: 1fr; } }
.proj-items { border-top: 1px solid var(--linea); }
.proj-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--linea); align-items: start; }
.proj-item .th { width: 120px; aspect-ratio: 5 / 4; border-radius: var(--r-xs); overflow: hidden; background: var(--lino); }
.proj-item .th img { width: 100%; height: 100%; object-fit: cover; }
.proj-item h3 { margin: 0 0 4px; font-size: 1.35rem; }
.proj-item .cfgline { font-size: .82rem; color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.proj-item .cfgline i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px var(--linea-2); vertical-align: -1px; margin-right: 6px; }
.proj-item .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proj-item .fields .field { font-size: .62rem; }
.proj-item .fields .field input { padding: 9px 10px; font-size: .92rem; }
.proj-item .fields .wide { grid-column: span 2; }
.proj-item .rm { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--fg-3); border-bottom: 1px solid transparent; }
.proj-item .rm:hover { color: #9b2c2c; border-color: currentColor; }
.proj-item .qty { display: inline-flex; align-items: center; border: 1px solid var(--linea-2); border-radius: var(--r-xs); overflow: hidden; }
.proj-item .qty button { width: 34px; height: 34px; font-size: 1.1rem; color: var(--fg-2); }
.proj-item .qty button:hover { background: var(--lino); color: var(--fg); }
.proj-item .qty output { min-width: 32px; text-align: center; font-weight: 600; font-size: .95rem; }
@media (max-width: 600px) { .proj-item { grid-template-columns: 84px minmax(0, 1fr); } .proj-item .th { width: 84px; } .proj-item > .side { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; } .proj-item .fields { grid-template-columns: 1fr; } .proj-item .fields .wide { grid-column: auto; } }
.proj-empty { text-align: center; padding: clamp(40px, 8vw, 96px) 20px; border: 1px dashed var(--linea-2); border-radius: var(--r-md); }
.proj-empty h3 { margin-bottom: 8px; }
.proj-side { position: sticky; top: 90px; background: var(--marfil); border: 1px solid var(--linea); border-radius: var(--r-md); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.proj-side h2 { font-size: 1.6rem; margin: 0; }
.proj-side .tot { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); font-size: .9rem; }
.proj-side .tot b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.proj-side .btn { width: 100%; }
.proj-side .row { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: center; }
.proj-side .note { font-size: .76rem; color: var(--fg-3); text-align: center; margin: 0; }
.proj-side .print-only { display: none; }
.proj-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); margin-bottom: clamp(28px, 4vw, 48px); }
.proj-steps div { padding: 18px 20px 18px 0; border-right: 1px solid var(--linea); font-size: .86rem; color: var(--fg-2); }
.proj-steps div:last-child { border-right: 0; }
.proj-steps div + div { padding-left: 20px; }
.proj-steps b { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--fg); margin-bottom: 4px; }
.proj-steps b i { font-style: italic; color: var(--accent); margin-right: 8px; }
@media (max-width: 700px) { .proj-steps { grid-template-columns: 1fr; } .proj-steps div { border-right: 0; border-bottom: 1px solid var(--linea); padding-left: 0; } .proj-steps div:last-child { border-bottom: 0; } }

/* ---------- Mueble SVG: transiciones de acabado ---------- */
.mueble-svg .part .base { transition: fill var(--t-med) ease; }
.mueble-svg .part .sheen { transition: opacity var(--t-med) ease; }
.mueble-svg .veta-pat path { transition: stroke var(--t-med) ease, stroke-opacity var(--t-med) ease; }
.mueble-svg {
  --c-estructura: #c9a87c; --vc-estructura: #a07e55; --vo-estructura: .5; --sh-estructura: 0;
  --c-frentes: #45464a; --vc-frentes: #45464a; --vo-frentes: 0; --sh-frentes: 0;
  --c-acento: #c9a87c; --vc-acento: #a07e55; --vo-acento: .5; --sh-acento: 0;
  --c-interior: #45464a; --vc-interior: #45464a; --vo-interior: 0; --sh-interior: 0;
  --c-tapa: #1c1d20; --vc-tapa: #4a4b50; --vo-tapa: .45; --sh-tapa: .3;
  --c-herrajes: #1e1f22; --vc-herrajes: #1e1f22; --vo-herrajes: 0; --sh-herrajes: 0;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Impresión (resumen de Mi proyecto) ---------- */
@media print {
  .site-header, .site-footer, .wa-float, .proj-side .btn, .proj-side .row, .proj-item .rm, .proj-item .qty button, .nav-toggle, .toast, .proj-steps { display: none !important; }
  body { background: #fff; color: #000; }
  .proj-layout { grid-template-columns: 1fr; }
  .proj-side { position: static; border: 0; padding: 0; }
  .proj-side .print-only { display: block; }
  .field input, .field textarea { border: 0; border-bottom: 1px solid #999; border-radius: 0; padding-left: 0; }
  a[href]::after { content: ""; }
}

/* ---------- Cabecera del catálogo con foto de categoría ---------- */
.cat-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 64px); align-items: end; }
.cat-photo { display: grid; gap: 8px; justify-items: start; }
.cat-photo img { width: 100%; aspect-ratio: 5 / 3.4; object-fit: cover; border-radius: var(--r-sm); background: var(--lino); }
.cat-photo .caps { color: var(--fg-3); font-size: .62rem; }
@media (max-width: 900px) { .cat-head { grid-template-columns: 1fr; } .cat-photo { display: none; } }

/* ajustes finos */
.proj-item > .side { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
@media (max-width: 600px) { .proj-item > .side { flex-direction: row; align-items: center; } }
.prod-card .thumb img { transform: scale(1.14); }
.prod-card:hover .thumb img { transform: scale(1.18); }
@media (max-width: 700px) { .proj-steps div + div { padding-left: 0; } }
/* En móvil el header no usa backdrop-filter: crearía un contenedor para el menú fijo */
@media (max-width: 960px) { .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--crema); } }

/* ================= Proyectos entregados (galería) ================= */
.obras-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px clamp(24px, 5vw, 80px); align-items: end; }
.obras-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--linea); padding-top: 18px; }
.obras-stats strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; }
.obras-stats span { font-size: .78rem; color: var(--fg-2); }
@media (max-width: 900px) { .obras-head { grid-template-columns: 1fr; } }
.obras-filtros { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin: 24px 0 32px; border-bottom: 1px solid var(--linea); }
.obras-filtros .chips { margin: 0; border-bottom: 0; }
.seg { display: inline-flex; border: 1px solid var(--linea-2); border-radius: 999px; padding: 3px; margin-bottom: 10px; }
.seg button { padding: 7px 14px; border-radius: 999px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--fg-3); }
.seg button[aria-pressed="true"] { background: var(--tinta); color: var(--crema); }
.obras-grid { columns: 3 300px; column-gap: clamp(14px, 2vw, 24px); }
.obra { display: block; break-inside: avoid; margin-bottom: clamp(18px, 2.4vw, 30px); }
.obra .ph { position: relative; display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--lino); }
.obra .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease); }
.obra:hover .ph img, .obra:focus-visible .ph img { transform: scale(1.035); }
.obra .body { display: grid; gap: 2px; padding: 12px 2px 0; }
.obra strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.obra em { font-style: normal; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.tipo { position: absolute; left: 12px; top: 12px; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(246,242,233,.92); color: var(--verde-osc); }
.tipo.comercial { background: var(--verde-osc); color: var(--crema); }
.nfotos { position: absolute; right: 12px; bottom: 12px; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: rgba(14,22,18,.72); color: var(--crema); }
.proj-mosaic .nfotos { opacity: 0; transition: opacity var(--t-fast); }
.proj-mosaic figure:hover .nfotos { opacity: 1; }

/* ================= Visor de proyecto (lightbox) ================= */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(9, 14, 11, .96); display: grid; grid-template-columns: minmax(0, 1fr) 380px; opacity: 0; transition: opacity 220ms var(--ease); }
.lb.show { opacity: 1; }
.lb[hidden] { display: none; }
.lb-stage { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; padding: 56px 72px 16px; }
.lb-fig { margin: 0; min-height: 0; display: grid; place-items: center; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 170px); width: auto; height: auto; object-fit: contain; border-radius: var(--r-xs); opacity: 0; transform: scale(.985); transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.lb-fig img.in { opacity: 1; transform: none; }
.lb-cap { position: absolute; left: 72px; right: 72px; top: 18px; color: rgba(246,242,233,.6); font-size: .8rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-close { position: absolute; right: 16px; top: 10px; width: 44px; height: 44px; border-radius: 50%; color: var(--crema); font-size: 2rem; line-height: 1; display: grid; place-items: center; z-index: 2; }
.lb-close:hover { background: rgba(246,242,233,.1); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(246,242,233,.25); color: var(--crema); font-size: 2rem; line-height: 1; display: grid; place-items: center; transition: background var(--t-fast); }
.lb-nav:hover { background: rgba(246,242,233,.12); }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-nav[hidden] { display: none; }
.lb-count { position: absolute; left: 20px; top: 20px; color: rgba(246,242,233,.55); font-size: .72rem; letter-spacing: .14em; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; justify-content: center; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: none; width: 58px; height: 58px; border-radius: var(--r-xs); overflow: hidden; opacity: .5; outline-offset: 2px; transition: opacity var(--t-fast); }
.lb-thumbs button[aria-selected="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--dorado-claro); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-info { background: var(--crema); color: var(--fg); padding: 56px 32px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.lb-meta { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.lb-info h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin: 0; }
.lb-desc { color: var(--fg-2); margin: 0; }
.lb-facts { margin: 6px 0 0; border-top: 1px solid var(--linea); }
.lb-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: .9rem; }
.lb-facts dt { color: var(--fg-3); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.lb-facts dd { margin: 0; text-align: right; }
.lb-facts dd::first-letter { text-transform: uppercase; }
.lb-actions { display: grid; gap: 14px; margin-top: auto; padding-top: 16px; }
.lb-actions .btn { width: 100%; }
.lb-actions .link-arrow { justify-self: start; }
.lb-actions [hidden] { display: none; }
@media (max-width: 900px) {
  .lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb-stage { padding: 52px 8px 8px; }
  .lb-fig img { max-height: calc(100vh - 330px); }
  .lb-cap { display: none; }
  .lb-nav { width: 42px; height: 42px; background: rgba(9,14,11,.5); }
  .lb-nav.prev { left: 6px; }
  .lb-nav.next { right: 6px; }
  .lb-info { padding: 18px 18px 22px; max-height: 44vh; gap: 10px; }
  .lb-info h2 { font-size: 1.6rem; }
  .lb-facts { display: none; }
  .lb-actions { padding-top: 6px; }
}

/* ================= Proyección 3D ================= */
.proyeccion { background: radial-gradient(ellipse at 20% 20%, rgba(255,181,74,.10), transparent 50%), var(--verde-neg); }
.proyeccion-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.proyeccion-media { display: block; border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.proyeccion-media img { width: 100%; transition: transform 1000ms var(--ease); }
.proyeccion-media:hover img { transform: scale(1.02); }
.renders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.renders figure { margin: 0; }
.renders img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xs); }
.renders figcaption { font-size: .7rem; color: rgba(246,242,233,.55); margin-top: 6px; line-height: 1.3; }
@media (max-width: 900px) { .proyeccion-grid { grid-template-columns: 1fr; } .renders { grid-template-columns: repeat(2, 1fr); } }

/* ================= Clientes ================= */
.clientes-band { border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 26px 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px 32px; align-items: center; }
.clientes-band .eyebrow { margin: 0; }
.clientes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.clientes li { font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 400; color: var(--fg); display: flex; align-items: center; }
.clientes li:not(:last-child)::after { content: "\25C6"; color: var(--accent); font-size: .4em; margin: 0 16px; }
.on-dark .clientes li { color: var(--crema); }
@media (max-width: 800px) { .clientes-band { grid-template-columns: 1fr; } }
.b2b .clientes { margin-top: 22px; }
.b2b .clientes li { font-size: 1.15rem; }

/* ================= Local, horario, servicios, taller ================= */
.horario { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.horario li { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }
.horario li span:first-child { opacity: .75; }
.servicios { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.servicios li { padding: 8px 14px; border: 1px solid var(--linea-2); border-radius: 999px; font-size: .82rem; }
.taller-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
.taller-strip figure { margin: 0; }
.taller-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); }
.taller-strip figcaption { font-size: .78rem; color: var(--fg-2); margin-top: 8px; }
@media (max-width: 700px) { .taller-strip { grid-template-columns: 1fr 1fr; } .taller-strip figure:last-child { grid-column: span 2; } .taller-strip figure:last-child img { aspect-ratio: 16 / 10; } }
.zonas { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 12px 0 0; font-size: .9rem; color: var(--fg-2); }
.zonas li::before { content: "\25C6"; color: var(--accent); font-size: .5em; margin-right: 8px; vertical-align: 2px; }

/* ajustes: proyeccion en la home (fondo claro), fotos b2b con enlace */
.proyeccion-home { margin-top: clamp(48px, 7vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--linea-2); }
.proyeccion-home .proyeccion-media { box-shadow: var(--shadow-lg); }
.proyeccion-home .renders figcaption { color: var(--fg-3); }
.b2b .photos a { display: block; border-radius: var(--r-sm); overflow: hidden; }
.b2b .photos img:first-child { transform: none; }
.b2b .photos a:first-child { transform: translateY(-28px); }
.b2b .photos a img { transition: transform 1000ms var(--ease); }
.b2b .photos a:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .b2b .photos a:first-child { transform: none; } }
a.ph-caption:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* galería en grilla ordenada (fila por fila) */
.obras-grid { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px) clamp(14px, 2vw, 24px); }
.obra { margin-bottom: 0; }
.obra .ph { aspect-ratio: 4 / 5 !important; }
.obras-grid .empty { grid-column: 1 / -1; }
@media (max-width: 900px) { .obras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .obras-grid { gap: 22px 12px; } .obra strong { font-size: 1.05rem; } .obra em { font-size: .66rem; } .obra .tipo { font-size: .56rem; padding: 5px 8px; left: 8px; top: 8px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .obra .nfotos { display: none; } }

/* mosaico de proyectos (home): 1 grande + 5, alturas controladas por la grilla */
.proj-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
.proj-mosaic figure, .proj-mosaic figure:nth-child(n) { grid-column: auto; grid-row: auto; }
.proj-mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.proj-mosaic .ph { flex: none; min-height: 0; aspect-ratio: 4 / 5; }
.proj-mosaic figure:nth-child(1) .ph { aspect-ratio: auto; flex: 1; }
.proj-mosaic .ph img { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 960px) { .proj-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); } .proj-mosaic figure:nth-child(1) { grid-column: span 2; grid-row: auto; } .proj-mosaic figure:nth-child(1) .ph { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .proj-mosaic figure:nth-child(n) figcaption span { display: none; } }
.renders img { height: auto; }
.proyeccion-grid { align-items: start; }

/* filtros en una sola fila deslizable en celular */
@media (max-width: 700px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 20px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex: none; }
  .obras-filtros { display: grid; gap: 14px; border-bottom: 0; margin-bottom: 24px; }
  .obras-filtros .chips { border-bottom: 1px solid var(--linea); }
  .seg { justify-self: start; margin: 0; }
  .obras-stats strong { font-size: 1.9rem; }
}

/* visor: la foto nunca pisa las miniaturas */
.lb-fig { height: 100%; overflow: hidden; }
.lb-fig img { max-height: 100%; }
@media (max-width: 900px) { .lb-thumbs button { width: 44px; height: 44px; } .lb-thumbs { padding-top: 8px; } .lb-info { max-height: 40vh; } }
.split .media img[src*="local-ruta-8"] { object-position: center 75%; }

/* =====================================================================
   Celulares Android e iOS
   ===================================================================== */
html { -webkit-tap-highlight-color: transparent; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
button, input, select, textarea { -webkit-appearance: none; appearance: none; }
input[type="radio"], input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1B18' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; padding-right: 40px; }
.site-header { background: rgba(246, 242, 233, .94); background: color-mix(in srgb, var(--crema) 90%, transparent); }

/* Zonas seguras (notch, isla dinámica y barra de gestos) */
@supports (padding: max(0px)) {
  .container { width: min(var(--container), 100% - 2 * max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right))); }
  .wa-float { right: max(18px, env(safe-area-inset-right)); bottom: max(18px, calc(12px + env(safe-area-inset-bottom))); }
  .site-footer { padding-bottom: max(28px, calc(16px + env(safe-area-inset-bottom))); }
}

/* Portada: las fotos y el texto del proyecto ya no se pisan */
.hero-photos { position: absolute; inset: 0; }
@media (max-width: 960px) {
  .hero-art { aspect-ratio: auto; width: 100%; max-width: 560px; }
  .hero-photos { position: relative; inset: auto; aspect-ratio: 1 / 1; }
  .hero-art .ph-main { width: 72%; }
  .hero-art .ph-second { width: 46%; bottom: 0; border-width: 5px; }
  .hero-art .badge-3d { top: 12px; left: calc(28% + 12px); padding: 10px 14px; font-size: .64rem; }
  .hero-art .ph-caption { position: static; width: auto; margin-top: 22px; padding-left: 14px; }
  .hero-art .ph-caption strong { font-size: 1.1rem; }
  .hero-art .ph-caption em { font-size: .6rem; }
}

/* Configurador de la portada: textos legibles sobre cualquier fondo */
.showroom-label { background: rgba(14, 22, 18, .78); padding: 8px 12px; border-radius: 8px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 2; }
.showroom-stage .hint { background: rgba(14, 22, 18, .7); color: rgba(246, 242, 233, .85); padding: 6px 12px; border-radius: 999px; z-index: 2; }
@media (max-width: 520px) {
  .showroom-label { right: 10px; top: 10px; padding: 6px 10px; }
  .showroom-label strong { font-size: 1.1rem; }
  .showroom-stage .hint { left: 10px; bottom: 10px; font-size: .6rem; }
  .showroom-stage { aspect-ratio: 4 / 3.4; }
}

/* Visor de fotos: alto real de pantalla en iPhone (sin la barra de Safari) */
.lb { height: 100vh; height: 100dvh; }
@media (max-width: 900px) {
  .lb-info { max-height: 40vh; max-height: 40dvh; padding-bottom: max(22px, calc(14px + env(safe-area-inset-bottom))); }
  .lb-close { top: max(10px, env(safe-area-inset-top)); }
  .lb-count { top: max(20px, calc(10px + env(safe-area-inset-top))); }
}

/* Menú móvil: alto correcto y sin rebote */
@media (max-width: 960px) {
  .nav { height: calc(100vh - 66px); height: calc(100dvh - 66px); overscroll-behavior: contain; padding-bottom: max(40px, calc(24px + env(safe-area-inset-bottom))); }
  .wa-float { width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* Campos: 16 px mínimo para que iOS no haga zoom al tocar */
@media (max-width: 900px) {
  .proj-item .fields .field input, .field input, .field select, .field textarea { font-size: 16px; }
}

/* En pantallas táctiles no quedan efectos de "hover" pegados */
@media (hover: none) {
  .btn:hover, .hero-art .badge-3d:hover, .wa-float:hover { transform: none; }
  .cat-row:hover { background: none; }
  .cat-row:hover h3, .cat-row:hover .arrow { transform: none; }
  .obra:hover .ph img, .proj-mosaic figure:hover .ph img, .gallery a:hover img, .b2b .photos a:hover img, .proyeccion-media:hover img { transform: none; }
  .prod-card:hover .thumb img { transform: scale(1.14); }
  .mat-tile:hover .chip-c, .sw-opt label:hover .chip-c, .sw-tile:hover { transform: none; }
  .ticker:hover .track { animation-play-state: running; }
  .proj-mosaic .nfotos { opacity: 1; }
  .link-arrow:hover { gap: 10px; }
}

/* Pantallas muy angostas (Android chicos, iPhone SE) */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  h1 { font-size: 2.45rem; }
  .hero-ed h1 { font-size: 2.45rem; }
  h2 { font-size: 1.85rem; }
  .btn { padding: 14px 18px; letter-spacing: .06em; }
  .btn-lg { padding: 15px 18px; }
  .brand { font-size: 1rem; }
  .brand img { width: 34px; height: 34px; }
  .hdr-actions { gap: 6px; }
  .obras-stats { gap: 10px; }
  .obras-stats strong { font-size: 1.6rem; }
  .trust-row strong { font-size: 2.2rem; }
  .cta-band { padding: 28px 20px; }
  .lb-info h2 { font-size: 1.4rem; }
}

/* ajustes detectados en la prueba con iPhone y Android */
img { height: auto; }
.trust-row span { display: block; }
@media (max-width: 960px) {
  .proj-mosaic figure:nth-child(6) { grid-column: span 2; }
  .proj-mosaic figure:nth-child(6) .ph { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .wa-float { transition: transform 260ms var(--ease), opacity 260ms var(--ease); }
  .wa-float.hide { transform: translateY(90px); opacity: 0; pointer-events: none; }
}
/* las grillas de una columna nunca se estiran más que la pantalla */
@media (max-width: 960px) {
  .split, .contact, .proj-layout, .b2b .container, .showroom .container, .proyeccion-grid, .cat-head, .obras-head, .section-head, .hero-ed .container, .cta-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .stats strong { font-size: 1.75rem; }
  .obras-stats { grid-template-columns: 1fr 1fr 1fr; }
}
.stats span { display: block; line-height: 1.45; }
@media (max-width: 340px) { .stats { grid-template-columns: 1fr 1fr; } }
/* Configurador en celular: la vista fija usa el alto visible real (con las barras de Safari/Chrome) */
@media (max-width: 900px) {
  .cfg-view .stage3d { height: 34vh; max-height: 34vh; height: 32svh; max-height: 32svh; }
  .cfg-view .stage .mueble-svg { max-height: 34vh; max-height: 32svh; }
  .cfg-view .view-tabs { margin-bottom: 6px; }
  .cfg-view .view-tabs button { padding: 8px 0; }
}
@media (max-width: 900px) and (max-height: 640px) {
  .cfg-view .stage3d { height: 28vh; max-height: 28vh; height: 27svh; max-height: 27svh; }
  .cfg-view .stage .mueble-svg { max-height: 27svh; }
}
/* Con el menú abierto no se superpone el botón flotante; visor de fotos con fondo sólido */
body.nav-open .wa-float { opacity: 0; pointer-events: none; transform: translateY(90px); }
.lb { background: #090e0b; }
