/* 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 (v15): «el sistema nervioso de la casa» ----------
   Gabriel 01/10/2026: "integramos cada sistema en un mismo control... mejorarlo muchísimo, más lujoso... muy tecnológico,
   que funcione con la ruedita, con el mouse, con el dedo, en todos los tamaños". A scene that stays while the page goes
   down (one gesture = one system, site.js): the house in section, drawn in light, fills the screen; its control centre is
   its heart. The panel says what each system is; the rail, like a dimmer, says where you are and takes you anywhere.
   Without the scroll effects (reduced motion, the 3.5 s fallback, previews that grow to the page) it is a still page:
   the whole house with every system on and the eight systems one after the other. */
.que { position: relative; isolation: isolate; --que-tramo: 72svh; }
.que__escena { position: relative; }
.que__fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* a blueprint grid, very faint, that drifts slower than the house (depth); a warm glow where the heart is */
.que__reja {
  position: absolute; inset: -12%; opacity: .9;
  background-image:
    linear-gradient(rgba(140, 170, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 170, 255, .055) 1px, transparent 1px),
    linear-gradient(rgba(140, 170, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 170, 255, .028) 1px, transparent 1px);
  background-size: 240px 240px, 240px 240px, 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000 30%, transparent 85%); mask-image: radial-gradient(70% 70% at 60% 50%, #000 30%, transparent 85%);
  transform: translate3d(var(--que-rx, 0px), var(--que-ry, 0px), 0);
}
.que__brillo {
  position: absolute; left: var(--que-hx, 60%); top: var(--que-hy, 70%); width: 80vmin; height: 80vmin; margin: -40vmin 0 0 -40vmin; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 190, 120, .16), rgba(255, 190, 120, .05) 45%, transparent 75%);
  opacity: calc(.35 + .65 * var(--que-todo, 0)); transform: scale(calc(.8 + .5 * var(--que-todo, 0)));
}
.que__plano { margin: 0; }
.que__lienzo { position: relative; }
.que__nota { font-size: .6875rem; letter-spacing: .02em; color: var(--fg-3); }

/* the panel: the words of each system, like the screen of a control system */
.que__head { display: grid; gap: 18px; align-content: center; }
.que__titulo { font-size: clamp(2.2rem, 1.1rem + 2.6vw, 4.1rem); max-width: 10.5em; text-wrap: balance; }
.que__lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 40ch; }
.que__pista { display: inline-flex; align-items: center; gap: 14px; margin-top: 6px; font-size: .875rem; color: var(--fg-2); }
.que__pista-raya { position: relative; flex: none; width: 1px; height: 30px; background: rgba(237, 239, 242, .18); overflow: hidden; border-radius: 1px; }
.que__pista-raya::after { content: ""; position: absolute; left: -1px; top: -40%; width: 3px; height: 40%; border-radius: 2px; background: var(--warm); box-shadow: 0 0 10px var(--warm); animation: que-raya 1.9s cubic-bezier(.5, 0, .3, 1) infinite; }
@keyframes que-raya { to { top: 100%; } }
.que__pista-dedo { display: none; }
@media (hover: none), (pointer: coarse) { .que__pista-pc { display: none; } .que__pista-dedo { display: inline; } }
/* the hint goes once the visitor has made the first step (it does not come back in this visit) */
.que.ya-sabe .que__pista { visibility: hidden; }
/* before the first system the rail is not there (not even for the keyboard's focus) */
.que.sin-riel .que__riel { visibility: hidden; }
.que__resumen { margin: 0; font-size: .8125rem; font-weight: 500; font-stretch: 108%; letter-spacing: .015em; color: var(--fg-3); }

