:root {
  --orange-color: #fa8723;
  --orange-gradient: linear-gradient(90deg, #fa8723 -0.01%, #ffaa23 100%);
}

* {
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color:inherit;
}

.address-box {
  display: grid;
  /* grid-template-columns: repeat(2, 1fr); */
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  justify-items: center;
  width: 600px;

  & div {
    text-align: center;
  }

  & svg {
    fill: var(--orange-color);
    height: 20px;
    width: 20px;
  }
}

#contact {
  & .contenido {
    width: 70%;
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    
  }

  & form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 600px;
    margin-bottom: 50px;

    & .custom-input {
      background-color: rgb(255, 255, 255);
      border-radius: 16px;
      border: none;
      font-size: 16px;
      font-weight: 900;
      box-shadow: rgb(250, 135, 35) 0px 0px 0px 1.5px;
      color: var(--orange-color);
      outline: 0px;
      padding: 16px 29px;
      width: 100%;
    }

    & .custom-input:focus {
      border: none;
      background: #e5e5e5;
      color: var(--orange-color);
      box-shadow: none;
    }
    & .custom-input::placeholder{
      color: var(--orange-color);
      font-size: 16px;
      font-weight: 900;
    }

    & #btn-send {
      font-weight: 900;
    }
  }
}


footer {
  align-items: center;
  background: var(--orange-color);
  color: white;
  display: flex;
  flex-direction: row;
  font-weight: bold;
  gap: 100px;
  height: 100px !important;
  justify-content: center;
  width: 100% !important;
  margin-top: 100px;
}

h1 {
  font-size: 5em;
  line-height: 1;
  margin-bottom: 50px;
  text-align: center;
}

header {
  display: flex;
  justify-content: center;
  padding: 20px 50px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;
}

iframe.video-trailer {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 10px;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  position: relative;
  width: 100%;
}

.box-text {
    color: white;
    margin-bottom: 50px;
    width: 80dvw;


    & h3 {
      font-size: 50px;
      font-weight: 900;
    }

    & p {
      font-size: 20px;
      font-weight: 500;
      margin-top: 10px;
    }
}

.btn {
  background: none;
  border: 2px solid var(--orange-color);
  color: var(--orange-color);
  cursor: pointer;
  font-size: 16px;
  line-height: normal;
  display: inline-block;
  overflow: hidden;
  padding: 15px 30px;
  position: relative;
  text-align: center;
  transition: border-color 0.1s, background-color 0.1s;
  z-index: 1;
}

.btn-border:before {
  background: var(--orange-color);
  content: "";
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transform: translate3d(0, 100%, 0);
  transition: opacity 0.1s, transform 0.1s;
  width: 100%;
  z-index: 1;
}

.btn-border:hover:before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.btn-border:hover > span:first-child {
  opacity: 0;
  transform: translateY(-100%);
}

.btn-border:hover .rollover {
  opacity: 1;
  transform: translateY(0);
}

.btn > span {
  z-index: 3;
  transition: opacity 0.1s, transform 0.1s;
}

.btn > span:first-child {
  position: relative;
  z-index: 3; /* Asegura que el texto esté por encima del fondo */
  display: block;
  transition: opacity 0.1s, transform 0.1s;
}

#datos-tecnicos {
    font-weight: bold;
    font-size: 25px;
}

.fp-watermark {
  display: none;
}

.fs-black-cover {
  background: rgb(0 0 0 / 50%);
  height: 100vh;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

#fs-video {
  bottom: 0;
  min-height: 100%;
  min-width: 100%;
  position: absolute;
  right: 0;
}

.intro-text {
  align-items: center;
  color: white;
  display: flex;
  flex-direction: column;
  font-size: 27px;
  justify-content: flex-start;
  margin: 0 auto;
  text-align: center;
  max-height: 100vh; 
  width: 90%;
}

.intro-text .visible {
  opacity: 1;
  transform: translateY(0px); 
}

#mostrar-btn {
  display: none; /* Ocultar el botón inicialmente */
}

#privacy {
  & .contenido {
    margin: 0 auto;
    width: 70%;
  }

  & h2 {
    margin-bottom: 20px;
  }

  & p {
    margin-bottom: 35px;
    line-height: 1.6;
  }

  & ul {
    margin-left: 50px;
    margin-bottom: 35px;
    line-height: 1.6;
  }
}

#portada {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  min-height: 80dvh;
  align-items: center;
  justify-content: end;
  backdrop-filter: brightness(0.7);
}

.proyecto-box {
    display: grid;
    gap: 20px;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    margin: 75px auto;
    max-width: 1800px;
    padding: 0 20px;
    width: 100%;
}

