:root {
  --accent-color: #06B6D4;
  --primary: #2563EB;
  --primary-light: #93C5FD;
  --primary-soft: rgba(37, 99, 235, 0.18);
  --primary-line: rgba(37, 99, 235, 0.42);
  --nav-bg: rgba(11, 15, 25, 0.92);
  --nav-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
  --nav-fs-link: clamp(1.06rem, 0.92vw, 1.16rem);
  --nav-fs-link-condensed: 1rem;
  --nav-fs-mobile-link: 1.22rem;
  --nav-fs-menu: 1.9rem;
  --nav-fs-title: 1.5rem;
  --nav-fs-cta: 1.05rem;
  --nav-fs-icon: 1.32rem;
}

.navbar {
  min-height: 92px;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  border-bottom: 1px solid var(--primary-line);
  background: var(--nav-bg) !important;
  backdrop-filter: blur(16px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.navbar-activebg {
  background: rgba(11, 15, 25, 0.97) !important;
  border-color: rgba(6, 182, 212, 0.46);
  box-shadow: var(--nav-shadow);
}

.nav-inner {
  max-width: 1320px;
  box-sizing: border-box;
  padding-inline: clamp(14px, 3vw, 34px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  margin-right: clamp(18px, 4vw, 52px);
  padding: 0;
}

.navbar-brand img {
  display: block;
  height: auto;
  max-height: 64px;
  width: auto;
}

.navbar-brand .brand-full {
  display: none;
}

.navbar-brand .brand-mark {
  display: block;
}

.brand-mark {
  max-height: 52px;
}

.navbar-nav {
  gap: 6px;
}

.navbar-nav .nav-link {
  position: relative;
  color: rgba(248, 250, 252, 0.9) !important;
  border-radius: 6px;
  padding: 13px 14px !important;
  font-size: var(--nav-fs-link) !important;
  font-weight: 800 !important;
  letter-spacing: 0;
  line-height: 1.15;
  transition: color 0.18s ease, background 0.18s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible,
.navbar-nav .nav-link.active-page {
  color: #F8FAFC !important;
  background: var(--primary-soft);
  outline: none;
}

.navbar-nav .nav-link.active-page::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 6px;
  left: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-color);
}

.navbar-toggler {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  color: #F8FAFC;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.28);
}

.hamburger-menu {
  color: #F8FAFC;
  font-size: var(--nav-fs-menu);
}

.offcanvas {
  background: #0B0F19;
  color: #F8FAFC;
}

.offcanvas-header {
  border-bottom: 1px solid var(--primary-line);
}

.offcanvas-title {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #F8FAFC;
  font-family: "Oswald", "Nunito Sans", sans-serif;
  font-size: var(--nav-fs-title);
  font-weight: 700;
  text-decoration: none;
}

.offcanvas-header .btn-close {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background-size: 1rem;
}

.btn-whatsapp-nav {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(37, 211, 102, 0.95);
  border-radius: 6px;
  background: #25D366;
  color: #0B0F19;
  padding: 12px 20px;
  font-size: var(--nav-fs-cta);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.2);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn-whatsapp-nav iconify-icon,
.btn-whatsapp-nav .site-icon {
  font-size: var(--nav-fs-icon);
}

.btn-whatsapp-nav:hover,
.btn-whatsapp-nav:focus-visible {
  background: #32e577;
  color: #07110b;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
  outline: none;
}

.repair-shine {
  background: none;
  filter: none;
  animation: none;
}

html {
  background-color: #0F172A;
}

body {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
  overflow-x: hidden;
}

body.loaded {
  opacity: 1;
}

@media (max-width: 1190px) {
  .navbar-nav .nav-link {
    padding-inline: 9px !important;
    font-size: var(--nav-fs-link-condensed) !important;
  }
}

@media (min-width: 768px) {
  .navbar-brand .brand-full {
    display: block;
  }

  .navbar-brand .brand-mark {
    display: none;
  }
}

@media (max-width: 991px) {
  .navbar {
    min-height: 76px;
  }

  .navbar-brand img {
    max-height: 54px;
  }

  .offcanvas {
    width: min(86vw, 380px) !important;
    height: 100dvh !important;
    max-height: 100dvh;
    top: 0;
    bottom: 0;
  }

  .offcanvas-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
    overflow-y: auto;
    padding-top: 24px;
  }

  .navbar-nav {
    align-items: stretch !important;
    gap: 8px;
  }

  .navbar-nav .nav-link {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 15px 10px !important;
    font-size: var(--nav-fs-mobile-link) !important;
  }

  .navbar-nav .nav-link.active-page::after {
    right: auto;
    bottom: 12px;
    left: 10px;
    width: 34px;
  }

  .btn-whatsapp-nav {
    width: 100%;
  }
}

@media (max-width: 991px) and (max-height: 520px) and (orientation: landscape) {
  .navbar {
    min-height: 64px;
  }

  .navbar-brand img {
    max-height: 44px;
  }

  .navbar-toggler {
    width: 44px;
    height: 44px;
  }

  .hamburger-menu {
    font-size: var(--nav-fs-title);
  }
}
