* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
}

header {
  text-align: center;
  padding: 20px;
}

.logo {
  max-width: 400px;
}

nav {
  background-color: #003263;
 
}

.menu {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

.menu li {
  position: relative;
}

.menu > li {
  padding: 15px 20px;
}

.menu > li > a {
  color: white;
  text-decoration: none;
  display: block;
}

.menu li:hover > ul {
  display: block;
}

.menu li a:hover {
  color: #f89a51;
}

/* ---------- SUBMENÚS ---------- */
.submenu {
  display: none;
  position: absolute;
  top: 100%;       /* aparece debajo del padre */
  left: 0;
  background-color: #003263;
  list-style: none;
  min-width: 220px;
  z-index: 9999;

  border-radius: 3px;   /* 🔹 Bordes redondeados */

}

.submenu li a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
}

.submenu li a:hover {
  background-color: #003263;
  color: #f89a51;
}

/* Submenús dentro de submenús (ejemplo: CARRERAS en ASPIRANTES) */
.submenu .submenu {
  top: 0;          /* alineado con el padre */
  left: 100%;      /* se abre a la derecha */
  margin-left: 0;
   
}

/* ---------- Botón hamburguesa ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 15px;
}

.hamburger span {
  background: white;
  height: 3px;
  margin: 4px 0;
  width: 25px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .logo {
    max-width: 200px;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .menu.show {
    display: flex;
  }

  .menu > li {
    text-align:left;
    border-top: 1px solid #003263;
  }

  .submenu {
    position: static;
    text-align: center;
  }


  .hamburger {
    display: flex;
    justify-content: flex-end;
    background-color: #003263;
  }
}
