.main-header {
  position: static;
  width: 99.98%;
  height: 140px;
  background-image: url('../../assets/img/fondo_prepa.png'); /* o la ruta de tu imagen */
  background-size: cover;     /*  para que la imagen cubra todo */
  background-position: center; /* centrada */
  background-repeat: no-repeat;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0rem 0rem;
  
}

.nav-principal {
  width: 100%;
  max-width: 1300px;
  display: flex;
  justify-content: space-between;
  padding-top: 2rem; /* Reduce el padding */
}

.logo-img {
 height: 120px;
 width: auto;
 margin-right: 5rem;
 margin-top: -21px;
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.5rem 0;
  margin: 0;
  font-size: 1.3rem;
}

.menu li {
  position: relative;
}

.menu li a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover en todos los enlaces del menú */
.menu li a:hover {
  background-color: #001C54; /* Azul institucional */
  color: #ffc107; /* Amarillo institucional */
}

/* Submenú / Dropdown */
.menu .drop {
  display: none;
  position: absolute;
  top: 2.8rem;
  left: 0;
  background-color: #001C54; /* Mismo color del hover */
  padding: 0.5rem;
  border-radius: 5px;
  z-index: 1001;
  min-width: 220px;
}

/* Mostrar dropdown al pasar el mouse */
.menu li:hover .drop {
  display: block;
}

/* Estilo de los links dentro del dropdown */
.menu .drop a {
  display: block;
  padding: 0.4rem 1rem;
  color: white;
  font-size: 0.9rem;
  text-decoration: none;
}

.menu .drop a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffc107;
}

/* Elementos de lista individuales si los necesitas */
.menu .item {
  margin: 0;
  padding: 0;
}



/* Responsive menú básico */
.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  margin-right: 20px;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background-color: #002147;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 1000;
  }

  #menu-toggle:checked ~ .menu {
    display: flex;
  }

  .menu-icon {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .menu li {
    text-align: center;
    padding: 1rem 0;
  }
}

/* Submenú */
.drop {
  display: none;
  position: absolute;
  background-color: #003366;
  padding: 10px;
  list-style: none;
  z-index: 100;
}

.item:hover .drop {
  display: block;
}

.drop li {
  margin: 5px 0;
}