/* Nuevos estilos para scroll infinito */
.infinite-scroll-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 75px auto;
    max-width: 1800px;
    padding: 0 20px;
    width: 100%;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 33.333%;
}

.loading-indicator {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    margin: 50px auto;
    text-align: center;
}

.spinner {
    animation: spin 1s linear infinite;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid var(--orange-color);
    height: 40px;
    width: 40px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Responsive design para scroll infinito */
@media (max-width: 768px) {
    .infinite-scroll-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .column {
        max-width: 100%;
        width: 100%;
    }
    
    .proyecto-item {
        height: 300px;
        margin: 0;
    }
    
    .proyecto-title {
        font-size: 28px;
        line-height: 30px;
        width: 250px;
    }
    
    .proyecto-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .infinite-scroll-container {
        padding: 0 10px;
    }
    
    .proyecto-item {
        height: 250px;
    }
    
    .proyecto-title {
        font-size: 24px;
        line-height: 26px;
        width: 200px;
    }
    
    .proyecto-subtitle {
        font-size: 11px;
    }
}

.proyecto-footer {
  text-align: center;
  margin-bottom: 100px;
}

.proyecto-img {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover; /* Cobertura completa del contenedor sin deformar la imagen */
  height: 100%; /* Ocupa todo el alto del contenedor */
  width: 100%; /* Ocupa todo el ancho del contenedor */
  display: block;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.proyecto-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.proyecto-item {
  margin: 15px;
  width: 100%;
  box-sizing: border-box;
  height: 500px;
  background-color: #f7f7f7;
  border-radius: 10px; 
  overflow: hidden; 
}

.proyecto-item.oculto {
  display: none;
}

.proyecto-item.visible {
  opacity: 1;
  transform: translateY(0); /* Regresar a su posición original */
  display: block; /* Asegúrate de que los elementos se muestren */
}

.proyecto-margin {
  perspective: 1000px;
  transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
}

.proyecto-margin.active {
  transform: translateZ(30px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.proyecto-subtitle {
  font-size: 13px;
  left: 8%;
  top: 39%;
  transform: translateY(-50%);
  font-weight: 500;
}

.proyecto-title {
  font-size: 41px;
  line-height: 40.5px;
  left: 8.33%;
  top: 24.87%;
  transform: translateY(-50%);
  width: 300px;
  font-weight: 800;
}

.proyecto-title, .proyecto-subtitle {
  position: absolute;
  color: white;
  z-index: 2;
}

.proyecto-txt-box {
  position: relative;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 10px;
  overflow: hidden; /* Mantiene la imagen dentro del contenedor */
}

.proyecto-txt-box.lazy {
  background-image: none;
  background-color: #f7f7f7; /* Color de fondo mientras se carga la imagen */
}

.rollover {
  align-items: center;
  color: white;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transform: translateY(100%);
  transition: opacity 0.1s, transform 0.1s;
  width: 100%;
  z-index: 2;
}

#section0 {
  background-color: var(--orange-color);

  & video {
    opacity: 1;
    transition: .2s;
  }

  & .layer {
    align-items: center;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
    opacity: 1;
    transition: .2s;
  }
}

#section1 {
  background-color: var(--orange-color);
  min-height: 500px;
  justify-content: flex-start;
}

#section2 .title, #sinopsis .title, #trailer .title, #proyectos .title, #privacy .title, #contact .title {
  font-size: 36px; /* Aumentar tamaño de fuente */
  font-weight: 900;
  margin: 0 auto;
  padding-left: 20px;
  padding-top: 100px;
  padding-bottom:35px;
  width: 100%;
  text-align: center;
}

.separador {
  width: 100%;
  height: 20px;
  background-color: transparent;
}

#sinopsis {
  justify-content: flex-start;
  min-height: initial;

  & .contenido {
    display: grid;
    flex-direction: row;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
  }
}

#trailer {
  min-height: initial;
  margin-bottom: 100px;

  & .contenido {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  & video {
    max-width: 700px;
    aspect-ratio: 16/9;
  }
}

.welcome {
  font-size: 35px;
  font-weight: 900;
  margin-bottom: 20px;
}


@media screen and (max-width: 1000px) {

  #datos-tecnicos {
    text-align: center;
  }
  .proyecto-box {
    grid-template-columns: 1fr;
  }
  .proyecto-item {
    margin:0;
  }

  #sinopsis {
    & .contenido {
      grid-template-columns: 1fr;
      padding: 0 20px;
    }
  }
}

