/* WEB BY ANTI STUDIO. */

/*---INDICE---
0-Variables generales
1-Titulos
2-Textos
3-Botones
4-Header
5-Footer
6-Distancias
7-Modo Responsive
*/

/*---VARIABLES--*/
:root {
  --color-marron: #302725 !important;
  --color-marron-secundario: #533e31!important;
  --color-naranja: #bb8540 !important;
  --color-beige-oscuro: #bda793 !important;
  --color-beige: #d0ccc0!important;
}

/* Estilos Generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* Oculta el cursor por defecto */

}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-beige);
 
}

/* Header y Footer */
nav, footer {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  height: 7vh;
  font-size: 14x !important;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500 !important;
  color: var(--color-marron) !important;
  z-index: 99;
}

nav > div {
  display: flex;
  gap: 50px;
}

footer {
  bottom: 0;
  z-index: 9;
}

a{
  text-decoration: none;
  color: var(--color-marron);
}
/*---TITULOS--*/
p, a, button, .abp-texto-inicio, .abp-icono a, .abp-icono i, .abp-menu, .abp-titulo-inicio, .abp-ubi, h1,h2,h3 {
  font-family: "neue-haas-grotesk-display", sans-serif !important;
}

.abp-texto p {
    font-size: 18px   !important;
    line-height: 1.2em !important;
    text-align: normal !important;
    font-weight: 500 !important;
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    hyphens: auto !important;
    color: var(--color-marron) !important;
    padding-bottom: 20px !important;
}



.abp-texto-inicio {
  font-size: 30px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 1.3em !important;
  color: var(--color-marron) !important;
  
}

.abp-icono {
  padding: 10px 30px;
  font-size: 30px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.abp-icono a {
  color: var(--color-marron) !important;
  text-decoration: none;
}

.abp-icono i{
  font-style: italic !important;
  color: var(--color-naranja) !important;
}


.abp-menu {
  padding: 15px 30px 0 0;
  font-size: 45px !important;
  font-weight: 500 !important;
  color: var(--color-marron) !important;
}
.abp-footer {
  padding: 20px 30px;
  font-size: 12px !important;
  font-weight: 500 !important;
  align-content: center !important;
  color: var(--color-marron) !important;
}
.abp-titulo-inicio {
  font-size: 70px !important;
  font-weight: 600 !important;
  color: var(--color-marron) !important;
}
.abp-h1 {  
  font-size:  70px !important;
  font-weight: 600 !important;
  color: var(--color-marron) !important;
}
.abp-slogan {  
  font-size:  25px !important;
  font-weight: 600 !important;
  color: var(--color-naranja) !important;
  padding-bottom: 20px !important;
}
.abp-ubi {
  font-size: 30px !important;
  font-weight: 600 !important;
  color: var(--color-marron) !important;
}

/* Slider */
.slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-wrapper {
  width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 30px;
}

/* Slide Texto */
.slide-texto, .slide-texto-inicio {
  width: calc(0.7 * 86vh) !important;
  height: 86vh !important;
  padding-left: 0px;  
}

.slide-texto-inicio {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Slide */
.slide {
  width: calc(0.7 * 86vh) !important;
  height: 86vh;
  position: relative;
  display: inline-block; /* O 'block' dependiendo de tu layout */
  cursor: pointer; /* Cambia el cursor para indicar que se puede interactuar */
  overflow: hidden; /* Asegúrate de que todo dentro del slide no se desborde */
}

/* Texto Centrado en Slide */

 .puntos{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "neue-haas-grotesk-display", sans-serif;
    font-size: 60px;
  font-weight: 400; opacity: 1; /* Inicialmente oculto */
  transition: opacity 0.5s ease; /* Suaviza la transición del texto */
  white-space: normal; /* Permite que el texto ocupe varias líneas si es necesario */
  word-wrap: break-word; /* Asegura que las palabras largas no se desborden */
}


.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0); /* Fondo inicialmente transparente */
  transition: background-color 0.5s ease; /* Suaviza la transición del fondo */
}

img:hover::before {
  background-color: #cd863971; /* Oscurece el fondo al hacer hover */
}

