/* Tooltip global */
#globalTooltip {
    position: fixed;
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    /* ✅ CAMBIO: Permitir multi-línea si es necesario */
    white-space: normal;
    max-width: 300px; /* Ancho máximo para evitar tooltips muy anchos */
    word-wrap: break-word;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}

/* ✅ AÑADIR: Clase para deshabilitar transiciones */
#globalTooltip.no-transition {
    transition: none !important;
}

#globalTooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

#globalTooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}