/* Local · Partum Construcciones · construcción comercial */
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --ground: #15143a; --ground-2: #1e1d4b; --indigo: #2b2a5c; --slate: #4a7280; --teal: #0085a1; --teal-deep: #006c84;
  --teal-hi: #3cc0da; --greyblue: #6b7f9e; --muted: #a9b7cf; --paper: #f3f5f9; --white: #fff; --ink: #1b1a45; --ink-muted: #46557a;
  --line: rgba(255, 255, 255, 0.16); --line-ink: rgba(27, 26, 69, 0.16);
  --pad: clamp(20px, 2.8vw, 44px);
  --t-mega: clamp(2.7rem, 0.6rem + 5.9vw, 6.6rem);
  --t-xl: clamp(2.1rem, 1rem + 3.6vw, 4.4rem);
  --t-l: clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem);
  --t-m: clamp(1.15rem, 1.05rem + 0.45vw, 1.45rem);
  --t-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --t-s: 0.875rem; --t-xs: 0.78rem;
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1); --seat: cubic-bezier(0.3, 1.35, 0.5, 1);
  --hdr: 64px; --stage-h: 100svh;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--white); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
body { margin: 0; font: 400 var(--t-body)/1.55 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--teal-hi); color: var(--ground); }
:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 4px; border-radius: 2px; }
.paper :focus-visible { outline-color: var(--teal-deep); }
.field :focus-visible { outline-color: var(--white); }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none; translate: 0 -200%; }
.skip:focus { translate: 0 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.display { font-stretch: 125%; font-weight: 800; letter-spacing: -0.035em; line-height: 0.94; text-wrap: balance; }
.tag + h2, .tag + h3 { margin-top: 0.4em !important; }
.tag { font-stretch: 112%; font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-hi); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- motion roles: everything drops and seats */
.roll { display: inline-grid; overflow: clip; vertical-align: bottom; }
.roll > span { grid-area: 1 / 1; transition: translate 0.5s var(--seat); }
.roll > span + span { translate: 0 -110%; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 0.7em; min-height: 52px; padding: 0 1.5em; border: 1.5px solid var(--white); color: var(--white); text-decoration: none; font-stretch: 112%; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em; overflow: clip; isolation: isolate; transition: color 0.35s var(--ease), scale 0.2s var(--ease); }
.btn__fill { position: absolute; inset: 0; z-index: -1; background: var(--white); transform-origin: 50% 100%; scale: 1 0; transition: scale 0.45s var(--ease); }
.btn--solid { color: var(--ground); }
.btn--solid .btn__fill { scale: 1 1; }
.btn--solid .btn__fill2 { position: absolute; inset: 0; z-index: -1; background: var(--teal-hi); transform-origin: 50% 0; scale: 1 0; transition: scale 0.45s var(--ease); }
.btn svg { width: 1em; height: 1em; transition: translate 0.45s var(--seat); }
.btn:active { scale: 0.97; }
@media (hover: hover) {
  .roll:hover > span, a:hover > .roll > span, .btn:hover .roll > span { translate: 0 110%; }
  .roll:hover > span + span, a:hover > .roll > span + span, .btn:hover .roll > span + span { translate: 0 0; }
  .btn:hover { color: var(--ground); }
  .btn:hover .btn__fill { scale: 1 1; }
  .btn--solid:hover .btn__fill2 { scale: 1 1; }
  .btn:hover svg { translate: 0 3px; }
}
.btn:focus-visible .roll > span, a:focus-visible > .roll > span { translate: 0 110%; }
.btn:focus-visible .roll > span + span, a:focus-visible > .roll > span + span { translate: 0 0; }

/* ---------- header */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); transition: translate 0.5s var(--ease), background-color 0.3s; }
.hdr.is-solid { background: var(--ground); }
.hdr.is-away { translate: 0 -110%; }
.hdr__logo { display: block; padding: 6px 0; }
.hdr__logo { position: relative; }
.hdr__logo img { width: 142px; height: auto; transition: translate 0.45s var(--seat); }
.hdr__logo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal-hi); transform-origin: 0 50%; scale: 0 1; transition: scale 0.45s var(--ease); }
@media (hover: hover) { .hdr__logo:hover img { translate: 8px 0; } .hdr__logo:hover::after { scale: 1 1; } }
.hdr__logo:active img { translate: 0 6px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); font-size: var(--t-s); font-weight: 500; }
.nav a { position: relative; text-decoration: none; padding: 10px 0; }
.nav a:not(.nav__cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--teal-hi); transform-origin: 0 50%; scale: 0 1; transition: scale 0.45s var(--ease); }
.nav a[aria-current='true']::after, .nav a:focus-visible::after { scale: 1 1; }
@media (hover: hover) { .nav a:hover::after { scale: 1 1; } }
.nav a[aria-current='true'] { color: var(--teal-hi); }
.nav .nav__cta { padding: 9px 16px; border: 1.5px solid var(--white); transition: background-color 0.35s var(--ease), color 0.35s var(--ease); }
.nav .roll > span + span { color: var(--teal-hi); }
.nav .nav__cta .roll > span + span { color: var(--ground); }
@media (hover: hover) { .nav .nav__cta:hover { background: var(--white); color: var(--ground); } }
.nav .nav__cta:focus-visible { background: var(--white); color: var(--ground); }
.menu-btn { display: none; min-height: 44px; padding: 0 4px; font-weight: 700; font-stretch: 112%; font-size: var(--t-s); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- world: sticky stage with the model */
.world { position: relative; background: radial-gradient(60vw 60vh at 70% 46%, #25246a 0%, rgba(37, 36, 106, 0) 70%), var(--ground); }
.stage { position: absolute; inset: 0 0 auto 0; height: var(--stage-h); overflow: clip; pointer-events: none; }
.gl .stage { position: sticky; top: 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.7s; }
.gl-ready .stage canvas { opacity: 1; }
.stage__poster { position: absolute; left: 38vw; top: 56svh; width: 62vw; translate: 0 -50%; transition: opacity 0.6s; }
.gl-ready .stage__poster { opacity: 0; }
.world__content { position: relative; z-index: 2; }
.gl .world__content { margin-top: calc(-1 * var(--stage-h)); }
.hud { position: absolute; left: 68%; bottom: clamp(14px, 3.5svh, 36px); translate: -50% 0; width: min(430px, 56vw); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; }
[data-zone='obra'] .hud { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.4s; }
.hud__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--t-s); }
.hud__name { font-stretch: 118%; font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem; }
.hud__rail { position: relative; margin-top: 4px; }
.hud__rail ol { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.hud__rail a { position: relative; display: block; height: 30px; }
.hud__rail a::before { content: ''; position: absolute; right: 0; top: 9px; width: 2px; height: 12px; background: rgba(255, 255, 255, 0.4); transition: scale 0.35s var(--seat), background-color 0.3s; }
.hud__rail a::after { content: ''; position: absolute; inset: 14px 0 auto 0; height: 2px; background: var(--line); }
.hud__rail a[aria-current='step']::before { background: var(--white); scale: 1.5 1.9; }
@media (hover: hover) { .hud__rail a:hover::before { background: var(--teal-hi); scale: 2 2.2; } }
.hud__fill { position: absolute; left: 0; top: 14px; height: 2px; width: 100%; background: var(--teal-hi); transform-origin: 0 50%; scale: 0 1; z-index: 1; pointer-events: none; }

.col { width: min(40vw, 600px); margin-left: var(--pad); }
.col--w { width: min(44vw, 660px); }

/* hero */
.hero { position: relative; min-height: 100svh; padding: calc(var(--hdr) + clamp(28px, 9svh, 96px)) var(--pad) clamp(24px, 5svh, 48px); display: flex; flex-direction: column; }
.hero__copy { width: min(52vw, 800px); }
.hero h1 { font-size: var(--t-mega); margin: 0.28em 0 0.36em -0.05em; }
.hero h1 span { display: block; }
.hero__lead { max-width: 33rem; font-size: var(--t-m); line-height: 1.42; color: #dfe6f3; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(20px, 3.5svh, 36px); }
.facts { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 17rem)); gap: clamp(20px, 3vw, 48px); }
.facts li { border-top: 1.5px solid var(--line); padding-top: 12px; font-size: var(--t-s); line-height: 1.4; color: var(--muted); }
.facts strong { display: block; color: var(--white); font-stretch: 125%; font-weight: 800; font-size: clamp(1.3rem, 1rem + 0.9vw, 1.75rem); white-space: nowrap; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.hero__giro { position: absolute; left: 69%; bottom: clamp(24px, 5svh, 48px); translate: -50% 0; text-align: center; }

/* giro switch: the signature control */
.giro__label { display: block; margin: 0 0 10px; font-size: var(--t-s); color: var(--muted); }
.giro { --i: 0; position: relative; display: inline-grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--white); background: rgba(21, 20, 58, 0.72); }
.giro__thumb { position: absolute; inset: 0 auto 0 0; width: calc(100% / 3); background: var(--white); translate: calc(var(--i) * 100%) 0; transition: translate 0.55s var(--seat); }
.giro button { position: relative; min-height: 48px; padding: 0 clamp(14px, 1.6vw, 24px); font-stretch: 118%; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.01em; transition: color 0.3s; }
.giro button > span { position: relative; display: inline-block; transition: translate 0.4s var(--seat); }
.giro button > span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 2.5px; background: currentColor; transform-origin: 0 50%; scale: 0 1; transition: scale 0.4s var(--ease); }
@media (hover: hover) { .giro button[aria-checked='true']:hover > span::after { scale: 1 1; } }
.giro button::before { content: ''; position: absolute; inset: 0; background: rgba(60, 192, 218, 0.28); transform-origin: 50% 100%; scale: 1 0; transition: scale 0.4s var(--ease); }
.giro button[aria-checked='true'] { color: var(--ground); }
.giro button:active > span { translate: 0 2px; }
@media (hover: hover) { .giro button:hover > span { translate: 0 -4px; } .giro button[aria-checked='false']:hover { color: var(--white); } .giro button[aria-checked='false']:hover::before { scale: 1 1; } .giro button[aria-checked='true']:hover { color: var(--teal-deep); } }
.giro--xl button { min-height: 60px; font-size: clamp(1rem, 1.5vw, 1.3rem); }

