body {
  overflow-x: clip;
}

.service-page {
  overflow-x: clip;
  background: var(--color-background);
}

/* =========================================================
   HERO
   ========================================================= */

.service-hero {
  position: relative;
  height: 763px;
  overflow: hidden;
  background: var(--color-background);
}

.service-hero__graphic {
  position: absolute;
  padding-top: 20px;
  right: 0;
  bottom: 0;
  width: 85%;
  height: 30%;
}

.service-hero__content {
  position: relative;
  z-index: 2;
  margin-left: 5.7%;
  padding-top: 254px;
}

.service-hero__title {
  max-width: 1234px;
  margin: 0;
  color: var(--color-primary);
  font-size: 90px;
  font-weight: 500;
  letter-spacing: -4.5px;
  line-height: 1.11;
}

.service-hero__intro {
  max-width: 1062px;
  margin: 48px 0 0;
  padding-bottom: 40px;
 
}


/* =========================================================

   CAPACIDADES

========================================================= */

.service-capabilities {
  background: var(--color-background);
}

.capability {
  min-height: 884px;
  padding: 175px 20px;
  box-sizing: border-box;
}

.capability__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(60px, 12.5vw, 180px);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.capability__visual {
  width: min(524px, 100%);
  height: auto;
  max-height: 500px;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  box-shadow: 4px 5px 14px rgba(80, 80, 80, 0.28);
}

.capability__visual-group {
  width: min(524px, 100%);
  flex: 1 1 524px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.capability__visual-group .capability__visual {
  width: 100%;
  max-height: 269px;
}

.capability__visual-secondary {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 4px 5px 14px rgba(80, 80, 80, 0.28);
  object-fit: contain;
}

.capability__content {
  width: min(693px, 100%);
  flex: 1 1 693px;
  min-width: 0;
}

.capability__title {
  max-width: 518px;
  margin: -16px 0 0;
}

.capability__title.white {
  color: var(--color-white);
}

.capability__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 47px;
  margin-top: 140px;
}

.capability__visual--small {
  max-height: none;
}


.capability__description {
  width: 282px;
  margin: 58px 0 0;
}

.capability__item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 20px 0 52px;
  border-radius: 20px;
  background: rgba(215, 215, 215, 0.34);
}

.capability__item img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
  margin-right: 12px;
}


/* Segunda capacidad */

.capability--data {
  min-height: 884px;
  color: var(--color-white);
  background-image: url("../../assets/backgrounds/background_blue.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.capability--data .capability__description {
  color: var(--color-white);
}

.capability--data .capability__item {
  color: var(--color-white);
  background: rgba(215, 215, 215, 0.34);
}

/* Tercera capacidad */

.capability--integration {
  padding: 0;
  background: var(--color-background);
}

.capability--integration .capability__inner {
  height: 100%;
}



.capability--integration .capability__visual {
  border-radius: 0;
  box-shadow: none;
}

.service-capabilities .capability.capability--integration {
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
}

.service-capabilities .capability--integration .capability__inner {
  padding-bottom: 0;
}

/* =========================================================
   CAPACIDADES — PLACAS APILADAS
========================================================= */

.service-capabilities {
  position: relative;
}

.capability {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 884px;
  box-sizing: border-box;
  will-change: transform;
}

/* Orden de las placas */

.capability:nth-child(1) {
  z-index: 1;
}

.capability:nth-child(2) {
  z-index: 2;
}

.capability:nth-child(3) {
  z-index: 3;
}



/* =========================================================

   METODOLOGÍA

   ========================================================= */
.service-method {
  position: relative;
  padding: 117px 60px;
  background: var(--color-background);
}

.service-method__title {
  max-width: 905px;
  margin: 0;
}

.method-steps {
  --method-line-progress: 0;
  position: relative;
  width: 100%;
  margin: 680px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 50px;
}

.method-step {
  position: relative;
  width: auto;
  padding: 0;
}

.method-step__title {
  margin: 0 0 10px;
}

.method-step__text {
  margin: 0;
  line-height: 1.45;
}

.method-step__lead {
  font-weight: 700;
}

.method-step__description {
  font-weight: 400;
}

.method-step::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1A759F;
  transform: translate(-50%, -50%);
  z-index: 999;
}


.method-step:nth-of-type(2)::before {
  background: #0085C2;
  z-index: 999;
}

.method-step:nth-of-type(3)::before {
  background: #7673a0;
  z-index: 999;
}

.method-step:nth-of-type(4)::before {
  background: #F52C09;
  z-index: 999;
}

.service-method__highlights {
  position: absolute;
  top: 257px;
  left: 118px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 77px;
  width: calc(100% - 236px);
  max-width: 1203px;
}

.method-highlight {
  position: relative;
  width: 100%;
  max-width: 570px;
  min-width: 0;
  height: 275px;
  overflow: hidden;
}

.method-highlight--technology {
  background: rgba(0, 63, 92, 0.8);
}

.method-highlight--people {
  background: var(--color-accent);
}

.method-highlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-highlight p {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: var(--color-white);
}

.method-highlight--technology p {
  font-family: var(--font-display);
  line-height: 1.25;
  font-size: 32px;
}

.method-highlight--people p {
  font-weight: 700;
  line-height: 1.4;
}

