/* CHK site-bar — mismo header que home/WP hero. Mapas 2026-09-13 */
.site-bar {
  --wp-base: #e8e9ed;
  --wp-contrast: #1a0d6b;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  background: var(--wp-base);
  color: var(--wp-contrast);
  padding-top: env(safe-area-inset-top, 0px);
  font-family: "DM Sans", system-ui, sans-serif;
}
.site-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.2rem, 72rem);
  margin-inline: auto;
  padding: 0.85rem 0 clamp(1.1rem, 2.2vw, 1.6rem);
  box-sizing: border-box;
}
.site-bar .site-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  max-width: min(52vw, 22rem);
}
.site-bar .site-title a {
  color: inherit;
  text-decoration: none;
}
.site-bar .bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.site-bar nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.875rem;
}
.site-bar nav a {
  color: inherit;
  text-decoration: none;
}
.site-bar .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.site-bar .nav-toggle svg { display: block; }
.site-bar.is-menu-open .nav-toggle { display: none; }
.site-bar.is-menu-open { z-index: 10000; }
.site-bar .nav-overlay { display: none; }
.site-bar.is-menu-open .nav-overlay {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 10001 !important;
  background: #06143a !important;
  color: #ffffff !important;
  flex-direction: column;
  padding: max(1rem, env(safe-area-inset-top)) 1.35rem max(1.5rem, env(safe-area-inset-bottom));
}
.site-bar .nav-overlay-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 2.75rem;
}
.site-bar .nav-overlay-close {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: #ffffff !important;
  cursor: pointer;
}
.site-bar .nav-overlay ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.site-bar .nav-overlay a {
  display: block;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.45rem, 6vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding: 0.85rem 0.15rem;
}
.site-bar .nav-overlay a:active { color: #f9a063 !important; }
body.is-nav-open {
  overflow: hidden !important;
  touch-action: none;
}
@media (min-width: 900px) {
  .site-bar nav { display: flex; }
  .site-bar .nav-toggle { display: none !important; }
  .site-bar .nav-overlay { display: none !important; }
}

/* Mapas: espacio bajo header fijo + ocultar nav React del bundle */
body.mapa-chk {
  padding-top: calc(4.25rem + env(safe-area-inset-top, 0px));
}
body.mapa-chk.mapa-app #root > div > nav.border-b {
  display: none !important;
}
body.mapa-chk.mapa-app #root {
  height: calc(100dvh - 4.25rem - env(safe-area-inset-top, 0px));
  max-height: calc(100dvh - 4.25rem - env(safe-area-inset-top, 0px));
}
