@font-face {
  font-family: "Spline Sans Hero";
  src: url("../fonts/spline-sans-variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

.page-hero.services-cover {
  --cover-title-size: clamp(4.5rem, 10vw, 10rem);
  --cover-row-height: calc(var(--cover-title-size) * 1.45);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  height: calc(100svh + 50px);
  min-height: 0;
  padding: 0 1.25rem;
  background: var(--color-pale-green) url("/assets/images/services-dunes-pastel.webp") center bottom / cover no-repeat;
  color: var(--color-dark-green);
  text-align: center;
}

.services-cover h1 {
  transform: translateY(-25px);
  margin: 0;
  max-width: 100%;
  font-size: var(--cover-title-size);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.services-cover .hero-background-video { object-position: center bottom; }

@media (prefers-reduced-motion: reduce) {
  .services-cover .hero-background-video { display: none; }
}

.services-cover-label {
  color: #6d8480;
  position: absolute;
  bottom: calc(50% + var(--cover-row-height) / 2 + .5rem + 25px);
  width: calc(100% - 2.5rem);
  max-width: none;
  margin: 0;
  font-family: "Spline Sans Hero", "Spline Sans", sans-serif;
  font-size: clamp(1rem, 1.55vw, 1.5rem);
  font-weight: 350;
  line-height: 1.25;
  letter-spacing: .01em;
}

.services-cover-action {
  position: absolute;
  top: calc(50% + var(--cover-row-height) / 2 + clamp(1.25rem, 2.5svh, 2rem));
}

#explorar-servicios { scroll-margin-top: 6rem; }

.page-services #explorar-servicios .home-services-heading {
  border-top: 1px solid var(--color-line);
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
}

@media (max-width: 720px) {
  .page-hero.services-cover {
    --cover-title-size: clamp(2.75rem, 16vw, 5.75rem);
    --cover-row-height: calc(var(--cover-title-size) * 1.5);
  }
  .services-cover-label {
    bottom: calc(50% + var(--cover-row-height) / 2 + 1.25rem + 25px);
    font-family: "Spline Sans", sans-serif;
    font-size: clamp(.8125rem, 3.5vw, 1rem);
    font-weight: 400;
    letter-spacing: -.02em;
  }
  .services-cover-action .button {
    min-height: 40px;
    padding: .125rem .2rem .125rem 1rem;
    font-size: .8125rem;
  }
  .services-cover-action .button::after {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
}

