/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo img {
  height: 65px;
  width: auto;
}
.navigation {
  display: flex;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.2rem;
  transition: color 0.3s;
  position: relative;
}
.nav-menu a:hover {
  opacity: 0.8;
  color: #f7931d;
}
.nav-menu li:nth-child(2) a:hover,
.nav-menu li:nth-child(4) a:hover,
.nav-menu li:nth-child(6) a:hover {
  color: #0072bc;
}
.nav-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 280px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  list-style: none;
  padding: 1rem 0;
  border-radius: 8px;
  z-index: 100;
}
.nav-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  padding: 0;
  position: relative;
}
.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: #333 !important;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1rem;
}
.dropdown-menu a:hover {
  background: #f8f9fa;
  color: #0072bc !important;
}

.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  left: 100%;
  top: 0;
  margin-left: 5px;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}
.dropdown-submenu:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  display: none;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 3.5px 0;
  background: #0072bc;         /* Color institucional */
  border-radius: 2px;
  transition: all 0.3s;
}

/* -----------------------------------------------
   Hacer que la tercera dropdown-submenu se abra a la izquierda
------------------------------------------------- */
.dropdown-submenu:nth-child(3) > .dropdown-menu {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 5px;
}
