/* ============================================================
   LAMINCO — FLOORING SYSTEMS
   Design system · Editorial Luxury × Soft Structuralism
   ============================================================ */

:root {
  /* Palette — charcoal, warm white, stone, oak, walnut */
  --ink:        #0B0B0C;
  --ink-2:      #131315;
  --ink-3:      #1C1C1F;
  --smoke:      #2A2A2E;
  --stone:      #7A7A80;
  --stone-2:    #A8A6A1;
  --bone:       #E9E5DE;
  --bone-2:     #F4F1EB;
  --white:      #FDFCFA;
  --oak:        #B98C56;
  --oak-soft:   #C9A278;
  --walnut:     #6B4A31;
  --beige:      #D8CBB8;
  --metal:      #8E8B84;

  --line:       rgba(233,229,222,0.12);
  --line-soft:  rgba(233,229,222,0.06);
  --line-dark:  rgba(11,11,12,0.10);

  /* Type */
  --f-display: 'Sora', 'Space Grotesk', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout:  cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 88px);
  --maxw: 1560px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
canvas { display: block; }
::selection { background: var(--oak); color: var(--ink); }

/* Film grain — fixed, never on scrolling content */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: var(--grain-url);
  background-size: 180px 180px;
}

/* ---------- Typography scale ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone-2);
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(233,229,222,0.03);
}
.eyebrow::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--oak); flex: none;
}

h1, h2, h3 { font-weight: 300; letter-spacing: -0.035em; margin: 0; line-height: 0.95; }
.h-xl  { font-size: clamp(44px, 9.5vw, 168px); }
.h-lg  { font-size: clamp(36px, 6.4vw, 104px); line-height: 0.92; }
.h-md  { font-size: clamp(28px, 3.6vw, 60px); }
.lead  { font-size: clamp(15px, 1.15vw, 19px); color: var(--stone-2); line-height: 1.65; font-weight: 300; max-width: 46ch; }
.mono  { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }

/* ---------- Buttons: island / button-in-button ---------- */
.btn {
  --bg: var(--bone); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 7px 7px 24px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  font-family: var(--f-mono);
  transition: transform 220ms var(--ease-out), background-color 320ms var(--ease-out), color 320ms var(--ease-out);
  will-change: transform;
}
.btn__ico {
  width: 34px; height: 34px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  background: rgba(11,11,12,0.08);
  transition: transform 340ms var(--ease-out), background-color 340ms var(--ease-out);
}
.btn__ico svg { width: 13px; height: 13px; }
.btn:active { transform: scale(0.975); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__ico { transform: translate(3px, -3px) scale(1.06); background: rgba(11,11,12,0.14); }
}
.btn--ghost { --bg: transparent; --fg: var(--bone); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost .btn__ico { background: rgba(233,229,222,0.08); }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { background: rgba(233,229,222,0.06); }
  .btn--ghost:hover .btn__ico { background: rgba(233,229,222,0.16); }
}
.btn--oak { --bg: var(--oak); --fg: #17110A; }

/* ---------- Header ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  /* el cielo del render puede ser claro: el header necesita su propia base */
  background-image: linear-gradient(180deg, rgba(11,11,12,0.72) 0%, rgba(11,11,12,0.46) 58%, rgba(11,11,12,0.12) 86%, rgba(11,11,12,0) 100%);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(11,11,12,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background-color 500ms var(--ease-out), backdrop-filter 500ms var(--ease-out),
              border-color 500ms var(--ease-out);
}
/* Oscurece SÓLO lo que hay detrás de la nav, con el canto inferior
   difuminado por máscara: mantiene el header de vidrio y sube el
   contraste del menú de 1.5:1 a más de 5:1 sobre un cielo claro.   */
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  backdrop-filter: brightness(0.46) saturate(1.08);
  -webkit-backdrop-filter: brightness(0.46) saturate(1.08);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
  transition: backdrop-filter 500ms var(--ease-out);
}
.nav.is-stuck::before { backdrop-filter: none; -webkit-backdrop-filter: none; }

.nav.is-stuck {
  background: rgba(11,11,12,0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand__mark {
  font-size: 17px; font-weight: 500; letter-spacing: 0.30em; color: var(--white);
  text-shadow: 0 1px 16px rgba(11,11,12,0.9);
}
.brand__sub {
  font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.28em;
  color: var(--stone-2); text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(11,11,12,0.9);
}
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  position: relative; font-size: 12px; letter-spacing: 0.1em; color: var(--bone);
  text-shadow: 0 1px 14px rgba(11,11,12,0.9);
  text-transform: uppercase; font-family: var(--f-mono);
  transition: color 260ms var(--ease-out);
}
.nav__links a { font-weight: 400; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--oak); transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--white); }
  .nav__links a:hover::after { transform: scaleX(1); }
}
.nav__cta .btn { padding: 5px 5px 5px 20px; font-size: 11px; }
.nav__cta .btn__ico { width: 30px; height: 30px; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 81; }
.burger span {
  position: absolute; left: 11px; width: 22px; height: 1.4px; background: var(--bone);
  transition: transform 420ms var(--ease-drawer), opacity 200ms var(--ease-out);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 25px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(11,11,12,0.86);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 440ms var(--ease-out), visibility 440ms;
}
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu a {
  display: block; font-size: clamp(34px, 11vw, 64px); letter-spacing: -0.04em;
  padding: 10px 0; color: var(--bone);
  opacity: 0; transform: translateY(28px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out), color 260ms var(--ease-out);
}
body.menu-open .menu a { opacity: 1; transform: translateY(0); }
body.menu-open .menu a:nth-child(1) { transition-delay: 80ms; }
body.menu-open .menu a:nth-child(2) { transition-delay: 130ms; }
body.menu-open .menu a:nth-child(3) { transition-delay: 180ms; }
body.menu-open .menu a:nth-child(4) { transition-delay: 230ms; }
body.menu-open .menu a:nth-child(5) { transition-delay: 280ms; }

