/* header.css - Mobile-first */

/* --- ESTILOS BASE --- */
.header {
  background-color: #e2061a;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}



/* ─── LOGO ─── */
.logo a {
  display: block;
}

.logo img {
  height: 60px;
}

/* ─── NAVEGACIÓN ─── */
.navigation {
  display: flex;
  align-items: center;
}

.navigation ul {
  list-style: none;
  padding: 10px 20px;
  margin: 0;
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #e2061a;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.navigation.active ul {
  display: flex;
}

.navigation li {
  margin-left: 0;
  margin-bottom: 10px;
}

.navigation li:last-child {
  margin-bottom: 0;
}

/* ─── LINKS ─── */
.navigation a {
  font-family: GeneralSans, sans-serif;
  font-weight: 500;
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
}

/* Hover */
.navigation a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ─── HAMBURGUESA ─── */
.hamburger-menu {
  display: block;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: none;
  outline: none;
  position: relative;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación hamburguesa activa */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ─── DESKTOP (min-width: 993px) ─── */
@media (min-width: 993px) {
  .navigation ul {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
  }

  .navigation li {
    margin-left: 0;
    margin-bottom: 0;
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
  }

  .navigation li:last-child {
    border-right: none;
    padding-right: 0;
  }

  .navigation li:first-child {
    padding-left: 0;
  }

  .hamburger-menu {
    display: none;
  }
}