.rf-services-page {
  color: #173b55;
  line-height: 1.7;
}

.rf-services-page *,
.rf-services-page *::before,
.rf-services-page *::after {
  box-sizing: border-box;
}

/* Encabezado principal */

.rf-services-hero {
  position: relative;
  padding: 100px 0;
  color: #fff;
  background: linear-gradient(
    125deg,
    #073b67 0%,
    #086aa7 75%,
    #0b82c2 100%
  );
  overflow: hidden;
}

.rf-services-hero .rf-container {
  position: relative;
  z-index: 1;
}

.rf-services-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: #1689be;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.rf-services-hero .rf-services-eyebrow {
  color: #b8eaff;
}

.rf-services-hero h1 {
  max-width: 850px;
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(35px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
}

.rf-services-hero p {
  max-width: 710px;
  margin: 0;
  color: #e0f1fb;
  font-size: 18px;
}

.rf-services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Botones */

.rf-services-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 25px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}

.rf-services-btn-white {
  background: #fff;
  color: #073b67;
}

.rf-services-btn-white:hover {
  background: #e1f4ff;
}

.rf-services-btn-outline {
  border-color: rgba(255, 255, 255, .65);
  color: #fff;
}

.rf-services-btn-outline:hover {
  background: rgba(255, 255, 255, .12);
}

/* Introducción */

.rf-services-intro {
  padding: 85px 0;
  background: #fff;
}

.rf-services-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.rf-services-page h2 {
  margin: 0;
  color: #073b67;
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: 1.25;
}

.rf-services-intro p {
  margin: 0;
  font-size: 17px;
}

/* Sección de servicios */

.rf-services-section {
  padding: 90px 0;
  background: #eef8fd;
}

.rf-services-heading {
  max-width: 670px;
  margin: 0 auto 48px;
  text-align: center;
}

.rf-services-heading h2 {
  margin-bottom: 16px;
}

.rf-services-heading p {
  margin: 0;
  color: #547187;
}

.rf-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.rf-services-card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border: 1px solid #daebf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(7, 59, 103, .05);
}

.rf-services-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

.rf-services-number {
  color: #24a9df;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.rf-services-category {
  padding: 6px 12px;
  border-radius: 30px;
  background: #eef8fd;
  color: #086aa7;
  font-size: 12px;
  font-weight: 700;
}

.rf-services-card h3 {
  margin: 0 0 18px;
  color: #073b67;
  font-size: 25px;
  line-height: 1.3;
}

.rf-services-card p {
  margin: 0 0 16px;
  color: #4a6578;
}

.rf-services-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 22px;
  color: #086aa7;
  font-weight: 700;
  text-decoration: none;
}

.rf-services-link:hover {
  color: #073b67;
  text-decoration: underline;
}

.rf-services-link span {
  font-size: 20px;
}

/* Ventajas competitivas */

.rf-services-benefits {
  padding: 90px 0;
  background: #fff;
}

.rf-services-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.rf-services-benefit {
  padding: 28px 0;
  border-top: 3px solid #24a9df;
}

.rf-services-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #eef8fd;
  color: #086aa7;
  font-size: 14px;
  font-weight: 800;
}

.rf-services-benefit h3 {
  margin: 0 0 14px;
  color: #073b67;
  font-size: 21px;
  line-height: 1.3;
}

.rf-services-benefit p {
  margin: 0;
  color: #4a6578;
}

/* Llamada a la acción */

.rf-services-cta {
  padding: 75px 0;
  background: #073b67;
  color: #fff;
}

.rf-services-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.rf-services-cta-copy {
  max-width: 600px;
}

.rf-services-cta .rf-services-eyebrow {
  color: #8ddcff;
}

.rf-services-cta h2 {
  margin-bottom: 16px;
  color: #fff;
}

.rf-services-cta p {
  margin: 0;
  color: #d2e9f7;
}

.rf-services-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Accesibilidad */

.rf-services-page a:focus-visible {
  outline: 3px solid #24a9df;
  outline-offset: 4px;
}

#rf-service-list {
  scroll-margin-top: 90px;
}

/* Tabletas */

@media (max-width: 900px) {
  .rf-services-intro-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .rf-services-benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rf-services-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dispositivos móviles */

@media (max-width: 640px) {
  .rf-services-hero {
    padding: 70px 0;
  }

  .rf-services-hero p {
    font-size: 16px;
  }

  .rf-services-intro,
  .rf-services-section,
  .rf-services-benefits {
    padding: 55px 0;
  }

  .rf-services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rf-services-card {
    padding: 28px;
  }

  .rf-services-card h3 {
    font-size: 22px;
  }

  .rf-services-hero-actions,
  .rf-services-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .rf-services-btn {
    width: 100%;
  }

  .rf-services-cta {
    padding: 55px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rf-services-btn {
    transition: none;
  }
}


/* Fotografía del encabezado */

.rf-services-hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(7, 59, 103, .97) 0%,
      rgba(7, 59, 103, .88) 42%,
      rgba(7, 59, 103, .25) 100%
    ),
    url("/_media/35d4a67f-67b9-46c0-a621-f360bb0472fb.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mayor contraste en dispositivos móviles */

@media (max-width: 640px) {
  .rf-services-hero {
    background-image:
      linear-gradient(
        90deg,
        rgba(7, 59, 103, .94),
        rgba(7, 59, 103, .78)
      ),
      url("/_media/35d4a67f-67b9-46c0-a621-f360bb0472fb.webp");

    background-position: center;
  }
}