.ep-visor-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(12, 18, 28, 0.92);
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: "Source Sans Pro", "Segoe UI", sans-serif;
}
.ep-visor-overlay[hidden] { display: none !important; }
.ep-visor-barra {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #0b1c2c;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ep-visor-titulo {
  font-weight: 700;
  margin-right: auto;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.ep-visor-barra button,
.ep-visor-descarga {
  background: #0082C3;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.ep-visor-barra button:hover,
.ep-visor-descarga:hover { background: #006fa6; color: #fff; }
.ep-visor-barra button:disabled { opacity: 0.45; cursor: default; }
.ep-visor-pagina-info { font-size: 13px; min-width: 90px; text-align: center; }
.ep-visor-escenario {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
}
.ep-visor-escenario canvas {
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  max-width: 100%;
  height: auto;
}
.ep-visor-cierre {
  background: transparent !important;
  font-size: 22px !important;
  padding: 0 10px !important;
}
.ep-visor-carga, .ep-visor-error {
  padding: 40px 20px;
  text-align: center;
}
body.ep-visor-abierto { overflow: hidden; }
.ep-visor-pagina { min-height: 70vh; }
@media (max-width: 700px) {
  .ep-visor-titulo { width: 100%; margin: 0 0 6px; }
}
