/* =======================================================
   responsive.css · Breakpoints
   ======================================================= */

/* ===== ≤ 1024px ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-visual { min-height: 500px; }

  .stack-inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .stack-card { height: auto; min-height: 540px; }

  .stat-band-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== ≤ 768px (mobile) ===== */
@media (max-width: 768px) {
  :root {
    --nav-height: var(--nav-height-sm);
    --stack-card-h: auto;
  }

  .nav-shell { padding: 6px 8px 6px 16px; gap: var(--space-2); }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero {
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: clamp(60px, 14vw, 100px);
    min-height: auto;
  }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; min-height: 480px; }
  .hero-stats { gap: var(--space-4); }
  .hero-stats .stat strong { font-size: 1.25rem; }

  /* Stack: en mobile NO usamos sticky — flujo normal vertical */
  .stack-card {
    position: static;
    margin-bottom: var(--space-5);
    min-height: auto;
    height: auto;
  }
  .stack-track { --card-scroll: 0; }
  .stack-inner { padding: var(--space-6); }

  .stat-band-grid { grid-template-columns: 1fr; }

  .cta-final { margin-inline: var(--container-pad); padding-block: clamp(60px, 14vw, 100px); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ===== ≤ 480px ===== */
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats .stat strong { font-size: 1.125rem; }
  .hero-stats .stat span { font-size: 10px; }

  .phone { --pw: 240px; --ph: 500px; }

  .testi-controls { flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
  .testi-counter { order: 3; width: 100%; text-align: center; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-final { margin-inline: 0; border-radius: 0; }
}