.slide:hover .centered-text {
  opacity: 1; /* Muestra el texto al hacer hover */
}
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-marron-secundario); /* Ajusta al color deseado */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000; /* Asegúrate de que esté sobre todo lo demás */
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  opacity: 1;
  visibility: visible;
  transition: transform 0.8s ease-out; /* Agrega una transición suave para transformar y opacidad */
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;

}



#preloader .logo {
  margin-bottom: 20px;
  font-weight: 600 !important;
  color: var(--color-beige);
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 30vw; /* Escala el tamaño del texto con el ancho de la ventana */
  text-align: center; /* Alinea el texto horizontalmente */
  position: relative;
  z-index: 2;

}

#preloader.hidden {
  transform: translateX(-100%); /* Mueve el preloader hacia la izquierda al agregar la clase 'hidden' */
}

#loading-percentage {
  font-size: 10vw;
  font-family: "neue-haas-grotesk-display", sans-serif;
    color: var(--color-beige);
}

.covered {
  color: var(--color-beige); /* O el color que prefieras cuando las letras son cubiertas */
}

/* Fullscreen Menu */
.fullscreen-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-color: var(--color-naranja);
  z-index: 100;
  text-align: center;
  padding-top: 100px;
}

.fullscreen-menu .menu-items {
  position: absolute;
  bottom: 30px;
  left: 30px;
  text-align: left;
  font-family: "neue-haas-grotesk-display", sans-serif;}

.fullscreen-menu .abp-idiomas {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 25px;
    font-family: "neue-haas-grotesk-display", sans-serif;
    text-decoration: none;
  }
  .fullscreen-menu .abp-idiomas a{
    text-decoration: none;
    color: var(--color-marron);
    font-weight: 500;
    font-style: normal;
    font-weight: 500;
    margin-bottom: 0px;
  }

.fullscreen-menu .menu-items a {
  color: var(--color-marron);
  display: block;
  font-size: 90px;
  font-style: normal;
  font-weight: 500;
  margin-bottom: 0px;
  line-height: 1.2;
  text-decoration: none;
  opacity: 0; /* Inicialmente ocultos para la animación */

}

.fullscreen-menu .menu-items a:hover {
  transition: transform 0.4s ease;
  color: var(--color-beige);
  font-family: "neue-haas-grotesk-display", sans-serif;
    transform: skewX(-14deg) !important;
}


.close-menu {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-marron);
  cursor: pointer;
  font-family: "neue-haas-grotesk-display", sans-serif;}


/* Cursor */
.cursor {
  position: absolute;
  background: transparent;
  width: 70px;
  height: 70px;
  border-radius: 100%;
  z-index: 1;
  user-select: none;
  pointer-events: none;
  transform: scale(1.5);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cursor::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 100%;
  opacity: 0;
}

.cursor.active {
  opacity: 1;
  transform: scale(4);
}

.cursor.active::before {
  opacity: 1;
}

/* Cursor personalizado */
.cursor-follower {
  position: absolute;
  background: var(--color-marron); /* Color marrón definido */
  width: 20px;  /* Tamaño de 20px */
  height: 20px; /* Tamaño de 20px */
  border-radius: 50%; /* Hace el cursor circular */
  z-index: 10000; /* Asegura que el cursor esté sobre otros elementos */
  transition: transform 0.1s, opacity 0.1s; /* Transiciones suaves */
  user-select: none;
  pointer-events: none; /* Asegura que el cursor no interfiera con otros elementos */
}

.cursor-follower.active {
  opacity: 1;
  transform: scale(0);
}
.cursor .project-name {
  color: var(--color-beige); /* O el color que prefieras */
  font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: 600;
  text-align: center;
  overflow: visible; /* Asegúrate de que el texto no desborde */
}





















.centered-text{
  display: none;
}



.primer-slide {
  display: flex; /* Usa Flexbox para el layout de las dos columnas */
  align-items: center; /* Centra los elementos verticalmente */
  justify-content: space-between; /* Espacia los elementos horizontalmente */
  width: 100vw; /* Ancho completo de la vista */
  height: 86vh; /* Altura ajustada para el espacio del header y footer */
  margin: 0px 0px 0px 30px; /* Padding lateral de 50px */
}

