/* =========================================================
   Lúcida Vidrios — hoja de estilos
   La página cambia de "temperatura" según el capítulo:
   sand (arena) → fire (horno) → ice (vidrio frío) → deep (canto verde)
   ========================================================= */

@property --bg     { syntax: '<color>'; inherits: true; initial-value: #D9CCB0; }
@property --ink    { syntax: '<color>'; inherits: true; initial-value: #2B2417; }
@property --muted  { syntax: '<color>'; inherits: true; initial-value: #6B5E45; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #0F5A4C; }
@property --edge   { syntax: '<color>'; inherits: true; initial-value: #0F5A4C; }

:root {
  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --cut: 10px;
  --chamfer: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  --chamfer2: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-io: cubic-bezier(.7,0,.2,1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 72px;
}

body[data-theme="sand"] { --bg:#D9CCB0; --ink:#2B2417; --muted:#6B5E45; --accent:#0F5A4C; --edge:#0F5A4C; --line:rgba(43,36,23,.18); --soft:rgba(43,36,23,.07); }
body[data-theme="fire"] { --bg:#170904; --ink:#FFE8D2; --muted:#C99C7C; --accent:#FF7A1A; --edge:#FF9A4A; --line:rgba(255,232,210,.16); --soft:rgba(255,232,210,.07); }
body[data-theme="ice"]  { --bg:#E3ECE9; --ink:#0C2E29; --muted:#4F6B65; --accent:#13715F; --edge:#5FBFA5; --line:rgba(12,46,41,.15); --soft:rgba(12,46,41,.06); }
body[data-theme="deep"] { --bg:#0C2E29; --ink:#E3ECE9; --muted:#9BB8B0; --accent:#8FD3BF; --edge:#8FD3BF; --line:rgba(227,236,233,.15); --soft:rgba(227,236,233,.06); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  background: var(--bg);
  color: var(--ink);
  transition: --bg .9s var(--ease), --ink .9s var(--ease), --muted .9s var(--ease), --accent .9s var(--ease), --edge .9s var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas, iframe { display: block; max-width: 100%; }
svg use { pointer-events: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--edge); color: var(--bg); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------- Tipografía de sección ---------- */
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 64px); position: relative; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.chap {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 18px;
  font-weight: 700; font-size: 1.05rem;
  color: var(--bg); background: var(--ink);
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
}
.sec-title {
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  font-weight: 650;
  font-variation-settings: "wdth" 80, "opsz" 96;
  line-height: .98;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.sec-lead { margin-top: 18px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.sub-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 620; font-variation-settings: "wdth" 82, "opsz" 72; line-height: 1.04; letter-spacing: -.02em; }

/* ---------- Botones: losas de vidrio con canto ---------- */
.btn {
  --h: 54px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--h); padding: 0 26px;
  font-weight: 600; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  clip-path: var(--chamfer);
  transition: transform .35s var(--ease), background-color .35s, color .35s;
  overflow: hidden;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--slab { background: var(--ink); color: var(--bg); box-shadow: inset -5px 0 0 var(--edge); padding-right: 32px; }
.btn--slab::after {
  content: ""; position: absolute; inset: -20% auto -20% -40%; width: 34%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-18deg) translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn--slab:hover::after { transform: skewX(-18deg) translateX(520%); }
.btn--ghost { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.btn:active { transform: translateY(2px) scale(.99); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .95rem; }
.btn--wide { width: 100%; justify-content: center; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: #D9CCB0; color: #2B2417;
  animation: introOut .9s var(--ease-io) 1.15s forwards;
}
.intro__pane { position: relative; overflow: hidden; padding: 10px 24px; }
.intro__word { display: block; font-size: clamp(3rem, 12vw, 9rem); font-weight: 700; font-variation-settings: "wdth" 76, "opsz" 96; letter-spacing: -.04em; line-height: 1; animation: introWord .8s var(--ease) both; }
.intro__pane::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.75) 48%, rgba(143,211,191,.6) 52%, transparent 70%);
  transform: translateX(-110%); animation: sweep 1s var(--ease) .35s forwards;
}
@keyframes introWord { from { opacity: 0; transform: translateY(30%); filter: blur(8px); } }
@keyframes sweep { to { transform: translateX(110%); } }
@keyframes introOut { to { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); visibility: hidden; } }
.intro { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
html.no-intro .intro { display: none; }

/* ---------- Cursor lente ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1.5px solid #fff; mix-blend-mode: difference;
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s;
  opacity: 0;
}
.cursor.is-big { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-width: 2px; background: rgba(255,255,255,.12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  transition: transform .5s var(--ease), background-color .5s;
}
.nav.is-solid { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; color: var(--ink); }
.brand__name { font-weight: 700; font-size: 1.35rem; font-variation-settings: "wdth" 78; letter-spacing: -.02em; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.brand__sub { font-weight: 450; font-size: .9rem; color: var(--muted); letter-spacing: 0; }
.nav__chapter { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.nav__bar { width: 70px; height: 3px; background: var(--line); overflow: hidden; }
.nav__fill { display: block; height: 100%; width: 100%; background: var(--edge); transform-origin: left; transform: scaleX(0); }
.nav__label { min-width: 90px; }
.nav__links { margin-left: auto; display: flex; gap: 26px; }
.nav__links a { text-decoration: none; font-size: .98rem; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--edge); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__menu { display: none; width: 44px; height: 44px; position: relative; }
.nav__menu span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.nav__menu span:first-child { top: 17px; }
.nav__menu span:last-child { top: 25px; right: 16px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); right: 10px; }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg); padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path .6s var(--ease-io);
}
.menu.is-open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list a { display: flex; align-items: baseline; gap: 16px; text-decoration: none; font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 650; font-variation-settings: "wdth" 78; line-height: 1.15; letter-spacing: -.02em; }
.menu__list em { font-style: normal; font-size: 1rem; color: var(--muted); width: 18px; }
.menu__foot { color: var(--muted); font-size: .95rem; }

/* =========================================================
   1. HERO — fragmentos que se unen
   ========================================================= */
.hero { height: 210vh; position: relative; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero__copy { position: relative; z-index: 2; padding: var(--nav-h) var(--gutter) 40px; pointer-events: none; }
.hero__copy a { pointer-events: auto; }
.hero__title {
  font-size: clamp(3rem, min(7.2vw, 13.5vh), 8rem);
  font-weight: 720;
  font-variation-settings: "wdth" 76, "opsz" 96;
  line-height: .86; letter-spacing: -.045em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero__title .line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .09s; }
.hero__title .line:nth-child(3) > span { transition-delay: .18s; color: var(--accent); font-weight: 300; font-variation-settings: "wdth" 100, "opsz" 96; }
body.is-ready .hero__title .line > span { transform: none; }
.hero__lead { margin-top: 28px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 34ch; color: var(--muted); opacity: 0; transform: translateY(14px); transition: opacity .9s .45s, transform .9s .45s var(--ease); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; transform: translateY(14px); transition: opacity .9s .6s, transform .9s .6s var(--ease); }
body.is-ready .hero__lead, body.is-ready .hero__actions { opacity: 1; transform: none; }
.hero__hint { position: absolute; left: 50%; bottom: 28px; z-index: 2; display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--muted); }
.hero__hint-line { width: 2px; height: 42px; background: var(--line); position: relative; overflow: hidden; }
.hero__hint-line::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--ink); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* =========================================================
   2. FORJA — proceso pinneado
   ========================================================= */
.forge { height: 520vh; position: relative; }
.forge__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center; gap: 4vw;
  padding: var(--nav-h) var(--gutter) 90px;
}
.forge__temp {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) - 10px);
  display: flex; align-items: flex-start; line-height: .8; pointer-events: none;
  font-variation-settings: "wdth" 75, "opsz" 96; font-weight: 800; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 70%, transparent);
}
.forge__num { font-size: clamp(5rem, 17vw, 16rem); font-variant-numeric: tabular-nums; }
.forge__unit { font-size: clamp(1.6rem, 4vw, 3.6rem); margin-top: .3em; }
.forge__scene { grid-column: 2; width: min(100%, 64vh); justify-self: center; overflow: visible; }
.forge__scene .st { opacity: 0; transition: opacity .6s var(--ease); }
.forge__scene .st.is-on { opacity: 1; }
.forge__steps { grid-column: 1; grid-row: 1; position: relative; min-height: 340px; }
.fstep { position: absolute; inset: 0 0 auto; max-width: 460px; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .7s var(--ease); pointer-events: none; }
.fstep.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fstep__n { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; font-weight: 700; background: var(--accent); color: var(--bg); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.fstep h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 680; font-variation-settings: "wdth" 78, "opsz" 96; line-height: .96; letter-spacing: -.03em; }
.fstep p { margin-top: 18px; font-size: 1.12rem; color: var(--muted); max-width: 40ch; }
.mix { display: flex; margin-top: 26px; height: 14px; max-width: 420px; }
.mix span { width: var(--w); }
.mix span:nth-child(1), .mix__legend span:nth-child(1)::before { background: #E8D5AF; }
.mix span:nth-child(2), .mix__legend span:nth-child(2)::before { background: #F4EDE0; }
.mix span:nth-child(3), .mix__legend span:nth-child(3)::before { background: #BFAE8C; }
.mix span:nth-child(4), .mix__legend span:nth-child(4)::before { background: #8C7B5C; }
.mix__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .92rem; color: var(--muted); }
.mix__legend span { display: inline-flex; align-items: center; gap: 7px; }
.mix__legend span::before { content: ""; width: 10px; height: 10px; }
.forge__rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.forge__rail li { position: relative; }
.forge__rail button { width: 100%; text-align: left; padding: 14px 0 0; font-size: .92rem; color: var(--muted); transition: color .3s; }
.forge__rail li::before { content: ""; position: absolute; left: 0; top: -2px; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--accent); }
.forge__rail li.is-on button { color: var(--ink); }

/* =========================================================
   3. LABORATORIO
   ========================================================= */
.lab { padding-block: clamp(110px, 14vw, 180px) clamp(70px, 8vw, 120px); }
.lab__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.lab__window { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0C2E29; }
.lab__view { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab__view .sky, .lab__view .sun, .lab__view .moon, .lab__view .stars { transition: opacity 1s var(--ease); }
.lab__window[data-time="day"] .sky--n, .lab__window[data-time="day"] .moon, .lab__window[data-time="day"] .stars { opacity: 0; }
.lab__window[data-time="night"] .sky--d, .lab__window[data-time="night"] .sun { opacity: 0; }
.mt--far { fill: #6E8D8A; transition: fill 1s; }
.mt--near { fill: #3F5F5B; transition: fill 1s; }
.lab__window[data-time="night"] .mt--far { fill: #1D2A44; }
.lab__window[data-time="night"] .mt--near { fill: #121B30; }
.city rect { fill: #2B3F3C; transition: fill 1s; }
.city .win { fill: #2B3F3C; }
.lab__window[data-time="night"] .city rect { fill: #0A1222; }
.lab__window[data-time="night"] .city .win { fill: #FFD58A; }
.lab__pane {
  position: absolute; inset: 0;
  --tint: rgba(205,235,226,.06); --blur: 0px; --mir: 0;
  background: var(--tint);
  backdrop-filter: blur(var(--blur)) saturate(var(--sat, 1)) brightness(var(--bri, 1));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat, 1)) brightness(var(--bri, 1));
  transition: background-color .7s, backdrop-filter .7s, -webkit-backdrop-filter .7s;
}
.lab__pane::before {
  /* capa de espejo / reflectivo */
  content: ""; position: absolute; inset: 0; opacity: var(--mir);
  background:
    linear-gradient(115deg, rgba(255,255,255,.55) 0 8%, transparent 8% 22%, rgba(255,255,255,.25) 22% 26%, transparent 26%),
    linear-gradient(180deg, #C9D3D6 0%, #8E9CA1 45%, #DCE3E5 100%);
  mix-blend-mode: var(--mirblend, normal);
  transition: opacity .7s;
}
.lab__pane::after { content: ""; position: absolute; inset: 0; filter: url(#f-grano); background: #fff; opacity: var(--grain, 0); transition: opacity .7s; mix-blend-mode: overlay; }
.lab__glare { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.22) 30%, transparent 38%, transparent 60%, rgba(255,255,255,.1) 64%, transparent 68%); transform: translateX(var(--gx, 0)); transition: transform .2s; pointer-events: none; }
.lab__edge { position: absolute; top: 0; bottom: 0; right: 0; width: var(--mm, 10px); background: linear-gradient(90deg, #6FB7A2, #BFE7DA 40%, #4F9B86); box-shadow: -1px 0 0 rgba(255,255,255,.6); transition: width .4s var(--ease); }
.lab__frame { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 14px #0C2E29, inset 0 0 0 15px rgba(143,211,191,.5); }
.lab__frame::before { content: ""; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 10px; margin-left: -5px; background: #0C2E29; }

.lab__ctrl { display: grid; gap: 28px; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend, .checks legend, .need legend { font-size: .9rem; color: var(--muted); margin-bottom: 12px; padding: 0; }
.chip {
  --cut: 7px;
  padding: 10px 16px; font-size: .97rem; font-weight: 500;
  background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line);
  clip-path: var(--chamfer2);
  transition: background-color .3s, color .3s;
}
.chip:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.chip.is-on { background: var(--ink); color: var(--bg); box-shadow: inset -4px 0 0 var(--edge); }
.range { display: grid; gap: 12px; }
.range__top { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.range output { color: var(--ink); font-weight: 650; font-size: 1.1rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--ink) var(--fill, 33%), var(--line) var(--fill, 33%)); }
input[type="range"]::-moz-range-track { height: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 26px; margin-top: -11.5px; background: var(--ink); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 26px; border: 0; border-radius: 0; background: var(--ink); }
.toggle { display: inline-flex; padding: 4px; background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); width: max-content; }
.toggle__b { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: .95rem; transition: background-color .3s, color .3s; }
.toggle__b svg { width: 18px; height: 18px; }
.toggle__b.is-on { background: var(--ink); color: var(--bg); }
.meters { margin: 0; display: grid; gap: 14px; }
.meters > div { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 14px; }
.meters dt { font-size: .95rem; color: var(--muted); }
.meters dd { margin: 0; }
.meter { display: flex; gap: 4px; height: 14px; }
.meter i { flex: 1; background: var(--line); transform: skewX(-18deg); transition: background-color .4s; }
.meter i.on { background: var(--accent); }
.lab__note { font-size: 1.02rem; padding-left: 16px; border-left: 3px solid var(--edge); max-width: 44ch; }

/* =========================================================
   4. CATÁLOGO
   ========================================================= */
.cat { padding-block: clamp(70px, 8vw, 120px); }
.cat__tools { display: grid; gap: 14px; justify-items: end; }
.search input {
  width: min(360px, 80vw); height: 48px; padding: 0 16px;
  background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  font-size: 1.02rem;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--edge); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.filter { padding: 8px 14px; font-size: .95rem; color: var(--muted); position: relative; transition: color .3s; }
.filter::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--edge); transform: scaleX(0); transition: transform .4s var(--ease); }
.filter:hover { color: var(--ink); }
.filter.is-on { color: var(--ink); font-weight: 600; }
.filter.is-on::after { transform: scaleX(1); }

.cat__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px); }
.prod { display: block; text-align: left; width: 100%; perspective: 900px; }
.prod.is-out { display: none; }
.prod__art {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: color-mix(in srgb, var(--ink) 5%, var(--bg));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  transform-style: preserve-3d;
}
.prod__art svg { width: 100%; height: 100%; }
.prod__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.45), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.prod:hover .prod__art::after, .prod:focus-visible .prod__art::after { opacity: 1; }
.prod__name { display: block; margin-top: 14px; font-size: 1.22rem; font-weight: 620; font-variation-settings: "wdth" 85; letter-spacing: -.01em; line-height: 1.15; }
.prod__meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.prod__price { white-space: nowrap; }
.prod__price b { color: var(--ink); font-weight: 650; }
.prod--in { animation: prodIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes prodIn { from { opacity: 0; transform: translateY(18px); } }
.cat__empty { padding: 40px 0; font-size: 1.1rem; color: var(--muted); }

/* diálogo de producto */
.pdlg {
  width: min(980px, calc(100% - 24px)); max-height: calc(100svh - 24px);
  padding: 0; border: 0; color: #0C2E29; background: #E3ECE9;
  display: grid; grid-template-columns: 1fr 1.05fr; overflow: auto;
  clip-path: var(--chamfer); --cut: 18px;
}
.pdlg:not([open]) { display: none; }
.pdlg::backdrop { background: rgba(8,24,21,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pdlg[open] { animation: dlgIn .5s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.pdlg__art { background: #D3E0DC; min-height: 320px; }
.pdlg__art svg { width: 100%; height: 100%; }
.pdlg__body { padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 16px; align-content: start; }
.pdlg__cat { color: #4F6B65; font-size: .95rem; }
.pdlg h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 680; font-variation-settings: "wdth" 80, "opsz" 96; line-height: 1; letter-spacing: -.025em; }
.pdlg__x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; background: #0C2E29; color: #E3ECE9; z-index: 2; }
.pdlg__x svg { width: 20px; height: 20px; }
.pdlg__mm { display: grid; gap: 8px; font-size: .9rem; color: #4F6B65; }
.mmchips { display: flex; flex-wrap: wrap; gap: 6px; }
.mmchips span { padding: 6px 12px; font-size: .95rem; color: #0C2E29; box-shadow: inset 0 0 0 1.5px rgba(12,46,41,.2); }
.pdlg__uses { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pdlg__uses li { padding-left: 22px; position: relative; }
.pdlg__uses li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; background: #5FBFA5; clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%); }
.pdlg__price { font-size: 1.05rem; }
.pdlg__price strong { font-size: 1.6rem; font-weight: 700; }
.pdlg__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pdlg .btn--slab { background: #0C2E29; color: #E3ECE9; box-shadow: inset -5px 0 0 #5FBFA5; }
.pdlg .btn--ghost { color: #0C2E29; background: rgba(12,46,41,.06); box-shadow: inset 0 0 0 1.5px rgba(12,46,41,.18); }

/* =========================================================
   5. PRUEBAS / COMPARATIVA
   ========================================================= */
.tests { padding-block: clamp(110px, 13vw, 180px); }
.impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: 0; }
.impact__item { margin: 0; }
.impact__cv { width: 100%; aspect-ratio: 3 / 4; cursor: crosshair; touch-action: manipulation; }
.impact__item figcaption { margin-top: 16px; }
.impact__item h3 { font-size: 1.35rem; font-weight: 640; font-variation-settings: "wdth" 85; }
.impact__res { margin-top: 6px; color: var(--muted); min-height: 3.1em; font-size: 1rem; transition: color .3s; }
.impact__res.is-good { color: var(--accent); }
.impact__res.is-bad { color: #FF9C7A; }
.impact__reset { margin-top: 18px; }
.btn--light { /* sobre fondos oscuros la losa invierte */ }

.see { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(90px, 11vw, 150px); }
.see__copy p { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.see__box { position: relative; aspect-ratio: 16 / 10; overflow: hidden; user-select: none; touch-action: pan-y; background: #0A2420; }
.see__layer { position: absolute; inset: 0; }
.see__layer svg { width: 100%; height: 100%; }
.see__layer--good { clip-path: inset(0 0 0 var(--cut-x, 50%)); }
.see__tag { position: absolute; top: 14px; padding: 6px 12px; font-size: .88rem; background: rgba(12,46,41,.82); color: #E3ECE9; }
.see__tag--l { left: 14px; }
.see__tag--r { right: 14px; }
.see__handle { position: absolute; top: 0; bottom: 0; left: var(--cut-x, 50%); width: 44px; margin-left: -22px; cursor: ew-resize; display: grid; place-items: center; }
.see__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #8FD3BF; }
.see__handle span { position: relative; width: 24px; height: 52px; background: #8FD3BF; clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }

.vs { margin-top: clamp(90px, 11vw, 150px); }
.vs__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.vs__pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vs__x { color: var(--muted); }
.vs select, .field select {
  -webkit-appearance: none; appearance: none;
  padding: 12px 42px 12px 14px; font-size: 1.02rem; font-weight: 550;
  background: var(--soft) 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='%238FD3BF' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
  border: 0; border-radius: 0; box-shadow: inset 0 0 0 1.5px var(--line);
}
.vs select option, .field select option { color: #0C2E29; background: #E3ECE9; }
.vs__chart { display: grid; gap: 4px; }
.vrow { display: grid; grid-template-columns: 1fr minmax(120px, 190px) 1fr; align-items: center; gap: 16px; min-height: 46px; }
.vrow__lab { text-align: center; font-size: .96rem; color: var(--muted); }
.vrow__bar { height: 18px; position: relative; }
.vrow__bar i { position: absolute; top: 0; bottom: 0; width: calc(var(--v, 0) * 10%); transition: width .9s var(--ease); }
.vrow__bar--a i { right: 0; background: var(--ink); clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); }
.vrow__bar--b i { left: 0; background: var(--accent); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.vrow__bar b { position: absolute; top: 50%; transform: translateY(-50%); font-size: .9rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.vrow__bar--a b { left: 0; }
.vrow__bar--b b { right: 0; }
.vrow:nth-child(odd) { background: var(--soft); }
.vs__legend { display: grid; grid-template-columns: 1fr minmax(120px, 190px) 1fr; gap: 16px; margin-bottom: 8px; font-weight: 640; font-size: 1.05rem; }
.vs__legend span:first-child { text-align: right; }
.vs__legend span:last-child { color: var(--accent); }
.vs__verdict { margin-top: 26px; font-size: 1.1rem; max-width: 64ch; padding-left: 16px; border-left: 3px solid var(--edge); }

/* =========================================================
   6. COTIZADOR
   ========================================================= */
.quote { padding-block: clamp(110px, 13vw, 180px) clamp(70px, 8vw, 120px); }
.quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.quote__form { display: grid; gap: 26px; }
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qrow:first-child { grid-template-columns: 1fr 1fr .6fr; }
.field { display: grid; gap: 8px; }
.field > span { font-size: .9rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 10px 2px; background: transparent;
  border: 0; border-bottom: 2px solid var(--line); border-radius: 0;
  font-size: 1.15rem; font-weight: 550; transition: border-color .3s;
}
.field input[type="number"] { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 650; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; padding-block: 4px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--edge); }
.field select { width: 100%; }
.field textarea { resize: vertical; min-height: 110px; font-size: 1.05rem; font-weight: 450; }
.checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks legend { width: 100%; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 1rem; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 22px; height: 22px; box-shadow: inset 0 0 0 2px var(--ink); position: relative; flex: none; clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.check__box::after { content: ""; position: absolute; inset: 5px; background: var(--accent); transform: scale(0); transition: transform .3s var(--ease); }
.check input:checked + .check__box::after { transform: scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 3px; }

.quote__out { display: grid; gap: 0; background: #0C2E29; color: #E3ECE9; clip-path: var(--chamfer); --cut: 22px; }
.blue { color: #8FD3BF; aspect-ratio: 420 / 320; }
.blue svg { width: 100%; height: 100%; }
.bp__pane { fill: rgba(143,211,191,.16); stroke: #8FD3BF; stroke-width: 2; transition: all .5s var(--ease); }
.bp__glare { stroke: rgba(255,255,255,.55); stroke-width: 3; fill: none; }
.bp__dim path { stroke: #E3ECE9; stroke-opacity: .7; fill: none; stroke-width: 1; }
.bp__dim text { fill: #E3ECE9; font-size: 13px; font-family: var(--font); font-weight: 600; }
.total { padding: 26px clamp(20px, 3vw, 36px) 32px; border-top: 1px solid rgba(227,236,233,.12); display: grid; gap: 8px; }
.total__area { color: #9BB8B0; }
.total__price { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 720; font-variation-settings: "wdth" 76, "opsz" 96; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.total__lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: .95rem; color: #9BB8B0; }
.total__lines li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(227,236,233,.12); padding-bottom: 4px; }
.total__lines li span:last-child { color: #E3ECE9; font-variant-numeric: tabular-nums; }
.total__fine { font-size: .86rem; color: #9BB8B0; margin: 6px 0 12px; }
.quote__out .btn--slab { background: #8FD3BF; color: #0C2E29; box-shadow: inset -5px 0 0 #E3ECE9; white-space: normal; text-align: left; }

/* =========================================================
   7. ENVÍOS
   ========================================================= */
.ship { padding-block: clamp(110px, 13vw, 180px) clamp(70px, 8vw, 120px); }
.ship__map { margin: 0 calc(var(--gutter) * -.5); }
.ship__map svg { width: 100%; height: auto; overflow: visible; }
.ship__river { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 10; stroke-linecap: round; opacity: .35; }
.ship__road { fill: none; stroke: var(--line); stroke-width: 2.5; stroke-dasharray: 6 8; }
.ship__road-trace { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.zone circle { fill: var(--bg); stroke: var(--ink); stroke-width: 2.5; transition: fill .4s, r .4s; }
.zone text { font-family: var(--font); font-size: 15px; font-weight: 560; fill: var(--ink); text-anchor: middle; }
.zone.is-reached circle { fill: var(--accent); stroke: var(--accent); }
.zone--home circle { fill: var(--ink); }
.truck rect, .truck path:not(.truck__glass) { fill: var(--ink); }
.truck circle { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.truck__glass { fill: #8FD3BF; opacity: .9; }
.steps { list-style: none; margin: clamp(40px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--ink); position: relative; }
.steps li::before { content: counter(s); position: absolute; right: 0; top: 14px; font-weight: 700; font-size: .95rem; color: var(--muted); }
.steps svg { width: 30px; height: 30px; color: var(--accent); }
.steps h3 { margin-top: 14px; font-size: 1.35rem; font-weight: 640; font-variation-settings: "wdth" 85; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 1rem; }

/* =========================================================
   SUCURSALES
   ========================================================= */
.places { padding-block: clamp(70px, 8vw, 120px); }
.places__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(20px, 3vw, 40px); }
.places__tabs { display: grid; gap: 10px; align-content: start; }
.place { text-align: left; display: grid; gap: 8px; padding: 22px 22px 22px 24px; background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .35s, color .35s; clip-path: var(--chamfer); }
.place.is-on { background: var(--ink); color: var(--bg); box-shadow: inset 6px 0 0 var(--edge); }
.place__name { font-size: 1.3rem; font-weight: 650; font-variation-settings: "wdth" 85; }
.place__line { display: flex; align-items: center; gap: 10px; font-size: .97rem; opacity: .85; }
.place__line svg { width: 18px; height: 18px; flex: none; }
.places__map { position: relative; min-height: 380px; background: var(--soft); overflow: hidden; }
.places__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05) sepia(.15) hue-rotate(110deg); transition: filter .6s; }
.places__map:hover iframe { filter: none; }

/* =========================================================
   8. CONTACTO
   ========================================================= */
.contact { padding-block: clamp(110px, 13vw, 180px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: clamp(36px, 5vw, 90px); align-items: start; }
.contact__list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__list a, .contact__list span { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.08rem; }
.contact__list a:hover { color: var(--accent); }
.contact__list svg { width: 22px; height: 22px; color: var(--accent); }
.cform { display: grid; gap: 26px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field--dark input, .field--dark textarea { border-bottom-color: var(--line); }
.need { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.need legend { width: 100%; }
.need label { position: relative; cursor: pointer; }
.need input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.need span { display: block; padding: 10px 16px; font-size: .97rem; box-shadow: inset 0 0 0 1.5px var(--line); clip-path: var(--chamfer2); --cut: 7px; transition: background-color .3s, color .3s; }
.need input:checked + span { background: var(--accent); color: var(--bg); font-weight: 600; }
.need input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__act { display: flex; flex-wrap: wrap; gap: 12px; }
.cform__msg { min-height: 1.6em; font-size: 1.02rem; }
.cform__msg.is-ok { color: var(--accent); }
.cform__msg.is-err { color: #FFAF93; }
.field.is-invalid input { border-bottom-color: #FF9C7A; }
.cform .btn--slab { background: var(--ink); color: var(--bg); }
.cform .btn--slab[disabled] { opacity: .6; pointer-events: none; }

/* =========================================================
   PIE
   ========================================================= */
.foot { background: var(--bg); padding: 40px 0 100px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__word {
  font-size: clamp(5rem, 23vw, 22rem); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96;
  letter-spacing: -.06em; line-height: .78; margin-bottom: 30px;
  color: transparent; -webkit-text-stroke: 1.5px var(--line);
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), #8FD3BF 0, #CFEDE4 9%, transparent 22%) no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.foot__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; color: var(--muted); font-size: .97rem; }
.foot__cols nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__cols a { text-decoration: none; color: var(--ink); }
.foot__cols a:hover { color: var(--accent); }
.foot__legal { text-align: right; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; align-items: center; flex-direction: row-reverse; text-decoration: none; }
.wa__bead {
  width: 60px; height: 60px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  position: relative; transition: transform .4s var(--ease);
}
.wa__bead::before { content: ""; position: absolute; inset: 4px; clip-path: inherit; box-shadow: inset 0 0 0 2px var(--edge); }
.wa__bead svg { width: 26px; height: 26px; }
.wa__txt {
  margin-right: -8px; padding: 12px 22px 12px 18px; font-weight: 600; font-size: .98rem;
  background: #8FD3BF; color: #0C2E29;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transform: translateX(16px); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
  pointer-events: none;
}
.wa:hover .wa__txt, .wa.is-peek .wa__txt { transform: none; opacity: 1; }
.wa:hover .wa__bead { transform: rotate(45deg); }
.wa:hover .wa__bead svg { transform: rotate(-45deg); }
.wa__bead svg { transition: transform .4s var(--ease); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .nav__cta { margin-left: auto; }
  .lab__grid, .quote__grid, .see, .contact__grid, .places__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat__tools { justify-items: start; }
  .filters { justify-content: flex-start; }
  .pdlg { grid-template-columns: 1fr; }
  .pdlg__art { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  :root { --nav-h: 62px; }
  .nav { gap: 12px; }
  .nav__chapter { display: none; }
  .brand__sub { display: none; }
  .hero { height: 190vh; }
  .hero__sticky { align-items: flex-end; padding-bottom: 70px; }
  .hero__copy { padding-top: 0; padding-bottom: 16px; }
  .hero__hint { left: var(--gutter); bottom: 22px; }
  body[data-theme="fire"] .wa { opacity: 0; pointer-events: none; }
  .wa { transition: opacity .4s; }
  .cat__grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .prod__name { font-size: 1.02rem; }
  .prod__meta { font-size: .82rem; }
  .forge__sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 6px; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 76px; }
  .forge__scene { grid-column: 1; grid-row: 2; width: min(100%, 42vh); align-self: center; }
  .forge__steps { grid-row: 1; min-height: 250px; }
  .fstep p { font-size: 1rem; margin-top: 10px; }
  .fstep__n { width: 36px; height: 36px; margin-bottom: 10px; }
  .forge__temp { top: auto; bottom: 74px; right: var(--gutter); }
  .forge__num { font-size: 26vw; }
  .forge__rail button { font-size: .8rem; }
  .impact { grid-template-columns: 1fr 1fr; }
  .impact__item:last-child { grid-column: 1 / -1; width: calc(50% - 7px); }
  .impact__item h3 { font-size: 1.1rem; }
  .impact__res { font-size: .92rem; }
  .vrow, .vs__legend { grid-template-columns: 1fr 104px 1fr; gap: 8px; }
  .vrow__lab { font-size: .82rem; }
  .qrow { grid-template-columns: 1.3fr 1fr; gap: 12px; }
  .qrow:first-child { grid-template-columns: 1fr 1fr .7fr; }
  .cform__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ship__map { margin: 0 calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; }
  .ship__map::-webkit-scrollbar { display: none; }
  .ship__map svg { min-width: 760px; }
  .foot__cols { grid-template-columns: 1fr; }
  .foot__legal { text-align: left; }
  .meters > div { grid-template-columns: 110px 1fr; }
  .wa__bead { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .intro { display: none; }
  .hero__title .line > span, .hero__lead, .hero__actions { transform: none; opacity: 1; }
}

/* =========================================================
   MEDIOS DE LA WEB (fotos y videos de referencia)
   ========================================================= */

/* Forja: video de vidrio fundido detrás de la escena */
.forge__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  opacity: .32; mix-blend-mode: screen; filter: saturate(1.25) contrast(1.1);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 50%, #000 30%, transparent 85%);
  pointer-events: none;
}
.forge__sticky > :not(.forge__video) { position: relative; z-index: 1; }
.forge__sticky > .forge__temp, .forge__sticky > .forge__rail { position: absolute; }

/* Taller */
.shop { padding-bottom: clamp(70px, 8vw, 120px); }
.shop__hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; background: #071A17; }
.shop__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1.12)); transform-origin: 50% 60%; }
.shop__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,46,41,.25) 0%, rgba(12,46,41,.15) 40%, #0C2E29 96%); }
.shop__copy { position: relative; z-index: 1; padding-bottom: clamp(40px, 6vw, 80px); color: #E3ECE9; }
.shop__copy .sec-lead { color: #CFE3DC; }
.shop__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(14px, 2vw, 26px); margin-top: clamp(-60px, -4vw, -30px); position: relative; z-index: 2; align-items: start; }
.shop__item { margin: 0; }
.shop__item video, .shop__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #143E37; clip-path: var(--chamfer); --cut: 16px; }
.shop__item--clip video { aspect-ratio: 4 / 3.3; }
.shop__item:nth-child(2) { margin-top: clamp(30px, 5vw, 80px); }
.shop__item figcaption { margin-top: 12px; color: var(--muted); font-size: .98rem; max-width: 34ch; }
.shop__item figcaption b { color: var(--ink); font-weight: 650; }

/* Laboratorio con foto real */
.lab__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 1s var(--ease); }
.lab__window[data-time="night"] .lab__photo { filter: brightness(.32) saturate(.55) hue-rotate(195deg) contrast(1.15); }
.lab__nightsky { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s; background: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 34% 9%, #fff, transparent), radial-gradient(1.5px 1.5px at 58% 14%, #fff, transparent), radial-gradient(1px 1px at 81% 7%, #fff, transparent), radial-gradient(1px 1px at 91% 22%, #fff, transparent), linear-gradient(180deg, rgba(11,24,48,.55), transparent 45%); }
.lab__window[data-time="night"] .lab__nightsky { opacity: 1; }
.lab__window.has-photo .lab__view { visibility: hidden; }

/* Catálogo: foto sobre la ilustración (si la foto falla, queda la ilustración) */
.prod__art img, .pdlg__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
.prod__art img { opacity: 0; }
.prod__art img.is-loaded { opacity: 1; }
.prod:hover .prod__art img { transform: scale(1.05); }
.prod__badge { position: absolute; left: 10px; bottom: 10px; z-index: 1; width: 64px; height: 80px; background: rgba(227,236,233,.9); box-shadow: 0 6px 20px rgba(0,0,0,.18); clip-path: var(--chamfer); --cut: 8px; overflow: hidden; opacity: 0; transition: opacity .4s; }
.prod__badge svg { width: 100%; height: 100%; }
.prod__art img.is-loaded ~ .prod__badge { opacity: 1; }
.pdlg__art { position: relative; overflow: hidden; }

/* Ideas: galería horizontal guiada por el scroll */
.ideas { position: relative; }
.ideas__sticky { padding-block: clamp(90px, 10vw, 140px) 40px; }
.ideas__head { margin-bottom: clamp(24px, 3vw, 40px); }
.ideas__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--gutter); }
.ideas__viewport::-webkit-scrollbar { display: none; }
.ideas__track { display: flex; gap: clamp(14px, 2vw, 28px); width: max-content; }
.idea { margin: 0; scroll-snap-align: start; position: relative; flex: none; }
.idea__img { height: min(58vh, 560px); aspect-ratio: var(--ar, 4 / 5); overflow: hidden; background: color-mix(in srgb, var(--ink) 8%, var(--bg)); clip-path: var(--chamfer); --cut: 18px; position: relative; }
.idea__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translateX(var(--px, 0%)); transition: transform .2s linear; }
.idea figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 12px; max-width: 100%; }
.idea__t { font-weight: 620; font-size: 1.1rem; font-variation-settings: "wdth" 85; }
.idea__t small { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); font-variation-settings: "wdth" 100; }
.idea__ask { font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--edge); padding-bottom: 2px; }
.idea__ask:hover { color: var(--accent); }
.ideas__progress { margin: 26px var(--gutter) 0; height: 3px; background: var(--line); }
.ideas__progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .ideas.is-pinned .ideas__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: var(--nav-h) 30px; overflow: hidden; }
  .ideas.is-pinned .ideas__viewport { overflow: visible; scroll-snap-type: none; }
  .ideas.is-pinned .ideas__track { will-change: transform; }
}

@media (max-width: 1080px) {
  .shop__grid { grid-template-columns: 1fr 1fr; }
  .shop__item--clip { grid-column: 1 / -1; }
  .shop__item:nth-child(2) { margin-top: 0; }
}
@media (max-width: 760px) {
  .forge__video { opacity: .22; -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 62%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 90% 60% at 50% 62%, #000 30%, transparent 85%); }
  .shop__hero { min-height: 78svh; }
  .shop__grid { margin-top: 0; padding-top: 24px; }
  .idea__img { height: 52vh; max-width: 82vw; }
  .prod__badge { width: 46px; height: 58px; }
}
.ideas__head { max-width: none; width: min(100% - 2 * var(--gutter), var(--maxw)); }
.ideas__head .sec-title { max-width: 760px; }
