/* SAIC — estilos del sitio */
:root {
  --bg: #080b12;
  --bg-2: #0d121c;
  --panel: #111827;
  --line: #1f2937;
  --line-2: #2b3648;
  --text: #e5e9f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #4f8cff;
  --accent-2: #22d3ee;
  --ok: #34d399;
  --radius: 16px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.04em; font-size: 20px; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav .btn { margin-left: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3d78ec; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.nav .btn { padding: 8px 14px; color: #fff; }
.nav .btn:hover { background: #3d78ec; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 640px;
  background: radial-gradient(closest-side, rgba(79, 140, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .08);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.hero h1 { position: relative; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 22px 0 0; max-width: 860px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { position: relative; font-size: 18px; color: var(--muted); max-width: 640px; margin: 22px 0 0; }
.hero .actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 56px; max-width: 760px; }
.stat { border: 1px solid var(--line); background: rgba(17, 24, 39, .6); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 13px; color: var(--muted); }

/* Sections */
section { padding: 64px 0; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
h2.title { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.01em; margin: 10px 0 0; }
.sub { color: var(--muted); max-width: 680px; margin: 12px 0 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.card { border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0; font-size: 16px; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(79, 140, 255, .12); color: var(--accent); margin-bottom: 14px; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--accent-2); font-weight: 700; }

/* Pricing */
.toggle {
  display: inline-grid; grid-template-columns: repeat(4, auto); gap: 4px; padding: 4px; margin-top: 28px;
  border: 1px solid var(--line); background: var(--bg-2); border-radius: 14px;
}
.toggle button {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  background: transparent; border: 0; border-radius: 10px; padding: 9px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.toggle .pill { font-family: var(--mono); font-size: 10px; padding: 2px 6px; border-radius: 999px; background: rgba(52, 211, 153, .15); color: var(--ok); }
.toggle button[aria-pressed="true"] .pill { background: rgba(255, 255, 255, .2); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg-2); border-radius: 20px; padding: 26px; }
.plan.featured { border-color: rgba(79, 140, 255, .55); background: linear-gradient(180deg, rgba(79, 140, 255, .08), var(--bg-2) 40%); box-shadow: 0 0 48px -18px rgba(79, 140, 255, .5); }
.plan-head { display: flex; align-items: center; justify-content: space-between; }
.plan h3 { margin: 0; font-size: 18px; }
.badge { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(79, 140, 255, .5); border-radius: 999px; padding: 3px 8px; }
.plan .tag { color: var(--muted); font-size: 14px; margin: 8px 0 0; min-height: 44px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 36px; letter-spacing: -0.02em; }
.price span { color: var(--muted); font-size: 14px; }
.billed { font-size: 13px; color: var(--muted); margin-top: 4px; min-height: 20px; }
.save { font-size: 13px; color: var(--ok); font-weight: 600; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: #cbd5e1; padding: 5px 0; }
.plan li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent-2); }
.plan .btn { margin-top: 24px; width: 100%; }
.fine { margin-top: 22px; font-size: 13px; color: var(--dim); max-width: 820px; }
.fine button.linklike { color: var(--accent); }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); background: var(--bg-2); border-radius: 14px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 14px; }

/* Contact */
.contact { border: 1px solid var(--line); background: linear-gradient(135deg, rgba(79, 140, 255, .1), rgba(34, 211, 238, .05)); border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.contact h2 { margin: 0; font-size: 26px; }
.contact p { margin: 8px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #06080d; margin-top: 40px; }
.site-footer .wrap { padding: 36px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; font-size: 14px; color: var(--muted); }
.site-footer h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #cbd5e1; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .linklike:hover { color: var(--text); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.copy { border-top: 1px solid var(--line); }
.copy .wrap { display: block; padding: 16px 20px; font-size: 12px; color: var(--dim); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 24px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin: 10px 0 0; letter-spacing: -0.01em; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 8px; }
.legal-body { color: #cbd5e1; font-size: 15px; }
.legal-body h2 { font-size: 18px; color: #fff; margin: 32px 0 10px; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { padding-left: 20px; margin: 0 0 12px; }
.legal-body li { margin: 4px 0; }
.legal-body a { color: var(--accent); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .8); backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 720px; max-height: 90vh; display: flex; flex-direction: column; background: #0b0f18; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; }
.modal-top { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-top strong { font-size: 17px; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.modal-close:hover { color: #fff; }
.modal-tabs { flex-shrink: 0; display: flex; gap: 6px; padding: 10px 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.modal-tabs button { font-family: var(--mono); font-size: 12px; white-space: nowrap; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 7px 12px; cursor: pointer; }
.modal-tabs button[aria-selected="true"] { color: #cfe0ff; background: rgba(79, 140, 255, .14); border-color: rgba(79, 140, 255, .4); font-weight: 700; }
.modal-content { padding: 22px; overflow-y: auto; }
.modal-content .legal-body h2:first-child { margin-top: 0; }
.modal-foot { flex-shrink: 0; padding: 12px 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.modal-foot a { color: var(--accent); text-decoration: none; }

/* Pay page */
.pay { max-width: 560px; margin: 0 auto; padding: 110px 20px 40px; text-align: center; }
.pay h1 { font-size: 30px; margin: 12px 0 0; }
.pay p { color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .plans { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero-stats { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .toggle { grid-template-columns: repeat(2, auto); }
  .contact { padding: 28px; }
}
