:root {
  --blue: #081FF7;
  --blue-2: #2339FF;
  --blue-d: #0616C2;
  --tint: #EEF0FF;
  --ink: #0B0D17;
  --ink-2: #3D4253;
  --ink-3: #6B7080;
  --bg: #FFFFFF;
  --soft: #F6F7FB;
  --line: #E5E7EE;
  --line-2: #D5D8E2;
  --up: #0A8F5B;
  --up-bg: #E7F5EE;
  --down: #D13A3A;
  --down-bg: #FCEDED;
  --warn: #9A5B00;
  --warn-bg: #FFF4E0;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1180px;
  --r: 12px;
  --surface: #FFFFFF;
  --nav-bg: rgba(255, 255, 255, .92);
  --hover: #FAFBFD;
  --accent: #081FF7;
  --accent-line: #D4D9FF;
  --up-line: #BFE3D3;
  --down-line: #F2C6C6;
  --warn-line: #F3D9B1;
  color-scheme: light;
}

/* Modo oscuro: lo elige el usuario con el botón (se recuerda) o, si no eligió, el sistema */
:root[data-theme="dark"] {
  --bg: #0B0D14;
  --soft: #10131C;
  --surface: #151925;
  --nav-bg: rgba(11, 13, 20, .88);
  --hover: #1A1F2D;
  --line: #242a3a;
  --line-2: #323a4f;
  --ink: #EEF0F6;
  --ink-2: #B9BED0;
  --ink-3: #868DA1;
  --tint: rgba(76, 98, 255, .16);
  --accent: #8B98FF;
  --accent-line: rgba(139, 152, 255, .35);
  --up: #3DD68C;
  --up-bg: rgba(61, 214, 140, .12);
  --up-line: rgba(61, 214, 140, .3);
  --down: #FF7070;
  --down-bg: rgba(255, 112, 112, .12);
  --down-line: rgba(255, 112, 112, .3);
  --warn: #F5B544;
  --warn-bg: rgba(245, 181, 68, .1);
  --warn-line: rgba(245, 181, 68, .3);
  color-scheme: dark;
}
:root[data-theme="dark"] .brand .bw { filter: invert(1); }
:root[data-theme="dark"] .market { box-shadow: 0 28px 56px -32px rgba(0, 0, 0, .8); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand .bm { width: 44px; height: auto; }
.brand .bw { width: 104px; height: auto; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 10px; font: 500 15px/1 var(--sans); border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-light { background: #FFFFFF; color: #081FF7; }
.btn-light:hover { background: var(--tint); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------- barra superior ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: var(--nav-bg);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 36px; height: 68px; }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-cta .lnk { font-size: 14.5px; color: var(--ink-2); }
.nav-cta .lnk:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 420px) { .brand .bw { display: none; } }

/* ---------- landing: hero ---------- */
.hero { padding: 76px 0 92px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .hero { padding: 48px 0 64px; } .hero .wrap { grid-template-columns: 1fr; gap: 44px; } }
.kicker { display: block; font: 500 12.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -.04em; line-height: 1.02; }
.hero .lead { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19px); margin-top: 24px; max-width: 32em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px 36px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts div { font-size: 13.5px; color: var(--ink-3); }
.facts b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }

/* tarjeta de mercado */
.market { background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11, 13, 23, .04), 0 28px 56px -32px rgba(8, 31, 247, .35); overflow: hidden; }
.market-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px;
  border-bottom: 1px solid var(--line); }
.market-h b { font-size: 15px; font-weight: 600; }
.market-h span { font: 400 12px/1 var(--mono); color: var(--ink-3); }
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--mono); color: var(--up); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: latido 2s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.mrow { display: grid; grid-template-columns: 32px 1fr auto 84px; align-items: center; gap: 14px; padding: 13px 20px;
  border-bottom: 1px solid var(--line); }
