/* =====================================================================
   Kronos DEFI — look & feel cliente
   Navy #0A0E17 · cyan #00B8FF · naranja #FF8A00 · Orbitron + Montserrat
   ===================================================================== */

:root {
  --bg: #0A0E17;
  --bg-2: #070b12;
  --surface: #0e1420;
  --surface-2: #121a28;
  --surface-3: #172033;
  --elevated: #111827;
  --line: rgba(98, 227, 255, 0.08);
  --line-strong: rgba(98, 227, 255, 0.16);

  --text: #E6E6E6;
  --muted: #9aa6b8;
  --faint: #6b778c;

  --gold: #FFC857;
  --gold-soft: #FFD580;
  --gold-deep: #FF8A00;
  --blue: #00B8FF;
  --blue-soft: #62E3FF;
  --blue-deep: #0047A1;
  --purple: #3d7cff;

  --profit: #2fd08a;
  --profit-soft: #4ee0a0;
  --loss: #ff5d6c;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  --shadow-blue: 0 14px 46px rgba(0, 184, 255, 0.28);
  --shadow-gold: 0 12px 42px rgba(255, 138, 0, 0.28);

  --nav-w: 250px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Orbitron", var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------------------------------------------------------------
   Fondo ambiental
--------------------------------------------------------------- */
.bg-ambient::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 40% at 12% -5%, rgba(0, 184, 255, 0.16), transparent 60%),
    radial-gradient(45% 40% at 100% 0%, rgba(255, 138, 0, 0.10), transparent 55%),
    var(--bg);
}
.bg-ambient::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(98, 227, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 227, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 18% -10%, #000 0%, transparent 62%);
}
.grain { position: relative; }

/* ---------------------------------------------------------------
   Contenedores
--------------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-7xl { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 460px; }

/* ---------------------------------------------------------------
   Cards / bento
--------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.card-elevated { background: var(--elevated); box-shadow: var(--shadow); }
.card-glow { box-shadow: 0 0 0 1px rgba(0,184,255,0.15), 0 20px 60px rgba(0,184,255,0.10); }
.card-pad-lg { padding: 28px; }

/* tarjeta con imagen de fondo */
.media-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.media-card > .media-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; z-index: 0; }
.media-card > .media-inner { position: relative; z-index: 2; padding: 26px; }
.media-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,0.92) 8%, rgba(0,0,0,0.55) 48%, rgba(0,0,0,0.15)); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); }
.pill-gold { color: var(--gold-soft); border-color: rgba(255,138,0,0.35); background: rgba(255,138,0,0.10); }
.pill-blue { color: var(--blue-soft); border-color: rgba(0,184,255,0.35); background: rgba(0,184,255,0.10); }
.pill-profit { color: var(--profit); border-color: rgba(47,208,138,0.35); background: rgba(47,208,138,0.10); }
.pill-loss { color: var(--loss); border-color: rgba(255,93,108,0.35); background: rgba(255,93,108,0.10); }

.eyebrow { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-soft); font-weight: 700; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ---------------------------------------------------------------
   Botones
