/* Gym · Entrenar — oscuro, premium, acento lima. Mobile first. */
:root {
  --bg: #0b0b0c; --bg2: #131315; --bg3: #1c1c1f; --bg4: #26262a; --ln: #2a2a2e; --ln2: #3a3a40;
  --tx: #f5f5f4; --tx2: #a1a1a6; --tx3: #6e6e74; --ac: #d4ff3a; --ac-tx: #0b0b0c; --ac2: #b8e600; --rojo: #ff6b57;
  --f: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --fd: "Inter Tight", "Inter", system-ui, sans-serif;
  --r: 16px; --r2: 22px; color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--tx); font: 15px/1.45 var(--f); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
body.fijo { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; flex: none; }
.tx2 { color: var(--tx2); } .tx3 { color: var(--tx3); } .ac { color: var(--ac); }
.kick { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tx3); display: flex; align-items: center; gap: 6px; }
.kick svg { width: 14px; height: 14px; color: var(--ac); }
.et { font-size: 13px; font-weight: 600; color: var(--tx2); margin: 16px 0 8px; display: block; }
@keyframes sube { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes late { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,255,58,.5); } 50% { box-shadow: 0 0 0 8px rgba(212,255,58,0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; font-weight: 700; font-size: 15px; transition: transform .12s, background .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn.prim { background: var(--ac); color: var(--ac-tx); }
.btn.sec { background: var(--bg3); border: 1px solid var(--ln); }
.btn.rojo, .link.rojo { color: var(--rojo); }
.btn.grande { height: 58px; font-size: 17px; border-radius: 18px; }
.btn.chico { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn.ancho { width: 100%; }
.btn:disabled { opacity: .35; pointer-events: none; }
.link { color: var(--tx2); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; display: inline-flex; align-items: center; gap: 4px; }
.link svg { width: 15px; height: 15px; }
.link.centro { display: flex; margin: 14px auto 0; text-decoration: none; font-size: 14px; }
.redondo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); border: 1px solid var(--ln); font-weight: 700; font-size: 13px; flex: none; }
.campo { width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--ln); outline: none; font-size: 16px; transition: border-color .15s; }
.campo:focus { border-color: var(--ac); }
.campo.grande { height: 58px; font-size: 19px; font-weight: 600; }
textarea.campo { height: auto; padding: 12px 14px; resize: vertical; }
.campo.otra { margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--bg4); color: var(--tx2); white-space: nowrap; }
.tag.ac { background: var(--ac); color: var(--ac-tx); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { height: 36px; padding: 0 14px; border-radius: 99px; background: var(--bg3); border: 1px solid var(--ln); font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; }
.chip.on { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.card { background: var(--bg2); border: 1px solid var(--ln); border-radius: var(--r2); padding: 16px; }

/* sucursales */
.sucs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.suc input { position: absolute; opacity: 0; pointer-events: none; }
.suc span { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 12px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--ln); font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; transition: all .15s; }
.suc span svg { width: 16px; height: 16px; color: var(--tx3); }
.suc input:checked + span { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 12%, var(--bg3)); }
.suc input:checked + span svg { color: var(--ac); }
.suc input:focus-visible + span { outline: 2px solid var(--ac); outline-offset: 2px; }