.mrow:last-of-type { border-bottom: 0; }
.mrow img { width: 32px; height: 32px; border-radius: 50%; }
.mrow .nm b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.mrow .nm small { font-size: 12.5px; color: var(--ink-3); }
.mrow .pr { font-size: 15px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.chg { justify-self: end; font: 500 12.5px/1 var(--mono); padding: 5px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--up); background: var(--up-bg); }
.chg.down { color: var(--down); background: var(--down-bg); }
.market-f { padding: 12px 20px; background: var(--soft); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.market-empty { padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: 14.5px; }
@media (max-width: 420px) { .mrow { grid-template-columns: 28px 1fr auto; } .mrow .chg { grid-column: 3; } .mrow .pr { grid-column: 3; grid-row: 1; } }

/* ---------- secciones ---------- */
.section { padding: 104px 0; }
.section.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .section { padding: 72px 0; } }
.sh { max-width: 620px; margin-bottom: 56px; }
.sh h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.035em; }
.sh p { color: var(--ink-2); font-size: 17.5px; margin-top: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.feat { padding: 30px 32px 0 0; }
.feat + .feat { padding-left: 32px; border-left: 1px solid var(--line); }
.feat .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 22px; }
.feat .ic svg { width: 20px; height: 20px; }
.feat h3 { font-size: 19px; margin-bottom: 10px; }
.feat p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } .feat, .feat + .feat { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* flujo de datos (seguridad) */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 44px; } }
.checks { display: grid; gap: 14px; margin-top: 8px; list-style: none; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.checks svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.node { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.node .t { font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.node b { display: block; font-size: 16px; font-weight: 600; margin: 8px 0 10px; }
.node .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.node .tags span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.node.prov { border-color: var(--line-2); background: var(--soft); }
.node.cp { border-color: var(--accent); box-shadow: 0 0 0 1px var(--blue); }
.node.cp .tags span { background: var(--tint); border-color: var(--accent-line); color: var(--accent); }
.arrow { display: flex; align-items: center; gap: 10px; padding: 10px 0 10px 24px; font-size: 13px; color: var(--ink-3); }
.arrow svg { width: 16px; height: 22px; color: var(--line-2); flex: none; }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: paso; }
.stp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 28px; }
.stp .n { font: 500 13px/1 var(--mono); color: var(--accent); }
.stp h3 { font-size: 18px; margin: 18px 0 8px; }
.stp p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* llamada final */
.cta { background: var(--blue); color: #fff; border-radius: 20px; padding: 60px 56px; display: grid;
  grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.03em; }
.cta p { color: rgba(255, 255, 255, .8); margin-top: 12px; font-size: 17px; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; padding: 44px 28px; } }

/* pie */
.foot { border-top: 1px solid var(--line); margin-top: 104px; padding: 56px 0 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-links h5 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.foot-links a { display: block; color: var(--ink-3); font-size: 14.5px; padding: 3px 0; }
.foot-links a:hover { color: var(--ink); }
.disclaimer { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; max-width: 900px; }
.foot-bot { margin-top: 18px; color: var(--ink-3); font-size: 13px; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 69px); display: grid; place-items: center; padding: 48px 16px; background: var(--soft); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 36px 32px; box-shadow: 0 1px 2px rgba(11, 13, 23, .04), 0 16px 40px -24px rgba(11, 13, 23, .25); }
@media (max-width: 480px) { .auth-card { padding: 28px 20px; } }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-3); font-size: 15px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field input { width: 100%; height: 42px; padding: 0 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink); font: 15px var(--sans); transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 31, 247, .14); }
.flash { padding: 11px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 18px; font-weight: 500; }
.flash.error { background: var(--down-bg); border: 1px solid var(--down-line); color: var(--down); }
.flash.ok { background: var(--up-bg); border: 1px solid var(--up-line); color: var(--up); }
.auth-foot { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 22px; }
.auth-foot a { color: var(--accent); font-weight: 500; }

/* ---------- app (shell) ---------- */
.app-body { background: var(--soft); }
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 12px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 2px; }
.side .brand { margin: 4px 10px 26px; }
.side .brand .bm { width: 38px; } .side .brand .bw { width: 92px; }
.side a.item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2);
  font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s; }
