/* Bethel House — puente de menú BH sobre shell legacy (R1).
   Solo estiliza .site-header / .mobile-menu; no altera el contenido Bootstrap. */

@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("../fonts/NeueHaasGroteskDisplayPro-65Medium.c00931e8b3cc.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("../fonts/NeueHaasDisplayBold.822ebe551ca0.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-VariableFont_wght.310b1a7f9485.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

body.bh-nav-bridge {
  --font-display: "Neue Haas Grotesk Display Pro", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --brand-blue: #0389fc;
  --brand-orange: #ff7212;
  --brand-green: #05c35d;
  --brand-violet-light: #7859fc;
  --brand-violet-dark: #2b1748;
  --brand-yellow: #feba22;
  --purple: var(--brand-violet-light);
  --purple-deep: var(--brand-violet-dark);
  --violet: #9580fd;
  --text: #3d4654;
  --text-strong: #141c28;
  --text-muted: #5f6a7a;
  --line: rgba(43, 23, 72, 0.08);
  --surface: #ffffff;
  --container: 1140px;
  --radius-sm: 12px;
  --radius-full: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.35s var(--ease);
  --star-logo: url("../img/mundos/comun/logo-bethel.a725a1375c5f.png");
}

body.bh-nav-bridge .site-header,
body.bh-nav-bridge .mobile-menu {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body.bh-nav-bridge .site-header *,
body.bh-nav-bridge .site-header *::before,
body.bh-nav-bridge .site-header *::after,
body.bh-nav-bridge .mobile-menu *,
body.bh-nav-bridge .mobile-menu *::before,
body.bh-nav-bridge .mobile-menu *::after {
  box-sizing: border-box;
}

body.bh-nav-bridge .site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(250, 248, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
  /* sin overflow:hidden — recorta los dropdowns del menú en páginas legacy */
  overflow: visible;
}

body.bh-nav-bridge .site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 30px rgba(120, 89, 252, 0.06);
}

body.bh-nav-bridge .site-header::before {
  content: "";
  position: absolute;
  top: -78px;
  left: 5%;
  width: 190px;
  height: 190px;
  background: var(--star-logo) no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

body.bh-nav-bridge .site-header .container {
  position: relative;
  z-index: 1;
  width: min(var(--container), 100% - 2.5rem);
  max-width: none;
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Reset Bootstrap .navbar inside BH header */
body.bh-nav-bridge .site-header .navbar {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0 !important;
  margin: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.bh-nav-bridge .site-header .navbar-brand {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit;
  white-space: normal;
}

body.bh-nav-bridge .site-header .navbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

body.bh-nav-bridge .site-header .navbar-logo img,
body.bh-nav-bridge .site-header .navbar-logo--dual img {
  height: 68px;
  width: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

body.bh-nav-bridge .site-header .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: nowrap;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.bh-nav-bridge .site-header .nav-item {
  position: relative;
  margin: 0;
  list-style: none;
}

body.bh-nav-bridge .site-header .nav-link {
  display: block;
  padding: 0.45rem 0.7rem !important;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text) !important;
  border-radius: var(--radius-full);
  white-space: nowrap;
  text-decoration: none !important;
  background: transparent;
  border: 0;
  transition: background var(--transition), color var(--transition);
}

body.bh-nav-bridge .site-header .nav-link:hover,
body.bh-nav-bridge .site-header .nav-link.active {
  color: var(--purple) !important;
  background: rgba(120, 89, 252, 0.06);
}

body.bh-nav-bridge .site-header .nav-item:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* BH dropdown (class name overlaps Bootstrap — force BH behavior) */
body.bh-nav-bridge .site-header .nav-item > .dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  box-shadow: 0 12px 40px rgba(26, 21, 35, 0.08);
  z-index: 1060;
  display: block !important;
  float: none;
}

body.bh-nav-bridge .site-header .nav-item > .dropdown a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: 8px;
  color: var(--text) !important;
  text-decoration: none !important;
  background: transparent;
  white-space: normal;
}

body.bh-nav-bridge .site-header .nav-item > .dropdown a:hover,
body.bh-nav-bridge .site-header .nav-item > .dropdown a.active {
  background: rgba(120, 89, 252, 0.08);
  color: var(--purple) !important;
}

body.bh-nav-bridge .site-header .nav-item > .dropdown a.active {
  font-weight: 600;
}

body.bh-nav-bridge .site-header .nav-cta {
  margin-left: 0.35rem;
  padding: 0.5rem 1.1rem !important;
  background: var(--purple) !important;
  color: #fff !important;
}

body.bh-nav-bridge .site-header .nav-cta:hover {
  background: var(--purple-deep) !important;
  color: #fff !important;
}

body.bh-nav-bridge .site-header .nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

body.bh-nav-bridge .site-header .nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
}

/* World switch */
body.bh-nav-bridge .site-header .world-switch {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body.bh-nav-bridge .site-header .world-switch-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

body.bh-nav-bridge .site-header .world-switch-track {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-full);
  background: var(--line);
  gap: 2px;
}

body.bh-nav-bridge .site-header .world-switch-btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

body.bh-nav-bridge .site-header .world-switch-btn.is-active {
  background: var(--surface);
  color: var(--purple-deep);
  box-shadow: 0 2px 8px rgba(43, 23, 72, 0.12);
}

/* Mobile menu */
body.bh-nav-bridge .mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 21, 35, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1100;
}

