/* Biosan · intro con el logo, entrada de la portada, barra de progreso, línea de pasos y cierre gigante */
:root { --ix-ease: cubic-bezier(.77,0,.18,1); --ix-out: cubic-bezier(.16,1,.3,1); }

/* ---------- intro ---------- */
.intro { display: none; }
html.intro-on .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 2147483000; color: #fff;
  background: radial-gradient(70% 60% at 50% 55%, #134272 0%, #0a2342 45%, #06162b 100%);
  clip-path: inset(0 0 0 0); transition: clip-path .8s var(--ix-ease); }
html.intro-on:not(.intro-done) { overflow: hidden; }
html.intro-out .intro { clip-path: inset(0 0 100% 0); }
html.intro-done .intro { display: none; }
.intro__in { display: grid; justify-items: center; gap: 22px; transition: transform .8s var(--ix-ease), opacity .45s; }
html.intro-out .intro__in { transform: translateY(-14vh); opacity: 0; }
.intro__logo { width: min(440px, 72vw); height: auto; clip-path: inset(0 100% 0 0); filter: blur(12px); transform: scale(.94);
  transition: clip-path .7s var(--ix-ease), filter .7s var(--ix-out), transform 1s var(--ix-out); }
.intro.is-play .intro__logo { clip-path: inset(0 0 0 0); filter: blur(0); transform: scale(1); }
.intro__in { position: relative; }
.intro__in::after { content: ""; position: absolute; top: -10%; bottom: 40%; width: 30%; left: 0; pointer-events: none; opacity: 0; transform: translateX(-60%) skewX(-16deg);
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); mix-blend-mode: overlay; }
.intro.is-play .intro__in::after { animation: ix-sweep .9s .45s var(--ix-ease) forwards; }
@keyframes ix-sweep { 0% { opacity: 0; transform: translateX(-60%) skewX(-16deg); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(380%) skewX(-16deg); } }
.intro__line { display: block; width: min(440px, 72vw); height: 2px; background: linear-gradient(90deg, #19c3b1, #6fe3d6); transform: scaleX(0); transform-origin: left;
  transition: transform .7s .35s var(--ix-ease); }
.intro.is-play .intro__line { transform: scaleX(1); }
.intro__tag { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; font: 600 12px/1 var(--font-text); letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.intro__tag span { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .8s var(--ix-out); padding: 0 .9em; }
.intro__tag span + span { border-left: 1px solid rgba(51,214,196,.6); }
.intro.is-play .intro__tag span { opacity: 1; transform: none; }
.intro.is-play .intro__tag span:nth-child(1) { transition-delay: .5s; } .intro.is-play .intro__tag span:nth-child(2) { transition-delay: .58s; }
.intro.is-play .intro__tag span:nth-child(3) { transition-delay: .66s; } .intro.is-play .intro__tag span:nth-child(4) { transition-delay: .74s; }

/* ---------- hero entrance (after the intro, or at once on a return visit) ---------- */
html.hx .hero--cover .hero-cover__img { transform: scale(1.14); transition: transform 2.4s var(--ix-out); }
html.hx .hero--cover h1 .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
html.hx .hero--cover h1 .hwi { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ix-out); transition-delay: calc(var(--k) * 70ms + .1s); }
html.hx .hero--cover :is(.hero-cover__kick, .hero__lead, .btn-row) { opacity: 0; transform: translateY(18px); transition: opacity .9s, transform 1s var(--ix-out); }
html.hx .hero--cover .hero-cover__kick { transition-delay: .05s; } html.hx .hero--cover .hero__lead { transition-delay: .55s; } html.hx .hero--cover .btn-row { transition-delay: .7s; }
html.hx.hero-go .hero--cover .hero-cover__img { transform: scale(1); }
html.hx.hero-go .hero--cover h1 .hwi { transform: none; }
html.hx.hero-go .hero--cover :is(.hero-cover__kick, .hero__lead, .btn-row) { opacity: 1; transform: none; }

/* ---------- the three steps on a drawing line ---------- */
.tl { position: relative; margin-top: 56px; --gap: 32px; }
.tl__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tl__track { position: absolute; top: 21px; height: 2px; left: 22px; right: calc((100% - 2 * var(--gap)) / 3 - 22px); background: rgba(6,22,43,.12); }
.tl__fill { position: absolute; inset: 0; background: linear-gradient(90deg, #19c3b1, #33d6c4); transform: scaleX(var(--p, 0)); transform-origin: left; box-shadow: 0 0 14px rgba(25,195,177,.5); }
.tl__step { position: relative; }
.tl__node { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid rgba(6,22,43,.16);
  font: 600 17px/1 var(--font-display); color: #4a5b70; transition: background .45s, border-color .45s, color .45s, box-shadow .6s, transform .7s cubic-bezier(.34,1.56,.64,1); }
.tl__step.is-on .tl__node { background: #19c3b1; border-color: #19c3b1; color: #06162b; transform: scale(1.12); box-shadow: 0 0 0 8px rgba(25,195,177,.16); }
.tl__step h3 { margin: 24px 0 8px; font: 600 clamp(22px, 1vw + 14px, 28px)/1.15 var(--font-display); letter-spacing: -.01em; }
.tl__step p { margin: 0; max-width: 34ch; color: #24364d; font-size: 17px; line-height: 1.55; }
.tl__photo { margin-top: 22px; aspect-ratio: 4 / 3; min-height: 0; border-radius: 18px; overflow: hidden; }
.tl__step h3, .tl__step p { transition: opacity .6s, transform .8s var(--ix-out); }
html.hx .tl__step:not(.is-on) :is(h3, p) { opacity: .35; }

/* ---------- the close: BIOSAN set huge ---------- */
footer.closing .closing__cta.cg { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 64px); height: auto; max-height: none; }
footer.closing .cg > * { flex: none; }
footer.closing:has(.cg) { height: auto; min-height: 100svh; }
footer.closing:has(.cg) > .wrap { height: auto; }
footer.closing .cg + .closing__links { margin-top: clamp(40px, 5vw, 72px); }
.cg__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.cg__row h2 { max-width: 16ch; }
.cg__word { margin: 0; display: flex; justify-content: space-between; overflow: hidden; min-height: max-content; padding: .02em 0 .06em;
  font: 600 calc(min(100vw - 2 * var(--gut, 80px), 1280px) * .262)/.82 var(--font-display); letter-spacing: -.04em; }
footer.closing .cg__row .btn--secondary { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
@media (hover: hover) { footer.closing .cg__row .btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.06); } }
.cg__word span { display: inline-block; background: linear-gradient(180deg, #ffffff 0%, #9fdcd5 70%, rgba(25,195,177,.55) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.hx .cg__word span { transform: translateY(100%); transition: transform 2.1s var(--ix-out); transition-delay: calc(var(--i) * 180ms + .1s); }
html.hx .cg__word.is-in span { transform: none; }

@media (max-width: 1023px) {
  .tl__steps { grid-template-columns: 1fr; gap: 44px; }
  .tl__track { top: 22px; bottom: auto; left: 21px; right: auto; width: 2px; height: var(--tlh, 70%); }
  .tl__fill { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .tl__step { padding-left: 68px; }
  .tl__node { position: absolute; left: 0; top: 0; }
  .tl__step h3 { margin-top: 6px; }
}
@media (max-width: 639px) {
  .scrollbar { top: var(--nav, 56px); }
  .cg__row .btn-row { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
}
/* softer motion level when the OS asks for less motion: no zooms, no blur, the rest still moves */
html.motion-soft .hero--cover .hero-cover__img { transform: none !important; }
html.motion-soft .sx-curtain img { transform: none !important; }
html.motion-soft .sx-fade { filter: none !important; }
