/* ======================================================
   HEADER / NAV — HOMEGYM ARACENA (FINAL DEFINITIVO)
====================================================== */

/* ===============================
   HEADER BASE
================================ */
.site-header{
  position: fixed;                /* 🔑 fijo para hero */
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 1000;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--border-soft);
  transition: background .3s ease, box-shadow .3s ease;
}

/* Header con scroll (JS) */
.site-header.is-scrolled{
  background: rgba(0,0,0,.9);
  box-shadow: 0 8px 30px rgba(0,0,0,.65);
}

/* ===============================
   NAV CONTENEDOR
================================ */
.nav{
  width: min(var(--container), 92%);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ===============================
   LOGO
================================ */
.logo{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,.85);
  border: 1px solid rgba(255,138,0,.55);
  box-shadow:
    0 0 18px rgba(255,138,0,.55),
    0 0 36px rgba(255,138,0,.35);
  overflow: hidden;
  position: relative;
  z-index: 1100;
}

.logo img{
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,138,0,.65));
}

/* ===============================
   MENU DESKTOP
================================ */
.menu{
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu a{
  position: relative;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .85;
  padding: 8px 14px;
  border-radius: 999px;
  transition: .25s ease;
}

.menu a:hover{
  opacity: 1;
  background: rgba(255,255,255,.06);
}

/* ACTIVO */
.menu a[aria-current="page"],
.menu a.active{
  color: var(--orange);
  background: rgba(255,138,0,.12);
  box-shadow:
    0 0 12px rgba(255,138,0,.45),
    inset 0 0 0 1px rgba(255,138,0,.45);
}

/* ===============================
   BURGER
================================ */
.burger{
  display: none;
  width: 46px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: var(--border-soft);
  background: rgba(255,255,255,.06);
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  cursor: pointer;
  z-index: 1200;
}

.burger span{
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: .3s ease;
}

/* Burger animado */
.burger.is-open span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
.burger.is-open span:nth-child(2){
  opacity: 0;
}
.burger.is-open span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* ===============================
   MOBILE MENU
================================ */
@media (max-width:900px){

  .burger{
    display: flex;
  }

  .menu{
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;

    padding: 18px 16px 22px;
    background: rgba(0,0,0,.96);
    border-bottom: var(--border-soft);

    display: grid;
    gap: 12px;

    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;

    z-index: 1050;
    transition: .35s ease;
  }

  .menu.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu a{
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.06);
    border: var(--border-soft);
    text-align: center;
    font-size: 13px;
  }

  .menu a[aria-current="page"],
  .menu a.active{
    background: rgba(255,138,0,.18);
    color: var(--orange);
  }
}
