/* ENLAXOS — Landing de Chatbots y Agentes de IA
   CSS propio de esta página: mockup de WhatsApp y bloques de refuerzo. */

/* ── Sección de demostración ──────────────────────────────────────────────── */
.cb-demo { padding: 0 clamp(24px, 8vw, 160px) 92px; }

.cb-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
  margin-top: 32px;
}

@media (max-width: 900px) { .cb-demo-grid { grid-template-columns: 1fr; } }

.cb-notes { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }

.cb-note { display: flex; gap: 15px; align-items: flex-start; }

.cb-note-num {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(0,229,255,.3);
  background: var(--cyan-dim);
  color: var(--cyan);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.cb-note h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 7px; }
.cb-note p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.cb-note strong { color: var(--text); font-weight: 600; }

.cb-note-chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em;
  border-radius: var(--radius-pill); padding: 2px 9px; margin: 0 2px;
  color: #6ee7f5; background: rgba(0,229,255,.1); border: 1px solid rgba(0,229,255,.25);
}

.cb-note-chip.handoff { color: #fcd34d; background: rgba(252,211,77,.1); border-color: rgba(252,211,77,.28); }

/* ── Mockup de WhatsApp ───────────────────────────────────────────────────── */
.wa-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }

.wa-tab {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  cursor: pointer;
  transition: all .2s;
}

.wa-tab:hover { color: var(--white); }
.wa-tab.active { background: var(--cyan); border-color: var(--cyan); color: var(--black); font-weight: 700; }

.wa-phone {
  background: #0b141a;
  border: 1px solid #22323c;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(0,229,255,.08);
  max-width: 430px;
}

@media (max-width: 900px) { .wa-phone { max-width: 100%; } }

.wa-top {
  display: flex; align-items: center; gap: 11px;
  background: #1f2c33;
  padding: 13px 16px;
  border-bottom: 1px solid #22323c;
}

.wa-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #00e5ff 0%, #0891a5 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #04252b;
  flex-shrink: 0;
}

.wa-who { min-width: 0; }
.wa-name { font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: #e9edef; line-height: 1.3; }
.wa-status { font-size: 11.5px; color: #8696a0; display: flex; align-items: center; gap: 5px; }
.wa-dot { width: 6px; height: 6px; border-radius: 50%; background: #06d755; flex-shrink: 0; }

.wa-body {
  padding: 18px 14px 20px;
  min-height: 400px;
  display: flex; flex-direction: column; gap: 9px;
  background-image: radial-gradient(rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 22px 22px;
}

.wa-msg {
  max-width: 82%;
  padding: 8px 11px 6px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 13.7px;
  line-height: 1.5;
  color: #e9edef;
  position: relative;
  animation: waIn .32s ease both;
}

@keyframes waIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.wa-msg.them { background: #202c33; align-self: flex-start; border-top-left-radius: 3px; }
.wa-msg.me   { background: #005c4b; align-self: flex-end;   border-top-right-radius: 3px; }
.wa-msg strong { color: #fff; font-weight: 600; }

.wa-time { display: block; text-align: right; font-size: 10px; color: #ffffff5c; margin-top: 3px; }
.wa-time .tick { color: #53bdeb; letter-spacing: -2px; margin-left: 3px; }

/* Chip de sistema: momento en que el agente consulta datos reales */
.wa-sys {
  align-self: center;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: #6ee7f5;
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.22);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  animation: waIn .32s ease both;
}

.wa-sys svg { width: 11px; height: 11px; flex-shrink: 0; }
.wa-sys.handoff { color: #fcd34d; background: rgba(252,211,77,.08); border-color: rgba(252,211,77,.25); }

.wa-typing { display: flex; gap: 3px; align-self: flex-start; background: #202c33; padding: 11px 13px; border-radius: 9px; border-top-left-radius: 3px; }
.wa-typing span { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: waBlink 1.3s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .18s; }
.wa-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes waBlink { 0%,60%,100% { opacity:.32 } 30% { opacity:1 } }

.wa-foot {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px;
  background: #1f2c33;
  border-top: 1px solid #22323c;
}

.wa-input {
  flex: 1;
  background: #2a3942;
  border-radius: var(--radius-pill);
  padding: 9px 15px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #8696a0;
}

.wa-send {
  width: 33px; height: 33px; border-radius: 50%;
  background: #00a884;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.wa-send svg { width: 15px; height: 15px; color: #0b141a; }

.wa-caption { margin-top: 14px; font-size: 12.5px; line-height: 1.6; color: var(--muted); max-width: 430px; }
.wa-caption strong { color: var(--text); font-weight: 600; }

/* ── Bloque agente vs chatbot ─────────────────────────────────────────────── */
.cb-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
@media (max-width: 860px) { .cb-vs { grid-template-columns: 1fr; } }

.cb-vs-col {
  border-radius: var(--radius-card);
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.cb-vs-col.is-good { border-color: rgba(0,229,255,.28); background: linear-gradient(135deg, rgba(0,229,255,.06) 0%, var(--surface) 60%); }

.cb-vs-tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 16px;
}

.cb-vs-col .cb-vs-tag { color: var(--muted); }
.cb-vs-col.is-good .cb-vs-tag { color: var(--cyan); }

.cb-vs-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cb-vs-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--text); }
.cb-vs-list svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }
.cb-vs-col .cb-vs-list svg { color: #fb7185; }
.cb-vs-col.is-good .cb-vs-list svg { color: var(--cyan); }

/* ── Tres pilares ─────────────────────────────────────────────────────────── */
.cb-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 860px) { .cb-pillars { grid-template-columns: 1fr; } }

.cb-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.cb-pillar-ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.cb-pillar-ico svg { width: 20px; height: 20px; color: var(--cyan); }
.cb-pillar h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.cb-pillar p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.cb-pillar strong { color: var(--text); font-weight: 600; }
