/* =========================================
   INTEQ – NAVBAR (CANÓNICO)
   Basado en el diseño original de Automatización:
   - Desktop: barra azul/oscura fija con links visibles
   - Móvil: logo a la izquierda + toggle a la derecha
   - Menú móvil desplegable debajo de la barra
   ========================================= */

/* DESKTOP / BASE */
nav{
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 3rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container{
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-nav{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-nav img{ height: 45px; width:auto; }

.logo-nav h1{
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.menu-toggle{
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.nav-links{
  display: flex;
  gap: 3rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a{
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}

.nav-links a:hover{ color:#3dd598; }

.btn-contacto-nav{
  background: linear-gradient(135deg, #3dd598, #4e9fb8);
  padding: .8rem 2rem;
  border-radius: 50px;
  color: #fff !important;
  font-weight: 600;
}

/* MÓVIL */
@media (max-width: 768px){
  nav{
    padding: 1rem 1.25rem; /* <- altura “normal”, no gigante */
  }

  .nav-container{
    justify-content: space-between;
  }

  /* Logo ligeramente más pequeño en móvil */
  .logo-nav img{ height: 36px; }
  .logo-nav h1{ font-size: 1.4rem; }

  .menu-toggle{
    display: block;
    font-size: 1.8rem; /* tamaño normal */
    line-height: 1;
  }

  .nav-links{
    position: fixed;
    top: 80px;                 /* debajo de la barra */
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: 2rem;
    transition: left .3s;
    gap: 1.5rem;
  }

  .nav-links.active{ left: 0; }
}

/* SAFEGUARD ESCRITORIO */
@media (min-width: 769px){
  .nav-links{
    display: flex !important;
    position: static !important;
    left: auto !important;
    height: auto !important;
    background: transparent !important;
    flex-direction: row !important;
  }
  .menu-toggle{ display:none !important; }
}
