
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    background: rgba(0,0,0,0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; }
.btn-portal { background: var(--primary-red); padding: 8px 15px; border-radius: 5px; }



/* Estilos base del ícono Hamburguesa (escondido por defecto) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* --- MEDIA QUERY PARA CELULARES --- */
@media (max-width: 760px) {
    .hamburger {
        display: flex; /* Mostramos el ícono en pantallas chicas */
    }

    .nav-links {
        position: fixed;
        right: -100%; /* Escondido a la derecha */
        top: -50px;
        height: 100vh;
        width: 100%; /* Ocupa el 70% del ancho */
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s all ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    /* Clase que activaremos con JS para mostrar el menú */
    .nav-links.active {
        right: 0;
    }

    /* Animación de la X en el ícono cuando el menú está abierto */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

