/* The phone keeps the same visual hierarchy, with a calmer centred headline. */
@media (max-width: 767px) {
  #inicio .dp-hero__copy {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  #inicio h1 {
    max-width: min(100%, 580px);
    margin-inline: auto;
    font-size: clamp(20px, 6.9vw, 38px);
    line-height: 1.04;
    letter-spacing: -.045em;
    text-wrap: balance;
  }

  #inicio .dp-hero__line { padding-right: 0; white-space: nowrap; }
  #inicio .dp-hero__lead {
    max-width: min(100%, 440px);
    margin-inline: auto;
    text-align: center;
  }

  #inicio .dp-hero__actions { width: 100%; }
}

@media (max-width: 767px) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  #inicio .dp-hero-mascot__viewport {
    transform-origin: 50% 30%;
    translate: var(--hero-touch-shift-x, 0px) var(--hero-touch-shift-y, 0px);
    transition: translate .3s ease-out;
    animation: deploy-mobile-mascot-drift 6s ease-in-out infinite alternate paused;
  }
  #inicio .dp-hero-art.is-touch-visible .dp-hero-mascot__viewport { animation-play-state: running; }
  #inicio .dp-hero-art::after {
    background: radial-gradient(circle at var(--hero-touch-x, 50%) var(--hero-touch-y, 26%), rgba(255,255,255,.32), transparent 30%);
    opacity: .16;
    transition: opacity .45s ease;
  }
  #inicio .dp-hero-art.is-touch-engaged::after { opacity: .62; }
}

@keyframes deploy-mobile-mascot-drift {
  from { transform: translate3d(-1%, 0, 0) scale(1.035); }
  to { transform: translate3d(1%, -.8%, 0) scale(1.055); }
}
