main,
.main {
  padding: 0 30px;
  max-width: 1280px;
}
@media screen and (max-width: 990px) {
  .main_banner > a > img#desktop,
  .logo > img#desktop {
    display: none;
  }
}
.main_banner > a > img {
  width: 100%;
  padding-top: 6em;
  object-fit: contain;
}
.cube--numbers {
  gap: 16px;
  display: grid;
  padding: 0 15px 45px;
  grid-template-columns: repeat(2, 1fr);
}
.numbers > h2,
.cube > h3 {
  text-align: center;
  color: var(--text-primary);
}
.cube > h3 {
  font-size: 15px;
  font-weight: 400;
}
.cube {
  width: 125px;
  height: 107px;
  display: flex;
  align-items: center;
  flex-flow: wrap column;
  justify-content: center;
  background-color: var(--secondary);
  clip-path: polygon(13% 0, 100% 0, 100% 85%, 84% 100%, 0 100%, 0 19%);
}
.numbers {
  display: flex;
  align-items: center;
}

/* GALERIA */
.gallery {
  gap: 16px;
  display: flex;
  flex-direction: column;
  padding: 0 30px 45px 15px;
}
.galeria {
  min-width: 300px;
  padding: 17px 22px;
  clip-path: polygon(20% 0, 100% 0, 100% 13%, 80% 100%, 0 100%, 0 90%);
  overflow: hidden;
  z-index: -1;
  background-color: var(--primary);
}
.galeria > figure > img {
  width: 320px;
}
.galeria > img {
  max-width: 670px;
  max-height: 497px;
}

div.galeria figure img {
  width: 20%;
  float: left;
}

div.galeria figure {
  position: relative;
  width: 500%;
  margin: 0;
  left: 0;
  text-align: left;
  font-size: 0;
  animation: 8s slidy infinite linear;
}

@keyframes slidy {
  0% {
    left: 0%;
  }
  20% {
    left: 0%;
  }
  25% {
    left: -100%;
  }
  45% {
    left: -100%;
  }
  50% {
    left: -200%;
  }
  70% {
    left: -200%;
  }
  75% {
    left: -300%;
  }
  95% {
    left: -300%;
  }
  100% {
    left: -400%;
  }
}
.texto-galeria > p {
  font-size: 15px;
}
.texto-galeria > p > span {
  font-weight: bold;
}

