body {
  font-family: "Montserrat", serif;
  background: #222;
}

.menu {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: #444; /* Escala de grises */
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  flex-wrap: wrap;
  position: relative;
  z-index: 2000; /* Aumenta el z-index */
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  transition: transform 0.3s;
  z-index: 1004;
}
.menu-toggle.active { transform: rotate(90deg); }

.navbar {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2001; /* Aumenta el z-index */
  transition: max-height 0.4s, padding 0.4s;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-direction: row;
  width: auto;
  padding: 0;
  align-items: center;
}
.nav-links li a {
  position: relative;
  color: #fff;
  margin: 0 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 2px;
  background: #888; /* Gris medio */
  transition: width 0.3s;
}
.nav-links li a:hover::after { width: 100%; }

@media (max-width: 900px) {
  .menu {
    flex-wrap: nowrap;
    padding: 1rem 1rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    width: 100vw;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1003;
    background: #444; /* Escala de grises */
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    transition: max-height 0.4s cubic-bezier(.77,0,.18,1), padding 0.4s cubic-bezier(.77,0,.18,1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    visibility: hidden;
    opacity: 0;
  }
 .navbar.active {
    max-height: 500px;
    padding: 1rem 0;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(.77,0,.18,1), padding 0.4s cubic-bezier(.77,0,.18,1);
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 0.5rem;
    display: flex;
    padding: 0 1.5rem;
  }
  .nav-links li { margin: 1rem 0; }
  .logo img, .logo-aceros img {
    height: 28px;
  }
  .menu {
    position: relative;
    z-index: 1002;
  }
}

@media (max-width: 480px) {
  .menu {
    padding: 0.5rem;
  }
  .logo img, .logo-aceros img {
    height: 22px;
  }
  .nav-links li a {
    font-size: 0.98rem;
    margin: 0 0.5rem;
  }
}

/* LOGOS */
.logo, .logo-aceros {
  display: flex;
  align-items: center;
  height: 20px;
}
.logo img, .logo-aceros img {
  height: 21px;
  object-fit: contain;
  transition: filter 0.4s, transform 0.4s;
  filter: drop-shadow(0 0 0 rgba(255,255,255,0));
}
.logo img:hover, .logo-aceros img:hover {
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.6));
  transform: scale(1.05);
}

/* Header */
.contact-header {
  padding: 5rem 2rem;
  text-align: center;
}
.contact-header h1 {
  font-size: 3rem;
  color: #888;
  margin-bottom: 1rem;
}
.contact-header p {
  font-size: 1.2rem;
  color: #fff;
}
