.modalidades-hero-photo {
  background-color: var(--blue);
  background-image: url("assets/riders-modalidades-cabecera-integrada-2x.jpg");
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

.modalidades-page .tarifas-hero-copy p {
  max-width: 430px;
}

.modalidades-list {
  padding-bottom: 112px;
}

.modalidad-row {
  display: grid;
  grid-template-columns: 44px clamp(260px, 24vw, 320px) minmax(0, 1fr);
  align-items: start;
  column-gap: 28px;
  padding: 52px 0 56px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 112px;
}

.modalidad-row:last-child {
  border-bottom: 1px solid var(--line);
}

.modalidad-row h2 {
  grid-column: 2;
  font-size: clamp(34px, 3.3vw, 46px);
  line-height: .98;
  letter-spacing: -.015em;
}

.modalidad-copy {
  max-width: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.modalidad-copy p + p {
  margin-top: 17px;
}

.modalidad-inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.modalidad-note {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .modalidad-row {
    grid-template-columns: 36px clamp(230px, 25vw, 280px) minmax(0, 1fr);
    gap: 20px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .modalidad-row {
    grid-template-columns: 28px 205px minmax(0, 1fr);
    column-gap: 16px;
  }

  .modalidad-row h2 {
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  .modalidades-hero-photo {
    background-image:
      linear-gradient(90deg, var(--blue) 0%, var(--blue) 39%, rgba(11, 99, 206, .95) 48%, rgba(11, 99, 206, .72) 61%, rgba(11, 99, 206, .36) 75%, rgba(11, 99, 206, 0) 90%),
      url("assets/riders-modalidades-patines-circulo.jpeg");
    background-position: center, right center;
    background-size: 100% 100%, auto 106%;
  }

  .modalidades-page .tarifas-hero-copy p {
    max-width: 215px;
  }

  .modalidades-list {
    padding-bottom: 72px;
  }

  .modalidad-row {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 22px;
    padding: 36px 0 40px;
    scroll-margin-top: 92px;
  }

  .modalidad-row h2 {
    grid-column: 2;
    grid-row: 1;
    font-size: 35px;
  }

  .modalidad-copy {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    font-size: 12px;
    line-height: 1.85;
  }

  .modalidad-copy p + p {
    margin-top: 15px;
  }

  .modalidad-note {
    font-size: 11px;
  }
}

/* Keep the desktop artwork when browser zoom narrows a fine-pointer viewport. */
@media (max-width: 760px) and (hover: hover) and (pointer: fine) {
  .modalidades-hero-photo {
    background-image: url("assets/riders-modalidades-cabecera-integrada-2x.jpg");
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}
