.vs-header,
.vs-header *{
  box-sizing:border-box;
}

.vs-header{
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  padding:14px 20px;
  background:linear-gradient(180deg, rgba(8,12,22,.90), rgba(8,12,22,.72));
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  transition:background .28s ease, border-color .28s ease;
}

.vs-header::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(520px 120px at 14% 0%, rgba(123,168,255,.14), transparent 60%),
    radial-gradient(420px 120px at 86% 0%, rgba(79,216,200,.08), transparent 60%);
  opacity:.95;
}

.vs-header__inner{
  position:relative;
  z-index:1;
  width:min(100%, 1440px);
  margin:0 auto;
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  column-gap:18px;
  min-height:56px;
}

.vs-brand{
  display:inline-flex;
  align-items:center;
  min-width:0;
  flex-shrink:0;
  text-decoration:none;
}

.vs-brand__logo{
  display:block;
  width:auto;
  height:44px;
  max-width:100%;
  object-fit:contain;
}

.vs-nav{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
}

.vs-nav a{
  position:relative;
  color:rgba(245,247,255,.78);
  text-decoration:none;
  font-size:.96rem;
  font-weight:500;
  letter-spacing:.01em;
  white-space:nowrap;
  transition:color .22s ease, transform .22s ease, opacity .22s ease;
}

.vs-nav a:hover,
.vs-nav a:focus-visible{
  color:#f5f7ff;
  transform:translateY(-1px);
  outline:none;
}

.vs-nav a[aria-current="page"],
.vs-nav a.is-active{
  color:#ffffff;
}

.vs-nav a[aria-current="page"]::after,
.vs-nav a.is-active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(135deg, #7BA8FF, #4FD8C8);
}

.vs-phone-desktop{
  color:rgba(245,247,255,.76);
  text-decoration:none;
  font-size:.95rem;
  font-weight:500;
  white-space:nowrap;
  transition:color .22s ease, opacity .22s ease;
}

.vs-phone-desktop:hover,
.vs-phone-desktop:focus-visible{
  color:#f5f7ff;
  outline:none;
}

.vs-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  white-space:nowrap;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.vs-btn:hover,
.vs-btn:focus-visible{
  transform:translateY(-1px);
  outline:none;
}

.vs-btn:focus-visible,
.vs-phone-desktop:focus-visible,
.vs-phone-mobile:focus-visible,
.vs-menu-btn:focus-visible,
.vs-mobile-menu__close:focus-visible,
.vs-nav a:focus-visible,
.vs-mobile-nav a:focus-visible,
.vs-mobile-phone:focus-visible{
  outline:2px solid rgba(123,168,255,.8);
  outline-offset:3px;
}

.vs-btn--ghost{
  color:#f5f7ff;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}

.vs-btn--ghost:hover,
.vs-btn--ghost:focus-visible{
  border-color:rgba(255,255,255,.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 12px 30px rgba(0,0,0,.2);
}

.vs-btn--primary{
  min-height:52px;
  padding:0 24px;
  color:#08101a;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(135deg, #7BA8FF, #4FD8C8);
  box-shadow:
    0 12px 36px rgba(79,216,200,.18),
    0 10px 28px rgba(123,168,255,.18);
}

/* ── FIX: navcta oculto por defecto (mobile-first) ──────────────────────── */
.vs-navcta{
  display:none;
}

.vs-phone-mobile{
  display:none;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  color:#b5a6ff;
  text-decoration:none;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  flex-shrink:0;
}

.vs-phone-mobile__icon{
  width:22px;
  height:22px;
  display:block;
}

.vs-menu-btn{
  display:none;
  width:46px;
  height:46px;
  padding:0;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  cursor:pointer;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex-shrink:0;
}

.vs-menu-btn span{
  width:20px;
  height:2px;
  border-radius:999px;
  background:#f5f7ff;
  transition:transform .25s ease, opacity .25s ease;
}

.vs-menu-btn.active span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.vs-menu-btn.active span:nth-child(2){
  opacity:0;
}

.vs-menu-btn.active span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.vs-menu-overlay{
  position:fixed;
  inset:0;
  z-index:1090;
  background:rgba(0,0,0,.56);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  pointer-events:none;
  transition:opacity .28s ease;
}

.vs-menu-overlay.active{
  opacity:1;
  pointer-events:auto;
}

.vs-mobile-menu{
  position:fixed;
  top:0;
  right:0;
  z-index:1100;
  width:min(88vw,390px);
  height:100dvh;
  padding:22px 20px 26px;
  display:flex;
  flex-direction:column;
  gap:28px;
  background:linear-gradient(180deg, rgba(10,15,28,.97), rgba(8,12,22,.99));
  border-left:1px solid rgba(255,255,255,.12);
  box-shadow:-16px 0 40px rgba(0,0,0,.34);
  transform:translateX(104%);
  transition:transform .3s ease;
  pointer-events:none;
}

.vs-mobile-menu.open{
  transform:translateX(0);
  pointer-events:auto;
}

.vs-mobile-menu::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(123,168,255,.16), transparent 55%),
    radial-gradient(300px 180px at 0% 100%, rgba(79,216,200,.08), transparent 50%);
}

