/* Mercurio staff · Aura Media brand */
:root {
  --bg: #0A0A0A;
  --bg-elevated: #121212;
  --surface: #1A1A1A;
  --card: rgba(31, 31, 31, 0.72);
  --border: #2A2A2A;
  --border-glow: rgba(255, 184, 0, 0.22);
  --text: #F5F5F5;
  --muted: #A0A0A0;
  --gold: #FFB800;
  --gold-hover: #E6A600;
  --gold-soft: rgba(255, 184, 0, 0.12);
  --green: #43A047;
  --green-bg: rgba(67, 160, 71, 0.12);
  --red: #E53935;
  --red-bg: rgba(229, 57, 53, 0.12);
  --blue: #5B8CFF;
  --blue-bg: rgba(91, 140, 255, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 184, 0, 0.08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 184, 0, 0.04), transparent 40%),
    var(--bg);
  min-height: 100dvh;
}

a { color: var(--gold); }

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

/* —— Brand header —— */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-top: 0.35rem;
}

.brand .mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #ffc83d);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  color: #0A0A0A;
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.35);
  flex-shrink: 0;
}

.brand-text h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #fff;
}

.brand-text h1 b {
  color: var(--gold);
  font-weight: 400;
}

.brand-text .sub {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* —— Glass cards —— */
.card {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 184, 0, 0.04);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* Login centered polish */
#loginCard {
  margin-top: 1.5rem;
}

#loginCard .btn-primary {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input, select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #101010;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder { color: #666; opacity: 1; }

input:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.14);
}

#uid {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.row > * { flex: 1 1 auto; min-width: 120px; }

.btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  background: #161616;
  color: var(--text);
  transition: transform 140ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: #0A0A0A;
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.28);
}

.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 184, 0, 0.35);
  color: var(--gold);
}

.btn-ghost:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.btn-green {
  background: var(--green-bg);
  color: var(--green);
  border-color: rgba(67, 160, 71, 0.4);
}

.btn-red {
  background: var(--red-bg);
  color: #ff6b6b;
  border-color: rgba(229, 57, 53, 0.4);
}

.btn-blue {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: rgba(91, 140, 255, 0.35);
}

/* —— Saldo hero —— */
.saldo-box {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
  background:
    linear-gradient(160deg, rgba(255, 184, 0, 0.1), transparent 55%),
    var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow), 0 0 40px rgba(255, 184, 0, 0.08);
}

