:root{--yellow:#ffd600;--white:#f5f6f8;--graphite:#1f2328;--black:#0b0d10;--line:rgba(245,246,248,.15);--muted:#a9afb7}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--black);color:var(--white);font-family:"Space Grotesk",Arial,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit}a{color:inherit;text-decoration:none}:focus-visible{outline:2px solid var(--yellow);outline-offset:5px}.skip-link{position:fixed;top:-60px;left:12px;z-index:20;background:var(--yellow);padding:10px;color:var(--black);font-weight:800}.skip-link:focus{top:12px}.shell{width:min(1340px,89%);margin-inline:auto}.mono{font:500 10px/1.45 "DM Mono",monospace;letter-spacing:.13em;text-transform:uppercase}.topbar{height:76px;padding:0 5.5%;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(11,13,16,.93);position:sticky;top:0;z-index:8;backdrop-filter:blur(16px)}.brand{font-size:24px;font-weight:700;letter-spacing:-.085em}.brand span,.eyebrow,h1 span,h2 span{color:var(--yellow)}.topbar p{margin:0;color:var(--muted)}.topbar p span{color:var(--yellow)}.return{padding-bottom:4px;border-bottom:1px solid var(--white)}.hero{text-align:center;padding:84px 0 67px}.eyebrow{margin:0 0 20px}.hero h1,.reveal h2{margin:0;font:900 clamp(76px,12vw,180px)/.76 "Barlow Condensed",Impact,sans-serif;letter-spacing:-.065em}.lede{max-width:530px;margin:30px auto 0;color:#c7cbd0;line-height:1.65}.workbench{padding-bottom:70px}.progressline{border-bottom:1px solid var(--line);display:flex;justify-content:space-between;padding:0 0 14px}.progressline strong{color:var(--yellow);font-size:13px}.stage-frame{height:min(65vw,660px);min-height:490px;position:relative;overflow:hidden;border:1px solid var(--line);background:radial-gradient(circle at 50% 43%,#303840 0,transparent 25%),radial-gradient(circle at 50% 105%,#27230f 0,transparent 38%),linear-gradient(135deg,#101419,#181d22 55%,#0c0f13);box-shadow:inset 0 0 130px #000b}.stage-frame:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background-image:linear-gradient(rgba(245,246,248,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(245,246,248,.045) 1px,transparent 1px);background-size:48px 48px;mask-image:radial-gradient(ellipse at center,#000 0,transparent 73%)}#webgl-stage{position:absolute;inset:0}.stage-hud{position:absolute;z-index:2;left:17px;right:17px;bottom:14px;display:flex;justify-content:space-between;color:#aeb5bd;pointer-events:none}.stage-hud span:last-child{color:var(--yellow)}.console{display:grid;grid-template-columns:1.15fr 1.05fr .8fr;gap:5%;padding:31px 2px 0}.piece-nav{display:flex;align-items:start;flex-direction:column;gap:6px}.piece-nav button{padding:5px 0;background:none;border:0;color:#737b84;cursor:pointer;text-align:left;font:700 clamp(17px,1.55vw,23px)/1 "Barlow Condensed",sans-serif;letter-spacing:.02em;transition:color .2s,transform .2s}.piece-nav button b{font:500 9px "DM Mono",monospace;margin-right:8px}.piece-nav button:hover,.piece-nav button[aria-pressed=true]{color:var(--white);transform:translateX(8px)}.piece-nav button[aria-pressed=true] b{color:var(--yellow)}.piece-nav button:disabled{color:#3e444b;cursor:not-allowed;transform:none}.detail{border-left:1px solid var(--line);padding-left:27px}.detail>p{margin:0}.detail>p:first-child{color:var(--yellow)}.detail h2{font:900 clamp(54px,5.7vw,82px)/.75 "Barlow Condensed",Impact,sans-serif;letter-spacing:-.05em;margin:9px 0 14px}.detail>p:not(:first-child){line-height:1.55;color:#c4c8cd}.detail ul{list-style:none;margin:19px 0 0;padding:0;color:#969ea7;font-size:8px}.detail li{display:inline}.detail li+li:before{content:" · ";color:var(--yellow)}.controls{align-self:end}.controls p{font-size:9px;color:#b9c0c8;min-height:30px;margin:0 0 12px}.fit-button{background:var(--yellow);border:0;padding:16px 18px;color:#131518;font-weight:900;font-size:12px;cursor:pointer;transition:transform .2s,background .2s}.fit-button:hover{background:var(--white);transform:translateY(-3px)}.fit-button:disabled{background:#5f656a;color:#202225;cursor:not-allowed;transform:none}.restart{display:block;margin-top:17px;padding:0 0 3px;border:0;border-bottom:1px solid transparent;background:none;color:#aab0b7;cursor:pointer}.restart:hover{color:var(--yellow);border-color:var(--yellow)}.reveal{text-align:center;margin-bottom:80px;padding:87px 7%;position:relative;overflow:hidden;border:1px solid var(--line);background:radial-gradient(circle at 50% 60%,#3d3311,transparent 35%),var(--graphite)}.reveal:after{content:"";position:absolute;width:340px;aspect-ratio:1;right:-80px;top:-130px;border:1px solid var(--yellow);transform:rotate(45deg);opacity:.5}.reveal>*{position:relative;z-index:1}.reveal h2{font-size:clamp(73px,10vw,150px)}.reveal>p:not(.eyebrow){max-width:560px;margin:28px auto;color:#c9ccd0;line-height:1.6}.final-actions{display:flex;justify-content:center;align-items:center;gap:25px;margin-top:30px}.final-actions a{font-weight:800;font-size:12px;padding-bottom:5px;border-bottom:1px solid var(--white)}.final-actions a:hover{color:var(--yellow);border-color:var(--yellow)}footer{padding:30px 0;color:#858d96;border-top:1px solid var(--line);font-size:9px}.fallback-stage{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:24px}.fallback-object{width:220px;height:220px;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr);gap:4px;transform:rotateX(55deg) rotateZ(45deg);filter:drop-shadow(24px 28px 0 #080a0d)}.fallback-object i{display:block;background:var(--yellow);box-shadow:inset -9px -10px rgba(0,0,0,.2),inset 7px 7px rgba(255,255,255,.25)}.fallback-stage p{color:#aab1b8}@media(max-width:800px){.topbar{height:65px;padding:0 19px}.topbar p{display:none}.hero{padding:61px 0 47px}.stage-frame{height:520px;min-height:0}.console{grid-template-columns:1fr;gap:29px}.piece-nav{display:grid;grid-template-columns:1fr 1fr}.detail{border-left:0;border-top:1px solid var(--line);padding:24px 0 0}.controls{align-self:auto}.fit-button{width:100%;min-height:52px}.reveal{padding:66px 22px}.final-actions{align-items:stretch;flex-direction:column;gap:22px}}@media(max-width:430px){.hero h1{font-size:22vw}.stage-frame{height:450px}.piece-nav button{font-size:18px}.stage-hud{font-size:8px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.fit-button,.piece-nav button{transition:none}}

/* Etapa 5B-4B-2B: interfaz de construcción */
.workbench{padding-bottom:94px}.build-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:32px;align-items:end;padding:0 0 19px;border-bottom:1px solid var(--line)}.build-intro .eyebrow{margin:0 0 10px;font-size:9px}.build-intro h2{margin:0;font:900 clamp(42px,5.3vw,76px)/.8 "Barlow Condensed",Impact,sans-serif;letter-spacing:-.055em}.build-intro h2 span{color:var(--yellow)}.build-intro>div>p:last-child{margin:14px 0 0;color:#c7cbd0;font-size:14px;line-height:1.45}.build-progress{display:flex;min-width:178px;align-items:end;justify-content:space-between;gap:17px;padding-bottom:5px;color:#aeb5bd}.build-progress strong{color:var(--yellow);font-size:14px;white-space:nowrap}.stage-frame{margin-top:0;border-top:0}.construction-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:34px;align-items:center;padding:23px 0 21px;border-bottom:1px solid var(--line)}.construction-controls[hidden],.discipline-panel[hidden]{display:none}.construction-controls .piece-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:stretch}.construction-controls .piece-nav button{position:relative;min-height:60px;padding:12px 11px 10px;border-top:1px solid rgba(245,246,248,.23);color:#8b939b;font:700 clamp(17px,1.45vw,22px)/.95 "Barlow Condensed",sans-serif;letter-spacing:.015em;transition:color .24s ease,border-color .24s ease,background .24s ease,transform .24s ease}.construction-controls .piece-nav button b{display:block;margin:0 0 7px;color:#6e767e;font:500 8px "DM Mono",monospace;letter-spacing:.12em}.construction-controls .piece-nav button:hover,.construction-controls .piece-nav button[aria-pressed=true]{color:var(--white);border-color:var(--yellow);background:rgba(255,214,0,.07);transform:none}.construction-controls .piece-nav button[aria-pressed=true] b{color:var(--yellow)}.construction-controls .piece-nav button[data-status=complete]{border-color:rgba(255,214,0,.55);color:#b9bec3;opacity:1}.construction-controls .piece-nav button[data-status=complete] b{color:var(--yellow)}.construction-controls .piece-nav button[data-status=complete]:after{content:"INTEGRADA";position:absolute;right:9px;bottom:10px;color:var(--yellow);font:500 7px "DM Mono",monospace;letter-spacing:.1em}.construction-controls .piece-nav button:disabled{cursor:default;transform:none}.construction-controls .controls{display:grid;justify-items:stretch;min-width:192px;align-self:center}.construction-controls .controls p{min-height:0;margin:0 0 10px;color:#aeb5bd;text-align:right}.construction-controls .fit-button{min-height:54px;padding:15px 21px;background:var(--yellow);font-size:11px;letter-spacing:.035em}.construction-controls .fit-button:hover{background:var(--white);transform:translateY(-2px)}.construction-controls .restart{justify-self:end;margin-top:12px;font-size:8px}.discipline-panel{display:grid;grid-template-columns:minmax(122px,.43fr) minmax(220px,.78fr) minmax(260px,1.35fr) minmax(185px,.8fr);gap:24px;align-items:end;min-height:160px;padding:31px 0 8px;border-bottom:1px solid var(--line)}.discipline-panel>p:first-child{align-self:start;margin:5px 0 0;color:var(--yellow);font-size:9px}.discipline-panel h2{margin:0;font:900 clamp(46px,5.6vw,78px)/.76 "Barlow Condensed",Impact,sans-serif;letter-spacing:-.055em}.discipline-panel>p:not(:first-child){margin:0 0 3px;color:#c8cdd2;font-size:14px;line-height:1.5}.discipline-panel ul{margin:0 0 4px;padding:0;list-style:none;color:#aeb5bd;font-size:8px;line-height:1.8}.discipline-panel li{display:block}.discipline-panel li:before{content:"— ";color:var(--yellow)}.discipline-panel.is-updating{animation:discipline-in .38s cubic-bezier(.2,.8,.2,1)}@keyframes discipline-in{from{opacity:.48;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.construction-controls{grid-template-columns:1fr;gap:19px}.construction-controls .controls{grid-template-columns:1fr auto;gap:9px 16px;align-items:center}.construction-controls .controls p{grid-column:1/-1;text-align:left}.construction-controls .restart{margin:0}.discipline-panel{grid-template-columns:120px 1fr 1fr;gap:17px;min-height:0;padding:27px 0}.discipline-panel ul{grid-column:2/-1;display:flex;gap:15px}.discipline-panel li{display:inline}.discipline-panel li:before{content:""}}
@media(max-width:620px){.workbench{padding-bottom:64px}.build-intro{grid-template-columns:1fr;gap:20px;padding-bottom:16px}.build-intro h2{font-size:clamp(45px,13vw,68px)}.build-intro>div>p:last-child{max-width:290px;font-size:13px}.build-progress{min-width:0;padding:10px 0 0;border-top:1px solid rgba(245,246,248,.12)}.stage-frame{height:clamp(410px,112vw,520px)}.construction-controls{padding:18px 0}.construction-controls .piece-nav{grid-template-columns:1fr 1fr;gap:5px}.construction-controls .piece-nav button{min-height:57px;font-size:19px}.construction-controls .controls{grid-template-columns:1fr}.construction-controls .fit-button{width:100%}.construction-controls .restart{justify-self:start;margin-top:4px}.discipline-panel{grid-template-columns:1fr;gap:12px;padding:26px 0 24px}.discipline-panel>p:first-child{margin:0}.discipline-panel h2{font-size:clamp(53px,16vw,72px)}.discipline-panel>p:not(:first-child){max-width:410px}.discipline-panel ul{grid-column:auto;display:block;margin-top:2px}.discipline-panel li{display:block}.discipline-panel li:before{content:"— "}}
@media(prefers-reduced-motion:reduce){.construction-controls .piece-nav button,.construction-controls .fit-button,.discipline-panel.is-updating{transition:none;animation:none}}

/* Etapa 5B-4B-2C: ficha editorial de disciplinas */
.discipline-panel{
  grid-template-columns:max-content fit-content(60ch) max-content;
  grid-template-rows:auto 1fr;
  column-gap:clamp(25px,2vw,60px);
  row-gap:8px;
  align-items:start;
  min-height:174px;
  padding:32px 0 26px;
}
.discipline-panel>p:first-child{
  grid-column:1;
  grid-row:1;
  align-self:end;
  margin:0;
}
.discipline-panel h2{
  grid-column:1;
  grid-row:2;
  align-self:start;
  max-width:100%;
  margin:0;
  font-size:clamp(48px,5.1vw,78px);
  line-height:.76;
  overflow-wrap:normal;
}
.discipline-panel>p:not(:first-child){
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
  max-width:60ch;
  margin:0;
  font-size:clamp(13px,1.05vw,15px);
  line-height:1.55;
}
.discipline-panel ul{
  grid-column:3;
  grid-row:1 / span 2;
  align-self:center;
  margin:0;
  font-size:8px;
  line-height:1.9;
}





@media (max-width: 1050px) {
  .discipline-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    row-gap: 16px;
    min-height: 0;
    padding: 29px 0 27px;
  }



  .discipline-panel > * {
    grid-column: 1;
    grid-row: auto;
  }

  .discipline-panel > p:not(:first-child) {
    align-self: start;
    max-width: 60ch;
    grid-column: 1;
        grid-row: auto;

  }

  .discipline-panel ul {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-self: start;
    margin-top: 0;
  }

  .discipline-panel li {
    display: inline;
  }

  .discipline-panel li::before {
    content: "— ";
  }
}

