/* ============================================================
   PONENCIA EXPRESS — styles.css
   Estética: sobria institucional premium (familia gobernanza/
   agentic/veredicto). Tinta profunda + oro editorial.
   ============================================================ */

:root {
  --bg: #0b0f1a;
  --bg2: #0f1524;
  --panel: #131a2c;
  --panel2: #182136;
  --line: #253048;
  --text: #e9e6dc;
  --muted: #9aa3b5;
  --gold: #d4a63f;
  --gold-soft: rgba(212, 166, 63, .14);
  --green: #4fc38a;
  --red: #e06a5a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---------- header ---------- */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 15, 26, .92);
  backdrop-filter: blur(8px);
}
.brand { background: none; border: none; cursor: pointer; text-align: left; color: var(--text); }
.brand-name { display: block; font-family: var(--serif); font-size: 20px; letter-spacing: .06em; }
.brand-name em { color: var(--gold); font-style: normal; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- botones / chips ---------- */
.btn {
  display: inline-block;
  background: var(--panel2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 20px; font-size: 15px; cursor: pointer;
  font-family: var(--sans); text-decoration: none;
  transition: all .18s ease;
}
.btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn-primary { background: var(--gold); color: #1a1405; border-color: var(--gold); font-weight: 600; }
.btn-primary:hover { background: #e3b74f; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--line); transform: none; }
.btn-big { padding: 15px 28px; font-size: 17px; }
.btn-small { padding: 7px 14px; font-size: 13px; }

.chip {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--gold); }
.chip-on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }

/* ---------- pantallas ---------- */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { max-width: 880px; margin: 0 auto; padding: 84px 28px 40px; text-align: center; }
.hero-kicker {
  font-family: var(--mono); font-size: 13px; color: var(--gold);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px;
}
.hero-kicker b { font-size: 15px; }
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); line-height: 1.18; font-weight: 500; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 720px; margin: 26px auto 0; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
  margin-top: 44px;
}
.stat { background: var(--bg2); padding: 26px 18px; text-align: center; }
.stat b { display: block; font-family: var(--mono); font-size: 30px; color: var(--gold); }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- steps / deliver / quien ---------- */
.sec-title {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  text-align: center; margin-bottom: 30px;
}
.steps { max-width: 1020px; margin: 0 auto; padding: 70px 28px 10px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold);
  font-family: var(--mono); font-size: 16px; margin-bottom: 14px;
}
.step h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

.deliver { max-width: 780px; margin: 0 auto; padding: 60px 28px 10px; }
.deliver-list { list-style: none; }
.deliver-list li {
  padding: 16px 0 16px 34px; position: relative;
  border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.deliver-list li b { color: var(--text); }
.deliver-list li::before { content: '§'; position: absolute; left: 4px; color: var(--gold); font-family: var(--serif); }

.quien { max-width: 780px; margin: 0 auto; padding: 50px 28px 90px; text-align: center; }
.quien-body { color: var(--muted); font-size: 15px; }

/* ---------- circuito legislativo (enlaces salientes) ---------- */
.circuito { max-width: 900px; margin: 0 auto; padding: 0 28px 90px; }
.circ-intro { color: var(--muted); font-size: 14px; text-align: center; margin: -14px auto 26px; max-width: 620px; }
.circ-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.circ-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  border-left: 3px solid var(--line); padding: 20px 22px;
  transition: all .18s ease;
}
.circ-card:hover { border-color: var(--gold); border-left-color: var(--gold); transform: translateY(-1px); }
.circ-tag { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.circ-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 6px 0 8px; }
.circ-arrow { color: var(--gold); font-size: 14px; }
.circ-card p { font-size: 13.5px; color: var(--muted); }

/* variante dentro del blueprint */
.bp-circuito { max-width: none; padding: 26px 0 0; margin-top: 34px; border-top: 1px solid var(--line); }
.circ-title { font-family: var(--serif); font-size: 19px; font-weight: 500; text-align: center; margin-bottom: 8px; }
.bp-circuito .circ-intro { margin: 0 auto 18px; }