.side a.item svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.side a.item:hover { background: var(--soft); color: var(--ink); }
.side a.item.on { background: var(--tint); color: var(--accent); }
.side a.item.on svg { color: var(--accent); }
.side .sep { flex: 1; }
.side .who { border-top: 1px solid var(--line); padding: 14px 10px 2px; font-size: 13px; color: var(--ink-3); }
.side .who b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.side .who a { display: inline-block; margin-top: 8px; color: var(--ink-2); font-weight: 500; }
.side .who a:hover { color: var(--down); }
.mbar, .mmenu, .mscrim { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; height: 60px;
    padding: 0 12px 0 16px; background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); }
  .mbar .brand .bm { width: 38px; } .mbar .brand .bw { width: 92px; }
  .burger { width: 42px; height: 42px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
    display: grid; place-items: center; cursor: pointer; }
  .burger svg { width: 20px; height: 20px; }
  .burger .cerrar, .burger[aria-expanded="true"] .abrir { display: none; }
  .burger[aria-expanded="true"] .cerrar { display: block; }
  .mscrim:not([hidden]) { display: block; position: fixed; inset: 60px 0 0; z-index: 45; background: rgba(11, 13, 23, .4); }
  .mmenu:not([hidden]) { display: flex; flex-direction: column; gap: 2px; position: fixed; top: 60px; left: 0; right: 0; z-index: 48;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 12px 16px; max-height: calc(100vh - 60px); overflow-y: auto;
    box-shadow: 0 18px 40px -20px rgba(11, 13, 23, .35); animation: bajar .18s ease-out; }
  .mmenu a.item { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 16px; }
  .mmenu a.item svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
  .mmenu a.item.on { background: var(--tint); color: var(--accent); }
  .mmenu a.item.on svg { color: var(--accent); }
  .mmenu .who { border-top: 1px solid var(--line); margin-top: 8px; padding: 14px 10px 0; font-size: 13.5px; color: var(--ink-3); word-break: break-all; }
  .mmenu .who b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; word-break: normal; }
  .mmenu .linkbtn { font-size: 14px; margin-top: 10px; }
  body.menu-abierto { overflow: hidden; }
  .mbar-acc { display: flex; gap: 8px; align-items: center; }
  .mbar-acc .tema { width: 42px; height: 42px; border-radius: 9px; }
  .topbar .tema { display: none; }
}
@keyframes bajar { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .mmenu:not([hidden]) { animation: none; } }
.main { padding: 32px clamp(16px, 4vw, 44px) 64px; max-width: 1140px; width: 100%; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.topbar h1 { font-size: 24px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--accent); display: grid;
  place-items: center; font-weight: 600; font-size: 14px; flex: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin-bottom: 24px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 18px 20px; }
