/* =========================================
   HEADER PREMIUM (Vector Style)
   /static/css/header.css
   ========================================= */

header.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 5%;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.brand:hover {
  transform: scale(1.02);
}

.brand img {
  display: block;
  height: 90px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #D3A129;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #D3A129;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: #D3A129;
  font-weight: 700;
}

.btn-out {
  padding: 10px 20px;
  background: #f5f5f5;
  border-radius: 50px;
  border: none;
  color: #666;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
  white-space: nowrap;
}

.btn-out:hover {
  background: #2F4858;
  color: #fff;
}

/* =========================================
   RESPONSIVE HEADER
   ========================================= */
@media (max-width: 900px) {
  .nav-links {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  header.nav {
    padding: 10px 3%;
  }

  .nav-inner {
    flex-direction: column;
    gap: 12px;
    padding-top: 5px;
  }

  .nav-links {
    gap: 12px;
    width: 100%;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
    padding: 12px 5px 0;
    flex-wrap: wrap;
    /* Permite que el botón de cerrar sesión baje si no entra */
  }

  .nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }

  .btn-out {
    margin-left: 0;
    padding: 8px 15px;
    font-size: 0.7rem;
  }

  .brand img {
    height: 55px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.7rem;
    padding: 5px 0;
  }
}