/* ---------- Preloader ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 900ms var(--ease-out), visibility 900ms;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__inner { text-align: center; width: min(340px, 74vw); }
.boot__mark { font-size: 22px; letter-spacing: 0.42em; color: var(--white); font-weight: 400; }
.boot__sub { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.3em; color: var(--stone); margin-top: 12px; }
.boot__bar { margin-top: 34px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.boot__fill {
  position: absolute; inset: 0; background: var(--oak);
  transform: scaleX(0); transform-origin: left;
  transition: transform 420ms var(--ease-out);
}
.boot__pct { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--stone); margin-top: 12px; }
/* mientras se construye la escena la barra avanza sola, desacelerando
   hacia el 88 %: nunca parece colgada y nunca miente llegando al 100 */
.boot.is-building .boot__fill { animation: bootcreep 9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes bootcreep { from { transform: scaleX(0.12); } to { transform: scaleX(0.88); } }
@media (max-width: 480px) {
  .boot { min-height: 100svh; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
  .boot__inner { width: min(280px, 80vw); }
  .boot__mark { font-size: 18px; letter-spacing: 0.36em; padding-left: 0.36em; }
  .boot__sub { font-size: 8px; }
  .boot__bar { margin-top: 26px; }
  .boot__pct { font-size: 8px; }
}

/* ---------- 3D stage ---------- */
.stage {
  position: fixed; inset: 0; z-index: 1;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}
.stage.is-live { opacity: 1; }
.stage.is-hidden { opacity: 0; pointer-events: none; }
.stage__canvas { width: 100%; height: 100%; }
/* Cinematic vignette + faux depth-of-field haze */
.stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(150% 118% at 50% 46%, rgba(11,11,12,0) 74%, rgba(11,11,12,0.16) 92%, rgba(11,11,12,0.34) 100%);
}

/* ---------- Journey (scroll-driven) ---------- */
.journey { position: relative; z-index: 10; }
.scene {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 12svh var(--gutter);
  pointer-events: none;
}
.scene > * { pointer-events: auto; position: relative; z-index: 2; }
/* ---------- Legibilidad del texto sobre el render ----------
   Un velo rectangular deja cantos visibles y ensucia la arquitectura.
   Aquí el fondo es una elipse muy suave, anclada al bloque de texto y
   apagándose en TODAS las direcciones: no tiene borde que se pueda ver.
   El resto del encuadre queda intacto.                                  */
.scene::before { content: none; }

.panel {
  position: relative;
  max-width: 560px;
  opacity: 0; transform: translateY(46px); filter: blur(10px);
  transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out), filter 900ms var(--ease-out);
  will-change: transform, opacity;
  text-shadow: 0 1px 26px rgba(11,11,12,0.9), 0 0 64px rgba(11,11,12,0.7);
}
.panel.is-in { opacity: 1; transform: translateY(0); filter: blur(0); }

.panel::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: -70%; bottom: -70%; left: -70vw; right: -60%;
  background: radial-gradient(closest-side ellipse at 62% 50%,
    rgba(11,11,12,0.80) 0%,
    rgba(11,11,12,0.72) 34%,
    rgba(11,11,12,0.44) 62%,
    rgba(11,11,12,0.16) 82%,
    rgba(11,11,12,0) 100%);
}
.scene--right .panel::before {
  left: -60%; right: -70vw;
  background: radial-gradient(closest-side ellipse at 38% 50%,
    rgba(11,11,12,0.80) 0%,
    rgba(11,11,12,0.72) 34%,
    rgba(11,11,12,0.44) 62%,
    rgba(11,11,12,0.16) 82%,
    rgba(11,11,12,0) 100%);
}
.scene--center .panel::before {
  top: -85%; bottom: -85%; left: -55%; right: -55%;
  background: radial-gradient(closest-side ellipse at 50% 50%,
    rgba(11,11,12,0.80) 0%,
    rgba(11,11,12,0.70) 36%,
    rgba(11,11,12,0.40) 64%,
    rgba(11,11,12,0.14) 84%,
    rgba(11,11,12,0) 100%);
}

.panel__title { margin: 22px 0 18px; }
.panel__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone); padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(233,229,222,0.24);
  background: rgba(11,11,12,0.42);
  text-shadow: none;
  white-space: nowrap;
}

.hero { position: relative; z-index: 10; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(11,11,12,0.22) 0%, rgba(11,11,12,0) 22%,
    rgba(11,11,12,0) 66%, rgba(11,11,12,0.26) 92%, rgba(11,11,12,0.40) 100%);
}
/* El cielo de atardecer es claro y el texto es blanco: medido daba 1.3:1
   de contraste. Este óvalo lo sube por encima de 4.5:1 sin poner un velo
   sobre la arquitectura — se apaga en todas las direcciones.          */
.hero__fade { position: relative; }

/* ---------- Hero comercial: el producto manda ----------
   Antes: wordmark de 240 px centrado sobre una casa. Parecía una
   inmobiliaria. La marca pasa a firma discreta y el titular nombra
   lo que se vende; los muestrarios ponen producto real en la
   primera pantalla, que es lo que buscaba el cliente que llega.   */
.hero--left { place-items: center start; text-align: left; }
.hero--left .hero__fade { max-width: 720px; }

