/**
 * PyroStudio FX - Simulador de Fuegos Artificiales y Pirotecnia Digital
 * Estilos canónicos de Hardware Industrial, Consola Pirotécnica y Controles Táctiles
 */

:root {
  --bg-primary: #07090e;
  --bg-surface: #0e131f;
  --bg-surface-elevated: #151d30;
  --bg-surface-glass: rgba(14, 19, 31, 0.82);
  --border-color: #232e47;
  --border-color-glow: rgba(56, 189, 248, 0.35);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-gold: #fbbf24;

  --led-safe-green: #22c55e;
  --led-armed-red: #ef4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tipografías canónicas */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.mono {
  font-family: var(--font-mono);
}

/* Layout principal de herramienta */
.tool-layout {
  max-width: 1200px;
  margin: 1rem auto 3rem;
  padding: 0 1rem;
  width: 100%;
}

.tool-with-sidebar {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Tarjeta principal del simulador */
.pyro-station-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

/* Marco del cielo interactivo (Canvas) */
.sky-viewport-wrapper {
  position: relative;
  width: 100%;
  height: clamp(340px, 58vh, 620px);
  background: #02040a;
  border-bottom: 2px solid var(--border-color);
  user-select: none;
  touch-action: none;
  cursor: crosshair;
  overflow: hidden;
}

#pyro-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Superposiciones HUD sobre el cielo */
.sky-hud-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 8px;
}

.hud-badge {
  background: rgba(14, 19, 31, 0.85);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  pointer-events: auto;
}

.hud-badge.live-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hud-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.btn-hud {
  background: rgba(14, 19, 31, 0.85);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.btn-hud:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

.btn-hud.muted svg path {
  opacity: 0.4;
}

/* Barra de progreso de espectáculo automático */
.show-progress-box {
  display: none;
  background: #090e1a;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
}

.show-progress-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  transition: width 0.1s linear;
}

/* ==========================================================================
   Consola Pirotécnica Profesional PyroStudio FX (Hardware Industrial)
   ========================================================================== */

.pyro-hardware-console {
  padding: 1.25rem;
  background: linear-gradient(180deg, #151b27 0%, #0d121c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Pantalla digital técnica unificada de ancho completo */
.console-screens-wrapper {
  width: 100%;
}

.screen-workspace-full {
  width: 100%;
  background: #05080e;
  border: 2px solid #1c273c;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.95), 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
}

/* 1. Osciloscopio de Audio / Sync de ancho completo */
.audio-sync-section {
  width: 100%;
}

.screen-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screen-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #162033;
  padding-bottom: 4px;
}

.sub-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.sub-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #38bdf8;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-status.status-online {
  color: #34d399;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Conmutador de Bancos A/B de la Cue Matrix */
.cue-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cue-bank-switcher {
  display: inline-flex;
  background: #020611;
  border: 1px solid #132238;
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 3px;
}

.btn-bank-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-bank-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.btn-bank-tab.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 1px 6px rgba(2, 132, 199, 0.45);
}

.btn-bank-tab[data-bank="B"].active {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 1px 6px rgba(234, 88, 12, 0.45);
}

/* 1. Osciloscopio Audio / Sync */
.oscilloscope-container {
  background: #02050a;
  border: 1px solid #132238;
  border-radius: var(--radius-sm);
  height: 54px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9);
}

#canvas-oscilloscope {
  width: 100%;
  height: 100%;
  display: block;
}

.osc-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(0, 242, 254, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.06) 1px, transparent 1px);
  background-size: 24px 16px;
}

/* Contenedor dual para mostrar Banco A y Banco B simultáneamente */
.cue-banks-dual-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cue-bank-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(11, 19, 34, 0.45);
  border: 1px solid rgba(30, 44, 69, 0.6);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.cue-bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 4px;
  border-bottom: 1px solid rgba(30, 44, 69, 0.35);
}

.cue-bank-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cue-bank-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}

