/* Ajustes finales para celulares. Este archivo se carga al final para mantener
   estable la versión de escritorio y concentrar aquí la experiencia móvil. */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 72px;
  }

  body {
    overflow-x: hidden;
  }

  .site-header {
    height: 72px;
    padding: 0 14px;
  }

  .site-header .brand {
    min-width: 0;
    gap: 5px;
    font-size: 18px;
  }

  .site-header .brand-logo {
    width: 78px;
    height: 54px;
    margin-left: -4px;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-content: center;
    padding: 0;
    border-radius: 10px;
  }

  .menu-toggle:focus-visible {
    outline: 3px solid rgba(82, 216, 255, .65);
    outline-offset: 2px;
  }

  .menu-toggle span {
    width: 24px;
    margin: 4px 0;
  }

  .nav {
    top: 72px;
    max-height: calc(100dvh - 72px);
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 14px 18px 20px;
    border-top: 1px solid #dce7ef;
  }

  .nav > a:not(.button) {
    display: flex;
    min-height: 48px;
    align-items: center;
    color: #10253a;
    text-shadow: none;
  }

  .nav .button {
    margin-top: 8px;
  }

  /* La imagen tiene su propio bloque: así el logo nunca queda debajo del texto
     ni cambia de recorte según el alto del contenido. */
  .hero {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 0 18px 36px !important;
    background: linear-gradient(180deg, #020d1c, #041f3a 58%, #020d1c) !important;
  }

  .hero::before {
    content: "" !important;
    position: relative !important;
    inset: auto !important;
    z-index: 0 !important;
    display: block !important;
    width: calc(100% + 36px) !important;
    height: auto !important;
    aspect-ratio: 1.14 / 1;
    flex: 0 0 auto;
    margin: 0 -18px -18px;
    transform: none;
    background-image:
      linear-gradient(180deg, rgba(2, 13, 28, .08) 0%, rgba(2, 13, 28, .06) 58%, #020d1c 100%),
      url("assets/gnet-hero-background-clean-v2.png") !important;
    background-position: center, center 46% !important;
    background-size: cover, cover !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    pointer-events: none;
    animation: mobile-hero-image-float 11s ease-in-out infinite alternate;
    transform-origin: center;
    will-change: transform;
  }

  .hero .hero-glow {
    position: absolute;
    z-index: 0;
    pointer-events: none;
  }

  .hero-copy,
  .hero-visual {
    width: 100% !important;
    flex: 0 0 auto !important;
  }

  .hero {
    animation: none;
    will-change: auto;
  }

  .hero-copy {
    align-self: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hero-copy::before {
    content: none !important;
  }

  .hero-copy > .eyebrow {
    margin-top: 0;
  }

  .hero-copy h1 {
    margin: 16px 0 20px;
    font-size: clamp(34px, 10.2vw, 43px) !important;
    line-height: 1.04 !important;
    letter-spacing: -1.8px !important;
  }

  .hero-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch;
    gap: 16px;
    margin: 28px 0 24px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    align-self: center;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    font-size: 12px;
  }

  .hero-visual {
    min-height: 0 !important;
    left: 0 !important;
    margin-top: 30px !important;
  }

  .hero-visual .speed-card {
    width: calc(100% - 6px) !important;
    margin: 0 auto;
    padding: 18px;
    border-radius: 24px;
    transform: none;
  }

  .hero-visual .speed-ring {
    width: 190px;
    height: 190px;
    margin: 0 auto;
    display: grid;
    place-items: center;
  }

  .hero-visual .speed-ring::before {
    top: 50%;
    left: 50%;
    width: 172px;
    height: 172px;
    transform: translate(-50%, -50%);
  }

  .hero-visual .speed-ring > div {
    position: relative;
    display: grid;
    width: 138px;
    place-items: center;
    line-height: 1;
  }

  .hero-visual .speed-ring strong {
    font-size: 48px;
    line-height: .95;
    letter-spacing: -2.5px;
  }

  .hero-visual .speed-ring span {
    display: block;
    margin-top: 7px;
    line-height: 1;
  }

  .speed-stats {
    gap: 6px;
  }

  .speed-stats div {
    min-width: 0;
    padding: 12px 7px;
  }

  .speed-stats b {
    font-size: 10px;
    white-space: nowrap;
  }

  .floating-chip {
    display: none;
  }

  .trust-strip {
    min-height: 76px;
    padding: 16px 18px;
  }

  .section {
    padding: 72px 18px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section h2 {
    font-size: clamp(31px, 9vw, 39px);
    letter-spacing: -1.5px;
  }

  .plan-category {
    gap: 10px;
  }

  .plan-category h3 {
    font-size: 19px;
  }

  .plan-card {
    padding: 26px 22px;
  }

  .plan-card > p:not(.plan-label) {
    min-height: 0;
  }

  .benefit-card {
    padding: 24px;
  }

  .coverage-form {
    gap: 17px;
    padding: 22px 18px;
  }

  .coverage-form input,
  .coverage-form select {
    height: 50px;
    font-size: 16px;
  }

  .faq-list summary {
    gap: 18px;
    padding: 22px 0;
    line-height: 1.45;
  }

  .faq-list summary span {
    flex: 0 0 auto;
  }

  .final-cta {
    margin: 0 18px 58px;
    padding: 34px 24px;
  }

  .final-cta::before {
    background-position: center 48%;
    background-size: 560px auto;
    opacity: .27;
  }

  .final-cta h2 {
    font-size: 39px;
  }

  .final-cta .button {
    width: 100%;
  }

  footer {
    padding: 42px 20px 28px;
  }

  .footer-brand .brand-logo {
    width: 96px;
    height: 58px;
  }

  .whatsapp {
    right: 12px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    min-width: 56px;
    justify-content: center;
    gap: 0;
    padding: 6px;
    border-radius: 50%;
  }

  .whatsapp-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 22px;
  }

  .whatsapp-label {
    display: none;
  }
}

@media (max-width: 360px) {
  .site-header .brand {
    font-size: 16px;
  }

  .site-header .brand-logo {
    width: 68px;
  }

  .hero {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .hero::before {
    width: calc(100% + 28px) !important;
    margin-right: -14px;
    margin-left: -14px;
  }

  .speed-top {
    gap: 10px;
  }

  .speed-stats b {
    font-size: 9px;
  }

  .whatsapp {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }
}

@keyframes mobile-hero-image-float {
  from {
    transform: translate3d(0, 0, 0) scale(1.005);
  }
  to {
    transform: translate3d(-4px, -3px, 0) scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .whatsapp::before {
    animation: none;
  }

  .hero,
  .hero::before,
  .benefits,
  .site-header .brand-logo,
  .footer-brand .brand-logo,
  .final-cta::before {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
}