.hero--left .eyebrow { margin-bottom: 24px; }
.hero__dot { color: var(--oak); }
.hero__h1 {
  font-size: clamp(40px, 6.4vw, 96px); line-height: 0.98; font-weight: 200;
  letter-spacing: -0.04em; color: var(--white); margin: 0;
  text-shadow: 0 0 20px rgba(11,11,12,0.9), 0 2px 46px rgba(11,11,12,0.8);
}
.hero__claim {
  margin: 22px 0 0; max-width: 42ch;
  font-size: clamp(15px, 1.25vw, 19px); line-height: 1.6; color: var(--stone-2);
  text-shadow: 0 0 12px rgba(11,11,12,0.95);
}
.hero__claim strong { color: var(--bone); font-weight: 400; }
/* un solo peso, 200: el contraste va por color, no por grosor. El peso
   400 en el cierre lo volvía pesado y le quitaba el aire de estudio. */
.hero__h1-light { color: var(--stone-2); }

/* muestrario: cuatro muestras reales, en silencio. Sin línea, sin etiqueta,
   sin tarjetas: la textura y un nombre en mono pequeño.                 */
.hero__samples { margin-top: 38px; display: flex; gap: 26px; align-items: flex-start; }
.hero__sw {
  display: grid; gap: 10px; justify-items: start;
  color: var(--stone-2); text-decoration: none;
}
.hero__sw-tile {
  width: 44px; height: 44px; border-radius: 3px; display: block;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), 0 10px 24px -12px rgba(11,11,12,0.95);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.hero__sw-txt { display: grid; gap: 2px; line-height: 1; }
