/* Solo teléfono: la portada de computadora conserva todos sus estilos. */
@media (max-width: 700px) {
  .header .nav { height: 60px; }
  .header .brand { font-size: 24px; gap: 9px; }
  .header .brand-mark { width: 30px; height: 30px; font-size: 22px; border-radius: 9px; }
  .hero .hero-layout { row-gap: 0; }
  .hero .hero-copy { display: contents; }
  .hero .hero-copy > .eyebrow { order: 0; margin: 20px 0 16px; }
  .hero .hero-copy > h1 { order: 1; }
  .hero .hero-description { order: 2; font-size: 15px; line-height: 1.55; margin: 14px 0 0; }
  .hero .hero-stage {
    order: 3;
    width: 100%;
    max-width: 460px;
    height: 444px;
    margin: 12px auto 4px;
    perspective: none;
  }
  .hero .hero-actions { order: 4; margin-top: 18px; }
  .hero .hero-footnote { order: 5; margin: 16px 0 24px; }
  .hero .hero-bottom { padding-block: 18px; }
  .mobile-cta { padding: 6px 14px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-cta .cta-pair > .btn { min-height: 44px; padding: 7px 9px; }

  .hero-stage .stage-caption { inset: 0 4px auto; font-size: 7px; gap: 6px; letter-spacing: .025em; }
  .hero-stage .stage-caption > span:last-child { display: inline-block; font-size: 6px; padding: 3px 5px; white-space: nowrap; }
  .hero-stage .pulse-light { width: 5px; height: 5px; flex: none; }
  .hero-stage .hero-wires { display: none; }
  .hero-stage .hero-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    overflow: visible;
    pointer-events: none;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .hero-connections .connection-underlay { stroke: var(--forest); stroke-width: 5; opacity: .65; }
  .hero-connections .connection-track { stroke: var(--lime); stroke-width: 2; opacity: .8; }
  .hero-connections .connection-flow {
    stroke: var(--cream);
    stroke-width: 2.5;
    stroke-dasharray: 10 90;
    animation: mobile-hero-signal 4.8s linear infinite;
  }
  .hero-connections .connection-route:last-child .connection-flow { animation-delay: -2.4s; }
  .hero-connections .connection-port { fill: var(--lime); stroke: var(--forest); stroke-width: 1.5; }
  .hero-connections .connection-arrow { stroke: var(--lime); stroke-width: 2; }
  .hero-stage .scene-card {
    /* Evita que los desplazamientos de la animación de escritorio salgan del móvil. */
    transform: none !important;
    border-radius: 12px;
    box-shadow: 0 12px 28px #08170e40;
  }
  .hero-stage .scene-web {
    width: min(80%, 300px);
    left: 10px;
    top: 32px;
    rotate: -2deg;
    animation: mobile-hero-enter .85s both, mobile-hero-float 10s .85s ease-in-out infinite;
  }
  .hero-stage .window-bar { padding: 4px 9px; font-size: 8px; line-height: 1.4; }
  .hero-stage .window-dots { gap: 3px; }
  .hero-stage .window-dots i { width: 4px; height: 4px; }
  .hero-stage .web-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; padding: 9px; }
  .hero-stage .web-preview > .micro { grid-column: 1 / -1; font-size: 7px; line-height: 1.4; }
  .hero-stage .web-preview > strong { grid-column: 1 / -1; max-width: none; margin: 0; font-size: 19px; line-height: 1.12; }
  .hero-stage .web-preview-blocks { display: none; }
  .hero-stage .fake-field { margin: 0; min-width: 0; padding: 3px 6px; font-size: 9px; line-height: 1.4; }
  .hero-stage .fake-field span { font-size: 7px; }
  .hero-stage .fake-field b { font-size: 8px; white-space: nowrap; }
  .hero-stage .fake-submit { grid-column: 1 / -1; margin: 0; padding: 5px; font-size: 9px; line-height: 1.4; }
  .hero-stage .scene-number { padding: 0 10px 6px; font-size: 7px; line-height: 1.4; }

  .hero-stage .scene-register {
    width: min(90%, 350px);
    right: 10px;
    top: 222px;
    padding: 8px 12px;
    rotate: 2deg;
    animation: mobile-hero-enter .85s .2s both, mobile-hero-float 12s 1.05s ease-in-out infinite reverse;
  }
  .hero-stage .register-heading { gap: 7px; line-height: 1.35; }
  .hero-stage .sheet-symbol { font-size: 24px; }
  .hero-stage .register-heading .micro { font-size: 7px; }
  .hero-stage .register-heading strong { font-size: 12px; }
  .hero-stage .register-check { width: 20px; height: 20px; font-size: 12px; line-height: 20px; flex: none; }
  .hero-stage .register-columns, .hero-stage .register-row { font-size: 9px; line-height: 1.4; gap: 6px; }
  .hero-stage .register-columns { padding: 9px 0 5px; }
  .hero-stage .register-row { padding: 7px 0; }
  .hero-stage .register-row .pill { font-size: 8px; padding: 2px 6px; }
  .hero-stage .register-placeholder { display: none; }
  .hero-stage .scene-register .scene-number { padding: 0; }

  .hero-stage .scene-receipt {
    left: 20px;
    bottom: 4px;
    width: calc(100% - 40px);
    padding: 9px 12px;
    gap: 9px;
    rotate: -1deg;
    animation: mobile-hero-enter .85s .4s both, mobile-hero-float 11s 1.25s ease-in-out infinite;
  }
  .hero-stage .receipt-icon { width: 27px; height: 27px; flex: none; }
  .hero-stage .scene-receipt strong { font-size: 12px; line-height: 1.4; }
  .hero-stage .scene-receipt span { font-size: 10px; line-height: 1.4; }
  .hero-stage .stage-stamp { width: 45px; height: 45px; right: 0; top: 66px; font-size: 6px; rotate: 8deg; }
  .hero-stage .stage-stamp b { font-size: 17px; right: 4px; top: 15px; }
  .hero-stage .stage-stamp span { margin-left: -10px; }

  @keyframes mobile-hero-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
  @keyframes mobile-hero-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
  @keyframes mobile-hero-signal { from { stroke-dashoffset: 110; } to { stroke-dashoffset: 10; } }

  @media (prefers-reduced-motion: reduce) {
    .hero-stage .scene-card { animation: none; translate: none; }
    .hero-connections .connection-flow { display: none; animation: none; }
  }
}