.tag-bank-a {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.tag-bank-b {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.cue-bank-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

/* 2. Matriz de Cues panorámica: 8 columnas en pantallas grandes */
.cue-matrix-wide {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

@media (max-width: 1200px) {
  .cue-matrix-wide {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .cue-matrix-wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn-cue {
  width: 100%;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-cue .cue-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.btn-cue .cue-name {
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  opacity: 0.92;
}

/* Variantes cromáticas de pads retroiluminados */
.pad-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  box-shadow: inset 0 0 8px rgba(245, 158, 11, 0.2);
}
.pad-amber:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4), inset 0 0 10px rgba(245, 158, 11, 0.3);
}

.pad-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
  box-shadow: inset 0 0 8px rgba(16, 185, 129, 0.2);
}
.pad-emerald:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4), inset 0 0 10px rgba(16, 185, 129, 0.3);
}

.pad-orange {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: #fed7aa;
  box-shadow: inset 0 0 8px rgba(249, 115, 22, 0.2);
}
.pad-orange:hover {
  background: rgba(249, 115, 22, 0.22);
  border-color: #fb923c;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

.pad-purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #f5d0fe;
  box-shadow: inset 0 0 8px rgba(168, 85, 247, 0.2);
}
.pad-purple:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: #c084fc;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.pad-cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #cffafe;
  box-shadow: inset 0 0 8px rgba(6, 182, 212, 0.2);
}
.pad-cyan:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.pad-blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #bfdbfe;
  box-shadow: inset 0 0 8px rgba(59, 130, 246, 0.2);
}
.pad-blue:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.pad-red {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  box-shadow: inset 0 0 8px rgba(239, 68, 68, 0.2);
}
.pad-red:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.btn-cue:active, .btn-cue.cue-fired {
  transform: scale(0.96);
  filter: brightness(1.7);
  box-shadow: 0 0 18px currentColor;
}

.btn-cue.cue-testing {
  background: rgba(16, 185, 129, 0.4);
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.8);
}

/* 3. Secuenciador / Línea de tiempo con cabezal en vivo */
.sequence-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  padding: 0 2px;
}

.seq-tag strong {
  color: #38bdf8;
}

.cues-active-tag {
  color: #10b981;
}

/* Barra de herramientas del editor interactivo */
.timeline-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid #141e30;
  flex-wrap: wrap;
}