.hero__sw-txt b { font-family: var(--f-mono); font-weight: 400; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone); }
.hero__sw-txt small { display: none; }
.hero__sw:active .hero__sw-tile { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .hero__sw:hover .hero__sw-tile { transform: translateY(-3px) rotate(-2deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 14px 26px -10px rgba(11,11,12,0.95); }
}
@media (max-width: 860px) {
  /* el bloque es más alto que la pantalla: fluye desde arriba en vez de
     desbordar por detrás de la barra */
  .hero--left { place-items: start center; padding-top: 108px; padding-bottom: 14svh; }
  .hero__samples { justify-content: center; gap: 22px; }
  .hero__sw { justify-items: center; }
  .hero__sw-tile { width: 40px; height: 40px; }
}
.hero__trust { justify-content: flex-start; }

/* el óvalo del scrim se desplaza al bloque izquierdo */
.hero--left .hero__fade::before {
  left: -46%; right: -30%; top: -34%; bottom: -22%;
  background: radial-gradient(closest-side ellipse at 42% 48%,
    rgba(11,11,12,0.80) 0%, rgba(11,11,12,0.70) 40%,
    rgba(11,11,12,0.42) 68%, rgba(11,11,12,0.12) 86%, rgba(11,11,12,0) 100%);
}
@media (max-width: 860px) {
  .hero--left { place-items: end center; text-align: center; padding-bottom: 12svh; }
  .hero__brand, .hero__trust { justify-content: center; }
  .hero__claim { margin-inline: auto; }
}
.hero__fade::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  /* Ceñido al texto y con caída rápida: con 11:1 de contraste medido
     sobraba margen, y el óvalo grande volvía a apagar la arquitectura. */
  left: -30%; right: -30%; top: -38%; bottom: -24%;
  background: radial-gradient(closest-side ellipse at 50% 45%,
    rgba(11,11,12,0.76) 0%,
    rgba(11,11,12,0.68) 38%,
    rgba(11,11,12,0.42) 66%,
    rgba(11,11,12,0.14) 85%,
    rgba(11,11,12,0) 100%);
}
.hero__mark {
  font-size: clamp(52px, 15.5vw, 240px); line-height: 0.82; font-weight: 200;
  letter-spacing: -0.045em; color: var(--white);
  display: block;
  text-shadow: 0 0 18px rgba(11,11,12,0.95), 0 2px 46px rgba(11,11,12,0.85), 0 0 120px rgba(11,11,12,0.55);
}
.hero__sub {
  text-shadow: 0 0 12px rgba(11,11,12,0.95), 0 1px 32px rgba(11,11,12,0.85);
  font-family: var(--f-mono); font-size: clamp(9px, 1.3vw, 13px);
  letter-spacing: clamp(0.3em, 1.1vw, 0.62em); text-transform: uppercase;
  color: var(--bone); margin-top: 20px; padding-left: 0.5em;
}
.hero__cats strong { color: var(--white); font-weight: 400; }
.hero__trust {
  margin-top: 34px; display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bone);
  text-shadow: 0 0 14px rgba(11,11,12,1), 0 1px 20px rgba(11,11,12,0.9);
}
.hero__trust i { width: 3px; height: 3px; border-radius: 50%; background: var(--oak); flex: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hero__cats { text-shadow: 0 0 12px rgba(11,11,12,0.95), 0 1px 26px rgba(11,11,12,0.85); margin-top: 26px; font-size: 13px; color: var(--stone-2); letter-spacing: 0.02em; }
.hero__cta { margin-top: 42px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__fade > * {
  opacity: 0; transform: translateY(24px); filter: blur(8px);
  animation: heroIn 1100ms var(--ease-out) forwards;
}
.hero__fade > *:nth-child(1) { animation-delay: 240ms; }
.hero__fade > *:nth-child(2) { animation-delay: 340ms; }
.hero__fade > *:nth-child(3) { animation-delay: 420ms; }
.hero__fade > *:nth-child(4) { animation-delay: 500ms; }
.hero__fade > *:nth-child(5) { animation-delay: 580ms; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.26em; color: var(--stone);
  text-transform: uppercase;
  transition: opacity 500ms var(--ease-out);
}
.scroll-hint__line { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint__line::after {
  content: ''; position: absolute; inset: 0; background: var(--oak);
  animation: hintRun 2200ms var(--ease-inout) infinite;
}
@keyframes hintRun {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Journey HUD */
.hud {
  position: fixed; left: var(--gutter); top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 12px;
  opacity: 0; visibility: hidden;
  transition: opacity 600ms var(--ease-out), visibility 600ms;
}
.hud.is-on { opacity: 1; visibility: visible; }
.hud__row { display: flex; align-items: center; gap: 12px; }
.hud__dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--line);
  transition: background-color 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.hud__row.is-on .hud__dot { background: var(--oak); transform: scale(1.7); }
.hud__label {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone); opacity: 0; transform: translateX(-6px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), color 420ms var(--ease-out);
}
.hud__row.is-on .hud__label { opacity: 1; transform: translateX(0); color: var(--bone); }

/* ---------- Generic sections ---------- */
.sec { position: relative; z-index: 12; background: var(--ink); padding: clamp(96px, 14vh, 190px) var(--gutter); }
.sec--bone { background: var(--bone-2); color: var(--ink); }
.sec--bone .lead { color: #5C5A55; }
.sec--bone .mono, .sec--bone .tag { color: #6E6B65; border-color: var(--line-dark); }
.sec--bone .eyebrow { color: #6E6B65; border-color: var(--line-dark); background: rgba(11,11,12,0.02); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 64px; }
.sec__head .h-lg { max-width: 15ch; }

.reveal { opacity: 0; transform: translateY(52px); filter: blur(10px);
  transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out), filter 900ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal[data-d="1"] { transition-delay: 70ms; }
.reveal[data-d="2"] { transition-delay: 140ms; }
.reveal[data-d="3"] { transition-delay: 210ms; }
.reveal[data-d="4"] { transition-delay: 280ms; }
.reveal[data-d="5"] { transition-delay: 350ms; }

/* ---------- Configurator ---------- */
.cfg { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: stretch; }

/* Double-bezel shell */
.shell {
  padding: 8px; border-radius: 34px;
  background: rgba(11,11,12,0.04);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.sec:not(.sec--bone) .shell { background: rgba(233,229,222,0.035); box-shadow: inset 0 0 0 1px var(--line); }
.shell__core {
  border-radius: 26px; overflow: hidden; position: relative; height: 100%;
  background: var(--ink-2);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.10);
}
.cfg__view { min-height: min(66vh, 620px); position: relative; }
.cfg__view canvas { width: 100%; height: 100%; }
.cfg__badge {
  position: absolute; left: 18px; top: 18px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(11,11,12,0.42);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cfg__badge b { font-size: 15px; font-weight: 400; letter-spacing: -0.02em; color: var(--white); }
.cfg__badge span { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--stone-2); text-transform: uppercase; }
.cfg__panel { display: flex; flex-direction: column; gap: 26px; padding: 28px; color: var(--bone); }
.sec--bone .cfg__panel { color: var(--bone); }
.cfg__group h4 { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin: 0 0 12px; font-weight: 400; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opt {
  position: relative; padding: 14px 14px; border-radius: 14px; text-align: left;
  background: rgba(233,229,222,0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone-2);
  transition: transform 200ms var(--ease-out), background-color 320ms var(--ease-out), color 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.opt:active { transform: scale(0.975); }
.opt.is-on { background: var(--bone); color: var(--ink); box-shadow: inset 0 0 0 1px var(--bone); }
@media (hover: hover) and (pointer: fine) { .opt:not(.is-on):hover { background: rgba(233,229,222,0.09); color: var(--bone); } }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw {
  width: 38px; height: 38px; border-radius: 12px; padding: 3px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 240ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.sw i { display: block; width: 100%; height: 100%; border-radius: 9px; background: var(--c); }
.sw.is-on { box-shadow: inset 0 0 0 1.5px var(--oak); transform: scale(1.04); }
.sw:active { transform: scale(0.95); }
.cfg__spec { display: grid; gap: 10px; padding-top: 4px; }
.cfg__spec div { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--stone-2); border-top: 1px solid var(--line); padding-top: 10px; }
.cfg__spec b { font-weight: 400; color: var(--bone); }

/* ---------- Configurador inmersivo ----------
   La sección más repetida de la página era también la más importante.
   Ahora es un escaparate a sangre completa con el panel flotando como
   vidrio sobre la escena — un configurador de producto, no una tarjeta. */
.sec--cfg { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.sec--cfg .wrap { max-width: none; }
.sec--cfg .sec__head { max-width: var(--maxw); margin: 0 auto 44px; padding: 0 var(--gutter); }
.sec--cfg .cfg { display: block; position: relative; }
.sec--cfg .cfg .shell:first-child { padding: 0; border-radius: 0; box-shadow: none; background: none; }
.sec--cfg .cfg .shell:first-child .shell__core { border-radius: 0; box-shadow: none; }
.sec--cfg .cfg__view { min-height: 86vh; }
.sec--cfg .cfg .shell:last-child {
  position: absolute; top: 34px; right: var(--gutter); width: 356px; z-index: 5;
  padding: 0; border-radius: 24px;
  background: rgba(13,13,15,0.82);          /* vidrio oscuro sin blur: hay canvas animado debajo */
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,0.45);
}
.sec--cfg .cfg .shell:last-child .shell__core { background: transparent; box-shadow: none; border-radius: 24px; }
.sec--cfg .cfg__badge { left: var(--gutter); bottom: 24px; top: auto; }
@media (max-width: 1180px) {
  .sec--cfg .cfg .shell:last-child { position: static; width: auto; margin: -60px var(--gutter) 0; }
  .sec--cfg .cfg__view { min-height: 62vh; }
}

/* variantes de cabecera: rompen la plantilla única */
.sec__head--center { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.sec__head--center .h-lg, .sec__head--center .lead { max-width: 24ch; }
.sec__head--right { flex-direction: row-reverse; }
.sec__head--right > div { text-align: right; }
.sec__head--right .h-lg { margin-left: auto; }

/* ---------- Collections ---------- */
.grid-col { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  position: relative; grid-column: span 4; border-radius: 30px; padding: 7px;
  background: rgba(11,11,12,0.04);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: transform 640ms var(--ease-out);
  will-change: transform;
}
.sec:not(.sec--bone) .card { background: rgba(233,229,222,0.035); box-shadow: inset 0 0 0 1px var(--line); }
.card--wide { grid-column: span 8; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-6px); } }
.card__core {
  border-radius: 23px; overflow: hidden; position: relative;
  background: var(--ink-2); display: flex; flex-direction: column;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.09);
}
.card__vis { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ink-3); }
.card--wide .card__vis { aspect-ratio: 16/9; }
.card__vis canvas, .card__vis img { width: 100%; height: 100%; object-fit: cover; }
.card__vis::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0) 40%, rgba(11,11,12,0.72) 100%);
}
.card__ref {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--bone);
  padding: 5px 10px; border-radius: 999px; background: rgba(11,11,12,0.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card__body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__name { font-size: 21px; letter-spacing: -0.03em; color: var(--white); }
.card__specs { display: grid; gap: 7px; margin-top: 2px; }
.card__specs div { display: flex; justify-content: space-between; gap: 14px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.card__specs b { color: var(--stone-2); font-weight: 400; }
.card__cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone);
}
.card__cta i {
  width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(233,229,222,0.08); transition: transform 340ms var(--ease-out), background-color 340ms var(--ease-out);
}
.card__cta svg { width: 11px; height: 11px; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__cta i { transform: translate(3px,-3px); background: var(--oak); color: var(--ink); }
}

/* ---------- Ficha técnica ---------- */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 60px; }
.spec {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 20px 0; border-top: 1px solid var(--line-dark);
}
.spec__k {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #6E6B65; flex: none;
}
.spec__v { font-size: 14.5px; color: var(--ink); text-align: right; line-height: 1.5; }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Installation ---------- */
.inst { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: start; }
.steps { display: grid; }
.step {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 20px; align-items: baseline;
  padding: 24px 0; border-top: 1px solid var(--line-dark);
  cursor: default;
  transition: opacity 500ms var(--ease-out);
}
.sec:not(.sec--bone) .step { border-top-color: var(--line); }
.step:last-child { border-bottom: 1px solid var(--line-dark); }
.step__n { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--stone); }
.step__t { font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.03em; transition: color 420ms var(--ease-out); }
.step__d { font-size: 12.5px; color: #78756F; max-width: 34ch; text-align: right; }
.step.is-on .step__n { color: var(--oak); }
.inst__vis { position: relative; border-radius: 30px; padding: 7px; box-shadow: inset 0 0 0 1px var(--line-dark); background: rgba(11,11,12,0.04); position: sticky; top: 110px; }
.inst__core { border-radius: 23px; overflow: hidden; background: var(--ink-2); aspect-ratio: 4/3.4; position: relative; }
.inst__core canvas { width: 100%; height: 100%; }
.inst__prog { position: absolute; left: 20px; right: 20px; bottom: 18px; height: 1px; background: rgba(233,229,222,0.18); }
.inst__prog i { position: absolute; inset: 0; background: var(--oak); transform-origin: left; transform: scaleX(0); transition: transform 700ms var(--ease-out); }

/* ---------- Projects ---------- */
.proj { position: relative; border-radius: 0; }
.proj__item {
  position: relative; min-height: 84svh; display: flex; align-items: flex-end;
  padding: var(--gutter); overflow: hidden; border-radius: 26px; margin-bottom: 16px;
}
.proj__bg { position: absolute; inset: 0; }
.proj__bg canvas, .proj__bg img { width: 100%; height: 100%; object-fit: cover; }
.proj__item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.30) 0%, rgba(11,11,12,0.0) 35%, rgba(11,11,12,0.80) 100%);
}
.proj__txt { position: relative; z-index: 2; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.proj__txt h3 { font-size: clamp(30px, 5.2vw, 78px); color: var(--white); }
.proj__side { text-align: right; }

/* ---------- Final CTA ---------- */
.final { position: relative; z-index: 12; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.final__mark { font-size: clamp(30px, 3.4vw, 56px); letter-spacing: -0.04em; color: var(--white); max-width: 16ch; margin: 0 auto; line-height: 1.02; }
.final__brand { margin-top: 54px; }
.final__brand b { display: block; font-size: clamp(30px, 6vw, 74px); font-weight: 200; letter-spacing: 0.22em; color: var(--white); }
.final__brand span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.44em; color: var(--stone); text-transform: uppercase; }
.final__cta { margin-top: 44px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 12; background: var(--ink-2); padding: 74px var(--gutter) 40px; border-top: 1px solid var(--line-soft); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: var(--maxw); margin: 0 auto; }
.foot h5 { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); margin: 0 0 16px; font-weight: 400; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot li a { font-size: 13px; color: var(--stone-2); transition: color 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .foot li a:hover { color: var(--bone); } }
.foot__bar { max-width: var(--maxw); margin: 56px auto 0; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #56545010; color: var(--stone); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cfg { grid-template-columns: 1fr; }
  .card { grid-column: span 6; }
  .card--wide { grid-column: span 12; }
  .inst { grid-template-columns: 1fr; gap: 40px; }
  .inst__vis { position: sticky; top: calc(var(--nav-h) + 10px); order: -1; }
}
@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .hud { display: none; }
  .card, .card--wide { grid-column: span 12; }
  .step { grid-template-columns: 46px 1fr; }
  .step__d { grid-column: 2; text-align: left; margin-top: 6px; }
  .scene { padding: 10svh var(--gutter); align-items: flex-end; }
  .scene--right { justify-content: flex-start; }
  .panel::before,
  .scene--right .panel::before,
  .scene--center .panel::before {
    left: -30vw; right: -30vw; top: -40%; bottom: -90vh;
    background: radial-gradient(closest-side ellipse at 50% 32%,
      rgba(11,11,12,0.88) 0%, rgba(11,11,12,0.78) 40%,
      rgba(11,11,12,0.42) 68%, rgba(11,11,12,0) 100%);
  }
  .panel { max-width: 100%; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .proj__item { min-height: 62svh; border-radius: 20px; }
  .opts { grid-template-columns: 1fr 1fr; }
  .cfg__view { min-height: 0; aspect-ratio: 4 / 3.1; }
  .cfg__panel { padding: 22px 18px; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .reveal, .hero__fade > * { transition: opacity 300ms ease; transform: none !important; filter: none !important; animation: none; opacity: 1; }
  .scroll-hint__line::after { animation: none; }
}

/* Al final del archivo a propósito: debe ganar a las reglas base de
   .hero__trust, .hero__cta y .scroll-hint, que están más arriba. */
/* Teléfono. El bloque completo no cabe en 667 px: se reduce la escala de
   todo, la línea de confianza pasa a una sola fila y el "desliza" se va,
   que el pulgar ya sabe deslizar.                                        */
@media (max-width: 480px) {
  .hero--left { place-items: center; padding-top: 84px; padding-bottom: 36px; padding-inline: 22px; }
  .hero--left .eyebrow { margin-bottom: 18px; font-size: 8px; letter-spacing: 0.18em; padding: 6px 12px; }
  .hero__h1 { font-size: clamp(30px, 9.4vw, 38px); line-height: 1.02; letter-spacing: -0.03em; }
  /* el <br> se convierte en espacio, no desaparece: 'instaladoantes' */
  .hero__h1 br { content: ''; }
  .hero__h1 br::after { content: ' '; }
  .hero__claim { margin-top: 16px; font-size: 14px; line-height: 1.5; max-width: 30ch; }
  .hero__samples { margin-top: 24px; gap: 16px; }
  .hero__sw-tile { width: 36px; height: 36px; }
  .hero__sw-txt b { font-size: 8px; letter-spacing: 0.16em; }
  .hero__cta { margin-top: 26px; gap: 10px; }
  .hero__cta .btn { width: 100%; justify-content: space-between; }
  .hero__trust { margin-top: 24px; gap: 10px; font-size: 8px; letter-spacing: 0.12em; }
  .hero__trust i { width: 2px; height: 2px; }
  .scroll-hint { display: none; }
  .hero--left .hero__fade::before { left: -30%; right: -30%; top: -20%; bottom: -12%; }
}

/* ---------- sin desplazamiento lateral en teléfono ----------
   overflow-x:hidden sólo en body NO lo impide en iOS Safari: hace falta en
   html, y clip (no hidden) para no crear un contenedor de scroll nuevo.
   Los pseudo-elementos del scrim del hero se salen del cuadro a propósito;
   se recortan en su sección para que no ensanchen el documento.        */
html, body { overflow-x: clip; max-width: 100vw; }
body { touch-action: pan-y pinch-zoom; }
.hero, .sec, .foot { overflow-x: clip; }
.grain, .nav, .menu, .stage, .stage__canvas { max-width: 100vw; }

/* ============================================================
   TELÉFONO: la experiencia, no sólo el encaje
   ============================================================ */
.sw canvas { display: block; width: 100%; height: 100%; border-radius: 9px; }
.sw i { display: none; }

/* barra de acción inferior (oculta fuera de teléfono) */
.mcta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11,11,12,0) 0%, rgba(11,11,12,0.72) 30%, rgba(11,11,12,0.92) 100%);
  transform: translateY(110%); transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
