section.banner-page {
  height: auto;
  aspect-ratio: 1500/600;
  overflow: hidden;
  max-height: 800px;
  &::before {
    display: none;
  }
  .container-img {
    overflow: hidden;
    img {
      animation: bannerZoom 10s forwards;
      animation-iteration-count: 1; /* La animación se ejecuta una vez */
    }
  }
}

@media (max-width: 800px) {
  section.banner-page {
    height: 320px;

    &::before {
    }
    .container-img {
      img {
      }
    }
  }
}

section.servicios-intro {
  padding-block: 62px;
  .container {
    /*display: flex;*/
    /*flex-direction: column;*/
    /*gap: 37px;*/
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: 5rem;
    /* width: 100%;
    max-width: 100%; */
    @media (max-width: 700px) {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }
    .title {
      position: relative;
      display: flex;
      flex-direction: row;
      /*justify-content: stretch;*/
      flex-shrink: 0;

      gap: 15px;
      &::before {
        content: "";
        display: inline-block;
        width: 5px;
        background: linear-gradient(
          0deg,
          #312783 13.32%,
          #2f2985 56.53%,
          #005fb7 99.74%
        );
      }
      h1 {
        color: var(--2, #312783);
        font-family: "Roboto-600", sans-serif;
        font-size: 34.072px;
        line-height: normal;
      }
    }
    .contexto {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      .content-text {
        display: flex;
        flex-direction: column;
        gap: 20px;
        p {
          color: var(--7, #4d4d4d);
          font-family: "Roboto-400", sans-serif;
          font-size: 22px;
          line-height: 25px; /* 113.636% */
          text-align: justify;
        }
      }
    }
    .content-img {
      width: 100%;
      height: 100%;
      border-radius: 20px;
      overflow: hidden;
      /* height: 473px; */
      /*min-width: 210px;*/
      /*max-width: 360px;*/
      /*height: auto;*/
      overflow: hidden;
      img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
      }
    }
    .call {
      padding: 40px 0;
      border-top: 1px solid #312783;
      position: relative;
      &::before {
        content: "";
        position: absolute;
        top: -0.5rem;
        left: 0;
        height: 100%;
        width: 100%;
        border-top: 1px solid rgba(49, 39, 131, 0.4);
      }
      span {
        color: var(--2, #312783);
        font-family: "Roboto-400", sans-serif;
        font-size: 26px;
        line-height: 25px;
      }
    }
  }
}

section.servicios {
  & > .container {
    width: 100%;
    max-width: 100%;
    .servicios-ofrecidos {
      display: flex;
      flex-direction: column;
      gap: 0px;

      position: relative;
      #servicio-1,
      #servicio-2,
      #servicio-3,
      #servicio-4,
      #servicio-5 {
        scroll-margin-top: 123px; /* Ajusta esto a la altura de tu header */
      }
      .container-servicio {
        position: relative;
        .container-bg {
          position: absolute;
          top: 0;
          left: 0;
          height: 100%;
          width: 100%;
          z-index: -2;
          filter: grayscale(100%);
          img {
            height: 100%;
            width: 100%;
            object-fit: cover;
            object-position: center;
          }
        }
        .container {
          /* display: flex;
          flex-direction: row-reverse;
          justify-content: space-between; */
          display: grid;
          grid-template-columns: minmax(0, 1fr) 40rem;
          gap: 0.5rem !important;
          min-height: 474px;
          @media (max-width: 1024px) {
            display: flex;
            flex-direction: column;
            gap: 0.5rem !important;
          }
          .descripcion {
            display: flex;
            flex-direction: column;
            /* gap: 12px;
            padding-block: 52px; */
            gap: 0.5rem;
            padding-block: 1.5rem;
            justify-content: center;
            grid-area: 1 / 1;
            max-width: 100%;
            .title-service {
              position: relative;
              display: flex;
              flex-direction: row;
              flex-shrink: 0;
              gap: 15px;
            }
            .caracteristicas {
              & > ul {
                & > li {
                  align-items: center;
                  display: flex;
                  gap: 10px;
                  &:has(ul) {
                    flex-direction: column;
                    gap: 0.5rem;
                    align-items: flex-start;
                    padding-left: 1.8rem;
                    & > ul {
                      /* display: grid;
                      grid-template-columns: repeat(3, 1fr);
                      grid-template-rows: repeat(2, 1fr); */
                      display: flex;
                      flex-direction: column;
                      gap: 0.3rem;
                      & > li {
                        color: var(--5, #fff);
                        font-family: "Roboto-400", sans-serif;
                        font-size: 14px;
                        font-style: normal;
                        font-weight: 400;
                        line-height: 19px; /* 135.714% */
                      }
                    }
                  }
                }
              }
            }
          }
          .imagenes {
            display: flex;
            flex-direction: column;
            /* width: 34%; */
            height: 100%;
            width: 100%;
            position: relative;
            .c-image {
              width: 100%;
              flex-grow: 1;
              /* max-height: 360px; */
              img {
                height: 100%;
                width: 100%;
                object-fit: cover;
                object-position: center;
              }
            }
          }
          .imagenes.only-image {
            /* position: absolute; */
            position: relative;
            left: 0;
            width: 100%;
            grid-area: 1 / 2;
            /* min-height: 474px; */
            height: 100%;
            /* width: 683px; */
            @media (max-width: 1024px) {
              position: relative !important;
              width: 100%;
              height: fit-content;
              aspect-ratio: 16 / 12;
            }
            .c-image {
              position: absolute;
              left: 0;
              width: 50rem;
              height: 100%;
              max-height: 100%;
              @media (max-width: 1024px) {
                width: 100vw !important;
                height: 100%;
              }
              svg {
                height: 100%;
              }
            }
          }
        }
        &.impar {
          .container {
            display: grid;
            grid-template-columns: 40rem minmax(0, 1fr);
            @media (max-width: 1024px) {
              display: flex;
              flex-direction: column;
            }
            .descripcion {
              grid-area: 1 / 2;
              @media (max-width: 1024px) {
                width: 100% !important;
              }
            }
            .imagenes.only-image {
              grid-area: 1 / 1;
              @media (max-width: 1024px) {
                position: relative !important;
                width: 100%;
                height: fit-content;
                aspect-ratio: 16 / 12;
              }
              .c-image {
                right: 0;
                left: auto;
              }
            }
          }
        }
      }
      .container-servicio.par {
        background: #ededed;
        &::before {
          content: "";
          position: absolute;
          width: 105px;
          height: 198px;
          background-image: url("../../images/onda-purpura.webp");
          background-position: center;
          background-size: cover;
          background-repeat: no-repeat;
          bottom: 0;
          right: 40%;
          transform: rotate(-5deg) translateY(10px);
          @media (max-width: 1290px) {
            right: 45%;
          }
          @media (max-width: 1024px) {
            right: 80%;
          }
        }
        &::after {
          content: "";
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          background-image: url("../../images/flecha-izquierda.webp");
          background-position: center;
          background-repeat: no-repeat;
          background-size: cover;
          width: 90px;
          height: 180px;
        }
        .container {
          /* flex-direction: row; */
        }
        .descripcion {
          order: 2;
          .title-service {
            /* &::before {
              content: "";
              display: inline-block;
              width: 5px;
              background: white;
            } */
            h2 {
              color: #000;
              font-family: "Roboto-400", sans-serif;
              font-size: 22.858px;
              font-style: normal;
              font-weight: 400;
              line-height: normal;
              strong {
                color: var(--2, #312783);
                font-family: "Roboto-700", sans-serif;
                font-size: 34.909px;
                line-height: normal;
              }
            }
          }
          .caracteristicas {
            & > ul {
              display: flex;
              flex-direction: column;
              gap: 0.3rem;
              & > li {
                color: var(--1, #000);
                font-family: "Roboto-400", sans-serif;
                /* font-size: 18px; //22 */
                font-size: 1rem;
                /* line-height: 31.5px; */ /* 143.182% */
                line-height: 130%;
                ul {
                  display: flex;
                  flex-direction: column;
                }
                &:has(ul) {
                  &::before {
                    content: none;
                  }
                  ul {
                    padding-left: 3rem;
                    li {
                      color: #000;
                      font-family: "Roboto-400", sans-serif;
                      /* font-size: 18px;
                      line-height: 31.5px; */
                      font-size: 1rem;
                      line-height: 130%;
                      list-style-type: disc;
                    }
                  }
                }
                &::before {
                  content: "";
                  width: 17px;
                  height: 19px;
                  display: inline-block;
                  flex-shrink: 0;
                  background: url("../../images/raoy-item-plomo.svg");
                  background-position: center;
                  background-repeat: no-repeat;
                  background-size: contain;
                }
              }
            }
          }
        }
        .imagenes {
          left: auto !important;
          right: 0;
          order: 1;
          .c-image {
            svg {
              width: 683px;
              transform: scaleX(-1);
            }
          }
        }
      }
      .container-servicio.impar {
        background: linear-gradient(270deg, #4c41ac 0%, #1f156d 100%);
        &::before {
          content: "";
          position: absolute;
          bottom: 0;
          left: 40%;
          background-image: url("../../images/onda-blanca.webp");
          background-position: center;
          background-size: cover;
          width: 105px;
          height: 198px;
          transform: rotate(5deg) translateY(10px);
          @media (max-width: 1290px) {
            left: 45%;
          }
          @media (max-width: 1024px) {
            left: 80%;
          }
        }
        &::after {
          content: "";
          position: absolute;
          right: 0;
          top: 50%;
          transform: translateY(-50%);
          background-image: url("../../images/flecha-banner-morado.webp");
          background-position: center;
          background-size: cover;
          width: 90px;
          height: 180px;
        }
        .descripcion {
          order: 1;
          /* min-width: 555px; */
          .title-service {
            /* &::before {
              content: "";
              display: inline-block;
              width: 5px;
              background: linear-gradient(
                0deg,
                #312783 13.32%,
                #2f2985 56.53%,
                #005fb7 99.74%
              );
            } */
            h2 {
              color: #fff;
              font-family: "Roboto-400", sans-serif;
              font-size: 22.858px; /*24*/
              font-style: normal;
              font-weight: 400;
              line-height: normal;
              strong {
                color: #c5c5c5;
                font-family: "Roboto-700", sans-serif;
                font-size: 34.909px; /*39*/
                font-style: normal;
                font-weight: 700;
                line-height: normal;
              }
            }
          }
          .caracteristicas {
            & > ul {
              & > li {
                color: #fff;
                font-family: "Roboto-400", sans-serif;
                /* font-size: 18px; */ /*22*/
                /* line-height: 31.5px; */
                font-size: 1rem;
                line-height: 130%;
                &::before {
                  content: "";
                  width: 17px;
                  height: 23px;
                  display: inline-block;
                  flex-shrink: 0;
                  background: url("../../images/rayo-item.svg");
                  background-position: center;
                  background-repeat: no-repeat;
                  /* background-size: contain; */
                }
              }
            }
          }
        }
        .imagenes {
          order: 2;
          .c-image {
            svg {
              width: 683px;
            }
          }
        }
      }
    }
  }
}

@media (max-width: 1050px) {
  section.servicios {
    & > .container {
      .servicios-ofrecidos {
        #servicio-1,
        #servicio-2,
        #servicio-3,
        #servicio-4,
        #servicio-5 {
        }
        .container-servicio {
          .container {
            flex-direction: column;
            gap: 20px;
            .descripcion {
              width: 100%;
              order: 1;

              /* padding: 0px;
              padding-top: 51px; */
              .title-service {
              }
              .caracteristicas {
                & > ul {
                  & > li {
                    & > ul {
                      & > li {
                      }
                    }
                  }
                }
              }
            }
            .imagenes {
              width: 100%;
              align-items: center;
              order: 2;

              flex-direction: row;
              justify-content: space-around;
              .c-image {
                /* max-width: 350px; */
              }
            }
          }
        }
        .container-servicio.par {
          .descripcion {
            order: 1;
            .title-service {
              h2 {
                strong {
                }
              }
            }
            .caracteristicas {
              & > ul {
                & > li {
                }
              }
            }
          }
          .imagenes {
            order: 2;
          }
        }
        .container-servicio.impar {
          .descripcion {
            order: 1;
            .title-service {
              &::before {
                /* content: ""; */
                display: inline-block;
                width: 5px;
                background: linear-gradient(
                  0deg,
                  #312783 13.32%,
                  #2f2985 56.53%,
                  #005fb7 99.74%
                );
              }
              h2 {
                strong {
                }
              }
            }
            .caracteristicas {
              & > ul {
                & > li {
                }
              }
            }
          }
          .imagenes {
            order: 2;
          }
        }
      }
    }
  }
}
@media (max-width: 992px) {
  section.servicios {
    .container {
      .servicios-ofrecidos {
        .container-servicio {
          .container {
            /* flex-direction: column !important; */
            /* width: 100% !important; */
            /* margin: none !important; */
            /* gap: 30px !important; */
            .descripcion {
              /* width: 85% !important;
              margin: 0 auto !important;
              min-width: auto !important; */
              .title-service {
                h2 {
                  strong {
                    font-size: 28px !important;
                  }
                }
              }
              .caracteristicas {
                ul {
                  li {
                    ul {
                      li {
                        font-size: 15px !important;
                        line-height: 20px !important;
                      }
                    }
                  }
                }
              }
            }
            .imagenes {
              width: 95% !important;
              min-height: 260px !important;
              position: static !important;
              .c-image {
                width: 100% !important;
                max-width: none !important;
                display: flex;
                svg {
                  min-height: 260px;
                }
              }
            }
          }
          &.par {
            .container {
              .imagenes {
                margin-left: auto;
              }
            }
          }
        }
      }
    }
  }
  section.servicios-intro {
    .container {
      gap: 20px;
      .title {
        gap: 10px;
        h1 {
          color: var(--2, #312783);
          font-family: "Roboto-600", sans-serif;
          font-size: 25px;
          line-height: normal;
        }
      }
      .contexto {
        flex-direction: column;
        .content-text {
          width: 100%;
          p {
            color: var(--7, #4d4d4d);
            font-family: "Roboto-400", sans-serif;
            font-size: 15px;
            line-height: 20px; /* 113.636% */
          }
        }
        .content-img {
          width: 100%;
        }
      }
      .call {
        padding: 40px 0;
        border-top: 1px solid #312783;
        span {
          color: var(--2, #312783);
          font-family: "Roboto-400", sans-serif;
          font-size: 20px;
          line-height: 25px;
        }
      }
    }
  }
}

@media (max-width: 570px) {
  section.servicios {
    & > .container {
      .servicios-ofrecidos {
        #servicio-1,
        #servicio-2,
        #servicio-3,
        #servicio-4,
        #servicio-5 {
        }
        .container-servicio {
          .container {
            flex-direction: column;
            gap: 20px;
            .descripcion {
              width: 100%;
              order: 1;

              /* padding: 0px;
              padding-top: 51px; */
              .title-service {
              }
              .caracteristicas {
                & > ul {
                  display: flex;
                  flex-direction: column;
                  gap: 8px;
                  & > li {
                    & > ul {
                      & > li {
                      }
                    }
                  }
                }
              }
            }
            .imagenes {
              width: 100%;
              align-items: center;
              order: 2;

              flex-direction: column;
              justify-content: unset;
              .c-image {
                max-width: 350px;
              }
            }
          }
        }
        .container-servicio.par {
          .descripcion {
            order: 1;
            .title-service {
              h2 {
                font-size: 20px;
                font-style: normal;
                strong {
                }
              }
            }
            .caracteristicas {
              & > ul {
                & > li {
                  font-size: 15px;
                  line-height: 20px;
                }
              }
            }
          }
          .imagenes {
            order: 2;
          }
        }
        .container-servicio.impar {
          .descripcion {
            order: 1;
            .title-service {
              &::before {
                /* content: ""; */
                display: inline-block;
                width: 5px;
                background: linear-gradient(
                  0deg,
                  #312783 13.32%,
                  #2f2985 56.53%,
                  #005fb7 99.74%
                );
              }
              h2 {
                font-size: 20px;
                font-style: normal;
                strong {
                  font-size: 20px;
                  font-style: normal;
                }
              }
            }
            .caracteristicas {
              & > ul {
                & > li {
                  font-size: 15px;
                  line-height: 20px;
                }
              }
            }
          }
          .imagenes {
            order: 2;
          }
        }
      }
    }
  }
}

@media (min-width: 1800px) {
  section.servicios {
    .container {
      .descripcion {
        .caracteristicas {
          ul {
            li {
              ul {
                li {
                  font-size: 18px;
                  line-height: 22px;
                }
              }
            }
          }
        }
      }
      .servicios-ofrecidos {
        .container-servicio.impar {
          .descripcion {
            .caracteristicas {
              ul {
                li {
                  font-size: 22px;
                }
              }
            }
          }
        }
        .container-servicio.par {
          .descripcion {
            .caracteristicas {
              ul {
                li {
                  font-size: 22px;
                }
              }
            }
          }
        }
      }
    }
  }
}
