/* Prueba local: movimiento inspirado en la referencia, con la identidad de LandingPAS. */
html { scroll-padding-top: 96px; }
.page-loader, #inicio .brand-sequence { display: none; }
body:has(.page-loader:not(.is-hidden)) { overflow: auto; }
.motion-stage { position: relative; background: #f6f5ef; }
.motion-ready #problema { position: relative; z-index: 1; }
.motion-word { display: inline-block; }
main > .section:not(#contacto) h2 .motion-word,
#contacto h2 .motion-word {
  display: inline-block; font: inherit; color: inherit;
  letter-spacing: inherit; padding: 0;
}
.motion-ready .motion-title:not(.is-revealed) .motion-word {
  opacity: .22; transform: translateY(16px);
}
.motion-ready .motion-word {
  transition: opacity .65s ease, transform .75s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--word-index, 0) * 28ms);
}
.motion-ready .motion-reveal {
  transition: opacity .8s ease, translate .9s cubic-bezier(.16,1,.3,1);
}
.motion-ready .motion-reveal:not(.is-revealed) { opacity: .25; translate: 0 26px; }
.motion-ready .motion-reveal:focus-within { opacity: 1; translate: none; }

/* Cada paso tiene su propia entrada y un número que acompaña el scroll. */
#proceso > .container { gap: clamp(48px,8vw,120px); }
#proceso .section-heading { top: 112px; }
#proceso .process-list { position: relative; padding-left: 26px; }
#proceso .process-list::before, #proceso .process-list::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: #d6e0d9;
}
#proceso .process-list::after {
  background: #287d6c; transform-origin: top;
  transform: scaleY(var(--process-progress, 0));
}
#proceso .process-step {
  position: relative; min-height: 0;
  display: grid; grid-template-columns: clamp(3.25rem, 6vw, 5.3rem) minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
  padding: 22px 0 26px; margin: 0;
  border-top: 1px solid #d5dfd8;
}
#proceso .process-step.is-current { border-top: 1px solid #d5dfd8; }
#proceso .process-step:last-child { min-height: 0; padding-bottom: 0; }
#proceso .motion-step-number {
  display: block; font: 400 clamp(3.2rem,5.4vw,5.1rem)/.91 "Landing Editorial",Georgia,serif;
  letter-spacing: -.06em; color: #627f75; margin: 0;
  transform: translateY(calc((1 - var(--step-progress, 1)) * 5px));
  transition: color .4s;
}
#proceso .process-step.is-active .motion-step-number { color: #146653; }
#proceso .motion-step-label {
  display: block; color: #386359;
  font: 600 .61rem/1.4 Montserrat,sans-serif;
  letter-spacing: .14em; margin: 0 0 6px;
}
#proceso .process-step h3 { font-size: clamp(2.2rem,3.1vw,3.25rem); }
#proceso .process-step > div { position: relative; z-index: 1; }
#proceso .process-step > div:only-child { grid-column: 1 / -1; }
#proceso .process-step::before {
  content: ''; position: absolute; top: 26px; left: -31px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fffefa; border: 2px solid #8ba99a;
  transition: background-color .4s, border-color .4s;
}
#proceso .process-step.is-active::before { background: #287d6c; border-color: #287d6c; }
#proceso .process-work { overflow: hidden; }
#proceso .process-work-grid img {
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
@media (hover:hover) {
  #proceso .process-work-grid img:hover { transform: scale(1.035); }
}
@media (max-width:820px) {
  html { scroll-padding-top: 80px; }
  #proceso .section-heading { position: static; }
  #proceso > .container { gap: 24px; }
  #proceso .process-list { padding-left: 17px; }
  #proceso .process-step { grid-template-columns: 2.65rem minmax(0,1fr); gap: 11px; padding-block: 16px 19px; }
  #proceso .process-step::before { left: -22px; top: 20px; }
  #proceso .motion-step-number { font-size: 2.95rem; }
  #proceso .process-step h3 { font-size: clamp(1.75rem, 6vw, 2.2rem); }
}
@media (prefers-reduced-motion:reduce) {
  .motion-ready .motion-word, .motion-ready .motion-title:not(.is-revealed) .motion-word,
  .motion-ready .motion-reveal, .motion-ready .motion-reveal:not(.is-revealed) {
    opacity: 1; transform: none; translate: none; transition: none;
  }
  #proceso .motion-step-number { transform: none; }
  #proceso .process-list::after { transform: scaleY(1); }
}
