@import url("https://fonts.googleapis.com/css2?family=Inknut+Antiqua:wght@400;700&family=Roboto:wght@400;700&family=Roboto+Condensed:wght@400;700&display=swap");

/* Reset CSS */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background: #171717;
  font-family: 'Roboto', sans-serif;
  color: #000000;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Variables de Color */
:root {
  --light: #ffffff;
  --dark: #0c0c0c;
  --primary: #0a67d2;
  --highlight: #7a09de;
}

/* Bloque principal */
.block {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

[class*=item-parallax] {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.item-parallax-media {
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.item-parallax-media::before {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.644) 50%, rgba(0, 0, 0, 0.041) 100%);
  mix-blend-mode: multiply;
}

.item-parallax-media img {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.item-parallax-content {
  z-index: 2;
}

.block:nth-child(1) .item-parallax-content {
  transform: translateY(calc(var(--yBlock-1) * 0.5px));
}

.block:nth-child(1) .item-parallax-media img {
  transform: translateY(calc(var(--yBlock-1) * 0.1px));
}

.block:nth-child(2) .item-parallax-content {
  transform: translateY(calc(var(--yBlock-2) * 0.5px));
}

.block:nth-child(2) .item-parallax-media img {
  transform: translateY(calc(var(--yBlock-2) * 0.1px));
}

.block:nth-child(3) .item-parallax-content {
  transform: translateY(calc(var(--yBlock-3) * 0.5px));
}

.block:nth-child(3) .item-parallax-media img {
  transform: translateY(calc(var(--yBlock-3) * 0.1px));
}

.block:nth-child(4) .item-parallax-content {
  transform: translateY(calc(var(--yBlock-4) * 0.5px));
}

.block:nth-child(4) .item-parallax-media img {
  transform: translateY(calc(var(--yBlock-4) * 0.1px));
}

.block:nth-child(5) .item-parallax-content {
  transform: translateY(calc(var(--yBlock-5) * 0.5px));
}

.block:nth-child(5) .item-parallax-media img {
  transform: translateY(calc(var(--yBlock-5) * 0.1px));
}

/* Contenedor flexible */
.flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Contenido centrado */
.centered-content {
  text-align: center;
  padding: 1rem;
}

.head-large {
  margin-bottom: 3vw;
  font-size: 6.85vw;
  line-height: 0.85em;
  font-family: "Inknut Antiqua", serif;
  color: white;
}

.head-small {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.2em;
  font-family: "Roboto Condensed", sans-serif;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.copy {
  display: block;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  padding: 0 1.5rem;
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  line-height: 1.8em;
  text-align: justify;
}

.copy-white {
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sección de aterrizaje */
.section-landing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 80%;
  background-color: white;
  z-index: 3;
  transform: translate(-50%, -50%);
}

.section-landing .item-parallax-media {
  opacity: calc(1 - (var(--y) * 0.0009));
}

.landing-content {
  padding: 2rem;
  text-align: center;
}

/* Sección de introducción */
.section-intro::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 80%;
  background-color: #050505;
  transform: translate(-50%, -50%) rotate(calc((var(--y) * 0.1deg)));
  will-change: transform;
  -webkit-backface-visibility: visible;
          backface-visibility: visible;
}

/* Grid de imágenes */
.img-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.img-gridItem {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
}

.img-gridItem img {
  display: block;
  width: 100%;
  height: 40vh;
  object-fit: cover;
  will-change: transform;
  -webkit-backface-visibility: visible;
          backface-visibility: visible;
}

.img-gridItem:nth-child(1) img {
  transform: translateX(calc(var(--yBlock-4) * -0.03%));
}

.img-gridItem:nth-child(2) img {
  transform: translateX(calc(var(--yBlock-4) * 0.03%));
}

.img-caption {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
}

.img-caption * {
  padding: 0 1.5rem;
}

.section-end::before {
  content: "";
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 10px;
  height: 100%;
  background-color: white;
  z-index: 3;
  transform: translate(-50%, 50%);
}

.custom-properties-ftw {
  padding: 2.5rem 1.5rem;
}

.custom-properties-ftw .head-small {
  margin-bottom: 0;
}

/* Media Queries para Responsividad */
@media (max-width: 1200px) {
  .head-large {
    font-size: 5.85vw;
  }
}

@media (max-width: 992px) {
  .head-large {
    font-size: 6vw;
  }

  .head-small {
    font-size: 1rem;
  }

  .landing-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .head-large {
    font-size: 8vw;
  }

  .head-small {
    font-size: 1rem;
    letter-spacing: 0.3em;
  }

  .landing-content {
    padding: 1rem;
  }

  .copy {
    font-size: 1.2rem;
  }

  .img-gridItem img {
    height: 30vh;
  }
}

@media (max-width: 576px) {
  .head-large {
    font-size: 10vw;
  }

  .head-small {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
  }

  .landing-content {
    padding: 1rem;
  }

  .copy {
    font-size: 1.25rem;
  }

  .img-gridItem img {
    height: 25vh;
  }
}
