/* ═══════════════════════════════════════════
   BP NAV & TOPBAR — Bádminton Perú
   ═══════════════════════════════════════════ */

:root {
  --bp-red: #CC0000;
  --bp-black: #111;
}

/* ── Reset básico para el nav ── */
.bp-topbar *, .bp-nav * {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif !important;
}

/* ── Container ── */
.bp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════
   TOPBAR
══════════════════════════════ */
.bp-topbar {
  background: var(--bp-red) !important;
  height: 38px;
  display: flex;
  align-items: center;
  width: 100%;
  z-index: 999;
}

.bp-topbar .bp-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.bp-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-live-badge {
  background: #fff;
  color: var(--bp-red);
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: bp-pulse 2s infinite;
}

@keyframes bp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

.bp-upcoming-text {
  color: rgba(255,255,255,0.92) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.bp-topbar-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bp-topbar-socials a {
  color: rgba(255,255,255,0.7) !important;
  display: flex;
  align-items: center;
  text-decoration: none !important;
  transition: color .2s;
}

.bp-topbar-socials a:hover {
  color: #fff !important;
}

.bp-topbar-socials svg {
  width: 15px;
  height: 15px;
}

/* ══════════════════════════════
   NAV PRINCIPAL
══════════════════════════════ */
.bp-nav {
  background: var(--bp-black) !important;
  height: 76px !important;
  width: 100%;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 0 var(--bp-red);
}

.bp-nav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 76px !important;
}

/* Logo */
.bp-nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.bp-logo-img {
  height: 64px !important;
  width: auto !important;
  display: block;
}

.bp-logo-text {
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Links */
.bp-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bp-nav-links a {
  color: #999 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: color .2s, background .2s;
  position: relative;
}

.bp-nav-links a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.05);
}

.bp-nav-links a.active {
  color: #fff !important;
}

.bp-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--bp-red);
  border-radius: 2px;
}

/* CTA Inscripción */
.bp-nav-right {
  display: flex;
  align-items: center;
}

.bp-nav-cta {
  background: var(--bp-red) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
  transition: background .2s, transform .1s;
  display: inline-block;
}

.bp-nav-cta:hover {
  background: #aa0000 !important;
  transform: translateY(-1px);
}

/* ══════════════════════════════
   RESPONSIVE — Mobile
══════════════════════════════ */
@media (max-width: 768px) {
  .bp-topbar-left { display: none; }
  .bp-nav-links { display: none; }
  .bp-nav-inner { justify-content: space-between; }
  .bp-logo-img { height: 38px !important; }
}

/* ══════════════════════════════
   OCULTAR HEADER/FOOTER DE ASTRA
══════════════════════════════ */
#masthead,
.site-header,
.ast-site-header-wrap,
.main-header-bar,
.ast-primary-header-bar,
#ast-fixed-header,
.site-footer,
#colophon,
.ast-site-footer,
.footer-widget-area,
.footer-primary-divider-section,
#ast-scroll-top {
  display: none !important;
}

/* Quitar margin/padding del body que deja Astra */
.home .site-content,
.home #content,
.home .ast-container,
.home .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.home .site-primary,
.home #primary {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Ocultar título de página en homepage ── */
.home .entry-title,
.home h1.entry-title,
.home .page-title {
  display: none !important;
}

/* ── Quitar padding del bloque shortcode ── */
.home .wp-block-shortcode,
.home .entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ── Quitar espacio del contenido de la página ── */
.home .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ══════════════════════════════
   HOMEPAGE — QUITAR TODOS LOS ESPACIOS DE ASTRA
══════════════════════════════ */
.home #page,
.home #content,
.home #primary,
.home .site-primary,
.home .ast-container,
.home .entry-content,
.home .page-content,
.home .post-content,
.home article,
.home .ast-article-single,
.home .entry,
.home .hentry {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.home .ast-page-builder-template #content {
  padding: 0 !important;
}

/* Quitar margin del bloque shortcode */
.home .wp-block-shortcode {
  margin: 0 !important;
  padding: 0 !important;
}

/* Quitar espacio arriba del nav */
.home body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
