.bmi-boton-musica {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #FF5733;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

/* Efecto hover */
.bmi-boton-musica:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Efecto al hacer clic */
.bmi-boton-musica:active {
    transform: scale(0.95);
}

/* Contenedor de las barras de onda de sonido */
.bmi-wave-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    width: 20px;
    gap: 4px;
}

/* Barras de sonido individuales */
.bmi-sound-bar {
    width: 3px;
    height: 10px;
    background-color: white;
    border-radius: 1.5px;
    transition: height 0.2s ease;
}

/* Barras cuando no está reproduciendo */
.bmi-boton-musica:not(.bmi-playing) .bmi-sound-bar {
    height: 5px;
}

/* Animación de las barras cuando está reproduciendo */
.bmi-playing .bmi-sound-bar:nth-child(1) {
    animation: soundBar1 1.2s infinite;
}

.bmi-playing .bmi-sound-bar:nth-child(2) {
    animation: soundBar2 1.8s infinite;
}

.bmi-playing .bmi-sound-bar:nth-child(3) {
    animation: soundBar3 1.5s infinite;
}

/* Animaciones para las barras de sonido */
@keyframes soundBar1 {
    0%, 100% { height: 5px; }
    50% { height: 15px; }
}

@keyframes soundBar2 {
    0%, 100% { height: 8px; }
    30% { height: 17px; }
    60% { height: 10px; }
}

@keyframes soundBar3 {
    0%, 100% { height: 7px; }
    40% { height: 14px; }
    80% { height: 10px; }
}

/* Mostrar en dispositivos móviles */
@media only screen and (max-width: 768px) {
    .bmi-boton-musica {
        display: block;
    }
}

/* Ocultar contenedor (necesario para el funcionamiento) */
.bmi-boton-musica-container {
    display: none;
}