/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.3.6,
* Autoprefixer: v10.3.1
* Browsers: last 4 version
*/

@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:wght@700;900&display=swap");

:root {
  --color0: #000;
  --color1: #00d1ff;
  --color2: #fff;
  --color3: #ff005c;

  /* --color-cortina1: #ffffff66; */
  /* --color-cortina1: #e7e7e777; */
  --color-cortina1: #e7e7e788;

  --color-cortina2: #e7e7e755;
  --color-cortina3: #00000066;
  --color-cortina3b: #00001100;
  --color-cortina3c: #00000066;
  --color-cortina3d: #00000566;
  /* --color-cortina3d: #ffffffcc; */

  /* --color-cortina4: #00001188; */
  --color-cortina4: #00001188;

  --color-cortina5: #000006cc;
  --color-cortina6: #000006bb;

  --top: 75vh;
  --top2: 75vh;
  --pctProgresoScroll: 1%;
  --ancho-barra-scroll: 5px;

  /* --max-width: min(1300px, 90%); */
  /* --max-width: 90%; */
  --max-width: min(1800px, 90%);

  --vh: 100vh;

  /* --max-width: 1200px; */
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* background-color: rgba(20, 20, 20, 1); */
}
@media (min-width: 2001px) {
  html {
    font-size: 20px;
  }
}
@media (max-width: 2000px) {
  html {
    font-size: 18px;
  }
}
@media (max-width: 1800px) {
  html {
    font-size: 16px;
  }
}
@media (max-width: 1600px) {
  html {
    font-size: 15px;
  }
}
@media (max-width: 1200px) {
  html {
    font-size: 14px;
  }
}
@media (max-width: 1100px) {
  html {
    font-size: 12px;
  }
}
@media (max-width: 1000px) {
  html {
    font-size: 10px;
  }
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* /// FUENTES */
/* #region */
/* @import url("https://fonts.googleapis.com/css2?family=Saira:wght@400;700&display=swap"); */

@font-face {
  font-family: main_font;
  src: url("assets/fonts/BebasNeue Regular.ttf");
}
@font-face {
  font-family: main_font;
  src: url("assets/fonts/BebasNeue Light.ttf");
  font-weight: 300;
}
@font-face {
  font-family: main_font;
  src: url("assets/fonts/BebasNeue Bold.ttf");
  font-weight: bold;
}

@font-face {
  font-family: second_font;
  src: url("assets/fonts/Rajdhani-Medium.ttf");
}
@font-face {
  font-family: second_font;
  src: url("assets/fonts/Rajdhani-Bold.ttf");
  font-weight: bold;
}

/* div {
  font-family: myFirstFont;
} */
/* #endregion */

/* /// MAIN  - cortinas */
/* #region */

body {
  /* font-family: Helvetica, sans-serif; */
  font-family: monospace;

  /* overflow: auto; */
  /* overflow-x:hidden; */
  overflow: hidden;

  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */ /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;

  position: relative;
  max-width: 100vw;

  background-color: rgba(205, 205, 205, 1);
}
body.fondoObscuro {
  background-color: rgba(20, 20, 20, 1);
}
body.fondoObscuro2 {
  background-color: rgb(0, 0, 0);
}

/* Works on Firefox */
/* * {
  scrollbar-width: thin;
  scrollbar-color: blue orange;
} */

/* Works on Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: var(--ancho-barra-scroll);
}

*::-webkit-scrollbar-track {
  background: lightgray;
}

*::-webkit-scrollbar-thumb {
  background-color: #777;
  border-radius: 0px;
  /* border: 3px solid orange; */
}

#mainContainer {
  position: relative;
  width: 100%;
  /* height: 100vh; */
  height: var(--vh);

  overflow: auto;
  overflow-x: hidden;
  /* /// SCROLL: LA SIGUIENTE LINEA HACE AVANZAR POR SECCIONES: */
  -ms-scroll-snap-type: y mandatory;
  scroll-behavior: smooth;

  scroll-snap-type: y mandatory;

  /* background-color: #000; */
  /* z-index: -2; */
  /* pointer-events: none; */
  /* pointer-events: none; */
}
#mainContainer.noScroll {
  /* overflow: hidden; */
}