/* SERVICIOS */
.section-servicios {
  gap: 22.5px;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.title-servicios {
  display: flex;
  align-items: center;
}
.title-servicios > h2 {
  font-size: 30px;
}

.grid--servicios {
  display: grid;
  column-gap: 84px;
  grid-template-columns: repeat(1, 1fr);
}
.grid--title {
  gap: 20px;
  display: grid;
  padding-left: 15px;
  text-align: center;
  align-items: center;
  border-right: solid 2px var(--primary);
}

.grid--title > h3 {
  width: 313px;
  height: 62px;
  display: flex;
  cursor: pointer;
  font-size: 20px;
  font-weight: 400;
  line-height: 35px;
  letter-spacing: -1px;
  align-items: center;
  justify-content: center;
}
.grid--title > h3.active-title {
  color: white;
  transition: 0.3s;
  background-color: var(--primary);
}

.grid--contenido {
  display: flex;
  align-items: center;
}
.grid--title-p {
  gap: 30px;
  width: 313px;
  display: none;
  flex-wrap: wrap;
  padding: 0 15px;
  margin-top: 18px;
}

.grid--title-p.active {
  display: flex;
}

.imagen--servicios > img {
  width: 100%;
  display: none;
  height: 360px;
  object-fit: cover;
  padding-top: 20px;
}

.imagen--servicios > img.active {
  display: block;
}

/* Trabajos */
.colors {
  padding: 26px 30px;
  background-color: var(--primary);
}
.trabajos-destacados {
  max-width: 1280px;
}
.title > h2 {
  color: var(--text-primary);
}
.trabajos--contenido {
  padding: 19.5px 0;
}
.trabajos--contenido > div {
  cursor: pointer;
}
.disney,
.nike,
.conagra {
  display: flex;
  flex-wrap: wrap;
  transition: 0.5s;
  padding: 10px 20px;
  align-items: center;
  justify-content: flex-start;
}
.divider {
  width: 70%;
  margin-left: 64px;
  border: solid 2px #e7538d;
}
.arrows {
  display: flex;
  align-items: center;
}
.title-disney,
.title-nike,
.title-conagra {
  color: var(--text-primary);
}
.title-disney > h2,
.title-nike > h2,
.title-conagra > h2 {
  z-index: 1;
  cursor: pointer;
  line-height: 50.4px;
  letter-spacing: -2px;
  color: var(--text-primary);
}
.title-disney > p,
.title-nike > p,
.title-conagra > p {
  z-index: 1;
  font-weight: 400;
  line-height: 30px;
  color: var(--text-primary);
}
.flechas {
  display: flex;
  gap: 5px;
  opacity: 0;
}
.flechas span {
  opacity: 0;
  font-size: 17.5px;
  color: #ffffff7e;
  transform: translateX(-10px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.disney:hover .flechas,
.nike:hover .flechas,
.conagra:hover .flechas {
  opacity: 1;
}
.disney:hover .flechas span:nth-child(1),
.nike:hover .flechas span:nth-child(1),
.conagra:hover .flechas span:nth-child(1) {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.1s;
}
.disney:hover .flechas span:nth-child(2),
.nike:hover .flechas span:nth-child(2),
.conagra:hover .flechas span:nth-child(2) {
  opacity: 1;
  transition-delay: 0.2s;
  transform: translateX(0);
}

.disney:hover .flechas span:nth-child(3),
.nike:hover .flechas span:nth-child(3),
.conagra:hover .flechas span:nth-child(3) {
  opacity: 1;
  transition-delay: 0.3s;
  transform: translateX(0);
}

.disney:hover .flechas span:nth-child(4),
.nike:hover .flechas span:nth-child(4),
.conagra:hover .flechas span:nth-child(4) {
  opacity: 1;
  transition-delay: 0.4s;
  transform: translateX(0);
}

.gallery--trabajos {
  z-index: 0;
  display: flex;
  height: 430px;
  overflow: hidden;
  position: relative;
  padding: 30px 0;
  justify-content: center;
}
.gallery-img {
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease-in-out; /* Transición suave en opacidad */
  top: 30px;
  width: 100%;
  z-index: 1; /* Imágenes en el fondo por defecto */
}

.img-disney {
  opacity: 1;
  z-index: 1; /* Disney está visible por defecto */
}

/* Clase para hacer aparecer una imagen */
.gallery-img.fade-in {
  opacity: 1;
  z-index: 2; /* Imagen visible al frente */
}

/* Clase para hacer desaparecer una imagen */
.gallery-img.fade-out {
  opacity: 0;
  z-index: 1; /* Imagen al fondo al desaparecer */
}

.disney:hover,
.nike:hover,
.conagra:hover {
  background-color: #ffffff43;
}
.trabajar--cols {
  gap: 10px;
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  flex-direction: column;
  color: var(--text-primary);
  justify-content: space-between;
}
.container--cols {
  overflow: hidden;
}
.cols {
  padding: 22px 0;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  background-color: var(--secondary);
}
.block {
  transition: all 0.3s ease;
  width: 100%;
}
.block > .content {
  max-height: 0;
  overflow: hidden;
  transition: height 0.3s ease-in-out;
}
.block.active > .content {
  max-height: 1000px;
  transition: height 0.3s ease-in-out;
}
.block.active {
  position: relative;
}
.content > p {
  padding: 10px 20px;
}
.block .content::before {
  height: 0;
  content: "";
  display: block;
  visibility: hidden;
  transition: all 0.1s ease;
}
.block.active .content::before {
  height: auto;
}
.cols > img {
  width: 90%;
}
.cols > h3 {
  font-size: 28px;
}
.cols > p {
  padding: 20px;
  font-size: 16px;
  font-weight: 200;
}
.content > img {
  width: 200px;
}
.paragraph--btn {
  gap: 11px;
  display: flex;
  align-items: center;
  padding-top: 20px;
  color: var(--primary);
  justify-content: center;
}
.paragraph--btn > p {
  font-size: 16px;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 5px;
}
a:visited#postulate-btn {
  color: var(--primary);
}

.alianzas {
  padding: 40px 0;
}
.title-alianzas > h2 {
  height: 32.5px;
}
.title-alianzas > h2#estrategia {
  padding-left: 50px;
}
.cube-alianzas {
  gap: 20px;
  display: grid;
  padding-top: 33px;
  grid-template-columns: repeat(2, 1fr);
}
.cube-alianza > img {
  width: 138px;
  height: 107px;
}

.trabajar {
  padding: 25px 30px;
  background-color: var(--text-primary);
}
.title-trabajar {
  padding-bottom: 25px;
}
.title-trabajar > h2 {
  height: 32.5px;
}
.title-trabajar > h2#trabajar-two {
  padding-left: 25px;
}

