* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


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

}

body {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  background-color: var(--color-beige);
  font-size: 12px;
  overflow-x: hidden; /* Ocultar desbordamiento horizontal */
  margin: 0;
  padding: 0;
  overflow: hidden;
}

a{
  color: var(--color-marron);
  text-decoration: none;
}
p {
  font-family: "neue-haas-grotesk-display", sans-serif;
}
header, footer {
  height: 7vh;
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

header { top: 0; }
footer { bottom: 0; }

main {
  padding-top: 7vh;
  padding-bottom: 7vh;
  margin: 0; /* Eliminar cualquier margen que pueda afectar */
  overflow: auto;
}

/* Estilos del carrusel */
.carrusel {
  width: 100vw;
  height: 100vh; /* Altura fija para el carrusel */
  overflow: hidden;
  position: relative;
}

.carrusel-container {
  width: calc(100vw * 9); /* Ajustar el número de proyectos */
  overflow: hidden;
  display: flex;
  flex-direction: row; /* Asegúrate de que los proyectos estén en línea */
}

.proyecto {
  width: 100vw;
  height: 86vh;
  display: flex;
  align-items: center;
  padding: 0 30px;
}

.proyecto-img {
  height: 86vh;
  width: calc(0.7 * 86vh); /* Ancho basado en la altura */
  object-fit: cover;
}

.proyecto-texto {
  width: 70%; /* Ajuste para el padding */
  height: 86vh;
  padding: 0 20px;
  display: flex; /* Habilita Flexbox */
  flex-direction: column; /* Alinea los elementos en columna */
  justify-content: space-between; /* Distribuye el espacio entre elementos */
}
.proyecto-momp {
  display: flex;
  flex-direction: row;
  justify-content: center; /* Asegura que los elementos estén centrados */
  align-items: center;
  width: 100%;
  font-size: 10rem; /* Ajusta este valor según sea necesario */
}


/* 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;
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: 19px;
  right: 30px;
  font-size: 20px;
  color: var(--color-marron);
  cursor: pointer;
  font-family: "neue-haas-grotesk-display", sans-serif;
}

.abp-h2 {  
  font-size:  70px !important;
  font-weight: 600 !important;
  color: var(--color-marron) !important;
  line-height: 1 !important;
  padding-bottom: 10px !important;
}

.abp-ubi {
  font-size: 30px !important;
  font-weight: 600 !important;
  color: var(--color-marron) !important;

}

.abp-texto-inicio {
  color: var(--color-marron);
  font-size: 30px !important;
  font-style: normal !important;
  font-weight: 600 !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: 20px 30px;
  font-size: 45px !important;
  font-weight: 500 !important;
  color: var(--color-marron) !important;
}

header {
  top: 0;
}

footer {
  bottom: 0;
}
.left, .right {
  padding: 0 30px;
}




.proyecto-momp {
  margin-bottom: 20px;
  font-weight: 600 !important;
  color: var(--color-marron);
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 30vw; /* Escala el tamaño del texto con el ancho de la ventana */
  justify-content: center;
  align-items: center;
}

.momp-o {
  color: var(--color-naranja); /* O el color que prefieras */
  text-decoration: none;
  animation: latido 1.5s infinite;
}

.icono-inicio{
  width: 200px;
}

/* Animación de latido */
@keyframes latido {
  0%, 100% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.1);
  }
}


/* 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);
}




.proyecto-reverso .proyecto-texto {
  align-self: flex-end; /* Alinea el texto en la parte inferior */
  text-align: left; /* Alinea el texto a la izquierda */
  width: 30%; /* Ajusta el ancho según sea necesario */
  padding: 0px; /* Agrega algo de espacio a la izquierda */
  justify-content: space-between;
}

.proyecto-reverso {
  justify-content: space-between;
}


.proyecto-reverso .proyecto-texto {
  width: calc(30% - 30px); /* Ajusta el ancho considerando el padding */
}

.imagen-entre-textos {
  height: 80%;
  margin: auto 60px auto auto;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  object-fit: cover;
}


main {
  padding-top: 0;
  padding-bottom: 0;
}

/* Ajusta la imagen del primer proyecto para que ocupe todo el alto de la pantalla */
.proyecto-reverso .proyecto-img {
  height: 100vh;
  object-fit: cover;
  width: calc(0.7 * 100vh);
}

.proyecto{
  margin-top: 7vh;
}
.proyecto:first-child{
  height: 100vh;
  padding: 0px 0 0 30px;
  margin-top: 0;
}

.abp-texto-inicio{
  padding-bottom: 7vh;
}

header, footer {
  transition: opacity 0.1s ease-in-out, visibility 0.5s ease-in-out;
  opacity: 0;
  visibility: hidden;
}

header.visible, footer.visible {
  opacity: 1;
  visibility: visible;
} 

.abp-logo{
  font-size:  90px !important;
  font-weight:500 !important;
  color: var(--color-marron) !important;
  line-height: 1 !important;
  letter-spacing: -3px;

}
.abp-logo i{
  color: var(--color-naranja) !important;
  line-height: 1 !important;
}

#custom-cursor {
  position: fixed;
  pointer-events: none;
  width: 20px;
  height: 20px;
  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: '+';
  font-size: 50px;
  font-weight: 200;
  color: var(--color-beige);
  position: absolute;
  left: 50%;
  top: 50%;
  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: 20px;
  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%);
}


body {
  cursor: none;
}

button, a {
  cursor: none !important;
}

/*Links legales*/

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

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

