/* ==========================================================================
   Zona de pruebas (Playground) — mismo sistema de diseño que el resto del
   sitio, con un panel oscuro tipo consola para el editor de comandos.
   ========================================================================== */

.playground-body { padding: 36px 0 72px; }

.playground-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.86rem;
}
.playground-links a { color: var(--text-light); }
.playground-links a:hover { color: var(--accent); }

.playground-panel {
  background: var(--ink);
  color: #e8e8e8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.playground-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.playground-panel-header .title { font-weight: 700; font-size: 0.95rem; }
.playground-panel-body { padding: 22px 24px 28px; }

.device-row { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; }
.device-row .field-group { flex: 1 1 260px; }
.device-row label { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.device-row .field {
  background: #1e1e1e; color: #fff; border: 1px solid rgba(255,255,255,0.15);
  width: 100%; padding: 8px 12px; border-radius: 8px; font-size: 0.88rem; font-family: inherit;
}
.device-row .field:focus { outline: none; border-color: var(--accent); }

.editor-tabs { display: flex; gap: 2px; }
.editor-tabs .tab-btn {
  background: #1e1e1e; color: rgba(255,255,255,0.6); border: none;
  padding: 9px 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  border-radius: 8px 8px 0 0;
}
.editor-tabs .tab-btn:hover { color: #fff; }
.editor-tabs .tab-btn.active { background: #2b2b2b; color: #fff; }

.editor-panes { background: #2b2b2b; border-radius: 0 10px 10px 10px; overflow: hidden; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.CodeMirror { height: 320px; font-size: 0.86rem; }

.playground-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.btn-success { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(109,179,69,0.35); }
.btn-success:hover { background: #5a9339; }
.playground-message {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #8fd19e;
  word-break: break-all;
}

@media (max-width: 600px) {
  .playground-panel-body { padding: 18px; }
  .CodeMirror { height: 260px; }
}
