/* The computer is CSS 3D hardware. Native content lives on the monitor's front face. */
#lenguajes{height:175svh}
#lenguajes .copy{display:grid;width:100%;max-width:none;grid-template-columns:minmax(205px,.79fr) minmax(0,1.72fr);grid-template-rows:auto auto;gap:18px clamp(28px,4vw,76px);align-items:center}
#lenguajes .scene-text{grid-column:1;grid-row:1;align-self:end;text-align:left}
#lenguajes .scene-text h2{font-size:clamp(45px,5.5vw,84px)}
#lenguajes .scene-text>p:not(.eyebrow){line-height:1.5;max-width:34ch;margin:12px 0 0}
#lenguajes .style-panel{grid-column:1;grid-row:2;align-self:start;min-width:0;margin:0}
.style-panel label{display:block;font:12px DM,sans-serif;color:var(--muted);margin-bottom:7px}
.lab-selector{display:flex;align-items:center;gap:14px;max-width:340px;border-block:1px solid var(--line)}
#world-picker{display:block;min-width:0;flex:1;max-width:100%;background:#080d1c;color:var(--text);border:0;border-radius:0;min-height:44px;font:500 clamp(15px,1.5vw,21px) Space,sans-serif;margin:0;padding:0 6px}
#world-count{white-space:nowrap;font:11px Space,sans-serif;color:var(--muted);padding-right:5px}
#world-save{margin-top:10px}
.workstation{grid-column:2;grid-row:1 / span 2;position:relative;min-width:0;align-self:center;padding:10px clamp(22px,3.3vw,56px) 0;perspective:1350px;isolation:isolate}
.computer{position:relative;transform-style:preserve-3d;transform:rotateY(var(--computer-turn,-7deg)) rotateX(2deg);transform-origin:50% 58%}
.monitor{position:relative;transform-style:preserve-3d}
.monitor-rim{position:relative;padding:clamp(7px,1.05vw,15px) clamp(6px,.72vw,13px) clamp(13px,1.6vw,24px);border:1px solid #9dabc3;border-radius:clamp(9px,1.15vw,19px);background:linear-gradient(118deg,#8f9fb2 0%,#303c4f 5%,#101724 36%,#4b5c70 83%,#b3c0cb);box-shadow:inset 0 1px 2px #edf5ffb0,0 2px 8px #070b15}
.monitor-back{position:absolute;inset:0;border-radius:16px;transform:translateZ(-12px) translateX(3px);background:#435267;box-shadow:3px 3px 0 #8594a6,7px 7px 16px #010613}
.demo-window{display:block;position:relative;width:100%;aspect-ratio:1.72;overflow:hidden;background:#101521;border:2px solid #111823;border-radius:4px;box-shadow:0 0 0 1px #708095}
.monitor-led{position:absolute;bottom:2%;left:50%;width:4px;height:4px;border-radius:50%;background:#91e0f6;box-shadow:0 0 4px #50c9ff}
.monitor-neck{width:18%;height:clamp(17px,2.25vw,34px);margin:auto;background:linear-gradient(90deg,#222d3d,#748397 32%,#414d60 70%,#253143);clip-path:polygon(9% 0,91% 0,100% 100%,0 100%);transform:translateZ(-6px)}
.monitor-foot{width:38%;height:9px;margin:auto;border-radius:60% 60% 24% 24%;background:linear-gradient(#97a6b9,#35465c 69%,#172131);box-shadow:0 5px 9px #01041399}
.computer-keys{width:61%;height:clamp(15px,2.1vw,32px);margin:clamp(5px,.8vw,11px) auto 0;border:3px solid #536174;border-radius:5px;background:repeating-linear-gradient(0deg,transparent 0 22%,#536174 23% 28%),repeating-linear-gradient(90deg,#17212e 0 5.4%,#8290a0 5.8% 6.3%);transform:perspective(140px) rotateX(43deg);box-shadow:0 3px 0 #202b3a,0 6px 9px #010412}
.lab-arrow{position:absolute;z-index:2;top:40%;display:grid;place-items:center;width:46px;height:46px;border:1px solid #95afc780;border-radius:50%;color:#f3f7ff;background:linear-gradient(145deg,#273850,#0d1325);box-shadow:0 5px 20px #01041199,inset 0 1px 0 #a3d6fb38;font:22px/1 Space,sans-serif}
#world-prev{left:-8px}#world-next{right:-8px}
.lab-arrow:hover,.lab-arrow:focus-visible{background:#29465e;border-color:#9edbff}
.lab-arrow:active{box-shadow:inset 0 1px 6px #030710}
body.still-mode[data-chapter="lenguajes"] #stage>#still{visibility:hidden}
@media(min-width:801px) and (max-width:1080px){
 #lenguajes .scene-inner{padding-inline:5vw}
 #lenguajes .copy{grid-template-columns:minmax(195px,.7fr) minmax(0,1.3fr);gap:14px 20px}
 #lenguajes .scene-text h2{font-size:clamp(40px,4.7vw,52px)}
 .workstation{padding-inline:25px}.lab-arrow{width:44px;height:44px}
}
@media(max-width:800px){
 #lenguajes{height:auto;min-height:112svh}
 #lenguajes .scene-inner{position:relative;display:block;min-height:100svh;padding:90px 16px 90px}
 #lenguajes .copy{display:flex;flex-direction:column;align-items:stretch;gap:18px}
 #lenguajes .workstation{order:-1;align-self:stretch;width:min(100%,520px);margin:auto;padding:8px 7px 41px}
 #lenguajes .scene-text,#lenguajes .style-panel{align-self:stretch;width:min(100%,510px);margin-inline:auto}
 #lenguajes .scene-text h2{font-size:clamp(34px,8.4vw,53px);margin-bottom:10px}
 #lenguajes .scene-text h2 br{display:initial}
 #lenguajes .scene-text .eyebrow{margin-bottom:8px}
 #lenguajes .scene-text>p:not(.eyebrow){max-width:45ch}
 #lenguajes .lab-selector{max-width:100%}
 .computer{transform:rotateY(var(--computer-turn,-3deg)) rotateX(1deg)}
 .demo-window{aspect-ratio:1.5;min-height:215px}
 .monitor-led{bottom:3%}.computer-keys{width:55%;height:16px}
 .lab-arrow{top:auto;bottom:0;width:44px;height:44px}
 #world-prev{left:calc(50% - 59px)}#world-next{right:calc(50% - 59px)}
}
@media(prefers-reduced-motion:reduce){.computer{transform:none}}
.motion-reduced #lenguajes{height:auto;min-height:100svh}