--------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap; letter-spacing: -0.01em;
}
.btn i { font-size: 1.15em; transition: transform .2s ease; }
.btn:hover i.iconoir-arrow-right { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: linear-gradient(135deg, var(--blue-soft), var(--blue)); color: #041025; box-shadow: var(--shadow-blue); }
.btn-primary:hover { box-shadow: 0 18px 54px rgba(0,184,255,0.42); }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); color: #1a1305; box-shadow: var(--shadow-gold); }
.btn-blue { background: linear-gradient(135deg, var(--blue-soft), var(--blue)); color: #041025; box-shadow: var(--shadow-blue); }
.btn-light { background: #f2f4f8; color: #0a0a0f; }
.btn-light:hover { background: #fff; }
.btn-dark { background: #0f0f15; color: var(--text); border-color: var(--line-strong); }
.btn-dark:hover { background: #16161f; }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------
   Inputs
--------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--text); font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus, .select:focus { outline: none; border-color: rgba(0,184,255,0.65); box-shadow: 0 0 0 3px rgba(0,184,255,0.16); background: #08080c; }
.input::placeholder { color: var(--faint); }
.input-help { font-size: 12px; color: var(--faint); }
.input-error { color: var(--loss); font-size: 12px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aa2b4' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* input con boton (ojito password) */
.input-group { position: relative; }
.input-group .input { padding-right: 46px; }
.input-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: transparent; border: none; color: var(--faint); font-size: 20px; transition: color .2s, background .2s; }
.input-toggle:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* ---------------------------------------------------------------
   Stat
--------------------------------------------------------------- */
.stat-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.stat-label i { font-size: 16px; opacity: .85; }
.stat-value { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Section explainer block */
.explainer {
  display: flex; gap: 16px; align-items: flex-start;
  background: linear-gradient(120deg, rgba(0,184,255,0.09), rgba(255,138,0,0.05));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px;
}
.explainer .ex-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,184,255,0.14); color: var(--blue-soft); font-size: 24px; }
.explainer h3 { font-size: 17px; margin-bottom: 3px; }
.explainer p { margin: 0; color: var(--muted); font-size: 14px; }

/* Aviso contextual (reglas / alertas suaves) */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(120deg, rgba(255,138,0,0.10), rgba(255,138,0,0.04));
  border: 1px solid rgba(255,138,0,0.30);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px;
}
.notice .n-icon { flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(255,138,0,0.18);
  color: var(--gold-soft); font-size: 22px; }
.notice h4 { font-size: 15px; margin: 0 0 4px; color: var(--gold-soft); }
.notice p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.notice a { color: var(--gold-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.notice.is-warn {
  background: linear-gradient(120deg, rgba(255,93,108,0.08), rgba(255,93,108,0.03));
  border-color: rgba(255,93,108,0.30);
}
.notice.is-warn .n-icon { background: rgba(255,93,108,0.16); color: var(--loss); }
.notice.is-warn h4 { color: var(--loss); }
.notice.is-warn a { color: var(--loss); }
@media (max-width: 600px) {
  .notice { gap: 10px; padding: 14px 14px; }
  .notice .n-icon { width: 36px; height: 36px; font-size: 20px; }
  .notice h4 { font-size: 14px; }
  .notice p { font-size: 13px; }
}

/* =====================================================================
   SHELL de la app
   ===================================================================== */
.app { display: flex; min-height: 100dvh; }

.sidebar {
  width: var(--nav-w); flex: none; position: sticky; top: 0; height: 100dvh;
  background: var(--bg-2);
  border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
}
.sidebar .brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 22px; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--blue-soft), var(--blue-deep)); display: grid; place-items: center; color: #061225; font-weight: 800; font-family: var(--display); box-shadow: var(--shadow-blue); }
.brand-name { font-family: var(--display); font-weight: 800; letter-spacing: 0.02em; font-size: 19px; }

.nav-section { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 16px 14px 8px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 14px; color: var(--muted); font-weight: 600; font-size: 15px; transition: background .15s, color .15s; position: relative; }
.nav-link i { font-size: 21px; }
.nav-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-link.active { background: linear-gradient(120deg, rgba(0,184,255,0.18), rgba(0,184,255,0.05)); color: var(--blue-soft); }
.nav-link.active::before { content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 3px; height: 22px; border-radius: 3px; background: var(--blue); }
.sidebar-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }

/* Marca con logo + subtitulo (dashboard) */
.brand-logo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.brand-logo svg { width: 40px; height: 40px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-tag { font-size: 9px; letter-spacing: .18em; color: var(--faint); font-weight: 700; margin-top: 4px; }

/* Logo de imagen (ya incluye el texto) */
.brand-img { width: 100%; max-width: 188px; height: auto; display: block; }
.brand-admin { flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-admin-tag { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding-left: 3px; }
.nav-logo .logo-img { height: 34px; width: auto; display: block; }
.auth-visual .av-logo .logo-img { height: 42px; width: auto; display: block; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.5)); }

/* Tarjeta de usuario al pie del sidebar */
.side-user { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 16px; background: linear-gradient(120deg, rgba(255,138,0,0.12), rgba(255,255,255,0.02)); border: 1px solid var(--line); }
.side-user .su-av { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); display: grid; place-items: center; font-weight: 800; color: #1a1305; flex: none; }
.side-user .su-txt { min-width: 0; display: flex; flex-direction: column; }
.side-user .su-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .su-rank { font-size: 11px; color: var(--gold-soft); }
.side-user .su-badge { margin-left: auto; color: var(--gold-soft); font-size: 18px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px;
  padding: 16px 26px; background: rgba(10,14,23,0.78); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.topbar .page-title { font-family: var(--display); font-weight: 700; font-size: 19px; }
.topbar .spacer { flex: 1; }
.topbar-greet h1 { font-size: 1.55rem; display: flex; align-items: center; gap: 10px; }
.topbar-greet p { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); font-size: 20px; transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--surface); }
.balance-chip .coin { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold-deep)); display: grid; place-items: center; color: #4a3708; font-size: 12px; }
.content { padding: 26px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* Topbar movil + menu hamburguesa (ocultos en escritorio) */
.mobile-topbar { display: none; align-items: center; gap: 11px; padding: calc(18px + env(safe-area-inset-top)) 16px 12px; background: transparent; }
.mtb-burger {
  width: 46px; height: 46px; border-radius: 15px; flex: none; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font-size: 23px;
}
.mtb-burger:active { background: var(--surface-2); }
.mtb-logo { flex: 1; display: flex; align-items: center; min-width: 0; }
.mtb-logo img { height: 30px; width: auto; display: block; }
.mtb-balance { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line-strong); font-weight: 700; font-size: 14px; white-space: nowrap; }
.mtb-avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #241802; background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); border: 1px solid rgba(255,255,255,0.12); }

