/* #btnGoTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: #2B2B2B;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

#btnGoTop:hover {
    background-color: #ff1e00;
} */


#btnGoTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, #2B2B2B, #1f1f1f);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;        /* Per sota del menú (z-index: 10000) */
    display: none;       /* Amagat per defecte */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#btnGoTop:hover,
#btnGoTop:focus-visible {
    background: linear-gradient(145deg, #c71313, #e80e0e);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(199, 19, 19, 0.4);
    outline: none;
}

#btnGoTop:active {
    transform: translateY(0);
}

/* Focus visible per accessibilitat */
#btnGoTop:focus-visible {
    outline: 3px solid rgba(199, 19, 19, 0.8);
    outline-offset: 4px;
}


/* RESET ESTATS MOBILE - CRITICAL */
#btnGoTop:not(:hover):not(:focus):not(:active),
#btnGoTop:not(:hover):not(:focus) {
    background: linear-gradient(145deg, #2B2B2B, #1f1f1f) !important;
    transform: translateY(0) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
}

/* Estat actiu explícit */
#btnGoTop:active,
#btnGoTop.active {
    transform: translateY(0) !important;
    background: linear-gradient(145deg, #c71313, #e80e0e) !important;
}

/* Focus només visible al teclat */
#btnGoTop:focus:not(:focus-visible) {
    outline: none;
}



/* Responsive */
@media (max-width: 768px) {
    #btnGoTop {
        bottom: 30px;
        right: 15px;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
}
