/* =========================================================
   WATERPLAC — onepage
   Tokens: dos temas (noche / día) sobre la misma estructura
   ========================================================= */
:root {
  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r: 22px;
  --r-sm: 12px;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --wood: #a87a4c;
  --wood-2: #c99a66;
}

[data-theme="dark"] {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --card: #1a1815;
  --line: rgba(255, 244, 230, .10);
  --line-2: rgba(255, 244, 230, .18);
  --fg: #f3ede4;
  --fg-2: rgba(243, 237, 228, .62);
  --fg-3: rgba(243, 237, 228, .38);
  --accent: #d4a774;
  --solid-bg: #f3ede4;
  --solid-fg: #0c0b0a;
  --glass: rgba(12, 11, 10, .62);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --room: #1b1916;
  --floor: #24201c;
  --led: 1;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f1ec;
  --bg-2: #ebe6de;
  --card: #fffdfa;
  --line: rgba(30, 24, 18, .10);
  --line-2: rgba(30, 24, 18, .18);
  --fg: #1a1714;
  --fg-2: rgba(26, 23, 20, .62);
  --fg-3: rgba(26, 23, 20, .40);
  --accent: #8d5f33;
  --solid-bg: #1a1714;
  --solid-fg: #f4f1ec;
  --glass: rgba(244, 241, 236, .72);
  --shadow: 0 30px 80px -40px rgba(60, 40, 20, .35);
  --room: #e9e3da;
  --floor: #d8cfc2;
  --led: .35;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.55 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--solid-bg); color: var(--solid-fg); padding: 10px 16px; border-radius: 99px; }
.skip:focus { left: 8px; }
section { position: relative; }

