@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');

/* =========================================================
   Sticky nav compartido · réplica del menú FINAL del index
   Fuente de verdad: estilos.css + sus overrides finales.
========================================================= */
.dream-shared-nav.site-header,
.site-header.dream-shared-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px clamp(16px, 3vw, 46px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2147483000 !important;
  transition: .3s;
  isolation: isolate;
  transform: none !important;
  filter: none !important;
  contain: none !important;
  overflow: visible !important;
  pointer-events: auto;
  font-family: 'Rubik', sans-serif;
}
.dream-shared-nav.site-header.active,
.site-header.dream-shared-nav.active {
  background: rgba(10, 6, 37, .86) !important;
  border-bottom: 1px solid rgba(169, 216, 239, .18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dream-shared-nav .nav {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
}
.dream-shared-nav .nav.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 2px;
  list-style: none;
}
.dream-shared-nav .nav.centered li {
  min-width: 0;
  list-style: none;
}
.dream-shared-nav .nav.centered li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px clamp(8px, .85vw, 13px);
  border-radius: 999px;
  color: #94d3f9;
  font-size: clamp(.74rem, .82vw, .94rem);
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: .3s;
}
.dream-shared-nav.active .nav.centered li a { color: #fff; }
.dream-shared-nav .nav.centered li a:hover,
.dream-shared-nav .nav.centered li a:focus-visible {
  color: #fff;
  background: rgba(148, 211, 249, .12);
  outline: none;
}
.dream-shared-nav .menuToggle {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
}
body.nav-open {
  overflow: hidden !important;
  touch-action: none;
}
@media (max-width: 1120px) {
  .dream-shared-nav.site-header,
  .site-header.dream-shared-nav {
    height: 0;
    padding: 0;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .dream-shared-nav .nav.centered { display: none !important; }
  .dream-shared-nav .nav.active {
    position: fixed;
    z-index: 2147483002 !important;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: max(82px, calc(68px + env(safe-area-inset-top))) 20px 30px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    background:
      radial-gradient(circle at 50% 0%, rgba(244,55,214,.22), transparent 38%),
      rgba(10, 6, 37, .985);
    border: 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .dream-shared-nav .nav.active li {
    width: min(100%, 360px);
    list-style: none;
  }
  .dream-shared-nav .nav.active li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 12px 18px;
    border: 1px solid rgba(169,216,239,.14);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    color: #a9d8ef;
    font-size: .96rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    transition: .3s;
  }
  .dream-shared-nav .nav.active li a:hover,
  .dream-shared-nav .nav.active li a:focus-visible {
    border-color: rgba(244,55,214,.5);
    background: rgba(244,55,214,.12);
    color: #fff;
    outline: none;
  }
  .dream-shared-nav .menuToggle {
    position: fixed;
    z-index: 2147483003 !important;
    top: calc(14px + env(safe-area-inset-top));
    right: 16px;
    display: block;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(16,8,52,.82) url('/assets/menu.png') center/25px auto no-repeat;
    box-shadow: 0 12px 30px rgba(0,0,0,.28), 0 0 22px rgba(244,55,214,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
  }
  .dream-shared-nav .menuToggle.active { background: rgba(16,8,52,.92); }
  .dream-shared-nav .menuToggle.active::before,
  .dream-shared-nav .menuToggle.active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 12px;
    width: 24px;
    height: 3px;
    border-radius: 99px;
    background: #fff;
    box-shadow: 0 0 12px rgba(244,55,214,.55);
  }
  .dream-shared-nav .menuToggle.active::before { transform: translateY(-50%) rotate(45deg); }
  .dream-shared-nav .menuToggle.active::after { transform: translateY(-50%) rotate(-45deg); }
}