.timeline-toolbar-left,
.timeline-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.timeline-duration-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.timeline-sublabel {
  font-size: 0.65rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.btn-timeline-tool {
  background: #0b1322;
  border: 1px solid #1e2c45;
  color: #38bdf8;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.70rem;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  height: 26px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-timeline-tool:hover {
  background: #14223b;
  border-color: #38bdf8;
  color: #ffffff;
}

.btn-timeline-danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-timeline-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

.timeline-transport-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-timeline-tool.btn-timeline-play {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.btn-timeline-tool.btn-timeline-play:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
  color: #86efac;
}

.btn-timeline-tool.btn-timeline-play.active {
  background: #22c55e;
  border-color: #16a34a;
  color: #052e16;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.btn-timeline-tool.active {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
}

.timeline-select-sm {
  background: #090f1d;
  border: 1px solid #1e2c45;
  color: #cbd5e1;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  height: 26px;
  max-width: 140px;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.timeline-select-sm:focus {
  outline: none;
  border-color: #38bdf8;
}

.timeline-container {
  background: #03060c;
  border: 1px solid #141d2e;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.timeline-ruler {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #64748b;
  font-family: var(--font-mono);
  margin-bottom: 5px;
  border-bottom: 1px solid #121a28;
  padding-bottom: 2px;
  user-select: none;
}

.timeline-tracks {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.timeline-playhead {
  position: absolute;
  top: -22px;
  bottom: 0;
  width: 2px;
  background: #00f2fe;
  box-shadow: 0 0 8px #00f2fe;
  z-index: 10;
  left: 0%;
  pointer-events: none;
  transition: left 0.05s linear;
}

.timeline-playhead::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  background: #00f2fe;
  transform: rotate(45deg);
  box-shadow: 0 0 6px #00f2fe;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-label {
  width: 52px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: #64748b;
  text-align: right;
  flex-shrink: 0;
  font-weight: 600;
  user-select: none;
}

.track-lane {
  flex: 1;
  height: 22px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  transition: background 0.15s, border-color 0.15s;
}

.track-lane:hover {
  background: rgba(22, 36, 62, 0.75);
  border-color: rgba(56, 189, 248, 0.35);
}

.clip-block {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 3px;
  font-size: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 0 6px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  opacity: 0.88;
  user-select: none;
  touch-action: none;
  transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.clip-block:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.clip-block.is-dragging {
  cursor: grabbing;
  opacity: 1;
  transform: scale(1.03);
  z-index: 20;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.7);
}

.clip-block.firing {
  animation: clipFiringFlash 0.8s ease-out;
  z-index: 15;
}

@keyframes clipFiringFlash {
  0% {
    filter: brightness(2.6);
    box-shadow: 0 0 14px #ffffff, 0 0 20px #00f2fe;
    transform: scale(1.05);
  }
  50% {
    filter: brightness(1.6);
    box-shadow: 0 0 8px #00f2fe;
  }
  100% {
    filter: brightness(1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transform: scale(1);
  }
}

.clip-title-span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.clip-time-tag {
  font-size: 0.55rem;
  opacity: 0.75;
  font-family: var(--font-mono);
  margin-left: 4px;
  pointer-events: none;
}

.clip-red {
  background: rgba(239, 68, 68, 0.38);
  border-left: 3px solid #ef4444;
  color: #fecaca;
}

.clip-green {
  background: rgba(16, 185, 129, 0.38);
  border-left: 3px solid #10b981;
  color: #a7f3d0;
}

.clip-gold {
  background: rgba(245, 158, 11, 0.38);
  border-left: 3px solid #f59e0b;
  color: #fde68a;
}

.clip-magenta {
  background: rgba(217, 70, 239, 0.38);
  border-left: 3px solid #d946ef;
  color: #f5d0fe;
}

.clip-cyan {
  background: rgba(6, 182, 212, 0.38);
  border-left: 3px solid #06b6d4;
  color: #cffafe;
}

.clip-amber {
  background: rgba(249, 115, 22, 0.38);
  border-left: 3px solid #f97316;
  color: #fed7aa;
}

.clip-salute {
  background: rgba(255, 255, 255, 0.35);
  border-left: 3px solid #ffffff;
  color: #ffffff;
}

/* Pantalla Derecha (Telemetría, Radar HUD y DMX) */
.screen-right-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1a2538;
  padding-bottom: 6px;
}

.brand-badge-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fire-icon {
  font-size: 0.95rem;
}

.brand-title-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.08em;
}

.telemetry-bar-inline {
  display: flex;
  gap: 8px;
  font-size: 0.68rem;
  color: #38bdf8;
  font-family: var(--font-mono);
}

@media (max-width: 640px) {
  .telemetry-bar-inline {
    flex-direction: column;
    gap: 2px;
    text-align: right;
  }
}

.screen-right-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .screen-right-body {
    grid-template-columns: 1fr;
  }
}

/* Radar Scope HUD */
.radar-telemetry-box {
  background: #03060c;
  border: 1px solid #141e30;
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.radar-hud-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.radar-scope-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(0, 242, 254, 0.3);
  position: relative;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
  overflow: hidden;
}

.scope-crosshair-x {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 242, 254, 0.25);
}

.scope-crosshair-y {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 242, 254, 0.25);
}