.saldo-box .nombre {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.saldo-box .saldo {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 32px rgba(255, 184, 0, 0.25);
}

.saldo-box .meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* —— Messages —— */
.msg {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}

.msg.show { display: block; }
.msg.ok { background: var(--green-bg); color: var(--green); border: 1px solid rgba(67, 160, 71, 0.35); }
.msg.err { background: var(--red-bg); color: #ff6b6b; border: 1px solid rgba(229, 57, 53, 0.35); }
.msg.info { background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(91, 140, 255, 0.35); }

/* —— Movements table —— */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 750;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom-color: rgba(255, 184, 0, 0.28);
}

.tipo-carga { color: var(--green); font-weight: 700; }
.tipo-debito { color: #ff6b6b; font-weight: 700; }

.hidden { display: none !important; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.staff-chip {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .btn { min-width: auto; flex: 0 0 auto; min-height: 40px; padding: 0.5rem 0.9rem; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Tip tip */
.tip {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 184, 0, 0.28);
  background: var(--gold-soft);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.tip strong {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.tip ol {
  margin: 0;
  padding-left: 1.15rem;
}

.tip li { margin: 0.15rem 0; }

.footer-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: #555;
  letter-spacing: 0.04em;
}

.footer-note a { color: #777; text-decoration: none; }
.footer-note a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .wrap { padding: 1rem 0.85rem 2rem; max-width: 100%; }
  .grid2 { grid-template-columns: 1fr; }
  .saldo-box .saldo { font-size: 2.6rem; }
  .brand-text h1 { font-size: 1.55rem; }
  .row > * { min-width: calc(50% - 0.4rem); }
  .row .btn-ghost { flex-basis: 100%; }
}

@media (max-width: 380px) {
  .row > * { min-width: 100%; }
}


/* Tabs / expanded panel 2026-09-23 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .75rem 0 1rem;
}
.tab {
  background: #1a1a1a;
  color: #ccc;
  border: 1px solid #333;
  border-radius: 999px;
  padding: .45rem .9rem;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.tab.active {
  background: #FFB800;
  color: #0A0A0A;
  border-color: #FFB800;
  font-weight: 700;
}
.tab-panel.hidden { display: none !important; }
.hint { color: #888; font-size: .8rem; margin-top: .6rem; }
.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .75rem;
}
@media (max-width: 720px) {
  .grid3 { grid-template-columns: 1fr; }
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.stat {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.stat span { color: #888; font-size: .75rem; }
.stat b { color: #FFB800; font-size: 1.15rem; }
.btn-sm { padding: .3rem .6rem; font-size: .75rem; }
select {
  width: 100%;
  background: #0A0A0A;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  padding: .7rem .85rem;
  font: inherit;
}

/* —— Landing pública Mercurio —— */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
body.landing-page {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}
.m-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1.25rem;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.m-brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .04em;
}
.m-brand img {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover;
  border: 1px solid rgba(255,184,0,.35);
}
.m-brand b { color: var(--gold); font-weight: 400; }
.m-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.m-nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.m-nav a:hover, .m-nav a[aria-current="page"] { color: var(--gold); }
.m-nav-cta {
  background: var(--gold) !important; color: #0A0A0A !important;
  padding: .45rem .9rem; border-radius: 999px; font-weight: 800 !important;
}
.m-menu-btn {
  display: none; background: transparent; border: 0; cursor: pointer; padding: .4rem;
}
.m-menu-btn span:not(.sr-only) {
  display: block; width: 22px; height: 2px; background: var(--gold); margin: 5px 0;
}
.m-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.m-hero { text-align: center; padding: 1.5rem 0 2rem; }
.m-eyebrow {
  color: var(--gold); font-size: .75rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .5rem;
}
.m-hero h1 {
  font-family: var(--font-display); font-size: clamp(2.8rem, 8vw, 4.5rem);
  letter-spacing: .06em; margin: 0; color: var(--gold);
  text-shadow: 0 0 40px rgba(255,184,0,.25);
}
.m-lead {
  max-width: 640px; margin: .85rem auto 1.25rem; color: var(--muted);
  font-size: 1.05rem; line-height: 1.55;
}
.m-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.m-hero-actions .btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.25rem; }
.m-grid { display: grid; gap: 1.5rem; }
.m-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border-glow);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.m-card-media { min-height: 220px; background: #050505; }
.m-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-card-body { padding: 1.35rem 1.4rem 1.5rem; }
.m-card-body h2 {
  font-family: var(--font-display); font-size: 1.85rem; letter-spacing: .04em;
  color: var(--gold); margin: 0 0 .6rem;
}
.m-card-body h3 {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin: 1.1rem 0 .45rem;
}
.m-card-body p { color: var(--muted); line-height: 1.55; margin: 0 0 .75rem; }
.m-steps, .m-list { margin: 0 0 .75rem; padding-left: 1.2rem; color: var(--text); }
.m-steps li, .m-list li { margin: .35rem 0; line-height: 1.45; color: var(--muted); }
.m-steps li strong, .m-list li strong { color: var(--text); }
.m-card-body code {
  background: rgba(255,184,0,.12); color: var(--gold);
  padding: .1rem .35rem; border-radius: 6px; font-size: .9em;
}
.m-note {
  font-size: .88rem; border-left: 3px solid var(--gold);
  padding: .55rem .85rem; background: var(--gold-soft); border-radius: 0 10px 10px 0;
}
.m-card-body .btn {
  text-decoration: none; display: inline-flex; margin-top: .5rem;
  min-height: 46px; padding: .65rem 1.15rem; align-items: center;
}
.m-footer {
  text-align: center; padding: 1.5rem 1rem 2.5rem; color: #555; font-size: .78rem;
}
.m-footer a { color: #888; text-decoration: none; }
.m-footer a:hover { color: var(--gold); }
@media (max-width: 860px) {
  .m-card { grid-template-columns: 1fr; }
  .m-card-media { max-height: 280px; }
}
@media (max-width: 720px) {
  .m-menu-btn { display: block; }
  .m-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #0f0f0f; border-bottom: 1px solid var(--border); padding: .5rem 0;
  }
  .m-nav.open { display: flex; }
  .m-nav a { padding: .85rem 1.25rem; border-top: 1px solid #1a1a1a; }
  .m-nav-cta { margin: .5rem 1.25rem .85rem; text-align: center; }
}

/* Landing tweaks 2026-09-23 */
.m-brand img {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
  border: 1px solid rgba(255,184,0,.45);
  box-shadow: 0 0 16px rgba(255,184,0,.25);
}
.m-hero-logo {
  display: block; width: min(280px, 70vw); height: auto;
  margin: 0 auto 1rem; border-radius: 16px;
  border: 1px solid rgba(255,184,0,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.m-section { margin: 0 0 2rem; }
.m-section-head { margin-bottom: 1.25rem; }
.m-lead-left { margin-left: 0; text-align: left; max-width: 720px; }
.m-card-media { aspect-ratio: 16 / 9; min-height: 200px; }
.m-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
