/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
@font-face {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    src: url(/fonts/Montserrat-VariableFont_wght.ttf) format('truetype');
    font-weight: 100 900;
    font-style: normal;
}
/* GENERAL */
body {
  font-family: 'Montserrat';
  background: #f9f9f9;
  flex: 1;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    line-height: 1.3;
}

/* Header */
.header {
  height: 8vh;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 11rem;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header__logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.logo__icon {
  width: 45px;
  height: 45px;
}
.header__nav {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}
.header__link {
  display: inline-block;
  color: #999999;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}
.header__link:hover {
  transform: scale(1.01);
  color: #fff;
  font-weight: 600;
}


/* TÍTULO DE LA SECCIÓN */
#diseno-marca {
    flex: 1;
    margin-left: 8rem;
    margin-right: 8rem;
    max-width: 100%;
    padding: 40px 20px;
    margin-top: 1rem;
}
#diseno-marca h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
}


/* CAJITAS SELECCIONABLES */
.project-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.418);
  text-align: center;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 110%;
  gap:35px;
  font-size: 1.2rem;
}

.project-boxA {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.418);
  text-align: center;
  width: 300%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 125%;
  gap:20px;
  font-size: 1.2rem;
  max-height: 125%;
}

.project-boxA h4 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.project-boxes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 150px;
  margin-bottom: 3.5rem;
}

.project-boxes-containerA {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 160px;
  margin-bottom: 3.5rem;
}

.project-box:hover {
  background: #dbdbdb;
  color: black;
}

.project-box img {
    max-width: 100%;
    border-radius: 10px;
}

.project-boxA:hover {
  background: #dbdbdb;
  color: black;
}

.project-boxA img {
    max-width: 100%;
    border-radius: 10px;
}

/* DETALLES DEL PROYECTO */
.project-details {
  display: none;
  margin-top: 8rem;
  margin-bottom: 2rem;
  background: #f0f0f0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.315);
  max-width: 100%;
}

.project-detailsA {
  display: none;
  margin-top: 8rem;
  margin-bottom: 2rem;
  background: #f0f0f0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.315);
  max-width: 100%;
}

/* VIDEO DESTACADO */

.main-video video {
  width: 100%;
  max-width: 1000px;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.219);
  display: block;
  margin-inline: auto;
}

.main-video img {
  width: 100%;
  max-width: 1000px;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.219);
  display: block;
  margin-inline: auto;
  height: 550px;
}

/* CONTENIDO EN DOS COLUMNAS */
.project-content {
  display:block;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.project-text {
  min-width: 300px;
  max-width: 100%;
  margin: 4rem;
  padding: 0 10rem 0 10rem;
  font-size: 1.4rem;
  text-align: center;
}

.project-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* GALERÍA */
.gallery-track-container {
  width: 700px;
  height: 520px;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: max-content;
}

.gallery-track img {
  width: 700px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

/* FLECHAS */
.gallery-arrow {
  background-color: #222;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.gallery-arrow:hover {
  background-color: #555;
}

.gallery-arrow.left {
  width: 3rem;
  height: 3rem;
  left: 1rem;
}

.gallery-arrow.right {
  width: 3rem;
  height: 3rem;
  right: 1rem;
}


.footer {
  background-color: #000;
  color: #fff;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer__info {
  max-width: 400px;
  margin-bottom: 1rem;
}
.footer__contact a {
  color: #fff;
  text-decoration: underline;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}





/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  gap: 6px;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 2px;
}


.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 0; /* importante */
}

.lightbox img {
  width: auto !important;
  height: 80% !important;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgb(0, 0, 0);
  transition: transform 0.25s ease;
}





/* Modo responsive */
@media (max-width: 1050px) {

  html, body {
    max-width: 100%;
  }

  .header {
    padding: 1rem 2rem;
    height: auto;
    flex-wrap: nowrap; /* importante */
    flex-direction: row;
  }

  .header__logo {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .header__nav {
  flex-direction: column;
  gap: 1.5rem;
  background-color: #000;
  width: 100%;
  padding: 2rem 1.5rem;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header__nav.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

  .header__nav.active {
    display: flex;
  }

  /* Ajustes generales de margen */
  #diseno-marca {
    margin: 1rem;
    padding: 1rem;
  }

  #diseno-marca h2 {
    font-size: 2.3rem;
    text-align: center;
  }

  /* Cuadraditos de proyectos */
  .project-boxes-container {
    gap: 2rem;
    justify-content: center;
    margin-left: 15%;
    margin-right: 15%;
  }

.project-boxes-containerA {
    gap: 5rem 2rem;
    justify-content: center;
    margin-left: 15%;
    margin-right: 15%;
  }

  .project-box {
    max-width: 100%;
    font-size: 1rem;
    height: 300px;
  }

  .project-boxA {
    max-width: 100%;
    font-size: 1rem;
    height: 300px;
  }

  .project-boxA h4 {
    font-size: 0.8rem;
  }

  /* Detalles del proyecto */
  .project-details {
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    padding: 1rem;
  }

   /* Detalles del proyecto */
  .project-detailsA {
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    padding: 1rem;
  }

  /* Video */
  .main-video video {
    max-width: 100%;
  }
  .main-video img {
    max-width: 100%;
    max-height: 180px;
  }

  /* Contenido en columnas → se vuelve columna */
  .project-content {
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    gap: 2rem;
  }

  .project-contentA {
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    gap: 2rem;
  }

  .project-text {
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    padding: 10%;
    font-size: 1.2rem;
  }

  /* Galería */
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 680px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}

  .gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.gallery-track img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}

  .gallery-arrow.left,
  .gallery-arrow.right {
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  .gallery-arrow.left {
    left: 1.5rem;
    z-index: 1;
  }

  .gallery-arrow.right {
    right: 1.5rem;
  }

  .lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 95%;
  max-height: 52%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgb(0, 0, 0);
  transition: transform 0.2s ease;
}

  /* Footer en columna */
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }
}