#cortinaIntermedia {
  position: absolute;
  /* background-color: #aa77ff99; */
  background-color: var(--color-cortina1);
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  z-index: 0;
  -webkit-transition: 1s;
  -o-transition: 1s;
  transition: 1s;
  /* display: none; */
  pointer-events: none;
  opacity: 1;
}
.colorCortina2 {
  background-color: var(--color-cortina2) !important;
}
.colorCortina3 {
  background-color: var(--color-cortina3) !important;
}
.colorCortina3b {
  background-color: var(--color-cortina3b) !important;
}
.colorCortina3c {
  background-color: var(--color-cortina3c) !important;
}
.colorCortina3d {
  background-color: var(--color-cortina3d) !important;
}
.colorCortina4 {
  background-color: var(--color-cortina4) !important;
}
.colorCortina5 {
  background-color: var(--color-cortina5) !important;
}
.colorCortina6 {
  background-color: var(--color-cortina6) !important;
}
#cortinaIntermedia.hide {
  opacity: 0.2;
  /* background-color: #ff000099 !important; */
}
/* #endregion */

/* /// CANVAS  */
/* #region */
.scene,
canvas {
  /* background: rgb(0, 0, 0);
  background: radial-gradient(
    circle,
    rgba(40, 40, 65, 0.75) 0%,
    rgba(0, 0, 0, 1) 100%
  ); */
  /* background: rgb(0, 0, 0);
  background: radial-gradient(
    circle,
    rgba(200, 200, 200, 0.75) 0%,
    rgba(120, 120, 120, 1) 100%
  ); */
  /* background: rgb(255, 0, 0); */

  /* background-color: #ffdddd; */

  /* background: radial-gradient(
    circle,
    rgba(240, 240, 240, 0.75) 0%,
    rgba(255, 255, 255, 1) 100%
    ); */

  /* background: radial-gradient(
    circle,
    rgba(200, 200, 200, 0.75) 0%,
    rgba(160, 160, 160, 1) 100%
  ); */
  /* background-color: #f5f7f8; */

  /* background-color: rgba(205, 205, 205, 1); */
  background-color: transparent;

  position: absolute;
  width: 100%;
  height: 100%;

  /* z-index: 100000; */
  /* border: 10px solid red; */
  /* filter:  invert(50%) !important; */
  /* display: none; */
}
#scene {
  /* border: 1px solid red; */
}
#scene > canvas {
  /* border: 1px solid greenyellow; */
  height: 100% !important;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */ /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

#scene {
  -webkit-transition: -webkit-filter 1s;
  transition: -webkit-filter 1s;
  -o-transition: filter 1s;
  transition: filter 1s;
  transition: filter 1s, -webkit-filter 1s;
  /* background-color: rgba(205, 205, 205, 1); */
  background-color: transparent;
  /* border: 1px solid red; */
}
#scene.fondoObscuro {
  /* background-color: rgba(20, 20, 20, 1); */
}

#scene.invert {
  /* border: 25px solid red; */
  /* filter: hue-rotate(240deg) invert(100%) brightness(100%) saturate(300%); */
  /* filter: hue-rotate(240deg) invert(100%) brightness(100%) saturate(0%); */

  /* filter: invert(100%) saturate(0%) brightness(120%); */
  -webkit-filter: invert(100%) saturate(0%) brightness(120%);
  filter: invert(100%) saturate(0%) brightness(120%);
}
#scene.invert2 {
  /* border: 25px solid red; */
  -webkit-filter: hue-rotate(240deg) invert(100%) contrast(120%) brightness(85%)
    saturate(130%);
  filter: hue-rotate(240deg) invert(100%) contrast(120%) brightness(85%)
    saturate(130%);
}

/* #endregion */

/* /// scrolldown */
/* #region */
#divScrollDown {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 1;
  width: 60px;
  height: 60px;
  /* border: 1px solid red; */
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;

  /* display: none; */
}
#divScrollDown.invert {
  -webkit-filter: invert(100%);
  filter: invert(100%);
}
#divScrollDown.show {
  opacity: 1;
  -webkit-transition: opacity 1s 10s;
  -o-transition: opacity 1s 10s;
  transition: opacity 1s 10s;
}

