/* ═══════════════════════════════════════════════════════════════
   Code Sistemas — sitio institucional
   Marca: azul marino + dorado · Spectral (títulos) + Archivo (texto)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --navy-0: #070f1c; --navy-1: #0b1830; --navy-2: #101f3b;
  --surface: #12233f; --surface-2: #152744;
  --line: rgba(255,255,255,.09); --line-gold: rgba(207,168,86,.3);
  --gold: #cfa856; --gold-bright: #e2be76; --gold-deep: #a9863b;
  --text: #e9eef6; --muted: #9db0cb; --muted-2: #7d90ab;
  --teal: #4cc191; --amber: #e0a94e; --red: #e0765c; --blue: #6ea8ff;
  --radius: 14px; --maxw: 1120px;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  background: radial-gradient(1100px 600px at 78% -8%, rgba(207,168,86,.10), transparent 60%),
              radial-gradient(900px 520px at 6% 4%, rgba(76,120,190,.10), transparent 55%), var(--navy-1);
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.eyebrow { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); }
.center { text-align: center; }
.sr { position: absolute; left: -9999px; }

/* ─── Top bar ─── */
.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(7,15,28,.78); backdrop-filter: blur(10px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; }
.mark { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; padding: 6px; background: linear-gradient(150deg, #16294a, #0b1830); border: 1px solid var(--line-gold); font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 19px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); flex-shrink: 0; }
.brand .txt b { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; display: block; line-height: 1.1; }
.brand .txt > span { display: block; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-top: 2px; }
.mark svg { width: 100%; height: 100%; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); font-size: .92rem; padding: 8px 12px; border-radius: 8px; text-decoration: none !important; font-weight: 500; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(255,255,255,.05); }
.nav .btn { margin-left: 8px; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.burger svg { width: 20px; height: 20px; display: block; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--navy-0) !important; font-weight: 700; padding: 12px 22px; border-radius: 11px; letter-spacing: .01em; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 12px 30px -12px rgba(207,168,86,.6); border: 0; cursor: pointer; font-family: var(--sans); font-size: .95rem; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(207,168,86,.7); }
.btn.ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--line-gold); box-shadow: none; }
.btn.ghost:hover { background: rgba(207,168,86,.08); }
.btn.sm { padding: 9px 16px; font-size: .86rem; border-radius: 9px; }
.btn.wa { background: #25d366; color: #052e16 !important; box-shadow: 0 12px 30px -12px rgba(37,211,102,.6); }
.btn svg { width: 18px; height: 18px; }

/* ─── Hero ─── */
.hero { padding: 84px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--gold-bright); font-weight: 500; }
.lede { margin-top: 22px; font-size: 1.12rem; color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip { font-size: .82rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; }
.chip b { color: var(--gold); font-weight: 600; }

/* faux app panel */
.panel { background: linear-gradient(180deg, var(--surface-2), var(--navy-2)); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(207,168,86,.05); overflow: hidden; }
.panel-top { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: rgba(7,15,28,.4); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.panel-top .n { margin-left: 8px; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.panel-body { padding: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: rgba(7,15,28,.45); border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; }
.kpi .l { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.kpi .v { font-family: var(--serif); font-size: 1.25rem; margin-top: 4px; color: #fff; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.ptable { margin-top: 12px; }
.ptable table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ptable th { text-align: left; font-weight: 600; color: var(--muted-2); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.ptable td { padding: 10px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ptable tr:last-child td { border-bottom: 0; }
.pill { font-size: .68rem; padding: 3px 9px; border-radius: 999px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.pill.red { background: rgba(224,118,92,.16); color: #f0a48f; border: 1px solid rgba(224,118,92,.35); }
.pill.amber { background: rgba(224,169,78,.15); color: #e8c07f; border: 1px solid rgba(224,169,78,.32); }
.pill.teal { background: rgba(76,193,145,.15); color: #7fd8b3; border: 1px solid rgba(76,193,145,.32); }
.pill.blue { background: rgba(110,168,255,.15); color: #a9c8ff; border: 1px solid rgba(110,168,255,.32); }
.pill.gold { background: rgba(207,168,86,.14); color: var(--gold-bright); border: 1px solid var(--line-gold); }
.num { color: var(--text); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 12px; }
.bars i { flex: 1; display: block; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); opacity: .9; }

/* ─── Sections ─── */
section { padding: 64px 0; }
.sec-head { max-width: 62ch; }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-top: 12px; }
.sec-head p { margin-top: 14px; color: var(--muted); }
.sec-head.center { margin: 0 auto; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.mt { margin-top: 34px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 1.14rem; }
.card p { margin-top: 8px; color: var(--muted); font-size: .94rem; }
.lift { transition: transform .16s ease, border-color .16s ease; }
.lift:hover { transform: translateY(-3px); border-color: var(--line-gold); }
.ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(207,168,86,.12); border: 1px solid var(--line-gold); color: var(--gold-bright); margin-bottom: 14px; }
.ic svg { width: 20px; height: 20px; }

/* Productos */
.prod { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prod .top { padding: 24px 24px 0; }
.prod .k { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.prod h3 { font-size: 1.36rem; margin-top: 8px; }
.prod p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.prod .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.prod .shot { margin: 18px 24px 0; }
.prod .acts { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 24px 22px; margin-top: auto; }
.prod.featured { border-color: var(--line-gold); background: linear-gradient(180deg, rgba(207,168,86,.07), var(--surface)); }
.mini { background: rgba(7,15,28,.5); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mini .row { display: flex; justify-content: space-between; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.mini .row:last-child { border-bottom: 0; }
.mini .row b { color: var(--text); font-variant-numeric: tabular-nums; }
.mini .bar { height: 8px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; flex: 1; margin: 0 12px; }
.mini .bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }

/* Pasos */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step .no { counter-increment: s; font-family: var(--serif); font-size: 1.5rem; color: var(--gold); line-height: 1; min-width: 1.6ch; font-variant-numeric: tabular-nums; }
.step .no::before { content: "0" counter(s); }
.step b { font-weight: 600; }
.step p { color: var(--muted); font-size: .93rem; margin-top: 4px; }

/* Beneficios */
.bene { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.bene .c { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(207,168,86,.12); border: 1px solid var(--line-gold); color: var(--gold); font-weight: 700; font-size: .9rem; margin-top: 2px; }
.bene b { font-weight: 600; }
.bene p { color: var(--muted); font-size: .93rem; margin-top: 3px; }

/* Pains */
.pains { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.pain { display: flex; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.pain:last-child { border-bottom: 0; }
.pain .x { color: var(--red); font-family: var(--serif); font-size: 1.2rem; line-height: 1; flex: 0 0 auto; }
.pain b { font-weight: 600; }
.pain span { color: var(--muted); }

/* CTA */
.cta { margin: 8px 0 0; background: linear-gradient(150deg, #13294c, var(--navy-0)); border: 1px solid var(--line-gold); border-radius: 20px; padding: 48px 36px; text-align: center; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta p { margin: 14px auto 0; color: var(--muted); max-width: 54ch; }
.cta .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.contact-line { margin-top: 20px; font-size: .92rem; color: var(--muted); }
.contact-line b { color: var(--text); }

/* Formulario */
.form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; text-align: left; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; background: rgba(7,15,28,.6); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: .95rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207,168,86,.15); }
.form textarea { min-height: 110px; resize: vertical; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--muted-2); font-size: .84rem; }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; }
footer h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
footer a { color: var(--muted); display: block; padding: 3px 0; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Página de producto */
.phero { padding: 64px 0 40px; }
.phero .grid-h { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.phero h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
.phero h1 em { font-style: italic; color: var(--gold-bright); font-weight: 500; }
.crumbs { font-size: .82rem; color: var(--muted-2); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat .card h3 { font-size: 1.04rem; }
.mlist { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.mlist li { position: relative; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.mlist li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); }
.mlist li b { color: var(--text); font-weight: 600; }
.mod h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1.08rem; }
.mod h3 .i { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; }
.qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.qa .card b { display: block; font-family: var(--serif); font-size: 1.05rem; color: #fff; }
.qa .card p { font-size: .9rem; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flow .card { padding: 16px; }
.flow .card .n { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy-0); font-weight: 700; font-size: .8rem; display: grid; place-items: center; margin-bottom: 10px; }
.flow .card h3 { font-size: .98rem; }
.flow .card p { font-size: .84rem; }
.note { background: rgba(207,168,86,.08); border: 1px dashed var(--line-gold); border-radius: 12px; padding: 14px 18px; color: var(--muted); font-size: .9rem; }
.note b { color: var(--gold-bright); }

/* Acceso clientes */
.access { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.access .card { display: flex; flex-direction: column; }
.access .acts { margin-top: auto; padding-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.status { font-size: .74rem; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.status.ok { background: rgba(76,193,145,.15); color: #7fd8b3; border: 1px solid rgba(76,193,145,.32); }
.status.soon { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero-grid, .phero .grid-h { grid-template-columns: 1fr; gap: 34px; }
  .lede { max-width: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3, .feat, .qa { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgba(7,15,28,.97); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .burger { display: inline-flex; }
  .topbar { position: relative; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 46px 0; }
  .hero { padding: 48px 0 36px; }
  .g2, .g3, .g4, .feat, .qa, .access, .flow { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  .cta { padding: 34px 22px; }
  .prod .acts .btn { flex: 1; justify-content: center; }
}
