.tarifas-page { background: var(--paper); }
.tarifas-page main { overflow: hidden; }
.tarifas-page .main-nav a[aria-current="page"] { color: var(--blue); }

.tarifas-hero {
  position: relative;
  height: clamp(280px, 23.5vw, 330px);
  margin-top: 32px;
  margin-bottom: 96px;
  overflow: hidden;
  background: var(--blue);
  isolation: isolate;
}
.tarifas-hero-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  background-color: var(--blue);
  background-image: url("assets/riders-tarifas-cabecera-integrada-2x.jpg");
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}
.tarifas-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(54%, 610px);
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 42px 0 32px clamp(30px, 3.4vw, 48px);
  color: var(--white);
}
.tarifas-hero h1 {
  font-size: var(--type-hero);
  line-height: .94;
  letter-spacing: -.025em;
}
.tarifas-hero-copy p {
  max-width: 410px;
  margin-top: 33px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.8;
}

.tarifas-list { padding-bottom: 112px; }
.tarifa-row {
  display: grid;
  grid-template-columns: 44px minmax(280px, 1fr) 250px minmax(250px, .92fr);
  align-items: center;
  column-gap: 28px;
  min-height: 178px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.tarifa-row:last-child { border-bottom: 1px solid var(--line); }
.tarifa-row h2 {
  grid-column: 2;
  font-size: clamp(34px, 3.3vw, 46px);
  line-height: .98;
  letter-spacing: -.015em;
}
.tarifa-price {
  display: flex;
  position: relative;
  align-items: baseline;
  gap: 7px;
  color: var(--blue);
  white-space: nowrap;
}
.tarifa-price strong {
  font-family: var(--title);
  font-size: clamp(54px, 5vw, 70px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.025em;
}
.tarifa-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.tarifa-from {
  position: absolute;
  right: calc(100% + 9px);
  top: 50%;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  transform: translateY(-50%);
}
.tarifa-details {
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}
.tarifa-details p + p { margin-top: 8px; }
.tarifa-details p:first-child { color: var(--ink); font-weight: 600; }
.tarifa-row:nth-child(3) .tarifa-details,
.tarifa-row:nth-child(5) .tarifa-details { min-height: 1px; }

.tarifas-contact { background: var(--blue); color: var(--white); }
.tarifas-contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 70px;
  padding-top: 74px;
  padding-bottom: 76px;
}
.tarifas-contact h2 {
  max-width: none;
  font-size: var(--type-section);
  line-height: .92;
}
.tarifas-contact p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
}
.tarifas-contact .button {
  min-width: 230px;
  min-height: 58px;
}

@media (max-width: 1100px) {
  .tarifas-hero { height: clamp(260px, 24vw, 300px); margin-bottom: 82px; }
  .tarifas-hero-copy { width: 52%; }
  .tarifa-row { grid-template-columns: 36px minmax(230px, 1fr) 220px minmax(210px, .9fr); gap: 20px; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .tarifas-hero { height: 260px; }
  .tarifas-hero-copy { width: 50%; }
  .tarifas-hero-copy p { max-width: 310px; font-size: 14px; }
  .tarifa-row {
    grid-template-columns: 28px minmax(205px, 1fr) 180px minmax(180px, .9fr);
    column-gap: 16px;
  }
  .tarifa-row h2 { font-size: 34px; }
  .tarifa-price strong { font-size: 54px; }
  .tarifa-from { right: calc(100% + 6px); font-size: 9px; }
}

@media (max-width: 760px) {
  .tarifas-hero {
    width: calc(100% - 36px);
    height: clamp(190px, 54vw, 215px);
    margin-top: 18px;
    margin-bottom: 68px;
  }
  .tarifas-hero-photo {
    background-image:
      linear-gradient(90deg, var(--blue) 0%, var(--blue) 27%, rgba(11, 99, 206, .94) 35%, rgba(11, 99, 206, .68) 45%, rgba(11, 99, 206, .3) 56%, rgba(11, 99, 206, 0) 68%),
      url("assets/riders-tarifas-atardecer.jpeg");
    background-position: center, right center;
    background-size: 100% 100%, auto 110%;
  }
  .tarifas-hero-copy {
    width: 100%;
    justify-content: flex-start;
    padding: 28px 18px 18px;
  }
  .tarifas-hero h1 { line-height: .94; }
  .tarifas-hero-copy p { max-width: 190px; margin-top: 18px; font-size: 12px; line-height: 1.75; }
  .tarifas-hero-copy p span { display: block; white-space: nowrap; }

  .tarifas-list { padding-bottom: 72px; }
  .tarifa-row {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 0;
    column-gap: 12px;
    row-gap: 21px;
    padding: 32px 0 35px;
  }
  .tarifa-row h2 { grid-column: 2; grid-row: 1; font-size: 35px; }
  .tarifa-price { grid-column: 2; grid-row: 2; }
  .tarifa-price strong { font-size: 56px; }
  .tarifa-unit { font-size: 12px; }
  .tarifa-from { right: calc(100% + 7px); font-size: 9px; }
  .tarifa-details { grid-column: 2; grid-row: 3; max-width: 300px; font-size: 14px; }
  .tarifa-row:nth-child(4) .tarifa-details { max-width: none; }
  .tarifa-mobile-keep { white-space: nowrap; }

  .tarifas-contact-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 60px;
    padding-bottom: 62px;
  }
  .tarifas-contact h2 { font-size: var(--type-section); }
  .tarifas-contact p { margin-top: 17px; font-size: 12px; }
  .tarifas-contact .button { width: 100%; min-width: 0; min-height: 55px; }
}

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