.site-header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    background: transparent;
    color: var(--color-white);
    border-top: 5px solid var(--color-primary);

    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: none;
    height: 100%;
    padding: 0 40px;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-icon {
    width: 64px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-body);
    font-size: 2.1rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--header-text-color, var(--color-white));
}

.brand-slogan {
    margin-top: 8px;
    font-family: var(--font-titles);
    font-size: 0.48rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--header-text-color, var(--color-white));
}

/* Menú */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-menu a {
    position: relative;
    font-family: var(--font-titles);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--header-text-color, var(--color-white));
    letter-spacing: 0.3px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* El header siempre es transparente con degradado oscuro, en todas las vistas */
.site-header.is-light,
.site-header.is-dark {
    --header-text-color: var(--color-white);
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 60%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Mobile toggle button with animation */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    background: var(--header-text-color, var(--color-white));
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.country-selector {
    position: relative;
    list-style: none;
}

.country-current {
    height: 40px;
    min-width: 68px;
    padding: 0 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;

    cursor: pointer;
    transition: all 0.25s ease;
}

.country-current:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.country-current img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.country-current span {
    color: var(--header-text-color, var(--color-white));
    font-size: 0.65rem;
    line-height: 1;
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;

    width: 175px;
    padding: 8px;

    background: rgba(17, 17, 17, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transition: all 0.22s ease;
}

.country-selector:hover .country-dropdown,
.country-selector:focus-within .country-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 12px;
    border-radius: 12px;

    color: var(--color-white);
    text-decoration: none;

    font-family: var(--font-titles);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country-dropdown a {
    position: relative;
}

.country-dropdown a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--color-primary);
}


/* línea roja igual al menú */
.country-dropdown a::after {
    content:"";
    position:absolute;
    left:12px;
    bottom:4px;
    width:0;
    height:2px;
    background:var(--color-primary);
    transition:width .25s ease;
}

.country-dropdown a:hover::after {
    width:calc(100% - 24px);
}

.country-dropdown img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .nav-container {
        padding: 0 24px;
    }

    .brand-icon {
        width: 54px;
    }

    .brand-name {
        font-size: 1.6rem;
    }

    .brand-slogan {
        font-size: 0.42rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #111111;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .site-header.is-light .nav-menu,
    .site-header.is-dark .nav-menu {
        background: rgba(17, 17, 17, 0.98);
    }

    .nav-menu.is-open {
        max-height: 550px;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px 24px;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 14px 0;
    }

    .country-selector {
        width: 100%;
        padding: 12px 0;
    }

    .country-current {
        justify-content: flex-start;
        width: 100%;
        max-width: 140px;
    }

    .country-dropdown {
        position: static;
        width: 100%;
        margin-top: 12px;

        opacity: 1;
        visibility: visible;
        transform: none;

        display: none;
    }

    .country-selector:hover .country-dropdown,
    .country-selector:focus-within .country-dropdown,
    .country-selector.is-active .country-dropdown {
        display: block;
    }
}