/* BARRA DE NAVEGACIÓN */
.header {
  position: sticky;
  height: fit-content;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  container-type: inline-size;
  container-name: header;
  padding: 0.2rem 1rem;
  z-index: 100;
}

.header--index {
  background: linear-gradient(to bottom, #1c1c1c93, #2f2f2f60, transparent);
}

.header--white {
  background: #ffffff;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.515);
  margin-bottom: 1.5rem;
}

.nav__logo-contenedor {
  max-width: clamp(5rem, 15dvw, 12rem); /*Tamaño logo*/
  display: flex;
  align-items: center;
}

.nav__logo {
  width: 100%;
  margin: 0;
  height: 100%;
}

.nav__toggle {
  font-size: clamp(1.5rem, 10vw, 4.3rem); /*Tamaño Toogle Menu*/
  font-weight: 550;
  background: none;
  border: none;
  color: #113b8a;
  cursor: pointer;
  position: absolute;
  right: 10px;
  padding: 0rem 1rem 0.5rem 0;
  text-shadow: 1px 2px 12px rgba(0, 0, 0, 0.631);
  z-index: 1001;
}

.header__nav {
  display: none;
  background: linear-gradient(to top, #101632, #113b8af3, #2651be);
  position: absolute;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 100dvw;
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
}

/* Cuando el menú está activo */
.header__nav--visible {
  display: flex;
  position: fixed;
}

.nav__toggle--abierto {
  color: #fff;
}

.no-scroll {
  overflow: hidden;
  height: 100dvh;
}

/* Lista de navegación móvil */
.header__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 600;
  gap: 1em;
}

/* Enlaces */
.link__item {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  text-shadow: 1px 2px 12px rgb(0, 0, 0);
  transition: color 0.3s ease;
}

/* ESTILOS PARA ESCRITORIO */
@media (min-width: 800px) {
  .header {
    justify-content: flex-start;
  }

  .nav__logo-contenedor {
    margin: 0 clamp(2em, 4vw, 3.5em) 0 1em;
    max-width: clamp(4em, 6vw, 6em);
  }

  .header__nav {
    display: flex !important;
    position: static;
    height: auto;
    width: auto;
    background: none;
    flex-direction: row;
    align-items: center;
    gap: clamp(1em, 3vw, 3em);
  }

  .header__nav-list {
    flex-direction: row;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    padding-right: clamp(1em, 3vw, 3em);
    gap: clamp(1em, 2.5vw, 2em);
  }

  .link__item:hover {
    color: white;
    background-color: #113b8a;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
  }

  .link__item {
    color: #113b8a;
  }

  .header--index .link__item {
    color: #fff;
  }

  .nav__toggle {
    display: none;
  }
}
