
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(118deg, #2f71e5 0%, #2460ce 46%, #103981 100%);
  padding: clamp(4.2rem, 8.4vw, 6.3rem) clamp(1.5rem, 4.8vw, 3.6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(16, 57, 129, 0.55),
    rgba(21, 25, 44, 0.28)
  );
  clip-path: polygon(79% 0, 100% 0, 100% 100%, 64% 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    62.4rem 36rem at 12% 0%,
    rgba(255, 255, 255, 0.14),
    transparent 62%
  );
}

.hero-inner {
  width: 100%;
  max-width: 96.7rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 5.4rem);
}

.badge {
  display: inline-block;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.07);
}

.title {
  margin-top: 1.68rem;
  font-size: clamp(2.93rem, 5.74vw, 4.43rem);
  font-weight: 400;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.title strong {
  font-weight: 700;
}

.sub {
  margin-top: 1.8rem;
  max-width: 44ch;
  font-size: 1.33rem;
  line-height: 1.6;
  color: #cfd6e3;
}

.btn {
  margin-top: 2.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #d74028;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1.15rem 1.7rem;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(21, 25, 44, 0.22);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  background: #d82836;
  transform: translateY(-2px);
  color: #f1f1f1;
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
}

.btn:focus {
  color: #f1f1f1;
}

.card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.card-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 700ms ease;
}

.card:hover .card-shine::after {
  transform: translateX(100%);
}

.card {
  position: relative;
  transform: rotate(-2deg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 34px;
  padding: clamp(2.3rem, 3.6vw, 3.1rem) clamp(1.7rem, 3.1vw, 2.5rem);
  box-shadow: 0 26px 60px rgba(21, 25, 44, 0.28);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.num {
  font-size: clamp(4rem, 8.75vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.37rem, 2vw, 1.62rem);
  font-weight: 500;
  line-height: 1.3;
}

.list {
  margin-top: 2.15rem;
  display: grid;
  gap: 0.95rem;
  list-style: none;
  padding: 0;
}

.item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  color: #263238;
  border-radius: 11px;
  padding: 0.7rem 1.2rem;
  font-size: 1.15rem;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(21, 25, 44, 0.16);
}

.item b {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #2f71e5;
}

.item:nth-child(2) {
  margin-left: 1.4rem;
}

.item:nth-child(3) {
  margin-left: 2.65rem;
}

.item:nth-child(4) {
  margin-left: 1.4rem;
}

.fab {
  position: absolute;
  top: -1.1rem;
  right: 0.6rem;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d74028;
  box-shadow: 0 10px 26px rgba(21, 25, 44, 0.3);
}

.fab svg {
  width: 1.85rem;
  height: 1.85rem;
  transition: transform 0.5s ease;
}

.fab:hover svg {
  transform: rotate(180deg);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .card {
    max-width: 44.5rem;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    --inclinacion: 0deg;
  }

  .card {
    transform: none;
  }
}

.rt-intro {
  background: #fff;
  border-top: 4px solid #2f71e5;
  padding: 3rem 1.5rem;
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
}

.rt-wrap {
  width: 100%;
  max-width: 96.7rem;
  margin: 0 auto;
}

.rt-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 2.4rem;
  align-items: center;
}

.rt-intro-title {
  font-size: 1.87rem;
  font-weight: 700;
  line-height: 1.25;
  color: #151a2e;
}

.rt-intro-title span {
  color: #d74028;
}

.rt-intro-text {
  font-size: 1.19rem;
  line-height: 1.65;
  color: #5b6675;
}

.rt-routes {
  background: #f5f7fa;
  padding: 4.2rem max(1.5rem, calc((100vw - 96.7rem) / 2)) 4.8rem;
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
}

.rt-eyebrow {
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d74028;
}

.rt-routes-title {
  margin-top: 0.6rem;
  font-size: 2.81rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #151a2e;
}

.rt-grid {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
}

.rt-card {
  position: relative;
  overflow: hidden;
  width: calc((100% - 3.6rem) / 3);
  max-width: 30.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 4px 16px rgba(21, 26, 46, 0.08);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.rt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(21, 26, 46, 0.14);
}

.rt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 1.1s ease;
  pointer-events: none;
}

.rt-card:hover::after {
  transform: translateX(100%);
}

  .rt-card-top {
    position: relative;
    overflow: hidden;
    background: var(--c) center / cover no-repeat;
    height: 130px;
    padding: 1.25rem 1.5rem;
    color: #fff;
    font-weight:600;
  }

  .rt-card:nth-child(1) .rt-card-top {
    background-image: url("https://www.credicorpcapital.com/Peru/Imgenes%20Rebranding/EdFinanciera/Curso%201.svg");
  }

  .rt-card:nth-child(2) .rt-card-top {
    background-image: url("https://www.credicorpcapital.com/Peru/Imgenes%20Rebranding/EdFinanciera/Curso%202.svg");
  }

  .rt-card:nth-child(3) .rt-card-top {
    background-image: url("https://www.credicorpcapital.com/Peru/Imgenes%20Rebranding/EdFinanciera/Curso%203.svg");
  }

  .rt-card:nth-child(4) .rt-card-top {
    background-image: url("https://www.credicorpcapital.com/Peru/Imgenes%20Rebranding/EdFinanciera/Curso%204.svg");
  }

  .rt-card:nth-child(5) .rt-card-top {
    background-image: url("https://www.credicorpcapital.com/Peru/Imgenes%20Rebranding/EdFinanciera/Curso%205.svg");
  }


