/* ===== NAVBAR GENERAL ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* separa izquierda y derecha */
  padding: 0 4rem;
  height: 50px;
  background-color: var(--primary-color);
}

/* ===== BLOQUE IZQUIERDO (LOGO + ENLACES) ===== */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 40px; /* 🔹 distancia entre logo y los enlaces */
}

/* ===== LOGO ===== */
.navbar-logo img {
  height: 25px;
  margin-top: 4px;
}

/* ===== ENLACES ===== */
.navbar-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.navbar-links li a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.navbar-links li a:hover {
  opacity: 0.8;
}

.navbar-links li.active a {
    color: #ffe990;
    opacity: 1;
}

.navbar-links li.active a:hover {
    color: #ffe990;
}


/* ===== ICONOS DE LOS ENLACES ===== */
.icon-menu {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 0.4em;
}

.icon-home {
  background-image: url('../img/navbar/house-solid-full.svg');
}

.navbar-links li.active .icon-home {
  background-image: url('../img/navbar/house-solid-full-active.svg');
}

.icon-blog {
  background-image: url('../img/navbar/pencil-solid-full.svg');
}

.navbar-links li.active .icon-blog {
  background-image: url('../img/navbar/pencil-solid-full-active.svg');
}

/* ===== MENÚ MÓVIL ===== */

.navbar-mobile{
  display: none;
}

#nav-menu {
  display: none;
  width: 100vw;       /* ancho total de la pantalla */
  margin: 0;
  padding: 0;
}

#nav-menu.active {
  display: block;
  width: 100vw;       /* ocupa todo el ancho del viewport */
  background: var(--secondary-color);
  padding: 12px 0;    /* solo arriba/abajo */
  margin: 0;
  box-sizing: border-box;
}

#nav-menu ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0 1rem;  /* opcional para separar de los bordes */
  list-style: none;
}

.hamburger {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

/* ===== REDES SOCIALES (DERECHA) ===== */
.navbar-social-media {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-media {
  height: 1.6rem;
  width: auto;
  vertical-align: middle;
  transition: opacity 0.2s;
}

.social-media:hover {
  opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 600px) {
  .navbar-pc{
    display: none;
  }

  .navbar-mobile{
    display: flex;
  }

  .navbar {
    flex-direction: column;
    height: auto;
    padding: 1rem 1rem 0 1rem;
  }

  .navbar-left {
    flex-direction: column;
    gap: 15px;
  }

  .navbar-links {
    flex-direction: column;
    gap: 10px;
  }

  .navbar-social-media {
    display: flex;
    flex-direction: row;      /* fila, puedes cambiar a column si quieres */
    justify-content: center;  /* centrado horizontal */
    gap: 12px;                /* espacio entre iconos */
    margin: 15px 0;
  }

  .hamburger {
    display: block;
    padding-bottom: 10px;
  }
  
}
