/* ── Layout principal ── */
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.header__logo {
    flex-shrink: 0;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── Nav ── */
.header__nav {
    display: flex;
    align-items: center;
}

.header__nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

/* ── Items individuales ── */
.header__item {
    color: white;
    font-weight: bold;
    font-size: calc(var(--font-size-base) * 1.25);
    padding: var(--spacing-unit);
    position: relative;
    transition: all 0.25s;
    white-space: nowrap;
    z-index: 4;
}

.header__item i {
    color: white;
}

.header__item::after {
    background-color: white;
    bottom: 0;
    content: "";
    height: 2px;
    position: absolute;
    left: 0;
    transition: all 0.25s ease-in-out;
    width: 0%;
}

.header__item:hover::after,
.header__item--active::after {
    width: 100%;
}

.header__item--active {
    box-shadow: inset 0 -2px 0 0 white;
}

/* ── Return button ── */
.return-button {
    background-color: transparent;
    border: none;
    font-weight: bold;
}

.return-button i {
    color: white;
}

/* ── Hamburger (oculto en desktop) ── */
.header__menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
}

.header__menu-button i {
    color: white;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .header__nav {
        position: static;  /* <-- cambia de relative a static */
    }

    .header__menu-button {
        display: block;
    }

    .header__nav-links {
        display: none;
        position: fixed;       /* <-- fixed en lugar de absolute */
        top: 72px;             /* <-- altura de tu header */
        left: 0;
        right: 0;
        background: var(--color-primary);
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        z-index: 1000;
    }

    .header__nav-links.open {
        display: flex;
    }

    .header__nav-links .header__item {
        width: 100%;
    }
}