.stat .lbl { color: var(--ink-3); font-size: 13px; margin-bottom: 6px; }
.stat .val { font-size: 28px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 22px; overflow: hidden; }
.panel .ph { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.panel .ph h2 { font-size: 15.5px; }
.panel .ph a { font-size: 14px; color: var(--accent); font-weight: 500; }
.tablewrap { overflow-x: auto; }
table.mkt { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.mkt th { text-align: left; color: var(--ink-3); font-size: 12.5px; font-weight: 500; padding: 11px 20px;
  border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
table.mkt th.r, table.mkt td.r { text-align: right; }
table.mkt td { padding: 12px 20px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.mkt tbody tr:last-child td, table.mkt.kv tr:last-child td { border-bottom: 0; }
table.mkt tbody tr:hover td { background: var(--hover); }
table.mkt td.up { color: var(--up); } table.mkt td.down { color: var(--down); }
.coin { display: flex; align-items: center; gap: 11px; }
.coin img { width: 26px; height: 26px; border-radius: 50%; }
.coin b { font-size: 14.5px; font-weight: 600; } .coin small { color: var(--ink-3); font-size: 13.5px; }
.empty { padding: 48px 24px; text-align: center; }
.empty h3 { font-size: 16px; margin-bottom: 6px; }
.empty p { color: var(--ink-3); font-size: 14.5px; max-width: 46ch; margin: 0 auto 20px; }

.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px; margin-bottom: 22px; }
.notice .ic { color: var(--accent); flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--tint); display: grid; place-items: center; }
.notice .ic svg { width: 19px; height: 19px; }
.notice h3 { font-size: 15.5px; margin-bottom: 4px; }
.notice p { color: var(--ink-2); font-size: 14.5px; }
.notice a { color: var(--accent); font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; border: 1px solid; }
.pill.wait { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pill.off { background: var(--soft); color: var(--ink-3); border-color: var(--line); }
.pill.ok { background: var(--up-bg); color: var(--up); border-color: var(--up-line); }
.sec-title { font-size: 15.5px; margin: 6px 0 12px; }
.step { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 12px; background: var(--surface); }
.step .t b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 2px; }
.step .t small { color: var(--ink-3); font-size: 14px; }
@media (max-width: 560px) { .step { flex-direction: column; align-items: flex-start; } }
.fine { color: var(--ink-3); font-size: 13px; }

/* ---------- añadidos del panel de dinero ---------- */
.linkbtn { background: none; border: 0; padding: 0; margin-top: 8px; font: 500 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.linkbtn:hover { color: var(--down); }
.side .who { word-break: break-all; }
.side .who b { word-break: normal; }
.sandbox { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); border-radius: 10px; padding: 10px 14px;
  font-size: 13.5px; margin-bottom: 22px; }

.dash { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
@media (max-width: 1080px) { .dash { grid-template-columns: 1fr; } }
.balance { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-bottom: 22px; }
.balance .lbl { color: var(--ink-3); font-size: 14px; }
.balance .big { font-size: clamp(36px, 5vw, 52px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; margin: 6px 0 4px;
  font-variant-numeric: tabular-nums; }
.balance .incoming { color: var(--ink-3); font-size: 14px; }
.actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.actions .btn { min-width: 128px; }
.actions .btn svg { width: 17px; height: 17px; }

.acts { list-style: none; }
.acts li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.acts li:last-child { border-bottom: 0; }
.acts .ai { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink-2); }
.acts .ai svg { width: 17px; height: 17px; }
.acts .ai.in { background: var(--up-bg); color: var(--up); }
.acts b { display: block; font-size: 14.5px; font-weight: 500; }
.acts small { color: var(--ink-3); font-size: 13px; }
.acts .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; font-size: 14.5px; }
.acts .amt.in { color: var(--up); }
.acts .amt small { display: block; font-weight: 400; }
.tag-test { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--warn); background: var(--warn-bg);
  padding: 3px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 1px; }

.wl .mrow { padding: 12px 20px; grid-template-columns: 28px 1fr auto; }
.wl .mrow img { width: 28px; height: 28px; }
.wl .mrow .pr { line-height: 1.3; }
.wl .mrow .pr small { display: block; font: 500 12px var(--mono); }
.wl .mrow .pr small.up { color: var(--up); } .wl .mrow .pr small.down { color: var(--down); }

.op { max-width: 520px; }
.op .panel { padding: 26px; overflow: visible; }
.amount { position: relative; margin-bottom: 8px; }
.amount span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--ink-3); }
.amount input { background: var(--surface); width: 100%; height: 68px; padding: 0 16px 0 38px; font: 600 30px var(--sans); letter-spacing: -.03em; border: 1px solid var(--line-2);
  border-radius: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.amount input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 31, 247, .14); }
