.services {
  position: relative;
  isolation: isolate;
  padding: clamp(5.5rem, 9vw, 8rem) var(--gutter) clamp(5rem, 8vw, 8rem);
  background: #fff;
  color: var(--black);
}

.services-dots-layer {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.services-dots {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  max-height: 100%;
  pointer-events: none;
}

.services-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.services-heading {
  position: relative;
  isolation: isolate;
  width: fit-content;
  max-width: 100%;
  text-align: center;
  margin: 0 auto clamp(4rem, 7vw, 6.5rem);
}

.services-heading h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.7vw, 4rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(3rem, 5vw, 5rem);
  padding: clamp(1.75rem, 3.8vw, 3.5rem);
  min-height: 600px;
  background: var(--paper);
  border-radius: 32px;
  transition: box-shadow .35s ease;
}

.service-row + .service-row {
  margin-top: 2rem;
}

.service-copy { min-width: 0; }
.service-photo-frame { display: block; }
.service-copy h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.service-copy h3 {
  margin: 0;
  font-size: clamp(2.1rem, 3.4vw, 3.15rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.service-description {
  color: var(--slate);
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 1.4rem 0 1.7rem;
  text-wrap: pretty;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .8rem;
}

.service-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.55;
}

.service-list li::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin-top: -.2rem;
  background: url("assets/services/punto-verde.svg") center / contain no-repeat;
}

.service-list strong { font-weight: 700; }

.service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 2rem;
  padding: .8rem 2rem;
  border-radius: 100px;
  border: 1px solid var(--lime);
  background: var(--lime);
  color: var(--black);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.service-cta:hover {
  background: #95e500;
  border-color: #95e500;
  color: var(--black);
}

.service-cta:focus-visible { outline-color: var(--black); }

.service-visual {
  position: relative;
  min-width: 0;
  isolation: isolate;
  width: 100%;
  max-width: 420px;
  justify-self: end;
}

.service-photo-frame {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 24px;
}

.service-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  transition: transform .65s cubic-bezier(.2, .65, .3, 1);
}

.service-visual--foto-video .service-photo { object-position: 70% center; }
.service-visual--btl .service-photo { object-position: 53% center; }
.service-visual--print .service-photo { object-position: 60% center; }

.service-illustration {
  position: absolute;
  z-index: 1;
  top: -28%;
  left: -14%;
  width: 46%;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 14px 18px #0d0f1112);
  transform-origin: 50% 65%;
}

.service-visual--btl .service-illustration { width: 32%; top: -20%; left: -16%; }
.service-visual--print .service-illustration { width: 34%; top: -22%; }

.service-row:focus-within { box-shadow: 0 14px 38px #35404912, 0 3px 10px #35404908; }
.service-row:focus-within .service-photo { transform: scale(1.035); }

@media (min-width: 961px) {
  .service-row--reverse { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .service-row--reverse .service-copy { grid-column: 2; grid-row: 1; }
  .service-row--reverse .service-visual { grid-column: 1; grid-row: 1; justify-self: start; }
  .service-row--reverse .service-illustration { left: auto; right: -14%; }
}

@media (hover: hover) and (pointer: fine) {
  .service-row:hover { box-shadow: 0 14px 38px #35404912, 0 3px 10px #35404908; }
  .service-row:hover .service-photo { transform: scale(1.035); }
  .service-illustration {
    animation: service-float 4.5s ease-in-out infinite alternate;
    animation-play-state: paused;
  }
  .service-row:hover .service-illustration,
  .service-row:focus-within .service-illustration { animation-play-state: running; }
}

@keyframes service-float {
  from { transform: translateY(0) rotate(-.6deg); }
  to { transform: translateY(-3px) rotate(.6deg); }
}

@media (max-width: 960px) {
  .services-inner { max-width: 760px; }
  .service-row { grid-template-columns: minmax(0, 1fr); gap: 3rem; min-height: 0; }
  .service-copy h3 { font-size: clamp(2.2rem, 5.2vw, 3rem); }
  .service-visual { width: calc(100% - 1rem); margin-left: auto; }
  .service-illustration { width: 40%; left: -9%; top: -22%; }
  .service-visual--btl .service-illustration { width: 30%; left: -11%; top: -20%; }
  .service-visual--print .service-illustration { width: 28%; left: -9%; top: -20%; }
}

@media (max-width: 560px) {
  .services { padding-top: 5rem; padding-bottom: 4.5rem; }
  .services-heading { margin-bottom: 3.5rem; }
  .services-heading h2 { font-size: clamp(2.3rem, 9vw, 2.7rem); }
  .service-copy h3 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .service-description { font-size: 1.0625rem; margin: 1.2rem 0 1.5rem; }
  .service-list { gap: .9rem; }
  .service-list li { grid-template-columns: 30px minmax(0, 1fr); gap: .75rem; }
  .service-list li::before { width: 30px; height: 30px; margin-top: -.15rem; }
  .service-row { gap: 2rem; padding: 1.5rem 1.25rem; border-radius: 26px; }
  .service-row + .service-row { margin-top: 1.5rem; }
  .service-photo-frame { border-radius: 20px; }
  .service-cta { margin-top: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .service-row:hover .service-photo,
  .service-row:focus-within .service-photo { transform: none; }
  .service-illustration { animation: none; }
}
