/* Loader full screen */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000; /* fondo negro o el que prefieras */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* encima de todo */
}

/* Spinner animado simple */
.spinner {
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-top: 8px solid white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Animación giro */
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}



/* --- Estilos base --- */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Exo 2',Arial, sans-serif;
  overflow-x: hidden;
 
  z-index: -10;
}

/* Video de fondo */
#bg-video {
  display: block;
  position: fixed;
  bottom: 0px;
  left: 0;
  top: 0;
  min-width: 100%;
 height: 100vh;
object-position: 50% 90%; 
  z-index: -1;
  object-fit: cover;
}
#bg-video-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}
/* Overlay */
.overlay {
  position: relative;
  height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  transition: transform 0.8s ease-in-out;
  backdrop-filter: blur(4px) saturate(150%);
  -webkit-backdrop-filter: blur(4px) saturate(150%);
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px,
              rgba(0, 0, 0, 0.22) 0px 15px 12px;
              z-index: 10;
              line-height: 1.0;
}

.direccion {
  position: absolute;
  top: 20px;
  left: 40px;
  font-size: 25px;
  font-style: italic;
   width: 350px; /* o el ancho máximo que ocupa el texto */
  white-space: nowrap; /* evita que se rompa */
  overflow: hidden;
  text-overflow: ellipsis; /* si es más largo */
}

/* Contenedor título */
.titulo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.material-icons {
  font-display: optional;
}

/* Contenedor con flecha y texto */
.titulo_flecha {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  font-family: 'Exo 2',Arial, sans-serif;
  font-weight: 900;
  font-size: 100pt;
  color: white;
  text-align: center;
  cursor: pointer;
  min-height: 2em;
  height: 3em;
  width: 50%;
 
}
.crazy {
 height: 40%;
  opacity: 1;
  width: 100%;
  
   align-items: center;
}
.merkat {
height: 40%;
  opacity: 1;
  width: 100%;
  
}
.crazy p {
height: 100%;
width: 100%;
margin: 0;
}
.merkat p {
height: 100%;
width: 100%;
margin: 0;
}
/* Hover */


/* Contenido que aparece al hacer scroll */
.contenido {
  width: 100%;
  height: 100vh;
  
  background: transparent;
  display: flex;
  text-align: center;
  justify-content: end;
  align-items: center;
  color: white;
  position: relative;

}
.contenido_footer {
  position: absolute;
  right: 0;
  top: 50%;
  transform: rotate(90deg) translateY(-20%) translateX(50%);

  transform-origin: right top;
}

.scrolled {
  transform: translateY(-100%);
}

/* Botón */
.content__item {
  width: 100px;
  height: 100px;
  margin: 0;
  padding: 0;
  counter-increment: itemcounter;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0px;
  right: 40px;
  z-index: 20;
  pointer-events: none;
}

.button {
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: .5px solid white;
  padding: 1.5rem 3rem;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  position: relative;
  display: inline-block;
}

.button--skoll {
  overflow: hidden;
  border-radius: 30%;
  color: #fff;
  width: 36px;
  height: 36px;
  padding: 0;
  font-weight: 500;
}

.button--skoll span {
  display: block;
  position: relative;
}

.button--skoll > span {
  overflow: hidden;
  mix-blend-mode: difference;
}

.button--skoll:hover > span > span {
  animation: MoveUpInitial 0.2s forwards, MoveUpEnd 0.2s forwards 0.2s;
}

.button--skoll::before {
  content: '';
  background: #000;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border-radius: 30%;
  transform: translate3d(0,0,0);
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1);
}

.button--skoll:hover::before {
  transform: translate3d(0,100%,0);
}



/*--------------------------------------------*/
/* MEDIA QUERIES para responsividad */

/* Tablets (600px a 900px aprox) */
@media (max-width: 900px) {
  .direccion {
    font-size: 22px;
    left: 20px;
    top: 15px;
  }
  .titulo_flecha {
    font-size: 60pt;
  }
  
  .content__item {
    width: 70px;
    height: 70px;
    right: 20px;
  }
  .contenido_footer p {
    font-size: 0.8em;
  }
}

/* Móviles (menos de 600px) */
@media (max-width: 600px) {
  .direccion {
    font-size: 16px;
    left: 15px;
    top: 10px;
  }
  .titulo_flecha {
    font-size: 40pt;
    margin-top: -34%;
  }
  
  .content__item {
    width: 50px;
    height: 50px;
    right: 15px;
  }
  .contenido_footer p{
    font-size: .6em;
  }
  #bg-video {
    display: none;
  }
  #bg-video-mobile {
    display: block;
  }
}

/* Muy pantallas pequeñas (menos de 400px) */
@media (max-width: 400px) {
  .direccion {
    font-size: 14px;
    left: 10px;
    top: 8px;
  }
  .titulo_flecha {
    font-size: 30pt;
     margin-top: -20%;
  }
 .contenido_footer p {
    font-size: 0.5em;
  }
  .content__item {
    width: 40px;
    height: 40px;
    right: 10px;
  }
}
