/* ============================================================
   GetGenLife — DEMO (panel del club + app del jugador)
   Tema claro, limpio y editorial.
   ============================================================ */

.demo-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-soft); }

/* ---------- Barra superior ---------- */
.demo-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 26px; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.demo-top .brand { font-size: 17px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 9px; }
.demo-top .brand .glyph { width: 24px; height: 24px; }
.demo-back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 500; }
.demo-back:hover { color: var(--ink); }
.demo-back svg { width: 15px; height: 15px; }

/* Toggle Desktop / Móvil */
.switcher { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line-2); position: relative; }
.switcher button {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--muted); transition: color .3s;
}
.switcher button svg { width: 16px; height: 16px; }
.switcher button.active { color: #fff; }
.switcher .thumb { position: absolute; z-index: 1; top: 4px; bottom: 4px; border-radius: 999px; background: var(--ink); transition: transform .38s var(--ease), width .38s var(--ease); }

.demo-stage { flex: 1; display: grid; place-items: start center; padding: 34px 20px 70px; }
.view { display: none; width: 100%; }
.view.active { display: block; animation: viewIn .5s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.demo-caption { text-align: center; margin-bottom: 26px; }
.demo-caption h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.demo-caption p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ============================================================
   MARCO DESKTOP (ventana)
   ============================================================ */
.browser {
  max-width: 1260px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.traffic { display: flex; gap: 7px; } .traffic i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.traffic i:nth-child(1){background:#ff5f57} .traffic i:nth-child(2){background:#febc2e} .traffic i:nth-child(3){background:#28c840}
.url { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.url svg { width: 13px; height: 13px; color: var(--accent); }

.dash { display: grid; grid-template-columns: 236px 1fr; min-height: 720px; background: #fff; }
.dash-side { border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 3px; background: #fcfcfd; }
.club-head { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.club-crest { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.club-crest svg { width: 22px; height: 22px; }
.club-head b { font-family: var(--font-display); font-size: 15px; font-weight: 700; display: block; }
.club-head small { color: var(--muted); font-size: 11.5px; }
.nav-group-label { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); padding: 14px 10px 6px; font-weight: 600; }
.side-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
  color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .18s, color .18s; text-align: left; width: 100%;
}
.side-item svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.side-item:hover { background: var(--bg-soft); }
.side-item.active { background: var(--ink); color: #fff; }
.side-item.active svg { color: #fff; }
.side-item .badge { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #fdecec; color: var(--neg); font-weight: 600; }
.side-item.active .badge { background: rgba(255,255,255,.2); color: #fff; }
.side-foot { margin-top: auto; padding: 12px 6px 0; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--bg-soft); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; background: #eaecef; color: #4b5560; flex: none; }
.avatar.dark { background: var(--ink); color: #fff; }
.avatar.accent { background: var(--accent); color: #fff; }
.side-user b { font-size: 13px; display: block; } .side-user small { color: var(--muted); font-size: 11px; }

.dash-main { padding: 26px 30px; overflow: hidden; }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.dash-topbar h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.dash-topbar .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 9px; background: #fff; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; min-width: 210px; }
.search-box svg { width: 15px; height: 15px; }
.icon-btn { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); position: relative; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .ping { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--neg); box-shadow: 0 0 0 3px #fff; }

.dash-panel { display: none; }
.dash-panel.active { display: block; animation: viewIn .4s var(--ease); }

/* KPI cards */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 18px; border-radius: 13px; border: 1px solid var(--line); background: #fff; }
.kpi .khead { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi .kic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); }
.kpi .kic svg { width: 16px; height: 16px; }
.kpi .kval { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin: 12px 0 5px; letter-spacing: -.02em; }
.kpi .ktrend { font-size: 12px; display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.kpi .ktrend.up { color: var(--pos); } .kpi .ktrend.down { color: var(--neg); } .kpi .ktrend.flat { color: var(--muted); }
.kpi .ktrend svg { width: 13px; height: 13px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.card { border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.card-head .link { font-size: 12.5px; color: var(--accent-ink); font-weight: 500; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: block; }

/* Donut */
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { position: relative; width: 150px; height: 150px; flex: none; }
.donut .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .center b { font-family: var(--font-display); font-size: 30px; font-weight: 800; } .donut .center small { color: var(--muted); font-size: 11px; }
.donut-legend { display: grid; gap: 11px; }
.donut-legend .dl { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.donut-legend .dl b { margin-left: auto; font-family: var(--font-display); }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* Alertas */
.alert { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.alert:last-child { border-bottom: none; }
.alert .ai { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.alert .ai svg { width: 16px; height: 16px; }
.alert.warn .ai { background: #fdf0e3; color: var(--warn); }
.alert.good .ai { background: var(--accent-soft); color: var(--accent-ink); }
.alert.info .ai { background: #eef2fb; color: #3b6fd4; }
.alert p { font-size: 13.5px; } .alert small { color: var(--muted); font-size: 11.5px; }

/* Tabla */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #fcfcfd; }
.player-cell { display: flex; align-items: center; gap: 11px; }
.player-cell b { font-size: 13.5px; } .player-cell small { color: var(--muted); font-size: 11.5px; display: block; }
.pos-badge { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.bar { width: 84px; height: 6px; border-radius: 999px; background: #eef0f2; overflow: hidden; display: inline-block; vertical-align: middle; }
.bar i { display: block; height: 100%; border-radius: 999px; }
.chip { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.chip.ok { background: var(--accent-soft); color: var(--accent-ink); }
.chip.mid { background: #fdf0e3; color: var(--warn); }
.chip.hi { background: #fdecec; color: var(--neg); }
.chip.out { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }

/* Barras verticales */
.vbars { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 22px; }
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.vbar .col { width: 100%; max-width: 40px; border-radius: 7px 7px 3px 3px; background: var(--ink); position: relative; transition: height 1s var(--ease); }
.vbar .col.accent { background: var(--accent); }
.vbar .col span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--ink); }
.vbar small { color: var(--muted); font-size: 11px; }

/* Heatmap */
.heat { display: grid; grid-template-columns: 84px repeat(7, 1fr); gap: 6px; align-items: center; }
.heat .hlabel { font-size: 12px; color: var(--ink-2); }
.heat .hcell { aspect-ratio: 1.5; border-radius: 6px; display: grid; place-items: center; font-size: 10px; color: rgba(255,255,255,.85); }
.heat .hhead { font-size: 10.5px; color: var(--muted-2); text-align: center; text-transform: uppercase; }

/* Médico */
.injury { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.injury-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.injury p { font-size: 13px; color: var(--ink-2); }
.injury .prog { height: 7px; border-radius: 999px; background: #eef0f2; overflow: hidden; margin: 8px 0; }
.injury .prog i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.injury .prog i.warn { background: var(--warn); }
.injury .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.rtp { display: flex; gap: 0; margin-top: 16px; }
.rtp .step { flex: 1; text-align: center; position: relative; font-size: 10.5px; color: var(--muted); }
.rtp .step::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--line-2); }
.rtp .step:first-child::before { display: none; }
.rtp .step .d { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); margin: 0 auto 7px; position: relative; z-index: 2; }
.rtp .step.done .d { background: var(--accent); border-color: var(--accent); }
.rtp .step.done::before { background: var(--accent); }
.rtp .step.now .d { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 4px #fdf0e3; }

/* Cantera (radar) */
.gems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gem-card { border: 1px solid var(--line); border-radius: 13px; padding: 20px; background: #fff; transition: box-shadow .3s, transform .3s; }
.gem-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.gem-card .glow { display: none; }
.gem-card .gc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.gem-card .gc-head b { font-size: 14.5px; display: block; } .gem-card .gc-head small { color: var(--muted); font-size: 11.5px; }
.gem-card .pot { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 600; margin-left: auto; }
.gem-card .radar { display: grid; place-items: center; margin: 4px 0; }
.gem-card .gstats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.gem-card .gstats b { color: var(--ink); font-family: var(--font-display); font-weight: 700; }

/* Calendario */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { border: 1px solid var(--line); border-radius: 11px; padding: 12px; min-height: 158px; background: #fff; }
.day .dname { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.day .dnum { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.event { padding: 7px 9px; border-radius: 7px; font-size: 11px; margin-bottom: 6px; border-left: 3px solid; background: var(--bg-soft); }
.event.train { border-color: var(--accent); }
.event.gym { border-color: #3b6fd4; }
.event.match { border-color: var(--warn); background: #fdf0e3; }
.event.rest { border-color: var(--muted-2); color: var(--muted); }
.event b { display: block; font-family: var(--font-display); font-size: 11.5px; font-weight: 700; }
.day.is-match { border-color: var(--warn); }

/* Mensajes */
.chat { display: grid; gap: 14px; }
.msg { display: flex; gap: 10px; }
.msg .avatar { width: 30px; height: 30px; font-size: 11px; }
.msg .bubble { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 11px 14px; max-width: 72%; }
.msg .bubble b { font-size: 12.5px; color: var(--accent-ink); } .msg .bubble p { font-size: 13.5px; margin-top: 3px; color: var(--ink-2); } .msg .bubble small { color: var(--muted-2); font-size: 10.5px; }
.msg.me { flex-direction: row-reverse; } .msg.me .bubble { background: var(--ink); border-color: var(--ink); border-radius: 12px 4px 12px 12px; }
.msg.me .bubble b { color: #7fe0b6; } .msg.me .bubble p { color: #fff; } .msg.me .bubble small { color: rgba(255,255,255,.5); }

/* Ajustes */
.role-row { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.role-row b { font-size: 13.5px; display: block; } .role-row small { color: var(--muted); font-size: 11.5px; }

@media (max-width: 1000px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .club-head, .nav-group-label, .side-foot { display: none; }
  .side-item { flex-direction: column; gap: 4px; font-size: 11px; padding: 8px 10px; min-width: 70px; text-align: center; }
  .side-item .badge { display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-2b { grid-template-columns: 1fr; }
  .gems-grid { grid-template-columns: 1fr; }
}
.dash-scroll { overflow-x: auto; }
@media (max-width: 720px) { .demo-top { flex-wrap: wrap; } .dash-main { padding: 18px; } .week { grid-template-columns: repeat(7, 118px); } }

/* ============================================================
   MARCO MÓVIL (teléfono) — bisel oscuro, pantalla clara
   ============================================================ */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.phone {
  width: 380px; max-width: 92vw; height: 800px; max-height: 80vh;
  border-radius: 46px; padding: 12px; background: #0a0c10;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #1c2027; position: relative;
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 120px; height: 28px; background: #0a0c10; border-radius: 999px; z-index: 5; }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative; background: #fff; display: flex; flex-direction: column; }
.status-bar { display: flex; align-items: center; justify-content: space-between; padding: 15px 26px 6px; font-size: 12.5px; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.status-bar .sicons { display: flex; gap: 6px; align-items: center; } .status-bar svg { width: 15px; height: 15px; }

.app-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 18px 96px; }
.app-scroll::-webkit-scrollbar { width: 0; }
.app-screen { display: none; }
.app-screen.active { display: block; animation: viewIn .4s var(--ease); }

.app-head { display: flex; align-items: center; gap: 12px; padding: 10px 2px 18px; }
.app-head .avatar { width: 46px; height: 46px; font-size: 16px; }
.app-head small { color: var(--muted); font-size: 12.5px; } .app-head b { font-family: var(--font-display); font-size: 18px; font-weight: 800; display: block; }
.app-head .club-mini { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.app-head .club-mini svg { width: 18px; height: 18px; }

.app-card { border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: #fff; margin-bottom: 13px; }
.app-card.hero-session { background: var(--ink); border-color: var(--ink); color: #fff; }
.app-card .ac-label { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; }
.app-card.hero-session .ac-label { color: #7fe0b6; }
.app-card h3 { font-size: 19px; font-weight: 800; margin: 6px 0; letter-spacing: -.02em; } .app-card.hero-session h3 { color: #fff; }
.app-card .ac-sub { color: var(--muted); font-size: 13px; } .app-card.hero-session .ac-sub { color: rgba(255,255,255,.6); }
.session-meta { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.session-meta .sm { display: flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; color: #fff; }
.session-meta .sm svg { width: 13px; height: 13px; color: #7fe0b6; }

.sec-title { font-family: var(--font-display); font-weight: 800; font-size: 14px; margin: 20px 2px 12px; display: flex; align-items: center; justify-content: space-between; letter-spacing: -.01em; }
.sec-title span.link { color: var(--accent-ink); font-size: 12px; font-weight: 500; }

/* Check-in */
.checkin .emoji-row { display: flex; justify-content: space-between; gap: 8px; }
.emoji-btn { flex: 1; padding: 11px 0; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 23px; transition: transform .2s, border-color .2s, background .2s; }
.emoji-btn.sel { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-3px); }
.slider-row { margin-top: 15px; }
.slider-row label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--ink-2); }
.slider-row label b { font-family: var(--font-display); color: var(--accent-ink); }
.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: #eef0f2; outline: none; }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 2px 6px rgba(10,160,106,.4); }
.checkin .btn { width: 100%; margin-top: 18px; }

/* Stats jugador */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-box { border: 1px solid var(--line); border-radius: 13px; padding: 15px; background: #fff; }
.stat-box .sic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); margin-bottom: 12px; }
.stat-box .sic svg { width: 16px; height: 16px; }
.stat-box .sval { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -.02em; } .stat-box .sval small { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat-box .slbl { color: var(--muted); font-size: 12px; margin-top: 2px; }
.stat-box .scmp { font-size: 11px; margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.scmp.up { color: var(--pos); } .scmp.down { color: var(--neg); }
.scmp svg { width: 11px; height: 11px; }

/* vs equipo */
.vs-row { margin-top: 12px; }
.vs-row .vs-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; color: var(--ink-2); }
.vs-bar { height: 7px; border-radius: 999px; background: #eef0f2; position: relative; overflow: hidden; }
.vs-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.vs-bar .avg { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 2px; }

/* Salud */
.body-status { display: flex; gap: 16px; align-items: center; }
.body-map { width: 84px; flex: none; }
.body-legend { flex: 1; display: grid; gap: 10px; }
.body-legend .bl { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.body-legend .bl i { width: 9px; height: 9px; border-radius: 50%; }
.ring-stat { display: flex; align-items: center; gap: 14px; }
.ring-stat svg { width: 60px; height: 60px; flex: none; }
.ring-stat b { font-family: var(--font-display); font-size: 19px; font-weight: 800; display: block; } .ring-stat small { color: var(--muted); font-size: 12px; }

/* Mensajes móvil */
.m-msg { display: flex; gap: 10px; margin-bottom: 14px; }
.m-msg .avatar { width: 34px; height: 34px; font-size: 12px; flex: none; }
.m-msg .mb { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 11px 13px; }
.m-msg .mb b { font-size: 12.5px; color: var(--accent-ink); } .m-msg .mb p { font-size: 13.5px; margin-top: 2px; color: var(--ink-2); } .m-msg .mb small { color: var(--muted-2); font-size: 10.5px; }

/* Bottom nav */
.app-nav {
  position: absolute; bottom: 0; left: 0; right: 0; height: 76px;
  display: flex; align-items: center; justify-content: space-around; padding: 0 12px 16px;
  background: #fff; border-top: 1px solid var(--line);
}
.app-nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted-2); font-size: 10px; font-weight: 600; }
.app-nav button svg { width: 22px; height: 22px; }
.app-nav button.active { color: var(--accent-ink); }

/* Toast */
.toast {
  position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; opacity: 0; transition: all .4s var(--ease);
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); z-index: 20; pointer-events: none;
}
.toast svg { width: 16px; height: 16px; color: #7fe0b6; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.demo-hint { text-align: center; color: var(--muted); font-size: 13.5px; max-width: 460px; }
.demo-hint b { color: var(--ink); }

/* Selectores de club (Ajustes) */
.dash-themes { display: flex; gap: 14px; flex-wrap: wrap; }
.theme-swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.theme-swatch .crest { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; border: 2px solid transparent; box-shadow: var(--shadow-sm); transition: transform .25s, border-color .25s; }
.theme-swatch:hover .crest { transform: translateY(-3px); }
.theme-swatch.active .crest { border-color: var(--ink); }
.theme-swatch small { font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* ===== Panel Genética ===== */
.gen-player-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 18px; flex-wrap: wrap; }
.split-wrap { padding-top: 4px; }
.split-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.split-head b { color: var(--ink); font-family: var(--font-display); }
.split-bar { height: 12px; border-radius: 999px; background: var(--accent); overflow: hidden; position: relative; }
.split-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px 0 0 999px; }
.gen-helix { width: 100%; height: 54px; margin-top: 18px; display: block; opacity: .9; }
.nutri { display: grid; gap: 10px; }
.nutri-row { display: flex; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.nutri-row b { font-size: 13.5px; display: block; } .nutri-row small { color: var(--muted); font-size: 11.5px; }
.nutri-row > div:nth-child(2) { flex: 1; }
.nutri-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.nutri-ic svg { width: 17px; height: 17px; }
.nutri-ic.ok { background: var(--accent-soft); color: var(--accent-ink); }
.nutri-ic.warn { background: #fdf0e3; color: var(--warn); }
.gen-gauge-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin-top: 4px; }

/* ===== App: pantalla ADN ===== */
.adn-split { margin-top: 16px; }
.adn-split-head { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 7px; }
.adn-split-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.adn-split-bar i { display: block; height: 100%; background: #7fe0b6; border-radius: 999px; }
.adn-tip { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.adn-tip svg { width: 17px; height: 17px; }
.adn-tip.ok { background: var(--accent-soft); color: var(--accent-ink); }
.adn-tip.warn { background: #fdf0e3; color: var(--warn); }
/* nav con 5 iconos */
.app-nav { padding: 0 8px 16px; }
.app-nav button { font-size: 9.5px; gap: 2px; }
.app-nav button svg { width: 21px; height: 21px; }
