@import url("https://use.typekit.net/arh5mzq.css");
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 62.5%;
}

body {
  background: #00216c;
}

:root {
  --grad-azul-claro: linear-gradient(to right, #006ec0, #00b0f2);
  --grad-azul-oscuro: linear-gradient(to right, #005cae, #00216c);
}

.site-header {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1280px;
  padding: 0.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  z-index: 55;
  transition: height 0.35s ease;
  transition-property: height;
  transition-duration: 0.35s;
  transition-timing-function: ease;
  transition-delay: 0s;
  transition-behavior: normal;
  height: 7.7vh;
}

.nav-brand-desktop {
  display: none;
}

.site-header-esential {
  width: 100%;
  height: 3.5vh;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px 05px;
}

.site-header.open {
  flex-direction: column;
  align-items: flex-start;
  height: 34vh;
}

.navbar {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.site-header.open .navbar {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: safe;
  width: 100%;
  gap: 1rem;
  margin-top: 2rem;
  max-height: 28vh;
}

.site-header .ingresar-btn {
  display: none;
}

.nav-brand {
  width: 30px;
  height: 30px;
}
.menuToggle {
  inline-size: 45px;
  block-size: 45px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  place-items: center;
  cursor: pointer;
  position: relative;
  padding-bottom: 1rem;
}

.menuToggle::before,
.menuToggle::after {
  content: "";
  position: absolute;
  inline-size: 22px;
  block-size: 2.5px;
  background: #0078b4;
  transition: transform 0.3s ease, top 0.3s ease;
}

.menuToggle::before {
  top: calc(50% - 6px);
}

.menuToggle::after {
  top: calc(50% + 6px);
  box-shadow: 0 -6px 0 #0078b4;
}

.menuToggle.open::before {
  top: 50%;
  transform: rotate(45deg);
}

.menuToggle.open::after {
  top: 50%;
  transform: rotate(-45deg);
  box-shadow: none;
}

.nav-link {
  font-family: "puffin-display", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: white;
  text-decoration: none;
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

main {
  background: url(asset/fondo-celular.jpg) no-repeat;
  background-position: center;
  background-size: cover;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 05px;
}

main::before {
  z-index: 1;
  content: "";
  position: absolute;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.95) 20%,
    rgba(0, 0, 0, 0.3) 100%
  );
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
}

.ingresar-btn-phone {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 10;
}

.main-container {
  position: relative;
  z-index: 2;
}

.ingresar-btn {
  font-size: 2rem;
  font-family: "puffin-display", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  background: #0078b4;
  padding: 5px 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.ingresar-btn:hover {
  background: #0094db;
  transform: translateY(-2px);
}

.title-main {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-family: "puffin-display", sans-serif;
  font-weight: 500;
  font-style: normal;
  color: white;
}

.text-main {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-family: "puffin-display", sans-serif;
  font-weight: 300;
  font-style: normal;
  color: white;
  margin: 15px 0px 30px 0px;
  max-width: 55ch;
}

@media (min-width: 1080px) {
  .site-header {
    /* reset mobile */
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: 8vh;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    position: fixed;
    inset: 0 0 auto 0;
    z-index: 999;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0 75px;

    background: transparent; /* el degradado lo hace el ::before */
  }

  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.9) 15%,
      rgba(0, 0, 0, 0) 100%
    );
    z-index: -1; /* 🔹 SIEMPRE detrás del contenido */
    pointer-events: none; /* 🔹 no bloquea el hover */
  }

  .site-header-esential {
    display: none;
  }

  .site-header .ingresar-btn {
    display: block;
  }

  .nav-brand-desktop {
    display: block;
    width: 35px;
    height: 35px;
  }

  .navbar {
    display: flex;
    flex-direction: row;
    width: 40%;
    max-height: none;
    overflow: visible;
    margin-top: 0; /* para que no baje el menú en desktop */
  }

  .nav-link {
    font-family: "puffin-display", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    text-decoration: none;
    font-size: 2rem;
    position: relative; /* importante para ::after */
    display: inline-block; /* subrayado solo bajo el texto */
  }

  /* Efecto hover: esto conviene que sea global */
  .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: width 0.3s ease;
  }

  .nav-link:hover::after {
    width: 100%;
  }

  .ingresar-btn-phone {
    display: none;
  }

  main {
    background: url(asset/fondo.png) no-repeat;
    background-position: center;
    background-size: cover;
    padding: 0px 75px;
  }

  .title-main {
    font-size: clamp(4rem, 4vw, 5.2rem);
  }

  .text-main {
    font-size: clamp(2rem, 2vw, 2.2rem);
    max-width: 65ch;
  }

  .intro-logo-bg img {
    max-width: 500px;
    display: block;
  }
}
.no-scroll {
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  background: #000; /* Comienza negro */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1; /* GSAP hará fade out */
}

.intro-black {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1; /* Lo dejamos en 1 porque no hay video */
}

.intro-logo {
  position: relative;
  opacity: 0; /* aparece con GSAP */
  scale: 0.9; /* animamos scale */
}

.intro-logo-bg {
  padding: 16px 30px;
}

.intro-logo-bg img {
  max-width: 280px;
  display: block;
}
