/* NAVBAR */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: #000;
  border-bottom: 1px solid #111;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* CONTENIDO */
#header .header-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 20px;
  gap: 20px;
}

/* LOGOS */
#header .logo {
  display: flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
}

#header .logo img {
  height: 50px;
  object-fit: contain;
}

/* SOLO si el primer logo es oscuro */
#header .logo img:first-child {
  filter: brightness(0) invert(1);
}

/* CAJA TEXTO + LOGO */
#header .logo-box {
  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 140px;
  height: 60px;
}

#header .logo-box .texto {
  height: 50%;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;

  color: #ffffff;
}

#header .logo-kyocera {
  height: 50%;
  width: 100%;
  object-fit: contain;
}

/* MENÚ */
#header nav ul {
  list-style: none;

  display: flex;
  align-items: center;
  gap: 25px;
}

#header nav ul li a {
  position: relative;

  font-size: 12px;
  font-weight: 600;

  color: #f5f5f5;

  letter-spacing: 0.5px;
  text-transform: uppercase;

  padding-bottom: 5px;

  transition: 0.3s;
}

/* LINEA HOVER */
#header nav ul li a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 0%;
  height: 2px;

  background: #cc0000;

  transition: 0.3s;
}

/* HOVER */
#header nav ul li a:hover {
  color: #ff2b2b;
}

#header nav ul li a:hover::after {
  width: 100%;
}

/* ACTIVO */
#header nav ul li.active a {
  color: #ff2b2b;
}

#header nav ul li.active a::after {
  width: 100%;
}

/* BOTON MENU */
.menu-toggle {
  display: none;

  background: none;
  border: none;

  color: #ffffff;
  font-size: 30px;

  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #header .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  #navbar {
    width: 100%;

    max-height: 0;
    overflow: hidden;

    transition: 0.3s ease;
  }

  #navbar.active {
    max-height: 500px;
    margin-top: 15px;
  }

  #header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  #header nav ul li {
    width: 100%;
  }

  #header nav ul li a {
    display: block;
    width: 100%;
  }

  #header .logo img {
    height: 40px;
  }

  #header .logo-box {
    width: 120px;
    height: 50px;
  }
}
