* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "unbounded", sans-serif;
  background: #0d0d0d;
  color: #fff;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: auto;
}

/* HEADER */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: 0.3s;
}

.header.scrolled {
  background: #000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  width: 40px;
}

.btn {
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* imagen fondo completa */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/banner.webp") no-repeat center/cover;
  opacity: 0.25;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(60px, 25vw, 0px);
  line-height: 1.2;
  color: #fff;
  width: 90%;
}

.services {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  justify-content: center;
  color: #fff;
  gap: 150px;
  width: 100%;
}



.services div {
  text-align: left;
}

.services span {
  display: block;
}

/* números */
.services span:nth-child(odd) {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 5px;
}

/* textos */
.services span:nth-child(even) {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  }

  .hero-title {
    margin-bottom: 10px;
  }



/* SLIDER */
.slider {
  padding: 40px 0;
  background: #0a0a0a;
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.slider-track img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}

.slider-track img:hover {
  transition: 0.3s;
  transform: scale(1.03);

}

.slider-track {
  display: grid;
  grid-auto-flow: column; /* 🔑 fuerza horizontal */
  grid-auto-columns: auto; /* tamaño automático */
  gap: 30px;
  width: max-content;
  animation: scroll 50s linear infinite;
}


/* animación */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}





/* PROJECTS */
.projects {
  padding: 100px 0;
}

.projects h2 {
  margin-bottom: 40px;
  font-size: 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 2fr));
  gap: 10px;
}

.card {
  background: #1a1a1a;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card img {
  width: 100%;
  height: 400px;
  object-fit: cover;  
  transition: all 0.6s ease;
}

.card-info {
  padding: 20px;
}

.card img:hover {
  transition: 0.6s;
  transform: scale(1.03);
  height: 400px;
}
.card-info span {
  font-size: 12px;
  opacity: 0.7;
}

.card-info h3 {
  margin-top: 0px;
}

/* FOOTER */
.footer {
  padding: 60px 0;
  background: #000;
  text-align: center;
}

.footer img {
  width: 120px;
  margin-bottom: 20px;
}

.footer .btn {
  display: inline-block;
  margin-bottom: 20px;
}

.footer p {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 30px;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-top img {
  width: 140px;
}

.logo_footer {
  margin-left: 45px;

}

.footer-top span, a {
  color: white;
  text-decoration: none;
  font-size: 18px;

}
.whatsapp-btn {
  background: #212322;
  align-items: center;
  color: #fff;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 18px;
  height: 100%;
}

.whatsapp-btn img {
  width: 28px;
  height: auto;
  margin-bottom: -5px;
}

.btn_container span {
  margin-left: 15px;

}

.btn_container_insta {
  margin-bottom: 20px;
}


/* MOBILE */
@media (max-width: 768px) {

  /* HEROO */

  .hero-title {  
  font-size: clamp(30px, 25vw, 0px);
  }


  .services {
    gap: 35px;
  }

  .card img:hover {
    transform: none;
}


  /* números */
  .services span:nth-child(odd) {
    color: #aaa;
    font-size: 8px;
    margin-bottom: 4px;
  }

  /* textos */
  .services span:nth-child(even) {
    color: #fff;
    font-size: 10px;
    font-weight: 500;
  }



  /* SLIDER LOGOS */

  @media (max-width: 768px) {

  .slider {
    overflow-x: auto;
  }

  .slider-track {
    width: 100%;
    display: grid;
    gap: 10px;
    width: max-content;
    animation: scroll 15s linear infinite;
  }

  .slider img {
    height: 100px;
    width: auto;
  }


  .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.card img {
  height: 300px;
}

.card img:hover {
    transform: none;
}

  

}



  /* FOOTER */
 
.footer-top {
  display: grid;
  grid-template-columns: repeat(1);
  align-items: center;

}

.footer-top img {
  width: 140px;
}

.whatsapp-btn {
  height: auto;
}

.whatsapp-btn img {
  width: 28px;
  height: auto;
  margin-bottom: -5px;
}


.btn_container {
  padding: 15px;
}

.btn_container span {
  margin-left: 5px;

}


}


/* tablet */
@media (max-width: 1200px) {

  .services {
    width: 100%;
    height: auto;
    gap: 80px;
  }


  /* números */
  .services span:nth-child(odd) {
    color: #aaa;
    font-size: 10px;
    margin-bottom: 5px;
  }

  /* textos */
  .services span:nth-child(even) {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
  }

  .slider-track {
  width: 95%;

  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.card img:hover {
    transform: none;
}


}








/*-------- Proyecto -----------*/

.project {
  padding: 120px 0 80px;
}

/* 🔹 BREADCRUMB */
.breadcrumb {
  font-size: 12px;
  margin-bottom: 30px;
}

.breadcrumb a {
  font-size: 12px;
  color: #aaa;
  text-decoration: none;
  transition: 0.2s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: #666;
  margin: 0 5px;
}

.breadcrumb span:last-child {
  color: #fff;
}

/* 🔹 IMAGEN PRINCIPAL */
.project-hero img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  border-radius: 5px;
}

/* 🔹 INFO */
.project-info {
  background: #0a0a0a;
  padding: 25px;
  border-radius: 5px;
  margin-top: ;
  width: 100%;
}

.project-info .tag {
  font-size: 12px;
  opacity: 0.6;
}

.project-info h1 {
  margin: 10px 0;
  font-size: 25px;
}

.project-info p {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.5;
  max-width: 70%;
  margin-bottom: 15px;
}

/* 🔹 GALERÍA */
.gallery {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.row {
  display: grid;
  gap: 10px;
}

.row.thre {
  grid-template-columns: repeat(3, 1fr);
}

.row.four {
  grid-template-columns: repeat(4, 1fr);
}

.row.thre img {
  aspect-ratio: 4 / 5;
}

.row.four img {
  aspect-ratio: 9 / 16;
}

.row.two {
  grid-template-columns: repeat(2, 1fr);
}

.row.full {
  grid-template-columns: 1fr;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {

  .project {
    padding: 100px 0 60px;
  }

  .project-hero img {
    height: 250px;
  }

  .project-info {
    margin-top: -30px;
    padding: 20px;
  }

  .project-info p {
  max-width: 95%;
}

  .row.two {
    grid-template-columns: 1fr;
  }

  .row.thre {
  grid-template-columns: repeat(3, 1fr);
}



  .gallery img {
  }



}


/* ABRIR IMAGEN GRANDE */


.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
}

.gallery img {
  cursor: pointer;
}