.scope-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(0, 242, 254, 0.18);
}
.scope-ring.ring-1 { width: 40px; height: 40px; }
.scope-ring.ring-2 { width: 80px; height: 80px; }
.scope-ring.ring-3 { width: 118px; height: 118px; }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(0, 242, 254, 0.22) 360deg);
  animation: radarSpin 3.5s linear infinite;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.scope-target-blip {
  position: absolute;
  top: 35%;
  left: 65%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.scope-target-blip.active {
  opacity: 1;
  transform: scale(1.4);
}

.radar-hud-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.screen-line-primary {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.screen-line-primary.status-armed {
  color: #ef4444;
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.screen-line-secondary {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
}

/* Diales de estado y tabla de canales */
.status-and-channels-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
}

.status-monitors-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-gauge {
  background: #03060c;
  border: 1px solid #141e30;
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.gauge-svg {
  width: 34px;
  height: 34px;
}

.gauge-bg {
  fill: none;
  stroke: #1e293b;
  stroke-width: 3.5;
}

.gauge-val {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.gauge-val.gauge-emerald { stroke: #10b981; }
.gauge-val.gauge-cyan { stroke: #00f2fe; }

.gauge-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.gauge-num {
  font-size: 0.72rem;
  color: #f1f5f9;
}

.channel-config-table {
  background: #03060c;
  border: 1px solid #141e30;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.channel-config-table .table-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid #141d2e;
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.channel-config-table .table-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.channel-config-table .t-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  color: #cbd5e1;
  align-items: center;
}

.tag-ok {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  text-align: center;
  font-size: 0.62rem;
}

/* ==========================================================================
   Cubierta Física de Control Inferior (Hardware Deck)
   ========================================================================== */

.console-physical-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, #111724 0%, #080b12 100%);
  border: 1px solid #222e44;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.6);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .console-physical-deck {
    justify-content: center;
    gap: 1.25rem;
  }
}

.deck-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.deck-module-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* 1. Módulo de Seguridad: Palanca con Tapa Abatible Roja */
.safety-module-deck {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.safety-switch-assembly {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080c14;
  border: 2px solid #1e283d;
  border-radius: 8px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.safety-cover {
  position: absolute;
  inset: -3px;
  background: rgba(220, 38, 38, 0.78);
  border: 2px solid #ef4444;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
  transform-origin: top center;
  z-index: 5;
}

.safety-cover.open {
  transform: rotateX(112deg) translateY(-8px);
  opacity: 0.55;
}

.cover-handle {
  width: 14px;
  height: 3px;
  background: #fecaca;
  border-radius: 2px;
  margin-bottom: 2px;
}

.cover-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.metal-toggle-switch {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.switch-stick {
  width: 8px;
  height: 26px;
  background: linear-gradient(90deg, #94a3b8, #f8fafc, #64748b);
  border-radius: 4px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
  transform-origin: bottom center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  transform: rotate(-22deg);
}

.switch-stick.armed {
  transform: rotate(22deg);
  background: linear-gradient(90deg, #ef4444, #fca5a5, #b91c1c);
  box-shadow: 0 0 12px #ef4444;
}

.safety-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
}

.label-top {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.label-bottom {
  font-size: 0.75rem;
  font-weight: 800;
  color: #10b981;
}

.label-bottom.armed-active {
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

/* 2. Potenciómetro Rotatorio Moleteado (Master Fade) */
.knob-module-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rotary-knob-container {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotary-knob {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #334155, #0f172a 70%);
  border: 2px solid #475569;
  position: relative;
  cursor: grab;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.25);
  touch-action: none;
}

.rotary-knob:active {
  cursor: grabbing;
}

.knob-pointer {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 10px;
  background: #00f2fe;
  border-radius: 2px;
  box-shadow: 0 0 6px #00f2fe;
}

/* 3. Vúmetros LED Multicanal DMX */
.vu-meters-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vu-meter-rack {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  height: 50px;
  padding: 4px 6px;
  background: #05080e;
  border: 1px solid #1a2538;
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.vu-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.vu-bar {
  width: 10px;
  height: 34px;
  background: #0b111c;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.vu-fill {
  width: 100%;
  background: linear-gradient(0deg, #10b981 0%, #10b981 50%, #f59e0b 50%, #f59e0b 80%, #ef4444 80%, #ef4444 100%);
  transition: height 0.08s ease-out;
}

.vu-fill-rf {
  background: linear-gradient(0deg, #0284c7, #38bdf8);
}

.vu-name {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
}

/* 4. Botonera Táctil de Transporte */
.transport-deck {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
}

.btn-transport {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 46px;
  height: 44px;
  background: #111827;
  border: 1px solid #1f293d;
  border-radius: 6px;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-transport:hover {
  color: #f8fafc;
  border-color: #38bdf8;
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-transport:active, .btn-transport.active {
  background: #1e3a8a;
  color: #38bdf8;
  border-color: #60a5fa;
}

/* 5. Pulsador Maestro FIRE */
.fire-module-deck {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-fire-tactile {
  width: 72px;
  height: 48px;
  background: radial-gradient(circle at 40% 30%, #78350f, #451a03);
  border: 2px solid #b45309;
  border-radius: 8px;
  color: #fef3c7;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  position: relative;
}

.btn-fire-tactile.fire-ready {
  background: radial-gradient(circle at 40% 30%, #dc2626, #7f1d1d);
  border-color: #ef4444;
  color: #ffffff;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  animation: fireGlowPulse 1.4s infinite alternate;
}

@keyframes fireGlowPulse {
  0% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); }
  100% { box-shadow: 0 0 24px rgba(239, 68, 68, 0.8); }
}

.btn-fire-tactile.fire-ready:hover {
  background: radial-gradient(circle at 40% 30%, #ef4444, #991b1b);
  transform: translateY(-1px);
}

.btn-fire-tactile.fire-ready:active {
  transform: translateY(1px);
  filter: brightness(1.2);
}

/* 6. Indicadores LED de Estado */
.system-leds-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.system-led-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deck-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #334155;
  transition: var(--transition-fast);
}

.deck-led.active.led-green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.deck-led.active.led-red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.deck-led-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================================
   Cajón Técnico: Espectáculos y Configuración Balística
   ========================================================================== */

.console-tools-drawer {
  padding: 1.25rem;
  background: #090e18;
  border-top: 1px solid #1a2538;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.action-buttons-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .action-buttons-strip {
    grid-template-columns: 1fr;
  }
}

.btn-test-action, .btn-estop-action {
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-test-action {
  background: #0d1728;
  color: #38bdf8;
  border: 1px solid #1e3a8a;
}
.btn-test-action:hover {
  background: #16243d;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.btn-estop-action {
  background: #270d10;
  color: #fca5a5;
  border: 1px solid #7f1d1d;
}
.btn-estop-action:hover {
  background: #3f1217;
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.shows-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rack-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rack-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

@media (max-width: 900px) {
  .shows-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .shows-grid {
    grid-template-columns: 1fr;
  }
}

.btn-show {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  background: #0d1527;
  border: 1px solid #1e3a8a;
  border-radius: var(--radius-sm);
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-show:hover {
  background: #18233c;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

/* Panel inferior de Ajustes y Balística */
.console-settings-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: #060910;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

@media (max-width: 900px) {
  .console-settings-panel {
    grid-template-columns: 1fr;
  }
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.setting-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* Estándar Canónico de Selects en Móvil */
.select-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 10px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

.select-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

.range-slider {
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: var(--radius-full);
  outline: none;
  accent-color: var(--accent-cyan);
  cursor: pointer;
  margin: 10px 0 4px;
}

.toggles-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

@media (max-width: 500px) {
  .toggles-group {
    grid-template-columns: 1fr;
  }
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Artículos educativos de química y pirotecnia */
.pyro-info-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pyro-elements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.element-card {
  background: #090e1a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.element-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.element-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.element-color-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
}

.element-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Preguntas Frecuentes (FAQ) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #090e1a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  color: #f8fafc;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Modales accesibles */
.pyro-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pyro-modal-backdrop.active {
  display: flex;
}

.pyro-modal-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color-glow);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.15rem;
  color: #ffffff;
}

.btn-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.btn-modal-close:hover {
  color: #ffffff;
}

.btn-modal-action {
  width: 100%;
  min-height: 42px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-modal-action:hover {
  background: #0ea5e9;
}

/* Botonera de acciones rápidas (Bombardeo Benidorm, Test y E-Stop) */
.action-buttons-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn-benidorm-action {
  flex: 2;
  min-height: 42px;
  background: linear-gradient(135deg, #b45309 0%, #dc2626 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: var(--transition-fast);
}

.btn-benidorm-action:hover {
  background: linear-gradient(135deg, #d97706 0%, #ef4444 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55);
}

.btn-benidorm-action:active {
  transform: translateY(1px);
  filter: brightness(1.2);
}

.btn-test-action, .btn-estop-action {
  flex: 1;
  min-height: 42px;
  background: #0b1220;
  border: 1px solid #22324d;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-test-action:hover {
  background: #16243d;
  color: #38bdf8;
  border-color: #38bdf8;
}

.btn-estop-action {
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-estop-action:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ffffff;
  border-color: #ef4444;
}

/* Espectáculos automáticos sincronizados */
.shows-section {
  margin-top: 14px;
  background: #05080e;
  border: 1px solid #141d2e;
  border-radius: var(--radius-sm);
  padding: 10px;
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.btn-show {
  min-height: 40px;
  background: #090f1d;
  border: 1px solid #1c2a42;
  border-radius: 4px;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-show:hover {
  background: #142238;
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Panel de ajustes balísticos */
.console-settings-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
  background: #05080e;
  border: 1px solid #141d2e;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setting-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  height: 38px;
  background: #03060c;
  border: 1px solid #1c2a42;
  border-radius: 4px;
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0 8px;
  cursor: pointer;
}

.select-input:focus {
  outline: none;
  border-color: #38bdf8;
}