.columna-texto {
  width: 65%; /* 60% del ancho de la sección para el texto */
  height: 100%; /* Altura completa del contenedor */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Alinea el contenido textual en la parte inferior */
  padding-bottom: 7vh; /* Espacio en la parte inferior para el footer */
}
.columna-texto p{
  font-size: 35px !important;
  font-weight: 600 !important;

}

.columna-imagen{
  width: 45%; /* 40% del ancho de la sección para la imagen */
  height: 86vh; /* Altura completa del contenedor */
  /* Ajusta la imagen para que cubra el espacio disponible sin deformarse */
  img {
    height: 86vh;
    object-fit: cover;
  }
}


.abp-imagen-horizontal img {
  height: calc(43vh) !important;
  object-fit: cover !important;
  object-position: center center !important;
}



.slide.abp-imagen-horizontal{
  width: 600px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}



img {
  cursor: none;
}



.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color:#302725b6;  /* Ajusta el color y la opacidad según sea necesario */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none; /* Esto permite que los clics pasen a través del pseudo-elemento */
}

.slide:hover::after {
  opacity: 1;
}
.icono-inicio{
  width: 200px;
  height: auto;
}
.abp-texto-poster{
  display: none;
}


#custom-cursor {
  position: fixed;
  pointer-events: none;
  background-color: var(--color-marron);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border 0.3s ease, background-color 0.3s ease;
  z-index: 999999;
}

#custom-cursor.on-image {
  width: 70px;
  height: 70px;
  background-color:  var(--color-marron);
  background-clip: content-box;
}

#custom-cursor.on-image::after {
  content: '+';
  padding: 0px;
  font-size: 50px;
  font-weight: 300;
  color: var(--color-beige);
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
}

#custom-cursor.on-link {
    width: 70px; /* Ajusta al tamaño deseado */
    height: 70px; /* Ajusta al tamaño deseado */
    background-image: url('../images/flecha.png');
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
  }



#custom-cursor.on-link::after {
  font-size: 20px;
  font-weight: 100;
  color: var(--color-beige);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.project-overlay {
  display: none; /* Oculto por defecto */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
  color: white; /* Color del texto */
  justify-content: center;
  align-items: center;
  display: flex;
  text-align: center;
  font-size: 24px; /* Ajusta el tamaño del texto según necesites */
  z-index: 2; /* Asegúrate de que se muestre sobre la imagen */
}

/* Añade o asegúrate de que estos estilos estén en tu CSS */
.slide-in-viewport::after {
  opacity: 1 !important; /* Asegura que el efecto de oscurecimiento se aplique */
}

.centered-text {
  opacity: 0; /* Oculto por defecto */
  transition: opacity 0.3s ease; /* Transición suave para el efecto de aparición */
  /* Asegúrate de posicionar y estilizar .centered-text según tu diseño */
}

.text-in-viewport {
  opacity: 1 !important; /* Hace el texto visible cuando el slide está en viewport */
}

.abp-menu a{
  margin-top: -15px !important;
}

body {
  cursor: none;
}

/*Links legales*/

#policy-links {
  display: flex;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  align-items: center;
}

#policy-links.visible {
  opacity: 1;
}

.policy-item {
  display: inline-block;

}

.policy-item a{
  color: var(--color-marron);
  text-decoration: none;
  font-size: 12px;
}