.rt-card-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  clip-path: polygon(87% 0, 100% 0, 100% 100%, 72% 100%);
}

.rt-card-num {
  position: relative;
  font-size: 4.37rem;
  font-weight: 300;
  line-height: 1;
}

.rt-card-tag {
  position: absolute;
  right: 1.8rem;
  bottom: 1.5rem;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.rt-card-body {
  padding: 1.8rem;
}

.rt-card-body h4 {
  font-size: 1.37rem;
  font-weight: 700;
  line-height: 1.3;
  color: #151a2e;
}

.rt-card-body p {
  margin-top: 0.7rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: #5b6675;
}

.rt-chips {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.rt-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eef2f7;
  color: #5b6675;
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 7px;
}

.rt-chips svg {
  width: 14px;
  height: 14px;
  stroke: #2f71e5;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rt-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.rt-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #263238;
  color: #fff;
  text-decoration: none;
  font-size: 1.06rem;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.rt-actions a:hover {
  background: #151a2e;
}

.rt-actions svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .rt-intro-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .rt-card {
    width: calc((100% - 1.8rem) / 2);
  }
}

@media (max-width: 600px) {
  .rt-routes-title {
    font-size: 2.25rem;
  }

  .rt-card {
    width: 100%;
  }
}

.rt-steps,
.rt-faq,
.rt-cta,
.rt-footer {
  --rt-pad-x: clamp(1.8rem, 7.2vw, 9.6rem);
}

.rt-steps,
.rt-steps *,
.rt-faq,
.rt-faq *,
.rt-cta,
.rt-cta *,
.rt-footer,
.rt-footer * {
  box-sizing: border-box;
}

.rt-steps :where(h2, h3, p, ol, li),
.rt-faq :where(h2, h3, p, div, summary),
.rt-cta :where(h2, p),
.rt-footer :where(p) {
  margin: 0;
  padding: 0;
}

.rt-steps ol {
  list-style: none;
}

.rt-steps {
  position: relative;
  overflow: hidden;
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  background: linear-gradient(118deg, #c93d22 0%, #d74028 45%, #d74028 100%);
  color: #fff;
  padding: 4.2rem var(--rt-pad-x) 4.8rem;
}

.rt-steps::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 25, 44, 0.22),
    rgba(21, 25, 44, 0.08)
  );
  clip-path: polygon(76% 0, 100% 0, 100% 100%, 62% 100%);
}

.rt-steps-inner {
  position: relative;
  z-index: 1;
  max-width: 96.7rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(288px, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(2.4rem, 6vw, 4.8rem);
  align-items: center;
}

.rt-steps-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.rt-steps-title {
  margin-top: 0.85rem;
  font-size: clamp(1.68rem, 2.75vw, 2.12rem) !important;
  line-height: 1.35 !important;
  font-weight: 700;
  color: #fff !important;
}

.rt-steps-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.6vw, 2.7rem);
}

.rt-step-num {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #fff;
  color: #d74028;
  font-size: 1.19rem;
  font-weight: 700;
}

.rt-step-name {
  margin-top: 0.95rem;
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff !important;
}

.rt-step-text {
  margin-top: 0.55rem;
  font-size: 0.97rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.rt-faq {
  background: #fff;
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  padding: 4.2rem var(--rt-pad-x) 4.8rem;
}

.rt-faq-inner {
  max-width: 96.7rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(264px, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(2.4rem, 6vw, 5.4rem);
  align-items: start;
}

.rt-faq-eyebrow {
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d74028;
}

.rt-faq-title {
  margin-top: 0.7rem;
  font-size: clamp(2.12rem, 3.25vw, 2.62rem);
  line-height: 1.2;
  font-weight: 700;
  color: #151a2e;
}

.rt-faq-sub {
  margin-top: 1.1rem;
  font-size: 1.06rem;
  line-height: 1.6;
  color: #5b6675;
}

.rt-faq-item {
  border-bottom: 1px solid #e4e9ef;
}

.rt-faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 0.3rem;
  font-size: 1.19rem;
  font-weight: 600;
  color: #151a2e;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s ease;
}

.rt-faq-item summary h3 {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.45;
}

.rt-faq-item summary::-webkit-details-marker {
  display: none;
}

.rt-faq-item summary:hover {
  color: #d74028;
}

.rt-faq-caret {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  fill: #151a2e;
  transition:
    transform 0.3s ease,
    fill 0.3s ease;
}

.rt-faq-item[open] .rt-faq-caret {
  transform: rotate(90deg);
  fill: #d74028;
}

.rt-faq-answer {
  padding: 0 0.3rem 1.4rem 1.85rem;
  font-size: 1.06rem;
  line-height: 1.65;
  color: #5b6675;
  max-width: 62ch;
}

.rt-faq-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #2f71e5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.rt-faq-link:hover {
  color: #d74028;
}

