body {
    font-family: sans-serif;
    padding: 20px;
    line-height: 1.6;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
}

h1 {
    color: #ffc107;
    text-align: center;
    font-size: 1.5em;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#boton-inicio {
    width: 100%;
    padding: 25px;
    font-size: 1.8em;
    background-color: #ffc107;
    color: black;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

#input-bpm,
#selector-metrica {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 1.3em;
    border-radius: 8px;
    border: 2px solid #ffc107;
    background-color: #1e1e1e;
    color: white;
    box-sizing: border-box;
}

#nombre-cancion-rapido,
#edit-nombre,
#edit-bpm,
#edit-metrica,
#edit-letra {
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
}

.barra-pestanas {
    display: flex;
    gap: 5px;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.pestana-btn {
    flex: 1;
    padding: 15px 5px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.pestana-btn[aria-selected="true"] {
    background: #ffc107;
    color: black;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.panel-pestana {
    display: none;
}

.panel-pestana.activo {
    display: block;
}

.oculto {
    display: none !important;
}
#btn-modo-aleatorio[aria-pressed="true"] {
    background: #ff4444 !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

#indicador-dificultad {
    border: 1px solid #ffc107;
    color: #ffc107;
}
/* ========================================== */
/* 🪛 ESTILOS DEL AFINADOR PROFESIONAL        */
/* ========================================== */

.btn-volver {
    background-color: #444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: bold;
    width: 100%;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.titulo-afinador {
    color: #007bff;
    text-align: center;
    margin-top: 0;
}

.subtitulo-afinador {
    color: #ccc;
    text-align: center;
    margin-top: 0;
    font-size: 1.1em;
}

.afinador-bloque {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #444;
}

.afinador-select {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #007bff;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.afinador-pantalla {
    background-color: #111;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.texto-cromatico {
    font-size: 4em;
    font-weight: bold;
    color: #ffc107;
}

.afinador-lectura {
    display: flex;
    justify-content: space-between;
    font-size: 1.3em;
    color: #aaa;
    margin-bottom: 15px;
}

.texto-target {
    font-weight: bold;
    color: white;
    font-size: 1.5em;
}

.afinador-medidor {
    position: relative;
    height: 100px;
    border-bottom: 2px solid #555;
    margin: 0 20px;
}

.afinador-aguja {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 90px;
    background-color: #ffc107;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    transition: transform 0.1s linear;
    border-radius: 3px;
}

.afinador-centro-luces {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.2s ease;
}

.cuerdas-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #444;
}

.boton-cuerda-afinador {
    background: transparent;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    width: 100%;
}