/*********************** HEADER ***********************/
header {
  grid-area: header;
  margin: 0;
  padding: 0;
  width: 100%;
}

.mundo-header {
  border: 2px #2b2b2b solid;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); /* sombra para dar efecto de relieve */
  /* Cambiamos un poco el tono del header para diferenciarlo del main*/
  background-color: rgba(243, 221, 199, 0.518);
}

/* Logo en el header */
.navbar-brand img {
  height: 7rem;
  width: auto;
  display: block;
}

/* Menú central */
.header-nav .nav-link {
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: black;
}

/* Hover del menú central */
.header-nav .nav-link:hover {
  text-decoration: underline;
}

/* Espacio entre elementos del menú */
.header-nav {
  column-gap: 1rem;
}

/* Enlace "Iniciar sesión" */
#login-link {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: black;
  text-decoration: none;
}

/* Contenedor del menú usuario */
.menu-usuario {
  position: relative;
  margin-right: 1rem;
  font-family: "Cinzel", serif;
}

/* Botón con el nick */
.boton-usuario {
  background: none;
  border: none;
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: black;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Flechita hacia abajo */
.simbolo-flecha {
  display: inline-block; /* importante para que el rotate funcione bien */
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  font-family: system-ui, sans-serif;
}

/* Icono usuario (Font Awesome) */
.icono-usuario {
  font-size: 22px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Cuando el contenedor tiene la clase 'abierto', giramos la flecha */
.menu-usuario.abierto .simbolo-flecha {
  transform: rotate(180deg);
}

/* Desplegable perfil (oculto al inicio) */
.opciones-perfil {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.3rem;
  background-color: rgba(243, 221, 199, 0.97);
  border: 1px solid #000;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
  display: none;
  min-width: 160px;
  z-index: 10;
}

/* Enlaces / botones dentro del desplegable */
.opciones-perfil a,
.opciones-perfil button {
  display: block;
  width: 100%;
  text-align: left;
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0.3rem 0;
  cursor: pointer;
  color: black;
  text-decoration: none;
}

.opciones-perfil a:hover,
.opciones-perfil button:hover {
  text-decoration: underline;
}

/* Botón hamburguesa */
.boton-hamburguesa {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #3b2518;
  background-color: rgba(243, 221, 199, 0.85);
  border-radius: 10px;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.4);
}
