/* LATAM IMPORTA — ajustes móvil */

html {
  -webkit-text-size-adjust: 100%;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

body.menu-open .wa-float {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.has-wa-float {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

/* FAQ */
@media (max-width: 639px) {
  .faq-item.active .faq-content {
    max-height: 520px;
  }

  .faq-btn > span:first-child {
    font-size: 0.8125rem;
    line-height: 1.45;
    padding-right: 0.25rem;
  }
}

/* Timeline «Cómo funciona» */
@media (max-width: 639px) {
  .process-linear {
    padding-left: 2rem;
  }

  .process-spine {
    left: 0.65rem;
  }

  .process-step {
    padding: 1rem 0.85rem;
  }

  .process-step::before {
    left: -1.55rem;
    top: 1.35rem;
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .process-title {
    font-size: 1rem;
  }

  .process-step-num {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.7rem;
  }
}

/* Filtros mapa China — scroll horizontal */
@media (max-width: 1023px) {
  #product-filters {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    gap: 0.5rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.35rem;
  }

  #product-filters .product-filter {
    min-width: min(200px, 72vw);
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* Barra de confianza */
@media (max-width: 639px) {
  .trust-item span {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .trust-item .w-10 {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
  }
}

/* CTA final */
@media (max-width: 639px) {
  #contacto .flex.flex-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  #contacto .flex.flex-wrap a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Footer */
@media (max-width: 639px) {
  footer .border-t.flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Formularios — evita zoom en iOS al enfocar */
@media (max-width: 639px) {
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px;
  }

  #stripe-checkout {
    min-height: 360px;
  }
}

/* Hero journey en pantallas muy estrechas */
@media (max-width: 359px) {
  .journey-track {
    --journey-inset: 2.25rem;
    padding-left: var(--journey-inset);
  }

  #hero h1 {
    font-size: 1.65rem;
  }
}

/* Páginas legales */
@media (max-width: 639px) {
  .legal-prose h1 {
    font-size: 1.5rem;
  }
}

/* Tarjetas hover desactivado en táctil */
@media (hover: none) {
  .card-premium:hover {
    transform: none;
    box-shadow: inherit;
  }
}
