/**
 * BotFlow mobile-lock — última capa CSS (máxima prioridad).
 * Garantiza márgenes y tamaños en móvil aunque falle caché o falte otro CSS.
 */
@media (max-width: 767.98px) {
  html body .min-h-screen,
  html body #main-content {
    overflow-x: clip;
  }

  html body .hero-section .container,
  html body .site-nav .container,
  html body #main-content > section .container,
  html body .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: max(1.375rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(1.375rem, env(safe-area-inset-right, 0px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  html body .nav-logo-frame {
    right: max(1.375rem, env(safe-area-inset-right, 0px)) !important;
  }

  html body .site-nav__inner {
    padding-right: 0 !important;
    padding-left: 0.15rem !important;
  }

  html body .hero-section.h-dvh {
    min-height: auto !important;
    height: auto !important;
    padding-top: 4.15rem !important;
    padding-bottom: 2rem !important;
  }

  html body .hero-title {
    font-size: 1.35rem !important;
    line-height: 1.26 !important;
    margin-bottom: 0.45rem !important;
  }

  html body .hero-visual--mobile {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 9.5rem !important;
    margin: 0.1rem auto 0.65rem !important;
    min-height: 0 !important;
  }

  html body .hero-visual--mobile .hero-diagram {
    width: 100% !important;
    max-width: 9.5rem !important;
  }

  html body .hero-visual--desktop {
    display: none !important;
  }

  html body .p45-hero-info--v8 {
    gap: 0.65rem !important;
  }

  html body .p45-hero-info--v8 .p45-hero-info__intro {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
  }

  html body .p45-hero-info--v8 .p45-hero-info__summary {
    gap: 0.45rem !important;
  }

  html body .p45-hero-info--v8 .p45-hero-info__summary p,
  html body .p45-hero-info--v8 .p45-hero-info__summary-question {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  html body .p45-hero-info--v8 .p45-hero-info__summary p:nth-child(n + 3) {
    display: none !important;
  }

  html body .p45-hero-info__benefits-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    padding-top: 0.5rem !important;
  }

  html body .p45-hero-info__benefit-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: unset !important;
    padding: 0.42rem 0.5rem !important;
    justify-content: flex-start !important;
  }

  html body .p45-hero-info__benefit-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 11.5rem;
    margin-inline: auto;
    justify-content: center !important;
  }

  html body .p45-hero-info__benefit-label {
    font-size: 0.76rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  html body .p45-hero-info__actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }

  html body .p45-hero-info--v8 .p45-hero-info__link {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 0.88rem !important;
    padding: 0.68rem 1rem !important;
  }

  html body .p45-solutions__grid,
  html body .p45-ventajas__hero,
  html body .p45-detail__head,
  html body .p45-detail__hero,
  html body .p45-pricing__grid,
  html body .p45-about__grid {
    grid-template-columns: 1fr !important;
  }

  /* Estabilidad: sin animaciones ni saltos en móvil */
  html body .hero-animate,
  html body .reveal,
  html body .manifesto-image-wrap,
  html body .hero-visual,
  html body .hero-diagram {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  html body #shader-bg {
    height: 100vh !important;
    max-height: 100vh !important;
    opacity: 1 !important;
    position: fixed !important;
    transform: none !important;
  }

  html body #shader-bg canvas {
    display: none !important;
  }

  html body .hero-spotlight {
    opacity: 0.45 !important;
    transition: none !important;
  }

  html body .site-nav {
    transition: none !important;
  }

  html body .bento-glow::before {
    opacity: 0.25 !important;
    transition: none !important;
  }

  html body {
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  html body .hero-visual--mobile {
    display: flex !important;
    max-width: 11rem !important;
    margin: 0.15rem auto 0.75rem !important;
  }

  html body .hero-visual--desktop {
    display: none !important;
  }

  html body .hero-animate,
  html body .reveal,
  html body .manifesto-image-wrap,
  html body .hero-visual,
  html body .hero-diagram {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  html body #shader-bg {
    height: 100vh !important;
    opacity: 1 !important;
  }

  html body #shader-bg canvas {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  html body .p45-hero-info--v8 .p45-hero-info__summary p:nth-child(n + 3) {
    display: block !important;
  }

  html body .hero-visual--mobile {
    display: none !important;
  }

  html body .hero-visual--desktop {
    display: flex !important;
  }
}
