/*
  ASTRANUT - Copyright (c) 2026 Jeferson Fabián Soto Benítez.
  Author and copyright holder. All rights reserved.
*/
:root {
  --navy: #001946; --navy-mid: #002464; --green: #14c800; --green-dark: #0a9400;
  --orange: #f5a623; --magenta: #c0008f; --bg: #f0f2f7; --card: #ffffff;
  --text: #001234; --text2: #2a4060; --muted: #556080; --line: rgba(0,36,100,0.12);
  --shadow: 0 4px 24px rgba(0,25,70,0.10); --danger: #c62828; --ok: #0a8a00;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito Sans', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.55; }
a { color: var(--navy-mid); }
h1, h2, h3, .brand { font-family: 'Exo 2', sans-serif; }
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(240,242,247,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1100px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 16px; }
.topbar .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar .logo img.ic { width: 36px; height: 36px; object-fit: contain; }
.topbar .logo img.wm { height: 22px; width: auto; }
.topbar .sp { flex: 1; }
.topbar .back { font-size: .9rem; color: var(--text2); text-decoration: none; font-weight: 600; }
.topbar .back:hover { color: var(--green-dark); }
select.lang { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .8rem; font: inherit; font-size: .88rem; color: var(--text); cursor: pointer; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 16px 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; }
.auth { max-width: 460px; margin: 24px auto; }
.auth h1 { font-size: 1.6rem; margin-bottom: .3rem; }
.auth .sub { color: var(--muted); margin-bottom: 1.4rem; font-size: .95rem; }
label.f { display: block; font-size: .82rem; font-weight: 700; color: var(--text2); margin: .9rem 0 .35rem; }
input.i, select.i, textarea.i { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .9rem; font: inherit; color: var(--text); background: #fff; }
textarea.i { min-height: 120px; resize: vertical; }
input.i:focus, select.i:focus, textarea.i:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,200,0,.15); }
.invalid { border-color: var(--danger) !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 .2rem; font-size: .88rem; color: var(--text2); }
.check input { margin-top: .25rem; accent-color: var(--green); width: 16px; height: 16px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: none; border-radius: 999px; padding: .75rem 1.5rem; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-green { background: linear-gradient(135deg, #14c800, #0a9400); color: #fff; }
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(20,200,0,.35); }
.btn-navy { background: var(--navy-mid); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-mid); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy-mid); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; margin-top: 1.2rem; }
.links { margin-top: 1rem; display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; }
.links a { cursor: pointer; }
.status { margin-top: .9rem; font-size: .9rem; min-height: 1.2em; }
.status.ok { color: var(--ok); } .status.err { color: var(--danger); }
.notice { background: #fff8e6; border: 1px solid #f5d38a; color: #6b4a00; border-radius: 12px; padding: .9rem 1rem; font-size: .9rem; }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.head h1 { font-size: 1.6rem; }
.head .code { font-size: .85rem; color: var(--muted); }
.head .code b { color: var(--text); font-family: 'Exo 2', sans-serif; }
.head .sp { flex: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tab { border: 1px solid var(--line); background: #fff; color: var(--text2); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; position: relative; }
.tab[aria-selected="true"] { background: var(--navy-mid); border-color: var(--navy-mid); color: #fff; }
.tab .dot { position: absolute; top: 4px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); }
.panel[hidden] { display: none; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .grid3 { grid-template-columns: 1fr; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat .n { font-family: 'Exo 2', sans-serif; font-size: 2rem; font-weight: 800; color: var(--navy-mid); }
.stat .l { color: var(--muted); font-size: .88rem; }
h2.sec { font-size: 1.15rem; margin: 26px 0 10px; }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: #f7f9fc; white-space: nowrap; }
table.t td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: none; }
.empty { color: var(--muted); padding: 1rem; font-size: .92rem; }
.pill { display: inline-block; border-radius: 999px; padding: .15rem .6rem; font-size: .75rem; font-weight: 800; background: #eef1f7; color: var(--text2); white-space: nowrap; }
.pill.g { background: rgba(20,200,0,.12); color: #087a00; }
.pill.o { background: rgba(245,166,35,.16); color: #8a5a00; }
.pill.m { background: rgba(192,0,143,.10); color: #8a0066; }
.pill.r { background: rgba(198,40,40,.10); color: #a01e1e; }
.buy { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .buy { grid-template-columns: 1fr; } }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .55rem .8rem; cursor: pointer; font-size: .9rem; background: #fff; }
.radios input { accent-color: var(--green); }
.radios label:has(input:checked) { border-color: var(--green); background: rgba(20,200,0,.06); }
.sum .big { font-family: 'Exo 2', sans-serif; font-size: 2rem; font-weight: 800; color: var(--navy-mid); margin: .3rem 0; }
.sum .line { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.sum .note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.threads { display: flex; flex-direction: column; gap: 8px; }
.thread { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.thread:hover { border-color: var(--navy-mid); }
.thread .s { flex: 1; min-width: 0; }
.thread .s b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .s small { color: var(--muted); }
.chat { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.bubble { max-width: 80%; padding: .7rem .95rem; border-radius: 14px; font-size: .92rem; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--navy-mid); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble small { display: block; opacity: .7; font-size: .72rem; margin-top: .3rem; }
.os { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .os { grid-template-columns: 1fr; } }
.os .card { text-align: center; padding: 24px 18px; }
.os svg { width: 44px; height: 44px; stroke: var(--navy-mid); fill: none; stroke-width: 1.6; margin-bottom: .6rem; }
.os .card.off { opacity: .55; }
.os h3 { margin-bottom: .3rem; }
.os p { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
footer.mini { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px 16px 40px; }
footer.mini a { color: var(--muted); margin: 0 .4rem; }
table.t td b { white-space: nowrap; }
