
/* =========================================
   TIPOGRAFÍA
========================================= */

@font-face {
  font-family: "YEEZY";
  src: url("assets/yeezy_tstar-bold-webfont.ttf")
       format("truetype");
  font-display: swap;
}

/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #efefec;
  color: #171717;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* =========================================
   FONDO GENERATIVO
========================================= */

#canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================================
   BARRA SUPERIOR
========================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 75px;
  padding: 20px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: rgba(239, 239, 236, 0.94);
  border-bottom: 1px solid rgba(23, 23, 23, 0.15);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav a {
  text-decoration: none;
}

.logo {
  font-family: "YEEZY", Arial, sans-serif;
  font-size: 19px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 13px;
}

.nav-links a {
  position: relative;
  padding: 5px 0;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #171717;
}

/* =========================================
   PORTADA
========================================= */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 145px 5vw 100px;
  background: transparent;
}

.hero-content {
  width: min(1050px, 90vw);
}

.hero-label {
  margin: 0 0 35px;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  font-family: "YEEZY", Arial, sans-serif;
  font-size: clamp(85px, 15vw, 220px);
  font-weight: normal;
  line-height: 0.8;
  letter-spacing: -0.035em;
}

.hero-info {
  margin-top: 55px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 13px;
}

.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  text-decoration: none;
}

/* =========================================
   TAREAS
========================================= */

main {
  position: relative;
  z-index: 1;
}

.home-menu {
  padding: 100px 4vw 160px;
  background: transparent;
  scroll-margin-top: 75px;
}

.section-label {
  margin: 0 0 60px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.menu-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 150px;
  border-top: 1px solid #171717;
  text-decoration: none;
  color: #171717;
  transition:
    padding-left 0.25s ease,
    background 0.25s ease;
}

.menu-item:last-child {
  border-bottom: 1px solid #171717;
}

.menu-item:hover {
  padding-left: 20px;
  background: rgba(239, 239, 236, 0.75);
}

.menu-number {
  font-size: 12px;
}

.menu-title {
  font-family: "YEEZY", Arial, sans-serif;
  font-size: clamp(35px, 6vw, 90px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.menu-arrow {
  padding-right: 10px;
  font-size: 36px;
}

/* =========================================
   PÁGINAS INTERIORES
========================================= */

.pagina-interior {
  min-height: 100vh;
}

.interior {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 150px;
}

.pagina-numero {
  margin: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.titulo-pagina {
  margin: 0 0 110px;
  font-family: "YEEZY", Arial, sans-serif;
  font-size: clamp(80px, 13vw, 190px);
  font-weight: normal;
  line-height: 0.85;
}

/* =========================================
   SOBRE MÍ
========================================= */

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 130px;
}

.sobre-titulo {
  font-size: 13px;
  line-height: 1.6;
  text-transform: uppercase;
}

.sobre-titulo p {
  margin: 0 0 12px;
}

.sobre-texto {
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.15;
}

.sobre-texto p {
  margin: 0 0 35px;
}

/* =========================================
   DATOS
========================================= */

.datos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #171717;
  margin-bottom: 140px;
}

.datos div {
  padding: 25px 15px 25px 0;
  border-bottom: 1px solid #171717;
}

.datos span {
  font-size: 10px;
  letter-spacing: 0.14em;
}

.datos p {
  margin: 30px 0 0;
  font-size: 16px;
}

/* =========================================
   TRABAJOS
========================================= */

.lista-proyectos {
  margin-bottom: 140px;
}

.proyecto {
  min-height: 170px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #171717;
  color: #171717;
  text-decoration: none;
  transition:
    padding-left 0.25s ease,
    background 0.25s ease;
}

.proyecto:last-child {
  border-bottom: 1px solid #171717;
}

.proyecto:hover {
  padding-left: 20px;
  background: rgba(239, 239, 236, 0.75);
}

.proyecto-numero {
  font-size: 12px;
}

.proyecto-info h2 {
  margin: 0;
  font-family: "YEEZY", Arial, sans-serif;
  font-size: clamp(42px, 6vw, 85px);
  font-weight: normal;
}

.proyecto-info p {
  margin: 6px 0 0;
  font-size: 12px;
  text-transform: uppercase;
}

.proyecto-arrow {
  padding-right: 10px;
  font-size: 34px;
}

/* =========================================
   CONTACTO
========================================= */

.contacto-lista {
  margin-bottom: 140px;
}

.contacto-lista a {
  min-height: 150px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #171717;
  color: #171717;
  text-decoration: none;
  transition:
    padding-left 0.25s ease,
    background 0.25s ease;
}

.contacto-lista a:last-child {
  border-bottom: 1px solid #171717;
}

.contacto-lista a:hover {
  padding-left: 20px;
  background: rgba(239, 239, 236, 0.75);
}

.contacto-tipo {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.contacto-dato {
  font-family: "YEEZY", Arial, sans-serif;
  font-size: clamp(30px, 5vw, 70px);
  overflow-wrap: anywhere;
}

.contacto-arrow {
  padding-right: 10px;
  font-size: 34px;
}

/* =========================================
   SIGUIENTE PÁGINA
========================================= */

.next-page {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 50px 0;
  margin-bottom: 120px;
  border-top: 1px solid #171717;
  color: #171717;
  text-decoration: none;
}

.next-page span {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.next-page strong {
  font-family: "YEEZY", Arial, sans-serif;
  font-size: clamp(40px, 6vw, 85px);
  font-weight: normal;
}

/* =========================================
   PIE DE PÁGINA
========================================= */

footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 4vw;
  border-top: 1px solid #171717;
  background: rgba(239, 239, 236, 0.9);
  font-size: 11px;
}

footer p {
  margin: 0;
}

footer .ia {
  max-width: 500px;
  text-align: right;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {

  .nav {
    padding: 15px 20px;
    gap: 12px;
  }

  .logo {
    font-size: 14px;
  }

  .nav-links {
    gap: 12px;
    font-size: 11px;
  }

  .hero {
    padding: 150px 20px 90px;
  }

  .hero h1 {
    font-size: clamp(65px, 18vw, 130px);
  }

  .hero-info {
    flex-direction: column;
    gap: 10px;
    margin-top: 35px;
  }

  .home-menu {
    padding: 75px 20px 100px;
  }

  .menu-item {
    min-height: 110px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .menu-title {
    font-size: clamp(28px, 7vw, 55px);
  }

  .interior {
    width: calc(100% - 40px);
    padding-top: 150px;
  }

  .titulo-pagina {
    margin-bottom: 70px;
    font-size: clamp(55px, 14vw, 100px);
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .datos {
    grid-template-columns: 1fr 1fr;
  }

  .proyecto {
    min-height: 120px;
    grid-template-columns: 40px 1fr auto;
  }

  .contacto-lista a {
    min-height: 120px;
    grid-template-columns: 1fr auto;
    gap: 15px;
  }

  .contacto-tipo {
    grid-column: 1 / -1;
  }

  .next-page,
  footer {
    flex-direction: column;
  }

  footer .ia {
    text-align: left;
  }

}

@media (max-width: 420px) {

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 170px;
  }

  .interior {
    padding-top: 180px;
  }

}
