/* {{NOMBRE}} — landing comercial (usa theme del sistema) */
@import url('../public/css/theme.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg, #0f1419);
  color: var(--text, #e8edf5);
  line-height: 1.65;
}
a { color: var(--accent, #3b82f6); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface, #1a2332) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border, #2d3a4f);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem; gap: 1rem;
}
.logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }

.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
  background: radial-gradient(ellipse at top, var(--heroFrom, #1e3a5f), var(--bg, #0f1419) 65%);
}
.hero h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); margin: 0 0 0.75rem; line-height: 1.15; }
.hero .tagline { font-size: 1.15rem; color: var(--muted); max-width: 42rem; margin: 0 auto 1.5rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 0.65rem 1.25rem; border-radius: 10px;
  font-weight: 600; border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2, #6366f1));
  color: #fff;
}
.btn-ghost {
  background: transparent; border-color: var(--border); color: var(--text);
}

section { padding: 3.5rem 0; }
section:nth-child(even) { background: var(--surface, #1a2332); }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { font-size: 1.65rem; margin: 0 0 0.5rem; }
.section-head p { color: var(--muted); max-width: 40rem; margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

.card {
  background: var(--surface2, #243044);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.card .icon { font-size: 1.75rem; margin-bottom: 0.5rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.5rem 3rem; border-left: 2px solid var(--border);
  margin-left: 1rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: -1.1rem; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }

.example-block {
  border-left: 4px solid var(--accent);
  padding-left: 1rem; margin-bottom: 1.25rem;
}
.example-block strong { display: block; margin-bottom: 0.25rem; }

.demo-shot {
  aspect-ratio: 16/10; border-radius: 10px;
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem; text-align: center; padding: 1rem;
}

table.roles { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.roles th, table.roles td {
  border: 1px solid var(--border); padding: 0.65rem 0.85rem; text-align: left;
}
table.roles th { background: var(--surface2); color: var(--accent); }

.faq details {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 0.65rem;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.92rem; }

.kpi-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.kpi {
  text-align: center; min-width: 140px;
  background: var(--surface2); border-radius: 12px; padding: 1rem 1.25rem;
  border: 1px solid var(--border);
}
.kpi .num { font-size: 1.75rem; font-weight: 700; color: var(--accent); }
.kpi .lbl { font-size: 0.8rem; color: var(--muted); }

.stack-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.badge {
  background: var(--surface2); border: 1px solid var(--border);
  padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.8rem;
}

.cta-band {
  text-align: center; padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border-radius: 16px; margin: 2rem 0;
}
.cta-band h2 { margin: 0 0 0.5rem; }
.cta-band p { margin: 0 0 1.25rem; opacity: 0.95; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }

.site-footer {
  padding: 2rem 0; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.85rem; text-align: center;
}
.todo-note {
  background: color-mix(in srgb, var(--warn, #f59e0b) 15%, transparent);
  border: 1px solid var(--warn);
  border-radius: 10px; padding: 0.85rem 1rem; margin: 1rem 0;
  font-size: 0.88rem;
}

.chat-demo-panel { max-width: 42rem; margin: 0 auto; }
.chat-demo-panel #webchat-status {
  font-size: 0.92rem; color: var(--muted); margin: 0 0 1rem;
}
.chat-demo-panel .steps li { font-size: 0.92rem; }

@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding-top: 3rem; }
}
