/* ── NAV DE MARCAS (Mitutoyo, Insize, Mahr, Starrett) ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

nav *, nav *::before, nav *::after {
  box-sizing: inherit;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
}

.logo img {
  height: 44px;
  width: auto;
}

.brand-text {
  line-height: 1.2;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

.brand-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.01em;
}

.brand-sub .highlight {
  color: var(--color-red-600);
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

.nav-back {
  font-size: .8rem;
  color: rgba(255, 255, 255, .72);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: .2s ease;
  text-decoration: none;
}

.nav-back:hover {
  color: #fff;
}

.nav-brand {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  border-radius: 999px;
}

nav::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 24px;
  right: 24px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 1), rgba(255, 80, 80, 1), rgba(220, 38, 38, 1));
  border-radius: 3px;
  opacity: 0;
  box-shadow: 0 0 8px 3px rgba(220, 38, 38, 0.6);
  pointer-events: none;
  transform-origin: left center;
}

nav.laser::after {
  animation: laserSweepFull 1.2s ease-out forwards;
}

@keyframes laserSweepFull {
  0% { width: 0; opacity: 1; box-shadow: 0 0 6px 2px rgba(220, 38, 38, 0.8); }
  30% { width: 40%; opacity: 1; box-shadow: 0 0 10px 3px rgba(220, 38, 38, 0.9); }
  70% { width: calc(100% - 48px); box-shadow: 0 0 14px 4px rgba(220, 38, 38, 1); }
  90% { width: calc(100% - 48px); opacity: 1; box-shadow: 0 0 18px 5px rgba(220, 38, 38, 1), 0 0 25px 8px rgba(255, 50, 50, 0.8); }
  100% { width: calc(100% - 48px); opacity: 0; box-shadow: none; }
}

/* ── RESPONSIVE NAV ── */
@media(max-width: 640px) {
  .nav-brand {
    display: none;
  }
}