/* obra */
.intro { min-height: 96svh; display: flex; align-items: center; padding: 12svh 0; }
.intro h2 { font-size: var(--t-xl); margin: 0.3em 0 0.5em -0.04em; }
.intro p + p { margin-top: 1em; }
.skipobra { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 44px; font-weight: 700; font-size: var(--t-s); color: var(--teal-hi); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1.5px; }
.skipobra svg { width: 14px; height: 14px; transition: translate 0.45s var(--seat); }
@media (hover: hover) { .skipobra:hover { color: var(--white); } .skipobra:hover svg { translate: 0 5px; } }
.ch { min-height: 90svh; display: flex; align-items: center; padding: 10svh 0; }
.ch__in { position: relative; padding-left: clamp(0px, 0.4vw, 8px); }
.ch__num { display: block; font-stretch: 125%; font-weight: 900; font-size: clamp(5rem, 11vw, 11rem); line-height: 0.78; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55); margin-left: -0.05em; }
.ch__cat { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; }
.ch__cat::before { content: ''; width: 22px; height: 10px; background: var(--teal-hi); }
.ch[data-cat='ing'] .ch__cat { color: var(--white); }
.ch[data-cat='ing'] .ch__cat::before { background: none; border: 1.5px solid var(--white); }
.ch h3 { font-size: var(--t-xl); margin: 0.22em 0 0.4em -0.04em; }
.ch p { max-width: 31rem; color: #dfe6f3; }
.ch__model { margin-top: 20px; padding-top: 14px; border-top: 1.5px solid var(--line); max-width: 31rem; font-size: var(--t-s); color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.ch__model dt { font-weight: 700; color: var(--teal-hi); }
.ch__fig, .sec__fig { display: none; }
.dusk { min-height: 84svh; display: flex; align-items: center; }
.dusk h3 { font-size: var(--t-xl); margin: 0 0 0.45em -0.04em; }
.lede { font-size: var(--t-m); line-height: 1.42; color: #dfe6f3; max-width: 31rem; }

/* servicios index */
.serv { min-height: 100svh; padding: 12svh 0 10svh; }
.serv h2 { font-size: var(--t-xl); margin: 0 0 0.5em -0.04em; }
.serv__group { margin-top: clamp(40px, 8svh, 80px); scroll-margin-top: 90px; }
.serv__group h3 { display: flex; align-items: baseline; gap: 14px; font-size: var(--t-l); }
.serv__group h3 .num { font-size: var(--t-s); font-stretch: 112%; font-weight: 700; color: var(--teal-hi); letter-spacing: 0.04em; }
.serv__group > p { margin: 10px 0 20px; max-width: 34rem; color: var(--muted); }
.rows { border-top: 1.5px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 15px 14px 15px 0; border-bottom: 1.5px solid var(--line); text-decoration: none; overflow: clip; isolation: isolate; transition: color 0.3s; }
.row__fill { position: absolute; inset: 0; z-index: -1; background: var(--white); transform-origin: 50% 100%; scale: 1 0; transition: scale 0.4s var(--ease); }
.row__n { font-size: var(--t-s); color: var(--teal-hi); font-weight: 700; font-stretch: 112%; transition: translate 0.45s var(--seat), color 0.3s; }
.row__t { display: block; font-stretch: 122%; font-weight: 800; font-size: var(--t-m); letter-spacing: -0.02em; line-height: 1.1; transition: translate 0.45s var(--seat); }
.row__d { display: block; font-size: var(--t-s); color: var(--muted); margin-top: 3px; transition: translate 0.45s var(--seat) 0.03s, color 0.3s; }
.row svg { width: 18px; height: 18px; transition: translate 0.45s var(--seat); }
@media (hover: hover) {
  .row:hover { color: var(--ground); }
  .row:hover .row__fill { scale: 1 1; }
  .row:hover .row__n { translate: 12px 0; color: var(--teal-deep); }
  .row:hover .row__t, .row:hover .row__d { translate: 12px 0; }
  .row:hover .row__d { color: var(--ink-muted); }
  .row:hover svg { translate: 0 4px; }
}
.row:focus-visible { color: var(--ground); outline-offset: -2px; }
.row:focus-visible .row__fill { scale: 1 1; }
.row:focus-visible .row__n { color: var(--teal-deep); } .row:focus-visible .row__d { color: var(--ink-muted); }

/* tipos */
.tipos { min-height: 150svh; padding: 14svh 0 12svh; }
.tipos h2 { font-size: var(--t-xl); margin: 0 0 0.45em -0.04em; }
.tipos__sw { margin: 28px 0 20px; }
.tipos__desc { min-height: 5.2em; max-width: 30rem; }
.tipos__desc p { display: none; }
html:not([data-giro]) .tipos__desc p:first-child, [data-giro='0'] .tipos__desc p:nth-child(1), [data-giro='1'] .tipos__desc p:nth-child(2), [data-giro='2'] .tipos__desc p:nth-child(3) { display: block; }
.tipos__desc strong { display: block; font-stretch: 122%; font-weight: 800; font-size: var(--t-m); margin-bottom: 4px; }
.five { margin-top: clamp(48px, 16svh, 150px); }
.five h3 { font-size: var(--t-l); margin-bottom: 18px; }
.five ol { counter-reset: f; border-top: 1.5px solid var(--line); }
.five li { counter-increment: f; display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline; padding: 13px 0; border-bottom: 1.5px solid var(--line); font-stretch: 122%; font-weight: 800; font-size: var(--t-m); letter-spacing: -0.02em; }
.five li::before { content: '0' counter(f); font-size: var(--t-s); color: var(--teal-hi); font-stretch: 112%; font-weight: 700; }
.note { margin-top: 18px; font-size: var(--t-s); color: var(--muted); max-width: 30rem; }

/* mantenimiento */
.mant { min-height: 120svh; padding: 14svh 0 18svh; }
.mant h2 { font-size: var(--t-xl); margin: 0 0 0.5em -0.04em; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0; }
.modes li { border-top: 1.5px solid var(--white); padding-top: 12px; font-size: var(--t-s); color: var(--muted); line-height: 1.4; }
.modes strong { display: block; color: var(--white); font-stretch: 122%; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.sys h3 { font-size: var(--t-m); font-stretch: 122%; font-weight: 800; margin-bottom: 14px; }
.sys ul { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--line); font-weight: 600; font-size: 0.95rem; overflow: clip; isolation: isolate; transition: color 0.3s, border-color 0.3s; }
.chip > span:last-child { display: inline-block; transition: translate 0.4s var(--seat); }
.chip .btn__fill { background: var(--teal-hi); }
.chip[aria-pressed='true'] { color: var(--ground); border-color: var(--teal-hi); }
.chip[aria-pressed='true'] .btn__fill { scale: 1 1; }
.chip:active > span:last-child { translate: 0 2px; }
@media (hover: hover) { .chip:hover { color: var(--ground); border-color: var(--teal-hi); } .chip:hover .btn__fill { scale: 1 1; } .chip:hover > span:last-child { translate: 0 -3px; } }
.mant__ph .ph { outline: 1.5px solid rgba(255, 255, 255, 0.5); outline-offset: -1.5px; }
.mant__ph { display: grid; grid-template-columns: 0.56fr 1fr; gap: 14px; margin-top: 36px; max-width: 520px; align-items: end; }
.ph { position: relative; overflow: clip; background: var(--ground-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.8s var(--ease); }
@media (hover: hover) { .ph:hover img { scale: 1.05; } }
figcaption { font-size: var(--t-xs); line-height: 1.4; color: var(--muted); margin-top: 8px; }

/* ---------- proyectos: fotos reales, mismo sistema que la obra */
.paper { background: var(--paper); color: var(--ink); position: relative; z-index: 4; }
.proj { position: relative; z-index: 4; background: var(--paper); color: var(--ink); padding: clamp(80px, 16svh, 170px) var(--pad) clamp(40px, 8svh, 90px); }
.proj__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); align-items: end; margin-bottom: clamp(48px, 10svh, 110px); }
.proj__head h2 { grid-column: 1 / 9; font-size: clamp(3.2rem, 9.6vw, 10.5rem); line-height: 0.82; letter-spacing: -0.05em; margin-left: -0.06em; }
.proj__head p { grid-column: 9 / 13; color: var(--ink-muted); padding-bottom: 0.6em; }
.proj .tag, .proj .pj__steps > p, .proj .mini .num { color: var(--teal-deep); }
.proj :focus-visible { outline-color: var(--teal-deep); }
.proj figcaption { color: var(--ink-muted); }
.pj { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); padding: clamp(40px, 8svh, 84px) 0; border-top: 1.5px solid var(--line-ink); }
.pj__txt { grid-column: 1 / 5; position: sticky; top: 96px; align-self: start; }
.pj__num { display: block; font-stretch: 125%; font-weight: 900; font-size: clamp(4rem, 7vw, 7rem); line-height: 0.8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(27, 26, 69, 0.7); margin: 0 0 20px -0.04em; }
.pj h3 { font-size: var(--t-l); margin: 10px 0 14px -0.03em; line-height: 1; }
.pj__txt > p:not(.tag) { color: var(--ink-muted); max-width: 24rem; }
.pj__steps { margin-top: 26px; padding-top: 14px; border-top: 1.5px solid var(--line-ink); max-width: 24rem; }
.pj__steps > p { font-size: var(--t-s); font-weight: 700; color: var(--teal-hi); margin-bottom: 10px; }
.pj__steps ul { display: grid; gap: 8px; }
.mini { position: relative; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; min-height: 58px; padding-right: 10px; text-decoration: none; font-size: var(--t-s); font-weight: 600; border: 1.5px solid var(--ink); overflow: clip; transition: border-color 0.3s, color 0.3s, background-color 0.35s var(--ease); }
.mini__img { display: block; background: var(--ground); overflow: clip; }
.mini__img img { width: 76px; height: 57px; object-fit: cover; scale: 1.25; transition: scale 0.5s var(--seat), translate 0.5s var(--seat); }
.mini__t { transition: translate 0.45s var(--seat); }
.mini .num { display: block; font-size: var(--t-xs); color: var(--teal-hi); font-weight: 700; transition: color 0.3s; }
@media (hover: hover) { .mini:hover { background: var(--ink); color: var(--white); } .mini:hover .mini__img img { scale: 1.5; translate: 0 -4px; } .mini:hover .mini__t { translate: 6px 0; } .mini:hover .num { color: var(--teal-hi); } }
.mini:focus-visible { background: var(--ink); color: var(--white); } .mini:focus-visible .num { color: var(--teal-hi); }
.pj__ph { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--pad) clamp(14px, 1.6vw, 24px); align-items: start; }
.proj .ph { background: #dfe4ee; outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.proj .ph::after { content: ''; position: absolute; inset: 0; background: var(--indigo); mix-blend-mode: color; opacity: 0.6; transition: opacity 0.5s var(--ease); pointer-events: none; }
@media (hover: hover) { .proj figure:hover .ph::after { opacity: 0; } }
@media (hover: none) { .proj .ph::after { opacity: 0.2; } }
.is-l .ph { aspect-ratio: 4 / 3; } .is-p .ph { aspect-ratio: 3 / 4; }
.pj__ph figure:nth-child(1) { grid-column: 1 / 6; }
.pj__ph figure:nth-child(2) { grid-column: 6 / 9; margin-top: 22%; }
.pj__ph figure:nth-child(3) { grid-column: 2 / 5; }
.pj__ph figure:nth-child(4) { grid-column: 5 / 9; margin-top: 10%; }
.pj--b .pj__ph figure:nth-child(1) { grid-column: 3 / 9; }
.pj--b .pj__ph figure:nth-child(2) { grid-column: 1 / 3; grid-row: 1; margin-top: 40%; }
.pj--b .pj__ph figure:nth-child(3) { grid-column: 1 / 5; }
.pj--c .pj__ph figure:nth-child(1) { grid-column: 1 / 4; }
.pj--c .pj__ph figure:nth-child(2) { grid-column: 4 / 9; margin-top: 12%; }
.pj--c .pj__ph figure:nth-child(3) { grid-column: 2 / 6; }
.pj--c .pj__ph figure:nth-child(4) { grid-column: 6 / 9; margin-top: 8%; }
.paper figcaption { color: var(--ink-muted); }
.cli { border-top: 1.5px solid var(--line-ink); padding: clamp(64px, 12svh, 130px) var(--pad) clamp(64px, 12svh, 130px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px var(--pad); }
.cli h2 { grid-column: 1 / 5; font-size: var(--t-l); }
.cli h2 + p { grid-column: 1 / 5; grid-row: 2; color: var(--ink-muted); max-width: 22rem; align-self: start; }
.cli ul { grid-column: 5 / 13; grid-row: 1 / 3; display: flex; flex-wrap: wrap; gap: 0.1em 0; font-stretch: 122%; font-weight: 800; font-size: clamp(1.25rem, 2.5vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.22; }
.cli li:not(:last-child)::after { content: '/'; color: var(--teal); margin: 0 0.38em; font-weight: 400; }

/* ---------- contacto (teal field) */
.field { background: var(--teal-deep); color: var(--white); position: relative; z-index: 4; padding: clamp(80px, 16svh, 170px) var(--pad) clamp(56px, 10svh, 110px); overflow: clip; }
.field h2 { position: relative; z-index: 1; font-size: clamp(3rem, 10.6vw, 11.5rem); line-height: 0.84; letter-spacing: -0.05em; margin-left: -0.05em; max-width: 9ch; }
.field__lot { position: absolute; right: 2vw; top: clamp(16px, 4svh, 48px); width: min(37vw, 560px); }
.field__grid { position: relative; z-index: 1; }
.field__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--pad); margin-top: clamp(40px, 9svh, 96px); }
.field__a { grid-column: 1 / 6; }
.field__a p { max-width: 27rem; }
.field__a p + p { margin-top: 1em; color: #d3eef4; }
.field__b { grid-column: 7 / 13; }
.who { font-size: var(--t-s); color: #d3eef4; margin-bottom: 6px; }
.big { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1.5px solid rgba(255, 255, 255, 0.4); text-decoration: none; font-stretch: 122%; font-weight: 800; font-size: clamp(1.15rem, 2.5vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; }
.big:last-of-type { border-bottom: 1.5px solid rgba(255, 255, 255, 0.4); }
.big > span { overflow-wrap: anywhere; transition: translate 0.45s var(--seat); }
.big svg { flex: none; width: 0.9em; height: 0.9em; transition: translate 0.45s var(--seat), rotate 0.45s var(--seat); }
.big small { display: block; font-stretch: 100%; font-weight: 500; font-size: var(--t-s); letter-spacing: 0; color: #d3eef4; margin-bottom: 6px; }
@media (hover: hover) { .big:hover > span { translate: 14px 0; } .big:hover svg { translate: -6px 0; rotate: 45deg; } }
.big:focus-visible > span { translate: 14px 0; }
.social { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: var(--t-s); }
.social dt { color: #d3eef4; }

/* ---------- footer */
.ftr { position: relative; z-index: 4; background: var(--ground); padding: clamp(48px, 9svh, 90px) var(--pad) 28px; }
.ftr__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--pad); align-items: start; }
.ftr__brand { grid-column: 1 / 6; }
.ftr__brand img { width: clamp(220px, 26vw, 400px); }
.ftr__brand p { margin-top: 18px; color: var(--muted); font-size: var(--t-s); }
.ftr__brand .tagline { font-stretch: 122%; font-weight: 800; font-size: var(--t-m); color: var(--white); letter-spacing: -0.02em; }
.ftr nav { grid-column: 7 / 10; }
.ftr__loc { grid-column: 10 / 13; font-size: var(--t-s); color: var(--muted); }
.ftr h2 { font-size: var(--t-xs); font-stretch: 112%; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-hi); margin-bottom: 12px; }
.ftr nav a, .ftr__loc a { display: inline-block; padding: 5px 0; font-size: var(--t-s); color: var(--white); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; transition: text-decoration-color 0.3s, color 0.3s; }
.ftr nav a:hover, .ftr__loc a:hover, .ftr nav a:focus-visible, .ftr__loc a:focus-visible { text-decoration-color: var(--teal-hi); color: var(--teal-hi); }
.ftr__legal { margin-top: clamp(40px, 8svh, 80px); padding-top: 18px; border-top: 1.5px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: var(--t-xs); color: var(--muted); }
.ftr__legal p { max-width: 46rem; }

/* ---------- fallback: no WebGL, reduced motion or no JS. Every stage is a rendered still. */
html:not(.gl) .hud { display: none; }
html:not(.gl) .ch, html:not(.gl) .intro, html:not(.gl) .dusk, html:not(.gl) .serv, html:not(.gl) .tipos, html:not(.gl) .mant { min-height: 0; padding-top: clamp(40px, 9svh, 90px); padding-bottom: clamp(40px, 9svh, 90px); }
html:not(.gl) .ch { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--pad); padding-left: var(--pad); padding-right: var(--pad); border-top: 1.5px solid var(--line); }
html:not(.gl) .ch .col { width: auto; margin: 0; }
html:not(.gl) .ch__fig { display: block; }
html:not(.gl) .ch__num { font-size: clamp(4rem, 8vw, 8rem); }
html:not(.gl) .sec__fig { display: block; width: min(46vw, 640px); }
html:not(.gl) .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--pad); align-items: center; padding-left: var(--pad); padding-right: var(--pad); min-height: 0; }
html:not(.gl) .split .col { width: auto; margin: 0; }
html:not(.gl) .split--r .sec__fig { order: -1; }
.sec__fig--giro img { display: none; }
html:not([data-giro]) .sec__fig--giro img:first-child, [data-giro='0'] .sec__fig--giro img:nth-child(1), [data-giro='1'] .sec__fig--giro img:nth-child(2), [data-giro='2'] .sec__fig--giro img:nth-child(3) { display: block; }