.mobile-drawer { position: fixed; inset: 0; z-index: 120; }
.mobile-drawer[hidden] { display: none; }
.md-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px); animation: fadeIn .2s; }
.md-panel {
  position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; overflow-y: auto;
  background: var(--bg-2);
  padding: calc(16px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom));
  animation: drawerDown .28s cubic-bezier(.16,1,.3,1);
}
@keyframes drawerDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.md-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.md-logo img { height: 32px; width: auto; display: block; }
.md-close { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font-size: 22px; }
.md-user { margin-bottom: 6px; }
.md-user .su-badge { color: var(--muted); font-size: 20px; }
.md-nav { flex: 1; }
.md-nav .nav-section { padding: 16px 8px 8px; }
.md-nav .nav-link { padding: 14px 14px; font-size: 16px; border-radius: 14px; }
.md-nav .nav-link.active::before { display: none; }
.md-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.md-foot .lang-switch { align-self: flex-start; }
.md-logout { font-size: 16px; padding: 14px; }

/* Tarjeta de rango (arriba del dashboard) */
.rank-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius); margin-bottom: 18px;
  background: radial-gradient(120% 160% at 100% 50%, rgba(255,138,0,0.10), transparent 60%), var(--elevated);
  border: 1px solid rgba(255,138,0,0.24);
  transition: border-color .2s, transform .2s;
}
.rank-card:hover { border-color: rgba(255,138,0,0.45); }
.rank-card .rc-badge { width: 66px; height: 66px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 20px rgba(255,138,0,0.3)); }
.rank-card .rc-info { display: flex; flex-direction: column; gap: 3px; z-index: 2; }
.rank-card .rc-label { font-size: 13px; color: var(--muted); }
.rank-card .rc-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.rank-card .rc-star { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); color: #241802; font-size: 14px; }
.rank-card .rc-illus { position: absolute; right: 0px; top: 64%; transform: translateY(-50%); height: 150%; width: auto; object-fit: contain; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.rank-card .rc-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gold-soft); font-size: 22px; }

/* ---------------- Stat cards del dashboard ---------------- */
.stat-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 22px; min-height: 150px; display: flex; flex-direction: column; }
.stat-card.is-primary { background: radial-gradient(120% 140% at 0% 0%, rgba(255,138,0,0.14), transparent 55%), var(--elevated); border-color: rgba(255,138,0,0.22); }
.stat-card.is-green { background: radial-gradient(120% 140% at 100% 40%, rgba(47,208,138,0.14), transparent 55%), var(--elevated); border-color: rgba(47,208,138,0.22); }
.stat-card.is-blue { background: radial-gradient(120% 140% at 100% 40%, rgba(0,184,255,0.14), transparent 55%), var(--elevated); border-color: rgba(0,184,255,0.22); }
.stat-card.is-purple { background: radial-gradient(120% 140% at 100% 40%, rgba(139,124,255,0.16), transparent 55%), var(--elevated); border-color: rgba(139,124,255,0.24); }
.stat-card .sc-label { font-size: 13px; color: var(--muted); max-width: 62%; }
.stat-card .sc-value { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; margin-top: 6px; }
.stat-card .sc-value .sc-unit { font-size: 16px; font-weight: 700; color: var(--gold-soft); letter-spacing: 0; margin-left: 2px; }
.stat-card.is-green .sc-value .sc-unit { color: var(--profit); }
.stat-card .sc-sub { font-size: 12px; color: var(--faint); margin-top: 3px; }
.stat-card .sc-icon { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)); }
.stat-card .sc-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
.stat-card .sc-spark { position: absolute; right: 16px; top: 20px; width: 96px; height: 46px; }