.policy-item {
  display: inline-block;
}


.footer-mobile{
  display: none;
}

/* Estilos para dispositivos de escritorio */
.carrusel-container-mobile {
  display: none; /* Oculto por defecto */
}

/*Links legales*/

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

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

.policy-item {
  display: inline-block;
}

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



.section-mobile {
  scroll-snap-align: start;
  height: 100vh; /* Asegura que cada sección tome todo el alto de la pantalla */
}
.section-centro{
  display: flex;
  flex-direction: column;
  justify-content: center;
}


/* Estilos específicos para dispositivos móviles */
@media (max-width: 768px) {
  .footer-mobile{
    display: block;
  }
  body{
    overflow: auto;
  }
  .carrusel {
    display: none; /* Oculta la versión de escritorio */
  }

  .carrusel-container-mobile {
    display: block; /* Muestra la versión móvil */
  
  }

  .proyecto-mobile {
    margin-bottom: 20px; /* Añade espacio entre proyectos */
  }

  .proyecto-info-mobile {
    padding: 20px 0; /* Añade algo de espacio interno */
  }
  .image-mobile{
    height: 62vh;
    width: 100%;
  }
  .image-inicial{
    height: calc(80vh - 20px);
    width: 100%;
    object-fit: cover;
  }
  header {
    position: static !important;
    height: 7vh;
  }

  .left, .right {
    padding: 0 20px;
  }
  .abp-texto-inicio {
    font-size: 32px !important;
    font-weight: 500 !important;
    padding-bottom: 0vh;
  }
  .section-mobile{
    height: 100% !important;
  }
  .abp-h2{
    font-size: 50px !important;
    padding-top: 10px;
  }

  /* Ajuste carrousel mobile*/
  .carrusel-container-mobile {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100%; /* Asegura que el contenedor tome todo el alto de la pantalla */
  }
  
  .section-mobile {
    scroll-snap-align: start;
    padding: 0px 20px 20px 20px;
  }
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
  }
  .fullscreen-menu .menu-items a {
    font-size: 60px !important;
  }
  .close-menu {
    top: 15px;
    right: 20px;
  }
  .abp-icono {
    padding: 5px 20px;
    font-size: 20px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
  }
  .icono-inicio{
    width: 180px;
    padding-top: 10px ;
  }
  #custom-cursor{
    display: none !important;
  }
  .fullscreen-menu .abp-idiomas {
    top: 10px;
    left: 20px;
    height: 7vh;
  }
  .fullscreen-menu {
    text-align: left;
  }
  footer{
    display: none;
  }
  .textos-legales{
    display: flex;
    flex-direction: column;
    font-size: 18px;
    background-color: var(--color-marron);
    padding: 20px 20px 300px 20px;
  }
  .textos-legales a{
    color: var(--color-beige);
  }

  .section-centro{
    display: flex;
    flex-direction: column;
    justify-content: center;

  }
  .section-mo{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40% 0px 0 0px }
    
}



.carrusel-container-mobile {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh; /* Asegura que el contenedor tome todo el alto de la pantalla */
}

.logo-inicio{
  width: 600px; 
  height: auto;
}
.abp-logo{
  margin-top:-7vh !important;
}
footer {
  z-index: 5; /* Asegúrate de que sea menor que el del menú */
}



/*Pantalla grande 27'*/
@media (min-width: 2400px){
  .proyecto-reverso .proyecto-texto {
    width: calc(50% - 30px);
  }

  .abp-texto-inicio{
    font-size: 40px !important;
  }
  .logo-inicio{
    width: 800px; 
    height: auto;
  }

  .proyecto-reverso .proyecto-img {
    height: 100vh;
    object-fit: cover;
    object-position:center bottom;
    width: 45vw;
  }
  .abp-h2{
    font-size: 90px !important;
  }
  .abp-ubi{
    font-size: 45px !important;
  }
  .proyecto-texto{
    position: relative;
    height: 90vh;
  }
  header, footer {
    height: 5vh !important;
  }

  .proyecto {
    margin-top: 5vh;
    height: 90vh;
  }
  .proyecto-img{
    height: 90vh;
  }
  .abp-texto-inicio{
    padding-bottom: 3vh;
  }
  .close-menu {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 20px;
    color: var(--color-marron);
    cursor: pointer;
    font-family: "neue-haas-grotesk-display", sans-serif;
  }
  .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;
  }
  
}


/*Pantalla grande Ultrawide*/
@media (min-width: 2600px){
  .proyecto-reverso .proyecto-texto {
    width: calc(50% - 30px);
  }
  .abp-texto-inicio{
    font-size: 40px !important;
  }
  .logo-inicio{
    padding-top: 5vh !important;
    width: 800px; 
    height: auto;
  }

  .proyecto-reverso .proyecto-img {
    height: 100vh;
    object-fit: cover;
    object-position:center bottom;
    width: 45vw;
  }
  .abp-h2{
    font-size: 90px !important;
  }
  .abp-ubi{
    font-size: 45px !important;
  }
  .proyecto-texto{
    position: relative;
    height: 90vh;
  }
  .imagen-entre-textos {
    height: 100%;
    position: absolute;
    margin: auto auto auto 45%;
  }
  header, footer {
    height: 5vh !important;
  }

  .proyecto {
    margin-top: 5vh;
    height: 90vh;
  }
  .proyecto-img{
    height: 90vh;
  }
  .abp-texto-inicio {
    padding-bottom: 5vh;
  }
  #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;
  }
}