/* ---------- phone: model on top in a sticky stage, text below */
@media (max-width: 899px) {
  :root { --hdr: 56px; --stage-h: 43svh; }
  .hdr, .hdr.is-solid { background: var(--ground); }
  .hdr.is-away { translate: 0 0; }
  .hdr__logo img { width: 124px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { position: fixed; inset: var(--hdr) 0 0 0; height: calc(100dvh - var(--hdr)); flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 24px var(--pad); background: var(--ground); font-size: 1.7rem; font-stretch: 122%; font-weight: 800; letter-spacing: -0.03em; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path 0.55s var(--ease), visibility 0s 0.55s; }
  .nav-open .nav { visibility: visible; clip-path: inset(0); transition: clip-path 0.55s var(--ease); }
  .nav .nav__cta { margin-top: 18px; font-size: 1.1rem; padding: 14px 20px; }
  .world { background: var(--ground); }
  .stage { position: relative; top: auto; margin-top: var(--hdr); z-index: 3; background: radial-gradient(90vw 36svh at 50% 55%, #27266c 0%, rgba(39, 38, 108, 0) 72%), var(--ground); border-bottom: 1.5px solid var(--line); }
  .gl .stage { position: sticky; top: var(--hdr); overflow: visible; }
  .gl .stage::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 30px; margin-top: 1.5px; background: linear-gradient(var(--ground), rgba(21, 20, 58, 0)); pointer-events: none; }
  .ftr { padding-top: 88px; }
  .gl .world__content { margin-top: 0; }
  .stage__poster { left: 2vw; width: 96vw; top: 50%; }
  .hud { left: 50%; bottom: 10px; width: calc(100% - 40px); }
  .col, .col--r { width: auto; margin: 0 var(--pad); }
  .hero { min-height: 0; padding: 26px var(--pad) 44px; }
  .hero__copy { width: auto; }
  .hero h1 { margin-top: 0.3em; }
  .hero__giro { position: static; translate: none; text-align: left; margin-top: 30px; order: 2; }

  .facts { order: 3; margin-top: 34px; padding-top: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
  .facts strong { font-size: 1.02rem; }
  .giro { display: grid; }
  .giro button { padding: 0 6px; }
  .intro { min-height: 0; padding: 56px 0 30px; }
  .ch { min-height: 62svh; padding: 26px 0 34px; align-items: flex-start; }
  .ch__num { font-size: 5.2rem; }
  .dusk { min-height: 70svh; align-items: flex-start; padding-top: 40px; }
  .serv, .tipos, .mant { min-height: 0; padding: 64px 0 56px; }
  .tipos { padding-bottom: 80px; }
  .five { margin-top: 56px; }
  .modes { grid-template-columns: 1fr; gap: 14px; }
  html:not(.gl) .ch, html:not(.gl) .split { grid-template-columns: 1fr; padding: 40px var(--pad); }
  html:not(.gl) .sec__fig { width: 100%; order: -1; }
  html:not(.gl) .ch__fig { order: -1; }
  .proj__head, .pj, .cli, .field__grid, .ftr__top { display: block; }
  .proj__head p { margin-top: 20px; }
  .pj__txt { position: static; margin-bottom: 28px; }
  .field__lot { position: static; width: 100%; margin: 24px 0 0; }
  .field h2 { max-width: none; }
  .pj__ph { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 12px; }
  .pj__ph figure:nth-child(n), .pj--b .pj__ph figure:nth-child(n), .pj--c .pj__ph figure:nth-child(n) { margin-top: 0; grid-row: auto; grid-column: span 1; }
  .pj__ph figure:nth-child(1), .pj__ph figure:nth-child(4), .pj--c .pj__ph figure:nth-child(2), .pj--c .pj__ph figure:nth-child(3) { grid-column: 1 / 3; }
  .pj--c .pj__ph figure:nth-child(1) { grid-column: 1; grid-row: 1; } .pj--c .pj__ph figure:nth-child(4) { grid-column: 2; grid-row: 1; }
  .cli ul { margin-top: 28px; font-size: 1.3rem; }
  .cli h2 + p { margin-top: 12px; }
  .field__b { margin-top: 44px; }
  .ftr nav, .ftr__loc { margin-top: 36px; }
  .ftr nav a, .ftr__loc a { padding: 8px 0; }
}
@media (min-width: 900px) and (max-height: 760px) { .facts strong { font-size: 1.5rem; } .hero h1 { font-size: clamp(2.7rem, 0.6rem + 5.2vw, 5.6rem); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .roll > span { translate: none !important; } .roll > span + span { visibility: hidden; }
  .btn:hover .roll, .nav a:hover .roll, .nav a:focus-visible .roll { text-decoration: underline; text-underline-offset: 0.2em; }
}