/* ---------------- Tarjeta camino (imagen) ---------------- */
.path-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); min-height: 220px; display: flex; }
.path-card .pc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.path-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,6,10,0.95) 30%, rgba(6,6,10,0.5) 65%, transparent); }
.path-card .pc-inner { position: relative; z-index: 2; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.path-card h3 { font-size: 1.5rem; line-height: 1.15; }
.path-card h3 .accent { color: var(--gold-soft); }
.path-card p { color: var(--muted); margin: 10px 0 20px; font-size: 14px; max-width: 260px; }

/* ---------------- Roadmap horizontal ---------------- */
.roadmap-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 24px; }
.roadmap-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.roadmap-head .rh-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,138,0,0.14); color: var(--gold-soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.roadmap-head h3 { font-size: 1.1rem; }
.roadmap-head p { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.roadmap-progress { display: flex; align-items: center; gap: 12px; margin: 16px 0 22px; }
.roadmap-progress .rp-track { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.roadmap-progress .rp-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft)); width: 0; transition: width 1.4s cubic-bezier(.16,1,.3,1); }
.roadmap-progress .rp-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.roadmap-progress .rp-pct { font-family: var(--display); font-weight: 800; font-size: 14px; }
.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.roadmap::before { content: ""; position: absolute; top: 24px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); z-index: 0; }
.rstep { text-align: center; position: relative; z-index: 1; padding: 0 6px; }
.rstep .rs-dot { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); font-size: 21px; transition: all .3s; }
.rstep.done .rs-dot { background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); border-color: transparent; color: #1a1305; box-shadow: 0 8px 22px rgba(255,138,0,0.3); }
.rstep .rs-num { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.rstep .rs-label { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.25; }
.rstep.done .rs-label { color: var(--text); }

/* ---------------- Actividad reciente ---------------- */
.activity-item { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: none; }
.activity-item .ai-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; flex: none; background: rgba(0,184,255,0.13); color: var(--blue-soft); }
.activity-item .ai-ico.green { background: rgba(47,208,138,0.13); color: var(--profit); }
.activity-item .ai-ico.gold { background: rgba(255,138,0,0.13); color: var(--gold-soft); }
.activity-item .ai-body { flex: 1; min-width: 0; }
.activity-item .ai-title { font-weight: 600; font-size: 14px; }
.activity-item .ai-sub { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-item .ai-time { font-size: 11px; color: var(--faint); white-space: nowrap; }

/* ---------------- Tarjeta IA 24/7 (imagen) ---------------- */
.ai-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); min-height: 230px; }
.ai-card .ac-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ai-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,6,10,0.96) 40%, rgba(6,6,10,0.55) 70%, transparent); }
.ai-card .ac-inner { position: relative; z-index: 2; padding: 26px; display: flex; flex-direction: column; height: 100%; }
.ai-card .ac-eyebrow { font-size: 12px; color: var(--gold-soft); font-weight: 700; }
.ai-card h3 { font-size: 1.4rem; margin-top: 2px; }
.ai-card p { color: var(--muted); font-size: 13.5px; margin: 10px 0 18px; max-width: 300px; }

.balance-chip { display: flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line-strong); font-weight: 700; }
.balance-chip i { color: var(--blue-soft); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--gold)); display: grid; place-items: center; font-weight: 800; color: #04122e; }

.bottom-nav { display: none; }

.lang-switch { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 3px; }
.lang-switch a { padding: 6px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; color: var(--muted); }
.lang-switch a.active { background: var(--blue); color: #041025; }

/* =====================================================================
   Barras CAP
   ===================================================================== */
.cap { margin-bottom: 18px; }
.cap-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.cap-title { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.cap-dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 10px currentColor; background: currentColor; }
.cap-pct { font-weight: 800; font-family: var(--display); }
.cap-track { height: 8px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.06); overflow: hidden; position: relative; }
.cap-fill {
  height: 100%; border-radius: var(--radius-pill); width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  transition: width 1.4s cubic-bezier(.16,1,.3,1); position: relative;
}
.cap-fill.blue { background: linear-gradient(90deg, var(--blue-deep), var(--blue-soft)); }
.cap-fill.green { background: linear-gradient(90deg, #159a63, var(--profit-soft)); }
.cap-fill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent); transform: translateX(-100%); animation: capShimmer 2.4s infinite; }
@keyframes capShimmer { to { transform: translateX(200%); } }
.cap-meta { display: flex; justify-content: space-between; margin-top: 7px; font-size: 12px; color: var(--muted); }

.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--blue-soft) calc(var(--p) * 1%), rgba(255,255,255,0.06) 0); transition: --p 1.4s ease; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.ring .ring-val { position: relative; font-family: var(--display); font-weight: 800; font-size: 22px; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--profit); box-shadow: 0 0 0 0 rgba(47,208,138,0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47,208,138,0); } 100% { box-shadow: 0 0 0 0 rgba(47,208,138,0); } }

/* =====================================================================
   Onboarding / guia con checks
   ===================================================================== */
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); transition: background .2s; position: relative; }
.step:hover { background: rgba(255,255,255,0.02); }
.step-check { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); color: var(--faint); font-size: 18px; transition: all .3s; }
.step.done .step-check { background: var(--profit); border-color: var(--profit); color: #04140d; box-shadow: 0 0 0 4px rgba(47,208,138,0.15); animation: checkPop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes checkPop { 0% { transform: scale(0.5); } 100% { transform: scale(1); } }
.step-body { flex: 1; }
.step-title { font-weight: 700; font-size: 15px; }
.step.done .step-title { color: var(--muted); }
.step-body .step-num { font-size: 11px; color: var(--blue-soft); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Overlay de carga / procesando */
.app-loading { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(0,0,0,0.72); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.app-loading.show { opacity: 1; visibility: visible; }
.app-loading .spinner { width: 56px; height: 56px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.12); border-top-color: var(--blue-soft); animation: spin .8s linear infinite; }
.app-loading .load-text { font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.app-loading .load-sub { font-size: 13px; color: var(--muted); margin-top: -8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Boton en estado cargando */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,0.35); border-top-color: rgba(0,0,0,0.85); animation: spin .7s linear infinite; }
.btn-ghost.is-loading::after, .btn-dark.is-loading::after, .btn-hero.is-loading::after { border-color: rgba(255,255,255,0.3); border-top-color: #fff; }

/* Toasts */
.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 14px 18px; border-radius: 15px; background: var(--elevated); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; animation: toastIn .35s cubic-bezier(.16,1,.3,1); max-width: 340px; }
@keyframes toastIn { from { transform: translateX(120%); } to { transform: none; } }
.toast.success { border-color: rgba(47,208,138,0.4); } .toast.success i { color: var(--profit); }
.toast.error { border-color: rgba(255,93,108,0.4); } .toast.error i { color: var(--loss); }
.toast.info i { color: var(--blue-soft); }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.02); }