.op .avail { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.op .avail b { color: var(--ink); font-weight: 500; }
.op .field input { height: 44px; }
.op .lim { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.blocked { text-align: center; padding: 10px 4px; }
.blocked h3 { font-size: 16px; margin-bottom: 6px; }
.blocked p { color: var(--ink-3); font-size: 14.5px; margin-bottom: 18px; }
.estado { font-size: 12.5px; font-weight: 500; }
.estado.pendiente { color: var(--warn); } .estado.fallido { color: var(--down); } .estado.completado { color: var(--ink-3); }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .actions .btn { min-width: 0; padding: 0 8px; }
}

/* campo de contraseña con botón para mostrarla */
.pw { position: relative; }
.pw input { padding-right: 46px; }
.ojo { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none;
  border-radius: 7px; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.ojo:hover { color: var(--ink); background: var(--soft); }
.ojo svg { width: 19px; height: 19px; }
.ojo .ocultar, .ojo.on .ver { display: none; }
.ojo.on .ocultar { display: block; }

/* botón de tema claro / oscuro */
.tema { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; flex: none; transition: color .15s, border-color .15s; }
.tema:hover { color: var(--ink); border-color: var(--ink-3); }
.tema svg { width: 17px; height: 17px; }
.tema .sol, :root[data-theme="dark"] .tema .luna { display: none; }
:root[data-theme="dark"] .tema .sol { display: block; }

/* ---------- KYC en vivo ---------- */
.kyc .panel { padding: 24px; }
.kyc-pasos { display: flex; gap: 8px; list-style: none; margin-bottom: 16px; counter-reset: k; }
.kyc-pasos li { flex: 1; font-size: 13px; color: var(--ink-3); padding-top: 10px; border-top: 3px solid var(--line); counter-increment: k; }
.kyc-pasos li::before { content: counter(k) ". "; }
.kyc-pasos li.on { color: var(--ink); border-color: var(--blue); font-weight: 500; }
.kyc-pasos li.hecho { color: var(--ink-2); border-color: var(--accent-line); }
.sel { width: 100%; height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font: 15px var(--sans); }
.sel:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 31, 247, .14); }
.k-pista { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.k-reqs { margin: 4px 0 22px; }
.k-reqs li { font-size: 14.5px; }
.k-tit { font-size: 17px; margin-bottom: 14px; }
.k-txt { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; }
.k-video { position: relative; background: #000; border-radius: 12px; overflow: hidden; }
.k-video.doc { aspect-ratio: 4 / 3; }
.k-video.cara { aspect-ratio: 3 / 4; max-height: 56vh; margin: 0 auto; }
.k-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.k-video.cara video { transform: scaleX(-1); }
.k-marco { position: absolute; inset: 9% 6%; border: 2px dashed rgba(255, 255, 255, .8); border-radius: 10px; pointer-events: none; }
.k-video.cara .k-marco { inset: 9% 15%; border-radius: 50%; }
.k-instr { text-align: center; color: var(--ink-3); font-size: 14px; margin: 14px 0; min-height: 44px; }
.k-instr b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.k-rec { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px var(--mono); color: var(--down); text-transform: uppercase; letter-spacing: .05em; }
.k-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--down); animation: latido 1.4s infinite; }
.k-tomas { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.k-tomas i { width: 28px; height: 4px; border-radius: 2px; background: var(--line-2); }
.k-tomas i.ok { background: var(--blue); }
.k-centro { text-align: center; padding: 18px 4px 22px; }
.k-centro h2 { font-size: 19px; margin: 14px 0 6px; }
.k-centro p { color: var(--ink-2); font-size: 15px; max-width: 40ch; margin: 0 auto; }
.k-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.k-ico svg { width: 26px; height: 26px; }
.k-ico.ok { background: var(--up-bg); color: var(--up); }
.k-ico.mal { background: var(--down-bg); color: var(--down); }
.k-ico.espera { background: var(--warn-bg); color: var(--warn); }
.k-spin { width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue);
  animation: giro .9s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .k-spin { animation-duration: 3s; } }
