.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 160px;
  z-index: 1;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 10px 0;
}

.dropdown-content a {
  display: block;
  padding: 5px 10px;
  font-size: .8em;
  text-decoration: none;
  color: black;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}



.carousel {
  width: 60%;
  height: 60vh;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slide 16s infinite;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slide {
  0% { transform: translateX(0%); }
  25% { transform: translateX(0%); }

  30% { transform: translateX(-33.333%); }
  55% { transform: translateX(-33.333%); }

  60% { transform: translateX(-66.666%); }
  85% { transform: translateX(-66.666%); }

  100% { transform: translateX(0%); }
}




.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: white;
}

.header.shrink{
  flex-direction: row;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  transition: height 0.3s ease;
}

.logo {
  height: 150px;
  transition: height 0.3s ease;
}

.header.shrink .logo-container {
  height: 80px;
}

.header.shrink .logo {
  height: 50px;
}

.texto {
  margin-top: 15%;
}

@font-face {
  font-family: 'Authentic Sans';
  src: url('fonts/authentic-sans-60.woff2') format('woff2');
  font-weight: 60;
  font-style: normal;
}
@font-face {
  font-family: 'Authentic Sans';
  src: url('fonts/authentic-sans-90.woff2') format('woff2');
  font-weight: 90;
  font-style: normal;
}
@font-face {
  font-family: 'Authentic Sans';
  src: url('fonts/authentic-sans-130.woff2') format('woff2');
  font-weight: 130;
  font-style: normal;
}
@font-face {
  font-family: 'Authentic Sans';
  src: url('fonts/authentic-sans-150.woff2') format('woff2');
  font-weight: 150;
  font-style: normal;
}

body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

p {
  font-family: Authentic Sans;
  font-weight: 90;
}

.footer p {
  text-align: center;
  color: gray;
}

.spacer {
  height: 50px;
  width: 100%;
}