@media(max-width:760px){
  .discipline-panel{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:none;
    gap:12px;
    padding:26px 0 24px;
  }
  .discipline-panel>p:first-child,.discipline-panel h2,.discipline-panel>p:not(:first-child),.discipline-panel ul{grid-column:1;grid-row:auto;align-self:start}
  .discipline-panel h2{font-size:clamp(53px,16vw,72px);overflow-wrap:normal}
  .discipline-panel>p:not(:first-child){max-width:410px;font-size:14px}
  .discipline-panel ul{display:block;margin-top:2px}
  .discipline-panel li{display:block}
}
.stage-frame{touch-action:pan-y}.stage-frame.is-revealing:before{opacity:.16;transition:opacity 1.2s ease}.stage-frame.is-revealing .stage-hud{opacity:0;transition:opacity .8s ease}.stage-reveal{position:absolute;z-index:4;left:clamp(18px,5vw,68px);bottom:clamp(22px,6vw,62px);width:min(410px,calc(100% - 36px));padding:22px 24px 20px;border-left:2px solid var(--yellow);background:linear-gradient(90deg,rgba(11,13,16,.88),rgba(11,13,16,.48),transparent);opacity:0;transform:translateY(16px);transition:opacity .75s .35s ease,transform .75s .35s ease}.stage-frame.is-revealing .stage-reveal{opacity:1;transform:translateY(0)}.stage-reveal[hidden]{display:none}.stage-reveal .eyebrow{margin-bottom:8px;font-size:8px}.stage-reveal h2{margin:0;font:900 clamp(43px,5.1vw,68px)/.78 "Barlow Condensed",Impact,sans-serif;letter-spacing:-.055em}.stage-reveal>p:not(.eyebrow){max-width:350px;margin:15px 0 0;color:#d6d9dc;font-size:13px;line-height:1.45}.stage-reveal .final-actions{justify-content:flex-start;gap:15px;margin-top:18px}.stage-reveal .final-actions a{font-size:10px}.stage-frame.is-revealing{cursor:grab}.stage-frame.is-dragging{cursor:grabbing}@media(max-width:800px){.stage-reveal{left:18px;bottom:20px;width:calc(100% - 36px);padding:17px 18px;background:linear-gradient(90deg,rgba(11,13,16,.9),rgba(11,13,16,.52))}.stage-reveal h2{font-size:clamp(39px,11vw,56px)}.stage-reveal>p:not(.eyebrow){display:none}.stage-reveal .final-actions{margin-top:14px;gap:12px;align-items:center}.stage-reveal .fit-button{width:auto;min-height:0;padding:12px}.stage-reveal .final-actions a{font-size:9px}}@media(prefers-reduced-motion:reduce){.stage-reveal,.stage-frame.is-revealing:before,.stage-frame.is-revealing .stage-hud{transition:none}}