.status { padding: 5px 11px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status.confirmed, .status.sent, .status.active { background: rgba(47,208,138,0.14); color: var(--profit); }
.status.waiting, .status.confirming, .status.queued, .status.processing, .status.approved { background: rgba(255,138,0,0.14); color: var(--gold-soft); }
.status.failed, .status.expired, .status.rejected, .status.partially_paid, .status.suspended { background: rgba(255,93,108,0.14); color: var(--loss); }
.status.matured { background: rgba(0,184,255,0.14); color: var(--blue-soft); }

.imp-banner { background: linear-gradient(90deg, var(--blue), var(--gold-deep)); color: #0A0E17; text-align: center; padding: 9px; font-weight: 700; font-size: 13px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   LANDING
   ===================================================================== */
.landing-nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; transition: all .3s; }
.landing-nav .nav-inner { display: flex; align-items: center; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.landing-nav.scrolled .nav-inner { background: rgba(10,14,23,0.88); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 8px 8px 20px; margin: 0 24px; max-width: 1232px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; }
.nav-logo .logo-ring { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; }
.nav-logo .logo-ring::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 6px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.14); background: rgba(10,10,16,0.4); }
.nav-links a { padding: 8px 17px; border-radius: var(--radius-pill); font-size: 14px; color: rgba(255,255,255,0.75); font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }

.hero { position: relative; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: #0A0E17; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 28%, rgba(0,184,255,0.20), transparent 68%),
    radial-gradient(28% 28% at 88% 12%, rgba(255,138,0,0.14), transparent 62%);
}
.hero-video, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,14,23,0.55), rgba(10,14,23,0.25) 40%, rgba(10,14,23,0.88) 88%, #0A0E17 100%); }
.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; max-width: 1280px; width: 100%; margin: 0 auto; padding: 118px 24px 40px; }
.hero-intro { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.hero-intro p { max-width: 380px; color: rgba(255,255,255,0.82); font-size: 15px; margin: 0; }
.hero-intro p.right { text-align: right; margin-left: auto; font-weight: 600; }
.hero-center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero-eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 9px; }
.hero h1 { font-size: clamp(3rem, 11vw, 8.5rem); letter-spacing: -0.04em; line-height: 0.85; }
.hero h1 .l1 { display: block; color: #fff; font-weight: 500; }
.hero h1 .l2 { display: block; font-weight: 800; }
.shiny { background: linear-gradient(100deg, #62E3FF 30%, #ffffff 50%, #00B8FF 70%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 3s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero-sub { max-width: 560px; color: rgba(255,255,255,0.8); font-size: clamp(1rem, 2vw, 1.15rem); margin: 26px auto 0; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.btn-hero { background: #0a0a0f; color: #fff; border: 1px solid rgba(255,255,255,0.16); }
.btn-hero:hover { background: #16161f; }
.hero-scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.5); font-size: 26px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: marquee 26s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 15px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* bento grid */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento .b-wide { grid-column: span 2; }
.bento .b-tall { grid-row: span 2; }
.feature-tile { border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; background: var(--surface); }
.feature-tile .ft-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; background: rgba(0,184,255,0.13); color: var(--blue-soft); margin-bottom: 16px; }
.feature-tile h3 { font-size: 1.3rem; }
.feature-tile p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.feature-tile .ft-illus { margin-top: auto; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-strip > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.stat-strip .n { font-family: var(--display); font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 800; }

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how-step { border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; background: var(--surface); position: relative; overflow: hidden; }
.how-step .how-illus { height: 96px; margin-bottom: 16px; display: grid; place-items: center; }
.how-step .how-illus svg { height: 96px; width: auto; }
.how-step h3 { font-size: 1.15rem; }
.how-step p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.how-step .how-n { position: absolute; top: 18px; right: 22px; font-family: var(--display); font-weight: 800; font-size: 20px; color: rgba(255,255,255,0.12); }

.plan-card { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.plan-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.plan-card .plan-media { height: 168px; position: relative; overflow: hidden; }
.plan-card .plan-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.plan-card:hover .plan-media img { transform: scale(1.06); }
.plan-card .plan-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12,12,17,0.9)); }
.plan-card .plan-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.plan-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan-row:last-of-type { border-bottom: none; }
.plan-row .k { color: var(--muted); }
.plan-row .v { font-weight: 700; }

.cta-final { border-radius: var(--radius-lg); border: 1px solid rgba(0,184,255,0.25); padding: 66px 40px; text-align: center; position: relative; overflow: hidden; background: radial-gradient(70% 120% at 50% 0%, rgba(0,184,255,0.16), transparent 60%), var(--surface); }
.cta-final h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.cta-final p { color: var(--muted); max-width: 480px; margin: 16px auto 30px; }

.footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); font-size: 14px; }