.vs-mobile-menu__top,
.vs-mobile-nav,
.vs-mobile-menu__actions{
  position:relative;
  z-index:1;
}

.vs-mobile-menu__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.vs-brand--mobile{
  min-width:0;
  max-width:calc(100% - 58px);
}

.vs-brand__logo--mobile{
  height:40px;
  width:auto;
  max-width:100%;
}

.vs-mobile-menu__close{
  position:relative;
  width:44px;
  height:44px;
  padding:0;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  cursor:pointer;
  flex-shrink:0;
}

.vs-mobile-menu__close span{
  position:absolute;
  left:50%;
  top:50%;
  width:18px;
  height:2px;
  background:#f5f7ff;
  border-radius:999px;
}

.vs-mobile-menu__close span:first-child{
  transform:translate(-50%, -50%) rotate(45deg);
}

.vs-mobile-menu__close span:last-child{
  transform:translate(-50%, -50%) rotate(-45deg);
}

.vs-mobile-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.vs-mobile-nav a{
  display:block;
  padding:14px 16px;
  border-radius:14px;
  color:#f5f7ff;
  text-decoration:none;
  font-size:1.05rem;
  font-weight:600;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.05);
  transition:background .22s ease, border-color .22s ease, transform .22s ease, color .22s ease;
}

.vs-mobile-nav a:hover,
.vs-mobile-nav a:focus-visible{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.1);
  transform:translateX(2px);
  outline:none;
}

.vs-mobile-nav a[aria-current="page"],
.vs-mobile-nav a.is-active{
  color:#ffffff;
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.14);
}

.vs-mobile-menu__actions{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.vs-mobile-cta{
  width:100%;
  justify-content:center;
}

.vs-mobile-phone{
  padding-top:6px;
  color:rgba(245,247,255,.76);
  text-decoration:none;
  text-align:center;
  font-size:.96rem;
  font-weight:500;
}

/* ── BREAKPOINT 1180 px ─────────────────────────────────────────────────── */
@media (max-width:1180px){
  .vs-header__inner{
    grid-template-columns:auto 1fr auto;
  }

  .vs-phone-desktop{
    display:none;
  }

  /* navcta sigue visible aquí (se activa en ≥981 px abajo) */
}

/* ── FIX: navcta visible solo en pantallas ≥ 981 px ─────────────────────── */
@media (min-width:981px){
  .vs-navcta{
    display:inline-flex;
  }
}

/* ── BREAKPOINT 980 px (tablet/móvil) ──────────────────────────────────── */
@media (max-width:980px){
  .vs-header{
    padding:12px 16px;
  }

  .vs-header__inner{
    grid-template-columns:1fr auto auto;
    column-gap:10px;
    min-height:52px;
  }

  /* Ocultar nav y teléfono desktop; navcta ya está oculto por defecto */
  .vs-nav,
  .vs-phone-desktop{
    display:none;
  }

  .vs-brand{
    min-width:0;
    max-width:100%;
  }

  .vs-brand__logo{
    height:38px;
    max-width:min(210px, 100%);
  }

  /* Mostrar controles móviles */
  .vs-phone-mobile,
  .vs-menu-btn{
    display:inline-flex;
  }
}

/* ── BREAKPOINT 640 px (móvil pequeño) ──────────────────────────────────── */
@media (max-width:640px){
  .vs-header{
    padding:10px 12px;
  }

  .vs-header__inner{
    grid-template-columns:1fr auto auto;
    column-gap:8px;
    min-height:48px;
  }

  .vs-brand{
    min-width:0;
    max-width:100%;
  }

  .vs-brand__logo{
    height:34px;
    max-width:min(180px, 100%);
  }

  .vs-phone-mobile,
  .vs-menu-btn{
    width:40px;
    height:40px;
  }

  .vs-mobile-menu{
    width:min(92vw,360px);
    padding:18px 16px 22px;
  }

  .vs-brand__logo--mobile{
    height:34px;
  }
}

/* ── Motion reduce ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  .vs-header,
  .vs-nav a,
  .vs-btn,
  .vs-phone-desktop,
  .vs-mobile-nav a,
  .vs-menu-overlay,
  .vs-mobile-menu,
  .vs-menu-btn span{
    transition:none !important;
  }

  .vs-nav a:hover,
  .vs-btn:hover,
  .vs-mobile-nav a:hover{
    transform:none !important;
  }
}
