details {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

/* Evitar que summary salte de línea */
summary > * {
    display: inline;
    vertical-align: middle;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: 110%; /* Mover encima de la imagen */
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    /*white-space: nowrap;*/
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    font-size: 14px;
    width: 150px;
    text-align: center;
}

details[open] .tooltip {
    opacity: 1;
    pointer-events: auto;
}