/* Mobile continuity hotfix: route content must never wait hidden for an observer. */
@media (max-width: 1100px) {
  html.mpx-motion [data-mpx-scene] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Keep the vision label in the same editorial surface as its heading and copy. */
@media (max-width: 900px) {
  .mpx-home .mpx-home-vision-editorial > .eyebrow {
    position: relative;
    display: block;
    margin: 0 0 20px;
    padding: 0;
    color: var(--mpx-blue);
  }
}

/* On phones, the Professionals hero remains one photographic composition. */
@media (max-width: 820px) {
  body[data-page="profesionales"] .pros-r1-hero {
    min-height: clamp(720px, 178vw, 820px);
    padding-top: 66px;
    padding-bottom: 0;
  }

  body[data-page="profesionales"] .pros-r1-hero-photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: auto;
    clip-path: none;
  }

  body[data-page="profesionales"] .pros-r1-hero-photo img {
    object-position: 53% 48%;
  }

  body[data-page="profesionales"] .pros-r1-hero-diagonal {
    inset: 66px 0 0;
    height: auto;
    clip-path: polygon(0 0, 86% 0, 69% 22%, 48% 58%, 32% 100%, 0 100%);
  }
}

/* The long highlighted line is intentionally unbroken; size it to its real mobile measure. */
@media (max-width: 480px) {
  body[data-page="profesionales"] .pros-r1-hero-copy h1 {
    max-inline-size: 100%;
    min-inline-size: 0;
    font-size: clamp(34px, 10.68vw, 46px);
  }

  body[data-page="profesionales"] .pros-r1-hero-highlight {
    box-sizing: border-box;
    max-inline-size: 100%;
    letter-spacing: -.08em;
  }
}

/* Professionals mobile hero: preserve the condensed rhythm without glyph collisions. */
@media (max-width: 820px) {
  body[data-page="profesionales"] .pros-r1-hero-copy h1 {
    line-height: .98;
  }

  body[data-page="profesionales"] .pros-r1-hero-highlight {
    inline-size: max-content;
    max-inline-size: 100%;
    margin-top: .05em;
    font-size: .96em;
  }

  body[data-page="profesionales"] .pros-r1-hero-iuma {
    margin-top: .08em;
  }

  body[data-page="profesionales"] .pros-r1-hero-iuma::after {
    right: 0;
    bottom: -.2em;
    left: 0;
  }
}
