/* La cabecera móvil conserva el contenido y da espacio real a las fotografías. */
@media (max-width: 991.98px) {
  body.home-page .hero { min-height: 100svh !important; min-height: 100dvh !important; height: auto !important; }
  body.home-page .hero-panel {
    min-height: 0 !important; height: auto !important; max-height: none !important;
    padding-top: calc(var(--home-header-height, 64px) + clamp(16px, 3svh, 32px)) !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important; row-gap: 0;
    border: 0;
  }
  body.home-page .hero-panel > .container { width: 100%; max-width: 720px; padding-inline: 24px; }
  body.home-page .hero-content { padding: 0 !important; text-align: center; }
  body.home-page .hero .hero-pill {
    display: block; width: fit-content; max-width: 100%; margin: 0 auto 16px !important;
    padding: 0 0 10px !important; border: 0 !important; border-bottom: 1px solid rgba(13, 110, 253, .28) !important; background: none !important;
    font-size: .68rem !important; line-height: 1.5 !important; letter-spacing: .1em;
  }
  body.home-page .hero .hero-pill::before { display: none; }
  body.home-page .hero .hero-title {
    margin: 0 0 16px !important; font-size: clamp(1.75rem, 5.8vw, 2.8rem) !important;
    line-height: 1.12 !important; letter-spacing: -.035em; text-wrap: balance;
  }
  body.home-page .hero .hero-title-accent { display: inline; white-space: normal; }
  body.home-page .hero .hero-copy { margin: 0 0 20px !important; font-size: .9375rem !important; line-height: 1.5 !important; }
  body.home-page .hero .hero-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; max-width: 400px; margin: 0 auto !important; align-items: stretch !important; }
  body.home-page .hero .hero-actions a,
  body.home-page main :is(.hero-demo, .compliance-demo, .hotel-cta-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 10px !important;
    font-size: .9rem !important;
    line-height: 1.35;
    text-align: center;
  }
  body.home-page .hero .hero-photo-strip {
    --hero-photo-height: clamp(210px, 29svh, 340px);
    display: grid; grid-template-columns: none !important; grid-auto-flow: column;
    grid-auto-columns: min(45vw, 360px); gap: 14px !important;
    width: 100% !important; max-width: 100%; margin: auto 0 0 !important;
    padding: 24px 24px 0 !important; transform: none !important;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px; scrollbar-width: none;
  }
  body.home-page .hero .hero-photo-strip::-webkit-scrollbar { display: none; }
  body.home-page .hero .hero-photo-strip::before, body.home-page .hero .hero-photo-strip::after { display: block !important; order: 1; height: var(--hero-photo-height); min-height: 0 !important; border-radius: 18px; scroll-snap-align: start; opacity: 1; box-shadow: none; }
  body.home-page .hero .hero-photo-strip figure { height: var(--hero-photo-height) !important; min-height: 0 !important; border-radius: 18px !important; scroll-snap-align: start; box-shadow: none; }
  body.home-page .hero .hero-photo-strip img { display: block; width: 100%; height: 100%; object-fit: cover; transform: none; }
  body.home-page .hero .hero-photo-strip figcaption { inset: auto 14px 14px !important; padding: 12px 14px !important; border-radius: 12px; }
  body.home-page .hero .hero-photo-strip figcaption strong { font-size: 1rem !important; line-height: 1.3; }
  body.home-page .hero .hero-photo-strip figcaption span { display: block !important; font-size: .8rem; line-height: 1.4; }
  .hero-photo-strip:focus-visible { outline: 2px solid #0d6efd; outline-offset: -2px; }
}
@media (max-width: 575.98px) {
  body.home-page .hero-panel > .container { padding-inline: 20px; }
  body.home-page .hero .hero-title { font-size: clamp(1.65rem, 7.4vw, 2.5rem) !important; }
  body.home-page .hero .hero-photo-strip { grid-auto-columns: 78vw; padding-inline: 20px !important; scroll-padding-inline: 20px; }
}
/* Keep all copy readable on short screens; content can exceed one viewport. */
@media (max-width: 575.98px) and (max-height: 700px) {
  body.home-page .hero-panel { padding-top: calc(var(--home-header-height, 64px) + 12px) !important; }
  body.home-page .hero .hero-title { font-size: clamp(1.5rem, 6.8vw, 1.8rem) !important; margin-bottom: 12px !important; }
  body.home-page .hero .hero-pill { margin-bottom: 12px !important; padding-bottom: 8px !important; }
  body.home-page .hero .hero-copy { font-size: .875rem !important; margin-bottom: 14px !important; }
  body.home-page .hero .hero-photo-strip { --hero-photo-height: 180px; padding-top: 18px !important; }
}