.mcta.is-on { transform: translateY(0); pointer-events: auto; }
.mcta .btn { flex: 1; justify-content: space-between; padding: 4px 4px 4px 16px; font-size: 10px; }
body.menu-open .mcta { transform: translateY(110%); }

@media (max-width: 860px) {
  .mcta { display: flex; }

  /* cabeceras de sección: nunca a la derecha en una columna */
  /* .sec__head alinea al final (flex-end): en columna eso empuja el bloque a la derecha */
  .sec__head--right { flex-direction: column; align-items: flex-start; }
  .sec__head--right > div { text-align: left; }
  .sec__head--right .h-lg { margin-left: 0; }

  /* paneles del recorrido: dos etiquetas bastan, el titular más contenido */
  .panel__meta > :nth-child(n+3) { display: none; }
  .panel__title { font-size: clamp(34px, 11vw, 48px); }

  /* configurador: el lienzo se queda fijo arriba y los controles se
     deslizan encima. Tocas una referencia y ves el piso cambiar sin
     perder el lienzo de vista: es la interacción que vende.            */
  .sec--cfg .cfg .shell:first-child { position: sticky; top: var(--nav-h); z-index: 1; }
  .sec--cfg .cfg__view, .cfg__view { min-height: 0; aspect-ratio: auto; height: 50svh; }
  .sec--cfg .cfg .shell:last-child {
    /* la regla base deja right:var(--gutter); en relative eso desplaza el
       panel un gutter a la izquierda: se neutraliza */
    position: relative; top: auto; right: auto; width: auto;
    z-index: 2; margin: -26px 0 0; padding: 0;
    background: var(--ink); border-radius: 26px 26px 0 0;
    box-shadow: 0 -18px 40px -20px rgba(11,11,12,0.9), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .sec--cfg .cfg .shell:last-child .shell__core { padding: 22px 18px 96px; }
  .sec--cfg .cfg .shell:last-child::before {
    content: ''; display: block; width: 36px; height: 3px; border-radius: 2px;
    background: rgba(233,229,222,0.28); margin: 10px auto -6px;
  }
  .sec--cfg .cfg__badge { left: 14px; bottom: 40px; padding: 10px 14px; }
  .cfg__badge b { font-size: 13px; }
  .cfg__badge span { font-size: 8px; }

  /* filas de opciones: desplazamiento horizontal con imán, no rejilla 2×2 */
  .opts { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
          padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .opts::-webkit-scrollbar { display: none; }
  .opt { flex: none; white-space: nowrap; scroll-snap-align: start; padding: 12px 18px; }
  .swatches { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
  .swatches::-webkit-scrollbar { display: none; }
  .sw { flex: none; width: 56px; height: 56px; }
  .cfg__spec div { font-size: 12px; }
}

/* ============================================================
   RECORRIDO FOTOGRÁFICO · simple, luminoso, de producto
   ============================================================ */
body { background: var(--bone-2); }
.stage::after { content: none; }
.panel::before, .hero--left .hero__fade::before, .hero__fade::before,
.scene--right .panel::before, .scene--center .panel::before { content: none; }
.panel, .hero__h1, .hero__claim, .hero__trust { text-shadow: 0 1px 30px rgba(20,14,8,0.45); }

.hero--left { place-items: end start; padding-bottom: clamp(56px, 11svh, 110px); }
.hero--left .hero__fade { max-width: 860px; }
.hero__h1 { font-size: clamp(44px, 7.4vw, 118px); font-weight: 300; line-height: 0.98; color: var(--white); }
.hero__claim { font-size: clamp(16px, 1.5vw, 21px); color: var(--bone-2); max-width: none; }
.hero__cta { justify-content: flex-start; margin-top: 30px; }
.eyebrow { color: var(--bone); }
.sec--bone .eyebrow { color: var(--ink); }

.scene { align-items: flex-end; padding-bottom: clamp(56px, 11svh, 110px); }
.panel { max-width: 720px; }
.panel .lead { color: var(--bone-2); max-width: 46ch; }
.panel__title { color: var(--white); font-weight: 300; }
.panel .tag { background: rgba(20,14,8,0.34); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }

.nav:not(.is-stuck) .brand__sub { color: var(--bone); }
.hud__label { text-shadow: 0 1px 12px rgba(20,14,8,0.7); }
.inst__core img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* el cierre es otra foto, no un fondo negro */
.final { background: linear-gradient(180deg, rgba(20,14,8,0.34), rgba(20,14,8,0.62)), url('../assets/foto/e4.jpg') center / cover; }
.final__mark, .final__brand b { color: var(--white); }
.final__brand span { color: var(--bone); }

@media (max-width: 860px) {
  .hero--left, .hero--left .hero__fade { text-align: left; }
  .hero--left { place-items: end start; padding: 0 22px 44px; }
  .hero__h1 { font-size: clamp(42px, 12.5vw, 64px); }
  .hero__cta { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
  .hero__cta .btn { width: auto; }
  .scene { padding: 0 22px 92px; }
  .panel__title { font-size: clamp(36px, 10.5vw, 54px); }
}

/* el texto se queda quieto: la foto es la que se mueve */
.scene { min-height: 130svh; padding: 0; }
.panel { position: fixed; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 11svh, 110px); max-width: 720px; pointer-events: none; }
.panel.is-in { pointer-events: auto; }
/* barra: invisible sobre las fotos, clara sobre las secciones */
.nav.is-stuck { background: rgba(244,241,235,0.92); box-shadow: inset 0 -1px 0 var(--line-dark); }
.nav.is-stuck .brand__mark, .nav.is-stuck .nav__links a { color: var(--ink); }
.nav.is-stuck .brand__sub { color: var(--stone); }
.nav.is-stuck .burger span { background: var(--ink); }
.nav.is-stuck .btn { --bg: var(--ink); --fg: var(--white); }
.nav:not(.is-stuck) { background: none; box-shadow: none; backdrop-filter: none; }
.final { background: linear-gradient(180deg, rgba(20,14,8,0.18), rgba(20,14,8,0.5)), url('../assets/foto/e4.jpg') center / cover; }
@media (max-width: 860px) { .panel { left: 22px; right: 22px; bottom: 92px; } }

.hud { display: none; }
.nav:not(.is-stuck) { background: linear-gradient(180deg, rgba(20,14,8,0.42), rgba(20,14,8,0)); }
.nav::before { content: none; }
.sec--bone .btn--ghost { --fg: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-dark); }

/* legibilidad: sombra lateral suave bajo el texto; en teléfono basta la inferior */
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,14,8,0.62) 0%, rgba(20,14,8,0.38) 34%, rgba(20,14,8,0) 62%); }
.hero--left .eyebrow, .panel .eyebrow { background: rgba(20,14,8,0.34); color: var(--white); }
@media (max-width: 860px) {
  .stage::after { background: linear-gradient(0deg, rgba(20,14,8,0.62) 0%, rgba(20,14,8,0.3) 40%, rgba(20,14,8,0) 62%); }
}

