/* Marselius · sistema visual «Cristal profundo» (tanda 3): azul noche, cristal, un color por área.
   Diseño de un solo tema (oscuro) a propósito: es la identidad de la app. */
:root {
  color-scheme: dark;
  --bg: #050b1c; --bg-deep: #020610; --sheet: #0e1a36; --line: rgba(255,255,255,.13); --glass: rgba(255,255,255,.06);
  --fg: #f1f4fb; --mu: #a4b1ca; --dim: #6f7d98; --ink: #06101f; --silver: #c3ccd9;
  --ok: #3fd28f; --blue: #4f8dff; --blue-soft: #9fc0ff; --violet: #8b7cff; --amber: #ffb547; --rose: #ff6b7d; --gold: #e2b45a;
  --f-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-head: Sora, Manrope, system-ui, sans-serif;
  --f-num: "Space Grotesk", Manrope, system-ui, sans-serif;
  --gut-l: max(16px, env(safe-area-inset-left, 0px)); --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
html, body { height: 100%; }
body { margin: 0; background: var(--bg-deep); color: var(--fg); font: 500 15px/1.45 var(--f-body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
* { box-sizing: border-box; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
a { color: var(--blue-soft); }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; max-width: 100%; }

/* ---------- lienzo de la app (móvil primero; en escritorio se centra como un teléfono) ---------- */
#app { min-height: 100%; max-width: 480px; margin: 0 auto; position: relative; background: radial-gradient(520px 420px at 12% -6%, #16306a 0%, rgba(5,11,28,0) 65%), var(--bg); display: flex; flex-direction: column; }
.screen { flex: 1; padding-left: var(--gut-l); padding-right: var(--gut-r); padding-block: 14px 110px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.screen.full { padding-block-end: 28px; }
.wm { position: fixed; right: -70px; bottom: 60px; width: 320px; opacity: .07; pointer-events: none; z-index: 0; }
.screen > * { position: relative; z-index: 1; }
.screen > .wm { position: fixed; z-index: 0; }

.t1 { font: 700 26px/1.1 var(--f-head); letter-spacing: -.03em; text-wrap: balance; }
.t2 { font: 700 20px/1.15 var(--f-head); letter-spacing: -.02em; text-wrap: balance; }
.t3 { font: 800 15px/1.25 var(--f-body); }
.mu { color: var(--mu); } .sm { font-size: 13px; } .xs { font-size: 11.5px; }
.num { font-family: var(--f-num); font-weight: 700; font-variant-numeric: tabular-nums; }
.up { color: var(--ok); font-weight: 800; }
.ey { font: 700 11px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--blue-soft); }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; } .row > .grow { flex: 1; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.between { justify-content: space-between; } .center { text-align: center; } .wrap { flex-wrap: wrap; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.gl { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; }
.pad { padding: 16px; } .pad-s { padding: 12px 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.09); font-weight: 700; font-size: 13px; white-space: nowrap; }
.chip.ok { background: rgba(63,210,143,.16); color: var(--ok); } .chip.gold { background: rgba(226,180,90,.18); color: var(--gold); }
.chip.on { background: var(--fg); color: var(--ink); }

.btn { min-height: 54px; padding: 0 22px; border-radius: 999px; font: 800 16px var(--f-body); color: var(--ink); background: linear-gradient(180deg, #fff, var(--silver)); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; width: 100%; transition: transform .12s; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--glass); color: var(--fg); border: 1px solid var(--line); }
.btn.sm { min-height: 44px; font-size: 14px; padding: 0 16px; width: auto; }
.btn[disabled] { opacity: .45; }
.ib { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--glass); border: 1px solid var(--line); flex: none; }
.link { color: var(--blue-soft); font-weight: 700; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- barra inferior ---------- */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 20; display: flex; padding: 8px max(8px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px)); background: rgba(5,11,28,.97); border-top: 1px solid var(--line); }
.nav button { flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 10.5px var(--f-body); color: var(--dim); border-radius: 14px; }
.nav button span { font-size: 21px; filter: grayscale(1) opacity(.6); }
.nav button.on { color: var(--fg); } .nav button.on span { filter: none; }

/* ---------- portada: sim + cuerpo vivo + batería ---------- */
.hero { position: relative; height: 304px; }
.hero .sim { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 212px; height: 256px; }
.hero .halo { position: absolute; left: 50%; top: 20px; width: 260px; height: 260px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(159,192,255,.22), rgba(5,11,28,0) 68%); }
.lab { position: absolute; display: flex; align-items: center; gap: 6px; padding: 7px 10px; max-width: calc(50% - 50px); border-radius: 16px; background: rgba(8,16,38,.86); border: 1px solid var(--line); font-size: 11.5px; white-space: nowrap; text-align: left; z-index: 3; }
.lab b { display: block; font: 700 15px/1.1 var(--f-num); } .lab i { font-style: normal; font-size: 19px; } .lab .mu { font-size: 10.5px; }
.batt { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(8,16,38,.9); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.batt .cell { position: relative; width: 74px; height: 30px; border-radius: 9px; border: 2px solid var(--dim); overflow: hidden; }
.batt .cell::after { content: ""; position: absolute; right: -6px; top: 8px; width: 4px; height: 10px; background: var(--dim); border-radius: 0 3px 3px 0; }
.batt .fill { position: absolute; left: 2px; top: 2px; bottom: 2px; border-radius: 6px; background: linear-gradient(90deg, var(--ok), #ffd27a); box-shadow: 0 0 18px rgba(255,181,71,.5); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.batt .zap { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; }
.bubble { padding: 13px 16px; font-size: 14.5px; line-height: 1.45; border-color: rgba(200,208,220,.35); display: flex; gap: 12px; align-items: center; }
.bubble img { width: 38px; flex: none; }

/* ---------- plan de hoy ---------- */
.task { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 18px; width: 100%; min-height: 54px; }
.task .b { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #3a4a6c; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 14px; transition: all .2s; }
.task.done .b { background: var(--ok); border-color: var(--ok); color: #04210f; }
.task .e { font-size: 22px; flex: none; } .task .tx { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.25; }
.task.done .tx { color: var(--mu); }
.task .pl { font: 700 13px var(--f-num); color: var(--amber); flex: none; } .task.done .pl { color: var(--ok); }

/* ---------- tarjetas de color ---------- */
.cc { position: relative; border-radius: 24px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; min-height: 92px; width: 100%; color: #fff; overflow: hidden; transition: transform .12s; background: linear-gradient(120deg, var(--c1), var(--c2)); }
.cc:active { transform: scale(.985); }
.cc .e { font-size: 42px; line-height: 1; flex: none; } .cc .nm { font-weight: 800; font-size: 17px; } .cc .sb { font-size: 12.5px; opacity: .88; }
.cc .n { margin-left: auto; text-align: right; min-width: 0; } .cc .n b { display: block; font: 700 27px/1 var(--f-num); } .cc .n small { font-size: 12px; font-weight: 700; opacity: .92; }
.area-top { margin: -14px calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut-l)); padding: 14px var(--gut-r) 26px var(--gut-l); background: linear-gradient(180deg, var(--c1) 0%, rgba(5,11,28,0) 100%); display: flex; flex-direction: column; gap: 12px; }
.big { font: 700 64px/1 var(--f-num); letter-spacing: -.02em; }

/* ---------- datos rápidos: pasos, deslizadores, escalas ---------- */
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.1); font: 700 22px var(--f-num); display: grid; place-items: center; flex: none; }
.stepper button:active { background: rgba(255,255,255,.22); }
.stepper .v { flex: 1; text-align: center; font: 700 24px var(--f-num); min-width: 64px; } .stepper .v small { font: 600 12px var(--f-body); color: var(--mu); }
.scale { display: grid; gap: 5px; } .scale button { height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); font: 700 15px var(--f-num); }
.scale button.on { background: var(--fg); color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 12px; border-radius: 12px; background: rgba(255,255,255,.14); }
input[type=range]::-moz-range-track { height: 12px; border-radius: 12px; background: rgba(255,255,255,.14); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; margin-top: -10px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
input[type=range]::-moz-range-thumb { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; }
.field { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 16px; }
textarea.field { min-height: 96px; resize: vertical; line-height: 1.4; }
.field::placeholder { color: var(--dim); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; } .opts button { min-height: 46px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.opts button.on { background: var(--fg); color: var(--ink); border-color: var(--fg); }

/* ---------- gráficos ---------- */
.bar { height: 12px; border-radius: 12px; background: rgba(255,255,255,.1); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 12px; background: linear-gradient(90deg, var(--c1, #1f5fd6), var(--c2, #4f8dff)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; } .bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 11.5px; color: var(--mu); min-width: 0; }
.bars span { width: 100%; border-radius: 10px; background: rgba(255,255,255,.2); min-height: 4px; } .bars .hi span { background: var(--c2, #fff); } .bars .now { color: var(--fg); font-weight: 800; }
.minib { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--mu); }
.minib .cell { width: 26px; height: 62px; border-radius: 7px; border: 2px solid #3a4a6c; position: relative; overflow: hidden; margin-top: 6px; }
.minib .cell::before { content: ""; position: absolute; left: 7px; top: -6px; width: 8px; height: 4px; background: #3a4a6c; border-radius: 2px; }
.minib .cell span { position: absolute; left: 0; right: 0; bottom: 0; } .minib.now { color: var(--fg); font-weight: 800; } .minib.now .cell { border-color: var(--blue-soft); }
.stat { padding: 14px 10px; text-align: center; } .stat b { display: block; font: 700 26px/1.1 var(--f-num); } .stat span { font-size: 12px; color: var(--mu); }
.ring { --p: 0; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c2, #4f8dff) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); flex: none; }
.ring > span { width: 58px; height: 58px; border-radius: 50%; background: #071029; display: grid; place-items: center; font-size: 22px; }

/* ---------- entreno ---------- */
.exrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; width: 100%; border-radius: 20px; }
.exrow .th { width: 62px; height: 62px; border-radius: 16px; background: rgba(79,141,255,.14); flex: none; overflow: hidden; }
.exrow.done { border-color: rgba(63,210,143,.5); }
.stage { border-radius: 24px; background: radial-gradient(260px 200px at 50% 80%, rgba(79,141,255,.28), rgba(5,11,28,0) 70%), rgba(255,255,255,.04); border: 1px solid var(--line); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.setrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) 50px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.setrow:last-child { border-bottom: 0; }
.setrow .mini { display: flex; align-items: center; justify-content: space-between; gap: 2px; background: rgba(255,255,255,.07); border-radius: 14px; padding: 3px; }
.setrow .mini button { width: 36px; height: 40px; border-radius: 11px; font: 700 20px var(--f-num); background: rgba(255,255,255,.08); flex: none; display: grid; place-items: center; }
.setrow .mini b { font: 700 17px var(--f-num); text-align: center; flex: 1; min-width: 0; } .setrow .mini b small { font: 600 10px var(--f-body); color: var(--mu); display: block; line-height: 1; }
.setrow .ok { width: 50px; height: 46px; border-radius: 14px; border: 2px solid #3a4a6c; font-size: 18px; font-weight: 800; display: grid; place-items: center; }
.setrow.done .ok { background: var(--ok); border-color: var(--ok); color: #04210f; } .setrow.done .mini { opacity: .75; }
.yt { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; width: 100%; display: block; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(5,11,28,.1), rgba(5,11,28,.55)); }
.yt .play span { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); display: grid; place-items: center; font-size: 24px; padding-left: 4px; }

/* ---------- comida ---------- */
.meal { display: flex; gap: 12px; align-items: center; padding: 10px; width: 100%; border-radius: 22px; }
.meal .pl8 { width: 92px; height: 92px; flex: none; } .meal.done { border-color: rgba(63,210,143,.5); }
.macro { display: flex; gap: 8px; } .macro > div { flex: 1; border-radius: 16px; padding: 10px 6px; text-align: center; background: rgba(255,255,255,.07); min-width: 0; }
.macro b { display: block; font: 700 19px/1.1 var(--f-num); } .macro span { font-size: 11px; color: var(--mu); }
.seg { display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); gap: 2px; } .seg button { flex: 1; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--mu); padding: 0 6px; }
.seg button.on { background: var(--fg); color: var(--ink); }
.ing { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); } .ing:last-child { border: 0; }
.ing i { width: 14px; height: 14px; border-radius: 50%; flex: none; } .ing .q { margin-left: auto; font: 700 15px var(--f-num); text-align: right; }
.days7 { display: flex; gap: 6px; } .days7 button { flex: 1; min-height: 50px; border-radius: 14px; background: rgba(255,255,255,.06); font: 700 12px var(--f-body); color: var(--mu); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.days7 button b { font: 700 15px var(--f-num); color: var(--fg); } .days7 button.on { background: var(--fg); color: var(--ink); } .days7 button.on b { color: var(--ink); }

/* ---------- hábitos, insignias, camino ---------- */
.hab { border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(140deg, rgba(255,181,71,.2), rgba(255,255,255,.04)); border: 1px solid rgba(255,181,71,.3); }
.hab .e { font-size: 30px; } .hab.on { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(255,181,71,.25); }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 6px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.badge .e { font-size: 30px; } .badge.off { opacity: .32; filter: grayscale(1); } .badge.on { border-color: rgba(226,180,90,.6); background: rgba(226,180,90,.1); }
.tier { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-size: 12px; font-weight: 800; }
.tier .h { width: 100%; max-width: 74px; aspect-ratio: 3 / 4; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); } .tier .h img { width: 78%; }
.tier.off { opacity: .5; } .tier.now .h { box-shadow: 0 0 0 3px rgba(223,229,238,.25); border-color: #dfe5ee; }
.path { display: flex; gap: 5px; flex-wrap: wrap; } .path i { width: calc((100% - 95px) / 20); aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.1); } .path i.d { background: linear-gradient(180deg, #5c95ff, #2f63d0); } .path i.n { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.2); } .path i.g { background: rgba(226,180,90,.45); } .path i.g.d { background: var(--gold); }

/* ---------- hojas, avisos y celebraciones ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(2,6,16,.72); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: 100%; max-width: 480px; max-height: 92%; overflow-y: auto; background: var(--sheet); border-top: 1px solid var(--line); border-radius: 30px 30px 0 0; padding: 12px var(--gut-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gut-l); display: flex; flex-direction: column; gap: 14px; animation: rise .28s cubic-bezier(.2,.8,.2,1); }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); margin: 0 auto 2px; flex: none; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: pop .35s cubic-bezier(.2,1.4,.4,1); max-width: calc(100% - 32px); text-align: center; }
.party { position: fixed; inset: 0; z-index: 70; background: rgba(2,6,16,.86); display: grid; place-items: center; padding: 24px; animation: fade .2s; }
.party .box { width: 100%; max-width: 380px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.party .sim { width: 230px; height: 276px; }
.confetti { position: fixed; inset: 0; z-index: 71; pointer-events: none; overflow: hidden; } .confetti i { position: absolute; top: -20px; width: 9px; height: 15px; border-radius: 3px; animation: fall linear forwards; }
.progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; } .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--gold)); border-radius: 6px; transition: width .4s; }
.loading { flex: 1; display: grid; place-items: center; min-height: 70vh; } .loading img { width: 90px; animation: breathe 1.6s ease-in-out infinite; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; } .swatches button { width: 42px; height: 42px; border-radius: 50%; border: 3px solid transparent; } .swatches button.on { border-color: #fff; }
.photo-slot { aspect-ratio: 3 / 4; border-radius: 18px; border: 1.5px dashed rgba(255,255,255,.3); display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 700; color: var(--mu); overflow: hidden; position: relative; background: rgba(255,255,255,.04); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .photo-slot input, .filebtn input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.filebtn { position: relative; overflow: hidden; }

@keyframes fade { from { opacity: 0; } } @keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { transform: translateX(var(--tx, 0)) scale(.8); opacity: 0; } } .toast { --tx: -50%; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
.in { animation: in .14s ease-out both; } @keyframes in { from { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.simprev { position: sticky; top: 0; z-index: 5; display: grid; place-items: center; margin: 0 calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut-l)); padding-top: 6px; background: linear-gradient(180deg, var(--bg) 82%, rgba(5,11,28,0)); }

/* botones redondos del día (comidas y hábitos) */
.dock { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px 6px; }
.dk { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; color: var(--mu); min-width: 0; }
.dk .em, .dk .pl8 { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; border: 2px solid #3a4a6c; background: rgba(255,255,255,.04); transition: all .2s; }
.dk .pl8 svg { width: 46px; height: 46px; }
.dk.ok { color: var(--fg); } .dk.ok .em, .dk.ok .pl8 { border-color: var(--ok); background: rgba(63,210,143,.16); }
.dk.ok .em::after, .dk.ok .pl8::after { content: "✓"; position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #04210f; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.seg button, .days7 button, .scale button { text-align: center; }

/* ===== Foto de perfil (sustituye al sim) y portada simple ===== */
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pf { --s: 160px; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; color: rgba(159,192,255,.38); background: radial-gradient(circle at 50% 30%, rgba(79,141,255,.32), rgba(10,20,48,.95) 72%); box-shadow: 0 0 0 3px rgba(8,16,38,1), 0 0 0 5px rgba(159,192,255,.55), 0 18px 46px rgba(31,95,214,.38); }
.pf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf svg { width: 76%; height: 76%; margin-top: 10%; }
.photo-wrap { display: grid; place-items: center; padding: 10px 0 6px; }
.photo-pick { position: relative; display: inline-grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.photo-cam { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; background: var(--blue, #1f5fd6); color: #fff; font: 700 14px/1 var(--f-body, inherit); white-space: nowrap; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.hero2 { position: relative; display: grid; place-items: center; height: 236px; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); padding: 0; cursor: pointer; }
.hero2 .spot { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 62% at 50% 38%, rgba(120,170,255,.34), rgba(79,141,255,.10) 52%, rgba(5,11,28,0) 76%); }
.hero2 .floor { position: absolute; left: 8%; right: 8%; bottom: 14px; height: 36px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(159,192,255,.30), rgba(5,11,28,0) 70%); }
.hero2 .pf { z-index: 2; }
.hero2-hint { position: absolute; z-index: 3; bottom: 16px; padding: 7px 14px; border-radius: 999px; background: rgba(8,16,38,.86); border: 1px solid rgba(159,192,255,.45); font: 700 13px/1 var(--f-body, inherit); color: #dfe9ff; }
.plan { padding: 0; overflow: hidden; }
.plan-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; background: none; border: 0; color: inherit; }
.plan-head .chev { font-size: 22px; color: var(--dim); width: 28px; text-align: center; }
.ring { --p: 0; flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p) * 1%), rgba(255,255,255,.10) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0b1530; }
.ring b { position: relative; font-size: 15px; } .ring small { font-size: 10px; opacity: .7; }
.plan-sum { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }
.pchip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--dim); }
.pchip i { font-style: normal; font-size: 14px; } .pchip.ok { color: #c9f5de; background: rgba(63,210,143,.14); border-color: rgba(63,210,143,.45); }
.plan-body { padding: 2px 12px 14px; }
.party .sim { width: auto; height: auto; display: grid; place-items: center; margin-bottom: 8px; }
.stage .figcv { width: 100%; height: 100%; display: block; }
.exrow .th canvas { width: 100%; height: 100%; display: block; }

/* ===== Platos con fotos reales ===== */
/* Plato de verdad (20 nov 2026, 2.ª versión; Marcel: «una mesa negra y un plato blanco, más profesional»): foto real de un plato blanco sobre pizarra negra (img/plato.webp) y cada alimento recortado con su sombra (img/foodc/<id>.webp, fondo transparente). Sin mix-blend-mode: pinta mucho más rápido en el iPhone. */
.plt { --s: 84px; position: relative; display: block; flex: none; width: var(--s); height: var(--s); border-radius: calc(var(--s) * .2); overflow: hidden; background: #0d0d0f url(../img/plato.webp?v=p1) center / cover no-repeat; box-shadow: 0 8px 20px rgba(0,0,0,.45), inset 0 0 0 .5px rgba(255,255,255,.08); }
.plt-f { position: absolute; inset: 17%; }
.plt img { position: absolute; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.plt.big { border-radius: 24px; }
.plt .plt-p { inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.plt.ph { background: #1b1c1e; } .plt.ph .plt-f { display: none; }
.plt:not(.big) { background-size: 114%; } .plt:not(.big) .plt-f { inset: 12.5%; }
.ing i.fph { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; background: #111114; flex: none; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1); display: grid; place-items: center; }
.ing i.fph img { width: 88%; height: 88%; object-fit: contain; display: block; }

/* ===== Avatar 3D y batería del día ===== */
/* ---------- avatar: personaje de cintura para arriba, con respiración y parpadeo ---------- */
.fig { position: relative; display: block; height: 100%; aspect-ratio: 784 / 1172; transform-origin: 50% 100%; animation: fig-breathe 5.2s ease-in-out infinite; will-change: transform; }
.fig .fig-b, .fig .fig-k, .fig .fig-m { position: absolute; max-width: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; pointer-events: none; object-fit: fill; }
.fig .fig-b { left: 0; top: 0; width: 100%; height: 100%; }
.fig .fig-k { left: 39.031%; top: 15.358%; width: 21.939%; height: auto; opacity: 0; animation: fig-blink 7.4s linear infinite; }
@keyframes fig-breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-.45%) scale(1.012); } }
@keyframes fig-blink { 0%, 44% { opacity: 0; } 45%, 46.4% { opacity: 1; } 47.6%, 84% { opacity: 0; } 85%, 86.2% { opacity: 1; } 87.4%, 89.4% { opacity: 0; } 90.4%, 91.6% { opacity: 1; } 92.8%, 100% { opacity: 0; } }
@keyframes halo-breathe { 0%, 100% { opacity: .72; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.pf-av { background: radial-gradient(circle at 50% 30%, #1d3a7c, #0a1634 78%); border: 1px solid rgba(159,192,255,.35); }
.pf-av .fig { position: absolute; left: -66%; top: -4%; width: 230.6%; height: auto; animation: none; }

/* portada: el avatar ocupa la mitad de arriba de la pantalla; la batería del día flota a su derecha */
.hero4 { --hx: 37%; position: relative; height: clamp(360px, 52vh, 480px); height: clamp(360px, 52svh, 480px); border-radius: 30px; overflow: hidden; isolation: isolate; border: 1px solid rgba(159,192,255,.22);
  background: radial-gradient(120% 85% at 30% 0%, #1a3676 0%, #0d1c42 45%, #070f26 100%); box-shadow: 0 26px 60px -34px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.12); }
.h4-halo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; transform-origin: var(--hx, 50%) 38%; animation: halo-breathe 5.2s ease-in-out infinite;
  background: radial-gradient(40% 33% at var(--hx, 50%) 42%, color-mix(in srgb, var(--bc, #4f8dff) 62%, transparent), transparent 100%), radial-gradient(76% 60% at var(--hx, 50%) 24%, rgba(96,150,255,.34), transparent 78%); }
/* aura: la silueta del avatar desenfocada, del color de la batería (el desenfoque va en el padre y la máscara en el hijo; juntos en el mismo elemento el navegador recorta el desenfoque) */
.aura { position: absolute; inset: 0; filter: blur(15px); opacity: .5; pointer-events: none; }
.aura i { position: absolute; inset: 0; background: var(--bc, #4f8dff); -webkit-mask: var(--av) center / 100% 100% no-repeat; mask: var(--av) center / 100% 100% no-repeat; }
.h4-fig { position: absolute; left: var(--hx); bottom: -19%; height: 117%; aspect-ratio: 784 / 1172; transform: translateX(-50%); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.h4-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; pointer-events: none; background: linear-gradient(to top, rgba(6,13,33,.92), rgba(6,13,33,0)); }
.batt3 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.hero4 .batt3 { position: absolute; z-index: 2; right: 12px; top: 50%; transform: translateY(-50%); width: 106px; padding: 14px 8px 13px; border-radius: 26px; background: linear-gradient(180deg, rgba(16,30,66,.80), rgba(7,14,34,.86)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 16px 34px -14px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.10); }
.blab { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); line-height: 1.25; }
.bcell { position: relative; width: 58px; height: 104px; margin-top: 8px; border-radius: 15px; border: 3px solid rgba(255,255,255,.6); padding: 4px; background: rgba(8,16,38,.75); display: flex; align-items: flex-end; box-shadow: 0 0 26px color-mix(in srgb, var(--bc) 45%, transparent); }
.bcell::before { content: ""; position: absolute; left: 50%; top: -10px; width: 20px; height: 7px; transform: translateX(-50%); border-radius: 4px 4px 0 0; background: rgba(255,255,255,.6); }
.bfill { display: block; width: 100%; border-radius: 9px; background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 72%, #fff), var(--bc)); transition: height .9s cubic-bezier(.2,.8,.2,1), background .6s; }
.bbolt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.bpct { font-size: 32px; font-weight: 800; line-height: 1; color: var(--bc); } .bpct small { font-size: 15px; opacity: .8; }
.bmsg { font-size: 11.5px; font-weight: 600; color: var(--mu); max-width: 92px; line-height: 1.25; }
/* el mismo avatar en Perfil y en el alta */
.avbox { --hx: 50%; position: relative; width: min(100%, 360px); height: 400px; margin: 6px auto 4px; border-radius: 30px; overflow: hidden; isolation: isolate; border: 1px solid rgba(159,192,255,.22); background: radial-gradient(120% 85% at 50% 0%, #1a3676 0%, #0d1c42 45%, #070f26 100%); }
.avfig { position: absolute; left: 50%; bottom: -16%; height: 114%; aspect-ratio: 784 / 1172; transform: translateX(-50%); }
.avtag { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; white-space: nowrap; background: rgba(8,16,38,.86); border: 1px solid color-mix(in srgb, var(--bc) 60%, transparent); font-size: 13px; font-weight: 700; color: #dfe9ff; }
.avtag b { color: var(--bc); font-size: 15px; margin-right: 6px; }

/* ---------- Dentro del recuadro del personaje: nivel y caballo semanal arriba, tira de mejoras abajo ---------- */
.hero4 { --top: 78px; height: clamp(436px, 61vh, 560px); height: clamp(436px, 61svh, 560px); }
.hero4 .h4-fig { height: calc((100% - var(--top)) * 1.17); bottom: calc((100% - var(--top)) * -.19); }
.hero4 .batt3 { top: calc(50% + 22px); }
.h4-top { position: absolute; z-index: 3; left: 16px; right: 16px; top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; color: var(--fg); text-align: left; }
.h4-top small { display: block; font: 700 10px/1.1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #b9c6e2; }
.h4-lv { display: flex; align-items: baseline; gap: 9px; }
.h4-lv small { align-self: center; }
.h4-lv b { font: 700 54px/.9 var(--f-num); letter-spacing: -.04em; text-shadow: 0 4px 22px rgba(0,0,0,.45); }
.h4-hz { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: linear-gradient(180deg, rgba(16,30,66,.78), rgba(7,14,34,.84)); border: 1px solid color-mix(in srgb, var(--h1) 55%, transparent); box-shadow: 0 8px 22px -10px rgba(0,0,0,.7); }
.h4-hz small { font-size: 8.5px; letter-spacing: .14em; margin-bottom: 3px; }
.h4-hz b { display: block; font: 700 19px/1 var(--f-head); color: var(--h1); letter-spacing: -.01em; }
.h4-tk { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 10px; height: 36px; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, rgba(14,26,58,.82), rgba(6,12,30,.9)); border: 1px solid rgba(159,192,255,.2); box-shadow: 0 8px 20px -10px rgba(0,0,0,.8); }
.h4-tk span { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; transform: translateY(100%); opacity: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .45s; }
.h4-tk span.on { transform: none; opacity: 1; } .h4-tk span.out { transform: translateY(-100%); opacity: 0; }
.h4-tk i { font-style: normal; font-size: 15px; flex: none; }
.h4-tk em { font-style: normal; font: 700 12.5px/1 var(--f-body); color: #e6ecfa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .h4-tk span { transition: opacity .3s; transform: none; } }
.medal { --s: 30px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: inline-grid; place-items: center; position: relative;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.5), transparent 46%), linear-gradient(145deg, var(--h1), var(--h2)); box-shadow: 0 0 0 1.5px rgba(255,255,255,.22), 0 3px 10px rgba(0,0,0,.4), 0 0 14px color-mix(in srgb, var(--h1) 45%, transparent); }
.medal::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: #0a1228; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h1) 70%, transparent); }
.medal img { position: relative; width: 62%; height: 62%; object-fit: contain; }
.bubble .medal { margin-right: 2px; }

/* ---------- Plan de hoy: tarjeta premium ---------- */
.plan.lux { position: relative; border-radius: 26px; isolation: isolate; overflow: hidden; border: 1px solid rgba(226,180,90,.55);
  background: radial-gradient(130% 90% at 0% 0%, rgba(226,180,90,.16), transparent 52%), linear-gradient(155deg, #17203d 0%, #0b1226 52%, #060a16 100%);
  box-shadow: inset 0 1px 0 rgba(255,236,190,.28), inset 0 0 0 1px rgba(226,180,90,.10), 0 18px 38px -14px rgba(0,0,0,.7), 0 0 26px -10px rgba(226,180,90,.45); }
.plan.lux::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #f4d896 30%, #fff3d2 50%, #f4d896 70%, transparent); opacity: .9; }
.plan.lux .lux-wm { position: absolute; right: -26px; top: -18px; width: 150px; opacity: .07; pointer-events: none; z-index: -1; filter: sepia(1) saturate(3) brightness(1.05); }
.plan.lux .plan-head { padding: 18px 16px 14px; }
.plan.lux .lux-ey { display: block; font: 800 10px/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase; background: linear-gradient(90deg, #f4d896, #c99a3c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan.lux .lux-t { display: block; font: 700 25px/1.1 var(--f-head); letter-spacing: -.03em; margin: 6px 0 4px; color: #fff; }
.plan.lux .lux-s { display: block; font-size: 12.5px; font-weight: 600; color: #b9c2d6; }
.plan.lux .ring { width: 62px; height: 62px; background: conic-gradient(#f0cf85 calc(var(--p) * 1%), rgba(255,255,255,.10) 0); box-shadow: 0 0 18px -4px rgba(226,180,90,.6); }
.plan.lux .ring::before { background: #0a1124; inset: 5px; }
.plan.lux .ring b { font-size: 17px; color: #fff3d2; }
.plan.lux .chev { color: #e2b45a; }
.plan.lux .plan-sum { padding: 0 16px 16px; }
.plan.lux .pchip { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); color: #c7cfdf; }
.plan.lux .pchip.ok { color: #1a1204; background: linear-gradient(180deg, #f6dc9c, #dcae52); border-color: transparent; font-weight: 800; }
.plan.lux .pchip.ok::after { content: "✓"; font-size: 11px; margin-left: 1px; }
.plan.lux .plan-body { border-top: 1px solid rgba(226,180,90,.18); padding-top: 12px; }

/* ---------- Instalar en la pantalla de inicio (js/install.js) ---------- */
.inst { padding: 16px; display: flex; flex-direction: column; gap: 14px; border-color: rgba(226,180,90,.45); background: radial-gradient(120% 90% at 0% 0%, rgba(226,180,90,.12), transparent 55%), var(--glass); }
.inst.done { padding: 12px 14px; flex-direction: row; border-color: rgba(63,210,143,.45); }
.inst-head { display: flex; gap: 12px; align-items: center; } .inst-head img { width: 54px; height: 54px; border-radius: 14px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.inst-head .ey { color: #e9c46a; } .inst-head .t2 { font-size: 19px; line-height: 1.2; margin: 3px 0; }
.inst-seg button { font-weight: 800; }
.inst-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: none; }
.inst-st { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.inst-n { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 13px var(--f-num); color: #1a1204; background: linear-gradient(180deg, #f6dc9c, #dcae52); }
.inst-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(79,141,255,.16); color: #9fc0ff; }
.inst-ic svg { width: 22px; height: 22px; } .inst-ic svg[viewBox="0 0 34 20"] { width: 32px; height: 19px; }
.inst-tx { font-size: 14.5px; line-height: 1.45; color: var(--fg); } .inst-tx b { color: #fff; }
.inst-mini { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.12); vertical-align: middle; } .inst-mini svg { width: 14px; height: 14px; }
.inst-go { margin-top: -2px; background: linear-gradient(180deg, #f6dc9c, #dcae52); color: #1a1204; }

/* ---------- Cuentas: crear cuenta / entrar (js/auth.js) ---------- */
.au { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top,0px)) 20px calc(24px + env(safe-area-inset-bottom,0px)); font-family: Manrope, system-ui, sans-serif; color: #f1f4fb; background: #050b1c; overflow: hidden; }
.au-glow { position: absolute; inset: -20% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(79,141,255,.22), transparent 70%), radial-gradient(40% 40% at 80% 90%, rgba(226,180,90,.10), transparent 70%); pointer-events: none; }
.au-in { position: relative; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.au-horse { width: 96px; margin: 0 auto -4px; filter: drop-shadow(0 0 24px rgba(220,228,240,.35)); }
.au-brand { text-align: center; font: 600 15px Cinzel, Georgia, serif; letter-spacing: .3em; text-transform: uppercase; } .au-brand span { display: block; font: 700 10px Manrope, sans-serif; letter-spacing: .32em; color: #e2b45a; margin-top: 4px; }
.au-t { font: 700 26px/1.15 Sora, Manrope, sans-serif; letter-spacing: -.03em; text-align: center; margin: 10px 0 0; }
.au-p { color: #a4b1ca; text-align: center; margin: 0; font-size: 15px; line-height: 1.5; } .au-p b { color: #fff; }
.au-f { display: flex; flex-direction: column; gap: 6px; } .au-f > span:first-child { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a4b1ca; }
.au-inw { position: relative; display: block; }
.au-f input { width: 100%; min-height: 54px; padding: 0 48px 0 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #fff; font: 600 16px Manrope, sans-serif; outline: none; }
.au-f input:focus { border-color: #e2b45a; box-shadow: 0 0 0 4px rgba(226,180,90,.16); }
.au-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: #a4b1ca; font-size: 18px; cursor: pointer; }
.au-btn { min-height: 56px; border-radius: 999px; border: 0; font: 800 16px Manrope, sans-serif; color: #06101f; background: linear-gradient(180deg, #fff, #c3ccd9); cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.au-btn.ghost { background: rgba(255,255,255,.07); color: #f1f4fb; border: 1px solid rgba(255,255,255,.18); }
.au-btn:disabled { opacity: .55; }
.au-link { background: none; border: 0; color: #9fc0ff; font: 700 14px Manrope, sans-serif; min-height: 40px; cursor: pointer; }
.au-sep { display: flex; align-items: center; gap: 10px; color: #7786a3; font-size: 12.5px; letter-spacing: .08em; } .au-sep i { flex: 1; height: 1px; background: rgba(255,255,255,.14); }
.au-small { color: #7786a3; font-size: 12.5px; text-align: center; margin: -4px 0 0; }
.au-msg { min-height: 20px; margin: 0; text-align: center; color: #ff8a8a; font-weight: 700; font-size: 14px; } .au-msg.ok { color: #3fd28f; }
.au-warn { padding: 12px 14px; border-radius: 14px; background: rgba(255,181,71,.12); border: 1px solid rgba(255,181,71,.55); color: #ffd99a; font-size: 14px; line-height: 1.45; } .au-warn b { color: #ffb547; }
.au-chk { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; color: #f1f4fb; } .au-chk input { width: 22px; height: 22px; accent-color: #e2b45a; }

/* rendimiento: respuesta inmediata al tocar (sin la espera del doble toque) y un leve hundido para que se note el toque */
button, a, [data-a], label, input, select { touch-action: manipulation; }
.btn:active, .ib:active, button.gl:active, .exrow:active, .link:active, .opts button:active, .stepper button:active, .mini button:active, .scale button:active, .seg button:active, .days7 button:active, .setrow .ok:active { transform: scale(.96); transition: transform .05s; }
.nav button:active { background: rgba(255,255,255,.08); }
.wth { width: 86px; height: 64px; flex: none; border-radius: 14px; overflow: hidden; background: rgba(79,141,255,.14); } .wth canvas { width: 100%; height: 100%; display: block; }
.avpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.avpick button { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,.14); background: #0d1c42; transition: border-color .15s, box-shadow .15s; }
.avpick button img { width: 100%; height: 100%; object-fit: cover; }
.avpick button.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226,180,90,.25), 0 10px 26px -10px rgba(226,180,90,.6); }
.avpick button.on::after { content: "✓"; position: absolute; right: 6%; bottom: 6%; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 14px; }
.avpick button:active { transform: scale(.95); }
/* Fondo del personaje como un plató de fotos (13 nov 2026): telón azul noche con un foco suave detrás de la cabeza,
   un contraluz tenue del color de la batería y viñeta en los bordes. Sustituye al «aura» (silueta desenfocada pegada al cuerpo). */
.aura { display: none; }
.hero4, .avbox {
  background:
    radial-gradient(52% 38% at var(--hx, 50%) 30%, rgba(150,182,255,.30) 0%, rgba(150,182,255,.10) 45%, rgba(150,182,255,0) 72%),
    radial-gradient(120% 70% at var(--hx, 50%) 0%, #17306a 0%, #0d1d45 48%, #070f27 100%);
}
.hero4::before, .avbox::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 34% at var(--hx, 50%) 98%, rgba(2,6,18,.55), rgba(2,6,18,0) 70%),
    radial-gradient(140% 105% at var(--hx, 50%) 36%, rgba(0,0,0,0) 52%, rgba(1,4,14,.55) 100%);
}
.h4-halo {
  mix-blend-mode: screen; animation: halo-soft 8s ease-in-out infinite; transform: none;
  background:
    radial-gradient(34% 24% at var(--hx, 50%) 33%, color-mix(in srgb, var(--bc, #4f8dff) 30%, transparent), transparent 100%),
    radial-gradient(62% 40% at var(--hx, 50%) 58%, color-mix(in srgb, var(--bc, #4f8dff) 13%, transparent), transparent 100%);
}
@keyframes halo-soft { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .h4-halo { animation: none; } }

/* ===== Tanda «agenda, cardio, hábitos, energía, batería saludable» (13 nov 2026) ===== */
.red { color: #ff4d6d; } .heart { display: inline-block; vertical-align: -2px; filter: drop-shadow(0 0 6px rgba(255,77,109,.55)); }
button.batt3 { font: inherit; color: inherit; text-align: center; cursor: pointer; }
.batt3 .blab .red { font-weight: 900; }
.batt3 .bbolt .heart { animation: hbeat 1.6s ease-in-out infinite; }
@keyframes hbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.18); } 28% { transform: scale(1); } 42% { transform: scale(1.12); } 60% { transform: scale(1); } }
/* plan de hoy: enlace a la agenda */
.plan-ag { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 6px 10px; border-radius: 999px; font: 800 11px/1 var(--f-body); color: #f4d896; background: rgba(226,180,90,.12); border: 1px solid rgba(226,180,90,.4); }
.plan.lux .plan-head { padding-right: 16px; }
/* energía: personaje con batería de energía */
.enbox { --hx: 36%; }
.enbox .avfig { left: 36%; }
.enbox .batt3 { position: absolute; z-index: 2; right: 12px; top: 50%; transform: translateY(-50%); width: 104px; padding: 14px 8px 13px; border-radius: 26px; background: linear-gradient(180deg, rgba(16,30,66,.80), rgba(7,14,34,.86)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 16px 34px -14px rgba(0,0,0,.75); }
.enbox .bfill { background: linear-gradient(180deg, #ffe08a, #ffb547 55%, #ff8a3d); }
.enbox .bpct { color: #ffd166; }
.enrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.07); }
.enrow:first-of-type { border-top: 0; }
.enrow .e { font-size: 22px; flex: none; width: 28px; text-align: center; } .enrow .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.enrow .num { font: 800 17px var(--f-num); color: var(--mu); } .enrow.on .num { color: var(--ok); }
.enrow.tot { border-top: 1px dashed rgba(255,255,255,.18); } .enrow.tot .num { color: #ffd166; }
.enbar { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); margin-top: 4px; overflow: hidden; } .enbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffb547, #ffd166); }
/* hábitos: deep work */
.dwcard { border-color: rgba(255,122,217,.4); background: linear-gradient(160deg, rgba(168,50,127,.18), rgba(255,255,255,.04)); }
/* cardio */
.cdfig { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: rgba(47,211,199,.12); overflow: hidden; flex: none; }
.cdfig canvas { width: 100%; height: 100%; display: block; } .cdfig.emo { font-size: 32px; }
.cdfig.big { width: 96px; height: 96px; border-radius: 20px; } .cdfig.big.emo { font-size: 46px; }
.cdfig.xl { width: 100%; height: 190px; border-radius: 22px; background: radial-gradient(80% 90% at 50% 40%, rgba(47,211,199,.22), rgba(47,211,199,.04)); } .cdfig.xl.emo { font-size: 90px; }
.cdhero.ok { border-color: rgba(63,210,143,.5); }
.cdgrid { gap: 10px; } .cdcard { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px; text-align: center; border-radius: 20px; color: inherit; }
.cdcard .cdfig { width: 100%; height: 84px; } .cdcard .t3 { font-size: 13.5px; line-height: 1.2; }
.zd { display: inline-flex; gap: 3px; vertical-align: middle; } .zd i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); } .zd i.on { background: #2fd3c7; }
.cdtypes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .cdtypes::-webkit-scrollbar { display: none; }
.cdtypes button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 10px 6px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font: 700 11px/1.15 var(--f-body); text-align: center; }
.cdtypes button span { font-size: 24px; } .cdtypes button.on { border-color: #2fd3c7; background: rgba(47,211,199,.16); }
/* agenda semanal */
.agday { border-radius: 22px; padding: 12px; background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.agday.now { border-color: rgba(226,180,90,.6); box-shadow: 0 0 0 1px rgba(226,180,90,.25) inset; } .agday.past { opacity: .82; }
.agh { display: flex; align-items: center; gap: 8px; } .agd { flex: 1; font-size: 14px; color: var(--mu); } .agd b { color: var(--fg); font-family: var(--f-head); font-size: 16px; margin-right: 4px; }
.agp { font: 800 13px var(--f-num); }
.agplus { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 800; color: var(--ink); background: linear-gradient(180deg, #fff, var(--silver)); flex: none; }
.agcards { display: flex; flex-direction: column; gap: 6px; }
.agc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; text-align: left; color: inherit; border: 1px solid transparent; }
.agc .e { font-size: 22px; flex: none; } .agc .tx { flex: 1; font-weight: 700; font-size: 14px; } .agc .tx small { display: block; font-weight: 600; font-size: 11.5px; color: var(--mu); }
.agc .ck { color: var(--ok); font-weight: 900; }
.agc.w { background: rgba(79,141,255,.14); border-color: rgba(79,141,255,.28); } .agc.c { background: rgba(47,211,199,.12); border-color: rgba(47,211,199,.28); } .agc.n { background: rgba(63,210,143,.10); border-color: rgba(63,210,143,.24); }
.agc.ok { box-shadow: inset 3px 0 0 var(--ok); }
.aghs { display: flex; flex-wrap: wrap; gap: 6px; } .agh1 { padding: 7px 10px; border-radius: 999px; font: 700 12px var(--f-body); background: rgba(255,122,217,.12); border: 1px solid rgba(255,122,217,.28); color: inherit; } .agh1.ok { background: rgba(63,210,143,.16); border-color: rgba(63,210,143,.4); }
.agpick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.agpick button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font: 700 15px var(--f-num); }
.agpick button b { font: 800 11px var(--f-body); color: var(--mu); } .agpick button:disabled { opacity: .3; }
button.gl:disabled { opacity: .45; }
/* insignia conseguida: celebración */
.bparty { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: radial-gradient(60% 50% at 50% 42%, rgba(40,30,8,.55), rgba(2,6,16,.94)); animation: bp-in .3s ease-out; overflow: hidden; }
.bparty.out { animation: bp-out .26s ease-in forwards; }
@keyframes bp-in { from { opacity: 0; } } @keyframes bp-out { to { opacity: 0; transform: scale(1.04); } }
.bp-rays { position: absolute; left: 50%; top: 42%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,214,120,.16) 0deg 8deg, rgba(255,214,120,0) 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%); animation: bp-spin 14s linear infinite, bp-in .8s ease-out; }
@keyframes bp-spin { to { transform: rotate(360deg); } }
.bp-burst { position: absolute; left: 50%; top: 42%; width: 0; height: 0; }
.bp-burst i { position: absolute; width: 8px; height: 13px; border-radius: 3px; background: var(--c); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: bp-fly var(--t) cubic-bezier(.15,.7,.3,1) var(--dl) forwards; }
@keyframes bp-fly { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.6); } 80% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) rotate(260deg) scale(1); } }
.bp-box { position: relative; width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.bp-ey { font: 800 11px/1 var(--f-body); letter-spacing: .28em; text-transform: uppercase; background: linear-gradient(90deg, #ffe7a8, #e2b45a); -webkit-background-clip: text; background-clip: text; color: transparent; animation: bp-up .5s .15s both; }
.bp-medal { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin: 8px 0; background: radial-gradient(circle at 35% 30%, #fff6d6, #e9c46a 38%, #a67c1f 78%, #6e4f12); box-shadow: 0 0 0 6px rgba(255,231,168,.25), 0 0 60px 10px rgba(233,196,106,.55), inset 0 -10px 24px rgba(0,0,0,.35), inset 0 8px 18px rgba(255,255,255,.5); animation: bp-pop .8s cubic-bezier(.2,1.6,.4,1) .1s both; overflow: hidden; }
.bp-medal .bp-ring { position: absolute; inset: 12px; border-radius: 50%; border: 3px solid rgba(255,248,220,.75); box-shadow: inset 0 0 18px rgba(110,79,18,.6); }
.bp-medal .bp-e { position: relative; font-size: 64px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); animation: bp-wob 1.2s ease-in-out .9s both; }
.bp-medal .bp-shine { position: absolute; top: -40%; left: -60%; width: 50%; height: 180%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75), rgba(255,255,255,0)); transform: rotate(25deg); animation: bp-shine 1.6s ease-in-out .9s infinite; }
.bp-medal.sm { width: 110px; height: 110px; animation: none; } .bp-medal.sm .bp-e { font-size: 48px; animation: none; } .bp-medal.off { filter: grayscale(1) brightness(.6); box-shadow: none; }
@keyframes bp-pop { 0% { transform: scale(0) rotate(-120deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes bp-wob { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.08); } 55% { transform: rotate(8deg); } }
@keyframes bp-shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@keyframes bp-up { from { opacity: 0; transform: translateY(12px); } }
.bp-n { font: 800 26px/1.15 var(--f-head); animation: bp-up .5s .45s both; } .bp-d { color: #dfe6f5; font-size: 15px; animation: bp-up .5s .55s both; }
.bp-more { font-size: 14px; color: #f4d896; font-weight: 700; animation: bp-up .5s .65s both; } .bp-box .btn { margin-top: 10px; animation: bp-up .5s .75s both; }
@media (prefers-reduced-motion: reduce) { .bp-rays, .bp-medal, .bp-medal .bp-e, .bp-medal .bp-shine, .bp-burst i { animation: none !important; } .bp-burst { display: none; } }
.plan.lux .plan-head { padding-top: 40px; }
.plan-ag { top: 12px; right: 14px; }
.agnav { display: flex; align-items: center; gap: 8px; } .agnav span { flex: 1; text-align: center; font: 800 14px var(--f-num); }
.agnav button { padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); font: 700 13px var(--f-body); }
.agh1 { padding: 6px 9px; font-size: 11.5px; }
.cdcard .cdfig { height: 118px; } .cdfig.big { height: 120px; }
/* Logros: subir de nivel explicado con estrellas */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; } .star { display: block; flex: none; }
.lvsteps { display: flex; flex-direction: column; gap: 10px; }
.lvs { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); }
.lvn { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 17px var(--f-num); color: var(--ink); background: linear-gradient(180deg, #ffe7a8, #e2b45a); }
.lvt { font: 800 17px/1.25 var(--f-head); } .lvd { color: var(--mu); font-size: 14px; margin-top: 4px; } .lvd b { color: var(--fg); }
.lvrule { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(245,200,76,.10); font-size: 14px; font-weight: 700; }
.wkstars { display: flex; justify-content: space-between; gap: 4px; margin-top: 10px; }
.wkstars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border-radius: 12px; font: 700 11px var(--f-body); color: var(--mu); }
.wkstars > div.now { background: rgba(255,255,255,.08); color: var(--fg); }
.ladder { display: flex; flex-direction: column; gap: 8px; }
.lad { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.lad.now { border-color: var(--hc); box-shadow: 0 0 0 1px var(--hc) inset, 0 10px 30px -16px var(--hc); background: rgba(255,255,255,.07); }
.lad.past { opacity: .55; }
.ladn { font: 800 16px var(--f-head); display: flex; align-items: center; gap: 8px; } .ladq { margin-top: 4px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ladh { margin-top: 6px; font-size: 13px; font-weight: 700; color: #f4d896; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ladup { text-align: center; flex: none; min-width: 56px; } .ladup b { display: block; font: 800 22px var(--f-num); color: var(--hc); } .ladup span { font-size: 11px; color: var(--mu); font-weight: 700; }
.lad > .grow, .lvs > .grow { flex: 1; min-width: 0; }
.cdcard { padding: 8px 8px 12px; } .cdcard .cdfig { height: 140px; border-radius: 16px; }
/* batería saludable explicada fácil */
.bwhy { margin-top: 2px; padding: 3px 8px; border-radius: 999px; font: 800 10px var(--f-body); color: #ffd1d9; background: rgba(255,77,109,.18); }
.bshero { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 20px; background: rgba(255,77,109,.08); border: 1px solid rgba(255,77,109,.3); }
.bsbat { position: relative; width: 58px; height: 92px; border-radius: 14px; border: 3px solid rgba(255,255,255,.6); padding: 4px; display: flex; align-items: flex-end; flex: none; }
.bsbat i { display: block; width: 100%; border-radius: 8px; background: linear-gradient(180deg, #ff8fa3, #ff4d6d); }
.bsbat span { position: absolute; inset: 0; display: grid; place-items: center; }
.bspct { font: 800 40px/1 var(--f-num); color: #ff6b85; }
.bsrow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.bsrow.ok { background: rgba(63,210,143,.12); border-color: rgba(63,210,143,.45); } .bsrow.half { border-color: rgba(255,181,71,.45); }
.bsck { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.3); font-weight: 900; color: var(--ink); }
.bsrow.ok .bsck { background: var(--ok); border-color: var(--ok); }
.bse { font-size: 26px; flex: none; } .bsrow .grow { display: flex; flex-direction: column; gap: 2px; } .bsrow b { font-size: 15px; }
.bsv { font: 800 18px var(--f-num); color: var(--mu); } .bsrow.ok .bsv { color: var(--ok); }
.bsextra { font-size: 13px; color: var(--mu); padding: 0 4px; } .bsextra b { color: var(--fg); }
.bseq { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); font: 800 17px var(--f-num); }
.bseq span { font-size: 20px; } .bseq b { color: var(--ok); }
.bsgoal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(245,200,76,.10); border: 1px solid rgba(245,200,76,.35); }
.bsrow.half .bsv { color: var(--amber); } .bsrow:not(.ok):not(.half) .bsv { color: var(--dim); }
.bsv { white-space: nowrap; flex: none; }
/* ===== Agenda estilo Apple (fondo blanco, semana en columnas, cabecera azul) ===== */
.agwhite { background: #f4f6fb; color: #0f1b33; min-height: 100vh; min-height: 100svh; gap: 12px; padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
.agwhite > * { z-index: 1; }
.agtop { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0; }
.agback, .agarrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #1f5fd6; background: #fff; border: 1px solid #dde4f0; box-shadow: 0 2px 6px rgba(15,27,51,.06); flex: none; }
.agmon { font: 800 24px/1.1 var(--f-head); color: #0f1b33; } .agsub { font-size: 13px; font-weight: 700; color: #1f5fd6; }
.agboard { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px -12px rgba(15,27,51,.18); border: 1px solid #e3e8f2; }
.aghead { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: linear-gradient(180deg, #2f6fe4, #1f5fd6); color: #fff; padding: 10px 2px 8px; }
.agcol-h { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.agcol-h span { font: 800 10.5px var(--f-body); letter-spacing: .04em; opacity: .85; }
.agcol-h b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 17px var(--f-num); }
.agcol-h.now b { background: #fff; color: #1f5fd6; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.agcol-h em { font: 800 10px var(--f-num); font-style: normal; min-height: 13px; opacity: .9; } .agcol-h em.star { font-size: 12px; opacity: 1; }
.agcols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: 340px; }
.agcol { display: flex; flex-direction: column; gap: 5px; padding: 6px 3px 8px; border-left: 1px solid #eef1f6; }
.agcol:first-child { border-left: 0; } .agcol.now { background: #eef4ff; } .agcol.past { background: #fbfcfe; }
.agt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; border-radius: 12px; text-align: center; font: 800 10px/1.15 var(--f-body); color: #0f1b33; border: 1.5px solid transparent; min-height: 58px; word-break: break-word; hyphens: auto; }
.agt i { font-style: normal; font-size: 21px; line-height: 1; } .agt span { display: block; } .agt small { display: block; font-weight: 700; font-size: 9.5px; opacity: .75; margin-top: 1px; }
.agt u { position: absolute; top: -5px; right: -3px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: 10px; font-weight: 900; background: #18a058; color: #fff; border: 2px solid #fff; }
.agt.w { background: #e7efff; border-color: #b9cff8; color: #174bb0; }
.agt.c { background: #dff6f3; border-color: #a7e3dc; color: #0b7a72; }
.agt.n { background: #e3f6ea; border-color: #b0e2c2; color: #127a42; }
.agt.h { background: #fbe7f4; border-color: #f0bde0; color: #a3287e; }
.agt.r { background: #f3f5f9; border: 1.5px dashed #cdd5e3; color: #64708a; }
.agt.ok { box-shadow: inset 0 0 0 1.5px currentColor; }
.agadd { margin-top: auto; align-self: center; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #1f5fd6; background: #fff; border: 1.5px solid #c7d6f3; }
.aglegend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; font: 700 12.5px var(--f-body); color: #44506a; }
.aglegend span { display: inline-flex; align-items: center; gap: 6px; } .aglegend i { width: 12px; height: 12px; border-radius: 4px; }
.aglegend i.w { background: #2f6fe4; } .aglegend i.c { background: #14b3a8; } .aglegend i.n { background: #22b263; } .aglegend i.h { background: #d23ea0; }
.aghelp { background: #fff; border: 1px solid #e3e8f2; border-radius: 16px; padding: 12px 14px; font-size: 13.5px; color: #44506a; line-height: 1.5; } .aghelp b { color: #0f1b33; }
.agtoday { align-self: center; padding: 10px 16px; border-radius: 999px; background: #1f5fd6; color: #fff; font-weight: 800; font-size: 13px; }
.agback { width: auto; padding: 0 12px 0 10px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.agtop .grow { min-width: 0; } .agmon { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ===== Logros: podio en escalera ===== */
.podium { border-radius: 26px; padding: 16px 12px 14px; background: radial-gradient(120% 80% at 50% 0%, #1b3570 0%, #0c1a3d 55%, #081230 100%); border: 1px solid rgba(226,180,90,.35); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
.pdt { font: 800 15px var(--f-head); text-align: center; letter-spacing: .02em; }
.stairs4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 0; padding-top: 34px; }
.stp { position: relative; display: flex; flex-direction: column; align-items: center; }
.sth { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--hc) 45%, #fff), var(--hc2)); box-shadow: 0 6px 16px -6px rgba(0,0,0,.7); }
.sth img { width: 38px; }
.stb { width: 100%; height: var(--sh); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding-top: 7px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--hc) 85%, #fff), var(--hc2)); color: #0b1430; box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset -2px 0 0 rgba(0,0,0,.12); }
.stp + .stp .stb { border-top-left-radius: 0; }
.stb b { font: 800 12px var(--f-head); } .stb em { font: 800 11px var(--f-num); font-style: normal; opacity: .85; }
.sts { display: block; min-height: 11px; } .sts .stars { flex-wrap: wrap; justify-content: center; max-width: 64px; }
.stp.past { opacity: .55; }
.stp.now .sth { width: 64px; height: 64px; box-shadow: 0 0 0 3px #fff, 0 0 26px 6px var(--hc); animation: hbeat 2.4s ease-in-out infinite; } .stp.now .sth img { width: 46px; }
.stme { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 2; }
.stme img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.stme span { margin-top: -4px; padding: 1px 7px; border-radius: 999px; background: #fff; color: #0b1430; font: 900 10px var(--f-body); }
.stairs4 .stp.now { margin-top: 10px; }
.pdrule { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-radius: 14px; background: rgba(245,200,76,.10); font-size: 13.5px; font-weight: 700; }
.podium .wkstars { margin-top: 0; }
.pdhint { text-align: center; font-size: 13.5px; color: #dfe6f5; } .pdhint b { color: #f5c84c; }
.howup { display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); }
.howup .t3 { text-align: center; }
.hu4 { display: flex; align-items: stretch; gap: 2px; }
.hu { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; position: relative; }
.hu i { font-style: normal; font-size: 26px; } .hu b { font: 800 11.5px/1.15 var(--f-head); } .hu small { font-size: 10px; color: var(--mu); line-height: 1.2; }
.hun { position: absolute; top: -4px; left: 8%; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font: 800 10px var(--f-num); color: var(--ink); background: #e2b45a; }
.hua { align-self: center; color: var(--dim); font-weight: 800; }
/* apuntar días pasados y hábitos propios */
.agcol-h { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.agcol-h em.add { font-size: 12px; opacity: .8; }
.adbat { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(255,77,109,.10); border: 1px solid rgba(255,77,109,.3); }
.adbat b { font: 800 24px var(--f-num); color: #ff6b85; } .adbat span { font-size: 13px; color: var(--mu); font-weight: 700; }
.adrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); text-align: left; color: inherit; width: 100%; }
.adrow.ok { background: rgba(63,210,143,.12); border-color: rgba(63,210,143,.45); } .adrow.ok .bsck { background: var(--ok); border-color: var(--ok); }
.adrow .grow { display: flex; flex-direction: column; gap: 2px; } .adrow b { font-size: 14.5px; }
.hnbtn { background: linear-gradient(180deg, #ff9fe3, #d23ea0); color: #fff; }
.hnprev { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255,122,217,.12); border: 1px solid rgba(255,122,217,.35); }
.hnprev span { font-size: 34px; } .hnprev b { font: 800 17px var(--f-head); }
.hnemo { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hnemo button { aspect-ratio: 1; border-radius: 12px; font-size: 22px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.hnemo button.on { border-color: #ff7ad9; background: rgba(255,122,217,.2); }
/* Progreso: antes y después */
.bfa { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); }
.bfh { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font: 800 12px var(--f-body); color: var(--mu); text-align: center; } .bfh span:last-child { color: var(--ok); }
.bfrow { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bfimg { aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 6px; }
.bfimg img { width: 100%; height: 100%; object-fit: cover; margin: -6px; width: calc(100% + 12px); height: calc(100% + 12px); max-width: none; }
.bfimg.now { border-color: rgba(63,210,143,.5); }
.bfrow em { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgba(5,11,28,.8); font: 800 11px var(--f-body); font-style: normal; }
.hndays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hndays button { padding: 10px 0; border-radius: 12px; font: 800 14px var(--f-num); background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.hndays button.on { background: rgba(255,122,217,.22); border-color: #ff7ad9; }
.agt .agemo { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1px; font-size: 12px; line-height: 1.25; margin-top: 2px; word-break: normal; }
.bpin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .bpin > div { display: flex; flex-direction: column; gap: 4px; }
.bpin .stepper button { width: 38px; }
/* pesaje semanal: bloqueo y cuenta atrás */
.lockc { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(79,141,255,.08); border: 1px solid rgba(79,141,255,.3); text-align: center; }
.lk1 { font: 800 15px var(--f-head); } .lk2 { font-size: 14px; color: var(--mu); } .lk2 b { color: var(--fg); }
.cd { display: flex; justify-content: center; align-items: baseline; gap: 4px; flex-wrap: wrap; padding: 10px; border-radius: 14px; background: rgba(5,11,28,.6); }
.cd b { font: 800 26px var(--f-num); color: #9fc0ff; min-width: 34px; } .cd span { font-size: 11px; color: var(--mu); font-weight: 700; margin-right: 6px; }
/* guía de medición, grasa visceral, mejoras y panel de salud */
.howto { border-radius: 16px; background: rgba(79,141,255,.08); border: 1px solid rgba(79,141,255,.3); padding: 10px 14px; }
.howto summary { cursor: pointer; font-weight: 800; font-size: 14.5px; list-style: none; } .howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: " ›"; color: var(--blue-soft); } .howto[open] summary::after { content: " ⌄"; }
.howto ol { margin: 10px 0 2px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #dbe3f3; } .howto b { color: #fff; }
.vfrange { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 800; font-size: 13px; }
.vfformula { padding: 10px 12px; border-radius: 14px; background: rgba(5,11,28,.55); font: 700 14px var(--f-num); text-align: center; } .vfformula b { color: #9fc0ff; font-size: 17px; }
.vfwhy { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.vfr { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.05); font-weight: 700; } .vfr span:first-child { font-family: var(--f-num); }
.improved { border-color: rgba(63,210,143,.4); background: linear-gradient(160deg, rgba(63,210,143,.12), rgba(255,255,255,.03)); }
.imp { display: flex; align-items: center; gap: 10px; font-size: 14.5px; } .imp span { font-size: 20px; width: 26px; text-align: center; }
.hboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hb { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); min-width: 0; }
.hbe { font-size: 20px; } .hbn { font-size: 12px; color: var(--mu); font-weight: 700; } .hb b { font: 800 21px var(--f-num); } .hb small { font-size: 11px; color: var(--mu); line-height: 1.25; }

/* Clip en bucle de Marcel haciendo el ejercicio (sustituye al muñeco) */
.stage.vstage { aspect-ratio: 16 / 9; position: relative; background: #050b1c; border-color: rgba(255,255,255,.12); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.stage.vstage.vert { aspect-ratio: 4 / 5; background: radial-gradient(70% 60% at 50% 45%, rgba(79,141,255,.18), rgba(5,11,28,0) 70%), #050b1c; }
.stage .exclip { width: 100%; height: 100%; display: block; object-fit: cover; }
.stage.vert .exclip { object-fit: contain; }
.stage.vstage::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); background: linear-gradient(180deg, rgba(5,11,28,.35), rgba(5,11,28,0) 28%); }
.vtag { position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #fff; background: rgba(5,11,28,.55); border: 1px solid rgba(255,255,255,.18); }
.vtag i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 3px rgba(255,77,94,.25); animation: vtag-p 1.6s ease-in-out infinite; }
@keyframes vtag-p { 50% { opacity: .35; } }
.sep { height: 1px; background: var(--line); margin: 4px 0; }

/* Foto de Marcel en miniaturas de Entreno (sustituye al muñeco cuando el ejercicio tiene vídeo) */
.exph { width: 100%; height: 100%; display: block; object-fit: cover; }
.wkth { width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden; background: rgba(79,141,255,.14); }
.wkth canvas { width: 100%; height: 100%; display: block; }

/* Cardio con Marcel en vídeo */
.cdfig.cdv { background: #050b1c; }
.cdclip { width: 100%; height: 100%; display: block; object-fit: cover; }
.cdfig.xl.cdv { height: auto; aspect-ratio: 4 / 5; max-height: 52vh; }

/* ===== Tanda «marca profesional» (16 nov 2026): vídeo cuadrado con marca, iconos de línea, sin muñeco ===== */
.ic { width: 1.08em; height: 1.08em; vertical-align: -0.17em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-star { fill: currentColor; color: #f5c451; }
.ic-check, .ic-circle-check { stroke-width: 2.6; }
.stage.vstage, .stage.vstage.vert { aspect-ratio: 1 / 1; background: #050b1c; }
.stage .exclip, .stage.vert .exclip { object-fit: cover; }
.stage.vstage::after { background: linear-gradient(180deg, rgba(5,11,28,.45), rgba(5,11,28,0) 26%, rgba(5,11,28,0) 72%, rgba(5,11,28,.5)); }
.vmark { position: absolute; right: 12px; bottom: 11px; width: 34px; height: auto; opacity: .85; z-index: 1; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.cdfig.cdv { position: relative; }
.cdfig.cdv .vmark { width: 26px; right: 8px; bottom: 8px; }
.cdfig.xl.cdv { aspect-ratio: 1 / 1; height: auto; max-height: none; }
.cdfig.xl.cdv::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(5,11,28,0) 70%, rgba(5,11,28,.45)); }
.icph { display: grid; place-items: center; color: var(--blue-soft); font-size: 26px; background: linear-gradient(135deg, rgba(79,141,255,.22), rgba(79,141,255,.06)); }
.task .hth, .hth { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex: none; background: rgba(255,122,217,.12); }
.hth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hab .habv { display: block; aspect-ratio: 1 / 1; margin: -2px -2px 6px; border-radius: 14px; overflow: hidden; background: #050b1c; position: relative; }
.hab .habv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hab .e .ic, .task .e .ic { color: #ff9fe3; }

/* Ajustar hábitos diarios (18 nov 2026) */
.hadj { margin-left: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--dim); background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.hadjc { border-color: rgba(255,122,217,.45); scroll-margin-top: 14px; }
.hadjc.flash { animation: hadj-f 1.6s ease-out; }
@keyframes hadj-f { 0% { box-shadow: 0 0 0 0 rgba(255,122,217,.6); } 100% { box-shadow: 0 0 0 14px rgba(255,122,217,0); } }
.hrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 2px; text-align: left; font-weight: 700; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.06); }
.hrow:last-child { border-bottom: 0; }
.hrow .e { font-size: 22px; width: 30px; text-align: center; flex: none; }
.hrow .sw { width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.14); position: relative; flex: none; transition: background .15s; }
.hrow .sw i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .15s; }
.hrow.on .sw { background: #3fd28f; }
.hrow.on .sw i { transform: translateX(18px); }
.hrow .grow { flex: 1; min-width: 0; }

/* Cabecera de área con foto en degradado (estilo Apple) */
.area-top.hero-top { position: relative; padding: 0 var(--gut-r) 6px var(--gut-l); background: var(--bg); gap: 0; min-height: 300px; isolation: isolate; }
.hero-top .ht-img { position: absolute; inset: 0 0 auto 0; height: 340px; background-position: center 28%; background-size: cover; background-repeat: no-repeat; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,.6) 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,.6) 74%, transparent 100%); }
.hero-top .ht-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,11,28,.35) 0%, rgba(5,11,28,0) 18%, rgba(5,11,28,0) 50%, rgba(5,11,28,.6) 84%, var(--bg) 100%); }
.hero-top .ht-bar { padding-top: max(14px, env(safe-area-inset-top)); }
.hero-top .ht-back { width: 38px; height: 38px; border-radius: 50%; border: 0; color: #fff; font-size: 22px; background: rgba(20,24,36,.42); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.hero-top .ht-body { margin-top: 150px; display: flex; flex-direction: column; gap: 10px; }
.hero-top .ht-ey { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero-top .ht-title { margin: -4px 0 4px; font: 800 38px/1.05 var(--f-head, var(--f-body)); letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-top .ht-body .center { align-items: flex-start; text-align: left; }
.hero-top .ht-body .big { font-size: 34px; }
/* Progreso más serio (18 nov 2026): mismos elementos, colores sobrios de marca */
.podium { background: linear-gradient(180deg, #111a2e 0%, #0b1222 100%); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(226,180,90,.35), 0 24px 48px -28px rgba(0,0,0,.9); border-radius: 22px; }
.pdt { font: 700 11.5px var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #c9a45c; }
.sth { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--hc) 55%, #2a3550), color-mix(in srgb, var(--hc2) 40%, #0e1526)); box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 8px 18px -8px rgba(0,0,0,.8); }
.stb { background: linear-gradient(180deg, color-mix(in srgb, var(--hc) 42%, #1d2840) 0%, color-mix(in srgb, var(--hc2) 30%, #111a2c) 100%); color: #f2f4f8; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.05); border-radius: 8px 8px 0 0; }
.stb b { font: 700 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; } .stb em { color: rgba(255,255,255,.7); font-weight: 700; }
.stp.past { opacity: .45; }
.stp.now .sth { box-shadow: 0 0 0 2px rgba(226,180,90,.9), 0 0 22px 2px rgba(226,180,90,.25); animation: none; }
.stp.now .stb { box-shadow: inset 0 2px 0 #e2b45a, inset 0 0 0 1px rgba(226,180,90,.35); }
.stme span { background: #e2b45a; color: #111a2e; font-weight: 800; letter-spacing: .04em; }
.stme img { border-color: #e2b45a; }
.pdrule { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); color: #d7dceb; font-weight: 600; }
.pdhint { color: #aab3c7; } .pdhint b { color: #e2b45a; }
.howup { background: linear-gradient(180deg, #111a2e, #0d1526); border-color: rgba(255,255,255,.07); border-radius: 20px; }
.hun { background: #c9a45c; color: #111a2e; }

/* Energía: batería en barra bajo el título (sin personaje) */
.enhb { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 18px; background: rgba(10,16,32,.55); border: 1px solid rgba(255,255,255,.10); }
.enhb-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.enhb-lab { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.8); }
.enhb-pct { font: 800 34px/1 var(--f-num); color: var(--bc); } .enhb-pct small { font-size: 16px; margin-left: 1px; }
.enhb-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.enhb-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 70%, #000), var(--bc)); }
.enhb-msg { font-size: 12px; color: var(--mu); font-weight: 600; }

/* Subida de caballo: celebración grande (19 nov 2026) */
.hparty { background: radial-gradient(60% 45% at 50% 22%, color-mix(in srgb, var(--hc) 34%, #050b1c), #03070f 75%); overflow-y: auto; }
.hparty .hp-rays { opacity: .55; }
.hp-rays { background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--hc) 30%, transparent) 0 8deg, transparent 8deg 22deg); }
.hp-box { max-width: 360px; gap: 10px; }
.hp-medal { position: relative; width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; margin: 6px auto; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff, var(--hc) 42%, var(--hc2) 85%); box-shadow: 0 0 0 6px color-mix(in srgb, var(--hc) 35%, transparent), 0 0 80px 18px color-mix(in srgb, var(--hc) 60%, transparent), inset 0 -12px 26px rgba(0,0,0,.35), inset 0 10px 20px rgba(255,255,255,.55);
  animation: hp-pop 1s cubic-bezier(.2,1.7,.4,1) .15s both, hp-glow 2.4s ease-in-out 1.2s infinite; }
.hp-medal .hp-ring { position: absolute; inset: 12px; border-radius: 50%; border: 3px solid rgba(255,255,255,.7); }
.hp-medal img { position: relative; width: 108px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); animation: bp-wob 1.2s ease-in-out 1s both; }
@keyframes hp-pop { 0% { transform: scale(.1) rotate(-200deg); opacity: 0; } 70% { transform: scale(1.15) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes hp-glow { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--hc) 25%, transparent), 0 0 120px 30px color-mix(in srgb, var(--hc) 70%, transparent), inset 0 -12px 26px rgba(0,0,0,.35), inset 0 10px 20px rgba(255,255,255,.55); } }
.hp-n { font: 900 32px/1 var(--f-head); color: var(--hc); text-shadow: 0 0 24px color-mix(in srgb, var(--hc) 60%, transparent); }
.hp-t { font: 800 18px var(--f-head); color: #fff; }
.hp-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; margin-top: 4px; }
.hp-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; background: rgba(255,255,255,.06); }
.hp-day.on { background: color-mix(in srgb, var(--hc) 28%, transparent); } .hp-day.half { background: rgba(255,255,255,.12); }
.hp-day b { font-size: 16px; line-height: 1.1; } .hp-day small { font-size: 10px; color: var(--mu); font-weight: 700; }
.hp-facts { width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 6px; }
.hp-ft { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hc); }
.hp-f { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; } .hp-f span { font-size: 18px; width: 24px; text-align: center; }
.hp-gain { font: 800 16px var(--f-head); padding: 8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--hc) 22%, transparent); color: #fff; }
.hp-btn { width: 100%; background: linear-gradient(180deg, var(--hc), var(--hc2)); color: #0b1430; }

/* Progreso simple: días cumplidos → caballo (19 nov 2026) */
.wk1 { gap: 14px; }
.wk1-top { display: flex; align-items: center; gap: 14px; }
.wk1-top small { display: block; font-size: 12px; color: var(--mu); font-weight: 700; }
.wk1-top b { display: block; font: 900 30px/1.05 var(--f-head); }
.wk1-top .grow span { font-size: 14px; font-weight: 700; color: #dfe6f5; }
.wk1-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk1-days div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wk1-days i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 18px; color: #0b1430; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.12); }
.wk1-days .ok i { background: #3fd28f; border-color: #3fd28f; }
.wk1-days .now i { border-color: var(--hc); }
.wk1-days .fut i { opacity: .45; border-style: dashed; }
.wk1-days span { font-size: 11px; font-weight: 700; color: var(--mu); }
.wk1-rule { font-size: 13px; text-align: center; color: #d7dceb; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.wk1-scale { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wk1-scale > div { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); opacity: .8; }
.wk1-scale > div.on { opacity: 1; border: 2px solid var(--hc); background: color-mix(in srgb, var(--hc) 16%, transparent); }
.wk1-scale .wk1-st { display: flex; flex-direction: column; min-width: 0; }
.wk1-scale b { font-size: 16px; line-height: 1.15; } .wk1-scale small { font-size: 15px; color: var(--hc); font-weight: 800; margin-top: 2px; }
.wk1-lv { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.wk1-lv > b { font: 900 30px var(--f-num); color: #e2b45a; min-width: 44px; text-align: center; }
.wk1-lv span { font-size: 13px; color: #c9d1e2; line-height: 1.35; }

/* ===== Versión C (19 nov 2026): negro y oro con la letra de Apple, en toda la app; portada nueva ===== */
:root { --bg: #0a0a0b; --bg-deep: #000; --sheet: #1c1c1e; --line: rgba(255,255,255,.10); --glass: rgba(255,255,255,.06); --fg: #f5f5f7; --mu: #98989d; --dim: #6e6e73; --gold: #e2c07a;
  --f-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --f-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --f-num: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif; }
body { background: #000; }
.nav { background: rgba(18,18,20,.94); border-top: .5px solid rgba(255,255,255,.12); }
.nav button.on { color: var(--gold); }
.hcs { gap: 0; }
.hc-top { padding: 6px 0 0; }
.hc-ey { font: 600 11px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #c9a45c; }
.hc-title { font: 700 34px/1.1 var(--f-head); letter-spacing: -.02em; color: #fff; margin-top: 2px; }
.hc { position: relative; height: 380px; margin: 4px calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut-l)); background: radial-gradient(70% 60% at 50% 42%, #2a2418, #0a0a0b 72%); overflow: hidden; }
.hc-fig { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 310px; height: 370px; padding: 0; border: 0; background: none; }
.hc-fig .fig { height: 100%; width: auto; margin: 0 auto; }
.hc-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; background: linear-gradient(180deg, rgba(10,10,11,0), #0a0a0b); pointer-events: none; }
.hc-stats { position: relative; z-index: 2; margin-top: -78px; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(14,26,58,.72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: .5px solid rgba(255,255,255,.1); border-radius: 20px; padding: 14px 4px; }
.hc-stats button { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; border-right: .5px solid rgba(255,255,255,.1); color: #fff; padding: 0 4px; }
.hc-stats button:last-child { border: 0; }
.hc-stats b { font: 700 26px/1.1 var(--f-num); display: flex; align-items: center; gap: 6px; } .hc-stats b small { font-size: 15px; margin-left: 1px; }
.hc-stats > button > small { font-size: 11px; color: #98989d; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hc-gold { color: var(--gold); }
.hc-hz { font-size: 22px !important; }
.hc-tk { position: relative; margin: 10px 2px 0; height: 22px; background: none; border: 0; padding: 0; }
.hc-h { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 2px; }
.hc-h > span { font: 700 22px var(--f-head); color: #fff; letter-spacing: -.01em; }
.hc-link { background: none; border: 0; color: var(--gold); font: 600 15px var(--f-body); padding: 6px 0; }
.hc-sub { font-size: 13px; color: #98989d; margin-bottom: 10px; }
.hc-list { background: var(--tile); border-radius: 18px; overflow: hidden; }
.hc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; background: none; border: 0; border-bottom: .5px solid #2c2c2e; color: #f5f5f7; font: 500 16px var(--f-body); text-align: left; }
.hc-row .e { font-size: 20px; width: 26px; text-align: center; flex: none; }
.hc-row .g { flex: 1; min-width: 0; } .hc-row .g small { display: block; color: #98989d; font-size: 13px; font-weight: 400; margin-top: 1px; }
.hc-row .ck { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid #48484a; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #0a0a0b; }
.hc-row.done .ck { background: var(--gold); border-color: var(--gold); }
.hc-row.done .g { color: #c7c7cc; }
.hc-add .e { color: var(--gold); font-size: 22px; font-weight: 300; }
.hc-cell { padding: 12px 16px; border-bottom: .5px solid #2c2c2e; }
.hc-ct { display: flex; align-items: center; gap: 8px; font: 600 15px var(--f-body); margin-bottom: 10px; }
.hc-ct span { flex: 1; } .hc-ct small { color: #98989d; font-weight: 500; }
.hc-cell .dock .dk.ok { border-color: var(--gold); }
.hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.hc-ar { position: relative; height: 124px; border-radius: 16px; overflow: hidden; border: 0; padding: 0; background-size: cover; background-position: center 30%; text-align: left; color: #fff; }
.hc-ar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.82)); }
.hc-ar b { position: absolute; left: 12px; bottom: 24px; z-index: 1; font: 600 16px var(--f-head); }
.hc-ar small { position: absolute; left: 12px; right: 10px; bottom: 9px; z-index: 1; font-size: 12px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Progreso: el caballo como insignia de la semana */
.wk1-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 4px 0 2px; }
.wk1-medal { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: radial-gradient(circle at 35% 30%, #fff, var(--hc) 42%, var(--hc2) 88%); box-shadow: 0 0 0 5px color-mix(in srgb, var(--hc) 25%, transparent), 0 0 40px 4px color-mix(in srgb, var(--hc) 35%, transparent), inset 0 -8px 18px rgba(0,0,0,.35), inset 0 6px 14px rgba(255,255,255,.5); }
.wk1-medal span { position: absolute; inset: 8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); }
.wk1-medal img { width: 70px; position: relative; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.wk1-badge small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mu); }
.wk1-badge b { font: 800 30px/1.1 var(--f-head); color: var(--hc); }
.wk1-badge > span { font-size: 13px; color: #c7c7cc; font-weight: 600; }
/* 19 nov 2026 · Marcel: nivel con número más grande y la tira de mejoras más separada del panel */
.hc-stats { align-items: end; }
.hc-stats b.hc-gold { color: #fff; font-size: 38px; line-height: 1; letter-spacing: -.02em; }
.hc-tk { margin-top: 20px; }
/* ===== Plan de hoy en tarjetas (versión A elegida por Marcel, 19 nov 2026) ===== */
.hp-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-c { display: flex; flex-direction: column; gap: 2px; min-height: 96px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--tile); border: .5px solid rgba(255,255,255,.06); color: #f5f5f7; text-align: left; font: 500 15px var(--f-body); min-width: 0; }
.hp-c:active { transform: scale(.98); }
.hp-t { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.hp-e { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 19px; }
.hp-c .ck { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid #48484a; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #0a0a0b; }
.hp-c.ok .ck { background: var(--gold); border-color: var(--gold); }
.hp-c b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-c small { font-size: 12.5px; color: #98989d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-c.ok b { color: #c7c7cc; }
.hp-n { font: 700 14px var(--f-num); color: var(--gold); }
.hp-bar { display: block; height: 4px; border-radius: 4px; background: #3a3a3c; overflow: hidden; margin-top: 8px; } .hp-bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.hp-x { display: flex; gap: 10px; margin-top: 10px; }
.hp-x button { flex: 1; padding: 12px 8px; border-radius: 14px; background: var(--tile); border: .5px solid rgba(255,255,255,.06); color: var(--gold); font: 600 14.5px var(--f-body); }
.hp-g > .hp-c:last-child:nth-child(odd) { grid-column: span 2; }
.hp-x button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.hc-tk { margin-top: 24px; }

/* ===== Fondo azul medianoche con degradado al negro y brillo plata (marca del logo; Marcel 19 nov 2026: «en negro es muy soso») ===== */
:root { --bg: #0d1a3a; --bg-deep: #020308; --sheet: #111d3d; --tile: rgba(24,40,82,.55); --line: rgba(190,205,235,.12); }
body { background: #020308; }
#app { background:
  radial-gradient(420px 320px at 88% -4%, rgba(214,222,236,.30), rgba(214,222,236,0) 70%),
  radial-gradient(520px 420px at 0% 18%, rgba(40,72,150,.35), rgba(40,72,150,0) 70%),
  linear-gradient(180deg, #0d1a3a 0px, #0b1734 600px, #07102a 1400px, #040818 2200px, #020308 3200px); }
.nav { background: rgba(6,12,30,.94); border-top: .5px solid rgba(190,205,235,.14); }
.hc { background: radial-gradient(62% 58% at 50% 44%, rgba(200,212,232,.34), rgba(120,145,200,.10) 45%, rgba(13,26,58,0) 72%); -webkit-mask-image: linear-gradient(#000 68%, transparent); mask-image: linear-gradient(#000 68%, transparent); }
.hc-fade { display: none; }
.hc-stats { border-color: rgba(200,212,235,.16); box-shadow: 0 12px 30px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(220,228,242,.10); }
.hp-c, .hp-x button, .hc-list { border-color: rgba(190,205,235,.10); }
/* Más oscuro (Marcel 19 nov 2026: «un poquito más oscuro, azul medianoche con degradados hacia el negro») */
:root { --bg: #081127; --sheet: #0d1733; --tile: rgba(20,33,68,.5); }
#app { background:
  radial-gradient(420px 300px at 88% -4%, rgba(214,222,236,.16), rgba(214,222,236,0) 70%),
  radial-gradient(520px 420px at 0% 16%, rgba(34,60,128,.22), rgba(34,60,128,0) 70%),
  linear-gradient(180deg, #081127 0px, #060e22 450px, #040a19 1000px, #02050e 1700px, #010205 2600px); }
.hc { background: radial-gradient(62% 58% at 50% 44%, rgba(200,212,232,.24), rgba(110,135,190,.08) 45%, rgba(8,17,39,0) 72%); }
.nav { background: rgba(3,7,18,.95); }

/* ===== 19 nov 2026 (Marcel): aún más oscuro; nivel grande a la izquierda bajo «Hola»; personaje un poco a la derecha; abajo solo batería y semana; Progreso empieza por el nivel ===== */
:root { --bg: #050b1c; --sheet: #0a1229; --tile: rgba(16,27,58,.5); }
#app { background:
  radial-gradient(420px 300px at 88% -4%, rgba(214,222,236,.12), rgba(214,222,236,0) 70%),
  radial-gradient(520px 420px at 0% 16%, rgba(30,52,112,.18), rgba(30,52,112,0) 70%),
  linear-gradient(180deg, #050b1c 0px, #040918 450px, #030713 1000px, #01030a 1700px, #000102 2600px); }
.hc { background: radial-gradient(58% 58% at 60% 44%, rgba(200,212,232,.20), rgba(110,135,190,.07) 45%, rgba(5,11,28,0) 72%); }
.nav { background: rgba(2,5,14,.96); }
.hc-fig { transform: translateX(calc(-50% + 46px)); }
.hc-lv { position: absolute; z-index: 2; left: var(--gut-l); top: 8px; display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: none; color: #fff; text-align: left; }
.hc-lv small { font: 600 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #aeb8cc; }
.hc-lv b { font: 700 84px/0.95 var(--f-num); letter-spacing: -.04em; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.5); margin: 2px 0 4px -3px; }
.hc-lv span { font-size: 13px; color: #aeb8cc; font-weight: 500; }
.hc-stats { grid-template-columns: repeat(2, 1fr); }
.hc-stats b { font-size: 30px; }
.lv1 { border-radius: 24px; padding: 20px 20px 18px; background: linear-gradient(160deg, rgba(40,60,110,.45), rgba(10,18,42,.6) 60%); border: .5px solid rgba(200,212,235,.16); display: flex; flex-direction: column; gap: 4px; }
.lv1 small { font: 600 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #aeb8cc; }
.lv1 > b { font: 700 64px/1 var(--f-num); letter-spacing: -.03em; color: #fff; }
.lv1 p { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: #c9d1e2; } .lv1 p b { color: #fff; }
/* Caballo de la insignia grabado en un tono oscuro del metal para que se vea bien en Bronce, Plata, Oro y Diamante (19 nov 2026) */
.wk1-horse { position: relative; width: 74px; height: 96px; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  background: linear-gradient(165deg, color-mix(in srgb, var(--hc2) 70%, #000) 0%, color-mix(in srgb, var(--hc2) 42%, #000) 100%);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.65)) drop-shadow(0 -1px 0 rgba(0,0,0,.25)); }
/* ===== Plan de hoy: una tarjeta premium con anillos (Marcel 19 nov 2026: «me gustaba la tarjeta que envolvía todo el plan»; sin «N de 13 hechas») ===== */
.pr-card { border-radius: 22px; padding: 18px 12px 12px; background: linear-gradient(165deg, rgba(34,52,100,.42), rgba(12,20,46,.62) 55%, rgba(6,10,24,.7)); border: .5px solid rgba(200,212,235,.16); box-shadow: 0 18px 40px -18px rgba(0,0,0,.7), inset 0 1px 0 rgba(220,228,242,.08); }
.pr-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 4px; }
.pr-i { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: #f5f5f7; min-width: 0; font: inherit; }
.pr-i:active { transform: scale(.96); }
.pr-r { position: relative; width: 60px; height: 60px; margin-bottom: 6px; }
.pr-r svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pr-tr { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 4; }
.pr-on { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.pr-r em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 24px; }
.pr-ck { position: absolute; right: -3px; bottom: -3px; width: 21px; height: 21px; border-radius: 50%; background: var(--gold); color: #0a0a0b; display: grid; place-items: center; font-size: 11px; font-weight: 900; border: 2px solid #0b1430; }
.pr-i b { font-size: 14px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-i small { font-size: 12px; color: #98a2b6; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-x { display: flex; gap: 8px; margin-top: 16px; }
.pr-x button { flex: 1; padding: 12px 6px; border-radius: 14px; background: rgba(255,255,255,.07); border: 0; color: var(--gold); font: 600 14.5px var(--f-body); }
.pr-g { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 0; }
.pr-g > .pr-i { width: 33.333%; padding: 0 2px; }
.pr-x button { display: flex; align-items: center; justify-content: center; gap: 6px; }
/* Vuelve el panel del personaje con la batería (19 nov 2026), con el nivel más grande y «Semana X» en la pastilla */
.hcs .hero4 { margin-top: 12px; }
.hero4 .h4-lv b { font-size: 66px; }
.hero4 .h4-hz b { font-size: 17px; white-space: nowrap; }
/* 19 nov 2026 · Marcel: fondo aún más oscuro (más negro / azul más oscuro) y panel del personaje más pequeño para que el Plan de hoy suba */
:root { --bg: #030714; --sheet: #070d1f; --tile: rgba(12,20,44,.55); }
#app { background:
  radial-gradient(420px 300px at 88% -4%, rgba(214,222,236,.08), rgba(214,222,236,0) 70%),
  radial-gradient(520px 420px at 0% 16%, rgba(26,44,96,.14), rgba(26,44,96,0) 70%),
  linear-gradient(180deg, #030714 0px, #02050f 450px, #01030a 1000px, #000102 1600px, #000 2400px); }
.nav { background: rgba(1,3,10,.96); }
.hero4 { height: clamp(360px, 47vh, 430px); height: clamp(360px, 47svh, 430px); }
.hero4 .batt3 { top: calc(50% + 14px); padding: 11px 8px 11px; gap: 6px; }
.hero4, .avbox {
  background:
    radial-gradient(52% 38% at var(--hx, 50%) 30%, rgba(150,182,255,.22) 0%, rgba(150,182,255,.07) 45%, rgba(150,182,255,0) 72%),
    radial-gradient(120% 70% at var(--hx, 50%) 0%, #11244f 0%, #091533 48%, #040a1c 100%); }
.pr-card { background: linear-gradient(165deg, rgba(26,40,80,.42), rgba(8,14,34,.62) 55%, rgba(3,6,16,.7)); }
/* Tira de logros: es un botón que lleva a Progreso › Tus logros (20 nov 2026) */
button.h4-tk { padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.h4-tk span { padding-right: 30px !important; }
.h4-go { position: absolute; right: 13px; top: 50%; transform: translateY(-52%); font: 600 20px/1 var(--f-body); color: rgba(226,232,245,.6); }
/* Sección «Tus logros» en Progreso */
.wins { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 14px; }
.wins-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wt { display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 13px; border-radius: 18px; background: linear-gradient(165deg, rgba(30,46,90,.45), rgba(8,14,34,.6)); border: .5px solid rgba(200,212,235,.14); min-width: 0; }
.wt .we { font-size: 20px; line-height: 1; margin-bottom: 4px; }
.wt b { font: 700 24px/1.1 var(--f-num); letter-spacing: -.02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt small { font-size: 12.5px; color: #a3adc2; line-height: 1.3; }
.wt.top { grid-column: span 2; flex-direction: row; align-items: center; gap: 14px; }
.wt.top .we { font-size: 30px; margin: 0; }
.wt.top b { font-size: 30px; }
.wt > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* ===== Insignias de semana (21 nov 2026): medalla del metal con el caballo y su número ===== */
.wkb-m { position: relative; display: inline-grid; place-items: center; }
.wkb-m em { position: absolute; right: -6px; bottom: -4px; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; font: 800 12px/1 var(--f-num); font-style: normal; color: #0a0a0b; background: linear-gradient(180deg, #fff6d6, #e2c07a); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.badge.wkb { gap: 8px; padding-top: 14px; }
.badge.wkb.on.wkb-diamante { border-color: rgba(159,232,255,.7); background: linear-gradient(180deg, rgba(159,232,255,.16), rgba(58,166,216,.06)); box-shadow: 0 0 18px rgba(159,232,255,.18); }
.badge.wkb.on.wkb-oro { border-color: rgba(233,196,106,.7); background: linear-gradient(180deg, rgba(233,196,106,.16), rgba(166,124,31,.05)); }
.badge.wkb.on.wkb-plata { border-color: rgba(223,229,238,.55); background: linear-gradient(180deg, rgba(223,229,238,.12), rgba(135,146,166,.04)); }
.bp-wk { margin: 8px 0; animation: bp-pop .8s cubic-bezier(.2,1.6,.4,1) .1s both; filter: drop-shadow(0 0 40px rgba(255,255,255,.25)); }
.bp-wk .wkb-m em { min-width: 44px; height: 38px; border-radius: 19px; font-size: 20px; right: -4px; bottom: 2px; }
.bp-wk.sm { animation: none; margin: 4px 0; } .bp-wk.sm .wkb-m em { min-width: 34px; height: 30px; font-size: 16px; } .bp-wk.off { filter: grayscale(1) brightness(.6); }
/* ===== Recordatorio del viernes (check-in) ===== */
.cparty { background: radial-gradient(120% 80% at 50% 30%, #12234a 0%, #050b1c 60%, #000 100%); }
.cp-rays { opacity: .35; filter: hue-rotate(185deg) saturate(.4) brightness(1.2); }
.cp-medal { position: relative; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; margin: 6px 0; overflow: hidden; background: radial-gradient(circle at 35% 30%, #ffffff, #dfe5ee 38%, #8792a6 80%, #4d5668); box-shadow: 0 0 0 6px rgba(223,229,238,.18), 0 0 60px 10px rgba(159,192,255,.35), inset 0 -10px 24px rgba(0,0,0,.35), inset 0 8px 18px rgba(255,255,255,.6); animation: bp-pop .8s cubic-bezier(.2,1.6,.4,1) .1s both; }
.cp-ring { position: absolute; inset: 11px; border-radius: 50%; border: 3px solid rgba(255,255,255,.75); }
.cp-e { position: relative; font-size: 50px; margin-top: -22px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); animation: bp-wob 1.2s ease-in-out .9s both; }
.cp-medal b { position: absolute; bottom: 19px; font: 800 11px/1 var(--f-num); letter-spacing: .16em; color: #1b2438; }
.cp-list { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; animation: bp-up .5s .6s both; }
.cp-i { display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: .5px solid rgba(255,255,255,.12); }
.cp-i > span { font-size: 24px; } .cp-i div { flex: 1; display: flex; flex-direction: column; } .cp-i b { font-size: 15px; } .cp-i small { font-size: 12.5px; color: #a9b4c8; }
.cp-i i { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; color: #0a0a0b; }
.cp-i.ok i { background: var(--ok, #3fd28f); border-color: transparent; }
.cp-where { font-size: 13.5px; color: #c9d3e6; animation: bp-up .5s .7s both; }
.cparty .cp-go { width: 100%; background: linear-gradient(180deg, #ffffff, #dfe5ee); color: #0a1228; }
.cparty .cp-later { color: #a9b4c8; font-size: 14px; animation: bp-up .5s .8s both; }
@media (prefers-reduced-motion: reduce) { .cp-medal, .cp-e, .bp-wk { animation: none !important; } }
/* ===== Calculadora del sueño (21 nov 2026) ===== */
.sc-card { border-color: rgba(139,124,255,.45); background: linear-gradient(180deg, rgba(139,124,255,.14), rgba(139,124,255,.03)); gap: 14px; }
.sc-hd { display: flex; align-items: center; gap: 12px; } .sc-hd > span { font-size: 30px; }
.sc-seg button { font-size: 12.5px; min-height: 44px; line-height: 1.15; }
.sc-time { display: flex; align-items: center; justify-content: center; gap: 18px; }
.sc-time b { font-size: 58px; font-weight: 800; letter-spacing: -.02em; min-width: 170px; text-align: center; font-variant-numeric: tabular-nums; }
.sc-time button { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 26px; font-weight: 600; color: #fff; display: grid; place-items: center; }
.sc-q { font-weight: 800; font-size: 15px; text-align: center; }
.sc-list { display: flex; flex-direction: column; gap: 8px; }
.sc-o { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.sc-o b { font-size: 26px; font-weight: 800; min-width: 84px; font-variant-numeric: tabular-nums; color: #d9d4ff; }
.sc-o span { display: flex; flex-direction: column; } .sc-o em { font-style: normal; font-weight: 800; font-size: 14px; } .sc-o small { font-size: 12.5px; color: var(--mu); }
.sc-circ { margin-top: 4px; padding: 14px 16px; border-radius: 16px; background: rgba(226,192,122,.06); border: 1px solid rgba(226,192,122,.22); }
.sc-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sc-tips li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; } .sc-tips li > span:first-child { font-size: 18px; line-height: 1.2; flex: none; }
.sc-o.best { background: linear-gradient(180deg, rgba(226,192,122,.2), rgba(226,192,122,.07)); border-color: rgba(226,192,122,.65); }
.sc-o.best b { font-size: 34px; color: #fff; } .sc-o.best em { color: var(--gold); }
.sc-note { text-align: center; font-size: 12.5px; color: var(--mu); margin-top: -4px; }
.sc-why { padding: 8px 12px; } .sc-why summary { font-size: 13.5px; }
.sc-ask { text-align: center; font-size: 14px; color: #d9d4ff; font-weight: 700; margin-bottom: -8px; }

/* ---------- Documentos y videollamadas que pone el coach en el calendario (Business › Planificación) ---------- */
.cx-l { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.cx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(226,192,122,.28); color: inherit; text-decoration: none; }
.cx i { font-style: normal; font-size: 22px; } .cx span { flex: 1; min-width: 0; } .cx b { display: block; font-size: 15px; } .cx small { display: block; font-size: 12px; opacity: .7; } .cx u { text-decoration: none; color: var(--gold, #e2c07a); font-size: 22px; }
.agt.x { background: #eef0ff; color: #3b3f8f; text-decoration: none; }

/* Agenda: nombres cortos que no se parten a mitad de palabra (23 nov 2026; antes salían «Cuádri-ceps», «Comi-da», «Escale-ras») */
.agt { hyphens: manual; -webkit-hyphens: manual; word-break: normal; overflow-wrap: normal; }
.agt { padding-left: 1px; padding-right: 1px; }
.agt span b { display: block; font-weight: inherit; font-size: clamp(7.6px, 2.4vw, 9px); letter-spacing: -.2px; white-space: nowrap; max-width: 100%; overflow: hidden; }
.agt > span { width: 100%; } .agt .agn { display: block; max-width: 100%; } .agt .agn small { font-size: 9px; opacity: .7; margin-top: 0; }
button.agt.x { width: 100%; cursor: pointer; font: 800 10px/1.15 var(--f-body); }

/* Android: al tocar un texto, Chrome abría «Tocar para buscar» (Google). En la app del cliente el texto no se selecciona
   (Marcel, 23 nov 2026); en los campos de escribir, sí. Solo index.html (body.cli); Business deja copiar. */
body.cli, body.cli #app { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body.cli input, body.cli textarea, body.cli [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* Hojas (paneles que suben desde abajo, p. ej. un cardio): se desplazan por dentro y el fondo no se mueve (Marcel, 23 nov 2026:
   «entro en correr suave, deslizo y se mueve el apartado de cardio de fondo»). Antes el contenido se encogía en vez de desplazarse. */
.sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; max-height: 92dvh; }
.sheet > * { flex-shrink: 0; }
html:has(.sheet-bg), body:has(.sheet-bg) { overflow: hidden; }
.sheet-bg { overscroll-behavior: contain; }

/* Tarjetas premium de la portada: Equivalencias y 🎁 Recursos (23 nov 2026), mismo lenguaje que .plan.lux (azul noche y oro) */
.vip-l { display: grid; gap: 10px; margin-top: 14px; }
.vip { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 92px; padding: 16px 14px; border-radius: 22px; border: 1px solid rgba(226,180,90,.5);
  background: radial-gradient(120% 95% at 0% 0%, rgba(226,180,90,.17), transparent 55%), linear-gradient(155deg, #17203d 0%, #0b1226 55%, #060a16 100%);
  box-shadow: inset 0 1px 0 rgba(255,236,190,.26), inset 0 0 0 1px rgba(226,180,90,.08), 0 16px 34px -16px rgba(0,0,0,.75), 0 0 24px -12px rgba(226,180,90,.45); color: #fff; text-align: left; font: inherit; }
.vip::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #f4d896 30%, #fff3d2 50%, #f4d896 70%, transparent); opacity: .85; }
.vip::after { content: ""; position: absolute; right: -14px; bottom: -26px; width: 96px; height: 120px; background: url(../img/horse.png) no-repeat center / contain; opacity: .07; filter: sepia(1) saturate(3) brightness(1.05); z-index: -1; pointer-events: none; }
.vip:active { transform: scale(.985); }
.vip-ic { flex: none; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; font-size: 29px; background: radial-gradient(circle at 30% 25%, rgba(255,243,210,.22), rgba(226,180,90,.07) 62%), #0e1630; box-shadow: inset 0 0 0 1px rgba(226,180,90,.5), 0 0 18px -6px rgba(226,180,90,.65); }
.vip-tx { flex: 1; min-width: 0; }
.vip-tx em { display: block; font: 800 10px/1 var(--f-body); font-style: normal; letter-spacing: .24em; text-transform: uppercase; background: linear-gradient(90deg, #f4d896, #c99a3c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vip-tx b { display: block; font: 700 19px/1.15 var(--f-head); letter-spacing: -.02em; margin: 6px 0 3px; color: #fff; }
.vip-tx small { display: block; font-size: 13px; line-height: 1.35; font-weight: 600; color: #b9c2d6; }
.vip-ch { flex: none; color: #e2b45a; font-size: 28px; font-weight: 300; line-height: 1; }
.vip-top { margin-top: 4px; }
/* Recursos: lista de guías */
.rs-l { display: grid; gap: 10px; }
.rs { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 20px; color: #fff; text-decoration: none; background: linear-gradient(165deg, rgba(34,52,100,.42), rgba(12,20,46,.62) 55%, rgba(6,10,24,.7)); border: .5px solid rgba(200,212,235,.16); box-shadow: 0 14px 30px -18px rgba(0,0,0,.7), inset 0 1px 0 rgba(220,228,242,.08); }
.rs:active { transform: scale(.985); }
.rs-im { flex: none; width: 74px; height: 74px; border-radius: 16px; background-size: cover; background-position: center; background-color: #0e1630; box-shadow: inset 0 0 0 1px rgba(226,180,90,.35); }
.rs-tx { flex: 1; min-width: 0; }
.rs-tx em { display: block; font: 800 10px/1 var(--f-body); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: #e2b45a; }
.rs-tx b { display: block; font: 700 16.5px/1.2 var(--f-head); letter-spacing: -.01em; margin: 5px 0 3px; }
.rs-tx small { display: block; font-size: 13px; line-height: 1.35; color: #a4b1ca; font-weight: 500; }

/* ===== Recetario: todas las fotos de platos (24 nov 2026) ===== */
.rc-ch { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; } .rc-ch::-webkit-scrollbar { display: none; }
.rc-ch button { flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #dbe3f3; font: 700 13.5px var(--f-body); }
.rc-ch button span { opacity: .55; font-weight: 600; margin-left: 2px; }
.rc-ch button.on { background: linear-gradient(180deg, #f4d896, #c99a3c); color: #1a1405; border-color: transparent; } .rc-ch button.on span { opacity: .7; }
.rc-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rc-t { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; color: #fff; text-align: left; }
.rc-t[hidden] { display: none; }
.rc-im { display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #0d0f14; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.rc-im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-t b { font: 700 13.5px/1.3 var(--f-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0 2px; }
.rc-t:active .rc-im { transform: scale(.97); }
.rc-big { border-radius: 22px; overflow: hidden; aspect-ratio: 1; background: #0d0f14; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.rc-big img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Android y móviles estrechos (25 nov 2026) =====
   Marcel: en Android (Bego) la insignia se cortaba y tapaba la batería. Ahora el panel se adapta al ancho
   (container queries) y la batería se centra en el hueco libre entre la fila de arriba y la tira de logros. */
html { -webkit-text-size-adjust: none; text-size-adjust: none; }
.hero4 { container-type: inline-size; }
.h4-top { gap: 8px; }
.h4-lv { gap: clamp(5px, 2cqw, 9px); flex: none; }
.hero4 .h4-lv b { font-size: clamp(44px, 19cqw, 66px); }
.h4-hz { min-width: 0; flex: 0 1 auto; gap: clamp(6px, 2.4cqw, 10px); padding: 6px clamp(10px, 3.6cqw, 14px) 6px 6px; }
.h4-hz > span:last-child { min-width: 0; }
.h4-hz .medal { --s: clamp(30px, 11.5cqw, 40px) !important; }
.hero4 .h4-hz b { font-size: clamp(12.5px, 4.9cqw, 17px); overflow: hidden; text-overflow: ellipsis; }
.h4-hz small { font-size: clamp(7.5px, 2.5cqw, 8.5px); letter-spacing: .12em; white-space: nowrap; }
.hero4 .batt3 { top: calc(var(--top) + 4px); bottom: 54px; transform: none; height: fit-content; max-height: calc(100% - var(--top) - 58px); margin: auto 0; overflow: hidden; width: clamp(92px, 31cqw, 106px); }
.hero4 .batt3 .bcell { height: auto; flex: 0 1 104px; min-height: 52px; }
.hero4 .batt3 > * { flex-shrink: 0; } .hero4 .batt3 > .bcell { flex-shrink: 1; }
.hero4 .bmsg { max-width: 100%; }
.hero4 .blab { font-size: clamp(9.5px, 3.1cqw, 10.5px); }
@container (max-width: 380px) {
  .h4-lv { flex-direction: column; align-items: flex-start; gap: 2px; }
  .h4-lv small { align-self: flex-start; margin-left: 3px; }
  .hero4 .h4-lv b { font-size: clamp(44px, 16cqw, 58px); }
}
/* steppers (hora de acostarse / levantarse, pesos…) caben en dos columnas en móviles de 320–390 px */
.stepper { min-width: 0; }
.stepper .v { min-width: 0; white-space: nowrap; }
.g2 .stepper, .g3 .stepper { gap: 4px; }
.g2 .stepper button, .g3 .stepper button { width: clamp(32px, 10.5vw, 46px); height: clamp(40px, 12vw, 46px); border-radius: 12px; font-size: clamp(18px, 5.6vw, 22px); }
.g2 .stepper .v, .g3 .stepper .v { font-size: clamp(17px, 5.6vw, 24px); }
/* calculadora del sueño: la hora no pisa el texto; cifras del cuadro de mandos en una línea */
.sc-o b { flex: none; min-width: 0; } .sc-o span { min-width: 0; flex: 1; }
.sc-o { gap: clamp(10px, 3.6vw, 16px); padding: 12px clamp(12px, 3.8vw, 16px); }
.sc-o.best b { font-size: clamp(27px, 8.6vw, 34px); } .sc-o b { font-size: clamp(22px, 6.8vw, 26px); }
.g3 .stat { padding: 14px 6px; min-width: 0; }
.stat b { white-space: nowrap; }
.g3 .stat b { font-size: clamp(19px, 6vw, 26px); }
/* porcentajes y cifras al lado de un nombre: nunca partidos («+40 / %») */
.up, .dn, .row.between > .num { white-space: nowrap; flex: none; }
.row.between > .sm:first-child, .row.between > span:first-child { min-width: 0; }
/* tabla de series: en móviles estrechos (Android 360 px) el peso y las repeticiones tenían 13 px de hueco */
.setrow { grid-template-columns: clamp(20px, 6vw, 30px) minmax(0, 1fr) minmax(0, 1fr) clamp(42px, 12.5vw, 50px); gap: clamp(4px, 1.6vw, 8px); }
.setrow .mini button { width: clamp(26px, 7.8vw, 36px); font-size: clamp(17px, 5vw, 20px); }
.setrow .mini b { font-size: clamp(14px, 4.4vw, 17px); white-space: nowrap; }
.setrow .ok { width: clamp(42px, 12.5vw, 50px); }
/* Plan de hoy: el texto de debajo de cada círculo se lee entero (hasta 2 líneas) en móviles estrechos */
.pr-i small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: clamp(10.5px, 3.3vw, 12px); line-height: 1.25; }
/* título + pastilla (longevidad, retos…): si no caben, la pastilla baja a la línea siguiente en vez de pisar el título */
.row.between:has(> .chip) { flex-wrap: wrap; row-gap: 6px; }
.chip { white-space: nowrap; }
/* Agenda en Android 360 px: «Noviembre 2026» entero y las tarjetas de 7 columnas sin salirse */
.agtop .agmon { font-size: clamp(17px, 5.6vw, 22px); }
.agcol { padding: 6px clamp(1px, .6vw, 3px) 8px; }
.agt { font-size: clamp(8px, 2.6vw, 10px); padding: 7px 1px 6px; overflow: hidden; }
.agt i { font-size: clamp(17px, 5.4vw, 21px); }
.agt small { font-size: clamp(8px, 2.5vw, 9.5px); }
.agcol-h b { width: clamp(28px, 8.4vw, 32px); height: clamp(28px, 8.4vw, 32px); font-size: clamp(15px, 4.6vw, 17px); }
/* Móviles muy estrechos (320) y letra grande de Android: los relojes y medidas de dos en dos se adaptan a su hueco */
.g2 .stepper, .g3 .stepper { container-type: inline-size; }
@container (max-width: 150px) {
  .stepper button { width: 24cqw !important; height: clamp(36px, 30cqw, 44px) !important; font-size: clamp(16px, 14cqw, 20px) !important; border-radius: 10px !important; }
  .stepper .v { font-size: clamp(14px, 14cqw, 22px) !important; letter-spacing: -.01em; }
  .stepper .v small { font-size: .6em; }
}
@media (max-width: 340px) {
  .agtop .agmon { font-size: clamp(15px, 5vw, 22px); }
  .agt { font-size: 7.5px; letter-spacing: -.02em; }
}
.wins-g { container-type: inline-size; }
.wt b { font-size: clamp(18px, 7.6cqw, 24px); } .wt.top b { font-size: clamp(24px, 9.5cqw, 30px); }
.bpin > div { min-width: 0; } .bpin .stepper { min-width: 0; }
.bpin .stepper button { width: clamp(28px, 9vw, 38px); }
.bpin .stepper .v { font-size: clamp(17px, 5.6vw, 24px); }
/* Agenda en móviles estrechos: si no cabe «Noviembre 2026», se quita el año (el mes y «Esta semana» siguen) */
.agtop .grow { container-type: inline-size; flex: 1 1 0; min-width: 0; }
@container (max-width: 150px) { .agmon .agy { display: none; } }
/* Batería del inicio siempre grande y clara, nunca aplastada (25 nov 2026, Marcel): el recuadro crece lo justo para que quepa entera */
.hero4 { height: clamp(432px, 52vh, 476px); height: clamp(432px, 52svh, 476px); }
.hero4 .batt3 .bcell { flex: none; width: 62px; height: 108px; min-height: 0; }
.hero4 .batt3 .bbolt { font-size: 24px; }
.hero4 .batt3 .bpct { font-size: clamp(30px, 10cqw, 34px); }

/* Progresión por máquina y cardio (25 nov 2026): tarjeta grande .pg y fila pequeña .pg-row (js/areas.js, A.progCard / A.progRow) */
.pg { gap: 10px; }
.pg-up { color: #3fd28f; font-weight: 800; font-size: 13px; white-space: nowrap; }
.pg-up.sm { font-size: 13px; }
.pg-st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pg-st > div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pg-st span { font-size: 11px; color: var(--mu, #9aa4b8); font-weight: 600; }
.pg-st b { font-size: 15px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pg-st i { font-style: normal; font-size: 11px; color: var(--mu, #9aa4b8); }
.pg-st .gold { background: rgba(226,192,122,.12); box-shadow: inset 0 0 0 1px rgba(226,192,122,.45); }
.pg-st .gold b, .pg-st .gold span { color: #e2c07a; }
.pg-svg { width: 100%; height: auto; display: block; overflow: visible; }
.pg-tx { fill: #fff; font-size: 12px; font-weight: 800; font-family: inherit; }
.pg-tx.gold { fill: #e2c07a; }
.pg-ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--mu, #9aa4b8); margin-top: -4px; }
.pg-ls { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.08); }
.pg-ls > div { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; align-items: center; }
.pg-ls > div:last-child { border-bottom: 0; }
.pg-ls span, .pg-ls i { color: var(--mu, #9aa4b8); font-style: normal; font-size: 12px; }
.pg-ls b { font-variant-numeric: tabular-nums; }
.pg-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 12px; text-align: left; width: 100%; color: inherit; }
.pg-top { display: flex; align-items: center; gap: 10px; }
.pg-row .th { flex: none; }
.pg-row .th .exph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: block; }
.pg-row .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pg-n { font-size: 15px; font-weight: 800; line-height: 1.2; }
.pg-s { font-size: 12px; color: var(--mu, #9aa4b8); font-variant-numeric: tabular-nums; }
.pg-svg.mini { width: 100%; height: 46px; }
.pg-up { font-size: 15px; }
.pg-e { width: 44px; height: 44px; flex: none; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; font-size: 24px; }
/* Agenda › entreno abierto (vista agopen): número de orden de cada ejercicio */
.ao-ex .ao-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(226,192,122,.16); color: #e2c07a; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.ao-ex .ao-l { color: #9fc0ff; }
.agt.r { font: inherit; color: inherit; cursor: pointer; }
.pg-s b { white-space: nowrap; font-weight: 700; color: #cfe0ff; }
.pg-hd { gap: 8px; flex-wrap: wrap; }
.pg-hd .t3 { white-space: nowrap; }
.cdstage.exi { display: flex; justify-content: center; }
.cdstage.exi .cdfig.xl { width: min(240px, 66vw); height: min(240px, 66vw); }
.pg-st b { font-size: 14px; }
/* Resumen de progresión (A.progSummary): una sola tarjeta, distinta de la lista de ejercicios */
.pgs { margin-top: 10px; border-radius: 20px; padding: 14px 14px 10px; background: linear-gradient(160deg, rgba(226,192,122,.13), rgba(226,192,122,.03) 60%), rgba(8,14,32,.85); border: 1px solid rgba(226,192,122,.35); display: flex; flex-direction: column; }
.pgs-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pgs-t { font-weight: 800; font-size: 16px; color: #fff; }
.pgs-k { font-size: 11px; color: #e2c07a; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pgs-r { display: grid; grid-template-columns: 1fr 64px auto; align-items: center; gap: 10px; padding: 9px 0; border: 0; border-top: 1px solid rgba(255,255,255,.07); background: none; color: inherit; text-align: left; width: 100%; font: inherit; }
.pgs-l { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.pgs-n { font-size: 13.5px; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pgs-v { font-size: 13px; color: #cfe0ff; font-variant-numeric: tabular-nums; font-weight: 600; }
.pgs-bar { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #e2c07a, #f3dca6); position: relative; overflow: hidden; }
.pgs-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #46526e; border-right: 2px solid #0b1226; }
.pgs-d { font-size: 13px; font-weight: 800; color: #3fd28f; white-space: nowrap; min-width: 62px; text-align: right; }
.pgs-d.z { color: #9aa4b8; font-weight: 600; }
.pgs-e { font-size: 12px; color: #9aa4b8; padding: 8px 0 2px; border-top: 1px solid rgba(255,255,255,.07); }
.pgs-f { font-size: 11px; color: #9aa4b8; text-align: center; padding-top: 8px; }
.pgs-lg { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.pgs-lg i { width: 12px; height: 6px; border-radius: 3px; background: #46526e; display: inline-block; }
.pgs-lg.g i { background: #e2c07a; }
.pg-th { width: 56px !important; height: 56px !important; flex: none; border-radius: 12px; overflow: hidden; display: block; }
.pg-th img, .pg-th video { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
/* Progresión · diseño D (récord + carrusel) */
.pgd { margin-top: 12px; }
.pgd-h { font-weight: 800; font-size: 17px; color: #fff; margin: 0 0 10px; }
.pgd button { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pgd-f { display: block; width: 100%; border-radius: 22px; padding: 14px 14px 10px; background: linear-gradient(160deg, rgba(226,192,122,.2), rgba(11,20,48,.92) 55%); border: 1px solid rgba(226,192,122,.45); box-shadow: 0 16px 34px -18px rgba(226,192,122,.45); }
.pgd-tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #06101f; background: #e2c07a; border-radius: 99px; padding: 3px 10px; }
.pgd-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.pgd-ph { width: 58px; height: 58px; flex: none; border-radius: 14px; overflow: hidden; border: 2px solid rgba(226,192,122,.5); display: grid; place-items: center; background: #0b1430; }
.pgd-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgd-nm { display: flex; flex-direction: column; min-width: 0; }
.pgd-n { font-weight: 800; font-size: 15px; line-height: 1.2; }
.pgd-big { font-family: var(--f-head); font-weight: 800; font-size: 32px; line-height: 1.05; color: #3fd28f; margin-top: 2px; white-space: nowrap; }
.pgd-big small { font-family: var(--f-body); font-size: 14px; color: #a4b1ca; font-weight: 700; margin-left: 7px; }
.pgd-f .pg-svg { margin-top: 8px; }
.pgd-ax { display: flex; justify-content: space-between; font-size: 11px; color: #9aa4b8; margin-top: 2px; }
.pgd-car { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; margin: 0 -2px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pgd-car::-webkit-scrollbar { display: none; }
.pgd-c { flex: none; width: 152px; align-items: stretch; scroll-snap-align: start; border-radius: 18px; background: #0b1430; border: 1px solid rgba(255,255,255,.1); overflow: hidden; padding: 0 0 8px; display: flex; flex-direction: column; }
.pgd-cp { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 86px; flex: none; background: #101b3a; overflow: hidden; }
.pgd-cp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.pgd-cp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,48,0) 30%, #0b1430); }
.pgd-pill { position: absolute; z-index: 1; left: 9px; bottom: 5px; font-family: var(--f-head); font-weight: 800; font-size: 16px; color: #fff; white-space: nowrap; }
.pgd-pill small { font-family: var(--f-body); color: #3fd28f; font-size: 11.5px; margin-left: 5px; }
.pgd-ic { font-size: 30px; position: relative; z-index: 1; margin-bottom: 18px; }
.pgd-cn { display: block; width: 100%; font-size: 12px; font-weight: 700; line-height: 1.2; padding: 6px 10px 0; height: 35px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pgd-c .pg-svg { display: block; width: calc(100% - 16px); margin: 4px 8px 0; }
.pgd-one { display: block; font-size: 11px; color: #9aa4b8; padding: 8px 10px 0; }
.pgd-e { font-size: 12px; color: #9aa4b8; padding: 8px 2px 0; }
.pgd-ft { font-size: 11px; color: #6f7d98; text-align: center; margin-top: 6px; }

/* ===== Entreno propio del cliente (v141, 26 nov 2026) ===== */
.agt.own { background: #fff1e0; border-color: #f3c995; color: #9a4f05; }
.agmv { gap: 8px; }
.ownnote { border-color: rgba(246,220,154,.35); }
.ownxg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ownx { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 0 0 8px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1.5px solid var(--line); overflow: hidden; text-align: left; color: inherit; }
.ownx.on { border-color: #4f8dff; background: rgba(79,141,255,.16); }
.ownx-p { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; background: #101b3a; overflow: hidden; }
.ownx-p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ownx-p i { position: absolute; top: 6px; right: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font: 800 14px var(--f-num); font-style: normal; background: rgba(0,0,0,.55); color: #fff; }
.ownx.on .ownx-p i { background: #4f8dff; }
.ownx-n { padding: 0 8px; font-size: 12px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ownbar { position: sticky; bottom: -1px; margin: 4px -4px 0; padding: 10px 4px 4px; background: linear-gradient(to bottom, rgba(14,26,54,0), var(--sheet) 30%); }
.ownbar .btn:disabled { opacity: .5; }

/* ===== Datos del reloj: Sueño, Energía y Salud (26 nov 2026, js/watch.js) ===== */
.wx-c { position: relative; gap: 10px; }
.wx-q { font-size: 13px; font-weight: 700; color: var(--mu); }
.wx-ans { display: flex; align-items: center; gap: 9px; font: 800 23px/1.15 var(--f-head); letter-spacing: -.01em; }
.wx-ck { width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #06101f; display: grid; place-items: center; font-size: 16px; flex: none; }
.wx-ck.amb { background: var(--amber); }
.wx-why { font-size: 12.5px; color: var(--mu); background: rgba(255,255,255,.04); border-radius: 14px; padding: 9px 11px; display: flex; gap: 8px; line-height: 1.4; }
.wx-why b { color: var(--fg); }
.wx-ex { position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #06101f; background: #e2c07a; border-radius: 999px; padding: 3px 8px; }
.wx-exh { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #e2c07a; margin-top: 6px; }
.wx-hv { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wx-hv b { font-size: 36px; line-height: 1; color: #fff; }
.wx-hv span { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.82); }
.wx-pill { display: inline-flex; align-self: flex-start; gap: 6px; background: rgba(63,210,143,.18); color: var(--ok); font-weight: 800; font-size: 14px; border-radius: 999px; padding: 6px 12px; }
.wx-pill.amb { background: rgba(255,181,71,.18); color: var(--amber); }
.wx-dots { display: flex; gap: 7px; } .wx-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(63,210,143,.2); } .wx-dots i.amb { background: var(--amber); box-shadow: 0 0 0 3px rgba(255,181,71,.2); }
.wx-zone { position: relative; height: 16px; border-radius: 9px; background: rgba(255,255,255,.08); margin-top: 18px; }
.wx-zone i { position: absolute; top: 0; bottom: 0; border-radius: 9px; background: rgba(63,210,143,.38); }
.wx-zone u { position: absolute; top: -6px; width: 4px; height: 28px; border-radius: 3px; background: #e2c07a; transform: translateX(-2px); text-decoration: none; }
.wx-zone u::after { content: attr(data-l); position: absolute; bottom: 31px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; color: #e2c07a; white-space: nowrap; }
.wx-zl { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); } .wx-zl .ok { color: var(--ok); font-weight: 800; }
.wx-donut { display: grid; grid-template-columns: 118px minmax(0,1fr); gap: 12px; align-items: center; }
.wx-fz { display: flex; flex-direction: column; gap: 8px; }
.wx-fz div { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 700; line-height: 1.15; }
.wx-fz i { width: 12px; height: 12px; border-radius: 4px; }
.wx-fz small { display: block; color: var(--mu); font-size: 11px; font-weight: 600; }
.wx-fz b { font: 700 16px var(--f-num); }
.wx-more { align-self: center; font-size: 13.5px; font-weight: 800; color: var(--blue-soft); background: none; padding: 4px; }
.wx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wx-two div { background: rgba(255,255,255,.05); border-radius: 16px; padding: 10px 6px; text-align: center; }
.wx-two b { display: block; font: 700 30px/1.05 var(--f-num); }
.wx-two span { font-size: 11.5px; color: var(--mu); }
.wx-chips { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.wx-chips div { background: rgba(63,210,143,.1); border: 1px solid rgba(63,210,143,.25); border-radius: 14px; padding: 9px 4px; text-align: center; font-size: 11px; color: var(--mu); }
.wx-chips div.amb { background: rgba(255,181,71,.1); border-color: rgba(255,181,71,.3); }
.wx-chips b { display: block; font: 700 16px var(--f-num); color: var(--fg); margin: 2px 0; }
.wx-chips em { font-style: normal; color: var(--ok); font-weight: 800; } .wx-chips .amb em { color: var(--amber); }
.wx-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.wx-on { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mu); padding: 0 4px; }
.wx-on .link { font-size: 12.5px; }
.wx-conn { gap: 10px; border-color: rgba(226,192,122,.35); }
.btn.wx-gold { background: linear-gradient(180deg, #f0d79e, #e2c07a); color: #1b1405; }
.wx-note { font-size: 12.5px; color: var(--mu); background: rgba(255,255,255,.05); border-radius: 14px; padding: 10px 12px; }
.wx-devs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.wx-devs button { background: rgba(255,255,255,.07); border-radius: 14px; padding: 10px 6px; font-weight: 700; font-size: 12.5px; color: var(--fg); }
.wx-devs button span { display: block; font-size: 20px; }
.wx-steps { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; font-size: 15px; line-height: 1.45; }
.wx-sem { display: flex; flex-direction: column; }
.wx-sem > div { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wx-sem > div:last-child { border-bottom: 0; }
.wx-sem .e { font-size: 21px; text-align: center; }
.wx-sem b { display: block; font-size: 14.5px; }
.wx-sem small { color: var(--mu); font-size: 11.5px; }
.wx-sem .v { text-align: right; font: 700 15px var(--f-num); }
.wx-sem .v em { display: block; font: 800 11.5px var(--f-body); font-style: normal; color: var(--ok); }
.wx-sem .v em.amb { color: var(--amber); } .wx-sem .v em.mu { color: var(--dim); }
.wx-ft { display: flex; align-items: center; gap: 10px; font: 700 26px/1 var(--f-num); }
.wx-ft span { color: var(--dim); font-size: 20px; } .wx-ft small { font: 600 12.5px var(--f-body); color: var(--mu); }
.wx-lad { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin-top: 24px; }
.wx-lad div { height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); position: relative; }
.wx-lad div.on { background: var(--ok); }
.wx-lad div.me::after { content: "Tú"; position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: #e2c07a; color: #06101f; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 7px; }
.wx-ladl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; font-size: 11px; color: var(--mu); text-align: center; }
/* Sin reloj: apartado borroso con título grande y botón (26 nov 2026) */
.wx-lockw { position: relative; border-radius: 22px; overflow: hidden; max-height: 620px; border: 1px solid rgba(226,192,122,.35); }
.wx-lockc { filter: blur(6px); opacity: .45; pointer-events: none; user-select: none; display: flex; flex-direction: column; gap: 12px; }
.wx-lockov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 18px; text-align: center; background: linear-gradient(180deg, rgba(6,12,30,.25), rgba(6,12,30,.7)); }
.wx-locke { font-size: 46px; line-height: 1; }
.wx-lockt { font: 800 27px/1.12 var(--f-head); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.wx-lockx { font-size: 14.5px; color: #dfe6f3; max-width: 30ch; line-height: 1.4; }
.wx-lockov .btn { width: auto; min-width: 240px; font-size: 17px; }
.wx-lockov .wx-devs { width: 100%; max-width: 330px; }
/* Fichas «ⓘ Qué es» al tocar cada tarjeta (26 nov 2026) */
.wx-tap { cursor: pointer; transition: transform .12s, border-color .2s; }
.wx-tap:active { transform: scale(.985); }
.wx-q { padding-right: 78px; }
.wx-inf { position: absolute; top: 11px; right: 11px; font-size: 11.5px; font-weight: 800; color: #e2c07a; background: rgba(226,192,122,.12); border: 1px solid rgba(226,192,122,.35); border-radius: 999px; padding: 3px 9px; pointer-events: none; }
.wx-fz div[data-a], .wx-chips div[data-a], .wx-sem > div[data-a] { cursor: pointer; }
.wx-chips div[data-a]::after { content: "ⓘ"; display: block; color: #e2c07a; font-size: 11px; margin-top: 2px; }
.wx-sem > div[data-a] { grid-template-columns: 30px minmax(0,1fr) auto 12px; }
.wx-ar { color: #e2c07a; font-weight: 800; }
.wxi-em { font-size: 30px; margin-right: 4px; }
.wxi { display: flex; flex-direction: column; gap: 13px; margin-top: 10px; }
.wxi-one { font-size: 15.5px; line-height: 1.45; font-weight: 600; }
.wxi-you { display: flex; flex-direction: column; gap: 3px; background: rgba(63,210,143,.1); border: 1px solid rgba(63,210,143,.28); border-radius: 16px; padding: 11px 12px; }
.wxi-you.amb { background: rgba(255,181,71,.1); border-color: rgba(255,181,71,.3); }
.wxi-you.mu { background: rgba(255,255,255,.05); border-color: var(--line); }
.wxi-you span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mu); }
.wxi-you b { font: 800 21px/1.15 var(--f-head); }
.wxi-you em { font-style: normal; font-size: 13px; color: var(--ok); margin-left: 6px; } .wxi-you.amb em { color: var(--amber); }
.wxi-h { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #e2c07a; margin-bottom: 6px; }
.wxi-p { font-size: 14px; line-height: 1.5; color: var(--fg); opacity: .9; }
.wxi-rng { display: flex; flex-direction: column; gap: 5px; }
.wxi-rng div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; background: rgba(255,255,255,.045); border-radius: 10px; padding: 7px 10px; }
.wxi-rng div span:last-child { font-weight: 800; text-align: right; }
.wxi-rng .g span:last-child { color: var(--ok); } .wxi-rng .a span:last-child { color: var(--amber); } .wxi-rng .n span:last-child { color: var(--mu); }
.wxi-tips { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; }
.wxi-tips li { display: flex; gap: 8px; font-size: 14px; line-height: 1.4; }
.wxi-tips li::before { content: "✓"; color: var(--ok); font-weight: 900; }
/* Bloques plegables (27 nov 2026: Logros y Salud más simples) */
.fold { background: var(--glass, rgba(255,255,255,.06)); border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 20px; overflow: hidden; }
.fold-h { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 15px 16px; font: inherit; cursor: pointer; }
.fold-h b { display: block; font: 800 16.5px/1.25 var(--f-head, inherit); }
.fold-h small { display: block; font-size: 13px; color: var(--mu); margin-top: 3px; line-height: 1.35; }
.fold-h i { font-style: normal; font-size: 22px; font-weight: 800; color: #e2c07a; transition: transform .2s; flex: none; }
.fold.on .fold-h i { transform: rotate(90deg); }
.fold-b { display: flex; flex-direction: column; gap: 12px; padding: 0 12px 14px; }
.lv1s { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mxbox { display: flex; flex-direction: column; gap: 8px; }
.mxlink { background: none; border: 0; color: #e2c07a; font-weight: 800; font-size: 14.5px; padding: 6px 0; text-align: left; cursor: pointer; }
/* Arrastrar entrenos en la Agenda (27 nov 2026, Marc Compte) */
.agt.ag-src { opacity: .3; }
.ag-ghost { position: fixed; z-index: 9999; pointer-events: none; margin: 0; transform: scale(1.1) rotate(-2deg); box-shadow: 0 14px 30px rgba(0,0,0,.45); opacity: .95; }
.agcol.ag-drop { background: rgba(226,192,122,.16); outline: 2px dashed #e2c07a; outline-offset: -2px; border-radius: 12px; }
.agwhite .agcol.ag-drop { background: rgba(226,160,40,.12); }
.ag-dragging, .ag-dragging * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.agcols .agt { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* ===== Agenda con los colores de la app (27 nov 2026, Marcel: «acorde al branding de la app, sin cambiar el formato, solo los colores»).
   Mismo formato que antes; azul noche, cristal, dorado y el color de cada área. Va al final para ganar a las reglas blancas de arriba. */
.agwhite { background: radial-gradient(520px 420px at 12% -6%, #16306a 0%, rgba(5,11,28,0) 65%), var(--bg); color: var(--fg); }
.agwhite .agmon { color: var(--fg); } .agwhite .agsub { color: #e2c07a; }
.agwhite .agback, .agwhite .agarrow { background: rgba(255,255,255,.07); border: 1px solid var(--line); color: #e2c07a; box-shadow: none; }
.agwhite .agboard { background: rgba(255,255,255,.045); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.agwhite .aghead { background: linear-gradient(180deg, #12244d, #0c1a3a); border-bottom: 1px solid var(--line); }
.agwhite .agcol-h span { color: var(--mu); opacity: 1; }
.agwhite .agcol-h.now b { background: linear-gradient(135deg, #f0d08a, #e2b45a); color: #1a1205; box-shadow: 0 4px 14px rgba(226,180,90,.35); }
.agwhite .agcol-h em { color: #e2c07a; }
.agwhite .agcol { border-left-color: rgba(255,255,255,.07); }
.agwhite .agcol.now { background: rgba(226,180,90,.08); } .agwhite .agcol.past { background: rgba(0,0,0,.12); }
.agwhite .agt.w { background: rgba(79,141,255,.18); border-color: rgba(79,141,255,.45); color: #cfe0ff; }
.agwhite .agt.c { background: rgba(47,211,199,.15); border-color: rgba(47,211,199,.42); color: #bff4ef; }
.agwhite .agt.n { background: rgba(63,210,143,.15); border-color: rgba(63,210,143,.42); color: #c4f3dc; }
.agwhite .agt.h { background: rgba(255,122,217,.14); border-color: rgba(255,122,217,.4); color: #ffd3f1; }
.agwhite .agt.own { background: rgba(255,181,71,.15); border-color: rgba(255,181,71,.45); color: #ffe2b3; }
.agwhite .agt.x { background: rgba(139,124,255,.16); border-color: rgba(139,124,255,.4); color: #ddd7ff; }
.agwhite .agt.r { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.2); color: var(--mu); }
.agwhite .agt.ok { box-shadow: inset 0 0 0 1px rgba(63,210,143,.5); }
.agwhite .agt u { background: var(--ok); color: #06101f; border-color: #0c1a3a; }
.agwhite .agadd { background: rgba(255,255,255,.06); border-color: rgba(226,192,122,.45); color: #e2c07a; }
.agwhite .aglegend { color: var(--mu); }
.agwhite .aglegend i.w { background: #4f8dff; } .agwhite .aglegend i.c { background: #2fd3c7; } .agwhite .aglegend i.n { background: #3fd28f; } .agwhite .aglegend i.h { background: #ff7ad9; }
.agwhite .aghelp { background: rgba(255,255,255,.05); border-color: var(--line); color: var(--mu); } .agwhite .aghelp b { color: var(--fg); }
.agwhite .agtoday { background: linear-gradient(135deg, #f0d08a, #e2b45a); color: #1a1205; }
.agwhite .agcol.ag-drop { background: rgba(226,180,90,.16); }
.fold-h .grow { flex: 1 1 auto; min-width: 0; }
.agwhite .agt.r { font: 800 10px/1.15 var(--f-body); }

/* ===== v160 (27 nov 2026, Marcel: «los títulos no se ven y lo grande es la respuesta»; «los desplegables deben notarse») ===== */
.t2 { font-size: 22px; line-height: 1.18; }
.t3 { font-size: 16.5px; }
.fold { border-color: rgba(226,192,122,.32); }
.fold-h { padding: 16px 16px; }
.fold-h b { font-size: 18px; letter-spacing: -.01em; color: #fff; }
.fold-h i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(226,192,122,.16); border: 1px solid rgba(226,192,122,.5); font-size: 20px; line-height: 1; }
.fold.on .fold-h i { background: #e2c07a; color: #0b1430; }
.fold-h:active { background: rgba(255,255,255,.04); }
/* tarjetas del reloj plegables: pregunta grande, respuesta pequeña */
.wx-f { padding: 0; gap: 0; }
.wx-f .fold-h { align-items: center; }
.wx-f .wx-q { display: block; padding-right: 0; font: 800 18.5px/1.25 var(--f-head); color: #fff; letter-spacing: -.01em; }
.wx-ans.wx-sm { font: 700 13.5px/1.3 var(--f-body); color: rgba(255,255,255,.78); gap: 6px; margin-top: 6px; letter-spacing: 0; }
.wx-ans.wx-sm .wx-ck { width: 18px; height: 18px; font-size: 11px; }
.wx-fb { padding: 0 16px 16px; gap: 10px; }
.wx-fb .wx-more { margin-top: 2px; }
/* semáforo de salud: título grande, valor pequeño */
.wx-sem b { font-size: 16px; }
.wx-sem small { font-size: 12px; }
.wx-sem .v { font-size: 13.5px; }
.wx-sem .v em { font-size: 11px; }
/* batería de energía de verdad */
.enbat { display: flex; align-items: center; gap: 4px; margin: 4px 0 2px; }
.enbat-body { position: relative; flex: 1; height: 58px; border-radius: 16px; border: 3px solid rgba(255,255,255,.85); padding: 4px; overflow: hidden; background: rgba(5,11,28,.5); }
.enbat-body i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--bc), color-mix(in srgb, var(--bc) 70%, #fff)); box-shadow: 0 0 18px color-mix(in srgb, var(--bc) 60%, transparent); transition: width .6s; }
.enbat-pct { position: absolute; inset: 0; display: grid; place-items: center; font: 800 24px var(--f-num); color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.enbat-cap { width: 9px; height: 24px; border-radius: 0 6px 6px 0; background: rgba(255,255,255,.85); flex: none; }
/* longevidad en una línea por pilar */
.lonl { display: flex; flex-direction: column; }
.lonr { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.lonr:last-child { border-bottom: 0; }
.lonr .e { font-size: 20px; text-align: center; }
.lonr b { font-size: 16px; }
.lonr .v { font-size: 12.5px; font-weight: 700; color: var(--mu); text-align: right; }
.lonr.on .v { color: var(--ok); }
/* «Tu reloj interno» plegado dentro de la calculadora */
.sc-circ.fold { background: rgba(226,192,122,.06); }
.sc-circ .fold-h b { font-size: 16.5px; }
.sc-circ.on .fold-h { margin-bottom: 8px; }
.howto summary { font-size: 14.5px; color: #e2c07a; }

/* ===== Tema y colores (30 nov 2026, js/theme.js): selector de Perfil. Las miniaturas pintan cada tema con sus propios colores (--tb fondo, --tc tarjeta, --ta color principal). ===== */
.th-g { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.th-gt { font: 700 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mu); }
.th-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.th-tile { display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; border-radius: 16px; padding: 0; }
.th-ph { position: relative; display: flex; flex-direction: column; gap: 5px; height: 112px; padding: 9px 8px 0; border-radius: 16px; background: var(--tb); border: 1px solid var(--tl); overflow: hidden; box-shadow: 0 6px 16px -10px rgba(0,0,0,.6); transition: transform .18s ease; }
.th-tile:active .th-ph { transform: scale(.96); }
.th-tile.on .th-ph { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.th-h { display: block; height: 7px; width: 58%; border-radius: 4px; background: var(--tf); opacity: .9; }
.th-c { display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 9px; background: var(--tc); border: 1px solid var(--tl); }
.th-c b { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2.5px solid var(--ta); }
.th-c s { flex: 1; height: 5px; border-radius: 3px; background: var(--tm); opacity: .7; text-decoration: none; }
.th-c2 b { background: var(--ta); border-color: var(--ta2); }
.th-n { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; display: flex; justify-content: space-around; align-items: center; background: var(--tc); border-top: 1px solid var(--tl); }
.th-n u { width: 6px; height: 6px; border-radius: 50%; background: var(--tm); opacity: .6; }
.th-n u:first-child { background: var(--ta); opacity: 1; }
.th-nm { font: 700 12.5px/1.2 var(--f-body); color: var(--fg); }
.th-tile.on .th-nm { color: var(--gold); }
.th-accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 10px 6px; margin-top: 4px; }
.th-acc { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.th-acc i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.th-acc.auto i { position: relative; }
.th-acc.auto i::after { content: "A"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 13px var(--f-body); color: rgba(0,0,0,.55); }
.th-acc.on i { outline: 2.5px solid var(--fg); outline-offset: 2px; }
.th-acc small { font-size: 10.5px; color: var(--mu); }
.th-acc.on small { color: var(--fg); font-weight: 700; }

/* ===== Plan de hoy simplificado (.p2, 30 nov 2026; js/app.js A.p2) ===== */
.p2 { --p2bg: #141416; display: flex; flex-direction: column; gap: 10px; }
.p2-t { position: relative; display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 14px 16px; border-radius: 22px; background-color: var(--p2bg); background-size: cover, 62% auto; background-position: center, right center; background-repeat: no-repeat; border: 1px solid rgba(255,255,255,.08); text-align: left; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(0,0,0,.9); }
.p2-t::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--pc); }
.p2-t.ok { border-color: color-mix(in srgb, var(--pc) 55%, transparent); }
.p2-r { position: relative; width: 62px; height: 62px; flex: none; display: grid; place-items: center; }
.p2-r svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.p2-r .pr-on { stroke: var(--pc); }
.p2-r em { font-style: normal; font-size: 27px; }
.p2-x { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.p2-x small { font: 700 10.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--pc); }
.p2-x b { font: 800 19px/1.15 var(--f-head); letter-spacing: -.02em; color: #fff; }
.p2-x i { font-style: normal; font-size: 13px; color: #c7c7cc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 92%; }
.p2-x u { align-self: flex-start; margin-top: 7px; text-decoration: none; font: 800 12.5px/1 var(--f-body); padding: 7px 12px; border-radius: 999px; background: var(--pc); color: #06101f; }
.p2-t.ok .p2-x u { background: rgba(255,255,255,.12); color: #fff; }
.p2-m { border-radius: 20px; background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.16); }
.p2-mh { width: 100%; display: flex; align-items: center; gap: 10px; padding: 15px 16px; }
.p2-mh span { font: 800 15px var(--f-body); color: var(--gold); }
.p2-mh small { flex: 1; color: var(--mu); font-size: 12.5px; }
.p2-mh i { font-style: normal; color: var(--gold); font-size: 20px; transition: transform .2s; }
.p2-m.on .p2-mh i { transform: rotate(90deg); }
.p2-mb { padding: 0 12px 14px; }

/* ===== 1 dic 2026 · apartados más simples (Marcel) ===== */
/* Ejercicio: «Última vez» */
.lv-box { border-color: rgba(79,141,255,.45); gap: 10px; }
.lv-ic { font-size: 24px; }
.lv-big { display: flex; align-items: flex-end; gap: 14px; }
.lv-n { display: flex; align-items: baseline; gap: 4px; } .lv-n b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.02em; } .lv-n span { font-size: 14px; color: var(--mu); font-weight: 700; }
.lv-cap { margin-left: auto; font-size: 12px; color: var(--mu); text-align: right; line-height: 1.25; }
.lv-all summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--blue-soft); list-style: none; } .lv-all summary::-webkit-details-marker { display: none; } .lv-all summary::after { content: " ›"; }
.lv-r { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; } .lv-r span { color: var(--mu); } .lv-r b { text-align: right; min-width: 56px; }
.lv-tip { font-size: 14px; color: var(--blue-soft); font-weight: 600; line-height: 1.4; } .lv-tip b { color: var(--fg); }
/* Cardio: «Añadir cardio» */
.cda { border-radius: 24px; padding: 16px 0 14px; background: linear-gradient(135deg, rgba(47,211,199,.24), rgba(47,211,199,.06) 60%), #0b1730; border: 1px solid rgba(47,211,199,.45); box-shadow: 0 10px 30px -14px rgba(47,211,199,.55); display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.cda-h { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.cda-plus { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #04211f; background: #2fd3c7; box-shadow: 0 0 0 5px rgba(47,211,199,.18); }
.cda-t { font: 700 20px/1.15 var(--f-head); letter-spacing: -.02em; color: #fff; } .cda-s { font-size: 13px; color: #b9d9d6; font-weight: 600; margin-top: 2px; }
.cda-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; } .cda-row::-webkit-scrollbar { display: none; }
.cda-i { flex: none; width: 104px; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; text-align: center; }
.cda-i .cdfig { width: 104px; height: 104px; border-radius: 18px; } .cda-i span { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.cda-i:active { transform: scale(.96); }
/* Cardio: pasos */
.stp { border-color: rgba(47,211,199,.35); gap: 14px; }
.stp-src { font-size: 11.5px; font-weight: 700; color: #2fd3c7; background: rgba(47,211,199,.12); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.stp-top { display: flex; align-items: center; gap: 16px; }
.stp-n { display: block; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.stp-g { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.stp-g > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.stp-g span { grid-row: span 2; font-size: 20px; } .stp-g b { font-size: 17px; font-weight: 800; white-space: nowrap; } .stp-g small { font-size: 11.5px; color: var(--mu); }
.stp-wk { display: flex; flex-direction: column; gap: 6px; }
.stp-hand summary { cursor: pointer; font-size: 13px; color: var(--mu); font-weight: 700; } .stp-hand[open] { display: flex; flex-direction: column; gap: 8px; }
/* Sueño */
.sn-c { gap: 14px; border-color: rgba(139,124,255,.4); }
.sn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sn-two > div { padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.sn-two b { display: block; font-size: 28px; font-weight: 800; line-height: 1.05; } .sn-two span { font-size: 12px; color: var(--mu); }
.sn-two .q { background: rgba(100,210,255,.1); border-color: rgba(100,210,255,.35); } .sn-two .q b { color: #8fdcff; }
.sn-c .wx-fz > div { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; cursor: pointer; }
.sn-c .wx-fz i { width: 10px; height: 10px; border-radius: 3px; } .sn-c .wx-fz span { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; } .sn-c .wx-fz small { font-size: 11.5px; color: var(--mu); font-weight: 600; } .sn-c .wx-fz b { font-size: 14px; }
/* Calculadora del sueño pequeña */
.sc-sm { gap: 10px; padding: 14px; } .sc-sm .sc-hd > span { font-size: 24px; } .sc-sm .sc-hd { align-items: flex-start; }
.sc-sm .sc-ask { font-size: 14px; } .sc-sm .sc-time b { font-size: 40px; min-width: 120px; } .sc-sm .sc-time button { width: 42px; height: 42px; font-size: 22px; }
.sc-sm .sc-o { padding: 8px 12px; gap: 12px; } .sc-sm .sc-o b { font-size: 20px; } .sc-sm .sc-o.best b { font-size: 24px; } .sc-sm .sc-seg button { font-size: 13px; } .sc-sm .sc-note { font-size: 11.5px; }
/* Agenda: panel único del día */
.adsec { display: flex; flex-direction: column; gap: 6px; }
.adlink { align-self: flex-start; font-size: 13.5px; font-weight: 700; color: var(--blue-soft); padding: 4px 4px 6px 48px; }
/* Energía: Recarga rápida */
.rc { border-radius: 24px; padding: 16px; background: linear-gradient(135deg, rgba(255,181,71,.26), rgba(255,181,71,.05) 65%), #0e1630; border: 1px solid rgba(255,181,71,.55); display: flex; flex-direction: column; gap: 10px; }
.rc-h { display: flex; align-items: center; gap: 12px; }
.rc-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #ffb547; display: grid; place-items: center; font-size: 24px; }
.rc-t { font: 700 20px/1.15 var(--f-head); color: #fff; } .rc-s { font-size: 13px; color: #e9d7b6; font-weight: 600; margin-top: 2px; }
.rc-o { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(5,11,28,.45); text-align: left; width: 100%; }
.rc-o:active { transform: scale(.98); }
.rc-e { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--rc) 18%, transparent); }
.rc-o b { display: block; font-size: 15px; } .rc-o small { display: block; font-size: 12.5px; color: var(--mu); line-height: 1.3; } .rc-o em { font: 700 13px var(--f-num); font-style: normal; color: #ffb547; }
.rc-best { font-size: 12.5px; color: #e2c88f; font-weight: 600; }
.rc-br { display: grid; place-items: center; height: 250px; }
.rc-ball { width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #8fdcff, #3d7bff 70%); box-shadow: 0 0 60px rgba(100,210,255,.45); display: grid; place-items: center; animation: rc-breath 10s ease-in-out infinite; }
.rc-ball span { font: 700 22px var(--f-head); color: #04142e; }
@keyframes rc-breath { 0% { transform: scale(.62); } 40% { transform: scale(1); } 100% { transform: scale(.62); } }
.rc-big { font-size: 86px; text-align: center; line-height: 1.2; }
.rc-time { font-size: 44px; font-weight: 800; text-align: center; letter-spacing: -.02em; }
.rc-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; } .rc-bar i { display: block; height: 100%; width: 0; background: #ffb547; transition: width .25s linear; }
.rc-res { border-radius: 22px; padding: 20px 16px; background: linear-gradient(135deg, rgba(63,210,143,.22), rgba(63,210,143,.04) 70%); border: 1px solid rgba(63,210,143,.5); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.rc-ab { display: flex; align-items: center; gap: 14px; font-size: 42px; font-weight: 800; } .rc-ab span { color: var(--mu); } .rc-ab i { font-style: normal; color: var(--ok); font-size: 30px; } .rc-ab b { color: var(--ok); }
/* 1 dic 2026 (Marcel: «que siempre haya márgenes»): el imán del carrusel se alinea con el margen, no con el borde, y hay aire al final. */
.cda-row { scroll-padding-inline: 16px; padding: 2px 16px 6px; }
.cda-row::after { content: ""; flex: none; width: 6px; }
.cda-i { padding: 0; margin: 0; }
/* 1 dic 2026: tarjeta de ejercicio con «Completar» e «Insertar marcas» */
.exc { width: 100%; border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.exc.done { border-color: rgba(63,210,143,.55); }
.exc-top { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 0; font: inherit; }
.exc-top .th { width: 76px; height: 76px; border-radius: 18px; background: rgba(79,141,255,.14); flex: none; overflow: hidden; }
.exc-top .th canvas { width: 100%; height: 100%; display: block; }
.exc-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exc-act button { height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: inherit; font: 700 14px var(--f-body, inherit); display: flex; align-items: center; justify-content: center; gap: 8px; }
.exc-c { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); display: grid; place-items: center; font-size: 13px; font-weight: 800; box-sizing: border-box; }
.exc-ok.on { background: rgba(63,210,143,.16); border-color: rgba(63,210,143,.6); color: #7ef0bd; }
.exc-ok.on .exc-c { background: #3fd28f; border-color: #3fd28f; color: #04211f; }
.exc-top:active, .exc-act button:active { transform: scale(.97); transition: transform .05s; }
/* 1 dic 2026: tick de «Hecha» en la tarjeta de cada comida */
.mealc { display: flex; align-items: stretch; border-radius: 22px; padding: 0; overflow: hidden; }
.mealc.done { border-color: rgba(63,210,143,.55); }
.mealc .meal { flex: 1; min-width: 0; background: none; border: 0; box-shadow: none; margin: 0; }
.mtick { flex: none; width: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(255,255,255,.04); border: 0; border-left: 1px solid rgba(255,255,255,.1); color: inherit; }
.mtick .exc-c { width: 30px; height: 30px; font-size: 16px; }
.mtick small { font-size: 11px; font-weight: 700; opacity: .8; }
.mtick.on { background: rgba(63,210,143,.14); color: #7ef0bd; }
.mtick.on .exc-c { background: #3fd28f; border-color: #3fd28f; color: #04211f; }
.mtick:active { transform: scale(.94); }
.mtick.hz { width: 60px; height: 60px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); }

/* 2 dic 2026: peso y repeticiones de cada serie se escriben a mano (input dentro del número) */
.setrow .mini b .setin { display: block; width: 100%; min-width: 0; background: transparent; border: 0; padding: 2px 0 0; margin: 0; color: inherit; font: inherit; text-align: center; -webkit-user-select: text; user-select: text; border-radius: 8px; outline: none; }
.setrow .mini b .setin:focus { background: rgba(255,255,255,.12); box-shadow: 0 0 0 1.5px var(--gold, #e2c07a); }
.setrow .mini b .setin::placeholder { color: var(--mu); opacity: .7; }