.contenido-trabajar {
  gap: 31.5px;
  display: flex;
  flex-direction: column;
}
.img-trabajar > img {
  height: 190px;
}
.trabajar--cols {
  gap: 4px;
  z-index: 2;
  width: 250px;
  position: relative;
}
.cols {
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--secondary);
}
.block .content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.block .active .content {
  max-height: 200px;
}
.cols > p {
  font-weight: 200;
  padding-top: 20px;
}
.content > p {
  letter-spacing: -1px;
  line-height: 25.2px;
  font-size: 18px;
  font-weight: 400;
}

/* Footer */
footer {
  width: 100%;
}
.background {
  display: flex;
  position: absolute;
  align-items: flex-end;
  padding: 22.5px 0 25px 0;
}
.background > img#background-footer {
  width: 316px;
  height: 180px;
  z-index: -1;
}
.background > a > img#background-btn {
  left: 225px;
  width: 90px;
  height: 55px;
  bottom: 25px;
  position: absolute;
}
.background > a {
  position: absolute;
  top: 63%;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-end;
  gap: 15px;
}
.background > a > h3 {
  display: flex;
  z-index: 2;
  align-items: center;
  position: absolute;
  padding-left: 220px;
  height: 60px;
  padding: 10px 10px 20px 10px;
  font-size: 15px;
  color: white;
}
.background > a > img#flecha-footer {
  width: 20px;
  height: 85px;
  display: flex;
  left: 35%;
  position: relative;
  z-index: 2;
  justify-content: flex-end;
  padding: 35px 0;
}

.container--footer {
  height: 230px;
  display: flex;
  padding: 40px 20px;
  justify-content: space-between;
}
.contenido {
  width: 100%;
}
.contenido > h2,
.contenido > h3,
.btn--contacto > h3,
.btn > h2 {
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -1px;
  color: var(--text-primary);
}
.contenido > h2#last-title {
  height: 42.5px;
}
.contenido > h3#correo {
  font-size: 13px;
  color: #7a7a7a;
  width: 150px;
  margin-left: 0;
  padding-right: 150px;
  display: flex;
}
.btn--contacto {
  gap: 30vh;
  height: 110px;
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: space-around;
}
.btn--contacto > h3 {
  padding-right: 60px;
}
a {
  text-decoration: none;
}
a#postulate-btn {
  color: var(--primary-hcs);
}
.btn {
  position: relative;
  left: 130vh;
  bottom: 110px;
}
.btn > a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.btn > a > h1 {
  color: var(--text-primary);
  font-size: 48px !important;
}

/* Decoracion */
.decoration {
  z-index: -1;
  position: absolute;
}

.decoration-one {
  width: 90%;
  z-index: 1;
}
.one {
  display: grid;
  justify-content: flex-end;
}
.one > img {
  width: 39.5px;
  height: 42.5px;
}
.decoration-two,
.decoration-four,
.decoration-five,
.decoration-six,
.decoration-eight {
  z-index: 1;
}
.two {
  height: 200px;
  position: relative;
  display: grid;
  justify-content: start;
  align-items: end;
}
.two > img {
  width: 65.5px;
  height: 28px;
}

.three {
  bottom: 7vh;
  display: grid;
  position: relative;
  justify-content: end;
}
.three > img {
  width: 52px;
  height: 28px;
}
.four {
  bottom: 20px;
  position: relative;
}
.four > img {
  width: 39.5px;
  height: 41px;
}
.decoration-five {
  width: 90%;
}
.five {
  display: grid;
  justify-content: end;
}
.five > img {
  width: 16px;
  height: 110px;
}
.six {
  display: grid;
  justify-content: center;
}
.six > img {
  width: 70px;
  height: 75px;
  rotate: 75deg;
  bottom: 40px;
  position: relative;
}
.seven > img {
  width: 113.5px;
  position: relative;
  top: 35px;
  left: -80px;
}
.eight {
  bottom: 14px;
  display: grid;
  position: relative;
  padding-right: 69px;
  justify-content: end;
}
.eight > img {
  width: 52px;
  height: 28px;
  transform: rotate(90deg);
}
.eleven {
  margin: 40px 0 0 100px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.eleven > img#puntitos {
  height: 100px;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}
.eleven > img#email {
  width: 100px;
  margin: 0;
}
