/*
 * NextConnet — Responsive Shared Stylesheet
 * Aplica a: agentes-ia.html · como-funciona.html · central-update.html
 * Insertar DESPUÉS de los estilos base de cada página
 * ─────────────────────────────────────────────────────
 */

/* ═══════════════════════════════════════════════
   BREAKPOINT 1 · Tablet grande  (max 1024px)
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* NAV */
  nav { padding: 0 28px; }
  .nav-menu { gap: 20px; }

  /* HERO — agentes-ia */
  .hero-visual { width: 44%; }
  .twist-inner { gap: 48px; padding: 72px 28px; }
  .twist-visual { flex: 0 0 380px; }

  /* GRIDS */
  .pain-grid,
  .uc-grid,
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .stats-inner { grid-template-columns: repeat(4, 1fr); }

  /* STEPS / FEATURES */
  .step-body { padding: 40px 32px; }
  .feat-body { padding: 40px 32px; }
  .adv-body  { padding: 40px 36px; }

  /* MERCHANT */
  .merchant-inner { gap: 40px; }
  .merchant-img { flex: 0 0 300px; }

  /* PROVIDERS */
  .providers-section { padding: 60px 28px; }

  /* SECTIONS */
  #steps   { padding-left: 28px; padding-right: 28px; }
  #features{ padding-left: 28px; padding-right: 28px; }
}

