﻿/* ==========================================================================
   NAV
   Navegacion principal y menu mobile compartidos entre las paginas.
   ========================================================================== */

/* =========================
   HEADER / NAVBAR
========================= */

.header {
  position: relative;
  z-index: 1000;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--navbar-bg);
  box-shadow: var(--shadow-navbar);
}

.navbar__container {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: stretch;
  min-height: 106px;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  padding-right: 34px;
}

.navbar__logo img {
  width: auto;
  height: 50px;
  object-fit: contain;
}

.navbar__nav {
  display: flex;
  align-items: stretch;
}

.navbar__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  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: 106px;
  font-family: var(--font-heading);
  font-size: 1rem;
  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: 24px;
  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 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 106px;
  padding: 0 34px 0 52px;
  margin-left: 34px;
  background: var(--sales-bg);
  color: var(--sales-text);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
}

.navbar__sales-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #111111;
  flex-shrink: 0;
  background: transparent;
  overflow: hidden;
}

.navbar__sales-icon img {
  width: 20px;
  height: 20px;
  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.84rem;
  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.22rem;
  font-weight: 800;
  color: #111111;
}

.navbar__hamburger {
  display: none;
  width: 68px;
  min-height: 106px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navbar__hamburger img {
  width: 28px;
  height: 28px;
  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);
  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;
}

