/* ────────────────────────────────────────────────────────────────────────────
   agente.css — Estilos para /agente-conversacional landing page
   Complementa styles.css (no duplica clases globales)
   Tipografía de página: DM Serif Display (display) + DM Sans (body global)
──────────────────────────────────────────────────────────────────────────── */

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

/* Fondo sin imagen: gradiente oscuro + patrón de puntos (datos estructurados) */
.ac-hero .hbg {
  background:
    radial-gradient(rgba(138, 165, 184, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #07121d 0%, #0f2d3d 55%, #162f3e 100%);
  background-size: 24px 24px, 100% 100%;
}

/* Layout split: texto a la izquierda, tarjeta a la derecha */
.ac-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.ac-h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--light);
  margin-bottom: 24px;
}
.ac-h1 em {
  font-style: italic;
  color: rgba(244, 241, 236, 0.55);
}

.ac-hero-body {
  font-size: 14px;
  line-height: 1.82;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ── Tarjeta de interfaz — elemento signature ──────────────────────────── */
/*
 * Muestra en vivo lo que el servicio hace: tabla de BD a la izquierda,
 * conversación WhatsApp a la derecha respondiendo a consulta en lenguaje natural.
 */
.ac-iface-card {
  background: rgba(11, 35, 48, 0.9);
  border: 1px solid var(--border);
  overflow: hidden;
}

.ac-topbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 45, 61, 0.5);
}
.ac-tb-dot { display: inline-block; width: 8px; height: 8px; }
.ac-dot-orange { background: var(--orange); }
.ac-dot-gold   { background: var(--gold); }
.ac-dot-dim    { background: rgba(138,165,184,0.25); }
.ac-tb-label {
  margin-left: 8px;
  font-size: 9px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.06em;
  color: rgba(138, 165, 184, 0.38);
}

.ac-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* DB side */
.ac-db {
  padding: 16px 14px;
  border-right: 1px solid var(--border);
}
.ac-sec-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(138, 165, 184, 0.4);
  margin-bottom: 10px;
  font-family: var(--fm);
}

.ac-dbtable { width: 100%; border-collapse: collapse; }
.ac-dbtable th {
  font-size: 7.5px;
  font-family: var(--fm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(138, 165, 184, 0.5);
  text-align: left;
  padding: 0 4px 6px;
  border-bottom: 1px solid rgba(138, 165, 184, 0.14);
}
.ac-dbtable td {
  font-size: 9px;
  font-family: var(--fm);
  color: var(--muted);
  padding: 5px 4px;
  border-bottom: 1px solid rgba(138, 165, 184, 0.05);
}
.ac-row-match td            { color: rgba(244, 241, 236, 0.9); }
.ac-row-match td:first-child { color: var(--gold); }
.ac-st-ok  { color: #4EC58A !important; }
.ac-st-ocp { color: rgba(255, 96, 34, 0.75) !important; }

/* Conversation side */
.ac-conv {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ac-bubble {
  font-size: 10px;
  line-height: 1.55;
  padding: 8px 10px;
}
.ac-bubble-q {
  background: rgba(138, 165, 184, 0.06);
  border: 1px solid rgba(138, 165, 184, 0.1);
  color: rgba(244, 241, 236, 0.6);
}
.ac-bubble-a {
  background: rgba(255, 96, 34, 0.06);
  border: 1px solid rgba(255, 96, 34, 0.16);
  color: var(--light);
}
.ac-bubble-a strong { color: var(--orange); font-weight: 500; }
.ac-bubble-a small {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  color: var(--muted);
}

/* Input row */
.ac-inputrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
}
.ac-placeholder {
  font-size: 9px;
  font-family: var(--fm);
  color: rgba(138, 165, 184, 0.28);
  flex: 1;
}
.ac-cursor {
  display: inline-block;
  width: 5px;
  height: 11px;
  background: var(--orange);
  animation: ac-blink 1.1s step-end infinite;
}
@keyframes ac-blink { 50% { opacity: 0; } }

.ac-card-caption {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(138, 165, 184, 0.22);
  text-align: right;
  font-family: var(--fm);
}

/* ── El principio ───────────────────────────────────────────────────────── */
.ac-principio-wrap { max-width: 740px; }

.ac-h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--light);
  margin-bottom: 32px;
}

.ac-prose {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 22px;
}
.ac-prose:last-child { margin-bottom: 0; }
.ac-prose strong { color: var(--light); font-weight: 500; }

/* ── Casos reales ────────────────────────────────────────────────────────── */
.ac-casos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 52px;
}

.ac-caso {
  background: var(--bg);
  padding: 44px 40px;
}
.ac-caso p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.84;
  margin-bottom: 14px;
}
.ac-caso p:last-child { margin-bottom: 0; }

.ac-caso-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  font-family: var(--fm);
}
.ac-caso-tag--orange { color: var(--orange); }

.ac-caso-rule {
  width: 28px;
  height: 2px;
  background: var(--orange);
  margin: 14px 0 20px;
}
.ac-caso-rule--gold { background: var(--gold); }

.ac-caso-h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.22;
  color: var(--light);
  margin-bottom: 20px;
}

/* ── Para qué empresa — criterios ──────────────────────────────────────── */
.ac-criterios {
  border-top: 1px solid var(--border);
  margin-top: 52px;
}

.ac-criterio {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.ac-criterio-n {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  color: rgba(246, 200, 49, 0.16);
  text-align: right;
  padding-top: 4px;
}

.ac-criterio p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.84;
  padding-top: 8px;
  margin: 0;
}
.ac-criterio strong { color: var(--light); font-weight: 400; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ac-casos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .ac-hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .ac-split { grid-template-columns: 1fr; }
  .ac-db { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .ac-criterio { grid-template-columns: 52px 1fr; gap: 20px; }
  .ac-criterio-n { font-size: 30px; }
  .ac-caso { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .ac-hero-grid { padding: 0 20px; }
}
