/* =========================================================
   DOBLE-CE | NAVEGACIÓN
   ========================================================= */

nav {
    background-color: var(--color1);
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    height: var(--nav-height);
    box-shadow: 0 2px 20px rgba(45, 62, 40, 0.30);
    border-bottom: 2px solid var(--color3);
}

.logo {
    color: var(--color5);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    font-style: italic;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.25s;
}

.logo:hover {
    color: var(--color3);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--color5);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.25s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color3);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color3);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    color: var(--color5);
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

/* =========================================================
   RESPONSIVE — NAVEGACIÓN
   ========================================================= */
@media (max-width: 900px) {
    nav {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 0 16px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--color1);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.4s ease, padding 0.4s ease;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        max-height: 380px;
        padding: 20px 0;
        gap: 22px;
    }

    .nav-links a::after {
        display: none;
    }
}