/* Agente Prime — grafito con acento azul acero.
   Para la variante grafito + rojo, cambiar --accent a #b4232c y --accent-ink a #ffffff. */
:root {
  --bg: #111316;
  --bg-2: #16191d;
  --surface: #1b1f24;
  --surface-2: #20252b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef1;
  --muted: #9aa1ab;
  --accent: #9db8d6;
  --accent-ink: #0f1216;
  --accent-soft: rgba(157, 184, 214, 0.12);
  --good: #7fc4a4;
  --radius: 12px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 0.55em; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
p { margin: 0 0 1em; color: var(--muted); }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.grad { color: var(--accent); font-style: italic; }
.muted { color: var(--muted); }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 8px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s; font-family: inherit; letter-spacing: .01em; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #b6cbe2; }
.btn.ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.sm { padding: 9px 16px; font-size: .88rem; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* navegación */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(17, 19, 22, .9); backdrop-filter: blur(12px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; }
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font-family: var(--serif); font-size: .95rem; font-weight: 600; color: var(--accent-ink); background: var(--accent); }
.mark.sm { width: 30px; height: 30px; font-size: .85rem; }
.links { display: flex; gap: 30px; font-size: .92rem; color: var(--muted); }
.links a { transition: color .2s; }
.links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }

/* hero */
.hero { position: relative; padding: 160px 0 100px; border-bottom: 1px solid var(--line); background: radial-gradient(1100px 500px at 15% -10%, #1e242c 0%, transparent 60%), var(--bg); }
.glow { display: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.dot { width: 22px; height: 1px; background: var(--accent); }
.lead { font-size: 1.14rem; max-width: 560px; }
.lead.sm { font-size: 1.04rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 30px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .88rem; color: var(--muted); }
.ticks li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }

.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.chat-top { display: flex; align-items: center; gap: 11px; padding: 2px 2px 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.chat-top small { display: block; color: var(--good); font-size: .76rem; }
.msg { padding: 11px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 10px; max-width: 92%; line-height: 1.55; }
.msg.user { margin-left: auto; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.msg.bot { background: transparent; border: 1px solid var(--line); }
.tool { display: flex; width: fit-content; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: .02em; color: var(--accent); border: 1px solid rgba(157,184,214,.35); border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; }
.tool svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* franja */
.strip { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.strip-in div { display: flex; flex-direction: column; padding: 30px 24px; border-left: 1px solid var(--line); }
.strip-in div:first-child { border-left: 0; padding-left: 0; }
.strip-in strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.strip-in span { color: var(--muted); font-size: .86rem; }

/* secciones */
.section { padding: 120px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 660px; margin-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.grid { display: grid; gap: 1px; }
.cards { grid-template-columns: repeat(3, 1fr); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { padding: 34px 30px; background: var(--bg); transition: background .25s; }
.card:hover { background: var(--surface); }
.card p { margin: 0; font-size: .94rem; }
.ic { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid var(--line-2); }
.ic svg { width: 21px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* caso */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feat { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; gap: 20px; }
.feat li { display: flex; gap: 16px; }
.feat strong { display: block; margin-bottom: 2px; }
.feat div { color: var(--muted); font-size: .94rem; }
.feat div strong { color: var(--text); font-weight: 600; }
.fi { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; color: var(--accent); border: 1px solid rgba(157,184,214,.4); border-radius: 50%; }
.mock { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #f6f7f9; color: #1c2128; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #e7e9ee; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c6cad3; }
.mock-bar em { margin-left: 10px; font-style: normal; font-size: .76rem; color: #646b78; background: #fff; padding: 3px 12px; border-radius: 6px; }
.mock-body { padding: 20px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.kpi { border: 1px solid #e1e4ea; background: #fff; border-radius: 8px; padding: 12px; }
.kpi small { color: #646b78; display: block; font-size: .75rem; }
.kpi b { color: #1f6f52; font-size: .97rem; }
.mock table { width: 100%; border-collapse: collapse; font-size: .83rem; background: #fff; border: 1px solid #e1e4ea; }
.mock th, .mock td { padding: 9px 11px; text-align: left; border-bottom: 1px solid #edf0f4; }
.mock th { background: #f1f3f6; font-weight: 600; color: #3d4452; }
.mock td.ok { color: #1f6f52; font-weight: 600; }
.hint { margin: 14px 0 0; font-size: .83rem; color: #2f4b6b; background: #e8eef5; padding: 10px 12px; border-left: 2px solid #4d6f94; }

/* proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.steps li { padding: 30px 28px 0 0; }
.steps b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.2rem; color: var(--accent); margin-bottom: 14px; }
.steps p { margin: 0; font-size: .93rem; }

.why { grid-template-columns: repeat(4, 1fr); gap: 36px; }
.why > div { padding-top: 22px; border-top: 1px solid var(--line-2); }
.why p { margin: 0; font-size: .93rem; }

/* contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.form { padding: 34px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: .84rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.form input, .form textarea, .form select { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; min-height: 1.2em; font-size: .9rem; }
.form-msg.ok { color: var(--good); } .form-msg.err { color: #e58a8a; }
.fine { margin: 0; font-size: .76rem; }

/* pie */
.foot { border-top: 1px solid var(--line); padding: 36px 0; background: var(--bg-2); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot p { margin: 0; font-size: .86rem; }
.foot a:hover { color: var(--text); }

/* aparición */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .typing span { animation: none; } }

/* responsivo */
@media (max-width: 980px) {
  .hero-in, .split, .contact { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps, .why { grid-template-columns: repeat(2, 1fr); }
  .steps li { padding-bottom: 24px; }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .strip-in div:nth-child(3) { border-left: 0; padding-left: 0; }
  .links { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 124px 0 72px; }
  .section { padding: 84px 0; }
  .cards, .steps, .why { grid-template-columns: 1fr; }
  .strip-in { grid-template-columns: 1fr; }
  .strip-in div { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); }
  .strip-in div:first-child { border-top: 0; }
  .hide-sm { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .form { padding: 24px; }
}

[hidden] { display: none !important; }
