/**
 * @file frontend/public/landing/crm.css
 * @description Estilos de la landing pública comercial de NeuroCRM (WhatsApp CRM & Mensajería Masiva).
 *              Estética clara y editorial sobre los tokens de styles.css: bandeja simulada, flujo de
 *              campañas, diagnóstico multi-línea de Meta, KPIs de auditoría, tabla de reporte y precios.
 * @module Landing / NeuroCRM
 * @dependencies [frontend/public/landing/styles.css, frontend/public/landing/neuroapi.css]
 * @lastModified 2026-09-30 - Cobertura responsive completa (1024/768/480/360px): rejillas a una
 *              columna, tabla de reporte con scroll horizontal contenido, áreas táctiles de 44px
 *              en botones y navegación, y verificación de ausencia de desbordes a 360px.
 *              Sin cambios de paleta ni de estructura respecto al diseño original.
 */

/* =========================================================================
   1. BASE Y UTILIDADES DE SECCIÓN (COMPENSA LA CABECERA FIJA DE 64PX)
   ========================================================================= */
.crm-hero, .crm-strip, .crm-section, .crm-final { scroll-margin-top: 84px; }

/* Tipografía editorial: Inter para texto corrido, Space Grotesk para títulos (vía .section-title y .crm-*) */
.crm-hero, .crm-strip, .crm-section, .crm-final { font-family: var(--font-body); color: var(--ink); background-color: var(--bg); }
.crm-strip, .crm-section-soft { background-color: var(--bg-soft); }
.crm-final { background-color: var(--ink); color: var(--bg); }

.crm-section-head { margin-bottom: 44px; }
.crm-section .section-title { font-weight: 300; margin-bottom: 14px; }
.crm-section-copy .section-sub, .crm-section-head .section-sub { max-width: 720px; font-size: 14.5px; }

.crm-step {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 16px;
}

/* =========================================================================
   2. CABECERA
   ========================================================================= */