/* ---------- radar ---------- */
.radar-wrap { max-width: 980px; margin: 0 auto; padding: 50px 28px 80px; }
.radar-head h1 { font-family: var(--serif); font-size: 32px; font-weight: 500; }
.live-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); margin-left: 6px; vertical-align: middle;
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.radar-head p { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
#radar-search {
  width: 100%; padding: 13px 16px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  font-size: 15px; margin-bottom: 14px;
}
#radar-search:focus { outline: none; border-color: var(--gold); }
.radar-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.radar-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radar-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; border-left: 3px solid var(--line);
}
.radar-card.banda-actuar { border-left-color: var(--gold); }
.radar-card.banda-preparar { border-left-color: #6d7fa3; }
.radar-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.radar-num {
  font-family: var(--mono); font-size: 14px; color: var(--gold);
  background: var(--gold-soft); border-radius: 6px; padding: 2px 8px;
}
.radar-cuerpo { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.radar-senal { margin-left: auto; font-family: var(--mono); font-size: 18px; color: var(--text); }
.radar-senal small { color: var(--muted); font-size: 11px; }
.radar-card h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.35; margin-bottom: 6px; }
.radar-resumen { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.radar-meta { font-size: 12px; color: var(--muted); opacity: .8; margin-bottom: 14px; }
.radar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.radar-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 40px 0; }
.radar-foot { display: flex; gap: 12px; justify-content: center; margin-top: 34px; }

/* ---------- wizard ---------- */
.wizard-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 30px; max-width: 1120px; margin: 0 auto; padding: 44px 28px 80px;
  align-items: start;
}
.q-panel { min-height: 480px; }
.hud { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
#hud-phase { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.hud-bar { flex: 1; height: 5px; background: var(--panel2); border-radius: 3px; overflow: hidden; }
#hud-bar-fill { height: 100%; width: 0; background: #6d7fa3; border-radius: 3px; transition: width .4s ease, background .4s; }
#hud-bar-fill.ready { background: var(--gold); }
#hud-signal { font-family: var(--mono); font-size: 14px; color: var(--gold); min-width: 44px; text-align: right; }

.q-kicker { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.q-text { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); font-weight: 500; line-height: 1.25; }
.q-hint { color: var(--muted); font-size: 14px; margin-top: 10px; }
.q-enter { animation: qIn .32s ease; }
@keyframes qIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.q-options { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.opt {
  display: flex; align-items: flex-start; gap: 14px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; cursor: pointer; color: var(--text);
  transition: all .16s ease; font-family: var(--sans);
}
.opt:hover { border-color: var(--gold); background: var(--panel2); }
.opt.selected { border-color: var(--gold); background: var(--gold-soft); }
.opt-key {
  flex: none; width: 26px; height: 26px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel2); color: var(--muted);
  font-family: var(--mono); font-size: 12px; margin-top: 2px;
}
.opt.selected .opt-key { background: var(--gold); color: #1a1405; }
.opt-body { display: flex; flex-direction: column; }
.opt-label { font-size: 15.5px; }
.opt-detail { font-size: 13px; color: var(--muted); margin-top: 2px; }

.q-textwrap { display: flex; gap: 10px; margin-top: 26px; }
.q-input {
  flex: 1; padding: 13px 16px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 16px;
}
.q-input:focus { outline: none; border-color: var(--gold); }
.q-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.btn-multi { margin-top: 18px; }
.wizard-actions { display: flex; justify-content: space-between; margin-top: 40px; }
#btn-distill.armed { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 18px rgba(212, 166, 63, .25); }

/* ---------- viz (constelación) ---------- */
.viz-panel { position: sticky; top: 90px; }
.viz { width: 100%; height: auto; }
.viz-caption { text-align: center; font-size: 11px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; margin-top: 6px; }
.viz-core-halo { fill: rgba(212, 166, 63, .08); }
.viz-core { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1.2; }
.viz-core-label { fill: var(--gold); font-family: var(--serif); font-size: 13px; }
.viz-link { stroke: rgba(212, 166, 63, .5); stroke-width: 1.2; }
.viz-thread { stroke: rgba(154, 163, 181, .12); stroke-width: .7; }
.viz-dust { fill: rgba(154, 163, 181, .22); }
.viz-node-halo { fill: rgba(212, 166, 63, .1); }
.viz-node { fill: var(--gold); }
.viz-node--current { animation: nodePulse 1.6s infinite; }
@keyframes nodePulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.viz-node-label { fill: var(--text); font-size: 11.5px; font-family: var(--sans); }
.viz-node-dim { fill: var(--muted); font-size: 9.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- blueprint ---------- */
.bp-wrap { max-width: 1060px; margin: 0 auto; padding: 50px 28px 80px; }
.bp-kicker { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.bp-free { color: var(--green); }
.bp-medida { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 22px 24px; }
.bpm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bp-medida h2 { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.3; }
.bpm-tramite { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.bpm-radar-note { color: var(--gold); font-size: 13px; margin-top: 8px; }
.bp-sub { color: var(--muted); font-size: 14px; margin-top: 14px; }
.bp-sub b { color: var(--text); font-weight: 600; }
.bp-signal-line { font-family: var(--mono); font-size: 13px; color: var(--gold); margin-top: 6px; }

.bp-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; margin-top: 30px; }
.bp-col-title { font-family: var(--serif); font-size: 19px; font-weight: 500; margin-bottom: 14px; }
.tsec { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 10px; }
.tsec-locked { opacity: .78; background: var(--bg2); border-style: dashed; }
.tsec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.tsec-num { font-family: var(--serif); color: var(--gold); font-size: 15px; min-width: 24px; }
.tsec-title { font-weight: 600; font-size: 15px; }
.tsec-lock { margin-left: auto; font-size: 11px; color: var(--muted); }
.tsec p { font-size: 13.5px; color: var(--muted); }

.bp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; }
.bp-card.gold { border-color: rgba(212, 166, 63, .45); background: linear-gradient(160deg, var(--gold-soft), var(--panel)); }
.bp-card h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.bp-card p, .bp-card li { font-size: 13.5px; color: var(--muted); }
.bp-card ul { padding-left: 18px; }
.bp-card li { margin-bottom: 8px; }
.bp-angulo { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-style: italic; }
.bp-rec-title { font-weight: 600; color: var(--gold); margin-bottom: 4px; }
.bp-viz-card svg { width: 100%; height: auto; }
.bp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- carrito ---------- */
.cart-wrap { max-width: 720px; margin: 0 auto; padding: 50px 28px 80px; }
.cart-wrap h1 { font-family: var(--serif); font-size: 32px; font-weight: 500; margin-bottom: 24px; }
.cart-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 16px; }
.cart-card h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; margin-bottom: 12px; }
.cart-resumen { font-size: 15px; }
.cart-sub { font-size: 13px; color: var(--muted); }
.cart-row {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; margin-bottom: 8px; cursor: pointer;
  transition: all .15s ease;
}
.cart-row:hover { border-color: var(--gold); }
.cart-row-on { border-color: var(--gold); background: var(--gold-soft); }
.cart-row input { margin-top: 4px; accent-color: var(--gold); }
.cart-row-body { display: flex; flex-direction: column; flex: 1; }
.cart-row-label { font-size: 14.5px; font-weight: 600; }
.cart-row-detail { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cart-row-price { font-family: var(--mono); font-size: 12px; color: var(--gold); text-align: right; max-width: 130px; }
.cart-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-form input {
  padding: 12px 14px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); font-size: 14.5px;
}
.cart-form input:focus { outline: none; border-color: var(--gold); }
.cart-err { color: var(--red); font-size: 13px; margin-top: 8px; min-height: 18px; }
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--gold); padding-top: 16px; margin-top: 8px;
  font-size: 15px;
}
.cart-total b { font-family: var(--serif); font-size: 18px; color: var(--gold); text-align: right; max-width: 75%; }
.cart-pay-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.cart-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cart-legal { font-size: 12px; color: var(--muted); opacity: .85; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- confirmación ---------- */
.conf-wrap { max-width: 620px; margin: 0 auto; padding: 70px 28px 90px; text-align: center; }
.conf-check {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79, 195, 138, .15); color: var(--green);
  font-size: 30px; border: 1px solid var(--green);
}
.conf-wrap h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.conf-id { font-family: var(--mono); color: var(--muted); font-size: 14px; margin: 10px 0 22px; }
.conf-id b { color: var(--gold); }
.conf-detalle { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-size: 15px; text-align: left; }
.conf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.conf-next { text-align: left; margin-top: 36px; }
.conf-next h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.conf-next ol { padding-left: 22px; color: var(--muted); font-size: 14px; }
.conf-next li { margin-bottom: 8px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); background: var(--bg2);
  padding: 44px 28px; text-align: center; color: var(--muted); font-size: 13px;
}
.foot-brand { font-family: var(--serif); font-size: 17px; color: var(--text); letter-spacing: .06em; margin-bottom: 10px; }
.foot-brand em { color: var(--gold); font-style: normal; }
footer a { color: var(--gold); text-decoration: none; }
.foot-legal { max-width: 720px; margin: 18px auto 0; font-size: 11.5px; opacity: .75; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .radar-list { grid-template-columns: 1fr; }
  .wizard-grid { grid-template-columns: 1fr; }
  .viz-panel { display: none; }
  .bp-grid { grid-template-columns: 1fr; }
  .cart-form { grid-template-columns: 1fr; }
  .circ-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
}
