/* ========================
   Navbar estilo Blizzard
   ======================== */

body {
  margin: 0;
  font-family: sans-serif;
  background-color: white;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(77, 58, 47, 0.8);
  backdrop-filter: blur(4px);
  color: white;
  padding: 10px 30px;
  border-radius: 12px;
  z-index: 1000;
  margin: 0;
  flex-wrap: wrap;
}
/* Logo */
.navbar-logo img {
  height: 40px;
}

/* Menú */
.navbar-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  order: 1;
}

/* Menú elementos */
.navbar-menu li {
  position: relative;
}

.navbar-menu li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar-menu li a:hover {
  color: rgba(77, 58, 47, 0.8);
}

/* Dropdown */
.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #4d3a2f;
  padding: 10px;
  border-radius: 10px;
  list-style: none;
  min-width: 200px;
  z-index: 100;
}

.dropdown li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 5px 10px;
}

.dropdown li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(77, 58, 47, 0.8);
}

.dropdown .divider {
  height: 1px;
  background: #666;
  margin: 5px 0;
}

/* Botones */
.navbar-actions {
  order: 2;
  display: flex;
  gap: 15px;
}

.navbar-actions .btn {
  background-color: rgba(77, 58, 47, 0.8);
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.navbar-actions .btn.trial {
  background-color: transparent;
}

.navbar-actions .btn:hover {
  opacity: 0.9;
  color: rgba(77, 58, 47, 0.8);
}

/* Botón hamburguesa */
.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.navbar-toggle span {
  height: 3px;
  width: 25px;
  background-color: white;
  border-radius: 2px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .navbar-menu {
    order: 2; /* Menú debajo del botón */
    flex-direction: column;
    width: 100%;
    display: none;
    gap: 10px;
    margin-top: 10px;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-actions {
    order: 1; /* Botón al lado del hamburguesa */
    margin-left: auto;
    display: flex;
    align-items: center;
  }

  .navbar-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
  }

  .navbar-toggle span {
    height: 3px;
    width: 25px;
    background-color: white;
    border-radius: 2px;
  }
}