/* ═══════════════════════════════════════════════
   BREAKPOINT 2 · Tablet  (max 860px)
═══════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* ── NAV: ocultar menú (hamburger opcional) ── */
  nav { padding: 0 20px; height: 60px; }
  .nav-menu {
    display: none; /* en producción conectar con JS hamburger */
  }

  /* ── HERO agentes-ia ── */
  #hook { min-height: 100svh; padding-top: 60px; }
  .hook-inner { padding: 0 20px; }
  .hook-h1-bad  { font-size: clamp(26px, 8vw, 48px); letter-spacing: -1px; }
  .hook-h1-good { font-size: clamp(28px, 9vw, 52px); letter-spacing: -1px; }
  .hook-sub { font-size: 15px; }
  .hero-visual { display: none; } /* se oculta en móvil, bastante el texto */

  /* ── HERO como-funciona ── */
  .hero-body { padding: 56px 20px; }
  .hero-body h1 { font-size: clamp(30px, 8vw, 52px); }

  /* ── TWIST (agentes-ia) ── */
  #twist .twist-inner {
    flex-direction: column;
    padding: 56px 20px;
    gap: 36px;
  }
  .twist-visual { flex: none; width: 100%; max-width: 420px; margin: 0 auto; }
  .twist-h { font-size: clamp(26px, 7vw, 44px); }

  /* ── STEPS (como-funciona) ── */
  #steps { padding: 56px 20px; }
  .step,
  .step:nth-child(even) { flex-direction: column; }
  .step-img { min-height: 220px; flex: none; width: 100%; }
  .step-body { padding: 28px 20px; }
  .step-body h3 { font-size: clamp(20px, 5vw, 28px); }

  /* ── FEATURES (central-update) ── */
  #features { padding: 56px 20px; }
  .feat,
  .feat:nth-child(even) { flex-direction: column; }
  .feat-img { min-height: 220px; flex: none; width: 100%; }
  .feat-body { padding: 28px 20px; }
  .feat-body h2 { font-size: clamp(20px, 5vw, 28px); }

  /* ── ADVANTAGES (agentes-ia) ── */
  .adv,
  .adv:nth-child(even) { flex-direction: column; }
  .adv-img { min-height: 220px; flex: none; width: 100%; padding: 28px 20px; }
  .adv-body { padding: 28px 20px; }
  .adv-body h2 { font-size: clamp(20px, 5vw, 30px); }

  /* ── GRIDS: 1 col en móvil ── */
  .pain-grid    { grid-template-columns: 1fr; gap: 2px; }
  .uc-grid      { grid-template-columns: 1fr; gap: 2px; }
  .proof-grid   { grid-template-columns: 1fr; gap: 2px; }
  .stats-inner  { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .guarantee-inner { grid-template-columns: 1fr; gap: 24px; }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .process-steps::before { display: none; }

  /* ── COMPARE TABLE ── */
  #compare { padding: 56px 20px; }
  .compare-table { font-size: 11px; }
  .compare-table th,
  .compare-table td { padding: 10px 12px; }
  /* Ocultar columna cloud en móvil muy pequeño — se ve en 860-600 */
  .compare-h { font-size: clamp(20px, 5vw, 32px); }

  /* ── USE CASES ── */
  #usecases { padding: 56px 20px; }
  .uc-card { padding: 28px 20px; }

  /* ── PROCESS ── */
  #process { padding: 60px 20px; }
  .process-h { font-size: clamp(20px, 5vw, 32px); }
  .proc-step { padding: 0 8px; }

  /* ── PROOF ── */
  #proof { padding: 56px 20px; }

  /* ── STATS ── */
  .stats-bar { padding: 32px 20px; }
  .stat-item strong { font-size: clamp(22px, 6vw, 34px); }

  /* ── PROBLEM ── */
  #problem { padding: 56px 20px; }
  .problem-h { font-size: clamp(22px, 5vw, 36px); }
  .pain-num  { font-size: clamp(28px, 7vw, 44px); }

  /* ── PROVIDERS / APPS ── */
  .providers-section { padding: 56px 20px; }
  .logo-grid { gap: 10px; }
  .logo-pill { font-size: 11px; padding: 8px 14px; }

  /* ── MERCHANT ── */
  .merchant-section { padding: 56px 20px; }
  .merchant-inner {
    flex-direction: column;
    gap: 32px;
  }
  .merchant-img { flex: none; width: 100%; max-width: 380px; margin: 0 auto; }

  /* ── CTA SECTIONS ── */
  #cta        { padding: 56px 20px; }
  .cta-section{ padding: 56px 20px; }
  .cta-btns   { flex-direction: column; align-items: center; }
  .btn-ghost  { margin-left: 0; }

  /* ── FINAL CTA (agentes-ia) ── */
  #final-cta { padding: 80px 20px; }
  .fcta-h    { font-size: clamp(24px, 6vw, 44px); letter-spacing: -1px; }
  .fcta-sub  { font-size: 14px; }
  .cta-box   { max-width: 100%; }
  .fcta-badges { flex-direction: column; align-items: center; gap: 12px; }

  /* ── STEPS HEADER / FEATURES HEADER ── */
  .steps-header { margin-bottom: 40px; }
  .steps-header h2 { font-size: clamp(22px, 5vw, 36px); }
  .compare-h,
  .uc-h,
  .proof-h,
  .process-h { font-size: clamp(20px, 5vw, 32px); }

  /* ── INTRO STRIP ── */
  .intro-strip { padding: 36px 20px; }

  /* ── GUARANTEE ── */
  .guarantee { padding: 36px 20px; }

  /* ── FOOTER ── */
  .ft-bottom { flex-direction: column; gap: 16px; }

  /* ── SVG: que no desborden ── */
  .step-svg,
  .feat-svg,
  .adv-svg { max-width: 100%; height: auto; }
}