#divScrollDown > img {
  position: absolute;
  width: 100%;
  /* height: 100%; */
  top: 0;
  left: 0;
  /* background-color: #ff005c; */
  -o-object-fit: cover;
  object-fit: cover;
  /* border: 1px solid greenyellow; */
}
#divScrollDown > img:last-child {
  /* background-color: #ff005c; */
  /* filter: invert(0%); */
  -webkit-animation: ani_scroll_opacity 0.4s;
  animation: ani_scroll_opacity 0.4s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}
@-webkit-keyframes ani_scroll_opacity {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes ani_scroll_opacity {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* #endregion */

/* /// debug */
/* #region */
#divTemp,
#divTemp2 {
  background-color: red;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  position: fixed;
  z-index: 123456789123456789;
  top: 0%;
  left: 0%;
  transform: translate(-50%, -50%);
  display: none;
}
#divTemp.mostrar,
#divTemp2.mostrar {
  display: block;
}
#divTemp2 {
  background-color: greenyellow;
}

#divDebug {
  position: fixed;
  top: 20px;
  left: 5%;
  color: white;
  display: none;
}
#divMarcadorProgreso {
  position: fixed;
  bottom: 0;
  left: 0;
  width: var(--pctProgresoScroll);
  height: 2px;
  background-color: var(--color3);
  z-index: 1000;
  display: none;
}
#sliderDebugContainer {
  position: fixed;
  top: 60px;
  right: 40px;
  width: 200px;
  /* background-color: greenyellow; */
  -webkit-transform: scale(1, 0.8);
  -ms-transform: scale(1, 0.8);
  transform: scale(1, 0.8);
  opacity: 0.1;
  /* opacity: 1; */

  cursor: pointer;
  z-index: 10;
  display: none;
}
#sliderDebugContainer:hover {
  opacity: 1;
  background-color: #ffffff55;
}
.sliderPos,
.sliderRot,
.sliderTemp {
  width: 100%;
  height: 1px;
  background: black;
  -webkit-appearance: none;
  cursor: pointer;
}

.sliderPos::-webkit-slider-thumb,
.sliderRot::-webkit-slider-thumb,
.sliderTemp::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 6px;
  height: 7px;
  border-radius: 50%;
  background: black;
  cursor: pointer;
}
.sliderRot::-webkit-slider-thumb {
  background: white;
}

.sliderPos::-moz-range-thumb,
.sliderRot::-moz-range-thumb,
.sliderTemp::-moz-range-thumb {
  width: 6px;
  height: 7px;
  border-radius: 50%;
  background: black;
  cursor: pointer;
}

/* #endregion */

/* ///  SECCIONES / SCROLL */
/* #region */

.seccion {
  position: relative;
  width: 100%;
  height: 100%;
  /* background-blend-mode: hard-light; */
  /* background-blend-mode: overlay; */
  /* overflow: hidden; */
  /* overflow-x: hidden; */
  /* pointer-events: none; */
  /* background-color: #ff005c99; */
  pointer-events: none;
}

.content {
  /* background-color: #00d1ff; */
  position: absolute;
  top: 0px;
  left: 50%;
  /* left: var(--left); */
  -webkit-transform: translate(-50%, 0);
  -ms-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  scroll-snap-align: start;
  color: #fff;
  /* mix-blend-mode: difference; */
  /* background-color: #00968899; */
  /* border: 1px solid red; */
  /* padding-top: 50%; */
  /* opacity: 0.5; */
  /* text-align: center; */
  width: var(--max-width);
  color: black;
  max-width: var(--max-width);

  /* overflow-y: hidden; */
}

/* #endregion */

/* /// TEXTOS */
/* #region */

.tituloSeccion {
  /* margin-top: var(--top); */
  top: calc(100vh - 4rem);
  text-transform: uppercase;
  /* text-shadow: var(--shadow); */
  font-weight: 700;
  /* display: inline-block; */
  padding: 0px 0px;
  font-size: 20px;
  /* background-color: #ff005c; */
  width: 100%;
  text-align: right;
  /* position: relative; */
  position: absolute;
  opacity: 0.75;
  /* transition: 0.8s, color 1.8s 1.6s; */
  font-family: "Titillium Web", monospace;
  /* font-family: monospace; */
  /* border: 1px solid red; */
  text-shadow: 0px 0px 2px white, 0px 0px 2px white;
  color: #000;
  display: none;
}
.tituloSeccion.selected {
  /* opacity: 1; */
}

