/* ==============================
Archivo: navbar.css
Descripción: Estilos para el navbar global (navbar.php)
============================== */

.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e2e2;
  padding: 12px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
}

.logo-flotante {
  position: absolute;
  top: -10px;
  left: 30px;
  z-index: 10;
}

.logo-flotante img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #0056b3;
  margin-right: 160px;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #0056b3;
  cursor: pointer;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 25px 0;
  display: flex;
  gap: 30px;
}

.menu-list li a {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 12px 0;
}

.menu-list li a:hover {
  color: #0056b3;
}

/* Estilos para los botones del Navbar */
.btn {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border-radius: 25px;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primario {
  background-color: #0056b3;
  color: white;
  border: none;
}

.btn-primario:hover {
  background-color: #004085;
}

.btn-secundario {
  background-color: #e2e2e2;
  color: #333;
  border: none;
}

.btn-secundario:hover {
  background-color: #d0d0d0;
}

@media (max-width: 768px) {
  .logo-flotante {
      display: none;
  }

  .navbar-container {
      flex-direction: column;
      align-items: flex-start;
      padding: 15px 20px;
      gap: 10px;
  }

  .menu-toggle {
      display: block;
      position: absolute;
      top: 15px;
      right: 20px;
      z-index: 1001;
  }

  .menu-list {
      flex-direction: column;
      background-color: rgba(0, 86, 179, 0.95);
      position: fixed;
      top: 0;
      left: 0;
      width: 65vw;
      height: 100vh;
      padding: 80px 20px;
      display: none;
      z-index: 9999;
  }

  .menu-list.activo {
      display: flex;
  }

  .menu-list li a {
      color: white;
      font-size: 18px;
  }
}

/* Ajuste en botones de Navbar */
.menu-list li a.btn {
  font-size: 16px;
  padding: 12px 25px;
  text-align: center;
  width: auto;
  min-width: 150px;
}
