
.services-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

#services-tit-wrapper.padding-section-large {
    padding-top: 0rem;
    padding-bottom: 0rem;
}

#services-tit-wrapper h2 {
  font-size: var(--h1-size);
  line-height: inherit;
  font-weight: 400;
}

#services-tit-wrapper h2 span.bold {
  font-weight: 700;
  display: inline-block;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: brightness(1);
  object-fit: cover;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.video-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.9) 5%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
  pointer-events: none;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.background-image::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.9) 5%, rgba(0,0,0,0.1) 100%);
}

.services-wrapper {
  padding: 0;
  height: 100vh; /* 4 servicios x 100vh */
  width: 90%;
  max-width: 1240px;
  position: relative;
}

.service {
  width=100%;
  max-width: 1200px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: flex-end;
  background: transparent;
  color: white;
  position: relative;
  z-index: 2;
}

.service-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem; /* espacio entre logo y texto */
  max-width: 45%;
}

.service-logo {
  width: auto;
  height: 4.2rem; /* igual altura que el texto */
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.service-number {
  font-weight: medium;
  font-size: 2rem;
}
.service-title-moving {
  font-weight: regular;
  font-size: 6rem;
  text-align: left;
  margin-bottom: 0;
  line-height: 1.1;
}

.service-content {
  max-width: 600px;
  position: absolute;
  bottom: 4rem;
  left: 0rem;
  right: 0rem;
  z-index: 10;
  opacity: 0;
  transform: translateY(0px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: 100%;
  margin: auto;
  max-width: 1240px;
}

.service-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.5;
  max-width: 50%;
}

@media (max-width: 768px) {
  .service-description {
    max-width: 75%;
  }
}

@media (max-width: 480px) {
  .service-description {
    max-width: 100%;
  }
}

.service-btn {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  border: 1px solid #fff;
  padding: 0.5rem 1rem;
  border-radius: 100rem;
  text-decoration: none;
  color: #fff;
  z-index: 0;
  transition: color 0.3s ease;
}

.service-btn:hover {
  background-color: #fff;
  color: #000;
  text-decoration: none;
}

.service-btn::after {
  content: "";
  background-image: url("https://48812126.fs1.hubspotusercontent-na1.net/hubfs/48812126/website%20utils/arrow_trend_right_up.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

.service-btn:hover::after {
  content: "";
  background-image: url("https://48812126.fs1.hubspotusercontent-na1.net/hubfs/48812126/website%20utils/arrow_trend_right_up_black.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 1.2rem;
  height: 1.2rem;
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

#lastServiceSpacer {
  height: 20vh; /* Ajusta este valor según cuánto quieras que suba */
}

@media (max-width: 1240px) {
  .service-content {
    left: 5%;
  }
  
  .service-header {
    max-width: 65%;
  }
}

@media (max-width: 991px) {
  .video-wrapper::after {
    background: linear-gradient(to right, rgba(0,0,0,0.8) 5%, rgba(0,0,0,0.2) 100%);
  }

  .background-image::after{
    background: linear-gradient(to right, rgba(0,0,0,0.8) 5%, rgba(0,0,0,0.2) 100%);
  }
  
  .service-header {
    max-width: none;
  }
}

@media (max-width: 768px) {

  .service-title-moving {
    font-size: 3.5rem;
  }
  
  .service-logo {
    width: auto;
    height: 2.5rem; /* igual altura que el texto */
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
  }


  .service-content {
    bottom: 5%;
    left: 0rem;
    right: 0rem;
    padding: 0 1.5rem;
  }

  .services-wrapper {
    padding: 0 1rem;
    width: 100%;
  }
  
 
  .service-description {
    font-size: 1rem;
  }

  .video-wrapper::after {
    background: linear-gradient(to right, rgba(0,0,0,0.8) 5%, rgba(0,0,0,0.2) 100%);
  }

  .background-image::after{
    background: linear-gradient(to right, rgba(0,0,0,0.8) 5%, rgba(0,0,0,0.2) 100%);
  }
  
  #product-video {
    object-position: 30% center !important;
  }
}

@media (max-width: 360px) {

  .service-title-moving {
    font-size: 2.5rem;
  }
  
  .service-logo {
    width: auto;
    height: 1.7rem; /* igual altura que el texto */
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
  }
}

.service-title-moving .word {
  display: inline-block;
  white-space: nowrap;
}