/* Estilos básicos para móviles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-light);
    color: var(--color-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.logo {
    cursor: pointer;
}
.logo img {
    height: 50px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: none;
    flex-direction: column;
    padding: 0;
    margin: 0;
    background-color: var(--color-light);
    position: absolute;
    top: 60px; /* Ajusta según la altura de tu header */
    right: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links li {
    margin: 0.5em 0;
    text-align: center;
}

.nav-links a {
    text-decoration: none;
    font-size: 1.2em;
    color: var(--color-dark);
    padding: 1em;
    display: block;
    position: relative;
}

.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    background-color: var(--color-primary);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 80%;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: var(--color-dark);
    margin: 4px;
    border-radius: 5px;
}

/* Estilos para pantallas más grandes */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        box-shadow: none;
    }

    .nav-links li {
        margin: 0 1em;
    }

    .hamburger {
        display: none;
    }
}

/* Estilos adicionales para el menú activo */
.nav-active {
    display: flex;
}