.method-divider {
  position: absolute;
  top: -100px;
  left: 0;
  width: calc(100% - 40px);
  height: 2px;
  margin: 0;
  background: linear-gradient(90deg, #1A759F 8%, #0085C2 35%, #837393 65%, #F52C09 92%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 1;
}

.method-step__number {
  display: block;
  margin: 0 0 8px;
  color: var(--color-accent);
  font-weight: 700;
  line-height: 1;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1199px) {

  

  .service-hero__graphic {
    top: 300px;
    width: 90%;
  }

  .capability {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    padding: 70px 30px;
    box-sizing: border-box;
  }

  .capability__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    width: 100%;
    max-width: 760px;
    height: 100%;
    margin: 0 auto;
  }

  .capability__visual {
    width: 55%;
    max-width: 320px;
    height: auto;
    max-height: 240px;
  }

  .capability__visual--small {
    width: 55%;
    max-width: 320px;
    max-height: 240px;
  }

  .capability__visual-group {
    width: 55%;
    max-width: 320px;
    flex: none;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 18px;
  }

  .capability__visual-group .capability__visual {
    width: 100%;
    max-width: 320px;
    max-height: 180px;
  }

  .capability__visual-secondary {
    width: 100%;
    max-width: 320px;
    max-height: 180px;
  }

  .capability__content {
    width: 100%;
    max-width: 693px;
  }

  .capability__title {
    margin: 0;
  }

  .capability__description {
    width: 100%;
    margin-top: 30px;
  }

  .capability__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 25px;
    margin-top: 50px;
  }

  .capability__item {
    min-height: 50px;
    padding: 0 15px 0 45px;
  }

  .service-capabilities .capability.capability--integration {
    display: flex;
    align-items: flex-start;
    padding: 70px 30px;
  }

  .service-capabilities .capability--integration .capability__inner {
    height: 100%;
  }

  .service-method {
    min-height: 0;
    padding: 80px 40px;
  }

  .service-method__highlights {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 55px;
  }

  .method-highlight {
    width: min(500px, 75%);
    height: 210px;
  }

  .method-highlight--technology p {
    padding: 32px 40px;
    font-size: 28px;
  }

  .method-highlight--people p {
    padding: 42px 40px;
  }

  .method-divider {
    display: none;
  }

  .method-steps {
    width: calc(100% - 90px);
    margin: 60px 0 0 90px;
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .method-steps::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -55px;
    width: 2px;
    height: calc(100% + 60px);
    background: linear-gradient(180deg, transparent 0%, #1A759F 8%, #0085C2 35%, #837393 65%, #F52C09 92%, transparent 100%);
    transform: scaleY(var(--method-line-progress));
    transform-origin: top center;
    z-index: 1;
  }

  .method-step,
  .method-step:nth-child(2),
  .method-step:nth-child(3),
  .method-step:nth-child(4) {
    width: 100%;
    padding: 0;
  }

  .method-step::before,
  .method-step:nth-child(2)::before,
  .method-step:nth-child(3)::before,
  .method-step:nth-child(4)::before {
    top: 45px;
    left: -55px;
    width: 22px;
    height: 22px;
  }



}

/* ========================================
   MÓVIL
======================================== */

@media (max-width: 767px) {

  .service-hero {
    height: auto;
    min-height: 700px;
    padding-bottom: 80px;
  }

  .service-hero__content {
    width: calc(100% - 40px);
    padding-top: 180px;
  }

  .service-hero__title {
    font-size: 40px;
    letter-spacing: -2px;
  }

  .service-hero__intro {
    margin-top: 30px;
  }


  .service-hero__graphic {
    top: 150px;
  }

  .capability {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    padding: 80px 20px;
    box-sizing: border-box;
  }

  .capability__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
  }

  .capability__visual {
    width: 60%;
    max-width: 260px;
    height: auto;
    max-height: 190px;
  }

  .capability__visual--small {
    width: 60%;
    max-width: 260px;
    max-height: 190px;
  }

  .capability__visual-group {
    width: 60%;
    max-width: 260px;
    flex: none;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 18px;
  }

  .capability__visual-group .capability__visual,
  .capability__visual-secondary {
    width: 100%;
    max-width: 260px;
    max-height: 145px;
  }

  .capability__content {
    width: 100%;
    max-width: 100%;
  }

  .capability__title {
    max-width: 100%;
    margin: 0;
  }

  .capability__description {
    width: 100%;
    margin-top: 30px;
  }

  .capability__items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
  }

  .capability__item {
    width: 300px;
    box-sizing: border-box;
  }

  .service-capabilities .capability.capability--integration {
    display: flex;
    align-items: flex-start;
    padding: 80px 20px;
  }

  .service-capabilities .capability--integration .capability__inner {
    height: 100%;
  }



  .service-method {
    padding: 60px 20px;
  }

  .service-method__highlights {
    gap: 20px;
    margin-top: 40px;
  }

  .method-highlight {
    width: min(340px, 78%);
    height: 170px;
  }

  .method-highlight--technology p {
    padding: 25px;
    font-size: 22px;
  }

  .method-highlight--people p {
    padding: 30px 25px;
  }

  .method-steps {
    width: calc(100% - 70px);
    margin: 50px 0 0 70px;
    gap: 50px;
  }

  .method-steps::before {
    top: -30px;
    left: -45px;
    width: 2px;
    height: calc(100% + 60px);
    background: linear-gradient(180deg, transparent 0%, #1A759F 8%, #0085C2 35%, #837393 65%, #F52C09 92%, transparent 100%);
    transform: scaleY(var(--method-line-progress));
    transform-origin: top center;
  }

  .method-step::before,
  .method-step:nth-child(2)::before,
  .method-step:nth-child(3)::before,
  .method-step:nth-child(4)::before {
    top: 38px;
    left: -44px;
    width: 18px;
    height: 18px;
  }

}