.illus-anim { width: 100%; height: 100%; }

/* =====================================================================
   AUTH (2 columnas)
   ===================================================================== */
.auth-split { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px; }
.auth-visual > .av-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.86)); }
.auth-visual > * { position: relative; z-index: 2; }
.auth-visual .av-logo { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 20px; }
.auth-visual .av-headline { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 460px; }
.auth-visual .av-points { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.auth-visual .av-point { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.9); font-weight: 500; }
.auth-visual .av-point .avp-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(0,184,255,0.2); color: var(--blue-soft); font-size: 19px; flex: none; }
.auth-visual .av-trust { display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,0.7); font-size: 13px; }

.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--bg); }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 1.9rem; }
.auth-form .sub { color: var(--muted); margin: 8px 0 26px; }
.auth-alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }
.auth-mini-lang { display: flex; justify-content: flex-end; margin-bottom: 8px; }

/* auth simple (error / admin login) */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 26px; }

/* =====================================================================
   Guides illustration wrapper
   ===================================================================== */
.guide-illus { width: 100%; height: 150px; border-radius: 16px; background: linear-gradient(120deg, rgba(0,184,255,0.09), rgba(255,138,0,0.07)); display: grid; place-items: center; margin-bottom: 14px; overflow: hidden; }
.guide-illus svg { width: 120px; height: 120px; }

/* =====================================================================
   Responsive — app nativa en movil
   ===================================================================== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .b-wide { grid-column: span 2; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

@media (max-width: 1024px) {
  .content .grid[style*="0.92fr"], .content .grid[style*="1.15fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 900px) {
  .roadmap { grid-template-columns: repeat(5, minmax(88px, 1fr)); overflow-x: auto; }
  .roadmap::before { display: none; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .topbar { display: none; }
  .mobile-topbar { display: flex; }
  .content { padding: 4px 14px 118px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .stat-card { padding: 16px; min-height: 132px; }
  .stat-card .sc-icon { width: 50px; height: 50px; right: 12px; }
  .stat-card .sc-label { max-width: 68%; font-size: 12px; }
  .stat-card .sc-value { font-size: 26px; margin-top: 4px; }
  .stat-card .sc-value .sc-unit { font-size: 13px; }
  .stat-card .sc-spark { width: 60px; height: 32px; right: 12px; top: 16px; }
  .stat-card .sc-actions { gap: 8px; padding-top: 14px; }
  .stat-card .sc-actions .btn { flex: 1; padding: 9px 8px; font-size: 12px; justify-content: center; }
  .rank-card { padding: 16px; }
  .rank-card .rc-badge { width: 58px; height: 58px; }
  .rank-card .rc-name { font-size: 1.3rem; }
  .rank-card .rc-illus { right: 0; height: 118%; opacity: .85; }
  .plans-two { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento .b-wide { grid-column: auto; }
  .hero-intro { display: none; }

  .bottom-nav {
    display: flex; position: fixed; z-index: 50;
    bottom: calc(14px + env(safe-area-inset-bottom)); left: 14px; right: 14px;
    background: rgba(14,14,20,0.94); backdrop-filter: blur(20px); border: 1px solid var(--line-strong);
    border-radius: 26px; padding: 10px 10px; justify-content: space-around; align-items: center;
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--faint); font-size: 10px; font-weight: 600; padding: 5px 8px; border-radius: 14px; transition: color .2s; flex: 1; }
  .bottom-nav a i { font-size: 23px; }
  .bottom-nav a.active { color: var(--gold-soft); }
  .bottom-nav a.fab { background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); color: #241802; margin-top: -30px; width: 60px; height: 60px; border-radius: 50%; justify-content: center; flex: none; box-shadow: 0 12px 30px rgba(255,138,0,0.42); }
  .bottom-nav a.fab span { display: none; }
  .bottom-nav a.fab i { font-size: 30px; }
}

@media (max-width: 480px) {
  .grid-4, .stat-strip, .how-grid { grid-template-columns: 1fr; }
  .stat-value { font-size: 24px; }
  .mtb-burger, .mtb-avatar { width: 40px; height: 40px; }
  .mtb-balance { padding: 8px 10px; font-size: 13px; }
  .mc-stats { grid-template-columns: 1fr; }
  .mc-stat + .mc-stat::before { top: 0; left: 10%; width: 80%; height: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 9px; }
::-webkit-scrollbar-track { background: transparent; }

/* =====================================================================
   PLANES
   ===================================================================== */
