.Body {
  min-height: 100vh;
  overflow: hidden;
}

html {
  overflow-y: scroll;
}

.Header {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 20px;
  z-index: 1;
  height: 80%;
}

.Header-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.Header-nav {
  width: 70%;
}

.Header-navItem {
  display: inline-block;
  width: 100%;
  font-size: var(--font-size-h);
  font-weight: 700;
  color: var(--color-bg1);
  list-style: none;
  padding: 10px 0;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.Header-navItem:hover {
  color: var(--color-bg2);
  transform: scale(1.1);
  transform: translate(5px, 5px);
  /* mueve el elemento en X y en Y*/
}

.Header-navList {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
  width: 100%;
  list-style: none;
  gap: 20px;
}

.FondoInicial {
  justify-content: space-between;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.FondoInicial,
.FondoTercero,
.FondoSegundo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  transform: translateY(100%);
  /* lo posiciono fuera de la pantalla */
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
  overflow-y: hidden;
  scrollbar-width: none;
}

.FondoSegundo {
  justify-content: space-between;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.FondoTercero {
  justify-content: space-between;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.btnFondoTercero {
  margin-top: 68px;
  width: 34.375rem;
  height: 3.125rem;
  background: var(--color-text);
  /* Fondo claro inspirado en tonos mediterráneos */
  color: var(--color-bg1);
  /* Verde mediterráneo para el texto */
  padding: 10px 20px;
  border-radius: var(--border-radius);
  /* Redondeado discreto */
  font-size: var(--font-size-medium);
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  /* Relieve sutil */
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btnFondoTercero:hover {
  background: var(--color-bg2);
  color: var(--color-text);
}

.btnFondoTercero:active {
  /* Efecto clic, tiene la propiedad "inset" que genera la sombra dentro del elemento, es decir del borde hacia dentro */
  box-shadow:
    inset var(--shadow-offset) var(--shadow-offset) var(--shadow-blur)
      var(--shadow-color-dark),
    inset calc(var(--shadow-offset) * -1) calc(var(--shadow-offset) * -1)
      var(--shadow-blur) var(--shadow-color-dark);
  /* Efecto pulsado */
}

.FondoHome {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
}

.Overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  /* Color negro con 50% de opacidad */
  z-index: 1;
}

.isVisible {
  opacity: 1;
  transform: translateY(0);
  /* lo posiciono en la pantalla para lograr la transicion de abajo a arriba */
}

.isHidden {
  opacity: 0;
}

.FondoInicial-title {
  cursor: default;
  font-size: 5.125rem;
  text-align: center;
  color: var(--color-bg1);
}

/* .FondoInicial-subTitle {
  cursor: default;
  font-family: var(--font-tertiary), sans-serif;
  font-size: 32px;
  text-align: center;
  color: var(--color-bg1);
} */

.Logo {
  font-family: var(--font-secondary), sans-serif;
  cursor: default;
  text-align: center;
  font-size: 7.5rem;
  background: linear-gradient(to right, var(--color-bg1), var(--color-bg2));
  -webkit-background-clip: text;
  /* con estas lineas estoy recortando el fondo, al cual se le aplica el linear gradient, para que solo se quede donde está el texto */
  background-clip: text;
  color: transparent;
  /* y con esto hago que el color por defecto del texto desaparezca y por tanto se quede solo el del fondo con el linear gradient */
  z-index: 2;
}

/* Texto de los fondos */

.MainText {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-bg1);
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  height: 100%;
  width: 70%;
  z-index: 2;
}

/* btn siguiente fondo */
.Btn {
  display: flex;
  justify-content: center;
  height: 12%;
  width: 100%;
  align-items: center;
  z-index: 2;
}

.Btn-nxt {
  height: 40px;
  width: 60px;
  background: rgba(254, 249, 225, 0.8);
  border-radius: var(--border-radius);
  border: none;
  color: var(--color-hs);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: box-shadow 1s ease-in-out;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;

  align-items: center;
}

.Btn-nxt:hover {
  background: var(--color-bg2);
}

.Btn-nxt:active {
  /* Efecto clic, tiene la propiedad "inset" que genera la sombra dentro del elemento, es decir del borde hacia dentro */
  box-shadow:
    inset var(--shadow-offset) var(--shadow-offset) var(--shadow-blur)
      var(--shadow-color-dark),
    inset calc(var(--shadow-offset) * -1) calc(var(--shadow-offset) * -1)
      var(--shadow-blur) var(--shadow-color-dark);
  /* Efecto pulsado */
}

@media screen and (max-width: 1080px) {
  .Header {
    height: 1000px;
  }

  .Logo {
    font-size: 4rem;
  }

  .Header-nav {
    width: 90%;
  }

  .FondoInicial-title {
    font-size: 3.5rem;
  }

  .FondoInicial-subTitle {
    font-size: 1.5rem;
  }

  .BtnFondoTercero {
    width: 50%;
  }

  .MainText {
    width: 90%;
  }
  .Btn-nxt {
    height: 30px;
    width: 40px;
  }
}

@media screen and (max-width: 480px) {
  .Body {
    height: auto;
  }

  .Header {
    height: 800px;
  }

  .Logo {
    font-size: 2rem;
  }

  .Header-nav {
    width: 100%;
    padding: 10px;
  }

  .Header-navItem {
    font-size: 1.3rem;
  }

  .Header-navList {
    gap: 10px;
  }

  .FondoInicial-title {
    font-size: 2rem;
  }

  .FondoInicial-subTitle {
    font-size: 1rem;
  }

  .btnFondoTercero {
    width: 70%;
  }

  .Btn-nxt {
    width: 60px;
    height: 50px;
  }

  .MainText {
    font-size: 1rem;
    padding: 10px;
    width: 100%;
  }

  .btnFondoTercero {
    font-size: 1rem;
  }
}