@media (max-width: 920px) {
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}
.lightbox img {
  max-width: 95%;
  max-height: 47%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgb(0, 0, 0);
  transition: transform 0.2s ease;
}
}

@media (max-width: 855px) {
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 540px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}
.lightbox img {
  max-width: 95%;
  max-height: 48%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgb(0, 0, 0);
  transition: transform 0.2s ease;
}
}

@media (max-width: 768px) {

  html, body {
    max-width: 100%;
  }

  .header {
    padding: 1rem 2rem;
    height: auto;
    flex-wrap: nowrap; /* importante */
    flex-direction: row;
  }

  .header__logo {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .header__nav {
  flex-direction: column;
  gap: 1.5rem;
  background-color: #000;
  width: 100%;
  padding: 2rem 1.5rem;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header__nav.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

  .header__nav.active {
    display: flex;
  }

  /* Ajustes generales de margen */
  #diseno-marca {
    margin: 1rem;
    padding: 1rem;
  }

  #diseno-marca h2 {
    font-size: 2.3rem;
    text-align: center;
  }

  /* Cuadraditos de proyectos */
  .project-boxes-container {
    gap: 2rem;
    justify-content: center;
    margin-left: 15%;
    margin-right: 15%;
  }

.project-boxes-containerA {
    gap: 5rem 2rem;
    justify-content: center;
    margin-left: 15%;
    margin-right: 15%;
  }

  .project-box {
    max-width: 100%;
    font-size: 1rem;
    height: 300px;
  }

  .project-boxA {
    max-width: 100%;
    font-size: 1rem;
    height: 300px;
  }

  .project-boxA h4 {
    font-size: 0.8rem;
  }

  /* Detalles del proyecto */
  .project-details {
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    padding: 1rem;
  }

   /* Detalles del proyecto */
  .project-detailsA {
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    padding: 1rem;
  }

  /* Video */
  .main-video video {
    max-width: 100%;
  }
  .main-video img {
    max-width: 100%;
    max-height: 180px;
  }

  /* Contenido en columnas → se vuelve columna */
  .project-content {
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    gap: 2rem;
  }

  .project-contentA {
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    gap: 2rem;
  }

  .project-text {
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    padding: 10%;
    font-size: 1.2rem;
  }

  /* Galería */
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}

  .gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.gallery-track img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}

  .gallery-arrow.left,
  .gallery-arrow.right {
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  .gallery-arrow.left {
    left: 1.5rem;
    z-index: 1;
  }

  .gallery-arrow.right {
    right: 1.5rem;
  }


  /* Footer en columna */
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
  }
}
@media (max-width: 550px) {
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 330px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}
}
@media (max-width: 430px) {
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}
.lightbox img {
  max-width: 95%;
  max-height: 32%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgb(0, 0, 0);
  transition: transform 0.2s ease;
}
}
@media (max-width: 400px) {

  .project-text {
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 100%;
    padding: 10%;
    font-size: 1.2rem;
    padding-right: 15%;
  }
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}
}
@media (max-width: 415px) {
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}
.lightbox img {
  max-width: 95%;
  max-height: 32%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgb(0, 0, 0);
  transition: transform 0.2s ease;
}
}

@media (max-width: 390px) {
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}
}
@media (max-width: 375px) {
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}
.lightbox img {
  max-width: 95%;
  max-height: 40%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgb(0, 0, 0);
  transition: transform 0.2s ease;
}

}
@media (max-width: 360px) {
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 198px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}
.lightbox img {
  max-width: 95%;
  max-height: 35%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgb(0, 0, 0);
  transition: transform 0.2s ease;
}
}

@media (max-width: 345px) {
  .gallery-track-container {
  width: 100%;
  max-width: 100%;
  height: 185px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.274);
}
.lightbox img {
  max-width: 95%;
  max-height: 27%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgb(0, 0, 0);
  transition: transform 0.2s ease;
}
}