.crm-nav-back { display: inline-flex !important; align-items: center; gap: 6px; color: #64748b !important; font-weight: 500; }
@media (min-width: 881px) { .crm-nav-back { white-space: nowrap; } }

/* =========================================================================
   3. HERO
   ========================================================================= */
.crm-hero { padding: 132px 0 72px; background: #ffffff; border-bottom: 1px solid var(--line); }
.crm-hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.crm-hero .hero-title { margin-bottom: 20px; }
.crm-hero .hero-text { max-width: 560px; font-size: 15.5px; margin-bottom: 30px; }
.crm-hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.crm-hero-points { display: grid; gap: 9px; }
.crm-hero-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.crm-hero-points i { color: #2563eb; font-size: 13px; margin-top: 3px; }

/* --- Maqueta editorial de la bandeja (CSS puro) --- */
.crm-hero-visual { min-width: 0; }
.crm-mock { background: #ffffff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -28px rgba(17, 17, 17, 0.22); overflow: hidden; }
.crm-mock-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.crm-mock-line { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.crm-mock-line i { color: #25D366; }

.crm-mock-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.crm-chip-green { color: #15803d; background: #dcfce7; border: 1px solid #bbf7d0; }
.crm-chip-yellow { color: #b45309; background: #fef3c7; border: 1px solid #fde68a; }
.crm-chip-red { color: #b91c1c; background: #fee2e2; border: 1px solid #fecaca; }

.crm-mock-list { display: grid; }
.crm-mock-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f4f4f5; }
.crm-mock-row.is-active { background: #f8fafc; box-shadow: inset 3px 0 0 #2563eb; }

.crm-mock-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}
.crm-avatar-b { background: #fef3c7; color: #b45309; }
.crm-avatar-c { background: #dcfce7; color: #15803d; }
.crm-avatar-d { background: #ede9fe; color: #6d28d9; }

.crm-mock-body { display: grid; gap: 2px; min-width: 0; }
.crm-mock-body strong { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink); }
.crm-mock-body em { font-style: normal; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-mock-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--ink-3); }

.crm-mock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
}

.crm-mock-bubbles { display: grid; gap: 8px; padding: 16px; background: var(--bg-soft); }
.crm-bubble { max-width: 86%; font-size: 12.5px; line-height: 1.5; padding: 9px 13px; border-radius: 12px; }
.crm-bubble i { font-size: 10px; margin-left: 4px; color: #34b7f1; }
.crm-bubble-out { justify-self: end; background: #d9fdd3; color: #111b21; border: 1px solid #c7f2c0; }
.crm-bubble-in { justify-self: start; background: #ffffff; color: var(--ink); border: 1px solid var(--line); }

/* =========================================================================
   4. FRANJA DE BENEFICIOS VERIFICABLES
   ========================================================================= */
.crm-strip { padding: 56px 0; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.crm-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.crm-strip-item { padding-left: 18px; border-left: 1px solid var(--line-2); }

.crm-strip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #2563eb;
  margin-bottom: 12px;
}
.crm-strip-item h3 { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.crm-strip-item p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* =========================================================================
   5. SECCIONES DE CAPACIDAD
   ========================================================================= */
.crm-section { padding: 88px 0; background: #ffffff; border-bottom: 1px solid var(--line); }
.crm-section-soft { background: var(--bg-soft); }
.crm-section-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.crm-check-list { display: grid; gap: 16px; margin-top: 26px; }
.crm-check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.crm-check-list i { color: #2563eb; font-size: 14px; margin-top: 4px; }
.crm-check-list strong { color: var(--ink); font-weight: 600; }

.crm-side-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 4px 20px -10px rgba(17, 17, 17, 0.08);
}
.crm-side-card + .crm-side-card { margin-top: 18px; }
.crm-side-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
}
.crm-side-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 9px; }
.crm-side-card p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.crm-side-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px !important; color: var(--ink-3) !important; }

/* --- Filas de diagnóstico multi-línea --- */
.crm-line-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f4f4f5; }
.crm-line-row:last-of-type { border-bottom: none; }
.crm-line-name { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.crm-line-name i { color: #25D366; }

/* --- Flujo de 4 pasos del envío masivo --- */
.crm-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.crm-flow-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 24px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.crm-flow-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(17, 17, 17, 0.28); }
.crm-flow-num { position: absolute; top: 16px; right: 20px; font-family: var(--font-display); font-size: 1.9rem; font-weight: 300; line-height: 1; color: var(--line-2); }
.crm-flow-card h3 { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; padding-right: 34px; }
.crm-flow-card h3 i { color: #2563eb; font-size: 14px; }
.crm-flow-card p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.crm-flow-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink);
}

/* --- Rejilla de detalles técnicos --- */
.crm-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.crm-detail-grid-2 { margin-top: 28px; }
.crm-detail { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.crm-detail h4 { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 10px; }
.crm-detail h4 i { color: #2563eb; }
.crm-detail p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* --- Pasos numerados de conexión --- */
.crm-steps-list { display: grid; gap: 14px; margin: 26px 0 24px; }
.crm-steps-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.crm-steps-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
}
.crm-note { display: flex; align-items: flex-start; gap: 12px; background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 0 10px 10px 0; padding: 16px 18px; font-size: 13px; line-height: 1.6; color: #1e3a8a; }
.crm-note i { margin-top: 3px; }
.crm-mini-list { display: grid; gap: 9px; margin-top: 4px; }
.crm-mini-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-2); }
.crm-mini-list i { color: #2563eb; font-size: 11px; margin-top: 5px; }

/* =========================================================================
   6. AUDITORÍA: KPIs Y TABLA DE REPORTE
   ========================================================================= */
.crm-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.crm-kpi { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 20px 18px; }
.crm-kpi-label { display: block; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.crm-kpi-value { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.25; }
.crm-kpi-note { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.55; }

.crm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #ffffff; border: 1px solid var(--line); border-radius: 12px; }
.crm-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 12.5px; }
.crm-table-caption { caption-side: top; text-align: left; padding: 14px 18px 12px; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.crm-table th {
  text-align: left;
  padding: 11px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  white-space: nowrap;
}
.crm-table td { padding: 13px 18px; border-bottom: 1px solid #f4f4f5; color: var(--ink-2); vertical-align: middle; }
.crm-table tbody tr:last-child td { border-bottom: none; }
.crm-table tbody tr:hover td { background: #fafafa; }
.crm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--ink); white-space: nowrap; }

.crm-status {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.crm-status-ok { color: #15803d; background: #dcfce7; border: 1px solid #bbf7d0; }
.crm-status-warn { color: #b45309; background: #fef3c7; border: 1px solid #fde68a; }

/* =========================================================================
   7. PRECIOS
   ========================================================================= */
.crm-price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 26px; }
.crm-price-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; }
.crm-price-card-featured { border-color: #bfdbfe; box-shadow: 0 14px 40px -24px rgba(37, 99, 235, 0.45); }

.crm-price-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 16px;
}
.crm-price-tag-blue { color: #1d4ed8; background: #eff6ff; border-color: #dbeafe; }
.crm-price-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; margin-bottom: 12px; }
.crm-price-card p { flex-grow: 1; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; margin-bottom: 20px; }
.crm-price-foot { display: flex; align-items: center; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.crm-price-foot i { color: #2563eb; font-size: 12px; }

/* Tarifa y detalle dentro de la tarjeta de precios.
   Nota importante: `.crm-price-card p` declara `flex-grow: 1` para empujar el pie hacia abajo.
   Estos dos párrafos deben anularlo; si no, el hueco sobrante se reparte entre los tres y el pie
   deja de quedar abajo. Solo el de detalle conserva el crecimiento. */
.crm-price-card .crm-price-amount {
  flex-grow: 0;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
.crm-price-card .crm-price-amount strong { font-weight: 700; color: #2563eb; }
.crm-price-card .crm-price-amount span { font-size: 0.85rem; font-weight: 500; color: var(--ink-3); }
.crm-price-card .crm-price-detail {
  flex-grow: 1;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.crm-price-card .crm-price-detail strong { font-weight: 600; color: var(--ink); }
.crm-price-disclaimer { display: flex; align-items: flex-start; gap: 12px; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; max-width: 860px; }
.crm-price-disclaimer i { color: #2563eb; margin-top: 4px; }
.crm-price-disclaimer a { color: #2563eb; font-weight: 600; border-bottom: 1px solid rgba(37, 99, 235, 0.35); }
.crm-price-disclaimer a:hover { color: #1d4ed8; }

/* =========================================================================
   8. CTA FINAL
   ========================================================================= */
.crm-final {
  background: var(--ink);
  color: #ffffff;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.crm-final::before {
  content: "";
  position: absolute;
  right: -150px;
  top: -150px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.crm-final::after {
  content: "";
  position: absolute;
  left: -110px;
  bottom: -130px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.crm-final-inner { position: relative; z-index: 1; max-width: 780px; }
.crm-final .eyebrow { color: #b5b5b5; margin-bottom: 16px; }
.crm-final .section-title { margin-bottom: 16px; }
.crm-final-text { max-width: 640px; margin-bottom: 0; font-size: 15px; }
.crm-final-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* =========================================================================
   9. RESPONSIVE · TABLET (<= 1024PX)
   ========================================================================= */
@media (max-width: 1024px) {
  .crm-hero { padding: 120px 0 64px; }
  .crm-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .crm-hero .hero-text { max-width: 100%; }
  .crm-hero-visual { max-width: 560px; }

  .crm-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .crm-strip-item:nth-child(3) { border-left: none; padding-left: 0; }

  .crm-section { padding: 72px 0; }
  .crm-section-inner { grid-template-columns: 1fr; gap: 36px; }
  .crm-flow { grid-template-columns: repeat(2, 1fr); }
  .crm-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .crm-price-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   10. RESPONSIVE · MÓVIL (<= 768PX)
   ========================================================================= */
@media (max-width: 768px) {
  /* El panel desplegable reutiliza el patrón .nav / .nav.open de styles.css */
  .crm-nav-back { color: var(--ink-2) !important; justify-content: flex-start; }

  .crm-hero { padding: 104px 0 52px; }
  .crm-hero .hero-title { font-size: clamp(1.75rem, 8vw, 2.4rem); }
  .crm-hero .hero-text { font-size: 14.5px; margin-bottom: 26px; }
  .crm-hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }

  /* Área táctil mínima de 48px en todos los botones de la landing */
  .crm-hero .btn, .crm-hero-cta .btn, .crm-final-actions .btn { width: 100%; min-height: 48px; }

  .crm-mock-row { grid-template-columns: 34px 1fr auto; gap: 10px; padding: 12px 13px; }
  .crm-mock-avatar { width: 34px; height: 34px; font-size: 11px; }
  .crm-mock-body em { font-size: 11.5px; }
  .crm-mock-bubbles { padding: 13px; }
  .crm-bubble { max-width: 94%; font-size: 12px; }

  .crm-strip { padding: 46px 0; }
  .crm-strip-grid { grid-template-columns: 1fr; gap: 22px; }
  .crm-strip-item { border-left: none; padding-left: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .crm-strip-item:last-child { border-bottom: none; padding-bottom: 0; }

  .crm-section { padding: 60px 0; }
  .crm-section-head { margin-bottom: 32px; }
  .crm-section-copy .section-sub, .crm-section-head .section-sub { font-size: 14px; }
  .crm-flow { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .crm-flow-card { padding: 26px 20px 22px; }
  .crm-detail-grid { grid-template-columns: 1fr; gap: 14px; }
  .crm-kpi-grid { grid-template-columns: 1fr; gap: 12px; }
  .crm-side-card { padding: 22px 20px; }
  .crm-table-wrap { margin: 0 -4px; }
  .crm-table th, .crm-table td { padding: 11px 14px; }
  .crm-price-card { padding: 26px 22px; }
  .crm-final { padding: 64px 0; }
  .crm-final-actions { flex-direction: column; align-items: stretch; margin-top: 28px; }

  /* Áreas táctiles: los enlaces sueltos y las píldoras del diagnóstico suben a
     44px de alto. Nota: esta landing no incluye la barra fija `.wa-bar`, por eso
     el CTA final no reserva espacio inferior extra. */
  .crm-price-disclaimer a { display: inline-flex; align-items: center; min-height: 44px; }
  .crm-mock-chip { min-height: 24px; }
}

/* =========================================================================
   11. RESPONSIVE · MÓVIL COMPACTO (<= 480PX)
   ========================================================================= */
@media (max-width: 480px) {
  .crm-hero { padding: 96px 0 44px; }
  .crm-hero .hero-title { font-size: clamp(1.55rem, 9vw, 1.95rem); letter-spacing: 0.005em; }
  .crm-hero .hero-text { font-size: 13.5px; }
  .crm-hero-points li { font-size: 12.5px; }

  .crm-mock-topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .crm-mock-line { font-size: 11.5px; }
  .crm-mock-row { grid-template-columns: 30px 1fr auto; gap: 9px; padding: 11px; }
  .crm-mock-avatar { width: 30px; height: 30px; font-size: 10px; }
  .crm-mock-body strong { font-size: 12px; }
  .crm-mock-body em { font-size: 11px; }

  .crm-step { font-size: 9.5px; letter-spacing: 0.14em; padding: 4px 10px; }
  .crm-section { padding: 50px 0; }

  .crm-section-copy .section-sub, .crm-section-head .section-sub,
  .crm-detail p, .crm-flow-card p, .crm-side-card p, .crm-price-card p { font-size: 13px; }
  .crm-check-list li, .crm-steps-list li, .crm-note { font-size: 13px; }

  .crm-kpi { padding: 18px 16px 16px; }
  .crm-kpi-value { font-size: 14px; }

  /* Tablas largas con desplazamiento horizontal controlado */
  .crm-table { min-width: 560px; font-size: 12px; }
  .crm-table-caption { padding: 12px 14px 10px; font-size: 9.5px; }

  .crm-price-card h3 { font-size: 1.05rem; }
  .crm-final { padding: 54px 0; }
  .crm-final .section-title { font-size: clamp(1.5rem, 8.5vw, 1.95rem); }
  .crm-final-actions .btn { min-height: 48px; }
  .nc-legal-footer-inner { justify-content: flex-start; }
}

/* =========================================================================
   12. RESPONSIVE · MÓVIL MUY COMPACTO (<= 360PX)
   ========================================================================= */
@media (max-width: 360px) {
  .crm-hero { padding: 90px 0 40px; }
  .crm-hero .hero-title { font-size: clamp(1.4rem, 9.5vw, 1.75rem); }
  .crm-hero .hero-text { font-size: 13px; }

  /* La maqueta de bandeja se comprime al mínimo sin perder legibilidad. */
  .crm-mock-row { grid-template-columns: 28px 1fr auto; gap: 8px; padding: 10px; }
  .crm-mock-avatar { width: 28px; height: 28px; font-size: 9.5px; }
  .crm-bubble { font-size: 11.5px; }

  .crm-section { padding: 44px 0; }
  .crm-flow-card, .crm-side-card, .crm-price-card { padding: 20px 16px; }
  .crm-kpi { padding: 16px 14px; }

  /* Tablas: se estrecha el ancho mínimo para que el desplazamiento sea menor. */
  .crm-table { min-width: 520px; }
  .crm-table th, .crm-table td { padding: 10px 12px; }
}

/* =========================================================================
   13. BLINDAJE ANTI-DESBORDE (cualquier ancho)
   Ninguna imagen, tabla, bloque de código ni hijo de rejilla puede exceder
   el ancho del contenedor: es lo que provoca el scroll horizontal fantasma.
   ========================================================================= */
.crm-hero img, .crm-hero video, .crm-hero svg { max-width: 100%; height: auto; }
.crm-flow, .crm-detail-grid, .crm-kpi-grid, .crm-price-grid, .crm-strip-grid { min-width: 0; }
.crm-flow > *, .crm-detail-grid > *, .crm-kpi-grid > *, .crm-price-grid > *,
.crm-strip-grid > *, .crm-section-inner > *, .crm-hero-inner > * { min-width: 0; }
.crm-section, .crm-section-copy, .crm-side-card, .crm-table-wrap { max-width: 100%; }
.crm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Enlaces y textos largos (rutas de API, correos) no deben empujar el ancho de la página. */
body, main { overflow-wrap: break-word; }
