Custom capabilities not reflecting on admin panel

Found it!
I was missing one custom capability. To the code above, I added this line:

$rol->add_cap( 'edit_' . $cap[0] );

It gives the capability edit_ctpsinglename. (edit_pb_publicacion).
And now it works just fine.
Hope someone find’s this useful.

tech