/* Efectos de scroll y motion para los bloques del landing que siguen al hero,
   en la misma línea de las fichas de carrera. Todo depende de la clase
   .omi-fx (la pone omi-landing.js), así que sin JS el contenido se ve normal. */
:root {
  --omi-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --omi-navy: #042354;
  --omi-red: #e0284d;
}

/* ---------- Barra de progreso de lectura ---------- */
.omi-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1100;
  height: 4px;
  pointer-events: none;
}

.omi-progress span {
  display: block;
  height: 100%;
  background: var(--omi-red);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Títulos: las palabras suben una a una ---------- */
.omi-fx .omi-w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  vertical-align: top;
}

.omi-fx .omi-w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1s var(--omi-ease);
  transition-delay: calc(var(--w, 0) * 0.045s);
}

.omi-fx .is-in .omi-w > span,
.omi-fx .is-in.omi-w > span {
  transform: none;
}

/* ---------- ¿Por qué la PUCP? ---------- */
.omi-fx .section_performance {
  position: relative;
  overflow: hidden;
}

/* Halo que se desplaza con el scroll */
.omi-fx .section_performance::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 62vw;
  height: 62vw;
  max-width: 860px;
  max-height: 860px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 65%);
  transform: translate3d(0, calc(var(--omi-page, 0) * 420px), 0);
  pointer-events: none;
}

.omi-fx .section_performance > * {
  position: relative;
}

.omi-fx .performance_star-wrap img {
  animation: omi-float 6s ease-in-out infinite;
}

@keyframes omi-float {
  50% {
    transform: translateY(-10px) rotate(-4deg);
  }
}

/* «Sé grande.» se subraya al entrar */
.omi-fx .section_performance h2 strong {
  background: linear-gradient(#ffd400, #ffd400) left 92% / 0% 0.14em no-repeat;
  transition: background-size 1.1s var(--omi-ease) 0.9s;
}

.omi-fx .section_performance h2.is-in strong {
  background-size: 100% 0.14em;
}

.omi-fx .performance_card {
  transition: box-shadow 0.4s ease;
}

.omi-fx .performance_card:hover {
  box-shadow: 0 18px 40px rgba(4, 35, 84, 0.22);
}

.omi-fx .performance_card .cifra-title {
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  transition-delay: calc(0.15s + var(--i, 0) * 0.1s);
}

.omi-fx .performance_card.is-in .cifra-title {
  transform: none;
  opacity: 1;
}

.omi-fx .cifra-title-xl {
  font-variant-numeric: tabular-nums;
}

.omi-fx .performance_card .cifra-subtitle,
.omi-fx .performance_card .div-block-8 {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.9s var(--omi-ease);
  transition-delay: calc(0.4s + var(--i, 0) * 0.1s);
}

.omi-fx .performance_card.is-in .cifra-subtitle,
.omi-fx .performance_card.is-in .div-block-8 {
  opacity: 1;
  transform: none;
}

/* ---------- Cinta ---------- */
.omi-ticker {
  overflow: hidden;
  padding: 18px 0;
  background: var(--omi-navy);
  color: #fff;
  font-family: Montserrat, sans-serif;
}

.omi-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: omi-ticker 50s linear infinite;
  translate: calc(var(--omi-page, 0) * -260px) 0;
}

.omi-ticker__track span {
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.omi-ticker__track i {
  margin: 0 clamp(18px, 3vw, 40px);
  font-style: normal;
  font-size: 18px;
  color: #ffd400;
  animation: omi-spin 8s linear infinite;
}

@keyframes omi-ticker {
  to {
    transform: translateX(-25%);
  }
}

@keyframes omi-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 53 carreras ---------- */
.omi-fx .finance_card {
  transition: box-shadow 0.45s ease;
}

.omi-fx .finance_card:hover {
  box-shadow: 0 22px 44px rgba(4, 35, 84, 0.2);
}

.omi-fx .finance_card .link-2 {
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  transition:
    opacity 0.5s ease calc(0.2s + var(--n, 0) * 0.05s),
    transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) calc(0.2s + var(--n, 0) * 0.05s),
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.omi-fx .finance_card.is-in .link-2 {
  opacity: 1;
  transform: none;
}

.omi-fx .finance_card.is-done .link-2 {
  transition:
    transform 0.35s var(--omi-ease),
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.omi-fx .finance_card .link-2:hover,
.omi-fx .finance_card .link-2:focus-visible {
  transform: translateY(-3px);
  background-color: #fff;
  border-color: #fff;
  color: var(--omi-navy);
}

.omi-fx .finance_card .link-2.dark:hover,
.omi-fx .finance_card .link-2.dark:focus-visible {
  background-color: var(--omi-navy);
  border-color: var(--omi-navy);
  color: #fff;
}

/* ---------- Modalidades ---------- */
.omi-fx .success_scroll-card-visual {
  overflow: hidden;
}

.omi-fx .success_card-image {
  transform: translate3d(0, calc(var(--omi-y, 0) * -7%), 0) scale(1.16);
  will-change: transform;
}

.omi-fx .success_scroll-card h3 {
  position: relative;
  padding-top: 18px;
}

.omi-fx .success_scroll-card h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--omi-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--omi-ease) 0.2s;
}

.omi-fx .success_scroll-card.is-in h3::before {
  transform: none;
}

.omi-fx .success_scroll-card li {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.6s ease, transform 0.8s var(--omi-ease);
  transition-delay: calc(0.25s + var(--n, 0) * 0.07s);
}

.omi-fx .success_scroll-card.is-in li {
  opacity: 1;
  transform: none;
}

/* ---------- Testimonios ---------- */
.omi-fx .testimonials_card {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease calc(var(--n, 0) * 0.1s),
    transform 1s var(--omi-ease) calc(var(--n, 0) * 0.1s),
    box-shadow 0.4s ease;
}

.omi-fx .is-in .testimonials_card {
  opacity: 1;
  transform: none;
}

.omi-fx .testimonials_card:hover {
  box-shadow: 0 20px 40px rgba(4, 35, 84, 0.18);
}

.omi-fx .testimonials_card::before {
  content: "“";
  position: absolute;
  top: -6px;
  right: 18px;
  font-family: Georgia, serif;
  font-size: 96px;
  line-height: 1;
  color: #ffc800;
  opacity: 0;
  transform: scale(0.4) rotate(-12deg);
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(0.45s + var(--n, 0) * 0.1s);
  pointer-events: none;
}

.omi-fx .is-in .testimonials_card::before {
  opacity: 0.55;
  transform: none;
}

/* ---------- Formulario ---------- */
.omi-fx .form_component {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease 0.15s, transform 1.1s var(--omi-ease) 0.15s;
}

.omi-fx .form_component.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .omi-ticker__track,
  .omi-ticker__track i {
    animation: none;
    translate: none;
  }
}
