/* Logo B TOK elegido: proporciones originales y espacio para los cuernos. */
/* Misma Sora final, sin mostrar primero otra fuente en el menú. */
@font-face {
    font-family: 'Sora Header';
    src: url('../fonts/sora-latin-500-normal.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: block;
}
@font-face {
    font-family: 'Sora Header';
    src: url('../fonts/sora-latin-600-normal.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: block;
}
/* Identical menu typography on the landing page and all internal pages.
   Active links use their background, never a different font weight. */
#siteHeader .nav-link,
#siteHeader .nav-link.active,
#siteHeader .nav-link:hover,
#mobileMenu .mobile-nav-link,
#mobileMenu .mobile-nav-link.active {
    font: 500 16px/1.65 'Sora Header', 'Sora', sans-serif;
    letter-spacing: 0;
    text-transform: none;
    font-synthesis: none;
}
#siteHeader .lang-toggle,
#siteHeader .lang-option {
    font: 500 14px/1.65 'Sora Header', 'Sora', sans-serif;
    letter-spacing: 0;
    font-synthesis: none;
}
#siteHeader .logo-space { flex: 0 0 auto; }
#siteHeader .logo-space a { display: flex; align-items: center; }
#siteHeader .logo-space img {
    width: 126px;
    height: 45px;
    object-fit: contain;
    animation: btok-logo-glitch 7s step-end infinite;
}
.brand img { object-fit: contain; }
/* Caja flotante: el vidrio y el contraste avanzan juntos con el scroll. */
#siteHeader, #siteHeader.scrolled {
    --header-progress: 0;
    --header-ink: calc(98 * (1 - var(--header-progress)));
    isolation: isolate;
    top: 12px;
    left: 20px;
    right: 20px;
    width: auto;
    max-width: 1248px;
    margin-inline: auto;
    padding: 8px 0;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 22px;
    background: rgba(255,255,255,calc(1 - var(--header-progress)));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: box-shadow .25s ease;
}
#siteHeader > .container { width: 100%; padding-inline: 22px; }
/* El botón de cierre debe quedar por encima del panel móvil. */
#siteHeader:has(.mobile-menu-btn[aria-expanded="true"]) { z-index: 1101; }
#siteHeader .nav-link, #siteHeader .lang-toggle, #siteHeader .mobile-menu-btn {
    color: rgb(var(--header-ink), var(--header-ink), var(--header-ink));
}
#siteHeader .nav-link.active, #siteHeader .nav-link:hover { color: #000; }
#siteHeader .mobile-menu-btn span { background: currentColor; }
#siteHeader::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: var(--header-progress);
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255,255,255,.58), rgba(255,255,255,.38) 65%, rgba(255,255,255,.16));
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    backdrop-filter: blur(18px) saturate(115%);
}
#siteHeader.scrolled {
    box-shadow: 0 8px 28px rgba(25,35,45,.08);
}
@media (max-width: 600px) {
    #siteHeader, #siteHeader.scrolled { top: 8px; left: 12px; right: 12px; border-radius: 18px; }
    #siteHeader > .container { padding-inline: 12px; }
    #siteHeader .logo-space img { width: 101px; height: 36px; }
}
/* Un pequeño desfase de color y posición; el logo descansa entre ráfagas. */
@keyframes btok-logo-glitch {
    0%, 91%, 98%, 100% { transform: none; filter: none; }
    92% { transform: translate(-1px, 0) skewX(-2deg); filter: drop-shadow(2px 0 #00d9df) drop-shadow(-1px 0 #ff004f); }
    93% { transform: translate(2px, -1px) skewX(2deg); filter: drop-shadow(-2px 0 #00d9df) drop-shadow(1px 0 #ff004f); }
    94% { transform: none; filter: none; }
    95% { transform: translate(-1px, 1px); filter: drop-shadow(1px 0 #00d9df) drop-shadow(-2px 0 #ff004f); }
    96% { transform: translate(1px, 0) skewX(-1deg); filter: none; }
}
@media (prefers-reduced-motion: reduce) {
    #siteHeader .logo-space img { animation: none; }
    #siteHeader, #siteHeader::before { transition: none; }
}

/* Banderas uniformes en el selector de idioma y en el menú móvil. */
.lang-toggle .flag, .lang-option .flag, .mobile-lang-group .flag {
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.1);
}
.lang-toggle, .lang-option { min-height: 44px; }
.lang-dropdown { min-width: 224px; }
.lang-option > span:not(.lang-check) { white-space: nowrap; }
.mobile-lang-group .mobile-nav-link { display: flex; align-items: center; gap: .65rem; }
.mobile-lang-group .lang-check { margin-left: auto; }

/* Solid black page scrollbar in both native and WebKit implementations. */
html{scrollbar-color:#000 #fff}
html::-webkit-scrollbar-thumb{background:#000;border-color:#fff}
html::-webkit-scrollbar-track{background:#fff}

/* The announcement is a separate band above the existing floating header. */
body:has(.shop-announcement){--announcement-height:44px;padding-top:var(--announcement-height)}
.shop-announcement{position:fixed;inset:0 0 auto;z-index:1102;height:var(--announcement-height);background:#202124;color:#fff}
.shop-announcement>a{display:flex;align-items:center;justify-content:center;gap:24px;min-height:100%;padding:8px 20px;color:#fff;font:400 13px/1.5 'Sora',sans-serif;text-align:center;text-decoration:none}
.shop-announcement strong{font-weight:700;white-space:nowrap}
.shop-announcement__action{font-weight:600;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.shop-announcement>a:hover .shop-announcement__action{text-decoration-thickness:2px}
.shop-announcement>a:focus-visible{outline:2px solid #fff!important;outline-offset:-4px}
body:has(.shop-announcement) #siteHeader{top:calc(var(--announcement-height) + 12px)}
body:has(.shop-announcement) .mobile-menu{padding-top:calc(var(--announcement-height) + 112px)}
@media(max-width:760px){
 body:has(.shop-announcement){--announcement-height:76px}
 .shop-announcement>a{flex-direction:column;justify-content:center;gap:3px;padding:8px 16px;font-size:12.5px;line-height:1.5}
 .shop-announcement>a>span:first-child{max-width:42ch}
 body:has(.shop-announcement) #siteHeader{top:calc(var(--announcement-height) + 8px)}
}