/* ---------- tipografía ---------- */
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.h2 { margin: 0 0 20px; font-weight: 500; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -.032em; text-wrap: balance; max-width: 20ch; }
.h2--xl { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.h2 em { color: var(--fg-2); }
.muted { color: var(--fg-2); max-width: 58ch; }
.fine { font-size: 13px; color: var(--fg-3); margin: 18px 0 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head--row .h2 { margin: 0; }

/* ---------- botones ---------- */
.btn { --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 26px; border-radius: 99px; font-weight: 500; font-size: 16px; transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .4s var(--ease); position: relative; overflow: hidden; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--solid { background: var(--solid-bg); color: var(--solid-fg); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.btn--block { width: 100%; }
.link { display: inline-flex; gap: 8px; font-weight: 500; color: var(--fg); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: gap .4s var(--ease), border-color .3s; }
.link:hover { gap: 14px; border-color: var(--fg); }

/* ---------- LOGO (PNG del cliente usado como máscara: toma el color del texto) ---------- */
.logo { display: block; flex: none; background: currentColor; -webkit-mask: var(--logo) left center / contain no-repeat; mask: var(--logo) left center / contain no-repeat; transition: background-color .4s, opacity .3s; }
.logo--word { --logo: url(img/brand/logo-word.png); height: 22px; aspect-ratio: 990 / 171; }
.logo--full { --logo: url(img/brand/logo-full.png); height: 40px; aspect-ratio: 990 / 198; }
.logo:hover { opacity: .8; }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .5s var(--ease), box-shadow .5s, transform .6s var(--ease), color .4s; }
.nav::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); transition: opacity .5s; }
.nav__inner { width: min(100% - var(--gut) * 2, 1400px); margin-inline: auto; height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.nav.is-scrolled { background: var(--glass); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); }
.nav:not(.is-scrolled) { color: #fff; }
.nav__links { display: flex; gap: 2px; padding: 4px; border-radius: 99px; font-size: 14px; letter-spacing: .005em; transition: background-color .5s, box-shadow .5s; }
.nav:not(.is-scrolled) .nav__links { background: rgba(20, 18, 16, .28); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.nav__links a { padding: 8px 14px; border-radius: 99px; opacity: .82; transition: opacity .3s, background-color .3s; }
.nav__links a:hover { opacity: 1; background: color-mix(in oklab, currentColor 10%, transparent); }
.nav__links a.is-current { opacity: 1; background: color-mix(in oklab, currentColor 12%, transparent); }
.nav__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.nav:not(.is-scrolled) .nav__cta { background: #fff; color: #111; }

/* ---------- SWITCH DE TEMA (el "juguete") ---------- */
.theme { padding: 4px; margin: -4px; border-radius: 99px; }
.theme__track { position: relative; display: block; width: 60px; height: 34px; border-radius: 99px; background: color-mix(in oklab, currentColor 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, currentColor 22%, transparent); transition: background-color .5s; }
.theme__knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; transition: transform .7s var(--ease), background-color .5s, box-shadow .5s, scale .3s var(--ease); }
.theme__knob svg { position: absolute; width: 16px; height: 16px; transition: transform .7s var(--ease), opacity .4s; }
.sun { fill: currentColor; stroke: currentColor; stroke-width: 1.6; }
.moon { fill: currentColor; }
[data-theme="dark"] .theme__knob { transform: translateX(0); background: #2a2622; color: #f1d7a8; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 16px rgba(241,215,168,.35); }
[data-theme="dark"] .sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="light"] .theme__knob { transform: translateX(26px); background: #fff4dc; color: #c07a16; box-shadow: 0 0 0 5px rgba(255, 200, 80, .2), 0 0 22px rgba(255,190,70,.6); }
[data-theme="light"] .moon { opacity: 0; transform: rotate(90deg) scale(.5); }
.theme:hover .theme__knob { scale: 1.08; }
.theme:active .theme__knob { scale: .9; }

/* Transición circular entre temas (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* menú mobile */
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; position: relative; background: color-mix(in oklab, currentColor 12%, transparent); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile { position: fixed; inset: 0; z-index: 45; background: var(--bg); color: var(--fg); display: flex; flex-direction: column; justify-content: space-between; padding: 96px var(--gut) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; }
.mobile[hidden] { display: none; }
.mobile.is-open { animation: menuIn .5s var(--ease); }
@keyframes menuIn { from { opacity: 0; } }
.mobile__links { display: flex; flex-direction: column; }
.mobile__links a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(30px, 9vw, 40px); font-weight: 500; letter-spacing: -.035em; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(18px); }
.mobile.is-open .mobile__links a { animation: linkIn .7s var(--ease) forwards; }
.mobile__links a:nth-child(2) { animation-delay: .04s !important } .mobile__links a:nth-child(3) { animation-delay: .08s !important }
.mobile__links a:nth-child(4) { animation-delay: .12s !important } .mobile__links a:nth-child(5) { animation-delay: .16s !important } .mobile__links a:nth-child(6) { animation-delay: .2s !important }
@keyframes linkIn { to { opacity: 1; transform: none; } }
.mobile__links small { font-size: 12px; letter-spacing: .08em; color: var(--accent); font-weight: 500; width: 22px; }
.mobile__foot { display: grid; gap: 16px; padding-top: 32px; }
.mobile__mail { text-align: center; color: var(--fg-2); font-size: 15px; }
.menu-open .nav { color: var(--fg); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.menu-open .nav::before { opacity: 0; }
.menu-open .dock { opacity: 0; pointer-events: none; }

/* barra CTA flotante (solo mobile) */
.dock { display: none; }

/* WhatsApp flotante: en desktop se expande al pasar el mouse */
.wa { position: fixed; z-index: 41; right: 24px; bottom: 24px; height: 56px; min-width: 56px; padding: 0 16px; border-radius: 99px; display: inline-flex; align-items: center; gap: 0; background: #25d366; color: #fff; box-shadow: 0 14px 34px -10px rgba(18, 140, 70, .6), inset 0 0 0 1px rgba(255,255,255,.15); transition: transform .5s var(--ease), gap .5s var(--ease), box-shadow .4s; }
.wa svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.wa span { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 500; font-size: 15px; transition: max-width .6s var(--ease); }
.wa:hover { gap: 10px; transform: translateY(-3px); }
.wa:hover span { max-width: 120px; }
.wa::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: waPulse 3s var(--ease) infinite 2s; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
.menu-open .wa { opacity: 0; pointer-events: none; }
.lb:not([hidden]) ~ .wa { display: none; }

/* ---------- HERO ---------- */
.hero { height: 100svh; min-height: 640px; color: #fff; display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.6s var(--ease-io), transform 9s linear; }
.hero__media img.is-active { opacity: 1; transform: scale(1.02); }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(8,7,6,.62) 0%, rgba(8,7,6,.25) 45%, rgba(8,7,6,0) 70%),
  linear-gradient(0deg, rgba(8,7,6,.86) 0%, rgba(8,7,6,.35) 45%, rgba(8,7,6,.05) 70%); }
.hero__content { align-self: end; padding-bottom: clamp(28px, 6vh, 64px); }
.hero__title { margin: 0 0 22px; font-weight: 500; font-size: clamp(36px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.04em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero__title .line > span { transform: none; }
.hero__title em { color: #e9cfa9; }
.hero__lead { max-width: 46ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: rgba(255,255,255,.8); margin: 0 0 30px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .eyebrow { color: #f1dcbc; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero__foot { display: flex; align-items: center; justify-content: space-between; padding-bottom: 28px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 28px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__dots button.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dot 6s linear forwards; }
@keyframes dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scrollcue { width: 26px; height: 42px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); position: relative; }
.scrollcue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- MARQUEE ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-size: clamp(17px, 1.8vw, 22px); letter-spacing: -.02em; padding-inline: 28px; color: var(--fg-2); display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- MANIFIESTO ---------- */
.manifesto { padding: clamp(96px, 13vw, 180px) 0 clamp(64px, 8vw, 110px); }
.manifesto__text { margin: 0; font-size: clamp(26px, 3.3vw, 46px); line-height: 1.18; letter-spacing: -.03em; font-weight: 500; max-width: 26ch; text-wrap: pretty; }
.manifesto__text .w { color: var(--fg); opacity: .14; transition: opacity .35s linear; }
.manifesto__text .w.on { opacity: 1; }

/* ---------- COMPARACIÓN ---------- */
.compare { padding-bottom: clamp(90px, 12vw, 160px); }
.compare__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; }
.compare__card { border-radius: var(--r); padding: clamp(28px, 4vw, 48px); background: var(--bg-2); border: 1px solid var(--line); }
.compare__card ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.compare__card li { padding-left: 30px; position: relative; color: var(--fg-2); }
.compare__card li::before { content: "—"; position: absolute; left: 0; color: var(--fg-3); }
.compare__tag { font-size: 20px; letter-spacing: -.02em; margin: 0 0 26px; font-weight: 500; }
.compare__card--hero { background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 22%, var(--card)), var(--card) 60%); border-color: color-mix(in oklab, var(--accent) 40%, transparent); box-shadow: var(--shadow); }
.compare__card--hero li { color: var(--fg); }
.compare__card--hero li::before { content: ""; top: .55em; width: 16px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-50%); }

/* ---------- ESTUDIO / CONFIGURADOR ---------- */
.studio { padding: clamp(90px, 12vw, 160px) 0; background: var(--bg-2); transition: background-color .5s; }
.studio__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.swatches { display: flex; gap: 12px; margin: 30px 0 22px; flex-wrap: wrap; }
.swatches button { width: 46px; height: 46px; border-radius: 50%; position: relative;
  background: repeating-linear-gradient(90deg, var(--c) 0 5px, color-mix(in oklab, var(--c) 70%, #000) 5px 6px);
  box-shadow: 0 0 0 1px var(--line-2); transition: transform .4s var(--ease); }
.swatches button:hover { transform: translateY(-3px); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--fg); }
.studio__meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.studio__name { font-family: var(--serif); font-style: italic; font-size: 26px; min-width: 7ch; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; color: var(--fg-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; transition: background-color .3s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .4s var(--ease); }
.switch input:checked + .switch__ui { background: #e9b866; }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--accent); outline-offset: 3px; }

.wall { --slat: #a87a4c; position: relative; aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden; background: var(--room); box-shadow: var(--shadow); transition: background-color .6s; }
.wall__slats { position: absolute; left: 18%; right: 18%; top: 10%; bottom: 22%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18)),
    repeating-linear-gradient(90deg,
      color-mix(in oklab, var(--slat) 88%, #fff) 0 2px,
      var(--slat) 2px 15px,
      color-mix(in oklab, var(--slat) 78%, #000) 15px 17px,
      color-mix(in oklab, var(--slat) 35%, #000) 17px 22px);
  transition: --slat .6s, filter .6s;
  filter: brightness(calc(.9 + var(--led) * .05));
}
.wall__led { position: absolute; left: 18%; right: 18%; top: 10%; bottom: 22%; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease);
  background:
    linear-gradient(180deg, rgba(255, 214, 150, .85) 0, rgba(255, 196, 120, .35) 8%, transparent 38%),
    linear-gradient(0deg, rgba(255, 196, 120, .18) 0, transparent 20%);
  mix-blend-mode: screen; }
.wall__led::before { content: ""; position: absolute; left: -2%; right: -2%; top: -3px; height: 6px; background: #ffe2b0; border-radius: 6px; filter: blur(2px); box-shadow: 0 0 30px 10px rgba(255, 200, 120, .55); }
.wall.led-on .wall__led { opacity: var(--led); }
.wall__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, color-mix(in oklab, var(--floor) 80%, #000), var(--floor)); }
.wall__floor::before { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 40px; background: radial-gradient(60% 100% at 50% 0, rgba(255, 200, 120, calc(var(--led) * .35)), transparent); opacity: 0; transition: opacity .8s; }
.wall.led-on .wall__floor::before { opacity: 1; }
.wall__furniture { position: absolute; z-index: 3; left: 26%; right: 26%; bottom: 14%; height: 12%; border-radius: 6px; background: color-mix(in oklab, var(--fg) 85%, var(--bg)); box-shadow: 0 20px 30px -10px rgba(0,0,0,.5); transition: background-color .5s; }
[data-theme="dark"] .wall__furniture { background: #2c2925; }
[data-theme="light"] .wall__furniture { background: #fbf8f3; }
.wall__furniture span { position: absolute; left: 12%; bottom: 100%; width: 10%; height: 90%; border-radius: 50% 50% 4px 4px; background: #5e6f52; }
[data-theme="dark"] .wall__slats { filter: brightness(.72) saturate(.9); }
[data-theme="dark"] .wall.led-on .wall__slats { filter: brightness(.95); }
@property --slat { syntax: "<color>"; inherits: true; initial-value: #a87a4c; }

/* ---------- SISTEMAS ---------- */
.systems { padding-block: clamp(90px, 12vw, 160px); }
.systems__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sys { border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.sys:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sys__img { aspect-ratio: 4 / 5; overflow: hidden; }
.sys__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sys:hover .sys__img img { transform: scale(1.06); }
.sys__body { padding: 22px 22px 26px; }
.sys__n { font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.sys h3 { margin: 6px 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.sys p { margin: 0; color: var(--fg-2); font-size: 15px; }

/* ---------- OBRAS ---------- */
.works { padding-block: clamp(90px, 12vw, 160px); background: var(--bg-2); transition: background-color .5s; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 16px; border-radius: 99px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); transition: all .35s var(--ease); }
.chip:hover { color: var(--fg); }
.chip.is-active { background: var(--solid-bg); color: var(--solid-fg); box-shadow: none; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 210px); grid-auto-flow: dense; gap: 14px; }
.tile { text-align: left; position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--card); cursor: zoom-in; grid-row: span 2; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.tile.in { opacity: 1; transform: none; }
.tile--h { grid-column: span 2; grid-row: span 2; }
.tile--g { grid-column: span 2; grid-row: span 3; }
.tile--v { grid-row: span 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.tile:hover img { transform: scale(1.05); }
.tile__cap { position: absolute; inset: auto 0 0; padding: 40px 18px 16px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.72), transparent); transform: translateY(12px); opacity: 0; transition: all .5s var(--ease); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: none; opacity: 1; }
.tile__cap b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.tile__cap span { font-size: 13px; opacity: .8; }
.tile.is-out { display: none; }

/* ---------- PROCESO ---------- */
.process { height: 320vh; }
.process__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 72px; }
.process__head { margin-bottom: clamp(24px, 4vh, 48px); }
.process__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 320px; }
.process__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.process__track { display: flex; gap: 22px; padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.step { flex: 0 0 clamp(280px, 34vw, 440px); }
.step__img { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; margin-bottom: 22px; background: var(--card); }
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step__n { font-family: var(--serif); font-style: italic; font-size: 36px; color: var(--accent); line-height: 1; }
.step h3 { margin: 6px 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.step p { margin: 0; color: var(--fg-2); max-width: 36ch; }

/* ---------- EQUIPO ---------- */
.crew { padding-block: clamp(90px, 12vw, 160px); }
.crew__grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 18px clamp(28px, 5vw, 70px); align-items: center; }
.crew__big { grid-row: span 2; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.4; }
.crew__big img, .crew__small img { width: 100%; height: 100%; object-fit: cover; }
.crew__small { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; }
.ticks { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- PROFESIONALES ---------- */
.pros { padding-block: clamp(90px, 12vw, 160px); border-top: 1px solid var(--line); }
.pros__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pro { display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 34px); border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease); }
.pro:hover { transform: translateY(-6px); border-color: color-mix(in oklab, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.pro__who { display: flex; align-items: center; gap: 10px; margin: 0 0 40px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.pro__who span { font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0; color: var(--fg-3); }
.pro h3 { margin: 0 0 22px; font-size: clamp(21px, 1.7vw, 25px); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.pro__list { list-style: none; margin: 0 0 32px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--fg-2); }
.pro__list li { position: relative; padding-left: 20px; }
.pro__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--accent); }
.pro .link { margin-top: auto; align-self: flex-start; font-size: 15px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* ---------- CONTACTO ---------- */
.contact { padding-block: clamp(90px, 12vw, 160px); background: var(--bg-2); transition: background-color .5s; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.mail { display: inline-block; margin-top: 26px; font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -.02em; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .3s; }
.mail:hover { border-color: var(--fg); }
.socials { display: flex; gap: 10px; margin-top: 34px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: all .4s var(--ease); }
.socials a:hover { background: var(--solid-bg); color: var(--solid-fg); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.socials .fill { fill: currentColor; stroke: none; }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); display: grid; gap: 14px; }
.form__perfil { border: 0; padding: 0; margin: 0 0 6px; }
.form__perfil legend { font-size: 13px; color: var(--fg-3); margin-bottom: 10px; letter-spacing: .06em; text-transform: uppercase; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 99px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); cursor: pointer; transition: all .3s var(--ease); }
.seg input:checked + span { background: var(--solid-bg); color: var(--solid-fg); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 26px 16px 10px; outline: none; transition: border-color .3s, box-shadow .3s, background-color .5s; appearance: none; -webkit-appearance: none; }
.field textarea { resize: vertical; min-height: 104px; }
.field label { position: absolute; left: 17px; top: 18px; font-size: 16px; color: var(--fg-3); pointer-events: none; transition: all .3s var(--ease); transform-origin: left top; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-10px) scale(.78); color: var(--fg-2); }
.field--select::after { content: ""; position: absolute; right: 18px; top: 26px; width: 8px; height: 8px; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); transform: rotate(45deg); pointer-events: none; }
.field.invalid input, .field.invalid select { border-color: #d9534f; }
.hp { position: absolute; left: -9999px; }
.form { position: relative; }
.form__done { position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; outline: none; }
.form.done .form__done { opacity: 1; visibility: visible; }
.form__done h3 { margin: 18px 0 4px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; }
.form__done p { margin: 0 0 22px; max-width: 34ch; color: var(--fg-2); }
.form__check svg { width: 76px; height: 76px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.form__check path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.form.done .form__check circle { animation: draw .9s var(--ease) .15s forwards; }
.form.done .form__check path { animation: draw .5s var(--ease) .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form__status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--fg-2); }

/* ---------- FOOTER ---------- */
.foot { padding: clamp(64px, 8vw, 100px) 0 32px; border-top: 1px solid var(--line); }
.foot__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: clamp(48px, 6vw, 80px); }
.foot__col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot__col p { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.foot__col a { color: var(--fg-2); transition: color .3s; justify-self: start; }
.foot__col a:hover { color: var(--fg); }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.foot__bottom a:hover { color: var(--fg); }
.foot__credit { letter-spacing: .02em; }
.foot__credit a { color: var(--fg-2); font-weight: 600; letter-spacing: .12em; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: color .3s, border-color .3s; }
.foot__credit a:hover { border-color: var(--accent); }

/* ---------- LIGHTBOX ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(6,5,4,.94); display: grid; place-items: center; animation: lbIn .4s var(--ease); }
.lb[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lb figure { margin: 0; max-width: 92vw; max-height: 88vh; display: grid; gap: 14px; justify-items: center; }
.lb img { max-width: 92vw; max-height: 80vh; border-radius: 10px; object-fit: contain; animation: lbImg .6s var(--ease); }
@keyframes lbImg { from { opacity: 0; transform: scale(.96); } }
.lb figcaption { color: rgba(255,255,255,.8); font-size: 15px; text-align: center; }
.lb figcaption b { color: #fff; font-weight: 500; }
.lb__close, .lb__nav { position: absolute; color: #fff; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 28px; line-height: 1; display: grid; place-items: center; transition: background-color .3s; }
.lb__close:hover, .lb__nav:hover { background: rgba(255,255,255,.2); }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; } .lb__next { right: 20px; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: .45s; }
.hero .hero__ctas.reveal { transition-delay: .6s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .burger { display: block; }
  .systems__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .foot__top { grid-template-columns: repeat(3, 1fr); }
  .pros__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__top .logo { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --r: 18px; }
  .nav__inner { height: 60px; }
  .nav__cta { display: none; }
  .logo--word { height: 19px; }
  .compare__grid, .studio__grid, .contact__grid, .crew__grid { grid-template-columns: 1fr; }
  .compare__card--hero { order: -1; }
  .crew__big { grid-row: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: 10px; }
  .tile--g { grid-row: span 3; }
  .tile__cap { opacity: 1; transform: none; padding: 30px 12px 10px; }
  .tile__cap b { font-size: 14px; } .tile__cap span { display: none; }
  .process { height: auto; }
  .process__sticky { position: static; height: auto; padding-block: 80px; }
  .process__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; transform: none !important; scroll-padding-inline: var(--gut); }
  .process__track::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: start; flex-basis: 78vw; }
  .process__bar { display: none; }
  .systems, .works, .crew, .pros, .contact, .studio { padding-block: 80px; }
  .compare { padding-bottom: 80px; }
  .sec-head { margin-bottom: 32px; }
  .sec-head--row { align-items: flex-start; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; width: calc(100% + var(--gut) * 2); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .wall { aspect-ratio: 4 / 3.4; }
  .studio__copy { order: 1; }

  /* barra flotante de contacto */
  .dock { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 60px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 0 20px; border-radius: 99px; background: var(--glass); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px); box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -16px rgba(0,0,0,.5); font-size: 14px; color: var(--fg-2); transform: translateY(140%); transition: transform .6s var(--ease), opacity .4s; }
  .dock b { height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 99px; background: var(--solid-bg); color: var(--solid-fg); font-weight: 500; }
  .dock.is-visible { transform: none; }
  /* con WhatsApp: el botón se ubica a la derecha de la barra y la barra le deja lugar */
  .wa { right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa span { display: none; }
  .has-wa .dock { right: 78px; }
  .has-wa .dock > span { font-size: 13px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .systems__grid { grid-template-columns: 1fr; }
  .sys { flex-direction: row; align-items: stretch; }
  .sys__img { aspect-ratio: auto; width: 36%; flex: none; }
  .sys__body { padding: 18px; }
  .sys h3 { font-size: 19px; }
  .sys p { font-size: 14px; }
  .row2 { grid-template-columns: 1fr; }
  .pros__grid { grid-template-columns: 1fr; gap: 12px; }
  .pro__who { margin-bottom: 24px; }
  .pro__list { margin-bottom: 24px; }
  .swatches { gap: 8px; flex-wrap: nowrap; }
  .swatches button { width: 40px; height: 40px; }
  .hero { min-height: 600px; }
  .hero__title { font-size: clamp(36px, 10.4vw, 44px); }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .14em; }
  .scrollcue { display: none; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot__top .logo { height: 34px; }
  .foot__col:nth-child(3) { grid-column: 1 / -1; order: 3; }
  .foot__col:nth-child(4) { order: 2; }
  .foot { padding-bottom: 100px; }
  .form { padding: 20px; }
  .lb__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .hero__media img { transform: none !important; }
}
.has-wa .scrollcue { margin-right: 76px; }
