/* =========================================================
   LOCK IN — estilos de las funciones extra
   ========================================================= */
/* Subnavegación de Progreso */
.subnav { display: flex; gap: 6px; overflow-x: auto; margin: -4px -16px 16px; padding: 0 16px 2px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav button { flex: none; height: 36px; padding: 0 16px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--mute);
  border: 1px solid var(--stroke); background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: all .3s var(--ease); }
.subnav button.on { color: var(--on-grad); background: var(--grad); border-color: transparent; box-shadow: 0 6px 20px rgb(var(--glow-rgb) / .25); }

/* Rangos */
.rank-card { text-align: center; padding: 26px 20px 20px; }
.rank-medal { width: 86px; height: 86px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; position: relative;
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .6), inset 0 -3px 6px rgba(0, 0, 0, .35), 0 14px 40px rgba(0, 0, 0, .5), 0 0 40px rgb(var(--glow-rgb) / .15); }
.rank-medal::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); }
.rank-medal span { font-family: var(--serif); font-size: 40px; color: rgba(0, 0, 0, .55); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.rank-medal span.grad-text { text-shadow: none; }
.rank-medal.big { width: 150px; height: 150px; margin-top: 40px; animation: medalIn 1.2s var(--spring) both, floaty 5s ease-in-out 1.2s infinite; }
.rank-medal.big span { font-size: 72px; }
@keyframes medalIn { from { transform: scale(.2) rotateY(180deg); opacity: 0; } }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.rank-name { font-family: var(--serif); font-size: 44px; line-height: 1; margin: 6px 0 6px; }
.rank-ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 20px; }
.rank-ladder div { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: .3; }
.rank-ladder div.on { opacity: 1; }
.rank-ladder i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5); }
.rank-ladder span { font-size: 9.5px; font-weight: 600; letter-spacing: .02em; color: var(--mute); }
.menu-card .item { padding: 13px 2px; }

/* Hábitos */
.habit-strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 6px 18px 2px; scrollbar-width: none; }
.habit-strip::-webkit-scrollbar { display: none; }
.habit-dot { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.hd-ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--stroke-2); background: rgba(255, 255, 255, .03); transition: all .4s var(--spring); }
.hd-ico { font-size: 25px; transition: transform .4s var(--spring); }
.habit-dot.on .hd-ring { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.habit-dot.on .hd-ico { transform: scale(1.1); }
.habit-dot small { font-size: 11px; color: var(--mute); max-width: 70px; font-weight: 500; }
.habit-dot.on small { color: var(--text); }
.habit-dot em { position: absolute; top: -4px; right: 0; font-style: normal; font-size: 10px; font-weight: 700; background: var(--bg); border: 1px solid var(--stroke-2); border-radius: 99px; padding: 1px 5px; }
.habit-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.habit-days button { aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); transition: all .3s var(--spring); }
.habit-days button small { font-size: 9px; color: var(--faint); font-weight: 700; }
.habit-days button b { font-size: 14px; font-weight: 600; }
.habit-days button.on { background: var(--c); border-color: transparent; color: #111; box-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent); }
.habit-days button.on small { color: rgba(0, 0, 0, .5); }
.habit-days button.today { outline: 1.5px solid rgba(255, 255, 255, .6); outline-offset: 1px; }
.heat-wrap { overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px 6px; }
.heat-wrap::-webkit-scrollbar { display: none; }
.heat { display: grid; grid-template-rows: repeat(7, 11px); grid-auto-flow: column; grid-auto-columns: 11px; gap: 3px; width: max-content; }
.heat i { border-radius: 3px; background: rgba(255, 255, 255, .06); }
.heat i.l1 { background: rgb(var(--acc-rgb) / .25); }
.heat i.l2 { background: rgb(var(--acc-rgb) / .5); }
.heat i.l3 { background: rgb(var(--acc-rgb) / .75); }
.heat i.l4 { background: var(--violet); box-shadow: 0 0 6px rgb(var(--glow-rgb) / .5); }

/* Gym / cuerpo */
.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.week-dots div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.week-dots i { width: 100%; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); }
.week-dots .on i { background: var(--grad); border-color: transparent; box-shadow: 0 4px 14px rgb(var(--glow-rgb) / .3); }
.week-dots .today i { outline: 1.5px solid rgba(255, 255, 255, .5); outline-offset: 1px; }
.week-dots span { font-size: 10px; color: var(--faint); font-weight: 700; }
.spark-svg { display: block; width: 100%; height: 64px; margin-top: 14px; overflow: visible; }
.hero .spark-svg { height: 96px; }
.stepper { display: grid; grid-template-columns: 52px 52px 1fr 52px 52px; gap: 6px; align-items: center; }
.stepper button { height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--stroke); font-weight: 600; font-size: 14px; transition: transform .15s; }
.stepper button:active { transform: scale(.92); background: rgba(255, 255, 255, .12); }
.stepper .num { text-align: center; font-size: 38px; font-weight: 300; letter-spacing: -.04em; white-space: nowrap; }
.stepper .num small { font-size: 15px; color: var(--mute); margin-left: 3px; letter-spacing: 0; }

