@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


/* RESET BASE */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
    font-family: "Barlow", sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size:10px;
}

section {
  scroll-margin-top: 10rem;
}


/* ================= HEADER ================= */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 6rem;
  margin: 0 auto;
  z-index: 10;
  color: white;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  background: white;
  color: black;
  box-shadow: 0 .2rem 1rem rgba(0,0,0,0.05);
}

/* LOGO */
.logo img {
  height: 6rem;
  transition: all 0.3s ease;
}

.main-header.scrolled .logo img {
  height: 4rem;
}

.logo-black { display: none; }

.main-header.scrolled .logo-white { display: none; }
.main-header.scrolled .logo-black { display: block; }


/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.main-nav a {
  text-decoration: none;
  color: inherit;
  font-size: 1.8rem;
  position: relative;
}

/* hover elegante */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.4rem;
  width: 0;
  height: .1rem;
  background: currentColor;
  transition: 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

/* botón */
.btn-contacto {
  border: .1rem solid currentColor;
  padding: 1rem 2rem;
}


body.page-detail .main-header .logo-black {
    display: block !important;
}

body.page-detail .main-header .logo-white {
    display: none !important;
}

body.page-detail .main-header {
  color: black;
}

/* ================= HERO ================= */

.hero {
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

/* Degradado superior */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, .8) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Degradado inferior */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .8) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 120%;
  background-image: url('img/hero.jpg?v=1.2');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  will-change: transform;
  animation: heroPan 10s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes heroPan {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10%);
  }
}


.hero-content {
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 6rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12rem;
  flex-wrap: wrap;
  color: white;
}

.tagline {
flex: 1;
}

.tagline h2 {
font-size: 2.4rem;
text-transform: uppercase;
line-height: 3rem;
}
.tagline p {
font-size: 1.8rem;
  line-height: 2.4rem;
}

.stats {
  font-size: 1.8rem;
  flex: 1;
  display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

.stats div {
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-size: 4rem;
  font-weight: 600;
}


/* ================= PROYECTOS ================= */

.projects {
  display: grid;
  grid-template-columns: 1fr 3fr;
}

/* MENU */
.projects-nav, .project-data {
  padding: 4rem 6rem;
  position: sticky;
  top: 6rem;
  height: 100vh;
}

.projects-nav h4, .project-data h4 {
  margin-bottom: 2rem;
  font-size: 2.4rem;
  font-weight: 500;
}

.projects-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.projects-nav a {
  text-decoration: none;
  color: #555;
  display: block;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  position: relative;
  transition: 0.3s;
}

.projects-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.3rem;
  width: 0;
  height: .1rem;
  background: black;
  transition: 0.3s;
}

.projects-nav a.active::after {
  width: 100%;
}
/* LISTA */
.projects-list, .project-gallery  {
  width: 100%;
}



/* BLOQUE */
.project {
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-top: .2rem;
  position: relative;
  grid-template-areas: "info image";
}

/* INFO */
.project .info {
  grid-area: info;
  background: black;
  color: white;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-top h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.info-top p {
  font-size: 1.4rem;
}

.info-bottom {
  color: white;
}

.info-bottom .label, .project-data .label {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0;
  margin-top: 2rem;
  display: block;
}

.info-bottom p, .project-data p {
  font-size: 1.8rem;
  line-height: 2.4rem;
  margin: 0;
}


/* IMAGEN */
.project .image {
  grid-area: image;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: gray;
}

/* BLOQUE INTERNO */
.project-contenido {
  padding-top: 10rem;
   display: grid;
  grid-template-columns: 1fr 3fr;
}
.project-gallery img  {
  width: 100%;
}

.view-more {
position: absolute;
z-index: 2;
right: 4rem;
top: 50%;
transform: translateY(-50%);
background-color: white;
color: black;
display: none;
font-size: 1.6rem;
letter-spacing: .2rem;
text-transform: uppercase;
padding: 2rem;
text-decoration: none;
font-weight: 500;
box-shadow: 0 .2rem 1rem rgba(0,0,0,0.05);
}
.project:hover .view-more {
display: block;
}

/* botón */
.btn-back {
  border: .1rem solid black;
  padding: 1rem;
  text-decoration: none;
  color: black;
  font-size: 1.4rem;
  position: relative;
  margin-top: 3rem;
  display: inline-block;
}


/* ================= CONTACTO ================= */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10rem 6rem;
  gap: 6rem;
}
.contact-left img {
  width: 100%; 
  height: auto;
}
.contact-right h2 {
  margin-bottom: 4rem;
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* FORM */
.form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form input,
.form textarea,
.form select {
  border: none;
  border-bottom: .1rem solid #999;
  padding: 1rem 0;
  background: transparent;
  font-size: 1.4rem;
  outline: none;
}

.form textarea {
  resize: none;
  height: 20rem;
}

.form button {
  align-self: flex-end;
  border: none;
  border-bottom: .1rem solid black;
  background: none;
  padding: 1rem 0;
  cursor: pointer;
}

/* INFO CONTACTO */
.contact-info {
  margin-top: 4rem;
  font-size: 1.8rem;
}
.contact-info p {
  margin-bottom: 3rem;
}
.contact-info p img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 2rem;
  width: 2rem;
  height: auto;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {

  .stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

}

@media (max-width: 768px) {

  /* HEADER */
  .main-header {
    padding: 2rem;
  }

  .main-nav {
    display: none;
  }

  /* HERO */

  .hero-content {
    padding: 3rem 2rem;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

/* Degradado inferior */
.hero::after {
    height: 100dvh;
}

  .stats {
    flex-direction: column;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
}

  /* PROYECTOS */
  .projects {
    grid-template-columns: 1fr;
  }

  .projects-nav {
    display: none;
  }


  /* BLOQUES */
.project {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "info";
  }
  .project .info {
    padding: 2rem;
    padding-bottom: 4rem;
  }


.project-contenido {
    grid-template-columns: 1fr;
}

/* MENU */
.projects-nav, .project-data {
  position: initial;
  height: initial;
  padding: 4rem 2rem;
}

  /* CONTACTO */
  .contact {
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
  }
  
  .hero-img {
  background-size: auto 100%;
}

.view-more {
    right: 2rem;
    bottom: 4rem;
    top: initial;
    transform: initial;
    font-size: 1.4rem;
    display: block !important;
    padding: 1rem;
    border: solid .1rem white;
    color: white;
    background-color: transparent;
}

}