/* .seccion:nth-child(5) .tituloSeccion.selected {
  color: white;
} */

.texto1 {
  position: absolute;
  /* margin-top: calc(var(--top) + 5%); */
  /* color: red; */
  /* bottom: calc(50px - 100vh); */
  top: 185px;
  left: 10px;
  text-align: left;
  /* background-color: #00d1ff; */
  -webkit-transform: translate(-100%, 0);
  -ms-transform: translate(-100%, 0);
  transform: translate(-100%, 0);
  opacity: 0;
  -webkit-transition: 0s;
  -o-transition: 0s;
  transition: 0s;
}
.texto2 {
  /* background-color: #ff005c; */
  position: absolute;
  /* margin-top: calc(var(--top) + 5%); */
  /* color: red; */
  bottom: calc(50px - 100vh);
  right: 0px;
  text-align: right;
  -webkit-transform: translate(100%, 0);
  -ms-transform: translate(100%, 0);
  transform: translate(100%, 0);
  opacity: 0;
  -webkit-transition: 0s;
  -o-transition: 0s;
  transition: 0s;
}

.texto1.selected {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
  opacity: 1;
  -webkit-transition: 0.8s 0.4s;
  -o-transition: 0.8s 0.4s;
  transition: 0.8s 0.4s;
}
.texto2.selected {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
  opacity: 1;
  -webkit-transition: 0.8s 0.8s;
  -o-transition: 0.8s 0.8s;
  transition: 0.8s 0.8s;
}

.seccion:nth-child(2) .texto1,
.seccion:nth-child(2) .texto2 {
  /* color: red; */
  /* font-weight: bold; */
}

.textoGigante {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 8em;
  font-family: "Titillium Web", monospace;
  font-weight: 700;
  letter-spacing: 0.3em;
  opacity: 1;
  -webkit-transition: 0.8s;
  -o-transition: 0.8s;
  transition: 0.8s;
  width: 100%;
  text-align: center;
  /* color: white;
  background-color: black; */

  background: black;
  color: #ffffff;
  mix-blend-mode: multiply;
  padding: 0;
}
.textoGigante.hide {
  -webkit-transition: 0.8s 1.8s;
  -o-transition: 0.8s 1.8s;
  transition: 0.8s 1.8s;
  opacity: 0;
}
#textoGigante2 {
  background-color: transparent;
  color: black;
  mix-blend-mode: normal;
  font-size: 6em;
  font-weight: 700;
  letter-spacing: 0.8em;
  margin-left: 0.4em;
  /* font-family: monospace; */
}
#textoGigante2.hide {
  -webkit-transition: 2s 1.8s;
  -o-transition: 2s 1.8s;
  transition: 2s 1.8s;
  letter-spacing: 1.1em;

  opacity: 0;
}

#textoSVG {
}

/* #endregion */

/* /// FILMINA */
/* #region */
.filmina {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* background-color: #00000022; */
  opacity: 0;
  -webkit-transition: 0.4s 0s;
  -o-transition: 0.4s 0s;
  transition: 0.4s 0s;
}
.filmina.show {
  -webkit-transition: 0.8s 2s;
  -o-transition: 0.8s 2s;
  transition: 0.8s 2s;
  opacity: 1;
}
.filmina img {
  height: 85%;
  /* width: 100%; */
  margin-top: 10%;
  margin-left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  /* border: 1px solid black; */
  /* border-radius: 20px; */
  /* background-color: #00000011; */
  -webkit-filter: invert(100%);
  filter: invert(100%);
  /* object-fit: contain; */
}

#filmina2 {
  background-color: #00000000;
  opacity: 1;
}
#filmina2.show {
  background-color: #00000088;
  opacity: 1;
}

#filmina2 img {
  -webkit-filter: invert(100%);
  filter: invert(100%);
  -webkit-transition: 0.8s 2s;
  -o-transition: 0.8s 2s;
  transition: 0.8s 2s;
}
#filmina2.show img {
  /* filter: none; */
  -webkit-filter: invert(0%);
  filter: invert(0%);
}
/* #endregion */
