/* Ajuste de la sección Servicios para pantallas de escritorio al 100 %. */
html {
  scroll-padding-top: 104px;
}

#servicios {
  scroll-margin-top: 104px;
}

@media (min-width: 1101px) {
  .services-section {
    padding-top: clamp(34px, 4vh, 48px) !important;
    padding-bottom: clamp(46px, 5vh, 64px) !important;
  }

  .services-section .section-heading {
    align-items: end;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: clamp(28px, 5vw, 76px);
    margin-bottom: clamp(24px, 3vh, 34px);
  }

  .services-section .section-heading h2 {
    margin-top: 9px;
    font-size: clamp(40px, 4.15vw, 68px);
    line-height: 0.96;
  }

  .services-section .section-heading > p {
    max-width: 500px;
    margin: 0 0 4px;
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.55;
  }

  .service-tabs {
    min-height: 64px;
    margin-bottom: 18px;
    border-radius: 15px;
  }

  .service-tabs button {
    min-height: 64px;
    padding: 12px 16px;
    font-size: 13px;
  }

  .service-panel {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    min-height: 430px !important;
    height: min(48vh, 470px);
    overflow: hidden;
    border-radius: 24px;
  }

  .service-panel-copy {
    justify-content: center;
    padding: clamp(34px, 4.4vw, 62px) !important;
  }

  .service-title-row {
    margin-bottom: 15px;
  }

  .service-panel h3 {
    max-width: 720px;
    margin-bottom: 14px;
    font-size: clamp(34px, 3.1vw, 51px);
    line-height: 1.02;
  }

  .service-panel-copy > p {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.55;
  }

  .include-list {
    gap: 8px;
    margin-bottom: 22px;
  }

  .include-list span {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .service-panel .text-link {
    font-size: 13px;
  }

  .service-panel-visual {
    min-height: 430px !important;
  }

  .service-symbol {
    width: clamp(148px, 13vw, 210px);
    height: clamp(148px, 13vw, 210px);
  }

  .ideal-card {
    right: clamp(26px, 3vw, 48px);
    bottom: clamp(24px, 3vh, 38px);
    left: clamp(26px, 3vw, 48px);
    padding: 18px 22px;
  }

  .ideal-card p {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.45;
  }

  .panel-number {
    top: 30px;
    font-size: clamp(54px, 5vw, 78px);
  }
}

@media (min-width: 1101px) and (max-height: 800px) {
  html {
    scroll-padding-top: 88px;
  }

  #servicios {
    scroll-margin-top: 88px;
  }

  .services-section {
    padding-top: 26px !important;
    padding-bottom: 40px !important;
  }

  .services-section .section-heading {
    margin-bottom: 20px;
  }

  .services-section .section-heading h2 {
    font-size: clamp(38px, 3.7vw, 56px);
  }

  .service-tabs,
  .service-tabs button {
    min-height: 56px;
  }

  .service-tabs {
    margin-bottom: 14px;
  }

  .service-panel {
    min-height: 390px !important;
    height: 410px;
  }

  .service-panel-copy {
    padding-block: 28px !important;
  }

  .service-panel-visual {
    min-height: 390px !important;
  }
}

@media (max-width: 1100px) {
  html {
    scroll-padding-top: 82px;
  }

  #servicios {
    scroll-margin-top: 82px;
  }

  .services-section {
    padding-top: 54px !important;
  }

  .services-section .section-heading {
    margin-bottom: 28px;
  }

  .service-tabs {
    display: flex;
    min-height: 58px;
    margin-bottom: 18px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .service-tabs::-webkit-scrollbar {
    display: none;
  }

  .service-tabs button {
    flex: 0 0 auto;
    min-width: 150px;
    min-height: 58px;
    scroll-snap-align: start;
  }

  .service-panel {
    height: auto !important;
  }
}

@media (max-width: 700px) {
  .services-section {
    padding-top: 42px !important;
  }

  .services-section .section-heading h2 {
    font-size: clamp(38px, 12vw, 54px);
    line-height: 0.98;
  }

  .services-section .section-heading > p {
    font-size: 15px;
    line-height: 1.6;
  }

  .service-tabs {
    margin-inline: -20px;
    padding-inline: 20px;
    border-radius: 0;
  }

  .service-tabs button {
    min-width: 138px;
    padding-inline: 14px;
  }

  .service-panel-copy {
    padding: 30px 22px !important;
  }

  .service-panel h3 {
    font-size: clamp(31px, 9.5vw, 42px);
  }
}
