.nav-link {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #007bff; /* Cambia el color del texto al hacer hover */
}

.nav-link:hover::after {
    width: 100%; /* La línea subrayará completamente el texto */
}