/* =========================
NAVBAR
========================= */
.navbar {
  width: 100%;
  background: #ffffff;
  position: sticky;
  top: 0;
  height: 70px; /* altura mayor */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center; /* centra todo horizontalmente */
  align-items: center;     /* centra todo verticalmente */
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; /* centra verticalmente el contenido del grid */
  padding: 0 20px;
}

/* LOGO (izquierda) */
.logo {
   
  justify-self: start;
  display: flex;
  align-items: center;
}

.logo a {
     font-size: 20px;
    font-weight: 600;
    color: rgb(230, 8, 119);
    text-decoration: none;
}

/* MENÚ (centro) */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: 0.3s;
  font-size: 17px;
}

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

/* REDES (derecha) */
.nav-social {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  align-items: center;
}

.nav-social a i {
  font-size: 20px;
  color: #e60877;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  display: block;
}

/* =========================
RESPONSIVE (MÓVIL)
========================= */
@media (max-width: 768px) {

  .nav-container {
    grid-template-columns: 1fr auto auto;
  }

  /* OCULTAR REDES */
  .nav-social a {
    display: none;
  }

  /* MENÚ MÓVIL */
  .nav-links {
    position: absolute;
    top: 70px; /* justo debajo de la navbar */
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  /* MENÚ ABIERTO */
  .nav-links.active {
    max-height: 300px;
    padding: 20px 0;
  }

  /* HAMBURGUESA VISIBLE */
  .menu-toggle {
    display: flex;
    align-items: center;
  }

  .nav-links a {
    font-size: 15px;
  }

}