/* -------------------------------------------

motor gráfico "Código y Acero" (Fase 6, 2026-11)

------------------------------------------- */
.mil-escena {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.mil-escena-fija {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.mil-escena.is-activa .mil-escena-fija {
  visibility: hidden;
}
.mil-escena-lienzo {
  position: absolute;
  inset: 0;
  display: block;
}
.mil-escena-calidad {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  font: 500 11px/1 Outfit, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(20, 16, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 8px 12px;
  cursor: pointer;
}
.mil-escena-calidad:focus-visible {
  outline: 2px solid rgb(221, 2, 0);
  outline-offset: 2px;
}
.mil-escena-pie {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}
.mil-formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0;
}
.mil-hero-escena {
  height: 260px;
  margin-top: 30px;
}
@media screen and (min-width: 993px) {
  .mil-banner-v3 .mil-banner-content {
    max-width: 60%;
  }
  .mil-hero-escena {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 62vh;
    margin: 0;
    z-index: 1;
  }
}
.mil-escena-ancha {
  height: 340px;
}
.mil-escena-media {
  height: 300px;
}
.mil-escena-f1 {
  height: 420px;
  background: rgb(20, 16, 12);
}
.mil-escena-f1:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 4px;
}
.mil-f1-mandos {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.mil-f1-mandos button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.6);
  background: rgba(20, 16, 12, 0.7);
  color: #d4af37;
  font-size: 18px;
  touch-action: none;
}
.mil-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.mil-lab label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
}
.mil-lab input[type=range] {
  width: 100%;
  accent-color: rgb(221, 2, 0);
}
.mil-lab .mil-escena {
  height: 520px;
  background: rgb(20, 16, 12);
}
@media screen and (max-width: 992px) {
  .mil-lab {
    grid-template-columns: minmax(0, 1fr);
  }
  .mil-lab .mil-escena {
    height: 360px;
  }
}
@media screen and (max-width: 768px) {
  .mil-hero-escena {
    height: 200px;
  }
  .mil-escena-ancha,
  .mil-escena-media {
    height: 240px;
  }
  .mil-escena-f1 {
    height: 360px;
  }
}

.mil-escena-oscura {
  background: rgb(20, 16, 12);
}
.mil-banner-v3 {
  position: relative;
}
.mil-banner-v3 .container {
  flex-wrap: wrap;
}
@media screen and (max-width: 992px) {
  .mil-banner-v3 .mil-hero-escena {
    width: 100%;
  }
}
.mil-blog-figura {
  order: 0;
  margin: 0 0 40px;
  text-align: center;
}
.mil-blog-figura .mil-escena {
  max-width: 360px;
  margin: 0 auto 10px;
}

.mil-escena[data-pista]::after {
  content: attr(data-pista);
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  font: 500 11px/1 Outfit, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(20, 16, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 8px 14px;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}
.mil-escena.is-tocada[data-pista]::after {
  opacity: 0;
}
.mil-escena[data-al-tocar] {
  cursor: grab;
}
.mil-escena[data-al-tocar]:focus-visible {
  outline: 2px solid rgb(221, 2, 0);
  outline-offset: 4px;
}

