/* Marca: marino, dorado y turquesa de Suma Brokers. Una columna, tarjetas, resplandor que sigue el dedo. */
:root {
  --navy: #00101d; --navy-2: #071826; --card: rgba(7, 24, 38, .92);
  --gold: #d4a95f; --teal: #1fa2c0; --cream: #f4efe6; --muted: #9fb0bf; --line: rgba(212,169,95,.26);
  --bad: #ff8f7a;
  --display: "Montserrat", "Segoe UI", Arial, sans-serif; --body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: dark; --mx: 80%; --my: 0%;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--navy); color: var(--cream); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(420px 420px at var(--mx) var(--my), rgba(31,162,192,.22), transparent 70%),
    radial-gradient(800px 520px at 0% 30%, rgba(212,169,95,.12), transparent 60%),
    radial-gradient(900px 600px at 100% 90%, rgba(31,162,192,.12), transparent 60%); }
.peaks { position: fixed; right: -60px; bottom: -40px; width: min(520px, 90vw); opacity: .06; z-index: 0; pointer-events: none; }
#app { position: relative; z-index: 1; }
.boot { text-align: center; padding: 80px 16px; color: var(--muted); }
button { font: inherit; color: inherit; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
[hidden] { display: none !important; }

/* barra superior y menú */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(0,16,29,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .logo { height: 36px; width: auto; display: block; }
.top .sp { flex: 1; }
.burger { all: unset; box-sizing: border-box; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); }
.burger svg { width: 24px; height: 24px; }
.pp-slot { height: 36px; display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: 3px 8px; }
.pp-slot img { height: 28px; width: auto; display: block; }
.drawer-bg { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.6); }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 31; width: min(300px, 84vw); padding: 18px 14px; background: #020d17; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: none; } }
.drawer .who { padding: 6px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.drawer .who b { display: block; font-family: var(--display); font-size: 16px; }
.drawer .who span { color: var(--muted); font-size: 14px; word-break: break-all; }
.nav { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 12px; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.nav:hover, .nav.on { background: rgba(212,169,95,.14); color: var(--gold); }
.drawer .grow { flex: 1; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 72px; }

/* acceso */
.auth { max-width: 440px; margin: 0 auto; padding: 36px 16px 60px; }
.auth .brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth .brand img { height: 64px; }
.auth h1 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; text-transform: uppercase; margin: 0 0 8px; text-align: center; text-wrap: balance; }
.auth .sub { text-align: center; color: #d6dde4; margin: 0 0 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: #001220; border: 1px solid var(--line); margin-bottom: 18px; }
.tab { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 11px 8px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tab.on { background: var(--gold); color: #1a1204; }
form.card, .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
label { display: block; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.18); background: #001220; color: var(--cream); font: inherit; margin-bottom: 14px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(31,162,192,.3); }
.hint { margin: -8px 0 14px; color: var(--muted); font-size: 14px; }
.err { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255,143,122,.14); border-left: 4px solid var(--bad); font-size: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--gold); color: #1a1204; border: 0; cursor: pointer; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.btn:hover { background: #e3bb74; }
.btn.alt { background: transparent; color: var(--cream); border: 1.5px solid var(--teal); }
.btn.alt:hover { background: rgba(31,162,192,.16); }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 12px; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.link { all: unset; cursor: pointer; color: var(--muted); text-decoration: underline; padding: 8px 2px; font-size: 15px; }

/* camino */
.hello { padding: 26px 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.ring { position: relative; width: 112px; height: 112px; }
.ring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring .t { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; }
.ring .t small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.hello h1 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 6vw, 34px); line-height: 1.1; margin: 0; text-wrap: balance; }
.next { margin: 4px 0 8px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(31,162,192,.22), rgba(212,169,95,.16)); border: 1px solid rgba(212,169,95,.5); display: flex; flex-direction: column; gap: 10px; }
.next b { font-family: var(--display); font-size: 19px; line-height: 1.25; }
.next small { color: #d6dde4; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.chip { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .14em; padding: 3px 9px; border-radius: 999px; border: 1.5px solid; }
.chip.haz { color: var(--gold); border-color: var(--gold); }
.chip.lee { color: var(--teal); border-color: var(--teal); }
.chip.bad { color: var(--bad); border-color: var(--bad); }
.chip.ok { color: #6fe0a8; border-color: #6fe0a8; }
.chip.mut { color: var(--muted); border-color: rgba(255,255,255,.25); }

.part { margin: 34px 0 12px; }
.part .kicker { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin: 0 0 4px; }
.part h2 { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; margin: 0 0 6px; text-transform: uppercase; text-wrap: balance; }
.part p { margin: 0; color: var(--muted); font-size: 16px; max-width: 56ch; }
.part::after { content: ""; display: block; margin-top: 12px; width: 64px; height: 3px; background: var(--gold); border-radius: 3px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; scroll-margin-top: 80px; }
.step.open { border-color: rgba(212,169,95,.6); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.step.done { border-color: rgba(31,162,192,.45); }
.step.stuck { border-color: rgba(255,143,122,.6); }
.head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; cursor: pointer; }
.num { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #001220; border: 1px solid var(--line); font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--gold); font-variant-numeric: tabular-nums; }
.step.done .num { background: var(--teal); border-color: var(--teal); color: #001220; }
.step.stuck .num { background: rgba(255,143,122,.2); border-color: var(--bad); color: var(--bad); }
.ttl { flex: 1; min-width: 0; }
.ttl b { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.25; text-wrap: balance; }
.ttl .chip { margin: 0 6px 6px 0; }
.chev { flex: none; width: 22px; height: 22px; color: var(--muted); transition: transform .2s ease; }
.step.open .chev { transform: rotate(180deg); }
.body { padding: 2px 16px 18px; }
ol.do { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: a; display: flex; flex-direction: column; gap: 10px; }
ol.do li { counter-increment: a; position: relative; padding-left: 34px; }
ol.do li::before { content: counter(a); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 12px; background: rgba(212,169,95,.16); color: var(--gold); }
ol.do b { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 10px 10px 10px 14px; border-radius: 12px; background: #001220; border: 1px solid var(--line); }
.field .lab { flex: 1 1 100%; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.field .val { flex: 1 1 160px; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 18px; word-break: break-all; user-select: all; -webkit-user-select: all; }
.copy { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 16px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--gold); color: var(--gold); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.copy:hover { background: rgba(212,169,95,.14); }
.note { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(31,162,192,.14); border-left: 4px solid var(--teal); font-size: 16px; }
.note b { display: block; font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.help { margin-top: 14px; padding: 12px; border-radius: 12px; background: rgba(255,143,122,.1); border: 1px solid rgba(255,143,122,.4); }
.help textarea { margin-bottom: 10px; }
.finish { margin: 28px 0 0; padding: 22px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(31,162,192,.25), rgba(212,169,95,.2)); border: 1px solid rgba(212,169,95,.5); }
.finish h3 { font-family: var(--display); font-weight: 800; font-size: 22px; margin: 0 0 6px; text-transform: uppercase; }
.finish p { margin: 0; }
.motto { text-align: center; margin: 40px 0 0; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* panel */
.title { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; margin: 26px 0 14px; line-height: 1.1; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.tile b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.tile span { font-size: 13px; color: var(--muted); }
.tile.alert b { color: var(--bad); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.filters button { all: unset; flex: none; cursor: pointer; padding: 9px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.2); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.filters button.on { background: var(--gold); color: #1a1204; border-color: var(--gold); }
.list { display: flex; flex-direction: column; gap: 10px; }
.agent { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.agent:hover { border-color: rgba(212,169,95,.6); }
.agent.bad { border-color: rgba(255,143,122,.6); }
.a-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.a-top b { font-family: var(--display); font-size: 16px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bar { height: 7px; border-radius: 7px; background: rgba(255,255,255,.1); margin: 10px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 7px; }
.a-meta { font-size: 15px; }
.a-sub { font-size: 14px; color: var(--muted); }
.empty { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.sec { margin: 28px 0 10px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.invite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; }
.invite .code { font-family: var(--display); font-weight: 800; letter-spacing: .12em; font-size: 18px; }
.invite small { color: var(--muted); flex: 1 1 100%; }
.back { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.st { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.st:last-child { border-bottom: 0; }
.st .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; border: 2px solid rgba(255,255,255,.25); color: var(--muted); }
.st.done .dot { background: var(--teal); border-color: var(--teal); color: #001220; }
.st.stuck .dot { border-color: var(--bad); color: var(--bad); }
.st small { display: block; color: var(--bad); }
.nt { padding: 10px 12px; border-radius: 10px; background: #001220; margin-bottom: 8px; }
.nt small { display: block; color: var(--muted); }
.tempbox { margin-top: 12px; padding: 14px; border-radius: 12px; background: rgba(212,169,95,.12); border: 1px solid var(--gold); }
.tempbox .val { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .08em; user-select: all; }
select { min-height: 46px; padding: 10px 12px; border-radius: 12px; background: #001220; color: var(--cream); border: 1.5px solid rgba(255,255,255,.18); font: inherit; }

#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: #0b2a3f; border: 1px solid var(--teal); color: var(--cream); font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }
@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .btn { width: 100%; }
  .btn.sm, .row .btn { width: auto; }
  .head { padding: 12px; gap: 12px; }
  .body { padding: 2px 12px 16px; }
  .hello { grid-template-columns: 1fr; justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { .chev, .drawer { transition: none; animation: none; } }

.tabs.t3 { grid-template-columns: repeat(3, 1fr); margin: 4px 0 16px; }
.fr { margin-bottom: 12px; }
.fr:last-child { margin-bottom: 0; }
.fr-t { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; align-items: baseline; }
.fr-t b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.fr .bar { margin: 6px 0 0; }
