/* =========================
   BOTÓN HAMBURGUESA
========================= */

.menu-toggle {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
}


/* =========================
   MENÚ MÓVIL
========================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0e469b, #0056b3);
  backdrop-filter: blur(10px);
  overflow-y: auto;

  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  padding-top: 120px;
  text-align: center;
  z-index: 999;
}

/* Estado activo */
.mobile-menu.active {
  display: flex;
}


/* =========================
   LINKS PRINCIPALES
========================= */

.mobile-menu a,
.submenu-toggle {
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;

  position: relative; /* contenedor del dot */
  width: 100%;
  text-align: center;
}

.mobile-menu a:hover {
  color: #93c5fd;
}


/* =========================
   BOTÓN CTA
========================= */

.mobile-menu .cta {
  background: white;
  color: #0e469b;
  padding: 12px 24px;
  border-radius: 14px;
  margin-top: 10px;
  font-size: 13px;
}


/* =========================
   SUBMENÚ
========================= */

.submenu {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  width: 100%;
}

.submenu.active {
  display: flex;
}

.submenu a {
  font-size: 11px;
  opacity: 0.9;
}


/* =========================
   BOTÓN SUBMENÚ
========================= */

.submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin: 0.6rem 0;
}


/* =========================
   BOTÓN CERRAR MENÚ
========================= */

.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 28px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}


/* =========================
   LOGO MÓVIL
========================= */

.mobile-logo {
  width: 160px;
  margin-bottom: 20px;
}


/* =========================
   ANIMACIÓN PING
========================= */

@keyframes ping {
  75%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}


/* =========================
   DOT ROJO (MOBILE FIRST)
========================= */

.nav-dot,
.nav-dot-ping {
  position: absolute;
  top: 50%;
  right: 128px;             /* móvil */
  width: 6px;
  height: 6px;
  background-color: #ff3e3e;
  border-radius: 50%;
  transform: translateY(-50%);
}

.nav-dot-ping {
  animation: ping 1.5s infinite;
}


/* =========================
   DESKTOP AJUSTES
========================= */

@media (min-width: 1024px) {

  .menu-toggle,
  .mobile-menu {
    display: none;
  }

  .nav-dot,
  .nav-dot-ping {
    right: 12px;           /* desktop */
  }

}
