/* 
 * header.css
 * Estilos para el encabezado y la navegación principal
 */

 :root {
  --color-text: #fff;
  --color-primary: #E1160D;
}
 .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background-color: rgba(4, 4, 4, 0.9);
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  height: 70px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-header {
  max-width: 55px;
  height: auto;
}

.logo-text {
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 10px;
}

.navbar ul {
  display: flex;
  gap: 30px;
  list-style-type: none;
}

.navbar ul li a {
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: var(--color-primary);
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

.menu-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}


/* Mostrar menú hamburguesa en pantallas pequeñas */
@media (max-width: 1024px) { 
  .menu-icon {
      display: block;
  }

  .navbar {
      display: none;
      position: absolute;
      top: 70px;
      left: 0;
      width: 100%;
      background-color: rgba(4, 4, 4, 0.9);
      z-index: 1000;
  }

  .navbar ul {
      flex-direction: column;
      align-items: center;
      padding: 20px 0;
  }

  #menu-toggle:checked ~ .navbar {
      display: block;
  }
}
