.sonido-toggle{position:fixed;z-index:90;left:calc(clamp(1rem,2vw,1.6rem) + 5px);bottom:calc(var(--wa-bottom, clamp(1rem, 2vw, 1.6rem)) + 62px + .9rem + 54px + .7rem);display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #d5e3eb;border-radius:50%;background:linear-gradient(150deg,#fff,#eef5f8);box-shadow:0 5px 16px rgba(11,42,67,.18);color:#17416a;cursor:pointer;transition:transform .2s,box-shadow .2s}
.sonido-toggle svg{width:22px;height:22px}.sonido-toggle[aria-pressed=false] .sonido-ondas,.sonido-toggle[aria-pressed=true] .sonido-silencio{display:none}.sonido-toggle:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(11,42,67,.24)}.sonido-toggle:focus-visible{outline:3px solid #e49e44;outline-offset:3px}
@media(max-width:860px){.sonido-toggle{left:12px;bottom:calc(70px + env(safe-area-inset-bottom));width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){.sonido-toggle{transition:none}}

.sonido-toggle{opacity:0;pointer-events:none;transition:opacity .25s ease,transform .2s,box-shadow .2s}
.sonido-toggle.sonido-visible{opacity:1;pointer-events:auto}
@media(prefers-reduced-motion:reduce){.sonido-toggle{transition:none}}
.sonido-toggle{visibility:hidden}.sonido-toggle.sonido-visible{visibility:visible}

/* Sincronizar los accesos flotantes también en las páginas interiores. */
body.flotantes-en-inicio .wa-fab,body.flotantes-en-inicio .asistente-btn{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
/* Mantener el desvanecimiento antes de retirar los controles ocultos. */
body .wa-fab,body .asistente-btn,body .sonido-toggle{transition-property:opacity,transform,box-shadow,visibility;transition-duration:.25s,.2s,.2s,0s;transition-delay:0s,0s,0s,0s}
body.flotantes-en-inicio .wa-fab,body.flotantes-en-inicio .asistente-btn,body .sonido-toggle:not(.sonido-visible){transition-delay:0s,0s,0s,.25s}
@media(prefers-reduced-motion:reduce){body .wa-fab,body .asistente-btn,body .sonido-toggle{transition:none}}
/* Aro del asistente más fino; el botón de WhatsApp no se modifica. */
.asistente-btn .asistente-btn__icon{width:50px;height:50px}
/* El asistente comparte el acabado limpio y la sombra del megáfono. */
.asistente-btn{box-sizing:border-box;border:1px solid #d5e3eb;background:linear-gradient(150deg,#fff,#eef5f8);box-shadow:0 5px 16px rgba(11,42,67,.18)}
.asistente-btn:hover{box-shadow:0 8px 20px rgba(11,42,67,.24)}
.asistente-btn .asistente-btn__icon{width:48px;height:48px;background:transparent}
/* Igualar diámetros tomando como referencia los 62 px de WhatsApp. */
.asistente-btn,.sonido-toggle{box-sizing:border-box;width:62px;height:62px;left:clamp(1rem,2vw,1.6rem);border:1px solid #d5e3eb;border-radius:50%;background:linear-gradient(150deg,#fff,#eef5f8);box-shadow:0 5px 16px rgba(11,42,67,.18)}
.asistente-btn:hover,.sonido-toggle:hover{box-shadow:0 8px 20px rgba(11,42,67,.24)}
.asistente-btn .asistente-btn__icon{width:56px;height:56px}
.sonido-toggle{bottom:calc(var(--wa-bottom, clamp(1rem, 2vw, 1.6rem)) + 62px + .9rem + 62px + .7rem)}
.sonido-toggle svg{width:26px;height:26px}
@media(max-width:860px){.sonido-toggle{left:clamp(1rem,2vw,1.6rem);bottom:calc(70px + env(safe-area-inset-bottom))}}
/* Centrar el isotipo sin el espacio transparente original. */
.asistente-btn{padding:0;place-items:center}
.asistente-btn .asistente-btn__icon{display:grid;place-items:center}
.asistente-btn .asistente-btn__logo{display:block;width:auto;height:36px;max-width:42px;object-fit:contain;margin:0}
/* Orden: WhatsApp abajo, sonido al centro y asistente arriba. */
@media(min-width:861px){
.sonido-toggle{bottom:calc(var(--wa-bottom, clamp(1rem, 2vw, 1.6rem)) + 62px + .9rem)}
.asistente-btn{bottom:calc(var(--wa-bottom, clamp(1rem, 2vw, 1.6rem)) + 62px + .9rem + 62px + .7rem)}
}
