/* Clase para la razón social */
.razon-social-tooltip {
    position: relative;
    cursor: pointer;
    /* Cambiar el puntero al pasar el mouse */
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Ícono de copiar */
.copy-icon {
    cursor: pointer;
    margin-left: 5px;
    color: #007bff;
    /* Color azul para el ícono */
    font-size: 14px;
    vertical-align: middle;
    transition: color 0.3s;
}

.copy-icon:hover {
    color: #0056b3;
    /* Azul más oscuro al pasar el mouse */
}

/* Tooltip personalizado */
.razon-social-tooltip::after {
    content: attr(title);
    /* Usar el atributo title como contenido */
    visibility: hidden;
    opacity: 0;
    background-color: #333;
    /* Fondo negro */
    color: #fff;
    /* Texto blanco */
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    /* Mostrar arriba del texto */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    transition: opacity 0.3s;
    font-size: 12px;
}

/* Flecha del tooltip */
.razon-social-tooltip::before {
    content: "";
    position: absolute;
    bottom: 115%;
    /* Posicionar cerca del tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
    /* Flecha negra */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Mostrar el tooltip al pasar el mouse */
.razon-social-tooltip:hover::after,
.razon-social-tooltip:hover::before {
    visibility: visible;
    opacity: 1;
}

/* Estilo principal del modal */
.modal-custom {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background-color: #ffffff;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 9999;
    text-align: center;
    font-family: Arial, sans-serif;
    overflow: hidden;
    animation: fadeIn 0.3s ease-in-out;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


.custom-tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    font-size: 12px;
    position: absolute;
    bottom: 125%;
    /* Aparece arriba del ícono */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}