/* ── Base ─────────────────────────────── */
.navbar-container {
    --color-primary: black;
    --text-inverse: white;
    --hamburger-icon-color: white;
    --menu-mobile-bg: white;
    --menu-mobile-text: #333;

    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 10px 16px;
    position: relative;
    background-color: var(--color-primary);
    color: var(--text-inverse);
    text-align: center;
}

.logo {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* ── Botón hamburguesa ───────────────── */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--hamburger-icon-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Menú móvil ──────────────────────── */
.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;

    display: flex;
    flex-direction: column;
    align-items: center;

    max-height: 0;
    overflow: hidden;

    list-style: none;
    margin: 0;
    padding: 0;

    background-color: var(--menu-mobile-bg);
    color: var(--menu-mobile-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: max-height 0.3s ease;
}

.nav-links.open {
    max-height: 300px;
}

.nav-links li {
    width: 100%;
}

.nav-links li a {
    display: block;
    padding: 12px 16px;
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s;
}

.nav-links li:last-child a {
    border-bottom: none;
}

.nav-links li a:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* ── Desktop ─────────────────────────── */
@media (min-width: 600px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        gap: 24px;
        max-height: none;
        overflow: visible;
        background-color: transparent;
        color: inherit;
        box-shadow: none;
    }

    .nav-links li {
        width: auto;
    }

    .nav-links li a {
        padding: 0;
        border-bottom: none;
    }

    .nav-links li a:hover {
        background-color: transparent;
        opacity: 0.6;
    }
}