@charset "utf-8";
/* 4-monitor/menu.css */

   * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* NAVBAR */
.navbar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 25%;
}

/* MENU */
.menu {
  list-style: none;
  display: flex;
  gap: 32px;
}

.menu li {
  position: relative;
}

.menu a {
  font-family: "Sora", sans-serif;
  text-decoration: none;
  color: #58314e;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

/* Línea animada */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #fe5109;
  transition: width 0.3s ease;
}

/* Hover */
.menu a:hover::after {
  width: 100%;
}

/* Activo */
.menu a.active::after {
  width: 100%;
}

/* SUBMENU */
.submenu {
  position: absolute;
  z-index: 100000000;
  list-style: none;
  top: 130%;
  left: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.submenu a {
  padding: 10px 18px;
  display: block;
  color: #58314e;
}

.submenu a:hover {
  background: #f3f4f6;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}



.hamburger {
  display: none;
  font-size: 1.6rem;
}

#menu-toggle {
  display: none;
}




/* MOBILE */

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .menu {
    position: absolute;
    z-index: 100000000;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    border-top: 1px solid #e5e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  #menu-toggle:checked ~ .menu {
    max-height: 900px;
  }

  .menu li {
    padding: 14px 24px;
  }

  .submenu {
    position: static;
    list-style: none;
    border: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .has-submenu:hover .submenu {
    display: block;
  }
}