/* ===== CONTROL DE SONIDO - EVALUACION ===== */

.evaluacion-sound-toggle {
    position: fixed;
    top: clamp(0.75rem, 2vw, 1.25rem);
    right: clamp(0.75rem, 2vw, 1.25rem);
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.36);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(18, 18, 28, 0.88), rgba(8, 8, 12, 0.78)),
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.22), transparent 48%);
    color: #f5d76e;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34), 0 0 24px rgba(212, 175, 55, 0.14);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.evaluacion-sound-toggle:hover,
.evaluacion-sound-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(245, 215, 110, 0.74);
    color: #fff3a8;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42), 0 0 30px rgba(212, 175, 55, 0.24);
    outline: none;
}

.evaluacion-sound-toggle:active {
    transform: translateY(0);
}

.evaluacion-sound-toggle__bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    width: 18px;
    height: 16px;
}

.evaluacion-sound-toggle__bars span {
    display: block;
    width: 4px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 8px rgba(245, 215, 110, 0.45);
    transform-origin: bottom;
}

.evaluacion-sound-toggle__bars span:nth-child(1) {
    height: 8px;
}

.evaluacion-sound-toggle__bars span:nth-child(2) {
    height: 13px;
}

.evaluacion-sound-toggle__bars span:nth-child(3) {
    height: 10px;
}

.evaluacion-sound-toggle.is-on .evaluacion-sound-toggle__bars span {
    animation: evaluacionSoundPulse 1.25s ease-in-out infinite;
}

.evaluacion-sound-toggle.is-on .evaluacion-sound-toggle__bars span:nth-child(2) {
    animation-delay: 0.12s;
}

.evaluacion-sound-toggle.is-on .evaluacion-sound-toggle__bars span:nth-child(3) {
    animation-delay: 0.24s;
}

.evaluacion-sound-toggle:not(.is-on) {
    color: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(10, 10, 14, 0.78);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.evaluacion-sound-toggle:not(.is-on) .evaluacion-sound-toggle__bars span {
    opacity: 0.45;
    transform: scaleY(0.45);
}

@keyframes evaluacionSoundPulse {
    0%, 100% {
        transform: scaleY(0.68);
        opacity: 0.72;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .evaluacion-sound-toggle {
        min-height: 38px;
        padding: 0.55rem 0.68rem;
        font-size: 0.64rem;
    }

    .evaluacion-sound-toggle__bars {
        width: 16px;
        height: 14px;
    }
}

@media (max-width: 420px) {
    .evaluacion-sound-toggle {
        top: 0.6rem;
        right: 0.6rem;
    }

    .evaluacion-sound-toggle__label {
        display: none;
    }
}
