/* Home Header */

.home-header-container {
  padding: 50px 40px;
  display: flex;
  height: 700px;
  margin: auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #fff;
}

.home-header {
  width: 1105px;
  display: flex;
  align-items: end;
  gap: 38px;
  height: 220px;
}

.home-header h1 {
  margin: 0;
  color: #000;
}

.title {
  color: #000;
  text-align: right;
  font-size: 30px;
  font-style: normal;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -1.5px;
  margin-bottom: 0px;
}

.ml7 {
  position: relative;
  font-size: 105px;
  font-style: normal;
  font-weight: 700;
  line-height: 88px;
  letter-spacing: -6px;
}

.ml7 .word {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

.ml7 .word span {
  display: inline-block;
}

.ml7 .char {
  display: inline-block;
}

.ml7 .line {
  display: block;
  overflow: hidden;
}

.ml2 {
  animation: cambio-color 2s infinite;
}

@keyframes cambio-color {
  0% {
    color: black;
  }
  19% {
    color: black;
  }
  20% {
    color: #2e76e1;
  }
  49% {
    color: #2e76e1;
  }
  50% {
    color: #ffae10;
  }
  69% {
    color: #ffae10;
  }
  70% {
    color: #f02279;
  }
  99% {
    color: #f02279;
  }
  100% {
    color: black;
  }
}

@media (max-width: 1450px) {
  .home-header {
    width: 890px;
    height: auto;
  }

  .ml7 {
    font-size: 76px;
    line-height: 76px;
  }

  .home-header h2:first-of-type {
    font-size: 19px;
    line-height: 1;
    margin-bottom: 30px;
  }
}

@media (max-width: 1025px) {
  .home-header {
    max-width: 664px;
  }

  .home-header h1:last-of-type {
    font-size: 64px;
  }

  .text-wrapper,
  .text-wrapper2,
  .text-wrapper3 {
    height: 64px;
  }

  .ml7 {
    position: relative;
    max-height: 257px;
    padding-bottom: 20px;
  }

  .home-header h2:first-of-type {
    padding-bottom: 25px;
  }
}

@media (max-width: 900px) {
  .home-header-container {
    height: 600px;
  }

  .home-header {
    flex-direction: column-reverse;
    align-items: baseline;
  }
}

@media (max-width: 770px) {
  .home-header {
    gap: 0px;
    width: 100%;
  }

  .home-header h1:last-of-type {
    font-size: 70px;
    line-height: 62px;
    letter-spacing: -4px;
  }
}

@media (max-width: 550px) {
  .home-header h1:last-of-type {
    font-size: 70px;
    line-height: 62px;
  }
}

@media (max-width: 450px) {
  .ml7 {
    top: 10px;
    max-height: 100%;
  }

  .home-header h1:last-of-type {
    font-size: 70px;
    line-height: 66px;
  }

  .home-header h2:first-of-type {
    font-size: 25px;
    line-height: 1;
    margin-bottom: 0px;
  }
}

@media (max-width: 390px) {
  .home-header h1:last-of-type {
    font-size: 30px;
    line-height: 30px;
    letter-spacing: -2px;
  }

  .home-header h2:first-of-type {
    font-size: 16px;
    line-height: 20px;
  }

  .ml7 {
    padding-bottom: 0px;
  }
}

/* Home video */

.home-video {
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  height: 1000px;
  overflow: hidden;
}

.hero-video.expanded {
  /* Estado final */
  width: 100%;
  height: auto;
  border-radius: 0;
  transform: translateY(0);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que el video cubra su propio contenedor sin distorsión */
}

@media (max-width: 900px) {
  .home-video video {
    width: 150%;
  }
}

/* Home servicios info */

.home-services-info {
  padding: 100px 40px;
  display: flex;
  margin: auto;
  justify-content: space-between;
  max-width: 1600px;
  overflow: hidden;
}

.home-services-info h2 {
  color: var(--Negro, #141414);
  font-size: 48px;
  font-style: normal;
  font-weight: 300;
  line-height: 56px;
  letter-spacing: -0.96px;
  margin-top: 0;
}

.home-services-info h3 {
  color: var(--Negro, #141414);
  font-size: 32px;
  font-style: normal;
  font-weight: 300;
  line-height: 48px;
  letter-spacing: -0.64px;
  max-width: 776px;
}

.home-button {
  color: var(--Negro, #141414);
  font-size: 27.6px;
  font-style: normal;
  font-weight: 300;
  line-height: 151.8px;
  letter-spacing: -0.552px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  height: 45px;
  border: 1px solid black;
  padding: 10px 0px;
  border-radius: 50px;
  text-decoration: none;
  gap: 10px;
  transition: background-color 0.3s ease;
}

.home-button img {
  width: 90px;
  height: auto;
  transition: transform 0.3s ease;
}

.home-button img:hover {
  transform: rotate(-45deg);
}

@media (max-width: 770px) {
  .home-button img {
    width: 40px;
  }
}

/* Home servicios letreros */

.home-services-sign {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 370px 0;
  padding-top: 0px;
  font-size: 50px;
  font-style: normal;
  font-weight: 400;
  line-height: 0;
  letter-spacing: -2.08px;
  background: white;
}

.home-services-sign > a {
  display: flex;
  width: fit-content;
  white-space: nowrap;
  text-decoration: none;
  color: var(--Negro, #141414);
}

.home-services-sign h2 {
  margin: 145px 0;
  font-size: 356px;
  font-weight: 600;
  letter-spacing: -20px;
}

.home-services-sign > a:nth-of-type(1) {
  width: 5524px;
  animation: move 11s linear infinite;
}

.home-services-sign > a:nth-of-type(2) {
  width: fit-content;
  align-self: end;
  animation: move-reverse 25s linear infinite;
}

.home-services-sign > a:nth-of-type(3) {
  width: fit-content;
  animation: move 24s linear infinite;
}

@keyframes move {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes move-reverse {
  0% {
    transform: translateX(50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/*
.home-services-estrategia:hover label:first-of-type {
  color: var(--Color-3);
}

.home-services-estrategia:hover label:last-of-type {
  color: var(--Color-1);
}

.home-services-creatividad:hover label:nth-of-type(1) {
  color: var(--Color-2);
}

.home-services-creatividad:hover label:nth-of-type(2) {
  color: var(--Color-3);
}

.home-services-creatividad:hover label:nth-of-type(3) {
  color: var(--Color-2);
}

.home-services-desarollo:hover label:nth-of-type(1) {
  color: var(--Color-6);
}

.home-services-desarollo:hover label:nth-of-type(2) {
  color: var(--Color-7);
}
*/

@media (max-width: 1450px) {
  .home-services-sign {
    padding: 120px 0;
  }

  .home-services-sign h2 {
    font-size: 134px;
    letter-spacing: -8px;
    margin: 85px 0;
  }
}

/* Home Vertical Line */

.home-vertical-line-container {
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}

.home-vertical-line {
  width: 100%;
  padding: 0 40px;
  height: 1px;
  background-color: black;
  margin: auto;
  box-sizing: border-box;
}

/* Home Info */

.home-info-container {
  background-color: white;
  padding: 140px 40px;
}

.home-info {
  max-width: 100%;
  margin: 260px auto;
  display: flex;
  gap: 20px;
  position: relative;
}

.home-info-text {
  color: #0f0f0f;
  font-size: 62px;
  font-style: normal;
  width: 1050px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -4.294px;
  mix-blend-mode: normal;
  padding-left: 347px;
}

.home-info-background {
  height: 130%;
  width: 100%;
  top: 50%;
  right: 22%;
  transform: translateY(-50%) translateX(45%) rotate(90deg);
  position: absolute;
  margin: 0 auto;
  z-index: 1;
  mix-blend-mode: hard-light;
}

.home-info-text-reverse {
  width: calc(100% - 130px);
  position: absolute;
  max-width: 1240px;
  color: #2e76e1;
  font-size: 88.238px;
  font-style: normal;
  font-weight: 600;
  line-height: 88px;
  letter-spacing: -5.294px;
  z-index: 0;
  mix-blend-mode: normal;
}

.home-info-link {
  width: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.home-info-link > div:nth-of-type(1) {
  display: flex;
  justify-content: center;
  width: 100%;
}

.home-info-link > div:nth-of-type(1) > img {
  width: 80%;
  object-fit: contain;
}

.home-info-link > div:nth-of-type(2) > a {
  color: #0f0f0f;
  font-size: 25px;
  font-style: normal;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: -0.5px;
  display: table-caption;
  margin: 0;
  text-decoration: none;
}

.home-info-link > div:nth-of-type(2) img {
  transition: transform 0.2s ease;
}

.home-info-link > div:nth-of-type(2) > a:hover > img {
  transform: rotate(-45deg);
}

@media (max-width: 1750px) {
  .home-info-text {
    font-size: 70px;
    line-height: 80px;
  }
}

@media (max-width: 1450px) {
  .home-info-text-reverse {
    width: calc(100% - 90px);
    max-width: 870px;
    font-size: 62px;
    line-height: 1.2;
  }

  .home-info-link {
    width: 90px;
  }

  .home-info-link > div:nth-of-type(2) > a {
    font-size: 18px;
    line-height: 1;
  }

  .home-info-link > div:nth-of-type(2) img {
    width: 12px;
    margin-left: 5px;
  }

  .home-info-background {
    height: 100%;
  }

  .home-info-text {
    width: 775px;
    font-weight: 600;
    padding-left: 203px;
    font-size: 49px;
    line-height: 55px;
  }
}

@media (max-width: 1100px) {
  .home-info-text {
    padding-left: 80px;
  }
}

@media (max-width: 900px) {
  .home-info-container {
    background-color: white;
    padding: 120px 20px;
  }

  .home-info {
    flex-direction: column;
    gap: 50px;
    margin: 110px 40px 110px 40px;
  }

  .home-info-background {
    display: none;
  }

  .home-info-text {
    width: 100%;
    font-size: 50px;
    font-weight: 700;
    line-height: 50px;
    letter-spacing: -2px;
    padding-left: 0px;
    width: 100%;
  }

  .home-info-text-reverse {
    width: 100%;
    font-size: 32px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -2px;
  }

  .home-info-link > div:nth-of-type(2) {
    display: none;
  }

  .home-info-link > div:nth-of-type(1) {
    justify-content: left;
  }

  .home-info-link > div:nth-of-type(1) > img {
    max-width: 40px;
  }
}

@media (max-width: 450px) {
  .home-info {
    margin: 100px auto;
  }
}

/* Home project de web actual */

.home-project-container {
  background-color: #0f0f0f;
  padding: 200px 40px;
}

.home-project {
  max-width: 1750px;
  margin: auto;
  display: flex;
  gap: 56px;
}

.home-project-header {
  max-width: 1750px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 160px;
}

.home-project-header h2 {
  margin: 0;
  font-style: normal;
  color: #fff;
  font-size: 200px;
  font-weight: 600;
  line-height: 150px;
  letter-spacing: -14.577px;
}

.home-project-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.home-project-section {
  width: 33.33%;
}

.home-project-post {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  width: 100%;
  gap: 10px;
}

.home-project-section:nth-of-type(1)
  > a:nth-of-type(1)
  > .home-project-post-image {
  aspect-ratio: 560/550;
}

.home-project-section:nth-of-type(1)
  > a:nth-of-type(2)
  > .home-project-post-image {
  aspect-ratio: 560/720;
}

.home-project-section:nth-of-type(1)
  > a:nth-of-type(3)
  > .home-project-post-image {
  aspect-ratio: 560/550;
}

.home-project-section:nth-of-type(2)
  > a:nth-of-type(1)
  > .home-project-post-image {
  aspect-ratio: 560/890;
}

.home-project-section:nth-of-type(2)
  > a:nth-of-type(2)
  > .home-project-post-image {
  aspect-ratio: 560/890;
}

.home-project-section:nth-of-type(3)
  > a:nth-of-type(1)
  > .home-project-post-image {
  aspect-ratio: 560/720;
}

.home-project-section:nth-of-type(3)
  > a:nth-of-type(2)
  > .home-project-post-image {
  aspect-ratio: 560/590;
}

.home-project-section:nth-of-type(3)
  > a:nth-of-type(3)
  > .home-project-post-image {
  aspect-ratio: 560/450;
}

.home-project-post-image {
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
}

.home-project-post-image img {
  width: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 0.3s ease;
}

.home-project-post-image img:hover {
  transform: scale(1.05);
}

.home-project-post-title {
  color: white;
  width: 100%;
  margin-top: 20px;
}

.home-project-post-title h3 {
  color: var(--blanco, #fff);
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 46px;
  letter-spacing: -0.64px;
  text-decoration: underline;
  margin: 0;
  display: flex;
  align-items: end;
  margin-bottom: -5px;
}

.home-project-post-title label {
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -0.48px;
}

.home-project-post-title > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.home-project-post-title img {
  height: 30px;
  transition: transform 0.3s ease;
  margin-top: 10px;
}

.home-project-post:hover .home-project-post-title img {
  transform: translateX(10px);
}

.home-project-tags {
  width: auto;
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 50;
}

.home-project-tags > div {
  border-radius: 25px;
  padding: 5px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -1.38px;
  border: 1px solid white;
}

/* Home project PROPUESTA 

.home-project-container {
  background-color: #fff;
  padding: 200px 40px;
}

.home-project {
  max-width: 100%;
  margin: auto;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.home-project-header {
  max-width: 1750px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 160px;
}

.home-project-header h2 {
  margin: 0;
  font-style: normal;
  color: #fff;
  font-size: 200px;
  font-weight: 600;
  line-height: 150px;
  letter-spacing: -14.577px;
}

.home-project-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.home-project-post {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  width: 100%;
  gap: 10px;
}

.home-project-post-image {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.home-project-post-image img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-project-post-image img:hover {
  transform: scale(1.05);
}

.home-project-post-title {
  color: white;
  width: 100%;
  margin-top: 20px;
}

.home-project-post-title h3 {
  color: var(--blanco, #fff);
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 46px;
  letter-spacing: -0.64px;
  text-decoration: underline;
  margin: 0;
  display: flex;
  align-items: end;
  margin-bottom: -5px;
}

.home-project-post-title label {
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -0.48px;
}

.home-project-post-title > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.home-project-post-title img {
  height: 30px;
  transition: transform 0.3s ease;
  margin-top: 10px;
}

.home-project-post:hover .home-project-post-title img {
  transform: translateX(10px);
}

.home-project-tags {
  width: auto;
  display: flex;
  gap: 10px;
  z-index: 50;
}

.home-project-tags > div:first-child {
  color: #000;
  font-size: 21px;
  line-height: 21px;
  letter-spacing: -0.844px;
  font-weight: bold;
}

.home-project-tags > div {
  color: #000;
  font-size: 21px;
  line-height: 21px;
  letter-spacing: -0.844px;
}

.home-project-fitur {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: end;
}

.home-project-post-fitur {
  display: flex;
  width: 1400px;
  flex-direction: column;
  gap: 10px;
  align-items: start;
  text-decoration: none;
}

.home-project-horizon-keep {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  align-items: end;
}

.home-project-post-horizon img {
  height: 1000px;
}

.home-project-mostoles-ministerio {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  align-items: end;
}

.home-project-post-renfe img {
  height: 740px;
  width: 1035px;
  object-fit: cover;
}
*/

@media (max-width: 1450px) {
  .home-project-container {
    padding: 140px 30px;
  }

  .home-project-header h2 {
    font-size: 140px;
    line-height: 0.8;
    letter-spacing: -4px;
  }

  .home-project-header img {
    width: 60px;
    height: auto;
  }

  .home-project-tags > div {
    padding: 5px 13px;
    display: flex;
    font-size: 13px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .home-project-post-title h3 {
    font-size: 22px;
    line-height: 1.2;
  }

  .home-project-post-title label {
    font-size: 16px;
    line-height: 3;
  }

  .home-project-post-title {
    margin-top: 5px;
  }

  .home-project-post-title img {
    height: 22px;
  }

  .home-project-header {
    gap: 50px;
    margin-bottom: 80px;
  }

  .home-project-header h2 {
    font-size: clamp(17px, 17vw, 98px);
  }
}

@media (max-width: 900px) {
  .home-project-header img {
    display: none;
  }

  .home-project-section {
    width: 100%;
  }

  .home-project {
    flex-direction: column;
  }

  .home-project-section .home-project-post-image {
    aspect-ratio: 560 / 550 !important;
  }

  .home-services-sign h2 {
    font-size: 87px;
    letter-spacing: -3px;
    margin: 64px 0;
  }

  .home-vertical-line-container {
    padding: 0;
  }
}

/* Home section */

.heyers-people-image-second {
  opacity: 0;
}

.home-section-title {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: bold;
  font-size: 21px;
  color: white;
  padding: 15px 10px 15px 10px;
  text-shadow: 0 0 7px #000000;
  opacity: 0;
  bottom: 0;
  background-color: #00c0fd;
}

/* Home brands */

.home-brand-container {
  border-top: 1px solid black;
  display: flex;
  flex-direction: column;
  background: #e8e8e8;
  overflow: hidden;
  padding: 100px 65px;
}

.home-brand-header {
  display: flex;
  justify-content: space-between;
  padding: 0 0 70px 0;
  max-width: 100%;
  margin: auto;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  align-items: end;
}

.home-brand-header h2 {
  margin: 0;
  color: #000;
  font-size: 82.307px;
  font-style: normal;
  font-weight: 600;
  line-height: 72px;
  letter-spacing: -4.938px;
}

.home-brand-header img {
  width: 74px;
  height: 76px;
}

.home-brand-header > label {
  color: var(--Negro);
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 15px;
}

.home-brand-header > label > img {
  filter: brightness(0);
  width: 25px;
}

.home-brands {
  margin: auto;
  display: flex;
  box-sizing: border-box;
  width: fit-content;
}

.home-brands > div {
  width: 250px;
}

.home-brand-container > div:nth-of-type(2) {
  animation: move2 20s linear infinite;
}

.home-brand-container > div:nth-of-type(3) {
  animation: move2-reverse 20s linear infinite;
}

@keyframes move2 {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes move2-reverse {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.home-brands img {
  transition: transform 0.2s ease;
  height: 200px;
}

.home-brands img:hover {
  transform: scale(1.1);
}

@media (max-width: 1450px) {
  .home-brand-header h2 {
    font-size: clamp(17px, 14vw, 58px);
    line-height: 1.1;
  }

  .home-brand-header img {
    width: 52px;
  }

  .home-brand-container {
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .home-brand-header img {
    display: none;
  }

  .home-brand-header {
    flex-direction: column;
    padding: 0 0 80px 0;
    align-items: baseline;
  }

  .home-brands > div {
    width: 190px;
  }

  .home-brand-container > div:nth-of-type(3) {
    margin-top: -35px;
  }
}
