/* Chambeabot landing — single-file stylesheet
 * Dark-first, mobile responsive, accent color #10b981 (emerald).
 */

:root {
  color-scheme: dark;
  --bg: #0a0e1a;
  --bg-elevated: #131826;
  --bg-card: #1a2032;
  --border: #2a3148;
  --border-strong: #3a4263;
  --text: #f1f4f9;
  --text-muted: #8a93b0;
  --accent: #10b981;
  --accent-hover: #0ea372;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --whatsapp: #25d366;
  --instagram: #e1306c;
  --messenger: #0084ff;
  --gmail: #ea4335;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.6);
  --max-width: 1180px;
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
               "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img, svg { display: block; max-width: 100%; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* ── Top nav ─────────────────────────────────────────── */

.top-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.0625rem; color: var(--text);
  letter-spacing: -0.01em;
}
.brand-dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  color: #0a0e1a; font-weight: 800; font-size: 0.875rem;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.9375rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #0a0e1a;
  padding: 9px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--accent-hover); color: #0a0e1a; transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ── Hero ────────────────────────────────────────────── */

.hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -10%; left: -10%;
  width: 50%; height: 70%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 56px; align-items: center; position: relative; z-index: 1;
}
@media (max-width: 920px) {
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1; letter-spacing: -0.025em;
  margin: 0 0 22px;
}
h1 .highlight {
  background: linear-gradient(120deg, var(--accent), #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: 1.1875rem; color: var(--text-muted);
  margin: 0 0 32px; max-width: 540px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 12px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: all var(--transition); border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #0a0e1a; }
.btn-primary:hover { background: var(--accent-hover); color: #0a0e1a; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-card); color: var(--text); }
.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }
.trust-row {
  display: flex; gap: 28px; margin-top: 40px;
  flex-wrap: wrap; color: var(--text-muted); font-size: 0.875rem;
}
.trust-row strong { color: var(--text); }

/* Hero illustration */
.chat-mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.chat-mock-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--whatsapp), #128c7e);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.875rem;
}
.chat-name { font-weight: 600; }
.chat-status { font-size: 0.8125rem; color: var(--accent); }
.bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 14px;
  font-size: 0.9375rem; line-height: 1.45;
  margin: 6px 0;
}
.bubble.them { background: var(--bg-card); border-bottom-left-radius: 4px; }
.bubble.you { background: #075e54; color: white; border-bottom-right-radius: 4px;
              margin-left: auto; border: 1px solid #0a8a76; }
.bubble.bot {
  background: var(--accent-soft); color: var(--text);
  border-bottom-left-radius: 4px;
  border-left: 2px solid var(--accent);
}
.bubble-time { font-size: 0.6875rem; opacity: 0.5; margin-top: 2px; }
.live-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent);
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── Section headings ─────────────────────────────────── */

.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em; line-height: 1.18; margin: 0 0 16px;
}
.section-header p { color: var(--text-muted); font-size: 1.0625rem; margin: 0; }

/* ── Pain section (¿te suena esto?) ──────────────────── */

.pain { background: var(--bg-elevated); }
.pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 920px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform var(--transition), border-color var(--transition);
}
.pain-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.pain-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.pain-card h3 { margin: 0 0 10px; font-size: 1.125rem; }
.pain-card p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }

/* ── Services / Channels grid ─────────────────────────── */

.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 920px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .services-grid { grid-template-columns: 1fr; } }
.service {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.service:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: white;
  margin-bottom: 16px;
}
.service-icon.wa { background: var(--whatsapp); }
.service-icon.ig { background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.service-icon.ms { background: var(--messenger); }
.service-icon.gm { background: var(--gmail); }
.service h3 { margin: 0 0 8px; font-size: 1.0625rem; }
.service p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }

/* ── CRM comparison section ──────────────────────────── */

.crm-comp { background: var(--bg-elevated); }
.crm-table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.crm-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.crm-table th, .crm-table td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.crm-table th {
  background: var(--bg-elevated); color: var(--text-muted);
  font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.crm-table td:first-child, .crm-table th:first-child { color: var(--text); font-weight: 500; }
.crm-table tr:last-child td { border-bottom: none; }
.crm-table .check { color: var(--accent); font-weight: 700; }
.crm-table .dash { color: var(--text-muted); opacity: 0.4; }
.crm-cta { text-align: center; margin-top: 36px; }

/* ── Pricing grid ────────────────────────────────────── */

.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 980px) { .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.plan {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -24px rgba(16, 185, 129, 0.4);
}
.plan .badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--accent); color: #0a0e1a;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.plan-tier { font-size: 0.8125rem; color: var(--accent); font-weight: 700;
             letter-spacing: 0.06em; text-transform: uppercase; }
.plan-name { font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.plan-desc { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0; }
.plan-price .amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
.plan-price .currency { font-size: 1rem; color: var(--text-muted); }
.plan-price .period { font-size: 0.9375rem; color: var(--text-muted); }
.plan-features { list-style: none; padding: 0; margin: 8px 0 18px;
                 display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features li::before {
  content: "✓"; color: var(--accent); font-weight: 700;
  margin-top: 1px; flex-shrink: 0;
}
.plan-cta { margin-top: auto; }
.plan-cta .btn { width: 100%; }

/* ── How it works ─────────────────────────────────────── */

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  counter-reset: step;
}
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: relative; counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -16px; left: 24px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #0a0e1a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
  box-shadow: 0 0 0 4px var(--bg);
}
.step h3 { margin: 14px 0 6px; font-size: 1.0625rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }

/* ── Demo / Calendar CTA ─────────────────────────────── */

.demo { background: linear-gradient(135deg, var(--accent-soft), rgba(14, 165, 233, 0.06));
        text-align: center; }
.demo h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 14px; }
.demo p { font-size: 1.125rem; color: var(--text-muted); margin: 0 auto 28px; max-width: 560px; }
.demo-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px;
  margin: 36px auto 0; text-align: left;
}
@media (max-width: 720px) { .demo-cards { grid-template-columns: 1fr; } }
.demo-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; gap: 14px;
  transition: all var(--transition);
}
.demo-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.demo-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.125rem; font-weight: 700;
}
.demo-card h3 { margin: 0 0 2px; font-size: 1rem; }
.demo-card p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }

/* ── FAQ ─────────────────────────────────────────────── */

.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 980px; margin: 0 auto;
}
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
.faq {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px;
}
.faq h3 { margin: 0 0 10px; font-size: 1rem; }
.faq p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }

/* ── Lead form ───────────────────────────────────────── */

.lead-section { background: var(--bg-elevated); }
.lead-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  max-width: 560px; margin: 0 auto;
}
.lead-card h2 { margin: 0 0 8px; font-size: 1.5rem; }
.lead-card p.lead-sub { color: var(--text-muted); margin: 0 0 24px; font-size: 0.9375rem; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.9375rem;
  transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.field textarea { min-height: 80px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.lead-status {
  margin-top: 14px; padding: 12px 14px;
  border-radius: 10px; font-size: 0.9375rem;
  display: none;
}
.lead-status.success {
  display: block; background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.lead-status.error {
  display: block; background: rgba(239, 68, 68, 0.1); color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Footer ──────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-size: 0.8125rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  margin: 0 0 14px; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.875rem;
}

/* ── Utilities ───────────────────────────────────────── */

.gradient-text {
  background: linear-gradient(120deg, var(--accent), #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}