/* ===== MENÚ DE NAVEGACIÓN STICKY ===== */
.site-header {
  position: relative;
  z-index: 1001;
}

.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body {
  margin: 0;
  padding-top: 70px; /* misma altura que el header */
}

.navbar-container {
  max-width: 100%;
  width: 100%;
  padding: 0 calc(var(--spacing-unit) * 2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--spacing-unit) * 12);
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 20px;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.navbar-logo:hover {
  opacity: 0.8;
}

/* Menú */
.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: calc(var(--spacing-unit) * 5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  margin: 0;
}

.navbar-nav a {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.navbar-nav a:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.navbar-nav a:hover::after {
  width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-header {
    height: 60px;
  }

  body {
    padding-top: 60px;
  }

  .navbar-container {
    gap: calc(var(--spacing-unit) * 6);
    padding: 0 calc(var(--spacing-unit) * 1);
  }

  .navbar-nav {
    gap: calc(var(--spacing-unit) * 3);
  }

  .navbar-nav a {
    font-size: 14px;
  }

  .navbar-logo img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .navbar-header {
    height: auto;
    padding: calc(var(--spacing-unit) * 1) 0;
  }

  body {
    padding-top: auto;
  }

  .navbar-container {
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 1);
    justify-content: center;
  }

  .navbar-logo {
    width: 100%;
    justify-content: center;
    order: -1;
    margin-bottom: calc(var(--spacing-unit) * 1);
  }

  .navbar-logo img {
    height: 35px;
  }

  .navbar-nav {
    gap: calc(var(--spacing-unit) * 1.5);
    width: 100%;
    justify-content: center;
  }

  .navbar-nav a {
    font-size: 12px;
  }
}
