/* ==========================================================================
   TACTICAL STUDIO — menu.css
   Navegación (.site-nav). Cargar después de reset.css + main.css.
   ========================================================================== */

.site-nav {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.5rem var(--container-padding);
}

.logo {
    padding: 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    color: var(--black);
}

.logo img {
    height: var(--logo-height);
    padding: 0;
    vertical-align: middle;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
    z-index: 1001;
    cursor: pointer;
}

.hamburger span {
    width: 1.75rem;
    height: 2px;
    background: var(--black);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 18.75rem;
    height: 100vh;
    padding: 6rem 2rem;
    list-style: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
}

.nav-links.active {
    right: 0;
}

.nav-links a {
    position: relative;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--grey);
}

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

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.lang-switch a {
    color: var(--grey);
    transition: color 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a.is-active {
    color: var(--red);
}

.lang-switch .sep {
    color: var(--grey-light);
}

@media (min-width: 1280px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        gap: 3rem;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        bottom: -0.5rem;
        left: 50%;
        width: 0;
        height: 1px;
        background: var(--red);
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

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