/* Smart Integradores — Inicio v11, después de la portada.
   Todo Inicio es de noche, como la portada: qué hacemos (el corte de una casa que se arma con cada sistema), para quién
   (cinco espacios que se encienden como un dimmer), un proyecto real (Gran Roque) y el cierre, que sube sobre él.
   Luz cálida solo para lo que es luz; LED azul para datos y estados. */

body.page-home {
  --bg: var(--night);
  --fg: var(--on-night);
  --fg-2: var(--on-night-2);
  --fg-3: var(--on-night-3);
  --rule: var(--line-night);
  --panel: var(--night-2);
  color-scheme: dark;
}

/* ---------- 2 · qué hacemos (v12): the drawing and the text side by side from the first screen ---------- */
.que { position: relative; isolation: isolate; padding-block: clamp(40px, 6vh, 80px) clamp(40px, 6vw, 90px); }
.que::before {
  /* the glow of the house we just left, fading into the night */
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: min(70vh, 620px); pointer-events: none;
  background: radial-gradient(60% 70% at 18% 0%, rgba(255, 190, 120, .07), transparent 70%);
}
.que__grid {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); grid-template-areas: "plano col" "sis col";
  column-gap: clamp(36px, 4.5vw, 88px); row-gap: 8px; align-items: center;
}
.que__plano { grid-area: plano; }
.que__sistemas { grid-area: sis; align-self: start; }
.que__col { grid-area: col; }
/* (v14) the systems are keys: the drawing and the keypad side by side on one screen, nothing stays on screen while the
   page goes (Gabriel: "todavía sigue confundiendo esa parte cuando bajas con el mouse") */
.que__plano { position: relative; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
/* the box of the drawing has the shape of the drawing (2:1), so a close view shows only the room it is about */
.que__lienzo { position: relative; align-self: center; width: 100%; aspect-ratio: 1172 / 588; min-height: 0; }
.que__nota { justify-self: end; font-size: .6875rem; letter-spacing: .02em; color: var(--fg-3); }
.que__col { min-width: 0; display: grid; gap: 22px; align-content: center; }
.que__head { display: grid; gap: 18px; }
.que__titulo { font-size: clamp(2.1rem, 1.1rem + 1.9vw, 3.3rem); max-width: 11em; }
.que__head .lead { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); }
.que__pista { display: inline-flex; align-items: center; gap: 12px; margin-top: 2px; font-size: .875rem; color: var(--fg-2); }
.que__pista-linea { position: relative; width: 22px; height: 1px; background: rgba(237, 239, 242, .2); overflow: hidden; }
.que__pista-linea::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: var(--warm); animation: que-pista 2s cubic-bezier(.5, 0, .3, 1) 4; }
@keyframes que-pista { to { left: 100%; } }
/* the keypad: like the one on the wall of the cover, two columns of keys with their light */
.que__teclado { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.que-tecla {
  position: relative; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; min-height: 52px;
  padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(246, 247, 249, .12); background: rgba(246, 247, 249, .035);
  color: var(--fg-2); font: inherit; font-size: .9375rem; font-stretch: 104%; text-align: left; cursor: pointer; overflow: hidden;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.que-tecla:hover { border-color: rgba(246, 247, 249, .32); color: var(--fg); }
.que-tecla:focus-visible { outline: 2px solid var(--led); outline-offset: 2px; }
.que-tecla__led { width: 7px; height: 7px; border-radius: 50%; background: rgba(246, 247, 249, .25); transition: background-color .35s, box-shadow .35s; }
.que-tecla__n { font-size: .6875rem; font-weight: 500; letter-spacing: .12em; color: var(--fg-3); }
.que-tecla__nombre { min-width: 0; line-height: 1.2; }
.que-tecla[aria-selected="true"] { background: rgba(255, 203, 142, .1); border-color: rgba(255, 203, 142, .55); color: var(--fg); }
.que-tecla[aria-selected="true"] .que-tecla__led { background: var(--warm); box-shadow: 0 0 0 4px rgba(255, 203, 142, .18), 0 0 14px var(--warm); }
.que-tecla[aria-selected="true"] .que-tecla__n { color: var(--warm); }
/* while the keys go by themselves, a warm line at the foot of the key on shows the time left */
.que-tecla__tiempo { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; overflow: hidden; opacity: 0; }
.que-tecla__tiempo i { display: block; height: 100%; background: var(--warm); transform: scaleX(0); transform-origin: 0 50%; }
.que.is-solo .que-tecla[aria-selected="true"] .que-tecla__tiempo { opacity: .8; }
.que.is-solo .que-tecla[aria-selected="true"] .que-tecla__tiempo i { animation: que-tiempo var(--que-paso, 5.5s) linear forwards; }
@keyframes que-tiempo { to { transform: scaleX(1); } }
/* the words of the key on: without the script every system is there, one after the other */
.que__sistemas { display: grid; }
.sistema { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; align-items: baseline; column-gap: 18px; row-gap: 10px; padding-block: 16px 4px; border-top: 1px solid var(--rule); }
.sistema > :not(.sistema__n):not(.sistema__nombre) { grid-column: 2; }
.js .que__sistemas .sistema { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s linear .5s; }
.js .que__sistemas .sistema.is-actual { visibility: visible; opacity: 1; transform: none; transition: opacity .6s var(--ease) .1s, transform .7s var(--ease) .1s, visibility 0s; }
html:not(.js) .que__teclado { display: none; }
/* (v14) without the scroll effects (reduced motion, the static preview, the 3.5 s fallback) the keys have no script:
   every system is shown, one after the other, and the keys are not */
html:not(.scrollfx) .que__teclado { display: none; }
html:not(.scrollfx) .que__sistemas .sistema { grid-area: auto; }
.que__link { justify-self: start; }
.sistema__n { font-size: .8125rem; font-weight: 500; font-stretch: 112%; letter-spacing: .12em; color: var(--warm); }
.sistema__nombre { font-family: var(--font-display); font-weight: 290; font-stretch: 118%; font-size: clamp(1.5rem, 1rem + 1.1vw, 2.2rem); letter-spacing: -.03em; line-height: 1.05; }
.sistema__txt { font-size: clamp(.98rem, .94rem + .2vw, 1.125rem); line-height: 1.55; color: var(--fg-2); max-width: 52ch; }
.sistema__marcas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sistema__marcas span {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--rule); font-size: .75rem; font-weight: 500; font-stretch: 118%; letter-spacing: .12em; text-transform: uppercase; color: var(--fg);
}
.sistema__marcas span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--led); box-shadow: 0 0 8px var(--led); }
/* brands used now and then: smaller, no light, in the same line */
.sistema__marcas span.is-sec { height: 24px; padding: 0 9px; font-size: .625rem; letter-spacing: .1em; color: var(--fg-2); border-color: color-mix(in srgb, var(--rule) 70%, transparent); }
.sistema__marcas span.is-sec::before { display: none; }