/* el lienzo llena el visor: sin franja debajo */
.cfg__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

@media (max-width: 860px) {
  .cfg__spec { display: none; }
  .swatches { flex-wrap: nowrap; }
  .sec--cfg .cfg__view { height: 56svh; }
  .sec--cfg .cfg .shell:last-child .shell__core { gap: 18px; padding-bottom: 92px; }
}

.nav.is-stuck .brand__mark, .nav.is-stuck .brand__sub, .nav.is-stuck .nav__links a { text-shadow: none; }

/* WhatsApp flotante */
.wa { position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 3vh, 32px); z-index: 65;
  display: flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border-radius: 999px;
  background: #1F8F55; color: #FDFCFA; font-size: 14px; font-weight: 400; text-decoration: none;
  box-shadow: 0 14px 34px -12px rgba(20,14,8,0.6); transition: transform 180ms var(--ease-out); }
.wa:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .wa:hover { transform: translateY(-2px); } }
@media (max-width: 860px) { .wa { bottom: 84px; right: 14px; padding: 14px; } .wa span { display: none; } }

/* probador en teléfono: la foto ocupa todo lo que el panel compacto deja libre */
@media (max-width: 860px) {
  body.in-cfg .mcta { transform: translateY(110%); pointer-events: none; }
  body.in-cfg .wa { opacity: 0; pointer-events: none; }
  .wa { transition: transform 180ms var(--ease-out), opacity 200ms var(--ease-out); }

  .sec--cfg .cfg__view { height: max(240px, calc(100svh - var(--nav-h) - 252px)); }
  .sec--cfg .cfg__badge { top: 10px; left: 10px; bottom: auto; padding: 6px 12px; gap: 2px; }
  .sec--cfg .cfg__badge b { font-size: 13px; }
  .sec--cfg .cfg__badge span { font-size: 8px; letter-spacing: 0.1em; }

  .sec--cfg .cfg .shell:last-child { margin-top: 0; border-radius: 0; box-shadow: none; }
  .sec--cfg .cfg .shell:last-child::before { content: none; }
  .sec--cfg .cfg .shell:last-child .shell__core { padding: 12px 14px 14px; gap: 10px; border-radius: 0; }
  .cfg__group h4 { display: none; }
  .opts { gap: 6px; padding: 0; }
  .opt { padding: 8px 14px; font-size: 10px; border-radius: 12px; }
  .swatches { gap: 8px; padding: 0; }
  .sw { width: 44px; height: 44px; }
  #cfgQuote { align-self: stretch !important; justify-content: space-between; padding: 4px 4px 4px 18px; font-size: 10px; }
}

