[hidden]{display:none!important}
:root{--pk:#E2557E;--pk2:#FCE8EF;--pk3:#F6B8CB;--ink:#1B1530;--mut:#6E6A7C;--line:#E7E3EC;--ok:#1E9E5A;--okbg:#DDF6E7;--soft:#F8F6FA;--am:#8A5A12;--ambg:#FFF1D6}
*{box-sizing:border-box}
html,body{margin:0;background:#fff;color:var(--ink);font-family:Montserrat,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
body{padding-bottom:calc(70px + env(safe-area-inset-bottom))}
body.noNav{padding-bottom:0}
a{color:inherit}
button{font:inherit;color:inherit}
main{max-width:520px;margin:0 auto;padding:18px 16px 28px}
h1{font-size:25px;line-height:1.18;font-weight:800;margin:4px 0 8px}
h2{font-size:19px;font-weight:800;margin:24px 0 10px}
h3{font-size:16px;font-weight:800;margin:0 0 4px}
p{line-height:1.5}
.hl{color:var(--pk)}
.mut{color:var(--mut)}
.small{font-size:13px}
.center{text-align:center}
.brand{font-weight:800;color:var(--pk);font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.top{display:flex;align-items:center;gap:8px;margin:-4px 0 12px}
.top .back{border:0;background:none;font-size:24px;cursor:pointer;padding:4px 12px 4px 0;line-height:1;min-height:44px;min-width:44px;text-align:left}
.top .brand{flex:1}

/* botones */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:0;border-radius:14px;background:var(--pk);color:#fff;font-weight:800;font-size:16px;padding:16px 18px;cursor:pointer;text-decoration:none;box-shadow:0 6px 18px rgba(226,85,126,.28);min-height:54px}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.45;box-shadow:none;cursor:default}
.btn.sec{background:#fff;color:var(--ink);border:1.5px solid var(--line);box-shadow:none;font-weight:700}
.btn.ghost{background:none;color:var(--mut);box-shadow:none;font-weight:700;text-decoration:underline;min-height:44px;padding:10px}
.btn.ok{background:var(--ok);box-shadow:0 6px 18px rgba(30,158,90,.25)}
.stack{display:flex;flex-direction:column;gap:10px;margin-top:14px}

/* entrada */
.hero{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;justify-content:space-between;padding:28px 0 20px}
.hero .ph{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:22px;background:var(--soft)}
.hero h1{font-size:30px;margin-top:18px}
.loader{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:70vh;gap:16px;color:var(--mut);font-weight:600}
.spin{width:44px;height:44px;border-radius:50%;border:4px solid var(--pk2);border-top-color:var(--pk);animation:sp 0.8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}

/* preguntas */
.steps{display:flex;gap:6px;margin:0 0 18px}
.steps i{flex:1;height:6px;border-radius:6px;background:var(--pk2)}
.steps i.on{background:var(--pk)}
.q{margin:18px 0 6px;font-weight:800;font-size:17px}
.q small{display:block;font-weight:500;color:var(--mut);font-size:13px;margin-top:3px}
.opts{display:flex;flex-direction:column;gap:9px}
.opts.row{flex-direction:row;flex-wrap:wrap}
.opts.row .opt{flex:1 1 0;justify-content:center;min-width:72px}
.opt{display:flex;align-items:center;gap:12px;border:1.5px solid var(--line);border-radius:14px;background:#fff;padding:13px 14px;font-weight:700;font-size:15px;cursor:pointer;text-align:left;min-height:52px}
.opt.sel{border-color:var(--pk);background:var(--pk2)}
.opt .rd,.opt .ck{width:21px;height:21px;border:2px solid #cfc9d8;border-radius:50%;flex:none}
.opt .ck{border-radius:6px}
.opt.sel .rd{border:7px solid var(--pk)}
.opt.sel .ck{background:var(--pk);border-color:var(--pk)}
.field{width:100%;border:1.5px solid var(--line);border-radius:14px;padding:14px;font:inherit;font-size:16px}
.field:focus{outline:none;border-color:var(--pk)}
.aviso{background:var(--soft);border-radius:16px;padding:16px;line-height:1.55;font-size:15px}

/* hoy */
.hola{font-size:14px;color:var(--mut);font-weight:600;margin:0}
.today{border-radius:22px;background:linear-gradient(160deg,#FCE8EF,#fff 70%);border:1.5px solid var(--pk3);padding:16px;margin-top:12px}
.today .tag{display:inline-block;font-size:12px;font-weight:800;border-radius:20px;padding:4px 10px;background:var(--pk);color:#fff;letter-spacing:.02em}
.today .tag.s{background:var(--ambg);color:var(--am)}
.today h2{margin:10px 0 4px;font-size:22px}
.today .thumbs{display:flex;gap:6px;margin:12px 0 4px;overflow:hidden}
.today .thumbs img{width:25%;aspect-ratio:16/10;object-fit:cover;border-radius:10px;background:var(--soft)}
.meta{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.chip{font-size:12px;font-weight:700;background:#fff;border:1px solid var(--line);border-radius:20px;padding:4px 10px;color:var(--mut)}
.prog{margin-top:20px}
.prog .bar{height:9px;background:var(--pk2);border-radius:9px;overflow:hidden}
.prog .bar i{display:block;height:100%;background:var(--pk);border-radius:9px}
.grid21{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:10px}
.grid21 div{aspect-ratio:1;border-radius:10px;border:1.5px solid var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--mut);position:relative}
.grid21 div b{font-size:15px;color:var(--ink);line-height:1}
.grid21 div.c{background:var(--okbg);border-color:#9fdcb8}
.grid21 div.s{background:var(--ambg);border-color:#ecd29f}
.grid21 div.d{background:var(--soft);border-style:dashed}
.grid21 div.now{border-color:var(--pk);box-shadow:0 0 0 2px var(--pk2)}
.grid21 div.full::after{content:'';position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:50%;background:var(--pk)}
.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--mut);margin-top:8px}
.legend span::before{content:'';display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px;background:var(--line)}
.legend .lc::before{background:var(--okbg);border:1px solid #9fdcb8}
.legend .ls::before{background:var(--ambg);border:1px solid #ecd29f}
.legend .ld::before{background:var(--soft);border:1px dashed var(--line)}
.legend .lf::before{background:var(--pk);border-radius:50%;width:7px;height:7px}
.tip{background:var(--soft);border-radius:16px;padding:14px 16px;margin-top:16px;font-size:14px;line-height:1.5}
.tip b{display:block;margin-bottom:2px}
.up{border:1.5px dashed var(--pk3);border-radius:16px;padding:14px;margin-top:16px}

/* listas */
.card{display:flex;gap:12px;align-items:center;border:1.5px solid var(--line);border-radius:16px;padding:10px;background:#fff;text-decoration:none;margin-bottom:9px;cursor:pointer;width:100%;text-align:left}
.card img{width:96px;aspect-ratio:16/10;object-fit:cover;border-radius:10px;flex:none;background:var(--soft)}
.card .tx{flex:1;min-width:0}
.card .tx b{display:block;font-size:15px}
.card .tx small{display:block;color:var(--mut);font-size:12.5px;margin-top:2px;line-height:1.35}
.card .st{font-size:18px;flex:none;width:24px;text-align:center}
.card.done{background:#FBFDFB}
.wk{margin:22px 0 10px}
.wk h2{margin:0}
.wk p{margin:4px 0 0;color:var(--mut);font-size:14px}
.sec{font-size:12px;font-weight:800;color:var(--mut);letter-spacing:.06em;text-transform:uppercase;margin:16px 0 8px}
.exrow{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);cursor:pointer;width:100%;background:none;border-left:0;border-right:0;border-top:0;text-align:left}
.exrow img{width:74px;aspect-ratio:16/10;object-fit:cover;border-radius:8px;flex:none;background:var(--soft)}
.exrow .tx{flex:1}
.exrow .tx b{font-size:14px;display:block}
.exrow .tx small{color:var(--mut);font-size:12px}
.exrow .zn{font-size:11px;font-weight:700;color:var(--pk);background:var(--pk2);border-radius:12px;padding:2px 8px;margin-left:4px}

/* ejercicio */
.vid{width:100%;aspect-ratio:16/9;border-radius:18px;background:var(--soft);object-fit:cover;display:block}
ol.pasos{padding-left:20px;margin:8px 0;line-height:1.55}
ol.pasos li{margin-bottom:6px}
.box{border-radius:14px;padding:12px 14px;margin-top:10px;font-size:14px;line-height:1.5}
.box.r{background:#EEF4FF}
.box.c{background:var(--ambg)}
.box.f{background:var(--okbg)}
.box b{display:block;margin-bottom:2px}

/* reproductor */
body.play{background:#fff}
.player{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;padding-bottom:12px}
.player .pt{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.player .pt button{border:0;background:var(--soft);border-radius:12px;padding:8px 14px;font-weight:700;cursor:pointer;min-height:44px}
.player .phase{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--pk)}
.player .phase.rest{color:#D0668A}
.player .tot{height:6px;background:var(--pk2);border-radius:6px;overflow:hidden;margin-bottom:12px}
.player .tot i{display:block;height:100%;background:var(--pk);transition:width .3s linear}
.player .vwrap{position:relative}
.player .vwrap .nx{position:absolute;left:10px;top:10px;background:rgba(27,21,48,.78);color:#fff;font-size:12px;font-weight:700;border-radius:20px;padding:5px 10px}
.player h2{margin:14px 0 2px;font-size:21px}
.player .cue{color:var(--mut);font-weight:600;font-size:15px;min-height:22px}
.player .cue.alert{color:var(--pk);font-weight:800}
.clock{display:flex;align-items:center;justify-content:center;margin:14px 0 6px}
.clock svg{width:150px;height:150px}
.clock .n{font-size:44px;font-weight:800;fill:var(--ink)}
.ctrls{display:flex;gap:10px;justify-content:center;align-items:center;margin-top:auto;padding-top:10px}
.ctrls button{border:0;background:var(--soft);border-radius:50%;width:56px;height:56px;font-size:20px;cursor:pointer}
.ctrls .main{width:76px;height:76px;background:var(--pk);color:#fff;font-size:26px;box-shadow:0 8px 20px rgba(226,85,126,.3)}
.linkbtn{border:0;background:none;color:var(--pk);font-weight:700;text-decoration:underline;cursor:pointer;padding:10px 8px;font-size:14px;min-height:44px}
.easy{background:var(--ambg);color:var(--am);border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.45;margin-top:8px}
.easy b{display:block}

/* materiales */
.doc{border:1.5px solid var(--line);border-radius:18px;overflow:hidden;margin-bottom:12px;background:#fff}
.doc img{width:100%;display:block;aspect-ratio:210/140;object-fit:cover;object-position:top;background:var(--soft);border-bottom:1px solid var(--line)}
.doc .in{padding:12px 14px}
.doc .in b{display:block;font-size:15px}
.doc .in small{display:block;color:var(--mut);font-size:13px;margin:3px 0 10px;line-height:1.4}
.doc .acts{display:flex;gap:8px}
.doc .acts a{flex:1;text-align:center;text-decoration:none;font-weight:800;font-size:14px;border-radius:12px;padding:11px 8px}
.doc .acts .v{background:var(--pk);color:#fff}
.doc .acts .d{border:1.5px solid var(--line)}
.badge{display:inline-block;font-size:11px;font-weight:800;background:var(--pk);color:#fff;border-radius:20px;padding:3px 9px;margin-bottom:6px}
.viewer img{width:100%;display:block;border-radius:10px;border:1px solid var(--line);margin-bottom:12px;box-shadow:0 4px 14px rgba(30,20,50,.06)}
.dieta{background:var(--soft);border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.5;margin:0 0 12px}

/* mi plan */
.kv{border:1.5px solid var(--line);border-radius:16px;overflow:hidden}
.kv div{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);font-size:14px}
.kv div:last-child{border-bottom:0}
.kv span{color:var(--mut)}
.kv b{text-align:right}

/* barra inferior */
.nav{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;padding:6px 6px calc(6px + env(safe-area-inset-bottom));z-index:20}
.nav a{flex:1;max-width:130px;display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;font-size:11.5px;font-weight:700;color:var(--mut);padding:4px 0}
.nav a .ic{font-size:17px;line-height:1.2}
.nav a.on{color:var(--pk)}

/* hoja y aviso */
.sheetbg{position:fixed;inset:0;background:rgba(27,21,48,.45);display:flex;align-items:flex-end;justify-content:center;z-index:40}
.sheet{background:#fff;width:100%;max-width:520px;max-height:88vh;overflow:auto;border-radius:22px 22px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom))}
.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translateX(-50%);background:var(--ink);color:#fff;font-weight:700;font-size:14px;border-radius:12px;padding:11px 16px;z-index:50;max-width:90vw;text-align:center}
.fin{text-align:center;padding-top:30px}
.fin .big{font-size:56px;line-height:1}

.toast .undo{margin-left:12px;border:0;background:none;color:#FFB3C9;font-weight:800;text-decoration:underline;cursor:pointer;font-size:14px;min-height:36px}
.hint{text-align:center;color:var(--pk);font-weight:700;margin:6px 0 0}
.chip.lnk{text-decoration:none;color:var(--pk)}
.hero .incl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.hero .incl div{background:var(--pk2);border-radius:14px;padding:12px 14px;font-size:13px;font-weight:600;color:var(--ink);line-height:1.25}
.hero .incl b{display:block;font-size:24px;font-weight:800;color:var(--pk);line-height:1.1}
html{scrollbar-width:none}html::-webkit-scrollbar,body::-webkit-scrollbar{display:none}
.hero .inc2{margin:12px 0 0;font-size:13px;color:var(--mut);text-align:center}
.player .vid{aspect-ratio:4/3}
.player{padding-bottom:calc(20px + env(safe-area-inset-bottom))}.player .clock{margin-top:8px}.player .ctrls{margin-top:14px;padding-bottom:6px}
.btn.sec{text-transform:none;letter-spacing:normal;font-size:16px;color:var(--ink);margin:12px 0 0}.prog .legend{margin:2px 0 10px}
.hero{justify-content:flex-start}.hero .stack{margin-top:22px}
