/* One continuous scene, from scattered operations to a company in balance. */
.company-story { background: #fff; }
.company-story-heading { max-width: 740px; margin: 0 auto 48px; text-align: center; }
.company-story-heading .eyebrow { background: transparent; padding: 0; }
.company-story-heading h2 { margin: 20px 0; font-size: clamp(2.2rem, 4.1vw, 3.65rem); letter-spacing: -.045em; line-height: 1.08; }
.company-story-heading > p { max-width: 590px; margin: auto; font-size: 1.05rem; }
.company-story-card { position: relative; overflow: hidden; border: 1px solid #e3eaf3; border-radius: 30px; background: linear-gradient(145deg, #f9fbfe, #f1f7ff 50%, #fbfcff); box-shadow: 0 24px 80px -32px #234d7b24; }
.company-story-topline { display: flex; justify-content: space-between; gap: 16px; padding: 26px 32px 0; color: #718198; font-size: .73rem; letter-spacing: .025em; }
.company-story-topline > span:first-child { display: inline-flex; align-items: center; gap: 9px; color: #34618e; }
.company-story-topline i { width: 6px; height: 6px; border-radius: 50%; background: #0071e3; }
.company-story-stage { position: relative; aspect-ratio: 5 / 2.8; margin: 0 20px; isolation: isolate; overflow: hidden; }
.company-story-art { width: 100%; height: 100%; }
.company-story-art > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.company-story-fallback { display: grid; position: absolute; inset: 0; place-content: center; max-width: 490px; margin: auto; text-align: center; padding: 24px; }
.company-story.is-ready .company-story-fallback { display: none; }
.company-story-caption { display: flex; justify-content: center; gap: 18px; align-items: flex-start; padding: 0 32px 32px; min-height: 102px; }
.company-story-number { flex: 0 0 auto; display: inline-flex; border: 1px solid #ccdff3; background: #ffffffa6; border-radius: 8px; padding: 7px 9px; margin-top: 1px; color: #3973ab; font-size: .68rem; font-weight: 600; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.company-story-caption h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); letter-spacing: -.025em; line-height: 1.3; }
.company-story-caption p { font-size: .9rem; margin-top: 6px; color: #6b7b8e; }
.company-story-bottom { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 32px; border-top: 1px solid #dde7f2; background: #ffffffb3; }
.company-story-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; flex: 1; max-width: 740px; }
.company-story-steps li { position: relative; color: #63748a; padding-bottom: 14px; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.company-story-steps li > span { margin-right: 4px; font-size: .63rem; opacity: .65; }
.company-story-steps i { position: absolute; inset: auto 0 0; height: 3px; border-radius: 5px; background: #e3ebf4; overflow: hidden; }
.company-story-steps i::after { content: ""; position: absolute; inset: 0; background: #0071e3; transform: scaleX(var(--step-progress, 0)); transform-origin: left; }
.company-story-steps li[aria-current="step"] { color: #0067d0; font-weight: 700; }
.company-story-controls { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.company-story-controls[hidden], .company-story-motion-note[hidden] { display: none; }
.company-story-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; padding: 10px 0; min-height: 44px; background: transparent; font: inherit; font-size: .75rem; color: #526c88; cursor: pointer; }
.company-story-controls button:hover { color: #0071e3; }
.company-story-controls button:focus-visible { outline: 2px solid #0071e3; outline-offset: 5px; border-radius: 4px; }
.company-story-controls svg { width: 17px; height: 17px; }
.company-story-motion-note { text-align: center; padding: 0 24px 18px; font-size: .8rem; color: #62748b; }
/* Keep the entire story below the navigation on desktop, including its controls. */
@media (min-width: 1000px) {
  .company-story#nosotros { min-height: calc(100svh - 68px); padding-block: 24px; display: flex; align-items: center; scroll-margin-top: 68px; }
  .company-story > .container { width: 100%; max-width: 1480px; padding-inline: 32px; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.9fr); align-items: center; gap: 40px; }
  .company-story-heading { max-width: 360px; margin: 0; text-align: left; }
  .company-story-heading h2 { font-size: clamp(2rem, 3vw, 3.15rem); margin-block: 18px; }
  .company-story-heading h2 br { display: none; }
  .company-story-heading > p { margin: 0; font-size: .97rem; }
  .company-story-card { width: 100%; border-radius: 24px; }
  .company-story-topline { padding: 18px 22px 0; font-size: .65rem; }
  .company-story-topline > span:last-child { display: none; }
  .company-story-stage { height: clamp(180px, calc(100svh - 330px), 500px); aspect-ratio: auto; margin-inline: 10px; }
  .company-story-caption { gap: 12px; padding: 0 22px 18px; min-height: 88px; }
  .company-story-caption h3 { font-size: clamp(1.05rem, 1.45vw, 1.35rem); }
  .company-story-caption p { font-size: .8rem; line-height: 1.55; }
  .company-story-bottom { gap: 16px; padding: 12px 86px 12px 22px; }
  .company-story-steps { gap: 12px; }
  .company-story-steps li { font-size: .67rem; }
  .company-story-controls { gap: 10px; }
  .company-story-controls button { font-size: .7rem; }
}
@media (max-width: 900px) {
  .company-story-bottom { flex-wrap: wrap; gap: 12px; }
  .company-story-steps { flex-basis: 100%; max-width: none; }
  .company-story-controls { margin-left: 0; margin-right: auto; }
}
@media (max-width: 600px) {
  .company-story .container { padding-inline: 16px; }
  .company-story-heading { margin-bottom: 28px; }
  .company-story-heading h2 { font-size: clamp(1.9rem, 7.9vw, 2.8rem); margin-block: 16px; }
  .company-story-heading > p { font-size: .93rem; padding-inline: 12px; }
  .company-story-card { border-radius: 20px; }
  .company-story-topline { padding: 20px 18px 0; font-size: .65rem; }
  .company-story-topline > span:last-child { display: none; }
  .company-story-stage { aspect-ratio: 5 / 4; margin: 0; }
  .company-story-caption { padding: 0 18px 24px; gap: 10px; min-height: 122px; justify-content: flex-start; }
  .company-story-number { font-size: .58rem; padding: 6px; }
  .company-story-caption h3 { font-size: 1.2rem; }
  .company-story-caption p { font-size: .81rem; line-height: 1.6; }
  .company-story-bottom { padding: 20px 18px 12px; }
  .company-story-steps { gap: 8px; }
  .company-story-steps li { font-size: clamp(.56rem, 2.2vw, .7rem); padding-bottom: 12px; }
  .company-story-steps li > span { display: block; font-size: .56rem; margin-bottom: 5px; }
}
