/* ==========================================================================
   VISTA EN MINIATURA DEL MURO
   --------------------------------------------------------------------------
   Muestra el lienzo colaborativo en directo dentro de la portada y del taller.
   El componente lo rellena /vista-muro.js; sin JavaScript queda el chasis con
   la pantalla en negro, sin romper la maqueta.
   ========================================================================== */

.vista-muro {
  --vm-lado: 84px;
  display: flex;
  align-items: stretch;
  gap: 11px;
  padding: 8px;
  border: 1px solid var(--line-dim, rgba(231, 255, 249, .12));
  background: rgba(3, 9, 9, .5);
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease;
}

.vista-muro:hover {
  border-color: var(--green, #00ff66);
  background: rgba(3, 9, 9, .78);
}

.vista-muro:focus-visible {
  outline: 1px solid var(--amber, #ffb000);
  outline-offset: 2px;
}

.vista-muro__pantalla {
  position: relative;
  flex: 0 0 auto;
  width: var(--vm-lado);
  height: var(--vm-lado);
  overflow: hidden;
  border: 1px solid rgba(231, 255, 249, .14);
  background:
    repeating-linear-gradient(0deg, rgba(0, 255, 102, .05) 0 1px, transparent 1px 4px),
    #060908;
}

.vista-muro__pantalla canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: 0;
  transition: opacity .35s ease;
}

.vista-muro.is-listo .vista-muro__pantalla canvas { opacity: 1; }

.vista-muro__pantalla::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 3px);
  opacity: .6;
}

.vista-muro__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.vista-muro__kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green, #00ff66);
  font-family: var(--mono, "Share Tech Mono", monospace);
  font-size: .42rem;
  letter-spacing: .11em;
  line-height: 1.2;
}

.vista-muro__estado {
  color: var(--steel, #7e8a87);
  font-family: var(--mono, "Share Tech Mono", monospace);
  font-size: .44rem;
  letter-spacing: .06em;
  line-height: 1.3;
}

.vista-muro__cta {
  margin-top: 2px;
  color: var(--amber, #ffb000);
  font-family: var(--mono, "Share Tech Mono", monospace);
  font-size: .44rem;
  letter-spacing: .09em;
  line-height: 1.2;
}

.vista-muro.is-error .vista-muro__kicker { color: var(--red, #ff0033); }
.vista-muro.is-error .vista-muro__pantalla {
  border-color: rgba(255, 0, 51, .35);
}

.vista-muro--banda { --vm-lado: 76px; }

.taller-hero__side {
  display: grid;
  gap: 12px;
  align-content: end;
}

.taller-hero__side .vista-muro { width: 100%; }

@media (max-width: 760px) {
  .vista-muro { --vm-lado: 68px; }
}

@media (max-width: 420px) {
  .vista-muro { --vm-lado: 60px; }
  .vista-muro__kicker,
  .vista-muro__estado,
  .vista-muro__cta { font-size: .38rem; }
}
