/* ===================== */
/* MENÚ MÓVIL (HAMBURGUESA) */
/* ===================== */

.main-header {
  position: relative;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #0032A0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 999;
  padding: 8px 0;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 14px 24px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: yellow;
}

.mobile-menu .mobile-alta {
  margin: 10px 24px 4px;
  padding: 12px 24px;
  background-color: #007bff;
  border-radius: 5px;
  text-align: center;
  border-bottom: none;
}

.mobile-menu .mobile-alta:hover {
  background-color: #001f4d;
  color: yellow;
}

@media (max-width: 768px) {
  .main-header .main-nav {
    display: none;
  }

  .main-header .alta-btn {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }
}
