/* ===============================
   HEADER
================================ */
.header {
  width: 100%;
  background: #111;
  position: relative;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.header.hide {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1700px;
  margin: auto;
  padding: 23px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===============================
   LOGO
================================ */
.logo-container {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo-img {
  width: 58px;
  transform: scale(1.7);
  transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
  transform: scale(1.8);
}


.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

/* ===============================
   NAV DESKTOP
================================ */
.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: #ddd;
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: #00A651;
}

/* ===============================
   BOTÓN HAMBURGUESA
================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ===============================
   MODO MÓVIL
================================ */
@media (max-width: 768px) {

  /* Botón hamburguesa */
  .menu-toggle {
    display: flex;
  }

  /* Menú oculto por defecto */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;

    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;

    display: none; /* 👈 CLAVE */
  }

  /* Menú visible */
  .nav.active {
    display: flex;
  }

  .nav a {
    font-size: 1.1rem;
  }
}