/* la muestra enseña su color mientras carga la lámina */
.sw canvas { background: var(--c); }

/* logo oficial. El texto queda para lectores de pantalla; el color lo da el contexto */
.brand__mark, .boot__mark, .final__brand b {
  display: block; aspect-ratio: 2014 / 186; height: auto; padding: 0;
  font-size: 0; letter-spacing: 0; color: transparent; text-shadow: none;
  background-color: var(--white);
  -webkit-mask: url('../assets/brand/laminco-logo.svg') center / contain no-repeat;
  mask: url('../assets/brand/laminco-logo.svg') center / contain no-repeat;
}
.brand__mark { width: clamp(132px, 12vw, 172px); flex: none; }
.nav.is-stuck .brand__mark { background-color: var(--ink); color: transparent; }
.boot__mark { width: min(240px, 66vw); margin-inline: auto; }
.final__brand b { width: min(520px, 76vw); margin-inline: auto; }
.nav:not(.is-stuck) .brand__mark { filter: drop-shadow(0 1px 8px rgba(20,14,8,0.45)); }
@media (max-width: 480px) { .boot__mark { font-size: 0; padding-left: 0; } .brand__sub { display: none; } }

.nav .brand__sub { display: none; }
.nav:not(.is-stuck) { border-bottom-color: transparent; }