/* bienvenida */
.ob { max-width: 480px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 20px 40px; animation: sube .5s both; }
.ob-logo { width: 72px; height: 72px; border-radius: 22px; background: #fff; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 0 0 6px rgba(212,255,58,.12); }
.ob-logo img { width: 52px; height: 52px; }
.ob h1 { font: 800 38px/1.04 var(--fd); letter-spacing: -.03em; margin: 10px 0 12px; }
.ob .ob-f { margin-top: 20px; }
.ob .btn.grande { width: 100%; margin-top: 22px; }
.legal { color: var(--tx3); font-size: 12px; text-align: center; margin-top: 16px; }

/* inicio */
.pag { max-width: 560px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 16px 40px; }
.cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; animation: sube .4s both; }
.yo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.yo h1 { font: 800 26px/1.05 var(--fd); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { width: 46px; height: 46px; border-radius: 15px; background: var(--ac); color: var(--ac-tx); display: grid; place-items: center; font: 800 17px var(--fd); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 99px; background: var(--bg3); border: 1px solid var(--ln); font-size: 12px; font-weight: 600; max-width: 48%; }
.pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill svg { width: 14px; height: 14px; color: var(--ac); }
.cta { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r2); background: var(--ac); color: var(--ac-tx); text-align: left; animation: sube .45s both .05s; transition: transform .12s; box-shadow: 0 12px 40px -12px rgba(212,255,58,.45); }
.cta:active { transform: scale(.98); }
.cta-i { width: 50px; height: 50px; border-radius: 16px; background: var(--ac-tx); color: var(--ac); display: grid; place-items: center; flex: none; }
.cta-i svg { width: 26px; height: 26px; stroke-width: 2.6; }
.cta b { display: block; font: 800 21px/1.1 var(--fd); letter-spacing: -.02em; }
.cta small { font-size: 13px; font-weight: 600; opacity: .7; }
.vivo { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--ac); text-align: left; animation: sube .4s both; }
.vivo > div { flex: 1; min-width: 0; } .vivo b { font-family: var(--fd); font-size: 17px; }
.pulso { width: 12px; height: 12px; border-radius: 50%; background: var(--ac); animation: late 1.6s infinite; flex: none; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kpi { background: var(--bg2); border: 1px solid var(--ln); border-radius: var(--r); padding: 14px; animation: sube .45s both; }
.kpi-t { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx2); font-weight: 600; }
.kpi-t svg { width: 15px; height: 15px; color: var(--ac); }
.kpi b { display: block; font: 800 30px/1.1 var(--fd); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--tx3); font-size: 12px; }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0; }
.dia { display: grid; justify-items: center; gap: 5px; font-size: 11px; color: var(--tx3); font-weight: 600; }
.dia i { width: 100%; max-width: 42px; aspect-ratio: 1; border-radius: 12px; background: var(--bg2); border: 1px solid var(--ln); display: grid; place-items: center; font-style: normal; font-size: 13px; color: var(--tx2); }
.dia.hoy i { border-color: var(--tx); color: var(--tx); }
.dia.on i { background: var(--ac); border-color: var(--ac); color: var(--ac-tx); }
.dia.on i svg { width: 16px; height: 16px; stroke-width: 3; }
.rec { margin-bottom: 10px; animation: sube .5s both .15s; }
.rec-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0; }
.rec-f b { display: block; font: 800 19px/1.15 var(--fd); letter-spacing: -.01em; }
.rec-f span { font-size: 13px; }
.musc { display: flex; flex-wrap: wrap; gap: 6px; }
.tip { display: flex; gap: 12px; align-items: flex-start; animation: sube .5s both .2s; }
.tip-i { width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--ac) 14%, transparent); color: var(--ac); display: grid; place-items: center; flex: none; }
.tip p { margin-top: 4px; font-size: 14px; }
.h2 { font: 800 20px var(--fd); letter-spacing: -.01em; margin: 26px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.h2 small { font-size: 13px; color: var(--tx3); font-weight: 600; }
.hist { display: grid; gap: 8px; }
.hi { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--ln); text-align: left; animation: sube .4s both; }
.hi-f { text-align: center; border-right: 1px solid var(--ln); padding-right: 10px; }
.hi-f b { display: block; font-size: 12px; line-height: 1.2; }
.hi-f span { font-size: 12px; color: var(--tx3); }
.hi-m b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-m span { font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-c { display: grid; justify-items: end; gap: 4px; }
.estr { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 13px; }
.estr svg { width: 14px; height: 14px; color: var(--ac); }
.vacio { text-align: center; padding: 34px 16px; color: var(--tx3); border: 1px dashed var(--ln2); border-radius: var(--r2); }
.vacio svg { width: 34px; height: 34px; margin-bottom: 8px; }
.pie { margin-top: 30px; text-align: center; display: grid; gap: 12px; justify-items: center; font-size: 12px; color: var(--tx2); }
.pie .btn svg { color: var(--ac); }

/* entrenamiento en curso */
.curso { max-width: 560px; margin: 0 auto; padding: 0 12px; }
.top { position: sticky; top: 0; z-index: 20; margin: 0 -12px; padding: calc(10px + env(safe-area-inset-top)) 12px 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--ln); }
.top-f { display: flex; align-items: center; gap: 10px; }
.top-t { flex: 1; min-width: 0; text-align: center; }
.top-t b { display: block; font: 800 17px/1.2 var(--fd); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-t span { font-size: 12px; color: var(--tx2); display: inline-flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; white-space: nowrap; }
.top-t span svg { width: 12px; height: 12px; color: var(--ac); }
.tiempos { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px; margin-top: 12px; text-align: center; }
.tiempos div { background: var(--bg2); border: 1px solid var(--ln); border-radius: 12px; padding: 6px 4px; }
.tiempos small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--tx3); font-weight: 700; }
.tiempos b { font: 800 18px var(--fd); font-variant-numeric: tabular-nums; }
.tiempos .centro b { color: var(--ac); font-size: 22px; }
.prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--tx2); }
.prog-b { flex: 1; height: 8px; border-radius: 99px; background: var(--bg3); overflow: hidden; }
.prog-b i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ac2), var(--ac)); border-radius: 99px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.prog span { white-space: nowrap; font-variant-numeric: tabular-nums; } .prog b { color: var(--tx); }
.ejs { display: grid; gap: 10px; padding-top: 12px; }
.ej { background: var(--bg2); border: 1px solid var(--ln); border-radius: var(--r2); overflow: hidden; transition: border-color .2s; scroll-margin-top: 190px; }
.ej.abierto { border-color: var(--ln2); }
.ej.listo { border-color: color-mix(in srgb, var(--ac) 45%, var(--ln)); }
.ej-cab { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; text-align: left; }
.anillo { position: relative; width: 40px; height: 40px; flex: none; }
.anillo svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.a-f { fill: none; stroke: var(--bg4); stroke-width: 3.5; }
.a-p { fill: none; stroke: var(--ac); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset .5s cubic-bezier(.2,.8,.2,1); }
.anillo > span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 14px var(--fd); }
.ej.listo .anillo > span { color: var(--ac); }
.ej.listo .anillo > span svg { width: 18px; height: 18px; stroke-width: 3; }
.ej-t { flex: 1; min-width: 0; }
.ej-t b { display: block; font-size: 16px; line-height: 1.25; }
.ej-t small { color: var(--tx2); font-size: 12px; }
.ej.listo .ej-t small { color: var(--ac); font-weight: 600; }
.ej-r { font: 700 13px var(--fd); color: var(--tx3); white-space: nowrap; }
.ej-cuerpo { display: none; padding: 0 14px 14px; }
.ej.abierto .ej-cuerpo { display: block; animation: sube .25s both; }
.hint { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--tx2); margin-bottom: 8px; }
.hint b { color: var(--tx); }
.hint .tag { cursor: pointer; border: 0; font: 700 12px var(--f); }
.tipx { margin-bottom: 10px; }
.tipx summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ac); cursor: pointer; }
.tipx summary::-webkit-details-marker { display: none; }
.tipx summary svg { width: 15px; height: 15px; }
.tipx p { font-size: 13px; color: var(--tx2); margin-top: 6px; padding: 10px 12px; background: var(--bg3); border-radius: 12px; }
.sets { display: grid; gap: 8px; }
.set { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) 52px; gap: 8px; align-items: center; transition: opacity .2s; }
.set:has(.paso:only-of-type) { grid-template-columns: 26px minmax(0, 1fr) 52px; }
.sn { font: 800 14px var(--fd); color: var(--tx3); text-align: center; }
.paso { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; height: 52px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--ln); }
.paso button { height: 100%; display: grid; place-items: center; color: var(--tx2); }
.paso button svg { width: 16px; height: 16px; }
.paso button:active { color: var(--ac); }
.paso label { display: grid; justify-items: center; line-height: 1; }
.paso input { width: 100%; background: none; border: 0; outline: none; text-align: center; font: 800 19px var(--fd); font-variant-numeric: tabular-nums; padding: 0; }
.paso small { font-size: 10px; color: var(--tx3); font-weight: 600; margin-top: 2px; }
.paso.off { opacity: .55; }
.chk { width: 52px; height: 52px; border-radius: 16px; border: 2px solid var(--ln2); display: grid; place-items: center; color: var(--tx3); transition: all .15s; }
.chk svg { width: 24px; height: 24px; stroke-width: 2.8; }
.chk:active { transform: scale(.92); }
.set.ok .chk { background: var(--ac); border-color: var(--ac); color: var(--ac-tx); }
.set.ok .sn { color: var(--ac); }
.ej-pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.ej-pie .link { text-decoration: none; font-weight: 600; }
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.barra > * { max-width: 536px; margin: 0 auto; }
.desc { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 20px; background: var(--bg3); border: 1px solid var(--ac); box-shadow: 0 10px 40px rgba(0,0,0,.6); animation: sube .25s both; }
.d-anillo svg { width: 44px; height: 44px; transform: rotate(-90deg); display: block; }
.d-anillo .a-p { transition: stroke-dashoffset .25s linear; }
.d-t { flex: 1; min-width: 0; }
.d-t small { display: block; font-size: 11px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-t b { font: 800 24px var(--fd); font-variant-numeric: tabular-nums; color: var(--ac); }
.desc .redondo { width: 38px; height: 38px; }

/* fotos de ejercicios: inicio ↔ fin alternándose */
@keyframes alterna { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.foto { position: relative; overflow: hidden; background: #e9e9e6; aspect-ratio: 3 / 2; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto .f2 { opacity: 0; animation: alterna 2.6s ease-in-out infinite; }
.foto.sin { display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--ac);
  background: radial-gradient(120% 90% at 20% 10%, hsl(var(--h) 70% 30% / .9), transparent 60%), radial-gradient(90% 90% at 90% 100%, rgba(212,255,58,.22), transparent 60%), var(--bg3); }
.foto.sin svg { width: 38%; max-width: 64px; height: auto; stroke-width: 1.6; }
.foto.sin span { font: 800 12px var(--fd); letter-spacing: .14em; text-transform: uppercase; color: var(--tx); }
.foto.mini { width: 100%; border-radius: 10px; }
.foto.mini.sin svg { width: 40%; } .foto.mini.sin span { display: none; }
.tira { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 4px; }
.rut .tira { margin: 8px 0 0; }

/* galería del entrenamiento */
.gal-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 16px 2px 10px; }
.gal-cab h2 { font: 800 20px var(--fd); letter-spacing: -.01em; }
.gal-cab span { font-size: 13px; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 130px; }
.gc { position: relative; display: grid; border-radius: var(--r2); overflow: hidden; background: var(--bg2); border: 1px solid var(--ln); text-align: left; animation: sube .4s both; transition: transform .12s, border-color .2s; }
.gc:active { transform: scale(.97); }
.gc .foto { aspect-ratio: 4 / 3; }
.gc::after { content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 3; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); pointer-events: none; }
.gc-n { position: absolute; top: 8px; left: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 10px; background: rgba(11,11,12,.82); backdrop-filter: blur(6px); display: grid; place-items: center; font: 800 13px var(--fd); }
.gc-ya { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 4px 9px; border-radius: 99px; background: var(--ac); color: var(--ac-tx); font: 800 11px var(--fd); letter-spacing: .06em; text-transform: uppercase; animation: late 1.6s infinite; }
.gc-ok { position: absolute; z-index: 2; top: 0; left: 0; right: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; background: rgba(11,11,12,.55); }
.gc-ok svg { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: var(--ac); color: var(--ac-tx); stroke-width: 3; animation: sube .3s both; }
.gc-t { padding: 10px 12px 12px; display: grid; gap: 3px; }
.gc-t b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-t small { font-size: 12px; color: var(--tx2); }
.gc-b { display: block; height: 5px; border-radius: 9px; background: var(--bg4); overflow: hidden; margin-top: 4px; }
.gc-b i { display: block; height: 100%; background: var(--ac); border-radius: 9px; transition: width .5s; }
.gc.listo { border-color: color-mix(in srgb, var(--ac) 50%, var(--ln)); }
.gc.listo .gc-t small { color: var(--ac); font-weight: 700; }
.gc.sig { border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac), 0 10px 30px -10px rgba(212,255,58,.35); }
.gc.nuevo { place-content: center; justify-items: center; gap: 8px; min-height: 190px; border-style: dashed; border-color: var(--ln2); color: var(--tx2); }
.gc.nuevo::after { display: none; }
.gc-mas { width: 48px; height: 48px; border-radius: 16px; background: var(--bg3); display: grid; place-items: center; color: var(--ac); }
.dos-b { display: grid; grid-template-columns: 1fr 58px; gap: 8px; }
.dos-b .btn.prim { justify-content: flex-start; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; padding: 0 16px; }
.dos-b .btn.prim svg { fill: currentColor; }
.dos-b .btn.sec { padding: 0; }

