/*
Agrega aquí los estilos para el header con logo, menú centrado y login a la derecha
*/

header.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  z-index: 3000;
  background: var(--color-azul-oscuro);
  color: var(--color-amarillo);
  box-shadow: 0 4px 24px rgba(1,23,55,0.13);
  border-bottom: 3px solid var(--color-amarillo);
  border-radius: 0 0 18px 18px;
  padding: 0 2.5vw;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s, background 0.3s;
  width: 100%;
  overflow-x: visible;
  box-sizing: border-box;
}

header.header::after {
  content: '';
  display: block;
  width: 100%;
  height: 5px;
  background: var(--color-amarillo);
  position: absolute;
  left: 0;
  bottom: -5px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(253,169,1,0.12);
  z-index: 2999;
  pointer-events: none;
}

.header-logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-logo {
  height: 48px;
  margin-right: 1.5rem;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: visible;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  align-items: center;
  background: rgba(1,23,55,0.85);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(1,23,55,0.10);
  padding: 0.3rem 1.2rem;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100vw;
  overflow-x: visible;
}

.menu li {
  display: inline-block;
}

.menu a {
  color: var(--color-amarillo);
  text-decoration: none;
  font-size: 0.75rem;
  font-family: var(--fuente-texto);
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 1.3;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  background: transparent;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s, transform 0.2s;
  box-shadow: 0 1px 4px rgba(253,169,1,0.07);
  white-space: nowrap;
}

.menu a:hover, .menu a:focus {
  background: linear-gradient(90deg, var(--color-azul) 0%, var(--color-azul-oscuro) 100%);
  color: var(--color-amarillo);
  border: 2px solid var(--color-amarillo);
  box-shadow: 0 4px 16px rgba(253,169,1,0.18), 0 2px 12px rgba(1,23,55,0.10);
  transform: translateY(-2px) scale(1.07);
  text-shadow: 0 2px 8px rgba(1,23,55,0.13);
}

.menu a:active {
  background: var(--color-amarillo);
  color: var(--color-azul-oscuro);
  border: 2px solid var(--color-azul-oscuro);
}

.header-login {
  display: flex;
  align-items: center;
  margin-left: 2rem;
  gap: 0.7rem;
}

.header-login .user-icon {
  font-size: 1.7rem;
  color: var(--color-gris-claro);
}

.header-login .user-icon i {
  color: var(--color-gris-claro);
  font-size: 1.5rem;
  transition: color 0.2s, transform 0.2s;
}

.header-login .user-icon i:hover {
  color: var(--color-amarillo);
  transform: scale(1.15);
}

.header-login a,
.header-login a span,
.header-login .user-icon,
.header-login .user-icon i {
  color: var(--color-gris-claro) !important;
}

.header-login a {
  color: var(--color-gris-claro);
  background: transparent;
  font-size: 1rem;
  padding: 0.5rem 1.1rem;
  letter-spacing: 0.7px;
  line-height: 1.3;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  min-width: 0;
  max-width: 100vw;
  overflow: visible;
}

.header-login a:hover {
  background: var(--color-azul);
  color: var(--color-amarillo);
  border: 2px solid var(--color-azul);
  transform: scale(1.07);
}

/* Evitar headers extra en modales u otros componentes */
.modal-login .header,
#loginModal .header {
  display: none !important;
}

@media (max-width: 900px) {
  header.header, header.header::after {
    width: 100%;
    max-width: 100vw;
  }
  .header-nav {
    max-width: 100vw;
    min-width: 0;
    overflow-x: visible;
  }
  .menu {
    max-width: 100vw;
    min-width: 0;
    overflow-x: visible;
    gap: 0.5rem;
    padding: 0.3rem 0.3rem;
  }
  .header-login {
    margin-left: 0.5rem;
  }
  .header-login a {
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
    max-width: 100vw;
  }

  /* ...existing code... */

/* Botón hamburguesa oculto en desktop */
.header-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-amarillo);
  cursor: pointer;
  margin-left: 1rem;
  z-index: 4000;
}

/* Responsive: menú hamburguesa en móvil */
@media (max-width: 900px) {
  .header-toggle {
    display: block;
  }
  .header-nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100vw;
    background: var(--color-azul-oscuro);
    box-shadow: 0 4px 24px rgba(1,23,55,0.13);
    border-radius: 0 0 18px 18px;
    transition: max-height 0.3s;
    z-index: 3500;
    max-height: 0;
    overflow: hidden;
    display: block;
  }
  .header-nav.active {
    max-height: 400px;
    transition: max-height 0.4s;
    overflow: visible;
  }
  .menu {
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem 0.5rem;
    align-items: flex-start;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .menu li {
    width: 100%;
  }
  .menu a {
    width: 100%;
    text-align: left;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }
  .header-login {
    margin-left: 0;
    margin-top: 0.7rem;
    justify-content: flex-start;
  }
}
}
