/* ===================== BOTÓN HAMBURGUESA ===================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #c8102e;
  transition: .3s;
}

/* Animación a X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===================== MENÚ MÓVIL (PANEL DERECHA) ===================== */
@media (max-width: 992px) {

  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: flex;
  }

  /* Panel derecho */
  .nav-links {
    position: fixed;
    top: 0;
    right: -260px;          /* oculto */
    width: 260px;
    height: 100vh;
    background: #1c1c1c;
    display: flex;
    flex-direction: column;

    padding-top: 120px;
    gap: 12px;
    padding-left: 30px;

    transition: right .3s ease;
    z-index: 1000;
  }

  .nav-links a {
    color: white !important;
    font-size: 1.1rem;
    margin: 4px 0;
    padding: 6px 0;
  }

  /* Activado */
  .nav-links.active {
    right: 0;
  }
}

/* ===================== BOTÓN "INICIAR SESIÓN" EN MENÚ MÓVIL ===================== */
@media (max-width: 768px) {
  .nav-links .btn-ayuda {
    display: block;
    width: 80%;
    margin: 25px auto 0 auto;
    text-align: center;

    border: 2px solid #fff;
    color: #fff !important;

    padding: 12px 0;
    font-size: 1rem;
    border-radius: 30px;

    background: transparent !important;
  }

  .nav-links .btn-ayuda:hover {
    background: #fff;
    color: #c8102e !important;
  }
}