body.bh-nav-bridge .mobile-menu.open {
  display: block;
}

body.bh-nav-bridge .mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--surface);
  padding: 1.5rem;
  overflow-y: auto;
}

body.bh-nav-bridge .mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: inherit;
}

body.bh-nav-bridge .mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.bh-nav-bridge .mobile-nav > li {
  border-bottom: 1px solid var(--line);
}

body.bh-nav-bridge .mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-strong);
  text-decoration: none;
}

body.bh-nav-bridge .mobile-submenu {
  list-style: none;
  padding: 0 0 0.75rem 0.75rem;
  margin: 0;
}

body.bh-nav-bridge .mobile-submenu a {
  padding: 0.45rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}

body.bh-nav-bridge .mobile-world-switch {
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

body.bh-nav-bridge .world-switch-select-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

body.bh-nav-bridge .world-switch-select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

/* World accents (header only) */
body.bh-nav-bridge[data-world="playschool"] .site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
}

body.bh-nav-bridge[data-world="playschool"] .site-header .nav-link:hover,
body.bh-nav-bridge[data-world="playschool"] .site-header .nav-link.active {
  color: var(--purple-deep) !important;
  background: rgba(5, 195, 93, 0.09);
}

body.bh-nav-bridge[data-world="playschool"] .site-header .nav-cta {
  background: var(--purple) !important;
}

body.bh-nav-bridge[data-world="antorchas"] .site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(43, 23, 72, 0.08);
}

body.bh-nav-bridge[data-world="antorchas"] .site-header .nav-link {
  color: var(--brand-violet-dark) !important;
}

body.bh-nav-bridge[data-world="antorchas"] .site-header .nav-link:hover,
body.bh-nav-bridge[data-world="antorchas"] .site-header .nav-link.active {
  color: var(--brand-orange) !important;
  background: rgba(255, 114, 18, 0.08);
}

body.bh-nav-bridge[data-world="antorchas"] .site-header .nav-cta {
  background: var(--brand-green) !important;
  color: #fff !important;
}

body.bh-nav-bridge[data-world="antorchas"] .site-header .world-switch-btn.is-active {
  background: var(--brand-violet-dark);
  color: #fff;
}

body.bh-nav-bridge[data-world="antorchas"] .mobile-menu-panel {
  background: #fff;
}

body.bh-nav-bridge[data-world="antorchas"] .mobile-nav a {
  color: var(--brand-violet-dark);
}

@media (max-width: 1200px) {
  body.bh-nav-bridge .site-header .nav-menu {
    display: none;
  }

  body.bh-nav-bridge .site-header .nav-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  body.bh-nav-bridge .site-header .navbar-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  body.bh-nav-bridge .site-header .navbar-logo img,
  body.bh-nav-bridge .site-header .navbar-logo--dual img {
    height: 56px;
  }

  body.bh-nav-bridge .site-header .world-switch-label {
    display: none;
  }

  body.bh-nav-bridge .site-header::before {
    display: none;
  }
}

@media (max-width: 768px) {
  body.bh-nav-bridge .site-header .world-switch-btn {
    font-size: 0.625rem;
    padding: 0.3rem 0.5rem;
  }
}

body.bh-nav-bridge.mobile-menu-open {
  overflow: hidden;
}
