/*=============== BASE ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: sticky;
  width: 100%;
  background-color: var(--primario);
  z-index: 100;
}

.header-transparent {
  background: transparent;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  position: relative;
  overflow: hidden;
}

.header-transparent .hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.header-transparent .capa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 28, 29, 0.75);
  z-index: -1;
}

.header-transparent .hero__content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  margin-top: 10rem;
}

.hero__button {
  display: inline-block;
  background-color: #ff6600;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.hero__button:hover {
  background-color: #cc5200;
}

.tagline {
  color: var(--blanco);
  margin-top: 5rem;
  position: relative;
}
@media (min-width: 768px) {
  .tagline {
      margin-top: 15rem;
  }
}
.tagline p {
  font-size: 2rem;
}

.ml1 {
  font-weight: 900;
  font-size: 4rem;
}
@media (min-width: 768px) {
  .ml1 {
      font-size: 4.2rem;
  }
}

@media (min-width: 1024px) {
  .ml1 {
      font-size: 6rem;
  }
}

.ml1 .line {
  opacity: 0;
  position: absolute;
  left: 0;
  height: 3px;
  width: 100%;
  background-color: var(--primario);
  transform-origin: 0 0;
  z-index: 9999;
}

.hero-texto-h2 {
  font-size: 2.2rem;
}

.text-wrapper {
  position: relative;
  display: block;
}

.ml1 .line1 { top: 0; }
.ml1 .line2 { bottom: 0; }

.ml1 .line2 {
  position: absolute;
  bottom: -3px; 
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primario);
  transform-origin: left bottom;
  z-index: 9999;
}


.ml1 .letters {
  overflow-wrap: break-word;
  word-wrap: break-word;
  display: inline;
  max-width: 100%;
}

/*=============== NAV ===============*/
.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
}

.logo {
  max-width: 10rem;
  max-height: 8rem;
  position: sticky;
  z-index: 9999;
}

@media (min-width: 768px) {
  .logo {
    max-height: 10rem;
  }
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger,
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 3rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
  color: white;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }

  .nav__menu::-webkit-scrollbar {
    width: 0;
  }

  .nav__list {
    background-color: var(--primario);
    padding-top: 1rem;
    position: sticky;
    z-index: 9999;
  }
}

.nav__link {
  display: flex;
  align-items: center;
  color: var(--blanco);
  font-size: 1.8rem;
  padding: .5rem 2rem;
  white-space: nowrap;
  gap: 1rem;
}

.nav__link__grid {
  display: flex;
  align-items: center;
  color: var(--blanco);
  gap: 1rem;
}

/* Show menu */
.show-menu {
  opacity: 1;
  pointer-events: initial;
  position: sticky;
  z-index: 9999;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__link .dropdown__arrow {
  margin-left: auto;
}

.dropdown__item {
  cursor: pointer;
  white-space: nowrap;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link,
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--blanco);
  background-color: var(--secundario);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1rem;
  font-weight: 600;
  font-size: 1.4rem;
  transition: background-color .3s;
}

.dropdown__sublink {
    background-color: var(--primario-oscuro);
}

.dropdown__link a i {
  margin-right: .5rem;
}

.dropdown__link:hover,
.dropdown__sublink:hover {
  background-color: var(--secundario-oscuro);
}

.dropdown__link a {
  color: white;
}

.dropdown__grid {
  display: flex;
  justify-content: space-between;
}

.dropdown__menu,
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu,
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: auto;
    display: flex;
    justify-content: space-between; 
  }

  .nav__toggle {
    display: none;
  }

  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
    position: sticky;
    z-index: 9999;
  }

  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: 1rem;
  }

  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item,
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu,
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link,
  .dropdown__sublink {
    padding: 2rem 2rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
  }

  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    pointer-events: initial;
    top: 8rem; 
    transition: top .3s ease-in-out, opacity .3s ease-in-out;
  }

  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
    transition: all .3s;
  }
}

.dropdown__menu {
    top: 100%; 
    left: 0; 
    transform: translateY(0); 
}
@media (max-width: 1024px) {

    .ri-add-line, .ri-arrow-down-s-line {
        position: absolute;
        right: 10px;
        display: inline-block;
        font-size: 2rem;
    }
    
    .ri-arrow-down-s-line {
        font-size: 3rem;
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
    align-items: center;
    justify-content: center;
    margin-top: 8rem;
}

@media (min-width: 768px) {
    .hero__content {
        margin-top: 10rem;
    }
}

.subtitulo-hero-inicio {
    font-weight: 400;
    margin-bottom: 0;
}

.nav-transparent {
  background-color: transparent;
}

.text-swap-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0px 0px 20px var(--primario);
}

.main-title {
  font-size: calc(5vw - 10%);
  font-weight: 700;
  font-family: var(--fuente-secundaria);
  text-align: center;
  white-space: nowrap;
  text-shadow: 0px 0px 5px var(--primario);
}

@media (min-width:1024px) {
  .main-title {
      font-size: clamp(2rem, 2vw, 3rem);
  }
}

.text-swap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
  transition: opacity 0.5s ease-in-out;
}
