/* =====================================================================
   PATAGONIA MANAGED UNITS · responsive.css
   Todos los breakpoints del sitio en un solo lugar.
     · Laptop chico   ≤ 1180px
     · Tablet         ≤ 980px
     · Móvil grande   ≤ 640px
     · Móvil chico    ≤ 400px
   ===================================================================== */

/* ---------- Laptop / desktop chico ---------- */
@media (max-width: 1180px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  :root { --section-y: clamp(3.5rem, 9vw, 6rem); }

  /* El menú pasa a panel lateral */
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: .25rem; padding: 6rem 1.5rem 2rem;
    background: rgba(6, 10, 18, .92);
    -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    z-index: 90;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.05rem; padding: .85rem 1rem; border-radius: var(--r-sm); }
  .nav a:hover { background: rgba(255,255,255,.04); }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: rgba(59,125,255,.12); }

  /* Oscurecedor detrás del panel */
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(2, 4, 8, .55);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  .header-actions .btn--primary { display: none; }

  /* Grids a 2 / 1 columnas */
  .feature-grid,
  .capability-grid,
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .package-grid,
  .files-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .creative-banner { grid-template-columns: 1fr; }
  .creative-visual { max-width: 460px; }
  .about-split { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  :root { --gutter: 1.15rem; }

  .header-inner { height: 64px; }
  .brand__tag { display: none; }

  .hero { min-height: auto; padding-top: 110px; padding-bottom: 3rem; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn-row .btn { width: 100%; }
  .scroll-hint { display: none; }

  .feature-grid,
  .capability-grid,
  .values-grid,
  .package-grid,
  .files-grid,
  .plan-grid { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .btn-row .btn { flex: 1 1 auto; }
  .split-2 { grid-template-columns: 1fr; }
  .info-panel { flex-direction: column; align-items: flex-start; }
  .info-panel .btn { width: 100%; }
  .creative-banner .btn-row { flex-direction: column; }
  .creative-banner .btn-row .btn { width: 100%; }

  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .divider { margin-block: clamp(2.5rem, 8vw, 4rem); }
}

/* ---------- Móvil muy chico ---------- */
@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3rem); }
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 1500px) {
  :root { --container: 1280px; }
}

/* ---------- Banner Patagonia Hub + popup ---------- */
@media (max-width: 640px) {
  .hub-banner .btn-row { flex-direction: column; }
  .hub-banner .btn-row .btn { width: 100%; }
}
