/* ── Autofocus CRM — Landing Page Styles ──────────────────────────────────── */
/* Extiende styles.css sin sobreescribir estilos globales                      */

/* Hero — fondo específico de CRM */
.af-hero .hbg {
  background:
    linear-gradient(135deg, rgba(7,18,29,.88) 0%, rgba(20,40,55,.72) 55%, rgba(30,50,65,.82) 100%),
    url('../img/fondo-crm.png') center/cover no-repeat;
}

/* ── Features principales (6 items) ── */
.af-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.af-card {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.af-card:hover { border-color: rgba(246,200,49,.35); transform: translateY(-2px); }
.af-card-num {
  font-family: var(--fb);
  font-size: 36px;
  color: rgba(246,200,49,.2);
  line-height: 1;
  margin-bottom: 12px;
}
.af-card-title {
  font-family: var(--fb);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}
.af-card-desc { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ── Tags extras ── */
.af-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.af-tag {
  background: rgba(246,200,49,.08);
  border: 1px solid rgba(246,200,49,.2);
  color: var(--gold);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--fb);
}

/* ── Two-column layout ── */
.af-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 768px) { .af-two { grid-template-columns: 1fr; gap: 32px; } }

.af-checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.af-checklist li {
  color: var(--muted);
  font-size: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.af-checklist li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.af-checklist li:last-child { border-bottom: none; }

/* ── Autobot ── */
.af-autobot {
  background: linear-gradient(135deg, rgba(37,211,102,.08), rgba(37,211,102,.03));
  border: 1px solid rgba(37,211,102,.2);
  border-radius: 16px;
  padding: 40px;
  margin-top: 8px;
}
.af-channels { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.af-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.25);
  border-radius: 8px;
  padding: 8px 16px;
  color: #25D366;
  font-size: 13px;
  font-family: var(--fb);
}

/* ── Características destacadas ── */
.af-dest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.af-dest-item {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
  transition: border-color .2s;
}
.af-dest-item:hover { border-color: rgba(246,200,49,.3); }
.af-dest-icon { font-size: 26px; margin-bottom: 10px; }
.af-dest-title { font-family: var(--fb); font-size: 13px; color: var(--text); }
.af-dest-desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* ── Capacidades (3 columnas) ── */
.af-caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.af-cap-col {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.af-cap-title {
  font-family: var(--fb);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.af-cap-list { list-style: none; padding: 0; margin: 0; }
.af-cap-list li {
  color: var(--muted);
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 14px;
  position: relative;
}
.af-cap-list li:last-child { border-bottom: none; }
.af-cap-list li::before { content: '→'; color: rgba(246,200,49,.5); position: absolute; left: 0; }

/* ── Problemas sin CRM ── */
.af-problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.af-problem {
  background: rgba(224,80,21,.05);
  border: 1px solid rgba(224,80,21,.15);
  border-radius: 12px;
  padding: 24px;
}
.af-problem-title { font-family: var(--fb); font-size: 14px; color: #e05015; margin-bottom: 8px; }
.af-problem-desc { color: var(--muted); font-size: 13px; line-height: 1.65; }

/* ── Chat IA mockup ── */
.af-chat {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  font-size: 13px;
}
.af-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(246,200,49,.06);
  border-bottom: 1px solid var(--border);
  font-family: var(--fb);
  font-size: 13px;
  color: var(--text);
}
.af-chat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.af-chat-badge {
  margin-left: auto;
  background: rgba(246,200,49,.15);
  border: 1px solid rgba(246,200,49,.3);
  color: var(--gold);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .08em;
}
.af-chat-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.af-chat-msg {
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.55;
  max-width: 88%;
}
.af-chat-user {
  background: rgba(255,96,34,.1);
  border: 1px solid rgba(255,96,34,.15);
  color: var(--text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.af-chat-bot {
  background: rgba(246,200,49,.08);
  border: 1px solid rgba(246,200,49,.15);
  color: var(--muted);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.af-chat-bot strong { color: var(--gold); font-weight: 500; }
.af-chat-input {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  color: rgba(160,180,192,.4);
  font-size: 12px;
  font-style: italic;
}

/* ── FAQ ── */
.af-faq { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.af-faq details {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.af-faq details[open] { border-color: rgba(246,200,49,.3); }
.af-faq summary {
  padding: 18px 24px;
  font-family: var(--fb);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
.af-faq details[open] summary::after { content: '−'; }
.af-faq .af-faq-body { padding: 0 24px 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ── CTA final ── */
.af-cta-section {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(180deg, transparent, rgba(246,200,49,.04));
}
.af-cta-section h2 {
  font-family: var(--fb);
  font-size: clamp(28px, 4vw, 52px);
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: .03em;
}
.af-cta-section p { color: var(--muted); margin-bottom: 36px; max-width: 480px; margin-inline: auto; }