.inicio {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.inicio img {
  width: 60%;
  height: 60vh;
  object-fit: cover;
  object-position: 0% 0%;
}

.inicio p {
  width: 30%;
  padding: 5%;
  font-family: Authentic Sans;
  font-weight: 60;
  text-align: right;
}

.header {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1%;
  justify-content: center;
}

.header img {
  align-self: center;
  margin-top: 1%;
  margin-bottom: 1%;
}

.menu {
  display: flex;
  flex-direction: row-reverse;
  width: 70%;
  align-items: center;
  margin-top: 1%;
  margin-bottom: 1%;
}

.menu a {
  font-family: Authentic Sans;
  font-weight: 60;
  margin-left: 15%;
  color: black;
  text-decoration: none;
}

a:hover {
  font-weight: 90;
}

.header h1 {
  font-family: Authentic Sans;
  font-weight: 90;
}

.fotos {
  display: flex;
  width: 100%;
}

.fotos2 {
  display: flex;
  width: 100%;
}

.fotos2 img:hover {
  transform: scale(1.01);
}

.fotos img {
  padding: 0;
  margin: 0;
/*  width: 30%;*/
  transition: .1s;
  transition-timing-function: ease-in-out;
  object-fit: cover;
}

.fotos2 img {
  /*margin-left: 35%;
  margin-right: 5%;
  width: 60%;*/
  transition: .1s;
  transition-timing-function: ease-in-out;
}

.fotos img:hover {
  transform: scale(1.01);
}

.proyectos {
  width: 90%;
  padding-top: 5%;
  padding-bottom: 5%;
  margin-left: 5%;
  margin-right: 5%;
  display: flex;
  flex-direction: row;
  /*justify-content: space-around;*/
  align-items: center;
}

.proyectos:nth-child(even) {
  flex-direction: row-reverse;
}


.proyectos2 {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.textoproyectos {
  padding: 5%;
  width: 30%;
}

.proyectos img,
.proyectos2 img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  padding: 1%;
}

.proyectos h2,
.proyectos2 h2 {
  width: 20vw;
  padding: 1%;
}

.proyectos a,
.proyectos2 a {
  font-family: Authentic Sans;
  font-weight: 120;
  text-decoration: none;
  color: black;
  text-transform: uppercase;
}

.btn {
  padding: 1%;
  border: 1px solid black;
  border-radius: 0;
  background-color: white;
  font-size: .7em;
  font-family: Authentic Sans;
  font-weight: 60;
  text-transform: uppercase;
  transition: .1s;
}

.btn:hover {
  color: white;
  background-color: black;
  font-size: .9em;
}

.proyecto {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.textoproyecto {
  width: 30%;
  padding: 5%;
  position: fixed;
}

.textoproyecto p {
  font-weight: 60;
}

.textoproyecto h2 {
  font-family: Authentic Sans;
  font-weight: 120;
  text-transform: uppercase;
}

.imagenesproyecto {
  width: 60%;
  margin-left: 38%;
  margin-right: 2%;
}

.imagenesproyecto img {
  width: 100%;
}

.contacto {
  display: flex;
  flex-direction: column;
  width: 30%;
  margin-left: 35%;
  font-family: Authentic Sans;
  font-weight: 60;
}

.contacto input,
textarea,
button {
  border: 1px solid black;
  border-radius: 0;
  background-color: white;
  font-family: Authentic Sans;
  font-weight: 60;
  color: black;
}

.contacto label {
  margin-top: 2%;
  padding: 2%;
}

.contacto button {
  margin-top: 5%;
  transition: .1s;
}

.contacto button:hover {
  background-color: black;
  color: white;
}

textarea:focus {
  border: 2px solid black;
  border-radius: 0;
}

@media (max-width: 768px) {

  .header{
    width: 100vw;
  }

  .logo-container{
    width: 100vw;
  }

  .inicio{
    width: 100vw;
    display: flex;
    flex-direction: column;
  }

  .inicio p{
    width: 70vw;
    margin-left: 0;
    margin-right: 0;
  }

  .carousel {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    position: relative;
  }

  .slides {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slide 16s infinite;
  }

  .slides img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  @keyframes slide {
    0% { transform: translateX(0%); }
    25% { transform: translateX(0%); }

    30% { transform: translateX(-33.333%); }
    55% { transform: translateX(-33.333%); }

    60% { transform: translateX(-66.666%); }
    85% { transform: translateX(-66.666%); }

    100% { transform: translateX(0%); }
  }

  .spacer{
    display: none;
  }

  .header {
    flex-direction: column;
    padding: 0;
    justify-content: center;
    position: relative;
  }

  .menu {
    width: 100vw;
    justify-content: space-around;
    position: relative;
  }

  .menu a {
    margin: 0;
  }

  .header h1 {
    width: 100vw;
    text-align: center;
  }

  .proyectos,
  .proyectos2 {
    flex-direction: column!important;
    align-items: center;
    justify-content: center;
  }

  .proyectos h2,
  .proyectos2 h2 {
    text-align: center;
    width: 100%;
    margin-bottom: 0;
  }

  .proyectos img,
  .proyectos2 img{
    object-fit: cover;
    height: 100%;
  }

  .fotos{
    width: 100%;
    max-width: 100vw;
  }

  body, html{
    max-width: 100vw;
    overflow-x: hidden;
  }

  .zoom-on-scroll {
    width: 70%;
    margin-top: 5vh;
    margin-bottom: 5vh;
    margin-left: 0;
    margin-right: 0;
    max-height: 50vh;
    min-width: 60vw;
    max-width: 100vw;
  }

  .zoom-on-scroll:nth-child(odd){
    margin-left: 25%;
    margin-right: 5%;
  }

  .zoom-on-scroll:nth-child(even){
    margin-left: 5%;
    margin-right: 25%;
  }

  .textoproyectos {
    width: 90%;
  }

  .proyectos img,
  .proyectos2 img {
    width: 100%;
    object-fit: contain;
  }

  .proyecto {
    flex-direction: column;
    margin-top: 5vh;
  }

  .textoproyecto {
    position: relative !important;
    width: 90vw;
    padding: 5vw;
  }

  .imagenesproyecto {
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: scroll;
  }

  .imagenesproyecto img {
    width: 100vw;
    object-fit: contain;
    margin-right: 5vw;
    flex-shrink: 0;
    display: block;
    image-orientation: none;
  }

  .contacto {
    margin-top: 5vh;
    width: 70%;
    margin-left: 15%;
  }
}
