* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

nav.navbar {
  background-color:#022447;
  color: white;
  padding: 15px;
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo img {
  width: 100px;
}

.logo h1 {
  font-size: 1.5rem;
  color: white;
}

.nav-center {
  display: flex;
  flex-direction: column;
  align-items: left ;
  margin: 10px 0;
}

.nav-center form {
  display: flex;
  gap: 10px;
}

.nav-center input[type="search"] {
  padding: 6px;
  width: 250px;
  border: none;
  border-radius: 4px;
}

.nav-center button {
  padding: 6px 12px;
  background-color: #ffc107;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.nav-center .categorias {
  margin-top: 10px;
}

.nav-center .categorias select {
  padding: 6px;
  border-radius: 4px;
  border: none;
}

.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.nav-right .top-buttons,
.nav-right .bottom-buttons {
  display: flex;
  gap: 10px;
}

.nav-right a {
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-outline-light {
  border: 1px solid white;
  color: white;
  background: transparent;
}

.btn-outline-warning {
  border: 1px solid #ffc107;
  color: #ffc107;
  background: transparent;
}

.contact-tooltip {
  position: relative;
}

.contact-tooltip .tooltip-text {
  visibility: hidden;
  width: 160px;
  background-color: #222;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  position: absolute;
  top: 105%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.contact-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Estilos para dropdown de usuario */

.dropdown-usuario {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.dropbtn {
  background-color: transparent;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  padding: 6px 10px;
  text-decoration: underline;
}

.dropbtn:hover {
  color: #ffcc00; /* Puedes cambiar el color al pasar el mouse */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #222;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
  z-index: 1000;
  right: 0; /* Alinea el menú a la derecha */
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-content a {
  color: white;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #444;
}

.dropdown-usuario:hover .dropdown-content {
  display: block;
}

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .nav-right {
    align-items: flex-start;
  }
}
