
/* ==========================================
   BODA NEFTA Y CECI
   CONTROL MUSICAL PREMIUM
========================================== */

.boton-musica {

    position: fixed;

    right: 30px;
    bottom: 90px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #e8d7b5;
    border-radius: 50%;

    background: linear-gradient(
        145deg,
        #d8bd83,
        #b8934e,
        #927039
    );

    color: #fffdf7;

    box-shadow:
        0 4px 18px #80602e40,
        inset 0 0 0 3px #ffffff30;

    cursor: pointer;

    z-index: 1000;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;

    animation: pulsoMusical 3s infinite;

}

/* ICONO MUSICAL */

.icono-musical {

    font-family: Georgia, serif;
    font-size: 30px;
    line-height: 1;

}

/* EFECTO AL PASAR EL CURSOR */

.boton-musica:hover {

    transform: scale(1.08);

    box-shadow:
        0 6px 25px #b8934e66,
        inset 0 0 0 3px #ffffff40;

}

/* EFECTO AL PRESIONAR */

.boton-musica:active {

    transform: scale(0.95);

}

/* ACCESIBILIDAD DEL TECLADO */

.boton-musica:focus-visible {

    outline: 3px solid #80602e;
    outline-offset: 4px;

}

/* MÚSICA SILENCIADA */

.boton-musica.musica-silenciada {

    opacity: 0.75;

    background: linear-gradient(
        145deg,
        #c9c0ae,
        #908775
    );

    animation: none;

}

/* LÍNEA DE SILENCIO */

.boton-musica.musica-silenciada::after {

    content: "";

    position: absolute;

    width: 32px;
    height: 2px;

    background: #fffdf7;

    transform: rotate(-45deg);

}

/* ANIMACIÓN SUAVE */

@keyframes pulsoMusical {

    0%, 100% {

        box-shadow: 0 4px 15px #b8934e40;

    }

    50% {

        box-shadow: 0 4px 25px #b8934e80;

    }

}

/* RESPETAR EL ESTADO OCULTO */

.boton-musica[hidden] {

    display: none !important;

}

/* DISEÑO PARA CELULARES */

@media (max-width: 600px) {

    .boton-musica {

        right: 20px;

        bottom: calc(
            85px + env(safe-area-inset-bottom, 0px)
        );

        width: 48px;
        height: 48px;

    }

    .icono-musical {

        font-size: 25px;

    }

}

/* ACCESIBILIDAD DE MOVIMIENTO */

@media (prefers-reduced-motion: reduce) {

    .boton-musica {

        animation: none;
        transition: none;

    }

}

/* ==========================================
   FIN DEL CONTROL MUSICAL PREMIUM
========================================== */