.k-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 18px; }
.k-galeria figure { margin: 0; }
.k-galeria img, .k-galeria video { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #000; display: block; }
.k-galeria figcaption { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.k-fila { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.k-fila .field { margin-bottom: 16px; }
.k-error { background: var(--down-bg); border: 1px solid var(--down-line); color: var(--down); border-radius: 9px; padding: 10px 12px;
  font-size: 14px; margin-bottom: 14px; }

/* ---------- inicio y perfil ---------- */
.bal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rango { font-size: 12.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.chart { display: block; width: 100%; height: 140px; margin-top: 18px; }
.chart-x { display: flex; justify-content: space-between; font: 400 11.5px var(--mono); color: var(--ink-3); margin-top: 4px; }
.up-t { color: var(--up); }
.todo { list-style: none; }
.todo li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo .tk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); }
.todo li.hecho .tk { border-color: var(--up); background: var(--up) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat; }
.todo li.espera .tk { border-color: var(--warn); border-style: dashed; }
.todo b { display: block; font-size: 14.5px; font-weight: 500; }
.todo li.hecho b { color: var(--ink-3); }
.todo small { font-size: 13px; color: var(--ink-3); }
.pill.down { background: var(--down-bg); color: var(--down); border-color: var(--down-line); }

.perfil { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; max-width: 960px; }
.perfil-nav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.perfil-nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.perfil-nav a:hover { background: var(--surface); color: var(--ink); }
.psec { scroll-margin-top: 24px; }
.psec-nota { font-size: 13px; color: var(--ink-3); padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.vrow { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px; border-top: 1px solid var(--line); }
.panel .ph + .vrow { border-top: 0; }
.vrow b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.vrow small { color: var(--ink-3); font-size: 13.5px; }
.vact { display: flex; align-items: center; gap: 10px; flex: none; }
.pform { padding: 18px 20px 20px; max-width: 420px; }
.pform h3 { font-size: 15px; margin-bottom: 14px; }
@media (max-width: 860px) {
  .perfil { grid-template-columns: 1fr; gap: 14px; }
  .perfil-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .perfil-nav a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); }
  .psec { scroll-margin-top: 72px; }
  .vrow { flex-direction: column; align-items: flex-start; }
}

/* ---------- predicciones ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pred { display: grid; grid-template-columns: 1fr 340px; grid-template-rows: auto 1fr; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .pred { grid-template-columns: 1fr; } }
.pred-main { padding: 0; }
.pred-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pred-moneda .sel { min-width: 230px; }
.pred-tf { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; background: var(--soft); }
.pred-tf button { border: 0; background: none; color: var(--ink-2); font: 500 13px var(--mono); padding: 7px 12px; border-radius: 7px; cursor: pointer; }
.pred-tf button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 13, 23, .12); }
.pred-precio { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px 0; }
.pred-precio b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.pred-ley { margin-left: auto; font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.pred-ley i { width: 14px; height: 2px; display: inline-block; margin-left: 8px; }
.pred-ley .l20 { background: #2339FF; } .pred-ley .l50 { background: #F5A524; }
.pred-grafico { height: 460px; margin: 8px 6px 6px; }
@media (max-width: 640px) { .pred-grafico { height: 340px; } .pred-moneda, .pred-moneda .sel { width: 100%; min-width: 0; } .pred-ley { margin-left: 0; } }
.pred-estado { text-align: center; color: var(--ink-3); font-size: 14px; padding: 0 20px 20px; }
.senal { padding-bottom: 6px; }
.senal-dir { padding: 18px 20px 6px; }
.senal-dir span { display: inline-block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; padding: 6px 14px; border-radius: 10px; background: var(--soft); color: var(--ink-2); }
.senal-dir.alcista span { background: var(--up-bg); color: var(--up); }
.senal-dir.bajista span { background: var(--down-bg); color: var(--down); }
.motivos { list-style: none; padding: 6px 20px 14px; display: grid; gap: 10px; }
.motivos li { font-size: 14px; color: var(--ink-2); padding-left: 14px; position: relative; line-height: 1.5; }
.motivos li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.ia-txt { padding: 16px 20px 20px; font-size: 14.5px; line-height: 1.65; }
.tag-ia { font: 500 11px var(--mono); color: var(--accent); background: var(--tint); padding: 3px 7px; border-radius: 5px; }

/* ---------- tarjeta de perfil en el menú (como en Osviani) ---------- */
.yo { display: flex; align-items: center; gap: 11px; padding: 9px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); transition: border-color .15s, background .15s; min-width: 0; }
.yo:hover { border-color: var(--line-2); background: var(--soft); }
.yo.on { border-color: var(--blue); }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 10px; object-fit: cover; display: block; }
.avatar--inicial { display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; }
.avatar--grande { width: 72px; height: 72px; border-radius: 18px; font-size: 28px; }
.yo__nombres { display: grid; min-width: 0; line-height: 1.3; }
.yo__nombres small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yo__nombres strong { font-size: 14.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .salir { border-top: 1px solid var(--line); padding-top: 10px; }
.salir .item { width: 100%; border: 0; background: none; cursor: pointer; font: 500 14.5px var(--sans); text-align: left; }
.side .salir .item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); }
.side .salir .item:hover { background: var(--down-bg); color: var(--down); }
.side .salir .item:hover svg { color: var(--down); }
.side .salir svg { width: 18px; height: 18px; color: var(--ink-3); }
.foto-row { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.foto-row b { display: block; font-size: 15px; font-weight: 600; }
.foto-row small { font-size: 13px; color: var(--ink-3); }
.foto-acc { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.foto-acc label { cursor: pointer; }
@media (max-width: 860px) {
  .mmenu .yo { margin: 4px 0 8px; padding: 11px; }
  .mmenu .yo .avatar { width: 42px; height: 42px; }
  .mmenu .salir { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .mmenu .salir .item { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 9px; color: var(--ink-2); font-size: 16px; }
  .mmenu .salir svg { width: 20px; height: 20px; color: var(--ink-3); }
}
.pred-main { grid-column: 1; }
.pred-tabla { grid-column: 1; }
.pred-side { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 1100px) { .pred { grid-template-rows: none; } .pred-side { grid-column: 1; grid-row: auto; order: 2; } .pred-tabla { order: 3; } }
.senal table.mkt td { white-space: normal; }
.senal table.mkt td.r { text-align: right; }
tr.clic { cursor: pointer; }
tr.sel-fila td { background: var(--tint) !important; }
.senal-chip { font-size: 12.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); }
.senal-chip.alcista { background: var(--up-bg); color: var(--up); border-color: var(--up-line); }
.senal-chip.bajista { background: var(--down-bg); color: var(--down); border-color: var(--down-line); }
.field .ayuda { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* La columna del contenido no puede crecer más que la pantalla: las tablas anchas se desplazan dentro de su caja. */
.shell > div, .main { min-width: 0; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
@media (max-width: 640px) {
  table.mkt th, table.mkt td { padding-left: 14px; padding-right: 14px; }
  table.mkt td:first-child, table.mkt th:first-child { padding-left: 16px; }
  .tablewrap { position: relative; }
}

/* insignia azul de verificado en la esquina inferior derecha de la foto */
.avatar-wrap { position: relative; display: inline-block; flex: none; line-height: 0; }
.verificado { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; filter: drop-shadow(0 1px 1px rgba(11, 13, 23, .2)); }
.avatar-wrap.avatar--grande { width: auto; height: auto; border-radius: 0; font-size: inherit; }
.avatar-wrap.avatar--grande .verificado { width: 28px; height: 28px; right: -7px; bottom: -7px; }
@media (max-width: 860px) { .mmenu .yo .verificado { width: 20px; height: 20px; } }
/* administración dentro del perfil */
.vlink { color: inherit; transition: background .15s; }
.vlink:hover { background: var(--soft); }
.vlink .flecha { width: 18px; height: 18px; color: var(--ink-3); }
.cuenta-pend { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12.5px;
  font-weight: 600; display: inline-grid; place-items: center; }
.mv-top { text-align: center; padding: 26px 20px 18px; border-bottom: 1px solid var(--line); }
.mv-monto { font-size: 34px; font-weight: 600; letter-spacing: -.03em; margin-top: 12px; }
.mv-estado { color: var(--ink-2); font-size: 15px; margin-top: 6px; max-width: 42ch; margin-left: auto; margin-right: auto; }
.mv-paso { padding: 16px 20px 4px; font-size: 14.5px; color: var(--ink-2); }
.codigo { font-family: var(--mono); letter-spacing: .04em; color: var(--accent); }
.act-link { display: block; color: inherit; min-width: 0; }
a.act-link[href]:hover b { color: var(--accent); }
.movs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
@media (max-width: 640px) { .movs { grid-template-columns: 1fr; } }
.mv-card { margin-bottom: 0; }
.mv-card .ph h2 { display: flex; align-items: center; gap: 6px; }
.mv-form { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.mv-nota { height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 14px var(--sans); }
.rec { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.rec-aprobado { background: var(--up-bg); color: var(--up); }
.rec-rechazado { background: var(--down-bg); color: var(--down); }
.rec-pendiente { background: var(--warn-bg); color: var(--warn); }
