/* ═══════════════════════════════════════════════
   YARDA 20 — Global Nav Bar v2
   Barra fija de navegación con selector de Temporada + Categoría
   (mega-menú). Se usa en TODAS las páginas de equipo/categoría/
   temporada (root y dentro de "Temporada 2025/"), pero NO en
   index.html — esa tiene su propio nav (.y20-nav en inicio.css).
   El contenido del menú lo genera js/gnav.js; aquí solo va el estilo.
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@600;700&display=swap');

.y20-gnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: 56px;
  background: rgba(6,7,9,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(241,90,34,0.18);
  font-family: 'Barlow Condensed', sans-serif;
  transition: height 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.y20-gnav.is-scrolled {
  height: 46px;
  background: rgba(4,5,6,0.99);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.y20-gnav.is-scrolled .y20-gnav-logo { font-size: 1.18rem; }

/* ── Logo ── */
.y20-gnav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: #F2FAF9;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  margin-right: 18px;
}
.y20-gnav-logo span { color: #F15A22; }

/* ── Temporadas ── */
.y20-gnav-seasons {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 2px;
}

.y20-gnav-season { position: relative; height: 100%; }

.y20-gnav-season-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 14px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.y20-gnav-season-btn:hover { color: #fff; }
.y20-gnav-season.is-active .y20-gnav-season-btn { color: #F2FAF9; border-bottom-color: #F15A22; }

.y20-gnav-season-tag {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}
.y20-gnav-season:nth-child(2) .y20-gnav-season-tag {
  background: rgba(0,196,180,0.14);
  color: #6be0d3;
}
.y20-gnav-season:nth-child(1) .y20-gnav-season-tag {
  background: rgba(201,168,76,0.14);
  color: #e0c374;
}

.y20-gnav-caret {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.35);
  transition: transform 0.2s;
}
.y20-gnav-season.is-open .y20-gnav-caret,
.y20-gnav-season:hover .y20-gnav-caret { transform: rotate(180deg); }

/* ── Panel (mega-menú) ── */
.y20-gnav-panel {
  position: absolute;
  top: 100%; left: 0;
  min-width: 560px;
  background: rgba(10,12,15,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid #F15A22;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.y20-gnav-season:hover .y20-gnav-panel,
.y20-gnav-season.is-open .y20-gnav-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.y20-gnav-panel-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.y20-gnav-panel-col {
  padding: 18px 18px;
  border-left: 1px solid rgba(255,255,255,0.05);
}
.y20-gnav-panel-col:first-child { border-left: none; }

.y20-gnav-panel-cat {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F15A22;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(241,90,34,0.15);
}

.y20-gnav-panel-team {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s, padding-left 0.15s;
}
.y20-gnav-panel-team:hover { color: #fff; padding-left: 4px; }
.y20-gnav-panel-team.is-current { color: #F15A22; font-weight: 700; }
.y20-gnav-panel-team.is-current::before { content: '● '; font-size: 0.5em; vertical-align: middle; }

.y20-gnav-panel-hub {
  display: block;
  padding: 12px 18px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s, background 0.15s;
}
.y20-gnav-panel-hub:hover { color: #F15A22; background: rgba(241,90,34,0.06); }

/* ── Página actual ── */
.y20-gnav-current {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.y20-gnav-current .gnav-sep { color: rgba(255,255,255,0.2); }

/* ── Redes sociales ── */
.y20-gnav-social {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.y20-gnav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.y20-gnav-social-link:hover {
  color: #F2FAF9;
  background: rgba(255,255,255,0.08);
}

/* ── CTA derecha ── */
.y20-gnav-cta {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 16px;
  background: #F15A22;
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.y20-gnav-cta:hover { opacity: 0.85; }

/* ── Burger (móvil) ── */
.y20-gnav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
}
.y20-gnav-burger span {
  display: block;
  width: 100%; height: 2px;
  background: #F2FAF9;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.y20-gnav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.y20-gnav-burger.is-open span:nth-child(2) { opacity: 0; }
.y20-gnav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .y20-gnav-current { display: none; }

  .y20-gnav-cta { display: none; }
  .y20-gnav-burger { display: flex; }

  .y20-gnav-seasons {
    display: none;
  }
  .y20-gnav.is-open .y20-gnav-seasons {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0;
    height: calc(100vh - 56px);
    background: rgba(6,7,9,0.99);
    padding: 8px 0 24px;
    overflow-y: auto;
    gap: 0;
  }
  .y20-gnav.is-open .y20-gnav-season { height: auto; }
  .y20-gnav.is-open .y20-gnav-season-btn {
    width: 100%;
    height: auto;
    padding: 16px 20px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .y20-gnav.is-open .y20-gnav-panel {
    position: static;
    min-width: 0;
    opacity: 0;
    transform: none;
    max-height: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: rgba(255,255,255,0.02);
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .y20-gnav.is-open .y20-gnav-season.is-open .y20-gnav-panel {
    opacity: 1;
    max-height: 1200px;
    pointer-events: auto;
  }
  .y20-gnav.is-open .y20-gnav-panel-inner {
    grid-template-columns: 1fr;
  }
  .y20-gnav.is-open .y20-gnav-panel-col { border-left: none; padding: 14px 20px; }
  .y20-gnav.is-open .y20-gnav-panel-col:not(:first-child) { border-top: 1px solid rgba(255,255,255,0.05); }
}
