﻿/* ==========================================================================
   NAV
   Navegacion principal y menu mobile compartidos entre las paginas.
   ========================================================================== */

/* =========================
   HEADER / NAVBAR
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1800;
}

.navbar {
  position: relative;
  z-index: 1;
  --login-slot-width: clamp(92px, 7vw, 132px);
  background: var(--navbar-bg);
  box-shadow: var(--shadow-navbar);
}

section[id] {
  scroll-margin-top: 112px;
}

.navbar__container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: stretch;
  min-height: 101px;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  padding-right: 32px;
}

.navbar__logo img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.navbar__nav {
  display: flex;
  align-items: stretch;
}

.navbar__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  list-style: none;
}

.navbar__menu li {
  display: flex;
  align-items: center;
}

.navbar__menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 101px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navbar-text);
  transition: opacity var(--transition-base);
}

.navbar__menu a:hover {
  opacity: 0.88;
}

.navbar__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 23px;
  height: 3px;
  background: var(--navbar-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.navbar__menu a[aria-current="page"]::after,
.navbar__menu a:hover::after {
  transform: scaleX(1);
}

.navbar__sales {
  order: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 101px;
  padding: 0 40px 0 58px;
  margin-left: 18px;
  background: var(--sales-bg);
  color: var(--sales-text);
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
}

.navbar__sales-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #111111;
  flex-shrink: 0;
  background: transparent;
  overflow: hidden;
}

.navbar__sales-icon img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: brightness(0);
}

.navbar__sales-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.navbar__sales-text small {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.86);
}

.navbar__sales-text strong {
  margin-top: 4px;
  font-family: var(--font-heading);
  font-size: 1.16rem;
  font-weight: 800;
  color: #111111;
}

.navbar__socials {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-left: 22px;
}

.navbar__socials a,
.mobile-menu__socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 18px rgba(115, 216, 255, 0.08);
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.navbar__socials a:hover,
.mobile-menu__socials a:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 28px rgba(115, 216, 255, 0.2);
  transform: translateY(-1px);
}

.navbar__socials img,
.mobile-menu__socials img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.navbar__socials .navbar__phone-social {
  display: none;
}

.navbar__hamburger {
  display: none;
  width: 65px;
  min-height: 101px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navbar__hamburger img {
  width: 27px;
  height: 27px;
  margin-inline: auto;
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  background: var(--mobile-menu-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 0 0 72px rgba(115, 216, 255, 0.045),
    0 0 80px rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base),
    transform var(--transition-base);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu__header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__icon {
  width: 26px;
  height: 26px;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--mobile-menu-border);
  background: transparent;
  cursor: pointer;
}

.mobile-menu__close img {
  width: 20px;
  height: 20px;
}

.mobile-menu__list {
  width: min(100%, 420px);
  margin-inline: auto;
  list-style: none;
}

.mobile-menu__list li + li {
  margin-top: 12px;
}

.mobile-menu__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px solid var(--mobile-menu-border);
  color: var(--mobile-menu-text);
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  background: transparent;
}

.mobile-menu__socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: min(100%, 420px);
  margin: 24px auto 0;
}

@media (max-width: 992px) {
  section[id] {
    scroll-margin-top: 78px;
  }
}

@media (max-width: 576px) {
  section[id] {
    scroll-margin-top: 66px;
  }
}

/* LOGIN COTIZADOR SATNET */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.header-login {
  order: 5;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  width: var(--login-slot-width);
  height: 101px;
  margin-left: 0;
  margin-right: 0;

  border-radius: 0;
  transition: all 0.3s ease;
}

.header-login img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.header-login:hover {
  transform: none;
  background: rgba(4, 156, 218, 0.12);
  box-shadow: 0 0 18px rgba(4, 156, 218, 0.75);
}

.mobile-menu__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__login img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .header-login {
    display: none;
  }
}