/* Visión */
.vision-card { padding: 22px; background: radial-gradient(120% 80% at 100% 0%, rgb(var(--acc-rgb) / .10), transparent 60%), var(--card); }
.vision-icon { font-size: 40px; margin-top: 12px; }
html[data-theme="noir"] .vision-icon { filter: grayscale(1) contrast(1.05) brightness(1.15); }
.vision-title { font-family: var(--serif); font-size: 36px; line-height: 1.02; margin-top: 8px; }
.vision-why { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--mute); margin-top: 8px; }

/* Cierre del día */
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mood { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); transition: all .3s var(--spring); }
.mood span { font-size: 28px; filter: grayscale(.6); transition: filter .3s, transform .3s var(--spring); }
.mood small { font-size: 10.5px; color: var(--mute); font-weight: 600; }
.mood.on { background: rgb(var(--acc-rgb) / .14); border-color: var(--violet); }
.mood.on span { filter: none; transform: scale(1.15); }
.glow-card { border-color: rgb(var(--acc-rgb) / .35) !important; box-shadow: 0 0 30px rgb(var(--glow-rgb) / .12) !important; }

/* Recibo */
.receipt { margin: 26px 0 16px; padding: 22px 20px; }
.rc-row { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 14.5px; }
.rc-row span { color: var(--mute); flex: none; }
.rc-row i { flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, .15); transform: translateY(-4px); }
.rc-row b { font-weight: 600; flex: none; }
.rc-sep { border-top: 1px dashed rgba(255, 255, 255, .2); margin: 14px 0; }
.rc-total { display: flex; align-items: baseline; justify-content: space-between; }
.rc-total span { font-size: 11px; letter-spacing: .25em; color: var(--mute); font-weight: 600; }
.rc-total b { font-size: 46px; font-weight: 300; letter-spacing: -.04em; }
.barcode { display: flex; gap: 3px; height: 46px; margin-top: 18px; justify-content: center; opacity: .75; }
.barcode i { background: var(--text); border-radius: 1px; }

/* Escribir como hablas */
.nl-box { margin-top: 14px; }
.nl-box .field { background: rgb(var(--acc-rgb) / .06); border-color: rgb(var(--acc-rgb) / .25); }
.nl-prev { margin-top: 8px; min-height: 20px; line-height: 1.45; }
.nl-go { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--stroke-2); color: var(--text); font-size: 14px; text-align: left; animation: fadeUp .3s var(--ease); }
.nl-go span { flex: 1; min-width: 0; }
.nl-go b { flex: none; color: var(--violet); }

/* Sonidos en modo foco */
.f-sounds { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.f-sounds .chip { height: 34px; font-size: 12.5px; padding: 0 12px; background: rgba(255, 255, 255, .05); }
.f-sounds .chip.on { background: var(--text); color: var(--on-grad); }

/* Bloqueo */
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 26px 0 8px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--mute); transition: all .25s var(--spring); }
.pin-dots i.on { background: var(--grad); border-color: transparent; transform: scale(1.15); box-shadow: 0 0 12px rgb(var(--glow-rgb) / .5); }
.pin-pad { max-width: 300px; margin: 18px auto 0; }
.pin-pad button { height: 64px; border-radius: 50%; width: 64px; margin: 0 auto; font-size: 26px; font-weight: 300; display: grid; place-items: center; }
.pin-pad span { display: block; }
.lock { position: fixed; inset: 0; z-index: 115; background: radial-gradient(90% 50% at 50% 30%, rgb(var(--glow-rgb) / .10), transparent 70%), #030303;
  display: grid; place-items: center; padding: calc(var(--safe-t) + 20px) 24px calc(var(--safe-b) + 20px); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.lock.open { opacity: 1; pointer-events: auto; }
.lock-inner { width: 100%; max-width: 340px; text-align: center; }
.lock-t { font-weight: 300; letter-spacing: .32em; margin-right: -.32em; font-size: 22px; margin-bottom: 6px; }
body.locked #app, body.locked .tabbar { filter: blur(20px); }

/* ---------- Simplificación ---------- */
.rank-chip { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--stroke); font-size: 13.5px; text-align: left; transition: transform .2s var(--ease); }
.rank-chip:active { transform: scale(.98); }
.rank-chip i { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5); }
.rank-chip b { font-weight: 700; }
.start-card { border-color: rgb(var(--acc-rgb) / .3) !important; }
.start-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--stroke); font-size: 15px; font-weight: 600; text-align: left; }
.start-row:first-of-type { border-top: 0; }
.start-row .check { width: 24px; height: 24px; }
.start-row.done { color: var(--faint); text-decoration: line-through; }
.start-row.done .check { background: var(--grad); border-color: transparent; }
.start-row.done .check svg { opacity: 1; transform: scale(1); }
.section-t { margin: 6px 4px 10px; letter-spacing: .24em; }
.quick-grid.q4 { grid-template-columns: 1fr 1fr; }
.quick-grid.q4 .quick-tile { aspect-ratio: auto; height: 116px; }
.quick-grid.q4 .quick-tile b { font-size: 16px; }
