/* Impulso Player · sistema de diseño. Cambia los colores solo aquí (variables). */
:root {
  --bg: #021c31; --bg2: #08233f; --card: #0b2742; --card2: #11365a; --line: rgba(150, 195, 240, .16);
  --text: #f3f8fd; --muted: #8fa8c2;
  --accent: #6cbe01; --accent-ink: #021c31; --accent-soft: rgba(108, 190, 1, .14);
  --ok: #38e0a7; --warn: #ffc247; --bad: #ff6b7a;
  --r: 16px; --r-sm: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { min-height: 100dvh; background: radial-gradient(120% 60% at 50% -10%, #0c3157 0%, var(--bg) 60%) no-repeat, var(--bg); }
h1 { font-size: 26px; margin: 8px 0 14px; letter-spacing: -.4px; }
h2 { font-size: 21px; margin: 4px 0 10px; letter-spacing: -.2px; }
h3 { font-size: 16px; margin: 2px 0 8px; }
p { margin: 0 0 10px; }
a { color: var(--accent); }
em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--accent); }
.muted { color: var(--muted); font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 17px; }
.good { color: var(--ok); font-size: 14px; } .bad { color: var(--bad); font-size: 14px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: 1.4px; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.display { font-size: 34px; line-height: 1.08; letter-spacing: -.8px; margin: 4px 0 12px; font-weight: 800; }
.display.sm { font-size: 28px; }
.grow { flex: 1; min-width: 0; }
.gap { height: 12px; }

/* Estructura */
.top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; background: rgba(6, 26, 47, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); min-height: 56px; }
.top .ttl { font-weight: 700; font-size: 17px; flex: 1; }
.brand { display: inline-flex; }
.avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.wrap { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(100px + var(--safe-b)); }
.wrap.in-session { padding-bottom: calc(150px + var(--safe-b)); }
.wrap.enter > * { animation: rise .38s cubic-bezier(.2, .8, .2, 1) both; }
.wrap.enter > *:nth-child(2) { animation-delay: .05s; } .wrap.enter > *:nth-child(3) { animation-delay: .1s; }
.wrap.enter > *:nth-child(4) { animation-delay: .15s; } .wrap.enter > *:nth-child(5) { animation-delay: .2s; } .wrap.enter > *:nth-child(n+6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.tabs { position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 9; display: flex; background: rgba(11, 39, 66, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; padding: 6px; max-width: 620px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.tabs button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; background: none; border: 0; border-radius: 16px; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: color .2s, background .2s; }
.tabs button.on { color: var(--accent); background: var(--accent-soft); }
.tabs button:active { transform: scale(.96); }
.ic { width: 22px; height: 22px; flex: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 12px 18px; border: 0; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 8px 24px rgba(108, 190, 1, .18); transition: transform .12s, box-shadow .2s, opacity .2s; }
.btn:active { transform: scale(.975); box-shadow: 0 2px 8px rgba(108, 190, 1, .15); }
.btn.alt { background: var(--card2); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid rgba(255, 107, 122, .35); box-shadow: none; }
.btn.small { min-height: 42px; width: auto; padding: 8px 16px; font-size: 14px; margin-top: 6px; border-radius: 12px; }
.btn.big { min-height: 62px; font-size: 18px; border-radius: 18px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
a.btn { text-decoration: none; }
.stack { display: grid; gap: 10px; margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* Tarjetas */
.card { background: linear-gradient(180deg, rgba(17, 54, 90, .55), rgba(11, 39, 66, .9)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 14px; }
.card.tap { display: block; width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; transition: transform .12s, border-color .2s; }
.card.tap:active { transform: scale(.985); border-color: rgba(108, 190, 1, .4); }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0f3b66 0%, #0b2742 70%); border-color: rgba(108, 190, 1, .22); }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(108, 190, 1, .18), transparent 70%); pointer-events: none; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.empty { padding: 22px 6px; text-align: center; color: var(--muted); }
.note { background: rgba(255, 194, 71, .1); border: 1px solid rgba(255, 194, 71, .35); color: #ffe0a3; border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #021c31; flex: none; }
.av0 { background: #6cbe01; } .av1 { background: #7cd4ff; } .av2 { background: #ffb86b; } .av3 { background: #b9a4ff; } .av4 { background: #7ef0c4; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.kpis div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 6px; text-align: center; }
.kpis strong { display: block; font-size: 24px; letter-spacing: -.5px; } .kpis span { color: var(--muted); font-size: 11.5px; }
.pstrip { display: flex; gap: 6px; margin: 10px 0 2px; flex-wrap: wrap; }
.pstrip span { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: var(--muted); }

/* Formularios */
.lbl { display: block; font-size: 13px; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.inp { display: block; width: 100%; margin-top: 6px; min-height: 50px; padding: 10px 14px; background: rgba(255, 255, 255, .05); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; font-size: 16px; transition: border-color .2s, background .2s; }
.inp:focus { outline: none; border-color: var(--accent); background: rgba(108, 190, 1, .05); }
select.inp { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.inp.name { margin: 0; font-weight: 700; }
textarea.inp.code { font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; word-break: break-all; resize: vertical; }
.chk { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: 15px; }
.chk input { width: 22px; height: 22px; accent-color: var(--accent); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; margin: 0 0 14px; }
.seg button { min-height: 44px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.badge { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { color: var(--accent); border-color: rgba(108, 190, 1, .4); background: var(--accent-soft); } .badge.warn { color: var(--warn); border-color: rgba(255, 194, 71, .4); }
.chip { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: rgba(124, 212, 255, .14); color: #8fd6ff; text-transform: uppercase; letter-spacing: .4px; }
.chip.field { background: rgba(126, 240, 196, .13); color: #7ef0c4; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.chipb { flex: none; min-height: 40px; padding: 6px 16px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chipb.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Listas */
.item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.item-main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 10px 0; cursor: pointer; }
.item-main.static { cursor: default; }
.item-main .sub { display: block; margin-top: 2px; }
.item-main .chip { margin-right: 6px; vertical-align: 1px; }
.mini { display: flex; gap: 2px; }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; color: var(--text); font: inherit; font-size: 22px; cursor: pointer; }
.ib.danger { color: var(--bad); } .ib:active { background: rgba(255, 255, 255, .08); }
.stepper { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.stepper span { flex: 1; color: var(--muted); font-size: 14px; }
.stepper strong { min-width: 28px; text-align: center; font-size: 18px; }
.stepper .ib { background: rgba(255, 255, 255, .06); }
.bar { height: 10px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #4f9a00, var(--accent)); border-radius: 99px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.exl { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 10px; }
.sug { font-size: 13px; margin-top: 4px; color: var(--muted); }
.sug.up { color: var(--accent); } .sug.down { color: var(--warn); }

/* Anillo de progreso */
.ring { position: relative; flex: none; }
.ring svg { display: block; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; animation: ringin 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ringin { from { stroke-dashoffset: var(--c); } }
.ring-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.ring-t strong { font-size: 22px; letter-spacing: -.5px; } .ring-t span { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* Semana */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 0 0 14px; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); font: inherit; cursor: pointer; transition: transform .12s, background .2s, border-color .2s; }
.day span { font-size: 11px; font-weight: 700; } .day strong { font-size: 17px; color: var(--text); }
.day i { width: 6px; height: 6px; border-radius: 50%; background: transparent; margin-top: 2px; }
.day.plan i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.day.done i { background: var(--accent); } .day.late i { background: var(--warn); }
.day.today strong { color: var(--accent); }
.day.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(108, 190, 1, .22); }
.day.sel strong { color: var(--accent-ink); } .day.sel.plan i { box-shadow: inset 0 0 0 1.5px var(--accent-ink); } .day.sel.done i, .day.sel.late i { background: var(--accent-ink); }
.day:active { transform: scale(.94); }
.done-card { border-color: rgba(108, 190, 1, .3); }
.done-card .tick { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* Sesión en curso */
.sess-head { position: sticky; top: calc(56px + var(--safe-t)); z-index: 6; margin: -4px -16px 14px; padding: 10px 16px 6px; background: rgba(6, 26, 47, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.sess-head h2 { margin: 0 0 2px; font-size: 19px; }
.ex-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 4px; }
.vid { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(108, 190, 1, .4); text-decoration: none; white-space: nowrap; }
.setc { margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: border-color .25s, background .25s; }
.setc.done { border-color: rgba(108, 190, 1, .55); background: var(--accent-soft); }
.setc-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.setn { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.check { width: 50px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s, background .2s; }
.setc.done .check { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.check:active { transform: scale(.9); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stp label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.stp .ctl { display: flex; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stp input { flex: 1; min-width: 0; width: 100%; min-height: 54px; text-align: center; background: none; border: 0; color: var(--text); font: inherit; font-size: 22px; font-weight: 800; padding: 0; }
.stp input:focus { outline: none; background: rgba(108, 190, 1, .06); }
.sb { width: 42px; min-height: 54px; border: 0; background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 22px; font-weight: 700; cursor: pointer; flex: none; }
.sb:active { background: var(--accent); color: var(--accent-ink); }
.rpe { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.rpe > span { font-size: 11px; font-weight: 800; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; margin-right: 4px; }
.rpe button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; transition: background .15s; }
.rpe button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.rest { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 12; max-width: 616px; margin: 0 auto; background: var(--card2); border: 1px solid rgba(108, 190, 1, .45); border-radius: 20px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); animation: rise .3s both; overflow: hidden; }
.rest .lab { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); } .rest strong { font-size: 28px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; display: block; line-height: 1; }
.rest .fill { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); width: 100%; transition: width .5s linear; }
.rest.ready { border-color: var(--accent); background: #17436f; } .rest.ready strong { color: var(--accent); }
.rest .btn.small { margin: 0; min-height: 40px; padding: 6px 12px; }

/* Resumen */
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 4px; }
.stats3 div { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 6px; text-align: center; }
.stats3 strong { display: block; font-size: 28px; letter-spacing: -.8px; line-height: 1.1; } .stats3 span { color: var(--muted); font-size: 11.5px; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 15; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: fall 2.6s ease-in forwards; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(105vh) rotate(720deg); } }

.chart { width: 100%; height: auto; margin: 6px 0; }
.chart .axis { stroke: var(--line); } .chart .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot { fill: var(--accent); } .chart .val { fill: var(--text); font-size: 10px; } .chart .ax { fill: var(--muted); font-size: 10px; }

/* Bienvenida */
.welcome { position: relative; padding-top: 4vh; }
.welcome .glow { position: absolute; left: -40px; right: -40px; top: -60px; height: 280px; background: radial-gradient(60% 70% at 50% 0%, rgba(108, 190, 1, .16), transparent 70%); pointer-events: none; }
.welcome > * { position: relative; }
.welcome .logo { margin-bottom: 14px; }
.welcome .grid2 { margin: 8px 0 14px; }
.welcome .stats3 { margin: 18px 0 20px; }

/* Modal y avisos */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(2, 10, 20, .7); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; padding: 16px; padding-bottom: calc(16px + var(--safe-b)); animation: fade .2s both; }
.modal .box { width: 100%; max-width: 480px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; animation: rise .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); max-width: 90%; background: #1b4a78; color: var(--text); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Asignaciones */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 0 0 12px; }
.days button { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; padding: 0; transition: background .15s; }
.days button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.note .btn.small { display: flex; margin-top: 8px; }

@media (max-width: 380px) { .display { font-size: 30px; } .sb { width: 38px; } .stp input { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } .confetti { display: none; } }
.logo-h { display: block; width: min(300px, 80%); margin: 0 auto; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.welcome .logo { margin-bottom: 18px; text-align: center; }
.media { position: relative; display: block; width: 100%; aspect-ratio: 16/9; margin: 10px 0; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
.media img, .media video, .media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.media .pl { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(2,28,49,.35); }
.media .pl svg { width: 54px; height: 54px; padding: 14px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.vid.wide { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; padding: 11px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 700; text-decoration: none; }
.vid.wide svg { width: 18px; height: 18px; }
.brand { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; }
.ex-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.art { flex: 0 0 104px; height: 70px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); overflow: hidden; }
.art svg { width: 100%; height: 100%; display: block; }
.art .gnd { stroke: rgba(255,255,255,.18); stroke-width: 2; }
.art .lim { fill: none; stroke: #fff; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.art .lim.back { stroke: rgba(255,255,255,.45); }
.art .lim.arm { stroke: var(--accent); stroke-width: 4.5; }
.art .head { fill: #fff; }
.art .eq { stroke: rgba(255,255,255,.55); fill: rgba(255,255,255,.2); stroke-linecap: round; }
.art .plate { fill: var(--accent); }
.art .spd { stroke: rgba(108,190,1,.55); stroke-width: 3; stroke-linecap: round; fill: none; }
.art .fa { animation: poseA 1.8s infinite; } .art .fb { animation: poseB 1.8s infinite; }
@keyframes poseA { 0%, 42% { opacity: 1 } 50%, 92% { opacity: 0 } 100% { opacity: 1 } }
@keyframes poseB { 0%, 42% { opacity: 0 } 50%, 92% { opacity: 1 } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .art .fa, .art .fb { animation: none; } .art .fb { opacity: 0; } }
.ex-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fig { flex: none; width: 112px; height: 78px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.fig .bd, .fig .far { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig .bd { stroke: var(--accent); stroke-width: 5; } .fig .bd.tor { stroke-width: 6; }
.fig .far { stroke: var(--accent); stroke-width: 4; opacity: .45; }
.fig .hd { fill: var(--accent); }
.fig .pr { fill: #e8f1fa; } .fig .pb { stroke: #e8f1fa; stroke-width: 3; stroke-linecap: round; }
.fig .pe { fill: #1d4a73; stroke: rgba(255,255,255,.25); stroke-width: 1; }
.fig .pa { fill: none; stroke: #e8f1fa; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.fig .gr { stroke: rgba(255,255,255,.25); stroke-width: 2; stroke-linecap: round; }
.fig .f1 { animation: figA 1.8s ease-in-out infinite; } .fig .f2 { animation: figB 1.8s ease-in-out infinite; }
@keyframes figA { 0%, 35% { opacity: 1; } 50%, 85% { opacity: 0; } 100% { opacity: 1; } }
@keyframes figB { 0%, 35% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fig .f1 { animation: none; opacity: 1; } .fig .f2 { animation: none; opacity: 0; } }
.kpis3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.kpis3 > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; }
.kpis3 strong { display: block; font-size: 24px; color: var(--accent); } .kpis3 span { font-size: 11px; color: var(--muted, #9db4cc); }
.wrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; }
.wrow > span { width: 70px; font-weight: 600; }
.wpills { display: flex; gap: 6px; flex: 1; }
.wpills button, .srpe button { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; transition: transform .1s, background .15s; }
.wpills button:active, .srpe button:active { transform: scale(.94); }
.wpills button.on, .srpe button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.srpe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.well.ok { border-color: rgba(108,190,1,.6); } .well.mid { border-color: rgba(255,194,71,.5); } .well.low { border-color: rgba(255,107,107,.6); background: rgba(255,107,107,.08); }
.card.pr { border-color: rgba(108,190,1,.6); background: linear-gradient(135deg, rgba(108,190,1,.16), var(--card)); }
.wbars { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 120px; }
.wb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.wb i { display: block; width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--accent), #4f9a00); border-radius: 8px 8px 3px 3px; }
.wb .v { font-size: 12px; font-weight: 700; } .wb em { font: 10px system-ui; font-style: normal; color: #9db4cc; }
.cue { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; font-size: 13px; color: #cfe0f0; }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* --- pulido visual --- */
.top .home { width: 40px; height: 40px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.top .home .ic { width: 20px; height: 20px; }
.hero { background: linear-gradient(135deg, #12467a 0%, #0b2742 62%), var(--card); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='140' viewBox='0 0 220 140' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='6' y='6' width='208' height='128' rx='4'/%3E%3Cpath d='M110 6v128'/%3E%3Ccircle cx='110' cy='70' r='22'/%3E%3Cpath d='M6 40h30v60H6M214 40h-30v60h30'/%3E%3C/svg%3E") right -30px bottom -20px / 300px no-repeat; }
.btn { background: linear-gradient(180deg, #7ed10a, var(--accent)); position: relative; overflow: hidden; }
.btn:hover { filter: brightness(1.07); } .btn:active { transform: scale(.98); }
.btn.ghost, .btn.alt { background: rgba(255,255,255,.06); }
.btn.ghost:hover, .btn.alt:hover { background: rgba(255,255,255,.1); }
.card.tap { transition: transform .15s, border-color .2s, box-shadow .2s; }
@media (hover: hover) { .card.tap:hover { transform: translateY(-2px); border-color: rgba(108,190,1,.45); box-shadow: 0 10px 28px rgba(0,0,0,.28); } }
.card.sel { background: linear-gradient(135deg, rgba(108,190,1,.16), rgba(11,39,66,.92)); }
h1 { letter-spacing: -.01em; }
h3 { display: flex; align-items: center; gap: 8px; }
h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); flex: none; }
.tabs button.on::after { content: ""; position: absolute; top: 3px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--accent); }
.days button.on, .wpills button.on, .srpe button.on { box-shadow: 0 4px 14px rgba(108,190,1,.35); }
.badge { letter-spacing: .02em; }
.kpis3 > div, .kpis > div, .stats3 > div { transition: transform .15s; }
@media (hover: hover) { .kpis3 > div:hover, .stats3 > div:hover { transform: translateY(-2px); } }
.wrap { max-width: 680px; }
.fig { transition: border-color .2s; } .card.ex:hover .fig { border-color: rgba(108,190,1,.5); }
.card.premium { border-color: rgba(255,194,71,.45); background: linear-gradient(135deg, rgba(255,194,71,.12), rgba(11,39,66,.95)); }
.card.premium em { color: #ffc247; }
.perks { margin: 8px 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.perks li { padding-left: 24px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #ffc247 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23021c31' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat; }
.card.premium .btn { background: linear-gradient(180deg, #ffd36b, #ffc247); }
/* figuras v2: silueta clara con articulaciones verdes, como el logo */
.fig { background: radial-gradient(120% 90% at 50% 0%, rgba(108,190,1,.14), rgba(255,255,255,.03) 70%); }
.fig .bd { stroke: #e3eefa; stroke-width: 6.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig .bd.tor { stroke-width: 9; }
.fig .bd.arm { stroke-width: 5.5; }
.fig .bd.far { stroke: #8aa6c4; opacity: 1; stroke-width: 5.5; }
.fig .jt { fill: var(--accent); stroke: #021c31; stroke-width: 1.2; }
.fig .hd { fill: #e3eefa; stroke: var(--accent); stroke-width: 2; }
.fig .gl { fill: none; stroke: rgba(227,238,250,.14); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.fig .gh { fill: rgba(227,238,250,.14); }
.fig .sh { fill: rgba(0,0,0,.35); }
.fig .pr { fill: var(--accent); stroke: #021c31; stroke-width: 1.5; }
.fig .pb { stroke: #cfe0f0; stroke-width: 3; }
.fig .pe { fill: #2a5a8c; stroke: rgba(255,255,255,.3); }
.fig .pa { stroke: var(--accent); opacity: .9; }
.fig .gr { stroke: rgba(255,255,255,.22); }
.fig .f1, .fig .f2 { animation: none; opacity: 1; }
/* perfil */
.prof-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.photo { position: relative; display: block; cursor: pointer; flex: none; }
.photo .cam { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; border: 3px solid #0b2742; }
.photo .cam .ic { width: 14px; height: 14px; }
.photo .avatar { box-shadow: 0 0 0 3px rgba(108,190,1,.5); }
.linkb { background: none; border: 0; padding: 4px 0; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.card.plan.current { border-color: rgba(108,190,1,.55); }
.card.plan .perks li::before { background-color: var(--accent); }
a.btn { text-decoration: none; }

/* Tienda */
.feats { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 6px; }
.feats li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); }
.feats li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: var(--accent); fill: none; stroke-width: 2.4; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 10px 0; line-height: 1.4; }
.chk input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
