/*header.css*/

/* ================================ HEADER GENERAL ================================*/
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 0 30px;
  background: var(--negro);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, var(--rojo-oscuro), var(--rojo-oscuro)) 1;
}
/* Línea degradada inferior */
.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    rgba(229, 9, 20, 0) 0%,
    rgba(229, 9, 20, 0.4) 20%,
    rgba(229, 9, 20, 1) 50%,
    rgba(229, 9, 20, 0.4) 80%,
    rgba(229, 9, 20, 0) 100%
  );
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
  z-index: 2;
}
/* Texto superior de Header */
.header h1 {
  color: #d62828;
  margin: 0;
  font-size: var(--header-font-size-titulo);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
}
/* Logo */
.logo img {
  height: var(--logo-height);
}

/* ================================ HEADER | NAVEGACIÓN PC ================================*/
/* Navegación */
.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
/* Estilo de botones */
.nav a {
  text-decoration: none;
  color: var(--gris-claro);
  font-weight: 500;
  font-size: 1.45rem;
  padding: var(--header-padding-vertical) var(--header-padding-horizontal);
  position: relative;
  transition: color 0.3s ease;
}
/* Hover elegante con subrayado animado */
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: var(--rojo-oscuro);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav a:hover {
  color: var(--rojo-oscuro);
}
.nav a:hover::after {
  width: 100%;
}

/* ================================ HEADER | NAVEGACIÓN MOVIL ================================*/
/*Botón Menú desplegable*/
.menu-btn {
  display: none;
  font-weight: bold;
}
/* Estado activo */
.menu-btn.active {
  color: var(--rojo-oscuro);
  transform: scale(1.05);
}
/* Estado no activo */
.menu-btn.no-active {
  background: none;
  color: var(--gris-claro);
  border: none;
  transform: none;
}
/* Estado focus */
.menu-btn:focus {
  outline: none;
}

/* ================================ HEADER | RESPONSIVE ================================*/
/* Pantallas menores a 1024px (Movil) */
@media (max-width: 1024px) {
  .header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .logo {
    margin: auto;
  }

  .nav ul, .header::after{
    display: none;
  }

  .nav.active ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--negro);
    padding: 20px;
    border-radius: 8px;
  }

  .menu-btn {
    display: block;
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
  }
}

/* Pantallas mayores a 1024px (PC) */
@media (min-width: 1024px) {
}