@media (max-width: 768px) {
  .cursor{
    display: none;
  }
  .cursor-follower{
    display: none;
  }
  #custom-cursor{
    display: none !important; 
  }
  .abp-menu a{
    margin-top: -6px !important;
  }
  .project-overlay{
    display: none;
  }
  .slider {
    width: auto;
    height: auto;
    overflow: inherit;
  }
  .slider-wrapper {
    display: grid;
    width: 100%; /* Asegura que el contenedor ocupe el ancho completo */
    align-items: center; /* Centra los slides horizontalmente */
    padding: 0px;
    gap: 20px;
  }
  footer{
    position: static;
  }
  nav{
    position: fixed;
    background-color: var(--color-beige);
  }
  .slide:nth-child(1){
    margin-top: 7vh;
  }
  .abp-menu {
    padding: 0 20px 0 0;
    font-weight: 500 !important;
    color: var(--color-marron) !important;
  }
  .abp-icono {
    padding: 10px 20px;
    font-size: 20px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
  }
  html, body {
    overflow-x: hidden; /* Previene el desbordamiento horizontal en el documento */
    overflow-y: auto; /* Permite el desplazamiento vertical */
  }
  .slide {
    margin: 0 20px;
    width: auto !important;
    height: 85vh;
    position: relative;
    display: inline-block;
    cursor: none;
    overflow: hidden;
  }
  .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: none;
  }
  .slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
  }

  .abp-footer {
    padding: 0px 20px;
    font-size: 20px !important;
    font-weight: 500 !important;
    color: var(--color-beige) !important;
  }
  .close-menu {
    top: 10px;
    right: 20px;
  }
  .fullscreen-menu .menu-items a {
    font-size: 60px;
  }
  .slide .centered-text {
    z-index: 99;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: "neue-haas-grotesk-display", sans-serif;
      font-size: 60px;
    font-weight: 600;
    letter-spacing: -3px;
    text-align: center;
    opacity: 0; /* Inicialmente oculto */
    transition: opacity 0.5s ease; /* Suaviza la transición del texto */
    white-space: normal; /* Permite que el texto ocupe varias líneas si es necesario */
    word-wrap: break-word; /* Asegura que las palabras largas no se desborden */
  }
  .icono-inicio{
    padding-top: 4px;
    width: 180px;
    height: auto;
  }
  img {
    width: 100%;
    height: 62vh;
    object-fit: cover;
  }
  .abp-texto-poster{
    display: block;
    font-size: 50px !important;
    font-weight: 600;
    padding-top: 10px;
    line-height: 1;
    color: var(--color-marron);
  }
  .abp-ubi-poster{
    display: block;
    font-size: 30px !important;
    font-weight: 600;
    color: var(--color-marron);
  }
  .fullscreen-menu .abp-idiomas {
    top: 10px;
    left: 20px;
    height: 7vh;
  }

  .fullscreen-menu {
    text-align: left;
  }

  footer {
    height: auto !important;
    background-color: var(--color-marron)!important;
    display: flex!important;
    flex-direction: column !important;
    position: static !important;
    width: 100% !important;
    z-index:99 !important;
    padding: 20px 0 !important;
    color: var(--color-beige) !important;
    gap: 0px !important;
    align-items: baseline;
    font-size: 20px !important;
  }
  footer a{
    color: var(--color-beige) !important;
  }
  #policy-links {
    display: flex;
    flex-direction: column; /* Apilar elementos verticalmente */
    gap: 0px; /* Espacio entre elementos */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    align-items: baseline;
    padding: 0 20px;
  }
  #policy-links.visible {
    opacity: 1;
  }
  .policy-item {
    display: flex;
  }
  .policy-item a {
    color: var(--color-marron);
    text-decoration: none;
    font-size: 20px;
  }
}


@media (min-width: 2400px){
  nav,footer{
    height: 5vh;
  }
  .slide{
    height: 90vh;
  }
  .abp-icono {
    padding: 15px 30px;
  }
  .abp-footer {
    padding: 30px 30px;
  }
  .abp-menu {
    padding: 15px 30px 0 0;

  }
  .fullscreen-menu .menu-items a {
    color: var(--color-marron);
    display: block;
    font-size: 120px;
    font-style: normal;
    font-weight: 500;
    margin-bottom: 0px;
    text-decoration: none;
    opacity: 0;
  }
  #preloader .logo {
    margin-bottom: -100px;
    font-weight: 600 !important;
    color: var(--color-beige);
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-size: 25vw; /* Escala el tamaño del texto con el ancho de la ventana */
    text-align: center; /* Alinea el texto horizontalmente */
    position: relative;
    z-index: 2;
  }
}

