/* === NAVBAR UNIFICADO === */
.header-container {
  width: 100%;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
}

.header-inner {
  width: 100%;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 18px;
  border-bottom: 1px solid #eee;
}

.logos-left img,
.logos-right img {
  height: 90px;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #691C32;
  padding: 0 0;
  position: relative;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  left: 20px;
}

.hamburger-menu .bar {
  width: 35px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0px 18px;
  display: flex;
  align-items: center;
  font-size: 20px;
  transition: color 0.3s, background 0.3s;
}

.nav-links a:hover {
  background: #BC955C;
  color: #fff;
  border-radius: 6px;
}

.nav-links i {
  margin-right: 8px;
}

.header-inner,
.nav-menu,
.nav-links,
.dropdown {
  position: relative;
  overflow: visible !important;
  z-index: 100;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background-color: #BC955C;
  border-radius: 8px;
  list-style: none;
  padding: 0.5rem 0;
  min-width: unset;
  width: auto;
  white-space: nowrap;
}

.dropdown-menu.show {
  display: block;
}


.dropdown {
  position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%; /* Se desplaza a la derecha */
    background: #BC955C;
    border-radius: 8px;
    min-width: 200px;
}

/* Mostrar submenu al hover del item padre */
.dropdown-item:hover > .submenu {
    display: block;
}

/* Submenu items */
.submenu li a {
    padding: 8px 16px;
    color: #1b1b1b;
}

.submenu li a:hover {
    background: #cc883a;
    color: #fff;
}
.nav-links a.active {
    background: #BC955C;
    color: #fff !important;
    border-radius: 6px;
}
/* --- EFECTO HOVER EN EL MENÚ PRINCIPAL Y DESPLEGABLES --- */

/* 1. HOVER en los enlaces de Nivel 1 (Licencia/Refrendo, Laboratorios, Normatividad) */
.nav-links > li > a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Fondo suave al pasar el mouse */
    color: #fff !important; /* Asegura que el texto siga blanco o el color deseado */
}

/* 2. HOVER en los enlaces de Nivel 2 (Requisitos, Trámites, Registro, Convocatoria, etc.) */
.dropdown-menu li a:hover {
    background-color: #691C32; /* Un color de fondo destacado (Azul de ejemplo) */
    color: #fff !important; /* Color de texto blanco para contraste */
}

/* 3. HOVER en el contenedor de sub-submenú (el ítem 'Trámites' con el símbolo '▸') */
.dropdown-menu .dropdown-item > a:hover {
    background-color: #691C32; /* Usa el mismo color para mantener la consistencia */
    color: #fff !important;
}

/* 4. HOVER en los enlaces de Nivel 3 (Presencial, Digital, Fuentes Fijas) */
.submenu li a:hover {
    background-color: #691C32; /* Color diferente para el nivel más profundo (Amarillo de ejemplo) */
    color: #000 !important; /* Color de texto oscuro para contraste */
}

/* Transición suave para todos los enlaces, para que el cambio no sea abrupto */
.nav-links a {
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Responsive */
@media (max-width: 992px) {
  .hamburger-menu {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    display: none;
    background: #691C32;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
  }
}