/* foco: un ejercicio por pantalla con deslizamiento */
.foco { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.f-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 8px; max-width: 600px; width: 100%; margin: 0 auto; }
.f-mid { flex: 1; min-width: 0; text-align: center; }
.f-mid b { font: 700 13px var(--fd); color: var(--tx2); letter-spacing: .02em; }
.puntos { display: flex; justify-content: center; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.puntos i { width: 7px; height: 7px; border-radius: 9px; background: var(--bg4); transition: all .25s; }
.puntos i.ok { background: color-mix(in srgb, var(--ac) 55%, var(--bg4)); }
.puntos i.on { width: 22px; background: var(--ac); }
.f-crono { text-align: right; min-width: 72px; }
.f-crono small { display: block; font-size: 10px; color: var(--tx3); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.f-crono b { font: 800 18px var(--fd); color: var(--ac); font-variant-numeric: tabular-nums; }
.f-prog { height: 3px; background: var(--bg3); max-width: 600px; width: 100%; margin: 0 auto; }
.f-prog i { display: block; height: 100%; width: 0; background: var(--ac); transition: width .5s; }
.slides { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; overflow-y: auto; padding: 12px 12px 170px; }
.slide > * { max-width: 576px; margin-left: auto; margin-right: auto; }
.s-foto { position: relative; border-radius: 24px; overflow: hidden; }
.s-foto .foto { aspect-ratio: 3 / 2; }
.s-g { position: absolute; left: 10px; bottom: 10px; background: rgba(11,11,12,.8); color: var(--tx); backdrop-filter: blur(6px); }
.s-listo { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: rgba(11,11,12,.6); animation: sube .3s both; }
.s-listo svg { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--ac); color: var(--ac-tx); stroke-width: 3; }
.s-listo b { font: 800 22px var(--fd); }
.s-cuerpo h2 { font: 800 25px/1.12 var(--fd); letter-spacing: -.02em; margin: 14px 0 10px; }
.s-est { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.s-est b { display: block; font-size: 15px; } .s-est small { color: var(--tx2); font-size: 12px; }
.s-cta { margin-top: 16px; }
.set.act .paso { border-color: var(--ln2); background: var(--bg4); }
.set.act .sn { color: var(--tx); }
.f-desc { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30; }
.f-desc > * { max-width: 576px; margin: 0 auto; }
.acc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--ln); }
.acc button { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 14px; font-size: 12px; font-weight: 600; color: var(--tx2); transition: background .15s, color .15s; }
.acc button svg { width: 22px; height: 22px; }
.acc button:active { background: var(--bg3); color: var(--tx); }
.acc .fin { color: var(--ac); }

/* hoja inferior */
.velo { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; z-index: 50; }
.velo.on { opacity: 1; }
.hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg2); border-top: 1px solid var(--ln2); border-radius: 26px 26px 0 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: 600px; margin: 0 auto; }
.hoja.on { transform: none; }
.hoja.alta { min-height: 60vh; }
.asa { width: 42px; height: 5px; border-radius: 9px; background: var(--ln2); margin: 0 auto 12px; }
.hcab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.hcab h2 { font: 800 23px/1.15 var(--fd); letter-spacing: -.02em; margin-top: 4px; }
.hoja-pie { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); margin: 14px -18px calc(-22px - env(safe-area-inset-bottom)); padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg2) 25%); }
.hoja-pie.dos { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: static; margin: 18px 0 0; padding: 0; background: none; }
.ruts { display: grid; gap: 8px; }
.rut { display: grid; gap: 4px; padding: 14px; border-radius: var(--r); background: var(--bg3); border: 1px solid var(--ln); text-align: left; animation: sube .35s both; transition: border-color .15s, transform .12s; }
.rut:active { transform: scale(.98); border-color: var(--ac); }
.rut-c { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rut-c b { font: 800 17px var(--fd); display: inline-flex; align-items: center; gap: 8px; }
.rut-c b svg { color: var(--ac); }
.rut span { font-size: 13px; }
.rut .tx3 { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rut.libre { border-style: dashed; border-color: var(--ln2); }
#bq { margin: 6px 0 10px; }
.elis { display: grid; gap: 6px; margin-top: 8px; }
.eli { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--ln); text-align: left; }
.eli b { display: block; font-size: 15px; } .eli small { color: var(--tx3); font-size: 12px; }
.caja { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ln2); display: grid; place-items: center; color: transparent; flex: none; transition: all .12s; }
.caja svg { width: 16px; height: 16px; stroke-width: 3; }
.eli.on { border-color: var(--ac); } .eli.on .caja { background: var(--ac); border-color: var(--ac); color: var(--ac-tx); }
.eli.ya { opacity: .5; }
.res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 4px; }
.res div { background: var(--bg3); border: 1px solid var(--ln); border-radius: 14px; padding: 10px; }
.res small { display: block; font-size: 11px; color: var(--tx3); font-weight: 600; }
.res b { font: 800 18px var(--fd); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.res.grande { grid-template-columns: 1fr 1fr; margin: 22px 0; }
.res.grande b { font-size: 28px; }
.aviso { font-size: 13px; color: var(--tx2); background: var(--bg3); border-left: 3px solid var(--ac); padding: 8px 12px; border-radius: 8px; margin-top: 10px; }
.estrellas { display: flex; gap: 6px; }
.estrellas button { width: 52px; height: 52px; display: grid; place-items: center; color: var(--bg4); transition: transform .15s, color .15s; }
.estrellas button svg { width: 40px; height: 40px; }
.estrellas button.on { color: var(--ac); transform: scale(1.08); }
.es-t { font-size: 13px; color: var(--tx2); margin-top: 4px; font-weight: 600; }
.estrellas.chicas { align-items: center; margin: 12px 0; } .estrellas.chicas span { color: var(--bg4); } .estrellas.chicas span.on { color: var(--ac); }
.estrellas.chicas svg { width: 22px; height: 22px; } .estrellas.chicas .tx2 { margin-left: 6px; font-size: 13px; }
#qk { margin-bottom: 10px; }
.obs { margin: 10px 0; display: grid; gap: 8px; } .obs p { font-size: 14px; white-space: pre-wrap; }
.prs { margin: 10px 0; display: grid; gap: 8px; }
.pr { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.det { display: grid; gap: 8px; margin-top: 12px; }
.det-e { background: var(--bg3); border-radius: 14px; padding: 10px 12px; }
.det-e b { font-size: 14px; }
.det-s { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.det-s span { font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--bg4); font-variant-numeric: tabular-nums; }
.det-s span.no { opacity: .4; text-decoration: line-through; }

/* celebración */
.fiesta { max-width: 480px; margin: 0 auto; padding: calc(56px + env(safe-area-inset-top)) 20px 40px; text-align: center; animation: sube .5s both; }
.f-icono { width: 88px; height: 88px; border-radius: 28px; background: var(--ac); color: var(--ac-tx); display: grid; place-items: center; margin: 0 auto 18px; animation: late 1.8s infinite; }
.f-icono svg { width: 44px; height: 44px; }
.fiesta .kick { justify-content: center; }
.fiesta h1 { font: 800 34px/1.1 var(--fd); letter-spacing: -.02em; margin-top: 8px; }
.fiesta .res div { text-align: left; }
.fiesta .prs { text-align: left; margin-bottom: 22px; }

/* toasts y confeti */
.toasts { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--tx); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: sube .25s both; transition: opacity .3s; }
.toast svg { color: var(--ac2); stroke-width: 3; } .toast.mal svg { color: var(--rojo); }
.toast.fuera { opacity: 0; }
.confeti { position: fixed; width: 8px; height: 12px; border-radius: 2px; z-index: 90; pointer-events: none; }

@media (min-width: 700px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .hoja { max-height: 88vh; }
}

/* ajustes: miniaturas en listas y check vacío hasta que se marca */
.eli .foto.mini { width: 68px; flex: none; border-radius: 10px; }
.eli { padding: 8px 12px 8px 8px; }
.det-e { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.chk { border-radius: 50%; border-style: dashed; }
.set.act .chk { border-style: solid; border-color: var(--ac); }
.set.ok .chk { border-style: solid; animation: sube .2s both; }
.s-cta { position: sticky; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 -12px 28px 6px var(--bg), 0 10px 30px -8px rgba(212,255,58,.4); transition: bottom .25s; }
.foco.descansando .s-cta { bottom: calc(160px + env(safe-area-inset-bottom)); }
.slide { padding-bottom: 24px; }

/* pestañas */
.pag { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--ln); }
.tabs button { display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border-radius: 14px; font-size: 11px; font-weight: 600; color: var(--tx3); transition: color .2s; position: relative; }
.tabs button svg { width: 22px; height: 22px; }
.tabs button.on { color: var(--tx); }
.tabs button.on svg { color: var(--ac); }
.tabs button.on::before { content: ""; position: absolute; top: -6px; width: 26px; height: 3px; border-radius: 9px; background: var(--ac); }
@media (min-width: 700px) { .tabs { max-width: 560px; margin: 0 auto 14px; border: 1px solid var(--ln); border-radius: 22px; } }
.h1 { font: 800 30px/1.08 var(--fd); letter-spacing: -.025em; margin: 4px 0 14px; }

/* objetivo */
.plan-ob h1 { font-size: 32px; }
.plan-ob > .redondo { margin-bottom: 14px; }
.objs { display: grid; gap: 8px; margin-top: 18px; }
.obj { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--ln); text-align: left; transition: border-color .15s, background .15s; }
.obj-i { width: 46px; height: 46px; border-radius: 14px; background: var(--bg3); display: grid; place-items: center; font-size: 24px; flex: none; }
.obj b { display: block; font-size: 15px; } .obj small { color: var(--tx2); font-size: 12px; }
.obj.on { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 9%, var(--bg2)); }
.obj.on .obj-i { background: var(--ac); }
.chip.num { min-width: 52px; justify-content: center; }