.accent { color: var(--gold-soft); }

/* Banner "como funcionan los modulos" */
.plans-how {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(0,184,255,0.08), rgba(139,124,255,0.04)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 22px;
}
.plans-how .ph-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,184,255,0.14); color: var(--blue-soft); font-size: 22px; flex: none; }
.plans-how .ph-txt h3 { margin: 0 0 3px; font-size: 1.05rem; }
.plans-how .ph-txt p { margin: 0; color: var(--muted); font-size: 14px; }
.plans-how .ph-img { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); height: 150%; opacity: .5; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }

/* Grid de modulos */
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 26px; }

.module-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 26px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
.module-card:hover { transform: translateY(-4px); }
.module-card.is-gold { box-shadow: inset 0 0 0 1px rgba(255,138,0,0.20); }
.module-card.is-gold:hover { box-shadow: inset 0 0 0 1px rgba(255,138,0,0.35), 0 24px 60px rgba(255,138,0,0.14); }
.module-card.is-blue { box-shadow: inset 0 0 0 1px rgba(0,184,255,0.20); }
.module-card.is-blue:hover { box-shadow: inset 0 0 0 1px rgba(0,184,255,0.35), 0 24px 60px rgba(0,184,255,0.16); }

.mc-media { position: absolute; top: 0; left: 0; right: 0; height: 236px; background-size: cover; background-position: center right; }
.mc-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,6,9,0.10) 0%, rgba(6,6,9,0.45) 52%, var(--surface) 96%),
              linear-gradient(90deg, rgba(6,6,9,0.62) 0%, rgba(6,6,9,0.05) 55%); }