/* ═══════════════════════════════════════════════
   BREAKPOINT 3 · Móvil  (max 600px)
═══════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ── TIPOGRAFÍA hero ── */
  .hook-h1-good { font-size: clamp(26px, 10vw, 42px); }
  .hook-sub { font-size: 14px; }
  .hook-tension { font-size: 9px; letter-spacing: .12em; flex-wrap: wrap; }

  /* ── BOTONES full width ── */
  .btn-g,
  .btn-ghost,
  .cta-wa,
  .cta-alt { width: 100%; justify-content: center; }
  .hook-ctas { flex-direction: column; gap: 12px; width: 100%; }

  /* ── STATS: 2x2 → 1 col ── */
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-item strong { font-size: 28px; }
  .stat-item span   { font-size: 11px; }

  /* ── COMPARE: ocultar col cloud, mostrar solo local ── */
  .compare-table th:nth-child(2),
  .compare-table td:nth-child(2) { display: none; }
  .compare-table th:first-child { font-size: 9px; }
  .compare-table th:nth-child(3) { font-size: 9px; }

  /* ── PAIN CARDS ── */
  .pain-num { font-size: 36px; }
  .pain-card { padding: 24px 20px; }

  /* ── UC CARDS ── */
  .uc-card { padding: 24px 18px; }

  /* ── PROOF CARDS ── */
  .proof-card { padding: 24px 18px; }
  .proof-quote { font-size: 12px; }

  /* ── PROCESS: 1 col ── */
  .process-steps { grid-template-columns: 1fr; gap: 28px; }
  .proc-circle   { width: 48px; height: 48px; font-size: 14px; }

  /* ── LOGO PILLS ── */
  .logo-pill { font-size: 10px; padding: 7px 12px; }

  /* ── STEP TAGS ── */
  .step-tags,
  .feat-tags,
  .adv-tags { gap: 6px; }
  .step-tag,
  .feat-tag,
  .adv-tag { font-size: 9px; padding: 3px 8px; }

  /* ── CTA BOX ── */
  .cta-box-top { padding: 18px 20px; }
  .cta-box-body { padding: 18px 20px; }
  .fcta-badges .fcta-badge { width: 100%; justify-content: center; }

  /* ── FOOTER ── */

  /* ── MERCHANT ── */
  .merchant-body h2 { font-size: clamp(20px, 6vw, 28px); }

  /* ── SECTIONS padding mínimo ── */
  #problem,
  #compare,
  #usecases,
  #process,
  #proof,
  #final-cta,
  #cta,
  .cta-section,
  .providers-section,
  .merchant-section,
  .guarantee,
  .stats-bar,
  .intro-strip,

  /* ── HERO body ── */
  .hero-body { padding: 48px 16px; }

  /* ── SVG altura en móvil ── */
  .step-img,
  .feat-img,
  .adv-img { min-height: 200px; }
}

/* ═══════════════════════════════════════════════
   BREAKPOINT 4 · Móvil pequeño  (max 380px)
═══════════════════════════════════════════════ */
@media (max-width: 380px) {

  .hook-h1-good { font-size: 26px; }
  .hook-h1-bad  { font-size: 22px; }
  .stat-item strong { font-size: 24px; }
  .stats-inner { grid-template-columns: 1fr; }
  .pain-num { font-size: 30px; }

  .step-body,
  .feat-body,
  .adv-body { padding: 22px 14px; }
  .step-body h3,
  .feat-body h2,
  .adv-body h2 { font-size: 20px; }

  .compare-table td,
  .compare-table th { padding: 8px 8px; font-size: 10px; }

  .hero-body h1 { font-size: 28px; }
  .twist-h { font-size: 26px; }
  .fcta-h  { font-size: 24px; }
  .compare-h,
  .uc-h,
  .proof-h { font-size: 20px; }
}

/* ═══════════════════════════════════════════════
   NAV HAMBURGER — activar con JS si se necesita
   Añadir <button id="nav-toggle"> en el HTML
═══════════════════════════════════════════════ */
@media (max-width: 860px) {
  #nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
  }
  #nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(245,244,239,0.8);
    border-radius: 2px;
    transition: all .25s;
  }
  #nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle.open span:nth-child(2) { opacity: 0; }
  #nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 24px 24px 32px;
    gap: 20px;
    z-index: 800;
  }
  .nav-menu.open .nav-btn {
    text-align: center;
    padding: 12px;
  }
}

/* ═══════════════════════════════════════════════
   MODOS DE DESPLIEGUE — agentes-ia
═══════════════════════════════════════════════ */
.deploy{padding:72px 56px;background:var(--bg2);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.deploy-inner{max-width:1000px;margin:0 auto}
.deploy-eyebrow{font-family:var(--mono,monospace);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--green);margin-bottom:14px}
.deploy h2{font-size:clamp(24px,3vw,38px);font-weight:200;line-height:1.2;margin-bottom:8px}
.deploy h2 em{font-style:italic;color:var(--green)}
.deploy-sub{font-size:13px;color:var(--gray);line-height:1.8;max-width:620px}
.deploy-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin-top:30px}
.deploy-card{background:var(--bg3);border:1px solid var(--border);padding:28px 26px}
.deploy-tag{font-family:var(--mono,monospace);font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(110,168,50,0.8);margin-bottom:10px}
.deploy-card h3{font-size:18px;font-weight:400;margin-bottom:8px}
.deploy-card p{font-size:12.5px;color:var(--gray);line-height:1.8}
@media(max-width:860px){
  .deploy{padding:56px 20px}
  .deploy-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .deploy-card{padding:22px 18px}
}