/* mi plan */
.plan-vacio { display: grid; gap: 10px; } .plan-vacio b { font: 800 19px var(--fd); }
.dia.plan i { border-color: var(--ln2); color: var(--tx); font-weight: 800; font-size: 12px; background: var(--bg3); }
.consejos { display: grid; gap: 8px; margin-bottom: 14px; }
.consejos p { font-size: 14px; padding-left: 14px; position: relative; }
.consejos p::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }
.pdias { display: grid; gap: 12px; }
.pdia { background: var(--bg2); border: 1px solid var(--ln); border-radius: var(--r2); padding: 14px; display: grid; gap: 12px; animation: sube .4s both; }
.pdia.prox { border-color: var(--ac); box-shadow: 0 10px 34px -14px rgba(212,255,58,.35); }
.pd-cab { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pd-cab b { display: block; font: 800 19px/1.2 var(--fd); margin: 2px 0; } .pd-cab .tx2 { font-size: 13px; }
.pd-ej { display: grid; gap: 6px; }
.pd-f { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; padding: 4px; border-radius: 12px; }
.pd-f:active { background: var(--bg3); }
.pd-f b { display: block; font-size: 14px; line-height: 1.25; } .pd-f small { color: var(--tx2); font-size: 12px; }

/* biblioteca */
#eq { margin-bottom: 4px; }
.carr { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.carr::-webkit-scrollbar { display: none; }
.cc { flex: 0 0 150px; scroll-snap-align: start; display: grid; gap: 4px; text-align: left; }
.cc .foto { border-radius: 16px; }
.cc b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .cc small { color: var(--tx3); font-size: 12px; }
.musculos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mt { position: relative; border-radius: 18px; overflow: hidden; border: 2px solid transparent; text-align: left; transition: border-color .15s, transform .12s; }
.mt:active { transform: scale(.97); }
.mt .foto { aspect-ratio: 16 / 10; }
.mt > span { position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.85)); z-index: 2; }
.mt b { display: block; font: 800 17px var(--fd); color: #fff; } .mt small { color: rgba(255,255,255,.75); font-size: 12px; }
.mt.on { border-color: var(--ac); }
.mt .foto.sin span { display: none; }
#lt { scroll-margin-top: 12px; } #lt .link { font-size: 13px; margin-left: auto; }
.ejgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.eg { position: relative; display: grid; gap: 4px; text-align: left; animation: sube .3s both; }
.eg .foto { border-radius: 16px; }
.eg b { font-size: 13px; line-height: 1.25; } .eg small { color: var(--tx3); font-size: 12px; }
.eg-v { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 2px 8px; border-radius: 99px; background: var(--ac); color: var(--ac-tx); font: 800 11px var(--fd); }
@media (min-width: 700px) { .ejgrid { grid-template-columns: repeat(3, 1fr); } .musculos { grid-template-columns: repeat(4, 1fr); } }
.ve-foto { position: relative; margin: 0 -18px; }
.ve-foto .foto { aspect-ratio: 3 / 2; border-radius: 22px 22px 0 0; }
.ve-x { position: absolute; top: 10px; right: 12px; background: rgba(11,11,12,.7); backdrop-filter: blur(6px); }
.hoja:has(.ve-foto) .asa { position: absolute; left: 50%; transform: translateX(-50%); top: 8px; z-index: 3; background: rgba(255,255,255,.6); }
.hoja:has(.ve-foto) { padding-top: 0; }
.ve-t { font: 800 25px/1.15 var(--fd); letter-spacing: -.02em; margin: 4px 0 12px; }
.ve-tip p { font-size: 14px; margin-top: 6px; }
.ve-graf, .graf { margin-top: 10px; }

/* progreso */
.barras { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 12px; }
.br { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.br i { width: 100%; max-width: 34px; height: 0; border-radius: 8px 8px 4px 4px; background: linear-gradient(var(--ac), var(--ac2)); transition: height .8s cubic-bezier(.2,.8,.2,1); }
.br small { font: 700 11px var(--fd); color: var(--tx2); order: -1; }
.br span { font-size: 10px; color: var(--tx3); }
.br.hoy i { box-shadow: 0 0 18px rgba(212,255,58,.5); }
.pag > .card { margin-top: 10px; }
.heat { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 4px; margin-top: 12px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--bg3); }
.heat i.on { background: var(--ac); box-shadow: 0 0 8px rgba(212,255,58,.35); }
.heat i.fut { opacity: .3; }
.gbar { display: grid; gap: 8px; margin-top: 12px; }
.gb { display: grid; grid-template-columns: 74px minmax(0, 1fr) 30px; gap: 10px; align-items: center; font-size: 13px; }
.gb div { height: 10px; border-radius: 9px; background: var(--bg3); overflow: hidden; }
.gb div i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--ac2), var(--ac)); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.gb b { text-align: right; font-variant-numeric: tabular-nums; }
.recs { display: grid; gap: 6px; margin-top: 10px; }
.rc { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 4px; border-radius: 12px; }
.rc b { display: block; font-size: 14px; } .rc small { color: var(--tx3); font-size: 12px; }
.vivo-f { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 39; max-width: 536px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 18px; background: var(--bg3); border: 1px solid var(--ac); box-shadow: 0 10px 30px rgba(0,0,0,.6); text-align: left; animation: sube .3s both; }
.vivo-f b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.vivo-f [data-vivo] { font: 800 15px var(--fd); color: var(--ac); font-variant-numeric: tabular-nums; }
.pag:has(~ .vivo-f) { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
.carr { scroll-padding-inline: 16px; }

/* ── v4: barra superior segura, fotos sin recortar cuerpos, inicio con fotos, serie actual arriba, resumen visual ── */
body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: env(safe-area-inset-top); background: var(--bg); z-index: 70; pointer-events: none; }
/* las fotos del catálogo son 3:2: mismo formato en todas partes para no cortar cabezas ni pies */
.gc .foto, .mt .foto { aspect-ratio: 3 / 2; }
.gc::after, .gc-ok { aspect-ratio: 3 / 2; }
.foto.fondo { position: absolute; inset: 0; aspect-ratio: auto; }