/* the drawing: an architectural section, thin lines, light where the systems are. While it zooms on a system (site.js
   animates its viewBox) --z keeps lines and labels at the thickness and size of the whole view */
.corte { --z: 1; display: block; width: 100%; height: 100%; max-height: 100%; overflow: hidden; }
.corte text { font-family: var(--font); }
.corte .c-linea { fill: none; stroke: rgba(237, 239, 242, .66); stroke-width: calc(2.4px * var(--z)); stroke-linecap: round; stroke-linejoin: round; }
.corte .c-losa { fill: rgba(237, 239, 242, .045); }
.corte .c-vidrio { stroke: rgba(150, 190, 255, .6); }
.corte .c-fina { fill: none; stroke: rgba(237, 239, 242, .26); stroke-width: calc(1.2px * var(--z)); stroke-linecap: round; }
.corte .c-mueble { stroke: rgba(237, 239, 242, .36); stroke-width: calc(1.5px * var(--z)); }
.corte .c-etq, .corte .c-etq text { fill: rgba(237, 239, 242, .6); font-size: calc(22px * var(--z)); font-weight: 450; letter-spacing: .02em; }
.corte .c-etq--sis { fill: #9FB4FF; font-size: calc(18px * var(--z)); letter-spacing: .1em; text-transform: uppercase; }
/* close to a system the room names step back: the labels on the drawing say what is there */
.corte .c-etq text, .corte text.c-etq { transition: opacity .5s ease; }
.corte.is-cerca .c-etq text, .corte.is-cerca text.c-etq { opacity: 0; }
/* each system: off until its text arrives, then on for good (and off again when scrolling back above it) */
.corte .c-sis { opacity: 0; transition: opacity .9s var(--ease); }
.corte .c-sis.is-on { opacity: 1; }
.corte .c-caja { fill: rgba(237, 239, 242, .07); stroke: rgba(237, 239, 242, .62); stroke-width: calc(1.5px * var(--z)); }
.corte .c-ledpunto { fill: #6F8CFF; }
/* what moves in the drawing moves for the system on screen, a few times, then rests (nothing loops for ever) */
.corte .c-sis.is-actual .c-ledpunto { animation: c-parpadeo 2.6s steps(2, jump-none) infinite; }
.corte .c-ledpunto:nth-of-type(2n) { animation-delay: -.9s !important; }
.corte .c-ledpunto:nth-of-type(3n) { animation-delay: -1.7s !important; }
@keyframes c-parpadeo { 0%, 70% { fill: #9FB4FF; } 71%, 100% { fill: #2F4FC7; } }
.corte .c-teclas rect { fill: rgba(237, 239, 242, .08); stroke: #8FA6FF; stroke-width: calc(1.4px * var(--z)); }
.corte .c-sis.is-actual .c-teclas rect { fill: rgba(143, 166, 255, .28); }
/* the threads of light: they draw from the control centre to every room, then pulses of light run along them */
.corte .c-hilo { fill: none; stroke: rgba(255, 203, 142, .38); stroke-width: calc(2px * var(--z)); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .35, 1); }
.corte .c-sis.is-on .c-hilo { stroke-dashoffset: 0; }
.corte .c-hilo:nth-child(2), .corte .c-hilo:nth-child(3) { transition-delay: .5s; }
.corte .c-hilo:nth-child(4) { transition-delay: .6s; }
.corte .c-hilo:nth-child(5), .corte .c-hilo:nth-child(6) { transition-delay: 1s; }
.corte .c-hilo:nth-child(7) { transition-delay: 1.3s; }
.corte .c-pulso { fill: none; stroke: #FFE9CC; stroke-width: calc(3px * var(--z)); stroke-linecap: round; stroke-dasharray: 2.5 97.5; stroke-dashoffset: 100; opacity: 0; transition: opacity .6s 1.6s; }
.corte .c-sis.is-on .c-pulso { opacity: 1; }
.corte .c-sis.is-actual .c-pulso { animation: c-pulso 2.8s linear infinite; }
.corte .c-pulso:nth-child(2) { animation-delay: -.7s !important; }
.corte .c-pulso:nth-child(3) { animation-delay: -1.4s !important; }
.corte .c-pulso:nth-child(4) { animation-delay: -2.1s !important; }
@keyframes c-pulso { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
/* light and shades */
.corte .c-conos path { fill: url(#c-cono); opacity: 0; transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: opacity .9s var(--ease), transform 1.1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 90ms); }
.corte .c-sis.is-on .c-conos path { opacity: 1; transform: none; }
/* the cinema dims its own lights while the movie plays */
.corte[data-etapa="4"] .c-conos path:nth-child(-n+2) { opacity: .1; transition-delay: 0s; }
.corte .c-lamparas path { fill: none; stroke: rgba(237, 239, 242, .6); stroke-width: calc(3.5px * var(--z)); stroke-linecap: round; transition: stroke .8s; }
.corte .c-sis.is-on .c-lamparas path { stroke: #FFE6C4; }
.corte .c-motor { fill: rgba(237, 239, 242, .16); stroke: rgba(237, 239, 242, .7); stroke-width: calc(1.2px * var(--z)); }
.corte .c-cortina { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform 2.4s cubic-bezier(.65, 0, .35, 1) .4s; }
.corte .c-tela { fill: rgba(236, 214, 186, .3); stroke: rgba(255, 228, 196, .75); stroke-width: calc(1.2px * var(--z)); }
.corte .c-pliegues { fill: none; stroke: rgba(255, 236, 214, .5); stroke-width: calc(1px * var(--z)); }
.corte .c-bajo { fill: none; stroke: #FFE6C4; stroke-width: calc(3px * var(--z)); stroke-linecap: round; }
.corte .c-sis.is-on .c-cortina { transform: scaleY(.86); }
.corte .c-sis.is-actual .c-cortina { animation: c-cortina 5s ease-in-out 2.8s infinite; }
@keyframes c-cortina { 0%, 100% { transform: scaleY(.86); } 50% { transform: scaleY(.62); } }
/* the pool: water with a light in its wall, a surface that shines and light that moves on the bottom */
.corte .c-agua { fill: url(#c-agua); }
.corte .c-luz-agua { opacity: 0; transition: opacity 1.2s var(--ease) .5s; }
.corte .c-sis.is-on .c-luz-agua { opacity: 1; }
.corte .c-caustica { fill: none; stroke: rgba(210, 245, 255, .55); stroke-width: calc(1.1px * var(--z)); opacity: 0; transition: opacity 1s .8s; }
.corte .c-sis.is-on .c-caustica { opacity: 1; }
.corte .c-sis.is-actual .c-caustica { animation: c-caustica 2.6s linear infinite; }
@keyframes c-caustica { to { transform: translateX(16px); } }
.corte .c-superficie { fill: none; stroke: rgba(190, 240, 255, .85); stroke-width: calc(1.4px * var(--z)); stroke-linecap: round; }
.corte .c-sis.is-actual .c-superficie { animation: c-brilla 1.8s ease-in-out infinite alternate; }
@keyframes c-brilla { from { opacity: .45; } to { opacity: 1; } }
.corte .c-foco-agua { fill: #E8FBFF; }
.corte .c-sis.is-actual .c-luz-agua { animation: c-brilla 3.2s ease-in-out infinite alternate; }
/* sound: rings open from each speaker */
.corte .c-corneta { fill: #2A2F3A; stroke: #FFE6C4; stroke-width: calc(1.3px * var(--z)); }
.corte .c-rejilla { fill: none; stroke: #FFCB8E; stroke-width: calc(1.3px * var(--z)); stroke-linecap: round; }
.corte .c-onda { fill: none; stroke: #FFCB8E; stroke-width: calc(1.6px * var(--z)); stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 0; transform: scale(.15); opacity: 0; }
.corte .c-sis.is-actual .c-onda { animation: c-onda 2.4s cubic-bezier(.2, .6, .35, 1) infinite; animation-delay: calc(var(--i) * -.8s); }
@keyframes c-onda { from { transform: scale(.15); opacity: .95; } to { transform: scale(1); opacity: 0; } }
/* video */
.corte .c-haz { fill: url(#c-haz); }
.corte .c-pantalla { fill: #16213F; stroke: rgba(170, 200, 255, .8); stroke-width: calc(1.6px * var(--z)); }
.corte .c-sis.is-on .c-pantalla { fill: #2F52B8; filter: drop-shadow(0 0 10px rgba(110, 150, 255, .55)); }
.corte .c-sis.is-actual .c-pantalla { animation: c-pelicula 5.2s steps(1, end) infinite; }
.corte .c-butaca { fill: #0B111D; stroke: rgba(237, 239, 242, .6); }
.corte .c-pantalla--b { animation-delay: -2.1s !important; }
@keyframes c-pelicula { 0% { fill: #3E66D6; } 14% { fill: #6E9BFF; } 27% { fill: #2F4FB8; } 41% { fill: #9FC3FF; } 52% { fill: #4474E6; } 66% { fill: #88B0FF; } 80% { fill: #3558C9; } 100% { fill: #3E66D6; } }
.corte .c-pantalla--r { fill: #1A2B52; }
.corte .c-sis.is-on .c-pantalla--r { animation: none; fill: #2A4C96; }
.corte .c-mosaico { stroke: rgba(10, 16, 30, .9); stroke-width: calc(2px * var(--z)); }
/* climate */
.corte .c-aire { fill: none; stroke: rgba(150, 195, 255, .75); stroke-width: calc(1.8px * var(--z)); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2s var(--ease) .3s; }
.corte .c-sis.is-on .c-aire { stroke-dashoffset: 0; }
.corte .c-split { fill: #DCE4F2; stroke: rgba(255, 255, 255, .85); stroke-width: calc(1.2px * var(--z)); }
.corte .c-split + .c-rejilla { stroke: #7F93B8; }
.corte .c-sis.is-actual .c-aire { stroke-dasharray: 9 11; stroke-dashoffset: 0; opacity: calc(.45 + .55 * var(--frio, .5)); animation: c-aire-flujo calc(1.6s - .8s * var(--frio, .5)) linear infinite; }
@keyframes c-aire-flujo { to { stroke-dashoffset: -40; } }
@keyframes c-aire { from { opacity: 1; } to { opacity: .35; } }
.corte .c-termo { fill: rgba(150, 195, 255, .1); stroke: rgba(150, 195, 255, .9); stroke-width: calc(1.5px * var(--z)); }
.corte .c-grados { fill: #CFE0FF; font-size: 11px; font-weight: 500; }
/* network */
.corte .c-ap { fill: #DDE6FF; }
.corte .c-wifi { fill: none; stroke: #8FA6FF; stroke-width: calc(1.8px * var(--z)); stroke-linecap: round; opacity: .15; }
.corte .c-sis.is-on .c-wifi { opacity: .6; }
.corte .c-sis.is-actual .c-wifi { animation: c-wifi 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * .22s); }
@keyframes c-wifi { 0%, 100% { opacity: .15; } 40% { opacity: 1; } }

/* the labels on the drawing: the same callouts as the cover (a point with its halo, a thin line and the label) */
.que__chips { position: absolute; inset: 0; pointer-events: none; }
.que-chip {
  position: absolute; left: 0; top: 0; width: 0; height: 0; margin: 0; opacity: 0; visibility: hidden;
  color: #F6F7F9; font-size: .8125rem; font-stretch: 106%; line-height: 1.3; white-space: nowrap;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.que-chip.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease .35s, visibility 0s; }
.que-chip__punto { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #FFF6EA; box-shadow: 0 0 0 4px rgba(255, 203, 142, .28), 0 0 18px rgba(255, 203, 142, .9); }
.que-chip__punto::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255, 220, 180, .7); opacity: 0; }
.que-chip.is-on .que-chip__punto::after { animation: llamada-halo 2.4s cubic-bezier(.2, .6, .3, 1) .4s 3; }
.que-chip__txt {
  position: absolute; left: 20px; bottom: 20px; padding: 7px 11px 8px; border-radius: 10px;
  background: rgba(8, 10, 14, .62); border: 1px solid rgba(246, 247, 249, .16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: rgba(246, 247, 249, .9);
  transform: translateY(6px); transition: transform .6s var(--ease) .35s;
}
.que-chip.is-on .que-chip__txt { transform: none; }
.que-chip__txt b { font-weight: 500; color: #F6F7F9; font-variant-numeric: tabular-nums; }
.que-chip::before {
  content: ""; position: absolute; left: 4px; bottom: 4px; width: 20px; height: 1px; background: rgba(246, 247, 249, .55);
  transform-origin: 0 50%; transform: rotate(-45deg);
}
.que-chip.is-izq .que-chip__txt { left: auto; right: 20px; }
.que-chip.is-izq::before { left: auto; right: 4px; transform-origin: 100% 50%; transform: rotate(45deg); }
.que-chip.is-abajo .que-chip__txt { bottom: auto; top: 20px; }
.que-chip.is-abajo::before { bottom: auto; top: 4px; transform: rotate(45deg); }
.que-chip.is-abajo.is-izq::before { transform: rotate(-45deg); }
.que-chip.sin-txt .que-chip__txt, .que-chip.sin-txt::before { visibility: hidden; }
@keyframes llamada-halo { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* without scroll effects (reduced motion, previews that grow to the page height) every system is simply on */
html:not(.scrollfx) .corte .c-sis { opacity: 1; }
html:not(.scrollfx) .corte .c-hilo, html:not(.scrollfx) .corte .c-aire { stroke-dashoffset: 0; }
html:not(.scrollfx) .corte .c-cortina { transform: scaleY(.58); }
html:not(.scrollfx) .corte .c-conos path { opacity: 1; }
html:not(.scrollfx) .corte .c-lamparas path { stroke: #FFE6C4; }
html:not(.scrollfx) .corte .c-wifi { opacity: .6; }
html:not(.scrollfx) .corte .c-cortina { transform: scaleY(.86); }
html:not(.scrollfx) .corte .c-luz-agua, html:not(.scrollfx) .corte .c-caustica { opacity: 1; }
html:not(.scrollfx) .que__chips { display: none; }
/* nothing moves while the section is off screen */
.que:not(.is-vivo) .corte * { animation-play-state: paused !important; }
/* the house draws itself as the section comes in (set by site.js); without scroll effects it is simply there */
.scrollfx .corte .c-casa .c-linea { stroke-dasharray: 100; }

/* tablets and phones: the drawing stays on top of the screen, the title and the systems scroll under it */
@media (max-width: 1023px) {
  .que { padding-top: 12px; }
  .que__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .que__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 22px; }
  .que__plano, .que__sistemas, .que__col { grid-area: auto; }
  .que__plano { order: 2; }
  .que__col { display: contents; }
  .que__head { order: 1; }
  .que__teclado { order: 3; }
  .que__sistemas { order: 4; }
  .que__link { order: 5; }
  .sistema { grid-template-columns: minmax(0, 1fr); }
  .sistema > :not(.sistema__n):not(.sistema__nombre) { grid-column: auto; }
  .que__lienzo { aspect-ratio: 17 / 10; }
  .corte { height: 100%; }
  .que__titulo { font-size: clamp(2rem, 1.2rem + 3.4vw, 3rem); }
  .que-chip { font-size: .75rem; }
  .que-chip__txt { padding: 5px 9px 6px; left: 16px; bottom: 16px; }
  .que-chip.is-izq .que-chip__txt { right: 16px; }
  .que-chip.is-abajo .que-chip__txt { top: 16px; }
  .que-chip::before { width: 16px; }
}
@media (max-width: 560px) {
  .que__nota { display: none; }
  .corte .c-etq--sis { font-size: calc(20px * var(--z)); }
  .corte .c-linea { stroke-width: calc(2.6px * var(--z)); }
}

/* ---------- 3 · para quién: the row on screen lights up like a dimmer ---------- */
.para { padding-block: clamp(90px, 11vw, 180px); }
.para__head { display: grid; gap: 24px; margin-bottom: clamp(36px, 5vw, 72px); }
.para__lista { border-top: 1px solid var(--rule); }
.para__fila a {
  position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 20rem) 2.75rem; align-items: center; gap: 12px 28px;
  padding-block: clamp(20px, 2.4vw, 34px); border-bottom: 1px solid var(--rule); color: var(--fg); text-decoration: none;
}
.para__fila a::after {
  /* a warm line of light runs under the row that is lit */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(255, 203, 142, 0), var(--warm) 40%, rgba(255, 203, 142, 0));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease);
}
/* each space is a key of the keypad: its LED lights with the row */
.para__led { justify-self: start; width: 8px; height: 8px; border-radius: 50%; background: rgba(237, 239, 242, .2); transition: background-color .6s, box-shadow .6s; }
.para__nombre {
  font-family: var(--font-display); font-weight: 260; font-stretch: 124%; font-size: clamp(2.2rem, .9rem + 4.4vw, 6.2rem);
  letter-spacing: -.05em; line-height: 1.02; color: var(--fg); opacity: .2; transition: opacity .8s var(--ease), text-shadow .8s var(--ease);
}
.para__txt { font-size: .96875rem; line-height: 1.55; color: var(--fg-2); opacity: .25; transition: opacity .8s var(--ease); }
.para__ir { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); opacity: .3; transition: opacity .6s, border-color .6s, transform .6s var(--ease); }
.para__ir .icon { width: 18px; height: 18px; }
.para__fila.is-luz .para__nombre { opacity: 1; text-shadow: 0 0 42px rgba(255, 203, 142, .28); }
.para__fila.is-luz .para__txt { opacity: 1; }
.para__fila.is-luz .para__led { background: var(--warm); box-shadow: 0 0 0 5px rgba(255, 203, 142, .16), 0 0 16px var(--warm); }
.para__fila.is-luz .para__ir { opacity: 1; border-color: rgba(255, 203, 142, .5); }
.para__fila.is-luz a::after { transform: scaleX(1); }
@media (hover: hover) {
  .para__fila a:hover .para__nombre { opacity: 1; }
  .para__fila a:hover .para__txt, .para__fila a:hover .para__ir { opacity: 1; }
  .para__fila a:hover .para__ir { transform: translateX(6px); border-color: var(--fg); }
}
.para__fila a:focus-visible { outline-offset: 6px; border-radius: 6px; }
.para__fila a:focus-visible .para__nombre, .para__fila a:focus-visible .para__txt, .para__fila a:focus-visible .para__ir { opacity: 1; }
html:not(.scrollfx) .para__nombre, html:not(.scrollfx) .para__txt, html:not(.scrollfx) .para__ir { opacity: 1; }
@media (max-width: 900px) {
  .para__fila a { grid-template-columns: 1.5rem minmax(0, 1fr) 44px; }
  .para__txt { grid-column: 2 / 3; grid-row: 2; }
}

/* ---------- 4 · proyecto real (v13.1): a crane shot. The photo fills the screen and stays while the camera rises
   slowly from the beach to the terrace and opens a little (site.js moves --py and --zoom with the scroll); the title
   rises line by line and the sheet of the project draws itself row by row. No lights here: the light belongs to the
   cover (Gabriel, 30/09). Without scroll effects the photo is simply there. ---------- */
.proyecto { position: relative; }
.proyecto__escena { position: relative; display: grid; align-items: end; min-height: 100svh; overflow: hidden; isolation: isolate; background: #05070B; }
.proyecto__foto { position: absolute; inset: 0; z-index: -1; margin: 0; --py: 52%; --zoom: 1; }
.proyecto__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--py); transform: scale(var(--zoom)); transform-origin: 50% 50%; }
.proyecto__foto::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 7, 11, .9) 0%, rgba(5, 7, 11, .62) 30%, rgba(5, 7, 11, 0) 60%), linear-gradient(0deg, rgba(5, 7, 11, .82) 0%, rgba(5, 7, 11, 0) 40%), linear-gradient(180deg, rgba(5, 7, 11, .55) 0%, rgba(5, 7, 11, 0) 22%);
}
.proyecto__foto figcaption { position: absolute; right: var(--gutter); bottom: 16px; z-index: 4; max-width: 18rem; font-size: .6875rem; line-height: 1.4; text-align: right; color: rgba(246, 247, 249, .6); }
.proyecto__texto { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: start; padding-block: calc(var(--header-h) + 6vh) clamp(56px, 10vh, 120px); }
.proyecto__texto > * { max-width: min(100%, 34rem); }
.proyecto__texto .title { max-width: 11em; }
.ficha { width: 100%; border-top: 1px solid var(--rule); }
.ficha div { position: relative; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.ficha dt { font-size: .8125rem; color: var(--fg-3); padding-top: 2px; }
.ficha dd { font-size: .96875rem; color: var(--fg); }
@media (max-width: 720px) {
  .proyecto__foto::after { background: linear-gradient(0deg, rgba(5, 7, 11, .95) 0%, rgba(5, 7, 11, .7) 38%, rgba(5, 7, 11, 0) 70%), linear-gradient(180deg, rgba(5, 7, 11, .5) 0%, rgba(5, 7, 11, 0) 20%); }
  .proyecto__foto figcaption { top: calc(var(--header-h) + 10px); bottom: auto; }
  .proyecto__texto { gap: 16px; padding-bottom: 40px; }
  .ficha div { grid-template-columns: 5.5rem minmax(0, 1fr); padding-block: 9px; }
}
/* (v14, option B chosen by Gabriel on 01/10/2026: "sin pausa") the page never stops here: the photo comes up in a frame
   that opens while it rises, and inside it the camera climbs from the beach to the terrace at the pace of the scroll */
.scrollfx .proyecto__escena { min-height: max(560px, 100svh); }
.scrollfx .proyecto__foto { clip-path: inset(var(--cy, 0%) var(--cx, 0%) round var(--cr, 0px)); }
.scrollfx .proyecto__foto img.is-grua { inset: auto; left: 0; top: 0; max-width: none; object-fit: fill; object-position: 50% 50%; transform-origin: 50% 50%; will-change: transform; }
/* the sheet: each row slides in and its line draws from left to right, one after the other (and leaves when the
   scene goes away, both ways) */
.motion .ficha { border-top-color: transparent; }
.motion .ficha div { border-bottom-color: transparent; }
.motion .ficha div::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: rgba(246, 247, 249, .26); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease) calc(.15s + var(--i) * .16s); }
.motion .ficha div:first-child::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: rgba(246, 247, 249, .26); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease) .05s; }
.motion .ficha div > * { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .6s ease calc(.3s + var(--i) * .16s), transform .8s var(--ease) calc(.3s + var(--i) * .16s); }
.motion .ficha.is-vista div::after, .motion .ficha.is-vista div:first-child::before { transform: scaleX(1); }
.motion .ficha.is-vista div > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .motion .ficha div::after, .motion .ficha div > * { transition: none; } }

/* ---------- 5 · cierre (v13): the house of the cover, dark; its systems light up one by one as it comes up ---------- */
.page-home .cta--casa { min-height: 100svh; display: grid; align-items: center; }
.cta--casa .cta__media { overflow: hidden; }
.cta--casa .cta__media > picture { position: absolute; inset: 0; display: block; }
.cta--casa .cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta--casa .cta__zona { opacity: 1; }
.scrollfx .cta--casa .cta__zona { opacity: 0; }
.page-home .cta::after { background: linear-gradient(90deg, rgba(4, 6, 10, .86), rgba(4, 6, 10, .45) 62%, rgba(4, 6, 10, .25)), linear-gradient(0deg, rgba(4, 6, 10, .7), transparent 45%), linear-gradient(180deg, rgba(4, 6, 10, .7), transparent 28%); }
.cta__nota { position: absolute; right: var(--gutter); bottom: 16px; z-index: 1; font-size: .6875rem; letter-spacing: .02em; color: rgba(246, 247, 249, .55); }
/* the five systems, like the keys of the cover: each LED lights with its zone */
.cta__zonas { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; font-size: .8125rem; letter-spacing: .02em; color: rgba(246, 247, 249, .5); }
.cta__zonas li { display: inline-flex; align-items: center; gap: 8px; transition: color .5s var(--ease); }
.cta__zonas li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(246, 247, 249, .25); transition: background-color .5s var(--ease), box-shadow .5s var(--ease); }
.cta__zonas li.is-on { color: rgba(246, 247, 249, .9); }
.cta__zonas li.is-on::before { background: var(--warm); box-shadow: 0 0 0 4px rgba(255, 203, 142, .16), 0 0 10px var(--warm); }
html:not(.scrollfx) .cta__zonas li::before { background: var(--warm); }

/* ---------- teléfono: botón fijo de consulta ---------- */
.consulta-fija { display: none; }
@media (max-width: 720px) {
  .consulta-fija {
    display: inline-flex; align-items: center; gap: 10px; position: fixed; z-index: 60;
    left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    height: 50px; padding: 0 22px; border-radius: var(--r-pill);
    background: #F6F7F9; color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
    transform: translate(-50%, 160%); visibility: hidden;
    transition: transform .55s var(--ease), visibility 0s linear .55s;
  }
  .consulta-fija .btn__led { width: 6px; height: 6px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 4px var(--led-soft), 0 0 12px var(--led); }
  .consulta-fija.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .55s var(--ease), visibility 0s; }
  html.menu-lock .consulta-fija { transform: translate(-50%, 160%); visibility: hidden; }
}

/* ---------- movimiento (solo con scroll animado) ---------- */
@media (prefers-reduced-motion: reduce) {
  .corte * { animation: none !important; transition: none !important; }
  .corte .c-hilo, .corte .c-aire { stroke-dashoffset: 0; }
  .corte .c-cortina { transform: scaleY(.86); }
  .corte .c-conos path { transform: none; }
  .que__pista-linea::after, .que-chip.is-on .que-chip__punto::after { animation: none; }
}

/* the thermostat of the drawing: a label with two keys (it shows only in the climate step) */
.que-chip--termo { pointer-events: auto; }
.que-chip--termo .que-chip__txt { display: inline-flex; align-items: center; gap: 8px; }
.que-termo__btn {
  display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(246, 247, 249, .4); background: rgba(246, 247, 249, .06); color: #F6F7F9; font: inherit; font-size: 1rem; line-height: 1;
  transition: background-color .2s, border-color .2s;
}
.que-termo__btn:hover { background: rgba(246, 247, 249, .16); border-color: #F6F7F9; }
.que-termo__btn:focus-visible { outline: 2px solid var(--led); outline-offset: 2px; }
.que-termo__btn:disabled { opacity: .35; cursor: default; }
/* the audio step can be heard */
.sistema__escuchar { justify-self: start; display: inline-flex; align-items: center; gap: 9px; height: 36px; margin-top: 6px; padding: 0 15px; border-radius: var(--r-pill); border: 1px solid rgba(246, 247, 249, .3); background: rgba(246, 247, 249, .04); color: #F6F7F9; font: inherit; font-size: .8125rem; cursor: pointer; transition: border-color .3s, background-color .3s; }
.sistema__escuchar:hover { border-color: #F6F7F9; }
.sistema__escuchar[aria-pressed="true"] { border-color: rgba(255, 203, 142, .7); background: rgba(255, 203, 142, .12); }
.sistema__escuchar .eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 13px; height: 12px; }
.sistema__escuchar .eq i { flex: 1; height: 45%; background: currentColor; border-radius: 1px; }
.sistema__escuchar .eq i:nth-child(2) { height: 90%; }
.sistema__escuchar .eq i:nth-child(3) { height: 62%; }
.sistema__escuchar[aria-pressed="true"] .eq i { animation: luz-eq .9s ease-in-out infinite alternate; }
.sistema__escuchar-on, .sistema__escuchar[aria-pressed="true"] .sistema__escuchar-off { display: none; }
.sistema__escuchar[aria-pressed="true"] .sistema__escuchar-on { display: inline; }


/* the guide of "Qué hacemos" (v13): at the foot of the drawing, left of its note */
.que__plano .guia { position: absolute; left: 0; bottom: 0; right: 150px; }
@media (max-width: 1023px) {
  .que__plano .guia { position: static; grid-row: 2; justify-self: start; max-width: 100%; }
  .que__plano .que__nota { grid-row: 2; align-self: center; }
}
