/* ===============================================
   LÚMINA GUITARS - Control de música de la home
   =============================================== */

/* Control de música mejorado - MODIFICADO */
.music-control {
    position: fixed;
    bottom: 2rem;       /* Abajo a la derecha: arriba van el idioma y el presupuesto */
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 6px;           /* Reducí más el gap */
    background: rgba(193, 187, 187, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;  /* Reducí aún más el padding */
    border-radius: 15px; /* Más pequeño el border-radius */
    z-index: 1000;
    transition: all 0.3s ease;
}

.music-control:hover {
    background: rgba(211, 198, 198, 0.8); 
    transform: translateY(-2px);
}

.music-btn {
    width: 24px;        /* Reducí de 30px a 24px */
    height: 24px;       /* Reducí de 30px a 24px */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 12px;    /* Reducí de 16px a 12px */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.music-btn.playing .music-note {
    animation: pulse 1.5s infinite;
    color: #000000;
}

.music-note {
    display: inline-block;
    transition: all 0.3s ease;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.2) rotate(10deg); 
        opacity: 0.8;
    }
}

/* Control de volumen */
.volume-slider {
    width: 60px;        /* Reducí de 80px a 60px */
    height: 3px;        /* Reducí de 4px a 3px */
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider:hover {
    background: rgba(255, 255, 255, 0.3);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;        /* Reducí de 12px a 10px */
    height: 10px;       /* Reducí de 12px a 10px */
    background: #000000;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #000000;
}

.volume-slider::-moz-range-thumb {
    width: 10px;        /* Reducí de 12px a 10px */
    height: 10px;       /* Reducí de 12px a 10px */
    background: #000000;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #000000;
}

.volume-value {
    color: white;
    font-size: 11px;    /* Reducí de 12px a 11px */
    min-width: 30px;    /* Reducí de 35px a 30px */
    text-align: right;
    opacity: 0.8;
}

/* Ícono de volumen */
.volume-icon {
    color: white;
    opacity: 0.8;
    font-size: 14px;    /* Reducí de 16px a 14px */
    margin-left: 5px;
}

/* Mensaje de información - MODIFICADO para nueva posición */
.music-info {
    position: fixed;
    bottom: calc(2rem + 45px); /* Justo encima del control de música */
    right: 2rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;  /* Reducí el padding */
    border-radius: 8px;
    font-size: 11px;    /* Reducí de 12px a 11px */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    max-width: 100px;
}

.music-info.show {
    opacity: 1;
}

.music-title {
    font-weight: 300;
    margin-bottom: 2px;
}

.music-artist {
    opacity: 0.7;
    font-size: 10px;    /* Reducí de 11px a 10px */
}

/* Texto solo para lectores de pantalla y buscadores */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Arriba a la derecha: idioma y botón de presupuesto */
.home-top {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 22px;
}

.home-lang {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding: 4px 2px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.home-lang:hover {
    color: #fff;
    border-color: currentColor;
}

.home-cta {
    padding: 11px 22px;
    border: 1px solid #ef7b3b;
    background: rgba(13, 13, 13, 0.35);
    color: #fff;
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, color 0.3s ease;
}

.home-cta:hover {
    background: #ef7b3b;
    color: #0d0d0d;
}

.home-lang:focus-visible,
.home-cta:focus-visible,
.music-btn:focus-visible {
    outline: 1px solid #ef7b3b;
    outline-offset: 4px;
}

/* Menú móvil: presupuesto e idioma */
.mobile-menu-links .mobile-menu-cta {
    margin-top: 10px;
    padding: 14px 22px;
    border: 1px solid #ef7b3b;
    font-size: 14px;
}

.mobile-menu-links .mobile-menu-lang {
    font-size: 13px;
    opacity: 0.7;
}

/* Botón flotante de WhatsApp en la home (encima del control de música) */
.float-btn {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease;
}

.float-btn:hover {
    transform: translateY(-3px);
}

.wa-float {
    background: #0d0d0d;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.wa-float:hover,
.wa-float:focus-visible {
    background: #fff;
    color: #0d0d0d;
    border-color: #fff;
}

.wa-float svg {
    width: 26px;
    height: 26px;
}

@media (max-width: 768px) {
    .home-top {
        top: 30px;
        right: 72px;
    }

    .home-lang {
        display: none;
    }

    .home-cta {
        padding: 8px 12px;
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .music-control {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .music-info {
        bottom: calc(1.5rem + 45px);
        right: 1.5rem;
    }

    .float-btn {
        width: 44px;
        height: 44px;
    }

    .float-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .home-top {
        top: 26px;
        right: 64px;
    }
}

/* Con el menú móvil abierto, los elementos flotantes no se superponen */
body.menu-is-open .float-btn,
body.menu-is-open .music-control,
body.menu-is-open .music-info,
body.menu-is-open .home-top {
    visibility: hidden;
}
