Escenario de foco sobre el escenario del salón del lago de nubes
Completa un escenario de escenario con foco en el salón del lago nube: incluye contenido realista, controles accionables, retroalimentación clara del estado y diseño adaptable a distintos tamaños.
Tras activar JavaScript, puedes editar, ejecutar y guardar este ejemplo. El código fuente fijado es el siguiente:
<!doctype html>
<html lang="es" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Escenario de foco sobre el escenario del salón del lago de nubes</title>
<style>
:root { --ink:#3a2419; --paper:#fbf3df; --accent:#c66a2d; --secondary:#b5c88d; --line:color-mix(in srgb, var(--ink) 18%, transparent); --shadow:0 24px 60px color-mix(in srgb, var(--ink) 16%, transparent); color-scheme:light; }
* { box-sizing:border-box; }
html { min-width:320px; background:var(--paper); }
body { min-height:100vh; margin:0; overflow-x:hidden; color:var(--ink); font-family:Avenir,"PingFang SC",sans-serif; background:var(--paper); }
button,input,select,textarea { color:inherit; font:inherit; }
button,[role="button"],input,select,textarea { accent-color:var(--accent); }
button { cursor:pointer; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
[hidden] { display:none !important; }
@media (max-width:700px) { .mast h1 { line-height:1.08 !important; letter-spacing:-.035em !important; overflow-wrap:anywhere; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }
.page{width:min(1320px,calc(100% - 56px));margin:auto;padding:10vh 0}.mast{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:10vw;margin-block:6vh;align-items:start;margin-bottom:10vh}.mast h1{font-family:Avenir,"PingFang SC",sans-serif;font-weight:500;font-size:clamp(38px,8vw,88px);letter-spacing:-.055em;margin:0;line-height:.96}.eyebrow{display:block;margin-bottom:24px;font:600 10px/1 ui-monospace,monospace;letter-spacing:.22em}.intro{max-width:52ch;margin-top:28px;line-height:1.8}.scenario{font-size:13px;text-align:right}.demo{border-radius:1px;border-color:color-mix(in srgb,var(--ink) 35%,transparent);box-shadow:none;position:relative;min-height:420px;padding:clamp(28px,5vw,70px);background:transparent}@media(max-width:700px){.page{width:calc(100% - 24px);padding:36px 0}.mast{grid-template-columns:1fr;margin-bottom:30px}.scenario{text-align:left}.demo{padding:18px}}
.panel{padding:24px;border-block:1px solid var(--ink);background:transparent}.stack{display:grid;gap:22px}.row{display:flex;flex-wrap:wrap;gap:16px}.action{padding:8px 0;border:0;border-bottom:1px solid currentColor;background:transparent;letter-spacing:.08em}.action.primary,.action.is-active{color:var(--accent);border-bottom-width:4px}.status{min-height:28px;margin-top:20px;font-style:italic}.metric{font-family:Didot,serif;font-size:clamp(38px,8vw,76px)}.muted{max-width:54ch;line-height:1.8}.meter{position:relative;height:3px;background:var(--line)}.meter>i{position:absolute;inset:0 auto 0 0;background:var(--accent)}.chip{padding-bottom:3px;border-bottom:1px solid var(--ink);font-size:13px}
.composition-studio{display:grid;gap:14px}.studio-ruler{display:flex;justify-content:space-between;padding:0 4px;color:color-mix(in srgb,var(--ink) 55%,transparent);font:700 11px/1 ui-monospace,monospace;letter-spacing:.14em}.studio-ruler::before{content:"01 / WORKING PROTOTYPE"}.studio-ruler::after{content:"360 · 768 · 1440"}.composition-studio .demo::after{content:"";position:absolute;right:18px;bottom:18px;width:24px;height:24px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);pointer-events:none}
.spotlight-lab{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(220px,.58fr);gap:16px}.spotlight-stage{--spot-x:50%;--spot-y:50%;--spot-size:190px;--ambient:.12;position:relative;min-height:460px;overflow:hidden;border:1px solid var(--line);border-radius:26px;background:#05070c;color:#fff;touch-action:none}.spotlight-stage::before{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:radial-gradient(circle var(--spot-size) at var(--spot-x) var(--spot-y),transparent 0 58%,rgba(2,4,8,calc(1 - var(--ambient))) 100%)}.spotlight-copy{position:relative;z-index:2;max-width:650px;padding:clamp(32px,8vw,86px)}.spotlight-copy span{color:#fde68a;font-weight:900;letter-spacing:.16em}.spotlight-copy h2{font-size:clamp(38px,8vw,86px);line-height:.92}.spotlight-copy p{max-width:50ch;line-height:1.7}.spotlight-cards{position:absolute;inset:12% 7%}.spotlight-cards i{position:absolute;width:120px;height:160px;border:1px solid rgba(255,255,255,.35);border-radius:20px;background:linear-gradient(145deg,#2563eb55,#f9731655)}.spotlight-cards i:nth-child(1){right:3%;top:5%;transform:rotate(9deg)}.spotlight-cards i:nth-child(2){right:22%;bottom:3%;transform:rotate(-7deg)}.spotlight-cards i:nth-child(3){left:35%;top:44%;width:80px;height:80px}.spotlight-controls{display:grid;align-content:center;gap:17px}.spotlight-controls label{display:grid;grid-template-columns:1fr auto;gap:8px;font-weight:800}.spotlight-controls input{grid-column:1/-1}@media(max-width:740px){.spotlight-lab{grid-template-columns:1fr}.spotlight-stage{min-height:360px}}.workflow-guide{display:grid;grid-template-columns:190px minmax(0,1fr);grid-template-areas:"rail core" "rail evidence";gap:14px 18px}.guide-rail{grid-area:rail;display:grid;align-content:start;gap:15px;padding:18px;border-right:1px solid var(--line)}.guide-rail ol{display:grid;gap:8px;padding:0;margin:0;list-style:none}.guide-rail li{display:grid;grid-template-columns:30px 1fr;gap:8px;align-items:center;padding:9px;opacity:.5}.guide-rail li[aria-current="step"]{opacity:1;color:var(--paper);background:var(--ink)}.guide-rail li.is-complete{opacity:1;color:var(--accent)}.guide-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.guide-actions .action{padding-inline:8px}#workflowGuideProgress{height:6px;background:var(--line)}#workflowGuideProgress i{display:block;width:0;height:100%;background:var(--accent)}.guide-core{grid-area:core;min-width:0;padding:16px;border:1px solid var(--line)}.guide-core>p{margin:0 0 14px;padding:10px;border-left:4px solid var(--accent);background:color-mix(in srgb,var(--secondary) 12%,transparent)}.guide-core[data-guide-step="1"]{border-radius:28px}.guide-core[data-guide-step="2"]{box-shadow:inset 0 0 0 4px color-mix(in srgb,var(--accent) 35%,transparent)}.guide-evidence{grid-area:evidence;display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:start}.guide-evidence details,.guide-evidence form{padding:12px;border:1px solid var(--line)}.guide-evidence label{display:grid;gap:7px}.guide-evidence textarea{width:100%;padding:9px;border:1px solid var(--line);background:var(--paper)}@media(max-width:900px){.workflow-guide{grid-template-columns:1fr;grid-template-areas:"core" "rail" "evidence"}.guide-rail{border-right:0;border-bottom:1px solid var(--line)}.guide-rail ol{grid-template-columns:repeat(3,1fr)}.guide-evidence{grid-template-columns:1fr}}
</style>
</head>
<body data-aesthetic="minimal" data-composition="studio">
<main class="page">
<header class="mast"><div><span class="eyebrow">minimal / escenario de foco / ADVANCED</span><h1>Escenario de foco sobre el escenario del salón del lago de nubes</h1><p class="intro">Completa un escenario de escenario con foco en el salón del lago nube: incluye contenido realista, controles accionables, retroalimentación clara del estado y diseño adaptable a distintos tamaños.</p></div><span class="scenario">Sala del lago de nubes</span></header>
<div class="composition-studio"><div class="studio-ruler" aria-hidden="true"></div><section class="demo" aria-label="Zona interactiva del escenario con foco del vestíbulo del lago de nubes"><div class="workflow-guide"><nav class="guide-rail" aria-label="guía del vestíbulo de Nube y Lago"><span class="eyebrow">Sala del lago de nubes GUIDE</span><ol><li data-workflow-guide-step="0" aria-current="step"><b>1</b><span>Capa base del Salón del Lago de Nubes</span></li><li data-workflow-guide-step="1"><b>2</b><span>Capa dinámica de la sala del Lago de Nubes</span></li><li data-workflow-guide-step="2"><b>3</b><span>Estratificación de la sala del lago de nubes</span></li></ol><div class="guide-actions"><button id="workflowGuideBack" class="action" type="button" disabled>Paso anterior</button><button id="workflowGuideNext" class="action primary" type="button">Completar este paso</button></div><div id="workflowGuideProgress" role="progressbar" aria-label="Finalización del salón del lago nublado" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><i></i></div></nav><section id="workflowCore" class="workflow-core guide-core" data-guide-step="0" aria-describedby="workflowGuideInstruction"><p id="workflowGuideInstruction">Completa en el caso principal las acciones relacionadas con «capas base del Pabellón Lago Nube».</p><!-- 11DZ_CORE_START:creative-effects-spotlight-stage --><div class="spotlight-lab"><section id="spotlightStage" class="spotlight-stage" tabindex="0" aria-label="Escenario con foco en la sala del lago de nubes; mueve el puntero o usa las teclas de dirección para controlar la luz" aria-describedby="spotlightHelp"><div class="spotlight-copy"><span>Sala del lago de nubes / LIVE</span><h2>Mueve la atención al lugar verdaderamente importante</h2><p id="spotlightHelp">Mueve el puntero, toca el escenario o usa las teclas de dirección para controlar el foco.</p></div><div class="spotlight-cards" aria-hidden="true"><i></i><i></i><i></i></div></section><aside class="spotlight-controls panel"><span class="eyebrow">SPOTLIGHT STAGE</span><h2>Escenario iluminado</h2><label>Tamaño del diafragma <input id="spotlightSize" type="range" min="90" max="320" value="190" data-core-bridge="creative-effects-spotlight-stage"><output id="spotlightSizeValue">190px</output></label><label>Luz ambiental <input id="spotlightAmbient" type="range" min="4" max="34" value="12"><output id="spotlightAmbientValue">12%</output></label><button id="spotlightCenter" class="action" type="button">Volver al centro</button></aside></div><!-- 11DZ_CORE_END --></section><aside class="guide-evidence"><details id="workflowGuideDetails"><summary>Ver los requisitos de aceptación</summary><ul><li>La capa base del salón Cloud Lake necesita un cambio visible de estado</li><li>La capa dinámica del vestíbulo del lago de nubes necesita un cambio de estado visible</li><li>La capa de exhibición del Salón del Lago de las Nubes necesita un cambio de estado visible</li></ul></details><form id="workflowGuideEvidenceForm"><label>Evidencia de esta etapa<textarea id="workflowGuideEvidence" rows="3" placeholder="Registrar el estado observado"></textarea></label><input class="action" type="submit" value="Guardar evidencia"></form><output id="workflowGuideSummary">0 / 3 pasos completados</output></aside></div><p id="status" class="status" role="status" aria-live="polite"></p></section></div>
</main>
<script>
'use strict';
const statusOutput = document.querySelector('#status');
const announce = message => { statusOutput.textContent = message; };
/* 11DZ_CORE_SCRIPT_START:creative-effects-spotlight-stage */
const spotlightStage=document.querySelector('#spotlightStage');const spotlightSize=document.querySelector('#spotlightSize');const spotlightAmbient=document.querySelector('#spotlightAmbient');let spotlightPoint={x:50,y:50};function setSpotlight(x,y){spotlightPoint.x=Math.max(0,Math.min(100,x));spotlightPoint.y=Math.max(0,Math.min(100,y));spotlightStage.style.setProperty('--spot-x',spotlightPoint.x+'%');spotlightStage.style.setProperty('--spot-y',spotlightPoint.y+'%');}function pointerSpotlight(event){const rect=spotlightStage.getBoundingClientRect();setSpotlight((event.clientX-rect.left)/rect.width*100,(event.clientY-rect.top)/rect.height*100);}spotlightStage.addEventListener('pointermove',pointerSpotlight);spotlightStage.addEventListener('pointerdown',pointerSpotlight);spotlightStage.addEventListener('keydown',event=>{if(!['ArrowLeft','ArrowRight','ArrowUp','ArrowDown'].includes(event.key))return;event.preventDefault();setSpotlight(spotlightPoint.x+(event.key==='ArrowRight'?4:event.key==='ArrowLeft'?-4:0),spotlightPoint.y+(event.key==='ArrowDown'?4:event.key==='ArrowUp'?-4:0));announce('Posición del foco '+Math.round(spotlightPoint.x)+'%,'+Math.round(spotlightPoint.y)+'%');});spotlightSize.addEventListener('input',()=>{spotlightStage.style.setProperty('--spot-size',spotlightSize.value+'px');document.querySelector('#spotlightSizeValue').textContent=spotlightSize.value+'px';announce('Tamaño del diafragma '+spotlightSize.value+' píxel');});spotlightAmbient.addEventListener('input',()=>{spotlightStage.style.setProperty('--ambient',Number(spotlightAmbient.value)/100);document.querySelector('#spotlightAmbientValue').textContent=spotlightAmbient.value+'%';announce('Luz ambiental '+spotlightAmbient.value+'%');});document.querySelector('#spotlightCenter').addEventListener('click',()=>{setSpotlight(50,50);spotlightStage.focus();announce('El foco vuelve al centro del escenario');});
/* 11DZ_CORE_SCRIPT_END */
const workflowBridgeSpec={"name":"creative-effects-spotlight-stage","selector":"[data-core-bridge=\"creative-effects-spotlight-stage\"]","mode":"range","key":"ArrowRight"};const workflowBridgeCore=document.querySelector('#workflowCore');const workflowBridgeControl=workflowBridgeCore.querySelector(workflowBridgeSpec.selector);if(!workflowBridgeControl)throw new Error('Missing core bridge: '+workflowBridgeSpec.name);const workflowBridgeControlledId=workflowBridgeControl.getAttribute('aria-controls');const workflowBridgeControlled=workflowBridgeControlledId?document.getElementById(workflowBridgeControlledId):null;workflowBridgeCore.dataset.workflowBridge=workflowBridgeSpec.name;workflowBridgeCore.dataset.workflowVersion='0';function workflowBridgeSerialize(){const visualNode=workflowBridgeCore.firstElementChild||workflowBridgeCore;const visual=getComputedStyle(visualNode);const outputs=[...workflowBridgeCore.querySelectorAll('output,[role="status"],[aria-live],meter,progress')].map(node=>node.textContent.trim()+'|'+node.getAttribute('aria-valuenow')+'|'+node.getAttribute('value'));const canvas=[...workflowBridgeCore.querySelectorAll('canvas')].map(node=>{try{return node.toDataURL().slice(-160);}catch{return 'canvas-unavailable';}});return JSON.stringify({html:workflowBridgeCore.innerHTML,status:statusOutput.textContent,outputs,canvas,visual:[visual.display,visual.visibility,visual.opacity,visual.transform,visual.filter,visual.backgroundColor,visual.width,visual.height],scroll:workflowBridgeSpec.mode==='scroll'?workflowBridgeControl.scrollTop:null});}let workflowBridgeLastEffect=workflowBridgeSerialize();function workflowBridgeSummary(){const label=(workflowBridgeControl.getAttribute('aria-label')||workflowBridgeControl.textContent||workflowBridgeControl.value||workflowBridgeSpec.name).trim().replace(/\s+/g,' ').slice(0,72);return label+' · versión principal '+workflowBridgeCore.dataset.workflowVersion;}function workflowBridgeCommit(){const effect=workflowBridgeSerialize();if(effect===workflowBridgeLastEffect)return {changed:false,summary:workflowBridgeSummary()};workflowBridgeLastEffect=effect;workflowBridgeCore.dataset.workflowVersion=String(Number(workflowBridgeCore.dataset.workflowVersion||0)+1);return {changed:true,summary:workflowBridgeSummary()};}function workflowBridgeScheduleCommit(){queueMicrotask(workflowBridgeCommit);setTimeout(workflowBridgeCommit,0);}workflowBridgeControl.addEventListener("input",workflowBridgeScheduleCommit);workflowBridgeControl.addEventListener('change',workflowBridgeScheduleCommit);const workflowBridgeStateTargets=new Set(workflowBridgeCore.querySelectorAll('dialog'));if(workflowBridgeControlled&&workflowBridgeCore.contains(workflowBridgeControlled))workflowBridgeStateTargets.add(workflowBridgeControlled);workflowBridgeStateTargets.forEach(target=>['close','cancel','toggle'].forEach(eventName=>target.addEventListener(eventName,workflowBridgeScheduleCommit)));function workflowBridgeActivate(){workflowBridgeControl.focus();const step=Number(workflowBridgeControl.step)||1;const min=workflowBridgeControl.min===''?-Infinity:Number(workflowBridgeControl.min);const max=workflowBridgeControl.max===''?Infinity:Number(workflowBridgeControl.max);let next=Math.min(max,Math.max(min,(Number(workflowBridgeControl.value)||0)+step));if(next===Number(workflowBridgeControl.value))next=Math.max(min,Number(workflowBridgeControl.value)-step);workflowBridgeControl.value=String(next);workflowBridgeControl.dispatchEvent(new Event('input',{bubbles:true}));workflowBridgeControl.dispatchEvent(new Event('change',{bubbles:true}));const result=workflowBridgeCommit();setTimeout(workflowBridgeCommit,0);return result;}function workflowBridgeReset(){workflowBridgeCore.dataset.workflowVersion='0';workflowBridgeLastEffect=workflowBridgeSerialize();}
const workflowGuideCore=document.querySelector('#workflowCore');const workflowGuideStages=["Capa base del Salón del Lago de Nubes","Capa dinámica de la sala del Lago de Nubes","Estratificación de la sala del lago de nubes"];const workflowGuideState={step:0,completed:new Set(),evidence:new Map(),consumedVersion:0};function workflowGuideDrive(){const step=workflowGuideState.step;workflowGuideCore.dataset.guideStep=String(step);document.querySelector('#workflowGuideInstruction').textContent='Por favor, completa “'+workflowGuideStages[step]+'acciones relacionadas con «».';document.querySelectorAll('[data-workflow-guide-step]').forEach((item,index)=>{item.classList.toggle('is-complete',workflowGuideState.completed.has(index));if(index===step)item.setAttribute('aria-current','step');else item.removeAttribute('aria-current');});document.querySelector('#workflowGuideBack').disabled=step===0;document.querySelector('#workflowGuideNext').textContent=step===workflowGuideStages.length-1?'Efecto de aplicación':'Completar este paso';const percent=Math.round(workflowGuideState.completed.size/workflowGuideStages.length*100);const progress=document.querySelector('#workflowGuideProgress');progress.setAttribute('aria-valuenow',String(percent));progress.querySelector('i').style.width=percent+'%';document.querySelector('#workflowGuideSummary').textContent=workflowGuideState.completed.size+' / '+workflowGuideStages.length+' Paso completado · '+workflowBridgeSummary();announce('Paso actual del salón Lago Nube:'+workflowGuideStages[step]);}function workflowGuideAdvance(direction){if(direction>0){const bridge=workflowBridgeActivate();const version=Number(workflowGuideCore.dataset.workflowVersion||0);if(version<=workflowGuideState.consumedVersion){announce('Primero completa el cambio visible de estado del caso principal');return;}workflowGuideState.consumedVersion=version;workflowGuideState.completed.add(workflowGuideState.step);announce('Caso principal actualizado · '+bridge.summary);}workflowGuideState.step=Math.max(0,Math.min(workflowGuideStages.length-1,workflowGuideState.step+direction));workflowGuideDrive();}document.querySelector('#workflowGuideBack').addEventListener('click',()=>workflowGuideAdvance(-1));document.querySelector('#workflowGuideNext').addEventListener('click',()=>workflowGuideAdvance(1));document.querySelector('#workflowGuideEvidenceForm').addEventListener('submit',event=>{event.preventDefault();const version=Number(workflowGuideCore.dataset.workflowVersion||0);if(version<=workflowGuideState.consumedVersion){announce('La prueba no se ha guardado: el caso principal aún no tiene nuevos cambios');return;}const text=document.querySelector('#workflowGuideEvidence').value.trim();workflowGuideState.evidence.set(workflowGuideState.step,text||'Comprobación de estado visible completada');workflowGuideState.completed.add(workflowGuideState.step);workflowGuideState.consumedVersion=version;workflowGuideDrive();announce('La evidencia de este paso se ha guardado · '+workflowBridgeSummary());});document.querySelector('#workflowGuideDetails').addEventListener('toggle',event=>announce(event.currentTarget.open?'Requisitos de aceptación desplegados':'Requisitos de aceptación contraídos'));workflowGuideDrive();
workflowBridgeReset();
</script>
</body>
</html>