/*
Theme Name: Humand Hub
Author: Maycol Yepes
Version: 2.3
*/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Parkinsans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

/* ==============================
   HEADER
   ============================== */
.main-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 9999;
}

/*
  GRID 3 COLUMNAS IGUALES EN LOS EXTREMOS
  logo [1fr] | nav [auto] | acción [1fr]
  → nav queda matemáticamente en el centro
*/
.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* ── Logo ── */
.logo-text {
  justify-self: start;
}
.logo-text a {
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  display: flex;
}
.color-humand {
  color: #0082bc !important;
  margin-right: 5px !important;
}
.color-hub {
  color: #3bb2dd;
}

/* ── Nav: los 3 botones centrados ── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #e6f5fc;
  padding: 6px 10px;
  border-radius: 40px;
  list-style: none;
}

.nav-link {
  color: #101e3c;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition:
    background 0.25s,
    color 0.25s;
}
.nav-link:hover {
  background: #101e3c;
  color: #fff;
}

/* ── Acción derecha ── */
.header-action {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-contact {
  background: #3bb2dd;
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.25s;
  display: inline-block;
}
.btn-contact:hover {
  background: #0082bc;
}

/* ── Hamburguesa (oculto en desktop) ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #0082bc;
  border-radius: 2px;
}

/* ── Menú móvil (siempre oculto en desktop) ── */
.mobile-nav {
  display: none;
}

/* ==============================
   RESPONSIVE ≤ 992px
   ============================== */
@media (max-width: 992px) {
  /* Flex simple: logo | hamburguesa */
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 16px 20px;
  }

  /* Ocultar nav de desktop */
  .nav-menu {
    display: none;
  }

  /* Ocultar botón contacto de desktop */
  .btn-desktop {
    display: none;
  }

  /* Mostrar hamburguesa */
  .menu-toggle {
    display: flex;
  }

  /* Menú móvil desplegable */
  .mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 8px 0 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  }

  /* El JS agrega .open → se muestra */
  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a {
    color: #101e3c;
    text-decoration: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
  }
  .mobile-nav a:last-child {
    border-bottom: none;
  }

  .mobile-nav .btn-contact {
    margin: 12px 24px 0;
    text-align: center;
    border-bottom: none;
    padding: 12px 24px;
  }
}