.mc-inner { position: relative; z-index: 2; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.mc-banner { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; }
.mc-top { display: flex; align-items: flex-start; gap: 15px; }
.mc-icon { width: 66px; height: 66px; border-radius: 18px; object-fit: cover; background: #000; flex: none; box-shadow: 0 8px 26px rgba(0,0,0,0.5); }
.mc-title { flex: 1; }
.mc-eyebrow { font-size: 11px; letter-spacing: .16em; color: var(--faint); font-weight: 700; }
.mc-title h3 { font-family: var(--display); font-size: 1.9rem; margin: 2px 0 1px; line-height: 1; }
.mc-sub { color: var(--muted); font-size: 14px; }
.mc-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); color: #241802; box-shadow: 0 6px 18px rgba(255,138,0,0.35); }
.is-gold .mc-icon { box-shadow: 0 8px 26px rgba(255,138,0,0.28); }

.mc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-tag { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 6px 12px; border-radius: 10px; background: rgba(0,0,0,0.45); border: 1px solid var(--line-strong); color: var(--text); backdrop-filter: blur(4px); }
.is-gold .mc-tag { color: var(--gold-soft); border-color: rgba(255,138,0,0.35); }
.is-blue .mc-tag { color: var(--blue-soft); border-color: rgba(0,184,255,0.35); }

.mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(0,0,0,0.35); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mc-stat { padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; position: relative; }
.mc-stat + .mc-stat::before { content: ""; position: absolute; left: 0; top: 16%; height: 68%; width: 1px; background: var(--line); }
.mcs-k { font-size: 11px; color: var(--faint); font-weight: 600; }
.mcs-v { font-size: 1.12rem; font-weight: 800; font-family: var(--display); }
.is-gold .mcs-v { color: var(--gold-soft); }
.is-blue .mcs-v { color: var(--blue-soft); }
.mcs-s { font-size: 11px; color: var(--muted); }

.mc-desc { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: 15px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.mc-desc i { font-size: 18px; margin-top: 1px; }
.is-gold .mc-desc i { color: var(--gold-soft); }
.is-blue .mc-desc i { color: var(--blue-soft); }

.mc-btn { margin-top: 2px; font-size: 15px; padding: 15px; border-radius: 15px; }

/* Participaciones activas */
.active-parts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.ap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ap-head h3 { font-size: 1.2rem; margin: 0 0 2px; }
.ap-head p { margin: 0; font-size: 13px; }
.ap-viewall { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue-soft); white-space: nowrap; }
.ap-viewall:hover { color: #fff; }
.ap-empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.ap-empty i { font-size: 40px; color: var(--faint); display: block; margin-bottom: 10px; }
.ap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ap-card { display: grid; grid-template-columns: auto 1fr 1.3fr auto; gap: 16px; align-items: center; padding: 16px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.ap-card:hover { transform: translateY(-2px); }
.ap-card.is-gold:hover { border-color: rgba(255,138,0,0.4); }
.ap-card.is-blue:hover { border-color: rgba(0,184,255,0.4); }
.ap-icon { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; background: #000; }
.ap-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.ap-amt-label { font-size: 11px; color: var(--faint); margin-top: 6px; }
.ap-amt { font-weight: 800; font-size: 1.05rem; }
.ap-prog-label { font-size: 11px; color: var(--faint); }
.ap-prog-pct { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 1px 0 6px; }
.ap-prog-meta { font-size: 11px; margin-top: 5px; }
.ap-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong); color: var(--text); font-size: 18px; }
.ap-card.is-gold .ap-go { color: var(--gold-soft); }
.ap-card.is-blue .ap-go { color: var(--blue-soft); }

/* Modal de activacion */
.activate-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.activate-modal[hidden] { display: none; }
.am-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(6px); animation: fadeIn .2s; }
.am-box { position: relative; z-index: 2; width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px; padding: 30px 26px 26px; text-align: center; animation: modalPop .3s cubic-bezier(.16,1,.3,1); }
.am-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); font-size: 18px; display: grid; place-items: center; cursor: pointer; }
.am-close:hover { color: #fff; }
.am-icon { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; background: #000; margin: 0 auto 14px; display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.am-box h3 { font-size: 1.2rem; margin: 0 0 18px; }
.am-box .field { text-align: left; }
.am-hint { margin: 6px 0 0; font-size: 12px; }
.am-balance { font-size: 13px; color: var(--muted); margin: 14px 0 18px; }
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.page { padding: 24px 28px 56px; max-width: 1120px; }
.flash { padding: 12px 16px; border-radius: 14px; margin: 12px 0; }
.flash.ok { background: rgba(47,208,138,0.12); color: var(--profit); }
.flash.err { background: rgba(255,93,108,0.12); color: var(--loss); }
.gold { color: var(--gold-soft); }

/* Shell usado por layouts/app.twig */
.app-shell { display: flex; min-height: 100dvh; }
.app-nav {
  width: var(--nav-w); flex: none; position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0c121c 0%, #070b12 100%);
  border-right: 1px solid var(--line); padding: 22px 14px; overflow-y: auto;
  box-shadow: 8px 0 40px rgba(0, 184, 255, 0.04);
}
.app-nav .brand { display: block; padding: 4px 8px 22px; }
.app-nav nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.app-nav .side-user { margin-top: 18px; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  padding: 14px 24px; background: rgba(10, 14, 23, 0.78); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.app-top .btn-ghost:first-child { margin-right: auto; }
.nav-scrim { display: none; }

.dash-hero {
  display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 16px; align-items: stretch; margin-top: 20px;
}
.dash-balance {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(0,184,255,0.18), transparent 55%), var(--elevated);
  border: 1px solid rgba(98,227,255,0.22);
  box-shadow: 0 0 40px rgba(0,184,255,0.08);
}
.dash-balance::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: 0.28;
  background-image:
    linear-gradient(rgba(98,227,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,227,255,0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, transparent 42%, #000 100%);
}
.dash-balance .stat-label { letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--blue-soft); position: relative; z-index: 1; }
.dash-balance .stat-value { font-size: clamp(2.1rem, 4vw, 3.1rem); color: #fff; text-shadow: 0 0 24px rgba(0,184,255,0.35); position: relative; z-index: 1; }
.dash-chart { position: relative; z-index: 1; margin-top: 18px; }
.js-kronos-chart-box {
  position: relative;
  height: 168px;
  max-height: 168px;
  overflow: hidden;
}
.js-kronos-chart-box canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.dash-chart-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; position: relative; z-index: 1; }
.dash-side { display: flex; flex-direction: column; gap: 10px; }
.dash-asset {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 16px; background: rgba(0,184,255,0.06); border: 1px solid var(--line);
}
.dash-asset .da-k { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.dash-asset .da-tag { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.dash-asset .da-v { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--blue-soft); }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dash-feed { margin-top: 16px; }
.dash-feed-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.dash-feed-row:last-child { border-bottom: none; padding-bottom: 0; }
.dash-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-hello h1 { font-size: clamp(1.4rem, 3vw, 1.85rem); }

.nav-link { border: 1px solid transparent; }
.nav-link:hover { border-color: rgba(98,227,255,0.12); }
.app-nav .nav-link.active, .app-nav a.nav-link[href]:focus {
  background: linear-gradient(120deg, rgba(0,184,255,0.18), rgba(0,184,255,0.04));
  color: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue), 0 0 18px rgba(0,184,255,0.12);
}

@media (min-width: 901px) {
  .app-top .btn-ghost:first-child { display: none; }
}
@media (max-width: 900px) {
  .dash-hero { grid-template-columns: 1fr; }
  .app-nav { position: fixed; z-index: 80; transform: translateX(-110%); transition: transform .25s ease; }
  .app-nav.open { transform: none; box-shadow: 24px 0 60px rgba(0,0,0,0.5); }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.55); }
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page { padding: 16px 16px 48px; }
}
@media (max-width: 768px) {
  .module-grid { grid-template-columns: 1fr; }
  .ap-grid { grid-template-columns: 1fr; }
  .ap-card { grid-template-columns: auto 1fr; grid-auto-rows: auto; }
  .ap-card .ap-prog { grid-column: 1 / -1; }
  .ap-go { display: none; }
}