.que__sistemas { display: grid; }
.sistema { display: grid; align-content: start; gap: 14px; min-width: 0; }
.sistema__n { display: flex; align-items: baseline; gap: 12px; margin: 0; font-size: clamp(2.6rem, 1.6rem + 2.6vw, 4.6rem); font-weight: 200; font-stretch: 125%; letter-spacing: -.045em; line-height: .9; color: #F6F7F9; font-variant-numeric: tabular-nums; }
.sistema__led { flex: none; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 5px rgba(255, 203, 142, .16), 0 0 18px var(--warm); }
.sistema__de { font-size: .2em; font-weight: 500; font-stretch: 112%; letter-spacing: .12em; color: var(--fg-3); }
.sistema__nombre { font-family: var(--font-display); font-weight: 290; font-stretch: 118%; font-size: clamp(1.8rem, 1.1rem + 1.7vw, 3rem); letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
.sistema__txt { margin: 0; font-size: clamp(.98rem, .94rem + .2vw, 1.1rem); line-height: 1.55; color: var(--fg-2); max-width: 44ch; }
/* a state of example, like the readings of a keypad (the drawing is illustrative, and so is this) */
.sistema__estado { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sistema__estado li {
  display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 13px 0 11px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 203, 142, .3); background: linear-gradient(180deg, rgba(255, 203, 142, .1), rgba(255, 203, 142, .03));
  font-size: .8125rem; font-stretch: 104%; color: #F6F7F9; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sistema__estado li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5CFFB0; box-shadow: 0 0 10px rgba(92, 255, 176, .8); }
.sistema__marcas { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.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: .6875rem; 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 end: seven systems, one control */
.sistema__cifras { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin: 4px 0 0; font-size: .9375rem; color: var(--fg-2); }
.sistema__cifras b { display: block; font-size: clamp(2.4rem, 1.6rem + 2vw, 3.6rem); font-weight: 200; font-stretch: 125%; letter-spacing: -.04em; line-height: 1; color: #FFE3BE; }
.sistema__igual { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--warm), transparent); box-shadow: 0 0 10px var(--warm); }

/* the rail: a dimmer with a notch for each system */

/* 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, .8); 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; }
.corte text.fuera, .corte .c-etq text.fuera { opacity: 0; transition: none; }
/* 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; }
/* (v15) the pulses of the control centre are the network of light now (site.js): these older ones stay out */
.corte .c-pulso { display: none; 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; } }

/* (v15) the rooms glow while a system works in them; the heart beats; the pulses of light; the wave of the end */
.corte .c-cuartos rect { fill: url(#c-cuarto); opacity: 0; transition: opacity 1.1s var(--ease); }
.corte .c-cuartos rect.is-on { opacity: 1; }
.corte .c-corazon { opacity: .35; transform-box: fill-box; transform-origin: center; }
.corte .c-imagen, .corte .c-dunas, .corte .c-llamada { opacity: 0; transition: opacity 1.2s var(--ease) .5s; }
.corte .c-sis.is-on .c-imagen, .corte .c-sis.is-on .c-dunas, .corte .c-sis.is-on .c-llamada { opacity: 1; }
.corte .c-dunas { fill: rgba(122, 63, 28, .55); }
.corte .c-sis.is-actual .c-imagen--cine { animation: c-cine-luz 6s ease-in-out infinite alternate; }
@keyframes c-cine-luz { from { opacity: .82; } to { opacity: 1; } }
.corte .c-llamada rect { fill: url(#c-img-reunion); stroke: rgba(170, 200, 255, .35); stroke-width: calc(1px * var(--z)); }
.corte .c-llamada circle { fill: rgba(220, 230, 255, .55); }
.corte .c-llamada path { fill: none; stroke: rgba(220, 230, 255, .5); stroke-width: calc(2px * var(--z)); }
.corte .c-red path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.corte .c-red .c-traza { stroke: rgba(255, 203, 142, .5); stroke-width: 1.4px; }
.corte .c-red .c-flujo-halo { stroke: rgba(255, 190, 120, .34); stroke-width: 9px; }
.corte .c-red .c-flujo { stroke: #FFF4E6; stroke-width: 2.6px; }
.corte .c-red .c-nodo { fill: none; stroke: #FFE3BE; stroke-width: 1.4px; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.corte .c-ola { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.02); }
.corte .c-ola circle { fill: none; vector-effect: non-scaling-stroke; }
.corte .c-ola-linea { stroke: rgba(255, 226, 186, .8); stroke-width: 1.6px; }
.corte .c-ola-halo { stroke: rgba(255, 190, 120, .16); stroke-width: 14px; }
/* arriving, the control centre is already there, quiet, and the heart of the house beats slowly, waiting */
.que.is-llegada .corte .c-sis[data-g="1"] { opacity: .5; }
.que.is-llegada .corte .c-sis[data-g="1"] .c-teclas, .que.is-llegada .corte .c-sis[data-g="1"] .c-pulsos { opacity: 0; }
.que.is-llegada .corte .c-corazon { animation: c-late 2.6s ease-in-out infinite; }
@keyframes c-late { 0%, 100% { opacity: .3; transform: scale(.94); } 18% { opacity: .75; transform: scale(1.04); } 40% { opacity: .38; transform: scale(.97); } }

/* 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; } }

/* the scene that stays (only with the scroll effects) ---------------------------------------------------------------- */
.scrollfx .que { height: calc(100svh - var(--header-alto) + 8 * var(--que-tramo)); }
.scrollfx .que__escena { position: sticky; top: var(--header-alto); height: calc(100svh - var(--header-alto)); overflow: hidden; }
.scrollfx .que__plano, .scrollfx .que__lienzo { position: absolute; inset: 0; }
.scrollfx .corte { width: 100%; height: 100%; }
.scrollfx .que__nota { position: absolute; z-index: 3; left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); bottom: clamp(14px, 2.6vh, 30px); }
/* (the drawing's frame: outside it the night covers the drawing softly, under the words and the rail; a plain overlay,
   lighter to paint than a mask while the camera moves) */
/* the words sit on a soft night that keeps the drawing behind them quiet */
.scrollfx .que__escena::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  --n: rgba(5, 7, 11, .97);
  background:
    linear-gradient(90deg, var(--n) calc(var(--que-mx0, 40%) - 170px), transparent calc(var(--que-mx0, 40%) - 6px)),
    linear-gradient(270deg, var(--n) calc(var(--que-mx1d, 0px) - 70px), transparent calc(var(--que-mx1d, 0px) + 10px)),
    linear-gradient(180deg, var(--n) calc(var(--que-my0, 0px) - 34px), transparent calc(var(--que-my0, 0px) + 4px)),
    linear-gradient(0deg, var(--n) calc(var(--que-my1d, 0px) - 30px), transparent calc(var(--que-my1d, 0px) + 18px));
}
.scrollfx .que__panel {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  width: clamp(330px, 30vw, 470px); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 18px; padding-block: clamp(22px, 5vh, 56px);
}
.scrollfx .que__panel > .que__head { grid-area: 1 / 1 / 3 / 2; }
.scrollfx .que__resumen { grid-area: 1 / 1; }
.scrollfx .que__sistemas { grid-area: 2 / 1; align-content: center; }
.scrollfx .que__sistemas .sistema { grid-area: 1 / 1; }
/* what is not on screen does not take a click or the focus (site.js gives each part its opacity) */
.scrollfx .que__head, .scrollfx .que__resumen, .scrollfx .que__sistemas .sistema { opacity: 0; visibility: hidden; will-change: opacity, transform; }
.scrollfx .que .is-vis { visibility: visible; }
.scrollfx .que__chips, .scrollfx .que-chip--termo { z-index: 2; }
/* the rail: the shared rail of steps (site.css .rp) along the foot of the scene, right of the words; it appears with the
   first system */
.scrollfx .que__riel { position: absolute; z-index: 3; left: var(--que-riel-x, 50%); right: calc(var(--gutter) + 78px); bottom: clamp(14px, 2.6vh, 30px); opacity: var(--que-riel-op, 0); transition: opacity .5s var(--ease); }
/* (v15.1) "Omitir": past the eight systems in one glide; right of the rail, on the numbers' line; from the arrival until
   the last system, when going down already frees the page */
.que__omitir { color: rgba(246, 247, 249, .74); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(246, 247, 249, .3); font-size: .875rem; line-height: 1; }
.que__omitir:hover { color: #F6F7F9; text-decoration-color: currentColor; }
.scrollfx .que__omitir { position: absolute; z-index: 4; right: var(--gutter); bottom: calc(clamp(14px, 2.6vh, 30px) + 7px); opacity: var(--que-omitir-op, 0); transition: opacity .5s var(--ease); }
.que.sin-omitir .que__omitir { visibility: hidden; }

/* phones and upright tablets: the house on top, the words in a sheet under it, the rail as eight segments between them */
@media (max-width: 767px), (max-aspect-ratio: 1/1) {

  .scrollfx .que__panel { top: auto; left: var(--gutter); right: var(--gutter); width: auto; padding-block: 0 max(18px, env(safe-area-inset-bottom, 0px)); grid-template-rows: auto auto; gap: 10px; }
  .scrollfx .que__panel > .que__head { grid-area: 1 / 1 / 3 / 2; align-content: end; }
  .scrollfx .que__sistemas { align-content: end; }
  .scrollfx .que__resumen { display: none; }
  .que__titulo { font-size: clamp(2rem, 1.1rem + 4.2vw, 3rem); }
  .sistema { gap: 10px; }
  .sistema__n { font-size: clamp(2.2rem, 1.4rem + 4vw, 3.2rem); }
  .sistema__nombre { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.3rem); }
  .sistema__txt { font-size: .9375rem; line-height: 1.5; }
  .sistema__estado li { height: 28px; font-size: .75rem; padding: 0 11px 0 9px; }
  .scrollfx .que__nota { display: none; }
  /* the rail as segments (site.js sets rp--seg) between the house and the sheet */
  .scrollfx .que__riel { left: var(--gutter); right: var(--gutter); bottom: calc(var(--que-panel-h, 50%) + 12px); }
  /* "Omitir" at the top right, over the house's sky */
  .scrollfx .que__omitir { right: var(--gutter); bottom: auto; top: 14px; }
}
@media (max-width: 767px) and (max-height: 700px), (max-aspect-ratio: 1/1) and (max-height: 700px) {
  .sistema__txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sistema__marcas span.is-sec { display: none; }
  /* a short phone keeps the house in sight: the arrival says the title (its lead is still read by screen readers) */
  .scrollfx .que__lead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .scrollfx .que__titulo { font-size: clamp(1.75rem, 1.1rem + 3.4vw, 2.3rem); }
}
/* phones turned sideways and low windows: less of everything */
@media (min-aspect-ratio: 1/1) and (max-height: 560px) {
  .scrollfx .que__panel { padding-block: 14px; width: clamp(280px, 38vw, 420px); }
  .sistema__n { font-size: 2rem; }
  .sistema__nombre { font-size: 1.5rem; }
  .sistema__txt { font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sistema__marcas, .que__lead { display: none; }
  .que__titulo { font-size: 1.9rem; }
  .scrollfx .que__riel { height: 40px; }
  .scrollfx .que__riel .rp__actual { display: none; }
  /* (v15.1) the drawing's note would sit on the words (as on upright phones, it goes) */
  .scrollfx .que__nota { display: none; }
}

/* without the scroll effects: a still page (the whole house, every system on, the eight systems one after the other) */
html:not(.scrollfx) .que { padding-block: clamp(40px, 6vh, 80px); }
html:not(.scrollfx) .que__escena { display: grid; gap: 28px; width: min(100% - 2 * var(--gutter), var(--maxw) - 2 * var(--gutter)); margin-inline: auto; }
html:not(.scrollfx) .que__plano { display: grid; gap: 10px; }
html:not(.scrollfx) .que__lienzo { aspect-ratio: 1172 / 588; }
html:not(.scrollfx) .que__nota { justify-self: end; }
html:not(.scrollfx) .que__panel { display: contents; }
html:not(.scrollfx) .que__head { order: 1; }
html:not(.scrollfx) .que__plano { order: 2; }
html:not(.scrollfx) .que__sistemas { order: 3; }
html:not(.scrollfx) .que__pista, html:not(.scrollfx) .que__resumen, html:not(.scrollfx) .que__riel, html:not(.scrollfx) .que__omitir, html:not(.scrollfx) .que__chips, html:not(.scrollfx) .que-chip--termo { display: none; }
html:not(.scrollfx) .que__sistemas { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 34px 40px; }
html:not(.scrollfx) .sistema { padding-top: 20px; border-top: 1px solid var(--rule); }
html:not(.scrollfx) .sistema__n { font-size: 2.2rem; }
html:not(.scrollfx) .sistema__nombre { font-size: clamp(1.5rem, 1rem + 1.1vw, 2rem); }
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-conos path { opacity: 1; transform: none; }
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, html:not(.scrollfx) .corte .c-imagen, html:not(.scrollfx) .corte .c-dunas, html:not(.scrollfx) .corte .c-llamada { opacity: 1; }
html:not(.scrollfx) .corte .c-cuartos rect { opacity: .5; }
/* 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 (site.js); without the scroll effects it is simply there */
.scrollfx .corte .c-casa .c-linea { stroke-dasharray: 100; }

/* ---------- 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__item {
  position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 20rem); 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__item::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__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__item::after { transform: scaleX(1); }
html:not(.scrollfx) .para__nombre, html:not(.scrollfx) .para__txt { opacity: 1; }
@media (max-width: 900px) {
  .para__item { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .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, .92) 0%, rgba(5, 7, 11, .74) 34%, rgba(5, 7, 11, 0) 64%), linear-gradient(0deg, rgba(5, 7, 11, .86) 0%, rgba(5, 7, 11, 0) 44%), 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, .78); padding: 4px 9px; border-radius: 8px; background: rgba(5, 7, 11, .5); }   /* (v15.1) a dark pill: readable over the sky too */
.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-alto) + 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-alto) + 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-raya::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; }
