header,
section.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 140px;
    background-color: var(--azul-xunta);
    z-index: 1000;
    overflow-x: hidden;
    /* Previene scroll horizontal */
    transition: box-shadow 0.3s ease;
    /* Transición suave para la sombra */
}

/* Sombra cuando se hace scroll */
header.header-scrolled,
section.header.header-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-contenedor {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
}

.header-logo img {
    display: block;
    height: 45px;
}

.header-nav {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
}

.header-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 12px;
    margin-bottom: 17px;
}

.header-menu li {
    position: relative;
}

.header-menu a {
    text-decoration: none;
    letter-spacing: 0.02em;
}

.header-menu a:focus-visible,
.header-menu a:hover {
    text-decoration: none;
}

/* barras entre elementos, non despois do último */
.header-menu li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background-color: var(--text-default);
}

@media (min-width: 992px) {

    header,
    section.header {
        height: 180px;
    }

    .header-contenedor {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 16px;
    }

    .header-nav {
        font-size: 35px;
    }

    .header-logo img {
        height: 80px;
    }

    .header-menu {
        column-gap: 32px;
    }

    .header-menu li {
        margin-top: 40px;
    }

    .header-menu li:not(:last-child)::after {
        width: 3px;
        height: 37px;
        right: -16px;
    }
}