/* OLAERC v9.2 — LAB como escena autocontenida al pulsar el enlace del menú.
   Solo aplica a #laboratorio; las demás secciones y navegación no cambian. */
html body #laboratorio.olaerc-lab-cine {
  --lab-stage-anchor: 77px; /* encabezado fijo (68px) + margen de 9px */
  min-height: calc(100svh - var(--lab-stage-anchor)) !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(ellipse 52% 50% at var(--lab-pointer-x, 18%) var(--lab-pointer-y, 30%), rgba(91, 21, 164, .19), transparent 72%),
    radial-gradient(ellipse 44% 55% at 90% 85%, rgba(0, 191, 222, .12), transparent 70%),
    linear-gradient(145deg, #090916 0%, #100823 52%, #080c18 100%) !important;
  isolation: isolate;
}
#laboratorio.olaerc-lab-cine .lab-stage-space {
  position:relative;
  flex:1 1 32px;
  min-height: 22px;
  width:100%;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
  pointer-events:none;
}
#laboratorio.olaerc-lab-cine .lab-stage-space::before {
  content:"";
  position:absolute;
  inset:-60% -12%;
  background: radial-gradient(ellipse at 24% 52%,rgba(183,34,247,.19), transparent 45%),
              radial-gradient(ellipse at 79% 38%,rgba(0,195,240,.13), transparent 44%);
  filter:blur(24px);
  opacity:.62;
  transform:translateX(0);
  transition:opacity .8s ease;
}
#laboratorio.olaerc-lab-cine .lab-stage-space-top::after,
#laboratorio.olaerc-lab-cine .lab-stage-space-bottom::after {
  content:"";
  position:absolute;
  left:50%;transform:translateX(-50%);
  width:min(70vw,1000px);
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(165,75,224,.18),rgba(130,214,235,.16),transparent);
}
#laboratorio.olaerc-lab-cine .lab-stage-space-top::after { bottom:0; }
#laboratorio.olaerc-lab-cine .lab-stage-space-bottom::after { top:0; }
#laboratorio.olaerc-lab-cine .lab-stage-wave {
  width:114%;
  height:clamp(32px,8svh,96px);
  flex:none;
  margin-left:-7%;
  overflow:visible;
  opacity:.57;
  stroke:#a65cfa;
  stroke-width:1.4;
  fill:none;
  filter:drop-shadow(0 0 7px rgba(176,74,250,.5));
  transform:translate3d(0,0,0);
  animation: lab-stage-drift 17s ease-in-out infinite alternate;
  animation-play-state:paused;
}
#laboratorio.olaerc-lab-cine.lab-stage-active .lab-stage-wave {animation-play-state:running}
#laboratorio.olaerc-lab-cine .lab-stage-wave-echo { stroke:#18d5f3;stroke-width:.85;opacity:.42; }
#laboratorio.olaerc-lab-cine .lab-stage-space-bottom .lab-stage-wave {transform:scaleX(-1);animation-direction:alternate-reverse;}
@keyframes lab-stage-drift {
  from { translate:-1.8% 2px; opacity:.40; }
  to { translate:1.8% -2px; opacity:.72; }
}
#laboratorio.olaerc-lab-cine .lab-stage-frame {
  position:relative;
  z-index:1;
  flex:none;
  width:calc(100% - clamp(20px,4.4vw,80px));
  max-width:1580px;
  margin:0 auto;
  border-radius:clamp(12px,1.5vw,22px);
  overflow:hidden;
  border:1px solid rgba(207,125,254,.19);
  box-shadow:0 0 0 1px rgba(255,255,255,.025), 0 26px 75px rgba(0,0,0,.38), 0 0 35px rgba(142,39,209,.11);
}
#laboratorio.olaerc-lab-cine .lab-cine-hero {width:100%}
#laboratorio.olaerc-lab-cine .lab-cine-stats {
  width:100%;
  background:#151121 !important;
  border-color:rgba(210,166,241,.15) !important;
  box-shadow:none;
}
#laboratorio.olaerc-lab-cine .lab-cine-stat {border-color:rgba(206,164,239,.16)}
#laboratorio.olaerc-lab-cine .lab-cine-stat-value {color:#fff}
#laboratorio.olaerc-lab-cine .lab-cine-stat-label {color:#ccc2da}
#laboratorio.olaerc-lab-cine .lab-cine-stat svg {color:#c585f1}
@media (max-width:900px) {
  #laboratorio.olaerc-lab-cine .lab-stage-frame {width:calc(100% - 30px)}
  #laboratorio.olaerc-lab-cine .lab-stage-space {min-height:19px}
}
@media (max-width:600px) {
  #laboratorio.olaerc-lab-cine {--lab-stage-anchor:69px}
  #laboratorio.olaerc-lab-cine .lab-stage-frame {width:calc(100% - 18px);border-radius:13px}
  #laboratorio.olaerc-lab-cine .lab-stage-space {min-height:17px}
  #laboratorio.olaerc-lab-cine .lab-stage-wave {height:42px;opacity:.34}
}
@media (max-width:600px) and (max-height:700px) {
  #laboratorio.olaerc-lab-cine .lab-cine-hero {min-height:350px;padding-top:20px;padding-bottom:20px}
  #laboratorio.olaerc-lab-cine .lab-stage-space {min-height:12px}
}
@media (prefers-reduced-motion:reduce) {
  #laboratorio.olaerc-lab-cine .lab-stage-wave {animation:none!important; translate:none!important}
  #laboratorio.olaerc-lab-cine .lab-stage-space::before {transition:none!important}
}
