/* ==========================================================================
   Estilos del Mástil Interactivo (Fretboard)
   ========================================================================== */
.fretboard-wrapper {
  padding: 10px 16px;
  background-color: var(--bg-surface-solid);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: var(--fretboard-height);
  overflow: hidden;
}

.fretboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.fretboard-title {
  font-weight: 700;
  color: var(--text-primary);
}

.fretboard-tuning-label strong {
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

.fretboard-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.fretboard-grid {
  display: inline-flex;
  background: linear-gradient(180deg, #2b1d14 0%, #1c130d 100%);
  border: 1px solid #4a3424;
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Cejuela / Nut */
.fret-column {
  display: flex;
  flex-direction: column;
  width: 48px;
  position: relative;
  border-right: 2px solid #a3a3a3; /* Traste de metal */
  flex-shrink: 0;
}

.fret-nut {
  width: 40px;
  background-color: #e5e5d8;
  border-right: 4px solid #fff;
}

.fret-number {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: center;
  padding: 2px 0;
  background-color: #0d0d11;
}

.fret-cell {
  height: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fret-cell-nut {
  background-color: #24242d;
}

.string-tuning-name {
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

/* Cuerdas de Guitarra */
.guitar-string {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #d4d4d8 0%, #71717a 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.string-1 { height: 1.2px; }
.string-2 { height: 1.6px; }
.string-3 { height: 2.2px; }
.string-4 { height: 2.8px; }
.string-5 { height: 3.4px; }
.string-6 { height: 4.0px; }
.string-7 { height: 4.5px; }
.string-8 { height: 5.0px; }

/* Marcadores de Traste (Puntos) */
.fret-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.single-dot {
  top: 50%;
  transform: translate(-50%, -50%);
}

.double-dot-1 {
  top: 25%;
  transform: translate(-50%, -50%);
}

.double-dot-2 {
  bottom: 25%;
  transform: translate(-50%, 50%);
}

/* Marcador de Nota Tocada (Animado) */
.fret-note-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff5722 0%, #d84315 100%);
  color: var(--text-primary);
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 8px #ff5722, 0 0 16px rgba(255, 87, 34, 0.5);
  animation: notePop 0.15s ease-out;
}

.marker-open-string {
  background: radial-gradient(circle, #00e676 0%, #00b0ff 100%);
  box-shadow: 0 0 8px #00e676;
}

@keyframes notePop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
