.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    vertical-align: super;
    font-size: smaller;
    font-weight: bold;
    display: inline;
}

.tooltip .tooltiptext, .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Posición del tooltip */
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1rem;
    font-weight: normal;
}

/*
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
*/
.tooltip .visible{
    visibility: visible;
    opacity: 1;
}


@media screen and (max-width: 576px) {
    .tooltip{
        /* position: inherit;*/
        border: 0;
    }

    .tooltip .tooltiptext, .tooltiptext{
        position: absolute;
        left: 0;
        width: 96vw;
        margin-left: 6px;
        margin-right: 12px;
    }
}