/* Systems in Motion — web comercial (F31 §D). Misma marca que la app
   (frontend/src/styles/tokens.css): azul #2563eb, azul noche #0b1424, Inter. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --ink: #0f172a;
  --ink-2: #344054;
  --ink-3: #667085;
  --line: #e4e7ec;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eef4ff;
  --night: #0b1424;
  --night-2: #111c30;
  --sky: #60a5fa;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --r: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 650; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.small { font-size: 0.85rem; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn.sm { padding: 8px 14px; font-size: 0.88rem; }
.btn.lg { padding: 14px 22px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.35); outline-offset: 2px; }

/* barra superior */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em; }
.menu { display: flex; gap: 22px; margin-left: 12px; }
.menu a, .top .link { color: var(--ink-2); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.menu a:hover, .top .link:hover { color: var(--accent); }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.menu-mobile { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 16px; border-top: 1px solid var(--line); }
.menu-mobile a { padding: 10px 4px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu-mobile .btn { margin-top: 8px; color: #fff; }
.menu-mobile[hidden] { display: none; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(96, 165, 250, 0.22), transparent 60%),
  linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #e6edf7; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0 84px; }
.hero h1 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700;
  color: var(--accent); margin: 0 0 12px; }
.hero .eyebrow { color: var(--sky); }
.lead { font-size: 1.12rem; color: #c3cfe0; margin: 18px 0 28px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.hero .btn.ghost:hover { border-color: var(--sky); color: var(--sky); }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; color: #c3cfe0; font-size: 0.95rem; }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sky); margin-right: 10px; vertical-align: middle; }

.hero-art { position: relative; }
.mock { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden; transform: rotate(-1.2deg); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f3f6;
  border-bottom: 1px solid var(--line); font-size: 0.72rem; color: var(--ink-3); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d0d5dd; }
.mock-bar span { margin-left: 10px; }
.mock-body { padding: 20px 22px 22px; font-size: 0.82rem; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock-title { font-weight: 750; font-size: 1rem; }
.mock-ncf { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink-3); margin-top: 2px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 650; font-size: 0.74rem; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #abefc6; }
.mock-meta { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 10px; margin: 16px 0 12px; }
.mock-meta small { display: block; color: var(--ink-3); font-size: 0.7rem; }
.mock-lines { width: 100%; border-collapse: collapse; }
.mock-lines th { text-align: left; font-weight: 650; border-bottom: 1px solid var(--ink); padding: 6px 0; font-size: 0.74rem; }
.mock-lines td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.mock-lines td:nth-child(2), .mock-lines th:nth-child(2) { text-align: center; }
.mock-lines td:last-child, .mock-lines th:last-child { text-align: right; }
.mock-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; }
.mock-qr { width: 64px; height: 64px; border: 4px solid var(--ink); border-radius: 4px;
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.mock-tot { min-width: 210px; }
.mock-tot div { display: flex; justify-content: space-between; padding: 3px 0; }
.mock-tot .t { font-weight: 800; font-size: 0.95rem; border-top: 1px solid var(--ink); margin-top: 4px; padding-top: 6px; }
.float { position: absolute; background: #fff; color: var(--ink); font-size: 0.8rem; font-weight: 600;
  padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; }
.float .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.float .dot.b { background: var(--accent); }
.float.f1 { left: -28px; bottom: -22px; }
.float.f2 { right: -10px; top: -18px; }

/* franja */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 26px 0; }
.strip-grid b { display: block; font-size: 1rem; }
.strip-grid span { color: var(--ink-3); font-size: 0.9rem; }

/* secciones */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.sub { color: var(--ink-2); font-size: 1.06rem; max-width: 46em; margin: 14px 0 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card p { color: var(--ink-2); margin: 8px 0 0; font-size: 0.94rem; }
.section.alt .card { box-shadow: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 18px 18px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps b { display: block; }
.steps span { color: var(--ink-2); font-size: 0.94rem; }

/* planes */
.billing { display: inline-flex; margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.billing button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font: 600 0.9rem var(--font);
  color: var(--ink-2); cursor: pointer; }
.billing button[aria-checked="true"] { background: var(--night); color: #fff; }
.billing em { font-style: normal; color: var(--ok); margin-left: 4px; }
.billing button[aria-checked="true"] em { color: #75e0a7; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; position: relative; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 0.75rem;
  font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan-tag { color: var(--ink-3); margin: 6px 0 16px; font-size: 0.94rem; min-height: 2.9em; }
.price { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.price .cur { font-weight: 650; color: var(--ink-2); }
.price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--ink-3); }
.price-note { color: var(--ink-3); font-size: 0.85rem; margin: 2px 0 16px; }
.quota { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-size: 0.95rem; color: var(--ink-2); }
.quota b { color: var(--ink); }
.plan details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.plan summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: 0.93rem; }
.incl { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; font-size: 0.92rem; color: var(--ink-2); }
.incl li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.addons { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 24px; }
.addons > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.addons table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.95rem; }
.addons td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.addons td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 12px; }
.addons p { color: var(--ink-2); }

/* comparación */
.compare { margin-top: 32px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.compare .row { display: grid; grid-template-columns: 1.1fr 1.2fr 1.2fr; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.compare .row.head { border-top: 0; background: var(--night); color: #fff; font-weight: 650; }
.compare .row span:last-child { color: var(--ink-3); }
.compare .row.head span:last-child { color: #c3cfe0; }
.compare .yes { color: var(--ok); font-weight: 650; }

/* preguntas */
.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq:first-of-type { margin-top: 24px; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }

/* contacto */
.contact { background: linear-gradient(180deg, var(--bg-alt), #fff); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.form .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: 400 0.98rem var(--font); color: var(--ink); padding: 11px 12px;
  border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; width: 100%; }
.form textarea { resize: vertical; }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 0.93rem; }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.form-msg.err { color: #b42318; }

/* pie */
.foot { background: var(--night); color: #9fb0c8; padding: 40px 0; }
.foot .brand { color: #fff; }
.foot-grid { display: grid; gap: 8px; }
.foot p { margin: 0; }

/* responsivo */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; padding: 56px 0 72px; }
  .float.f1 { left: 8px; }
  .float.f2 { right: 8px; }
}
@media (max-width: 860px) {
  .menu, .top-cta { display: none; }
  .burger { display: block; }
  .plans, .split, .addons, .cards.three { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-tag { min-height: 0; }
  .split { gap: 28px; }
}
@media (max-width: 560px) {
  .cards, .strip-grid, .form { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .mock-meta { grid-template-columns: 1fr 1fr; }
  .mock-meta div:first-child { grid-column: 1 / -1; }
  .mock-tot { min-width: 0; flex: 1; margin-left: 14px; }
  .compare .row { grid-template-columns: 1fr; gap: 4px; }
  .compare .row.head { display: none; }
  .compare .row span:first-child { font-weight: 650; }
  .float { position: static; margin-top: 12px; }
  .mock { transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
