/* ==========================================================================
   Xima AI — institutional static site
   Self-contained stylesheet ported from the Reception landing layout.
   Dark "family" theme, blue accent (#3b82f6). No external dependencies.
   ========================================================================== */

:root {
  --bg: #0b0d12;
  --surface: #141823;
  --text: #e6e8ec;
  --text-muted: #8c93a3;
  --border: #1f2433;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --radius: 8px;
  --max-width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Header ---------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--border); padding: 18px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.brand img { height: 32px; width: auto; display: block; }

.lang-switch { font-size: 13px; color: var(--text-muted); }
.lang-switch a + a::before { content: " · "; color: var(--border); }
.lang-switch a.active { color: var(--text); pointer-events: none; }

/* --- Hero ------------------------------------------------------------------ */
.hero { padding: 96px 0 48px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-muted);
  max-width: 680px; margin: 0 auto 32px;
}
.cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 500; font-size: 15px; transition: opacity 0.15s, transform 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.92; text-decoration: none; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* --- Sections -------------------------------------------------------------- */
section { padding: 56px 0; scroll-margin-top: 24px; }
section h2 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
  margin: 0 0 32px;
}

/* Eyebrow that labels the two "what we build" buckets */
.bucket-eyebrow {
  text-align: center;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.section-lead {
  text-align: center; max-width: 720px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 16px;
}
.section-kicker {
  text-align: center; max-width: 720px;
  margin: 32px auto 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* --- Capabilities ("Lo que NO somos") -------------------------------------- */
.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.capability {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.capability h3 {
  font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em;
}
.capability p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* --- Products / buckets ---------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column;
}
.product h3 {
  font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em;
}
.product .product-lead {
  color: var(--text); font-size: 16px; font-weight: 500;
  margin: 0 0 14px;
}
.product p { color: var(--text-muted); margin: 0 0 16px; font-size: 15px; }
.product .bullets {
  list-style: none; padding: 0; margin: 0 0 24px;
  color: var(--text-muted); font-size: 14px;
}
.product .bullets li {
  padding-left: 18px; position: relative; margin: 6px 0;
}
.product .bullets li::before {
  content: "→"; color: var(--accent);
  position: absolute; left: 0; top: 0;
}
.product .cta {
  margin-top: auto;
  display: inline-block; padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent);
  font-weight: 500; font-size: 14px;
  align-self: flex-start;
}
.product .cta:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* Featured product — accent border + glow */
.product.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 16px 40px rgba(59, 130, 246, 0.10);
}

/* Custom / "a medida" — dashed border signals "service, not product" */
.product.custom {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
}
.product.custom .cta {
  background: transparent; border: 1px solid var(--border); color: var(--text);
}
.product.custom .cta:hover {
  border-color: var(--accent); color: var(--accent); background: transparent;
}

/* --- Bot vs AI comparison -------------------------------------------------- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .comparison-grid { grid-template-columns: 1fr; }
}
.chat-column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
}
.chat-column.bot { border-color: rgba(239, 68, 68, 0.25); }
.chat-column.ai  { border-color: rgba(59, 130, 246, 0.35); }
.chat-column .col-title {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 4px;
}
.chat-column.bot .col-title { color: #f87171; }
.chat-column.ai  .col-title { color: var(--accent); }
.chat-column .col-subtitle {
  font-size: 13px; color: var(--text-muted);
  margin: 0 0 18px;
}
.chat-bubble {
  max-width: 85%; padding: 9px 13px;
  border-radius: 12px; margin: 6px 0;
  font-size: 14px; line-height: 1.45;
  word-wrap: break-word;
}
.chat-bubble.user {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.chat-bubble.user.audio {
  font-style: italic; color: var(--text-muted);
}
.chat-bubble.bot-reply {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-bottom-left-radius: 4px;
}
.chat-bubble.ai-reply {
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-bubble .transcribed {
  display: block; font-size: 12px;
  color: var(--text-muted); font-style: italic;
  margin-bottom: 6px;
}

/* --- CTA block ------------------------------------------------------------- */
.cta-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin: 32px 0;
}
.cta-block h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text); text-transform: none; letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.cta-block p {
  color: var(--text-muted); margin: 0 0 24px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}

/* --- Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 13px; color: var(--text-muted);
}
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* --- Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
