/* =========================================================
   BIK · HEADER MAESTRO V1
   Basado en el header aprobado de index.html
   Hamburguesa en escritorio y móvil
   ========================================================= */

.bik-header,
.bik-header * {
  box-sizing: border-box;
}

.bik-header {
  --bik-fuchsia: #E6007E;
  --bik-lime: #32FF00;
  --bik-black: #000000;
  --bik-white: #FFFFFF;
  --bik-muted: #D0D0D0;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  background: var(--bik-black);
  z-index: 5000;
  transition: height .3s ease, box-shadow .3s ease;
  font-family: Verdana, Arial, sans-serif;
}

.bik-header.is-scrolled {
  height: 65px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

.bik-header__logo {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  position: relative;
  z-index: 5060;
}

.bik-header__logo img {
  display: block;
  height: 45px;
  width: auto;
  transition: height .3s ease;
}

.bik-header.is-scrolled .bik-header__logo img {
  height: 38px;
}

.bik-header__right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bik-header__lang {
  display: flex;
  gap: 8px;
  margin-right: 50px;
}

.bik-header__lang button {
  min-width: 38px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: var(--bik-fuchsia);
  color: var(--bik-white);
  font: 700 13px/1 Verdana, Arial, sans-serif;
  cursor: pointer;
}

.bik-header__lang button:hover,
.bik-header__lang button.is-active {
  background: var(--bik-lime);
  color: #000;
}

.bik-header__lang button:focus-visible,
.bik-header__hamburger:focus-visible,
.bik-header__logo:focus-visible,
.bik-header__nav a:focus-visible {
  outline: 3px solid var(--bik-lime);
  outline-offset: 4px;
}

.bik-header__hamburger {
  position: fixed;
  top: 28px;
  right: 20px;
  width: 28px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 9999;
}

.bik-header.is-scrolled .bik-header__hamburger {
  top: 21px;
}

.bik-header__hamburger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--bik-white);
  transition: top .3s ease, transform .3s ease, opacity .3s ease;
}

.bik-header__hamburger span:nth-child(1) { top: 0; }
.bik-header__hamburger span:nth-child(2) { top: 9px; }
.bik-header__hamburger span:nth-child(3) { top: 18px; }

.bik-header__hamburger.is-active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.bik-header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.bik-header__hamburger.is-active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.bik-header__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 5030;
}

.bik-header__nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(75%, 320px);
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 100px 30px 44px;
  background: var(--bik-black);
  z-index: 5050;
  transition: right .3s ease;
  overscroll-behavior: contain;
}

.bik-header__nav.is-active {
  right: 0;
}

.bik-header__nav a {
  color: var(--bik-white);
  text-decoration: none;
  font: 400 18px/1.35 Verdana, Arial, sans-serif;
  text-underline-offset: 4px;
}

.bik-header__nav a:hover {
  color: var(--bik-lime);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.bik-header__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bik-header__group strong {
  display: block;
  margin-bottom: 2px;
  color: var(--bik-fuchsia);
  font: 700 14px/1.25 Verdana, Arial, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.bik-header__group a {
  padding-left: 2px;
}

body.bik-menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .bik-header {
    padding: 0 20px;
  }

  .bik-header__right {
    position: relative;
    width: 100%;
    justify-content: flex-end;
  }

  .bik-header__lang {
    margin-right: 60px;
  }

  .bik-header__hamburger {
    top: 22px;
    right: 15px;
  }

  .bik-header.is-scrolled .bik-header__hamburger {
    top: 17px;
  }

  .bik-header__nav {
    width: min(86%, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bik-header,
  .bik-header__logo img,
  .bik-header__hamburger span,
  .bik-header__nav {
    transition: none;
  }
}