/* ---------- proceso ---------- */
.step__img, .step__of, .step-dots { display: none; }
.inst__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05);
  transition: opacity 600ms var(--ease-out), transform 1200ms var(--ease-out); }
.inst__img.is-on { opacity: 1; transform: scale(1); }
.inst__prog { z-index: 2; }

@media (max-width: 860px) {
  /* cifras: dos columnas con aire, sin cápsulas */
  #stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  #stats .card { grid-column: auto !important; border-radius: 18px; padding: 0; min-width: 0; }
  #stats .card__core { border-radius: 18px; height: 100%; }
  #stats .card__body { padding: 20px 16px !important; gap: 10px; height: 100%; justify-content: flex-start; }
  #stats .h-md { font-size: clamp(25px, 7.4vw, 34px) !important; line-height: 1.08; overflow-wrap: normal; }
  #stats .mono { font-size: 9px; letter-spacing: 0.1em; }

  /* nada se queda pegado encima al deslizar */
  .inst__vis { display: none; }
  .sec--cfg .cfg .shell:first-child { position: relative; top: auto; }

  /* proceso: tarjetas a pantalla para deslizar con el dedo */
  .inst { display: block; }
  .steps { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    touch-action: pan-x pan-y; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .steps::-webkit-scrollbar { display: none; }
  .step { position: relative; flex: 0 0 84%; height: min(62svh, 500px); scroll-snap-align: center; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 22px; border: 0 !important; border-radius: 24px; background: var(--ink-2); }
  .step::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,14,8,0.86) 0%, rgba(20,14,8,0.34) 42%, rgba(20,14,8,0) 66%); }
  .step__img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1100ms var(--ease-out); }
  .step.is-cur .step__img { transform: scale(1); }
  .step__n, .step__t, .step__d { position: relative; z-index: 1; }
  .step__n, .step.is-on .step__n { color: var(--bone); }
  .step__of { display: inline; opacity: 0.6; }
  .step__t { color: var(--white); font-size: 30px; font-weight: 300; }
  .step__d { color: var(--bone-2); font-size: 14px; line-height: 1.45; text-align: left; margin: 0; max-width: none; grid-column: auto; }
  .step-dots { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
  .step-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line-dark); transition: width 280ms var(--ease-out), background-color 280ms var(--ease-out); }
  .step-dots i.is-on { width: 24px; background: var(--oak); }
}

/* Alturas estables. dvh cambia cuando la barra del navegador se oculta al
   deslizar: la página se encogía cientos de px y el contenido saltaba hacia
   arriba. svh no cambia; el fondo fijo usa la altura mayor para no dejar hueco. */
.stage { bottom: auto; height: 100vh; height: 100lvh; }
