:root {
  --ink: #14101f;
  --muted: #5b5670;
  --brand: #321f50;
  --accent: #6fc7b2;
  --surface: #ffffff;
  --background: #f6f5fa;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 5vw, 64px);
}

.brand { font-weight: 800; font-size: 1.25rem; color: var(--brand); text-decoration: none; }

.hero, .section, .thanks {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) clamp(16px, 5vw, 64px);
}

.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; margin: 0 0 16px; color: var(--brand); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--brand); color: #fff; }
.button.secondary { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.button:disabled { opacity: .6; cursor: progress; }

.demo-form {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 520px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
}
.demo-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.demo-form input, .demo-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #d7d3e3;
  border-radius: 10px;
}
.form-note { margin: 0; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.footer { padding: 32px clamp(16px, 5vw, 64px); color: var(--muted); font-size: .9rem; }

h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.15; margin: 0 0 16px; color: var(--brand); }
h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--ink); }
.section > p { max-width: 65ch; color: var(--muted); font-size: 1.05rem; }
.hero .actions { margin-top: 28px; }

.problem { border-top: 1px solid #e4e1ee; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--brand);
  font-weight: 800;
}
.steps p, .cards p { margin: 0; color: var(--muted); }

.cards {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.cards li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid var(--accent);
}
.integrations { margin-top: 24px; }

.faq details {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 12px;
  max-width: 760px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.contact .demo-form { margin-top: 24px; }
.footer a { color: var(--brand); }

.section { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(28px, 5vw, 56px); }
.hero { padding-bottom: clamp(32px, 6vw, 72px); }
.problem { padding-top: clamp(40px, 6vw, 72px); }

@media (min-width: 600px) {
  .steps, .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .hero, .section { max-width: 1100px; }
}

/* Logo */
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 40px; width: auto; }
.brand-placeholder { height: 40px; }
.brand-placeholder { width: 94px; padding: 4px; }

/* Hero con chat */
.hero { display: grid; gap: 40px; align-items: center; }
.chat {
  margin: 0;
  width: 100%;
  max-width: 380px;
  justify-self: center;
  border-radius: 22px;
  overflow: hidden;
  background: #efeae2;
  box-shadow: 0 24px 60px rgba(50, 31, 80, .18);
}
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #0b5c4d; color: #fff; }
.chat-bar strong { display: block; font-size: .95rem; }
.chat-bar small { display: block; opacity: .8; font-size: .75rem; }
.chat-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--brand); font-weight: 800; }
.chat-body { display: grid; gap: 8px; padding: 16px 12px; }
.msg {
  position: relative;
  margin: 0;
  max-width: 85%;
  padding: 8px 10px 18px;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.4;
  background: #fff;
  color: #111b21;
}
.msg.in { justify-self: start; border-top-left-radius: 2px; }
.msg.out { justify-self: end; background: #d9fdd3; border-top-right-radius: 2px; }
.msg time { position: absolute; right: 8px; bottom: 3px; font-size: .68rem; color: #667781; }
.chat-crm { margin: 0; padding: 10px 16px; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; text-align: center; }
/* Conversación animada del kit (chat.css): se mantiene el diseño propio del chat. */
.chat { padding: 0; gap: 0; }
.msg time { margin: 0; }
.chat-crm { align-self: stretch; max-width: none; width: auto; border-radius: 0; box-shadow: none; }

/* Foto del problema */
.problem-photo { width: 100%; max-width: 760px; height: auto; margin-top: 24px; border-radius: var(--radius); }
.problem img.problem-photo { display: block; }

/* Oportunidad en el CRM */
.crm {
  margin: 24px 0 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(50, 31, 80, .10);
  overflow: hidden;
  font-size: .9rem;
}
.crm-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #e4e1ee; }
.crm-path { color: var(--muted); font-weight: 600; }
.crm-stages { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.crm-stages li { padding: 4px 10px; border-radius: 999px; background: #f0eef6; color: var(--muted); font-size: .78rem; font-weight: 600; }
.crm-stages .is-current { background: var(--brand); color: #fff; }
.crm-main { display: grid; }
.crm-record { padding: 20px; }
.crm-record h3 { font-size: 1.2rem; color: var(--brand); margin-bottom: 14px; }
.crm-record dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.crm-record dt { color: var(--muted); }
.crm-record dd { margin: 0; font-weight: 600; }
.crm-chatter { padding: 20px; background: #faf9fc; border-top: 1px solid #e4e1ee; }
.crm-chatter p { margin: 0 0 10px; color: var(--ink); }
.crm-chatter strong { display: block; font-size: .78rem; color: var(--muted); }
.crm-chatter-title { font-weight: 700; color: var(--brand) !important; }
.crm-note { padding: 8px 10px; border-radius: 8px; background: #e6f6f1; color: #0b5c4d !important; font-weight: 600; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.2fr 1fr; }
  .crm-main { grid-template-columns: 1fr 1fr; }
  .crm-chatter { border-top: 0; border-left: 1px solid #e4e1ee; }
}

/* Íconos de los pasos */
.step-icon { display: block; width: 28px; height: 28px; margin-bottom: 10px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Foto de contacto */
.contact-photo, .contact img.contact-photo { width: 100%; height: auto; margin-top: 24px; border-radius: var(--radius); }
.contact img.contact-photo { display: block; }

@media (min-width: 860px) {
  .problem { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .problem .problem-photo { margin-top: 0; max-width: none; }
  .faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
  .faq details:first-child { margin-top: 0; }
  .contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .contact .demo-form { margin-top: 0; max-width: none; }
}

:root{--primary:#176b57;--accent:#176b57} .hero{background:linear-gradient(130deg,#f5faf6,#e8f1ec);border-radius:28px;padding:48px;margin-top:30px}.problem-copy{max-width:760px}.chat:before{content:"Conversación ilustrativa";display:block;padding:8px 16px;font-size:12px;color:#64746b}.crm:before{content:"Ejemplo de lead calificado";display:block;padding:12px;font-size:12px}.brand{letter-spacing:-1.5px}@media(max-width:700px){.hero{padding:24px}}