.rt-faq-item[open] .rt-faq-answer {
  animation: rt-fade 0.4s ease both;
}

@keyframes rt-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@supports (interpolate-size: allow-keywords) {
  .rt-faq {
    interpolate-size: allow-keywords;
  }

  .rt-faq details::details-content {
    height: 0;
    overflow: hidden;
    transition:
      height 0.4s ease,
      content-visibility 0.4s ease allow-discrete;
  }

  .rt-faq details[open]::details-content {
    height: auto;
  }
}

.rt-cta {
  background: #eff2f6;
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  padding: 2.9rem var(--rt-pad-x);
}

.rt-cta-inner {
  max-width: 96.7rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.rt-cta-text {
  font-size: clamp(1.37rem, 2.25vw, 1.62rem);
  line-height: 1.4;
  font-weight: 700;
  color: #151a2e;
  max-width: 34ch;
}

.rt-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(110deg, #151a2e 0%, #263b67 50%, #151a2e 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1.12rem;
  font-weight: 600;
  padding: 1rem 1.45rem;
  border-radius: 10px;
  transition:
    background-position 0.4s ease,
    translate 0.3s ease,
    scale 0.2s ease,
    box-shadow 0.3s ease !important;
}

.rt-cta-btn:hover {
  background-position: 100% 50%;
  translate: 0 -3px;
  box-shadow: 0 12px 26px rgba(21, 26, 46, 0.24);
}

.rt-cta-btn:active {
  translate: 0 0;
  scale: 0.98;
}

.rt-cta-btn:focus-visible {
  outline: 3px solid rgba(215, 64, 40, 0.5);
  outline-offset: 2px;
  background-position: 100% 50%;
}

.rt-cta-btn svg {
  width: 0.95em;
  height: 0.95em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease !important;
}

.rt-cta-btn:hover svg {
  transform: translate(3px, -3px);
}

.rt-cta-btn:focus-visible svg {
  transform: translate(2px, -2px);
}

.rt-footer {
  background: #151a2e;
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  padding: 3.3rem var(--rt-pad-x) 5.4rem;
}

.rt-footer-note {
  font-size: 0.81rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

@supports (animation-timeline: view()) {
  .rt-anim {
    animation: rt-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 42%;
  }

  .rt-steps-col .rt-step:nth-child(2) {
    animation-range: entry 10% entry 52%;
  }

  .rt-steps-col .rt-step:nth-child(3) {
    animation-range: entry 20% entry 62%;
  }

  @keyframes rt-reveal {
    from {
      opacity: 0;
      transform: translateY(19px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-anim {
    animation: none !important;
  }

  .rt-faq-answer,
  .rt-faq-caret,
  .rt-cta-btn,
  .rt-cta-btn svg {
    transition: none;
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .rt-steps-inner {
    grid-template-columns: 1fr;
  }

  .rt-faq-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .rt-steps-col {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

@media (min-width: 1600px) {
  .badge {
    font-size: 1.05rem;
  }

  .title {
    font-size: clamp(4.11rem, 4.5vw, 5.14rem);
  }

  .sub {
    font-size: 1.48rem;
  }

  .btn {
    font-size: 1.39rem;
  }

  .lead {
    font-size: 1.8rem;
  }

  .item {
    font-size: 1.29rem;
  }

  .item b {
    font-size: 1.13rem;
  }

  .rt-intro-title {
    font-size: 2.25rem;
  }

  .rt-intro-text {
    font-size: 1.39rem;
  }

  .rt-eyebrow {
    font-size: 1.03rem;
  }

  .rt-routes-title {
    font-size: 3.21rem;
  }

  .rt-card-body h4 {
    font-size: 1.57rem;
  }

  .rt-card-body p {
    font-size: 1.29rem;
  }

  .rt-chips span {
    font-size: 1.03rem;
  }

  .rt-actions a {
    font-size: 1.22rem;
  }

  .rt-steps-eyebrow,
  .rt-faq-eyebrow {
    font-size: 1rem;
  }

  .rt-steps-title {
    font-size: clamp(2.19rem, 2.57vw, 2.57rem) !important;
  }

  .rt-step-num {
    font-size: 1.35rem;
  }

  .rt-step-name {
    font-size: 1.39rem;
  }

  .rt-step-text {
    font-size: 1.18rem;
  }

  .rt-faq-title {
    font-size: clamp(2.57rem, 3.21vw, 3.09rem);
  }

  .rt-faq-item summary {
    font-size: 1.35rem;
  }

  .rt-faq-answer {
    font-size: 1.26rem;
  }

  .rt-cta-text {
    font-size: clamp(1.67rem, 2.31vw, 1.99rem);
  }

  .rt-cta-btn {
    font-size: 1.29rem;
  }

  .rt-footer-note {
    font-size: 1rem;
  }
}