@media screen and (max-width: 600px) {
  .address-box {
    grid-template-columns: 1fr;
    width: auto;
  }
  #contact {
    & form {
      width: 100%;
      padding: 0 20px;
    }
  }
  footer{
    padding: 20px 0;
    gap: 20px;
    flex-direction: column;
    height: auto !important;
  }
}

@media screen and (max-width: 400px) {
  h1 {
    font-size: 3em;
  }

  .btn {
    font-size: 14px;
    padding: 12px 20px;
  }

  .firstGraph {
    font-size: 15px;
  }

  #section2 .title, #sinopsis .title, #trailer .title, #proyectos .title, #privacy .title, #contact .title {
    font-size:28px;
  }

  .welcome {
    font-size: 28px;
  }
}





























header nav {
  font-size: 16px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 50;
}

header nav .nav-container {
  font-size: 20px;
}

#navegation {
  display: none;
}

.nav-trigger {
  color: transparent;
  height: 20px;
  left: 47px;
  overflow: hidden;
  position: fixed;
  text-indent: 100%;
  top: 40px;
  white-space: nowrap;
  width: 22px;
  z-index: 10;
}

.nav-trigger span,
.nav-trigger span::before,
.nav-trigger span::after {
  background: white;
  height: 2.5px;
  position: absolute;
  width: 22px;
}

.nav-trigger.nav-black span,
.nav-trigger.nav-black span::before,
.nav-trigger.nav-black span::after {
  background: black;
}

.nav-trigger span {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.3s;
}

.nav-trigger span::before,
.nav-trigger span::after {
  content: "";
  left: 0;
  top: 0;
  transition: background 0.3s, transform 0.3s;
}

.nav-trigger span::before {
  transform: translateY(-8px);
}

.nav-trigger span::after {
  transform: translateY(8px);
}

.nav-trigger.nav-black:hover span,
.nav-trigger.nav-black:hover span::before,
.nav-trigger.nav-black:hover span::after {
  background: black;
}

.nav-open .nav-trigger span {
  background: transparent;
}

.nav-open .nav-trigger.nav-black span {
  background: transparent;
}

.nav-open .nav-trigger span::before,
.nav-open .nav-trigger span::after {
  background: rgb(0 0 0 / 70%);
}

.nav-open.nav-black .nav-trigger span::before,
.nav-open.nav-black .nav-trigger span::after {
  background: rgb(0 0 0 / 70%);
}

.nav-open .nav-trigger span::before {
  transform: rotate(-45deg);
}

.nav-open .nav-trigger span::after {
  transform: rotate(45deg);
}

#overlay {
  background: var(--color-black06);
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2;
}

.nav-container {
  background: rgb(250 135 35 / 90%);
  color: black;
  height: 100%;
  max-width: 100%;
  overflow: auto;
  padding: 4em 0em 2em 0em;
  position: fixed;
  right: 0;
  top: 0;
  transform: translate(-300px, 0);
  transition: transform 0.5s cubic-bezier(0.07, 0.23, 0.34, 1);
  width: 300px;
  z-index: 3;
}
.nav-container.nav-open  {
  transform: translateX(0);
}

.nav {
  width: 100%;
  list-style: none;
  padding: 0;
}
.nav > li {
  text-align: left;
  color: rgb(255 255 255 / 90%);
  transition: var(--animate-duration);
  width: 100%;
  padding: 1em 0;
}

.nav > li:hover {
  color: rgb(255 255 255 / 100%);
  transition: 0.7;
}
.nav > li:hover a,
.nav > li:hover p {
  transition: var(--animate-duration);
}
.nav a {
  width: 100%;
  padding: 1.4em 0 1.4em 50px;
}
.nav a,
.nav p {
  color: rgb(0 0 0 / 90%);
  font-size: 1.5rem;
  transform: translateZ(0);
  text-transform: uppercase;
  font-weight: 600;
  transition: 0.7s;
  opacity: 0.73;
}

.nav a:hover {
  opacity: 1;
}

.nav-open .nav a,
.nav-open .nav p,
.nav-open .nav ol,
.menu_idiomaDesplegable2 {
  animation: slide-in 0.4s 0.2s backwards;
}
.nav-open .nav li:nth-of-type(2) a {
  animation-delay: 0.3s;
}
.nav-open .nav li:nth-of-type(3) a {
  animation-delay: 0.4s;
}
.nav-open .nav li:nth-of-type(4) a {
  animation-delay: 0.5s;
}
.nav-open .nav li:nth-of-type(5) a {
  animation-delay: 0.6s;
}
.nav-open .nav li p {
  animation-delay: 0.7s;
}
.nav-open .nav ol.menu_idiomaDesplegable2 {
  animation-delay: 0.8s;
}

@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateX(80px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

