/* ============================================
   Mobile responsive styles (≤768 / ≤480)
   ============================================ */

/* ----- Anti-shake (prevent layout jitter on mobile) ----- */
@media (max-width: 980px) {
  .phone-wrap, .phone, .phone-screen {
    contain: layout style;
  }
  .phone-wrap > div[style*="position: absolute"] {
    /* Disable the bob animation on mobile to stop the page tremor */
    animation-name: float-in !important;
    animation-iteration-count: 1 !important;
  }
  .wa-body { scroll-behavior: auto !important; }
}

/* ----- Container & global ----- */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 18px; }
  section { padding: 60px 0 !important; }
  .section-head { margin: 0 auto 36px; }
  .section-head h2 { font-size: 30px !important; line-height: 1.15; }
  .section-head p { font-size: 15px; }
  h2 { font-size: 28px !important; line-height: 1.18; }
  h3 { font-size: 18px !important; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  section { padding: 48px 0 !important; }
  .section-head h2 { font-size: 26px !important; }
  h2 { font-size: 24px !important; }
}

/* ----- Nav (mobile) ----- */
@media (max-width: 860px) {
  .nav-inner { padding: 12px 0; gap: 10px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-wa { padding: 10px 14px; font-size: 13px; }
  .nav-cta .btn-wa .wa-ico { width: 18px; height: 18px; }
  .nav-cta .btn-wa .wa-ico svg { width: 12px; height: 12px; }
  .nav-brand img { height: 36px !important; width: auto !important; margin: 0 !important; }
  .nav-brand > span > span:last-child {
    font-size: 16px !important;
  }
}
@media (max-width: 540px) {
  .nav-brand > span > span:last-child { display: none; }
  .nav-brand img { height: 32px !important; width: auto !important; margin: 0 !important; }
}

/* ----- Hero ----- */
@media (max-width: 980px) {
  .hero { padding: 80px 0 60px !important; }
  .hero h1 { font-size: 42px !important; line-height: 1.08; }
  .hero .lead { font-size: 16px !important; margin: 18px 0 26px; }
  .hero-cta { justify-content: center; }
  .hero-meta { gap: 10px 18px; font-size: 12px; justify-content: center; }
  .hero-mark { justify-content: center; }
  .hero-grid > div:first-child { text-align: center; }
  .hero-grid > div:first-child .eyebrow { justify-content: center; }
  .phone-wrap {
    margin: 0 auto;
    transform: scale(0.92);
    transform-origin: top center;
    width: 320px;
    height: 640px;
  }
}
@media (max-width: 640px) {
  .hero { padding: 60px 0 40px !important; }
  .hero h1 { font-size: 34px !important; }
  .hero .lead { font-size: 15px !important; }
  .eyebrow { font-size: 10px !important; letter-spacing: 0.06em; }
  .phone-wrap {
    transform: scale(0.82);
    margin-top: -20px;
    margin-bottom: -40px;
  }
  .phone-wrap > div[style*="position: absolute"] { font-size: 11px !important; padding: 8px 10px !important; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 30px !important; }
  .phone-wrap {
    transform: scale(0.74);
    margin-top: -30px;
    margin-bottom: -60px;
  }
  .phone-wrap > div[style*="left: -10px"],
  .phone-wrap > div[style*="left: -20px"],
  .phone-wrap > div[style*="right: -30px"] {
    display: none;
  }
}

/* ----- Stats strip ----- */
@media (max-width: 720px) {
  .stats { padding: 24px 0 !important; }
  .stat .num { font-size: 26px !important; }
  .stat .lbl { font-size: 12px; }
}

/* ----- Steps ----- */
@media (max-width: 640px) {
  .step { grid-template-columns: 44px 1fr !important; gap: 16px; padding: 18px 0; }
  .step .badge { width: 44px; height: 44px; font-size: 14px; }
}

/* ----- Voz section ----- */
@media (max-width: 900px) {
  #voz .container { grid-template-columns: 1fr !important; gap: 36px !important; }
}
@media (max-width: 640px) {
  .voice-card { padding: 20px !important; }
  .voice-row { padding: 10px !important; }
  .voice-buttons { flex-direction: column; }
  .voice-buttons button { width: 100%; }
}

/* ----- Compare table ----- */
@media (max-width: 720px) {
  #recursos + section .container > div[style*="border-radius"] { overflow-x: auto; }
  #recursos + section .container > div[style*="border-radius"] > div { min-width: 640px; }
}

/* ----- Connections ----- */
@media (max-width: 640px) {
  .qr-wrap { width: 200px !important; height: 200px !important; }
  .gcal-days { font-size: 10px !important; }
  .gcal-slot { font-size: 12px !important; padding: 8px 10px !important; }
}

/* ----- Kanban ----- */
@media (max-width: 900px) {
  .kanban-wrap { padding: 16px !important; }
  .kanban {
    grid-template-columns: repeat(6, 230px) !important;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .kcol { scroll-snap-align: start; }
}
@media (max-width: 480px) {
  .kanban-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ----- Funil ----- */
@media (max-width: 640px) {
  .dash-card { padding: 18px !important; }
  .funnel-row { font-size: 13px !important; padding: 10px 14px !important; }
  .funnel-row .v { font-size: 18px !important; }
  .chart { height: 180px !important; }
  .dash-tiles { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ----- ZapSign ----- */
@media (max-width: 720px) {
  .contract-stack { transform: scale(0.92); transform-origin: top left; }
  .contract-card { padding: 14px !important; gap: 12px !important; }
  .contract-card .ttl { font-size: 14px !important; }
}

/* ----- Final CTA ----- */
@media (max-width: 640px) {
  .cta-big { padding: 40px 22px !important; }
  .cta-big h2 { font-size: 26px !important; line-height: 1.2; }
  .cta-big p { font-size: 15px !important; }
}

/* ----- Buttons ----- */
@media (max-width: 640px) {
  .btn-wa { padding: 14px 20px; font-size: 14px; min-height: 48px; }
  .btn-wa.btn-lg { padding: 16px 26px; font-size: 16px; min-height: 54px; }
  .hero-cta .btn-wa.btn-lg { width: 100%; justify-content: center; }
}

/* Center any stray button wrappers on mobile so every CTA is centered */
@media (max-width: 900px) {
  .btn-row { justify-content: center !important; }
  #voz .container > div:first-child { text-align: center; }
  #voz .container > div:first-child .eyebrow,
  #voz .container > div:first-child ul { justify-content: center; align-items: center; }
  #voz .container > div:first-child ul li { justify-content: center; }
  #zapsign .zap-grid > div:first-child { text-align: center; }
  #zapsign .zap-grid > div:first-child .zap-label { justify-content: center; }
}

/* ----- WhatsApp chat ----- */
@media (max-width: 480px) {
  .wa .bubble { max-width: 84%; font-size: 13px; }
  .transcript-text { font-size: 11px !important; }
}

/* ----- Tweaks ----- */
@media (max-width: 640px) {
  [class*="tweaks"] { max-width: 88vw !important; }
}

/* ----- Footer ----- */
@media (max-width: 640px) {
  footer { padding: 24px 0 0 !important; }
  .foot-bottom-center { font-size: 12px; padding: 20px 14px; }
}

/* ----- Anti-overflow ----- */
html, body { overflow-x: hidden; }
.page { overflow-x: hidden; }