/* avisos: chicos, abajo, sin tapar nada de arriba */
.toasts { top: auto; bottom: calc(104px + env(safe-area-inset-bottom)); justify-items: center; width: min(92vw, 420px); }
.toast { padding: 9px 14px; border-radius: 99px; background: rgba(28,28,31,.97); color: var(--tx); border: 1px solid var(--ln2); font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.toast svg { width: 16px; height: 16px; color: var(--ac); }

/* inicio: tarjeta grande con foto */
.hero-card { border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--ln); overflow: hidden; animation: sube .45s both .05s; }
.hero { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 300px; overflow: hidden; text-align: left; border-radius: var(--r2) var(--r2) 0 0; }
.hero.vivo { display: block; gap: 0; border-radius: var(--r2); border: 1px solid var(--ln2); animation: sube .4s both; padding: 0; background: var(--bg2); }
.hero .foto.fondo img { object-position: center 35%; }
.hero-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.05) 25%, rgba(11,11,12,.72) 62%, rgba(11,11,12,.96)); }
.hero-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: grid; gap: 4px; }
.hero-t .kick { color: var(--ac); }
.hero-t b { font: 800 26px/1.08 var(--fd); letter-spacing: -.02em; color: #fff; }
.hero-t small { font-size: 13px; color: rgba(255,255,255,.78); }
.hero-fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.85); font-weight: 600; }
.hero-m { display: inline-flex; align-items: center; gap: 6px; }
.hero-m svg { width: 15px; height: 15px; color: var(--ac); margin-left: 4px; }
.hero-m svg:first-child { margin-left: 0; }
.hero-b { display: block; height: 6px; border-radius: 9px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 8px; }
.hero-b i { display: block; height: 100%; background: var(--ac); border-radius: 9px; }
.hero .pulso { width: 9px; height: 9px; }
.hero-pie { padding: 12px; display: grid; gap: 12px; }
.hero-pie .tira { margin: 0; }
.hero-bt { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.hero-bt .btn { white-space: nowrap; padding: 0 12px; font-size: 14px; }
.hero-bt .btn svg { width: 17px; height: 17px; }
.hero-bt .btn.prim svg { fill: currentColor; }
.mtc { flex: 0 0 156px; scroll-snap-align: start; }
.mtc b { font-size: 15px; }
.hi { grid-template-columns: 72px minmax(0, 1fr) auto; padding: 8px 12px 8px 8px; }
.hi .foto.mini { border-radius: 12px; }
.hi-m span { margin-top: 1px; }
.vacio .tira { margin: 0 0 12px; opacity: .55; }

/* pestañas con "en curso" acoplado (no flota sobre el contenido) */
.tabs { display: block; padding: 0 8px calc(6px + env(safe-area-inset-bottom)); }
.tabs-g { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 6px; }
.vivo-s { width: 100%; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px; border-bottom: 1px solid var(--ln); font-size: 13px; color: var(--tx2); text-align: left; }
.tabs .vivo-s { display: flex; justify-items: initial; padding: 0 6px; border-radius: 0; font-size: 13px; font-weight: 500; color: var(--tx2); }
.tabs .vivo-s::before { display: none; }
.tabs .vivo-s svg { width: 15px; height: 15px; }
.vivo-s .pulso { width: 8px; height: 8px; }
.f-rv .kick { justify-content: flex-start; }
.vs-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vs-t b { color: var(--tx); }
.vs-c { font: 700 13px var(--fd); color: var(--tx); font-variant-numeric: tabular-nums; }
.vs-ir { display: inline-flex; align-items: center; gap: 2px; color: var(--ac); font-weight: 700; }
.vs-ir svg { width: 15px; height: 15px; }
.pag:has(~ .tabs .vivo-s) { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }

/* foco: serie actual arriba */
.slide { padding: 12px 12px calc(100px + env(safe-area-inset-bottom)); }
.s-foto { border-radius: 22px; }
.s-listo { background: rgba(11,11,12,.45); }
.s-cuerpo h2 { margin: 12px 0 2px; font-size: 23px; }
.s-sub { font-size: 13px; color: var(--tx2); margin-bottom: 12px; } .s-sub b { color: var(--tx); }
.f-crono.rest small { color: var(--ac); }
.f-crono.rest b { color: var(--tx); }
.sug { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: color-mix(in srgb, var(--ac) 10%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--ac) 40%, var(--ln)); font-size: 13px; text-align: left; color: var(--tx2); }
.sug svg { color: var(--ac); } .sug b { color: var(--ac); }
.actual { background: var(--bg2); border: 1px solid var(--ln2); border-radius: 22px; padding: 14px; display: grid; gap: 12px; animation: sube .25s both; }
.ac-cab { display: flex; justify-content: space-between; align-items: center; }
.ac-cab .kick { color: var(--tx); font-size: 12px; }
.ac-pts { display: flex; gap: 5px; }
.ac-pts i { width: 18px; height: 6px; border-radius: 9px; background: var(--bg4); }
.ac-pts i.ok { background: var(--ac); } .ac-pts i.on { background: var(--tx); }
.ac-pasos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ac-pasos.uno { grid-template-columns: 1fr; }
.pg { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; height: 76px; border-radius: 18px; background: var(--bg3); border: 1px solid var(--ln); }
.pg button { height: 100%; display: grid; place-items: center; color: var(--tx2); border-radius: 18px; }
.pg button:active { color: var(--ac); background: var(--bg4); }
.pg button svg { width: 20px; height: 20px; }
.pg label { display: grid; justify-items: center; line-height: 1; }
.pg input { width: 100%; background: none; border: 0; outline: none; text-align: center; font: 800 32px var(--fd); letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding: 0; }
.pg small { font-size: 11px; color: var(--tx3); font-weight: 700; margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }
.ac-ok { box-shadow: 0 10px 30px -10px rgba(212,255,58,.45); }
.ac-ok svg { width: 22px; height: 22px; stroke-width: 3; }
.ac-ok.hecha { background: var(--bg4); color: var(--tx); box-shadow: none; }
.ac-ok.hecha svg { color: var(--ac); }
.dp { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; border-color: color-mix(in srgb, var(--ac) 55%, var(--ln)); }
.dp-anillo { position: relative; width: 116px; height: 116px; }
.dp-anillo svg { width: 116px; height: 116px; transform: rotate(-90deg); }
.dp-anillo .a-f { stroke-width: 9; } .dp-anillo .a-p { stroke-width: 9; transition: stroke-dashoffset .25s linear; }
.dp-anillo > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dp-anillo small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--tx3); font-weight: 700; }
.dp-anillo b { font: 800 28px var(--fd); color: var(--ac); font-variant-numeric: tabular-nums; }
.dp-d { display: grid; gap: 8px; min-width: 0; }
.dp-d small { font-size: 11px; color: var(--tx3); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.dp-d > b { font-size: 15px; line-height: 1.25; margin-top: -6px; }
.dp-bt { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lp { justify-items: center; text-align: center; gap: 6px; padding: 18px 14px 14px; border-color: color-mix(in srgb, var(--ac) 55%, var(--ln)); }
.lp-i { width: 52px; height: 52px; border-radius: 50%; background: var(--ac); color: var(--ac-tx); display: grid; place-items: center; }
.lp-i svg { width: 28px; height: 28px; stroke-width: 3; }
.lp > b { font: 800 19px var(--fd); }
.lp .btn { margin-top: 8px; }
.sets-t { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 8px; }
.sets-t .link { text-decoration: none; font-weight: 600; font-size: 13px; color: var(--ac); }
.lista-s { display: grid; gap: 6px; }
.ls { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; align-items: center; }
.ls-v { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--ln); text-align: left; font-variant-numeric: tabular-nums; }
.ls-v b { font-size: 15px; }
.ls .sn { width: 22px; }
.ls.on .ls-v { border-color: var(--tx); background: var(--bg3); }
.ls.ok .ls-v b { color: var(--tx2); }
.ls .chk { width: 48px; height: 48px; }
.ls.ok .chk { background: var(--ac); border: 2px solid var(--ac); color: var(--ac-tx); }
.ls.ok .sn { color: var(--ac); }
.tipx { margin-top: 14px; }

/* terminar y resumen visual */
.btn.fant { background: transparent; border: 1px solid var(--ln); color: var(--tx2); font-weight: 600; }
.btn.fant svg { width: 16px; height: 16px; }
.fin-bt { display: grid; gap: 8px; margin-top: 22px; }
.fin-bt .btn.prim svg { stroke-width: 3; }
.rv { margin-top: 8px; }
.rv-top { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; }
.rv-anillo { position: relative; width: 128px; height: 128px; }
.rv-anillo svg { width: 128px; height: 128px; transform: rotate(-90deg); }
.rv-anillo .a-f { stroke-width: 11; } .rv-anillo .a-p { stroke-width: 11; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 6px rgba(212,255,58,.35)); }
.rv-anillo > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rv-anillo b { font: 800 30px var(--fd); letter-spacing: -.02em; }
.rv-anillo small { font-size: 11px; color: var(--tx3); font-weight: 600; }
.rv-kp { display: grid; gap: 8px; min-width: 0; }
.rv-kp > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rv-i { width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--ac) 13%, var(--bg3)); color: var(--ac); display: grid; place-items: center; flex: none; }
.rv-i svg { width: 17px; height: 17px; }
.rv-kp b { display: block; font: 800 17px/1.15 var(--fd); font-variant-numeric: tabular-nums; }
.rv-kp small { font-size: 12px; color: var(--tx3); }
.rv-kp em { font-style: normal; font-weight: 800; } .rv-kp em.sube { color: var(--ac); } .rv-kp em.baja { color: #ffb15c; }
.rv-g { margin-top: 16px; }
.rv-seg { display: flex; gap: 3px; height: 14px; margin-top: 8px; }
.rv-seg i { border-radius: 5px; min-width: 8px; }
.rv-ley { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12px; color: var(--tx2); }
.rv-ley span { display: inline-flex; align-items: center; gap: 5px; }
.rv-ley i { width: 9px; height: 9px; border-radius: 3px; }
.rv-ley b { color: var(--tx); }
.rv-ej { display: grid; gap: 8px; margin-top: 8px; }
.rve { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.rve.nada { opacity: .45; }
.rve-t { display: grid; gap: 4px; min-width: 0; }
.rve-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rve-p { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rve-p i { width: 14px; height: 6px; border-radius: 9px; background: var(--bg4); }
.rve-p small { font-size: 12px; color: var(--tx3); margin-left: 4px; }
.rve-b { display: flex; align-items: center; gap: 8px; }
.rve-b i { display: block; height: 6px; width: 0; border-radius: 9px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.rve-b small { font: 700 11px var(--fd); color: var(--tx2); white-space: nowrap; }
.f-rv { text-align: left; margin: 18px 0; }
.f-rv .rv { margin-top: 0; }
.fiesta .prs { margin: 18px 0 0; }
@media (min-width: 700px) { .slide > * { max-width: 500px; } }
@media (max-width: 360px) { .rv-top { grid-template-columns: 1fr; justify-items: center; } .pg input { font-size: 26px; } }

/* ══════════ v5 · interfaz tipo Apple: negro puro, tipografía del sistema (SF en iPhone), tarjetas sin borde, listas agrupadas,
   controles segmentados, hojas con curva de iOS y movimientos con resorte. Pisa los valores de arriba. ══════════ */
:root {
  --bg: #000; --bg2: #1c1c1e; --bg3: #2c2c2e; --bg4: #3a3a3c; --ln: rgba(255,255,255,.07); --ln2: rgba(255,255,255,.16);
  --tx: #fff; --tx2: #a1a1a6; --tx3: #8e8e93; --ac: #c8ff3d; --ac2: #a6e000; --rojo: #ff453a;
  --f: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fd: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 16px; --r2: 22px; --muelle: cubic-bezier(.34, 1.56, .64, 1); --ios: cubic-bezier(.32, .72, 0, 1);
}
body { font: 16px/1.42 var(--f); letter-spacing: -.01em; }
@keyframes entra { from { opacity: 0; } to { opacity: 1; } }
@keyframes sube { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.pag, .curso, .foco, .ob, .fiesta { animation: entra .32s ease both; }
.kick { letter-spacing: .06em; font-size: 12px; font-weight: 600; color: var(--tx3); }
.et { font-size: 13px; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .04em; margin: 22px 4px 8px; }
.h1 { font: 700 34px/1.08 var(--fd); letter-spacing: -.03em; }
.h2 { font: 700 22px var(--fd); letter-spacing: -.02em; margin-top: 30px; }
.nota { font-size: 12px; margin-top: 8px; } .centro-t { text-align: center; margin-top: 18px; }

/* botones con resorte */
.btn { height: 50px; border-radius: 14px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; transition: transform .28s var(--muelle), background .2s, opacity .2s, filter .2s; }
.btn:active { transform: scale(.955); filter: brightness(.92); }
.btn.sec { background: var(--bg3); border: 0; }
.btn.fant { border: 0; background: transparent; color: var(--tx3); }
.btn.grande { height: 58px; font-size: 18px; font-weight: 700; border-radius: 18px; }
.btn.chico { height: 34px; border-radius: 99px; font-size: 14px; }
.redondo { border: 0; background: rgba(118,118,128,.24); transition: transform .28s var(--muelle); }
.redondo:active { transform: scale(.9); }
.campo { border: 0; background: rgba(118,118,128,.2); border-radius: 12px; font-size: 17px; }
.campo:focus { box-shadow: 0 0 0 2px var(--ac); }
.campo.grande { height: 56px; border-radius: 14px; font-size: 19px; }
.card, .kpi, .hero-card, .pdia, .gc, .hi, .rut, .eli, .obj, .actual, .ls-v, .res div, .tiempos div, .det-e { border: 0; }
.card, .kpi, .hero-card, .pdia, .hi { background: var(--bg2); }
.rut, .eli { background: var(--bg3); }
.hi, .rut, .gc, .mt, .eg, .cc, .pd-f, .rc { transition: transform .28s var(--muelle), opacity .2s; }
.hi:active, .eg:active, .cc:active, .pd-f:active, .rc:active { transform: scale(.975); opacity: .8; }
.chip { border: 0; background: rgba(118,118,128,.24); transition: transform .28s var(--muelle), background .2s, color .2s; }
.chip:active { transform: scale(.94); }
.tag { background: rgba(118,118,128,.24); }

/* control segmentado */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; border-radius: 11px; background: rgba(118,118,128,.24); }
.seg button { height: 36px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--tx); white-space: nowrap; padding: 0 6px; transition: background .25s var(--ios), transform .28s var(--muelle); }
.seg button.on { background: #636366; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.seg button:active { transform: scale(.96); }
.seg.lang { width: auto; min-width: 210px; }

/* listas agrupadas */
.grupo { background: var(--bg2); border-radius: 14px; overflow: hidden; }
.hoja .grupo { background: var(--bg3); }
.grupo + .grupo { margin-top: 14px; }
.fila { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; text-align: left; font-size: 16px; position: relative; transition: background .15s; }
.fila:active { background: rgba(255,255,255,.07); }
.grupo .fila + .fila::before { content: ""; position: absolute; left: 46px; right: 0; top: 0; height: 1px; background: rgba(84,84,88,.55); transform: scaleY(.5); }
.fila > svg:first-child { width: 21px; height: 21px; color: var(--ac); }
.fila > svg:last-child:not(:first-child) { width: 16px; height: 16px; color: var(--tx3); }
.fila.on > svg:last-child { color: var(--ac); width: 20px; height: 20px; stroke-width: 2.6; }
.fila-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-t small { display: block; font-size: 13px; color: var(--tx3); white-space: normal; line-height: 1.3; margin-top: 1px; }
.fila-t em { font-style: normal; color: var(--tx3); }
.fila.rojo, .fila.rojo > svg:first-child { color: var(--rojo); }
.fila.est { cursor: default; }
form > .fila, .ob-f > .fila { background: rgba(118,118,128,.2); border-radius: 14px; min-height: 56px; }
.busca { position: relative; margin: 6px 0 4px; }
.busca svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--tx3); pointer-events: none; }
.busca .campo { padding-left: 38px; height: 44px; }
#bq, #eq { margin: 0; }
.lg-g { display: flex; justify-content: space-between; align-items: center; } .lg-g .link { text-transform: none; letter-spacing: 0; color: var(--ac); text-decoration: none; font-size: 14px; }
.lg-v { padding: 16px 14px; font-size: 14px; }

/* cabecera y avatar */
.cab { margin-bottom: 10px; }
.yo h1 { font: 700 34px/1.05 var(--fd); letter-spacing: -.03em; }
.av { width: 42px; height: 42px; border-radius: 50%; font: 700 16px var(--fd); overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.xl { width: 84px; height: 84px; font-size: 30px; }
.yo-bt { border-radius: 50%; transition: transform .28s var(--muelle); } .yo-bt:active { transform: scale(.9); }
.pill { border: 0; background: rgba(118,118,128,.24); font-size: 13px; max-width: 100%; }
.pill.lugar { margin-bottom: 14px; max-width: 100%; }
.kpi b { font: 700 32px/1.1 var(--fd); letter-spacing: -.03em; }
.dia i { border: 0; background: var(--bg2); border-radius: 50%; }
.dia.hoy i { box-shadow: inset 0 0 0 2px var(--tx); }
.dia.plan i { border: 0; }
.tip-i { border-radius: 50%; }
.hero-t b { font: 700 28px/1.08 var(--fd); letter-spacing: -.03em; }
.pdia.prox, .gc.sig { box-shadow: 0 0 0 2px var(--ac); border: 0; }
.vacio { border: 0; background: var(--bg2); }

/* pestañas: barra translúcida, la activa se tiñe */
.tabs { background: rgba(18,18,20,.78); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-top: 1px solid rgba(255,255,255,.08); }
.tabs button { font-size: 10.5px; font-weight: 600; transition: color .2s, transform .28s var(--muelle); }
.tabs button:active { transform: scale(.9); }
.tabs button.on, .tabs button.on svg { color: var(--ac); }
.tabs button.on::before { display: none; }
.tabs button svg { width: 24px; height: 24px; }

/* hojas */
.velo { background: rgba(0,0,0,.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity .35s; }
.hoja { background: #1c1c1e; border: 0; border-radius: 28px 28px 0 0; transition: transform .46s var(--ios); box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.asa { width: 36px; background: rgba(235,235,245,.3); }
.hcab h2 { font: 700 26px/1.12 var(--fd); letter-spacing: -.025em; }
.ve-t { font: 700 28px/1.12 var(--fd); letter-spacing: -.03em; }
.hoja .card { background: var(--bg3); }

/* bienvenida y cuenta */
.ob h1 { font: 700 40px/1.04 var(--fd); letter-spacing: -.035em; }
.ob-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
.ob-logo { margin: 0; box-shadow: none; border-radius: 18px; background: none; width: 64px; height: 64px; overflow: hidden; }
.ob-logo img { width: 64px; height: 64px; }
.ob-p { font-size: 17px; }
.ob-pasos { display: grid; gap: 12px; margin-top: 26px; }
.ob-pasos div { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; animation: sube .5s both; }
.ob-pasos span { width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--ac) 16%, transparent); color: var(--ac); display: grid; place-items: center; flex: none; }
.ob-bt { display: grid; gap: 10px; margin-top: 30px; } .ob .ob-bt .btn.grande { margin-top: 0; }
.ob-h2 { margin-top: 18px !important; font-size: 34px !important; }
.legal { font-size: 12.5px; line-height: 1.4; }
.campo.codigo { height: 76px; font: 700 36px var(--fd); letter-spacing: .32em; text-align: center; padding-left: .32em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.f-err { color: var(--rojo); font-size: 13px; min-height: 20px; margin: 8px 4px; }
#fi .btn, #fc .btn { margin-top: 4px; }
.aj-yo { display: flex; align-items: center; gap: 16px; margin: 10px 0 4px; }
.aj-av { position: relative; cursor: pointer; flex: none; }
.aj-cam { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg4); border: 3px solid #1c1c1e; display: grid; place-items: center; }
.aj-cam svg { width: 15px; height: 15px; }
.aj-n { flex: 1; min-width: 0; } .aj-n .campo { font-weight: 600; }
.aj-fb { display: flex; gap: 16px; margin-top: 8px; font-size: 14px; } .aj-fb .link { color: var(--ac); text-decoration: none; cursor: pointer; }
.aj-pie { text-align: center; font-size: 12px; margin-top: 22px; line-height: 1.6; }
.obj { background: var(--bg2); } .obj-i { border-radius: 50%; } .obj-i svg { width: 22px; height: 22px; color: var(--ac); }
.obj.on { box-shadow: 0 0 0 2px var(--ac); } .obj.on .obj-i svg { color: var(--ac-tx); }

/* confirmar y cuenta regresiva */
.cf-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.cf-meta div { background: var(--bg3); border-radius: 16px; padding: 12px 12px 10px; display: grid; gap: 2px; }
.cf-meta svg { width: 18px; height: 18px; color: var(--ac); }
.cf-meta b { font: 700 30px/1.1 var(--fd); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cf-meta small { font-size: 12px; color: var(--tx3); }
.cf-ej .pd-f { grid-template-columns: 22px 58px minmax(0, 1fr); }
.cf-n { font: 700 14px var(--fd); color: var(--tx3); text-align: center; }
.hoja-pie { background: linear-gradient(transparent, #1c1c1e 30%); }
.hoja-pie .btn.prim { box-shadow: 0 10px 30px -8px rgba(200,255,61,.45); }
#cfOk svg, .hero-bt .btn.prim svg, .fin-bt #rep svg { fill: currentColor; }
@keyframes cdpop { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1.08); } 55% { transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes cdya { 0% { opacity: 0; transform: scale(.5); } 40% { opacity: 1; transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }
.cd { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; background: rgba(0,0,0,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .26s; animation: entra .2s both; }
.cd.fuera { opacity: 0; }
.cd b { font: 800 clamp(140px, 46vw, 260px)/1 var(--fd); letter-spacing: -.05em; color: var(--ac); animation: cdpop .72s ease-out both; text-shadow: 0 0 80px rgba(200,255,61,.45); font-variant-numeric: tabular-nums; }
.cd b.ya { font-size: clamp(90px, 28vw, 170px); animation: cdya .5s var(--muelle) both; }
.cd small { position: absolute; bottom: calc(40px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: var(--tx3); font-size: 14px; }

/* foco: qué hacer AHORA, bien grande */
.f-mid b { font-size: 13px; font-weight: 600; }
.s-foto { width: min(100%, calc(27dvh * 1.5)); margin-left: auto; margin-right: auto; border-radius: 20px; }
.s-cuerpo { animation: sube .35s both; } .s-cuerpo.quieto, .s-cuerpo.quieto .actual { animation: none; }
.s-cuerpo h2 { font: 700 26px/1.12 var(--fd); letter-spacing: -.03em; margin: 14px 0 2px; }
.s-sub { font-size: 14px; }
.actual { background: var(--bg2); border-radius: 24px; padding: 18px 16px 16px; gap: 14px; animation: sube .38s var(--ios) both; }
.ah-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.ah-k { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ac); }
.ah-t { display: block; font: 800 34px/1.05 var(--fd); letter-spacing: -.035em; margin-top: 2px; }
.ac-pts { padding-bottom: 8px; } .ac-pts i { width: 20px; height: 7px; transition: background .3s; }
.ah-o { font-size: 18px; line-height: 1.3; color: var(--tx2); margin-top: -4px; } .ah-o b { color: var(--tx); font-weight: 700; }
.pg { height: 96px; border: 0; border-radius: 20px; background: var(--bg3); grid-template-columns: 52px minmax(0, 1fr) 52px; }
.pg button { border-radius: 20px; transition: transform .28s var(--muelle), background .15s; } .pg button:active { transform: scale(.86); }
.pg button svg { width: 24px; height: 24px; }
.pg input { font: 800 46px var(--fd); letter-spacing: -.04em; }
@keyframes salto { 0% { transform: scale(1); } 40% { transform: scale(1.16); color: var(--ac); } 100% { transform: scale(1); } }
.pg input.salto { animation: salto .32s var(--muelle); }
.pg input[data-l="3"] { font-size: 38px; } .pg input[data-l="4"] { font-size: 31px; } .pg input[data-l="5"], .pg input[data-l="6"] { font-size: 26px; }
.pg small { font-size: 12px; margin-top: 2px; }
.ac-ok { height: 72px; border-radius: 22px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 14px 34px -10px rgba(200,255,61,.5); }
.ac-ok svg { width: 28px; height: 28px; stroke-width: 3.2; }
.ac-ok.hecha { font-size: 17px; font-weight: 600; height: 56px; }
.ah-n { font-size: 13px; color: var(--tx3); text-align: center; margin-top: -4px; line-height: 1.35; }
.dp { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ac) 50%, transparent); }
.dp-anillo, .dp-anillo svg { width: 172px; height: 172px; }
.dp-anillo .a-f, .dp-anillo .a-p { stroke-width: 8; }
.dp-anillo small { font-size: 13px; letter-spacing: .08em; color: var(--ac); }
.dp-anillo b { font: 800 50px/1.05 var(--fd); letter-spacing: -.04em; color: var(--tx); }
.dp-d { gap: 4px; } .dp-d small { font-size: 12px; } .dp-d > b { font-size: 19px; margin-top: 0; }
.dp-bt { width: 100%; gap: 8px; }
.lp { background: var(--bg2); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ac) 50%, transparent); }
@keyframes okpop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.lp-i, .s-listo svg, .gc-ok svg { animation: okpop .45s var(--muelle) both; }
.ls-v { background: var(--bg2); border: 0; height: 50px; } .ls.on .ls-v { box-shadow: inset 0 0 0 2px var(--tx3); background: var(--bg3); }
.chk { border-style: solid; border-color: var(--bg4); transition: transform .28s var(--muelle), background .2s, border-color .2s; } .chk:active { transform: scale(.85); }
.ls.ok .chk svg { animation: okpop .35s var(--muelle) both; }
.acc { background: rgba(18,18,20,.78); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-top: 1px solid rgba(255,255,255,.08); }
.acc button { font-size: 11px; transition: transform .28s var(--muelle), color .15s; } .acc button:active { transform: scale(.9); background: none; }
.sug { border: 0; }
.top { background: rgba(0,0,0,.78); border-bottom: 1px solid rgba(255,255,255,.08); }
.tiempos div { background: var(--bg2); }

/* terminar: estrellas con vida, resumen y celebración */
.cal { text-align: center; background: var(--bg3); border-radius: 22px; padding: 6px 12px 18px; margin-top: 18px; }
.cal .et { margin: 14px 0 6px; text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 700; color: var(--tx); }
.estrellas { justify-content: center; gap: 2px; }
.estrellas button { width: 60px; height: 64px; color: #48484a; transition: color .2s, transform .28s var(--muelle); }
.estrellas button:active { transform: scale(.8); }
.estrellas button svg { width: 50px; height: 50px; transition: filter .3s; }
@keyframes estrella { 0% { transform: scale(.3) rotate(-30deg); } 55% { transform: scale(1.38) rotate(8deg); } 78% { transform: scale(.94) rotate(-3deg); } 100% { transform: scale(1.1) rotate(0); } }
.estrellas button.on { color: var(--ac); transform: scale(1.1); }
.estrellas button.on svg { filter: drop-shadow(0 0 10px rgba(200,255,61,.65)); }
.estrellas button.pop { animation: estrella .55s var(--muelle) both; }
@keyframes brillo { 0%, 100% { filter: drop-shadow(0 0 8px rgba(200,255,61,.6)); } 50% { filter: drop-shadow(0 0 22px rgba(200,255,61,1)); } }
.estrellas[data-n="5"] button.on svg { animation: brillo 1.4s ease-in-out infinite; }
@keyframes textoPop { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 60% { transform: translateY(0) scale(1.12); } 100% { opacity: 1; transform: none; } }
.es-t { font-size: 14px; color: var(--tx3); margin-top: 8px; min-height: 28px; }
.es-t.on { font: 800 22px var(--fd); letter-spacing: -.02em; color: var(--tx); }
.es-t.pop { animation: textoPop .4s var(--muelle) both; }
.chispa { position: fixed; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); z-index: 95; pointer-events: none; box-shadow: 0 0 8px var(--ac); }
.estrellas.chicas { justify-content: flex-start; }
.estrellas.chicas span.on { animation: estrella .5s var(--muelle) both; display: inline-grid; }
.estrellas.chicas span.on svg { filter: drop-shadow(0 0 6px rgba(200,255,61,.5)); }
.estrellas.chicas .tx2 { animation: none; }
.ce-es { display: flex; justify-content: center; margin-top: 14px; } .ce-es .estrellas.chicas { margin: 0; } .ce-es svg { width: 30px !important; height: 30px !important; }
.ce-es .tx2 { font-weight: 700; color: var(--tx) !important; font-size: 15px !important; }
.rv-kp b { font: 700 19px/1.15 var(--fd); letter-spacing: -.02em; }
.rv-i { border-radius: 50%; }
.rv-anillo b { font: 800 32px var(--fd); letter-spacing: -.03em; }
.rve-m { font-size: 12px; color: var(--tx3); } .rve-m b { color: var(--tx2); font-weight: 600; font-size: 12px; display: inline; }
.rv-vol { font-size: 12px; color: var(--tx3); text-align: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(84,84,88,.4); }
.rv-vol b { color: var(--tx2); font-weight: 600; } .rv-vol em { font-style: normal; font-weight: 700; } .rv-vol em.sube { color: var(--ac); } .rv-vol em.baja { color: #ff9f0a; }
.aviso { border-left: 0; border-radius: 12px; background: var(--bg3); }
.fiesta h1 { font: 800 38px/1.08 var(--fd); letter-spacing: -.035em; }
@keyframes onda { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes trofeo { 0% { transform: scale(0) rotate(-25deg); } 60% { transform: scale(1.2) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
.f-icono { position: relative; border-radius: 50%; width: 96px; height: 96px; animation: trofeo .7s var(--muelle) both; }
.f-icono i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ac); animation: onda 1.8s ease-out infinite; }
.f-icono i + i { animation-delay: .6s; }
.f-icono svg { position: relative; }
.ce-bt { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 6px; }
.fiesta .nota { margin-top: 14px; }
.fiesta > .kick, .fiesta > h1, .fiesta > .tx2, .ce-es, .fiesta .card, .ce-bt { animation: sube .5s both; }
.fiesta > .kick { animation-delay: .15s; } .fiesta > h1 { animation-delay: .22s; } .fiesta > .tx2 { animation-delay: .3s; } .ce-es { animation-delay: .36s; } .fiesta .card { animation-delay: .45s; } .ce-bt { animation-delay: .55s; }
.toast { background: rgba(44,44,46,.96); border: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; }
.br i { border-radius: 6px; } .heat i { border-radius: 3px; background: var(--bg3); }
@media (max-width: 360px) { .ah-t { font-size: 28px; } .pg input { font-size: 36px; } .pg input[data-l="3"] { font-size: 30px; } .pg input[data-l="4"], .pg input[data-l="5"] { font-size: 24px; } .pg { grid-template-columns: 40px minmax(0, 1fr) 40px; } .estrellas button { width: 52px; } .estrellas button svg { width: 42px; height: 42px; } .yo h1, .h1 { font-size: 30px; } }
@media (min-height: 800px) { .s-foto { width: min(100%, calc(30dvh * 1.5)); } }
