
/* ===== NAVBAR PROFESIONAL ===== */
.nav-random {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    color: white;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

.nav-random .logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease, transform 0.3s ease;
}

/* Fondo degradado al hacer hover */
.nav-links li a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: height 0.3s ease;
    border-radius: 8px;
}

/* Subrayado animado */
.nav-links li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: 0.3s;
    transform: translateX(-50%);
}

/* Hover del enlace */
.nav-links li a:hover {
    transform: translateY(-3px);
    color: #fff;
    /* opcional */
}

/* Animaciones al hacer hover */
.nav-links li a:hover::before {
    height: 100%;
}

.nav-links li a:hover::after {
    width: 80%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* Animación de hamburguesa → X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 9px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -9px);
}


@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #0077b6;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease;
        border-radius: 0 0 15px 15px;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
    }

    .nav-links li {
        text-align: center;
        padding: 15px 0;
    }