:root{--ink:#18283d;--navy:#0c1c37;--navy2:#1d3b65;--teal:#17b8a5;--teal-dark:#078776;--bg:#f3f6fa;--card:#fff;--line:#e2eaf1;--muted:#62738a;--warning:#f1a344;--bad:#d04f59;--good:#139b76;--shadow:0 14px 36px rgba(20,45,80,.075);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--bg);min-height:100dvh;font-size:16px;-webkit-font-smoothing:antialiased}button,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #3fcfba;outline-offset:3px}a{color:var(--teal-dark)}.app-shell{max-width:960px;min-height:100dvh;margin:auto;padding-bottom:102px}.topbar{background:var(--navy);color:white;display:flex;justify-content:space-between;align-items:center;padding:19px max(20px,env(safe-area-inset-right));padding-right:max(20px,env(safe-area-inset-right));border-radius:0 0 22px 22px}.brand-lockup{display:flex;gap:11px;align-items:center}.brand-icon{width:39px;height:39px;display:grid;place-items:center;background:linear-gradient(145deg,#15cbb8,#4685d7);border-radius:13px;font-size:24px;box-shadow:0 4px 16px #14ccbb33}.brand-title{display:block;font-size:20px;letter-spacing:-.5px;line-height:1.1}.brand-subtitle{display:block;font-size:10px;color:#a5c7d7;letter-spacing:2px;margin-top:6px;font-weight:700}.icon-button{width:39px;height:39px;border:1px solid #ffffff2b;border-radius:13px;background:#ffffff13;color:inherit;font-size:22px;display:grid;place-items:center}.topbar .icon-button{color:#fff}main{padding:21px 18px 10px;max-width:850px;margin:auto}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(28px,5.4vw,38px);line-height:1.12;letter-spacing:-.9px;margin-bottom:12px}h2{font-size:22px;letter-spacing:-.4px;margin-bottom:11px}h3{font-size:17px;margin-bottom:9px}.muted{color:var(--muted)}.small{font-size:13px}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:850;margin-bottom:10px}.card{background:var(--card);border-radius:20px;border:1px solid var(--line);padding:20px;box-shadow:var(--shadow)}.card+.card{margin-top:16px}.hero{background:linear-gradient(122deg,#0c1c37,#22486f);border-radius:22px;color:#fff;padding:25px 23px 24px;position:relative;overflow:hidden;margin-bottom:16px}.hero:after{content:'◉';position:absolute;right:-25px;top:5px;font-size:200px;opacity:.055;line-height:1;pointer-events:none}.hero .eyebrow{color:#6fe5d8}.hero p{color:#bed2e3;line-height:1.6;max-width:460px;margin-bottom:21px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;position:relative;z-index:1}.btn{min-height:48px;padding:12px 17px;border-radius:12px;border:1px solid transparent;font-weight:750;display:inline-flex;gap:8px;align-items:center;justify-content:center;text-align:center;transition:transform .15s,background .15s}.btn:active{transform:scale(.99)}.btn-primary{background:var(--teal);color:#062938}.btn-primary:hover{background:#23d6c2}.btn-ghost{color:#fff;background:#ffffff19;border-color:#ffffff3d}.btn-outline{background:#fff;color:var(--navy2);border-color:#dce6ed}.btn-danger{background:#fff;color:#bd3b49;border-color:#f1cbd0}.btn-block{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed}.tile-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:22px}.tile{background:#fff;padding:16px 12px;border:1px solid var(--line);border-radius:17px}.tile-value{display:block;font-size:25px;font-weight:850;letter-spacing:-.7px;color:var(--navy)}.tile-label{font-size:12px;color:var(--muted);margin-top:4px;display:block}.section-title{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:23px 2px 13px}.section-title h2{margin:0}.section-title .muted{font-size:12px}.topic-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.topic-card{padding:16px;border:1px solid var(--line);border-radius:17px;background:white;text-align:left;min-height:112px;color:var(--ink)}.topic-card strong{display:block;font-size:15px;margin:10px 0 5px}.topic-card small{color:var(--muted)}.topic-icon{font-size:23px;display:inline-flex;width:39px;height:39px;align-items:center;justify-content:center;border-radius:12px;background:#eaf6f6}.topic-card:hover{border-color:#67cabf}.step-head{margin-bottom:19px}.step-head h1{margin-bottom:6px}.step-head p{line-height:1.5}.subdued-note{font-size:12px;line-height:1.6;color:var(--muted)}.form-label{font-weight:750;font-size:13px;display:block;margin-bottom:9px}.select{width:100%;height:50px;border:1px solid #dce5ee;border-radius:12px;background:white;color:var(--ink);padding:0 14px}.settings-group{margin:18px 0 20px}.segmented{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid #dce5ee;background:white;color:#29405f;border-radius:12px;padding:12px 15px;min-width:84px;font-weight:750}.chip.is-selected{border-color:var(--teal-dark);color:#086d61;background:#dff7f1}.extra-action{margin-top:14px;display:block}.progress-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.progress-track{height:8px;border-radius:99px;background:#e9eef3;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#14bfae,#5599c8);border-radius:99px}.question-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.pill{display:inline-flex;align-items:center;border-radius:20px;padding:6px 11px;background:#e9f6f5;color:#057d70;font-size:12px;font-weight:800}.timer{color:#49617d;font-variant-numeric:tabular-nums;font-size:13px;font-weight:800}.timer.low{color:#c44152}.question-text{font-size:clamp(19px,3.1vw,25px);font-weight:780;line-height:1.4;letter-spacing:-.4px;margin:24px 0}.choice-list{display:grid;gap:10px}.choice{border:1.5px solid #dfE7ee;background:#fff;text-align:left;display:flex;align-items:center;gap:13px;min-height:64px;padding:14px;border-radius:13px;color:#243750;width:100%;line-height:1.35}.choice .letter{width:31px;height:31px;border-radius:9px;background:#edf2f6;display:grid;place-items:center;font-weight:850;flex:0 0 auto}.choice:hover:not(:disabled){border-color:#80cfc8;background:#f6fcfb}.choice.selected{border-color:#34b9a9;background:#e7fbf6}.choice.correct{border-color:#30ad89;background:#e1f7ed}.choice.wrong{border-color:#df6f74;background:#fff0f0}.choice:disabled{cursor:default}.choice.correct .letter{background:#24a581;color:white}.choice.wrong .letter{background:#d55d69;color:white}.feedback{margin:17px 0 14px;padding:17px;border:1px solid #b8e8d7;background:#effbf5;border-radius:15px;line-height:1.6}.feedback.fail{border-color:#f4d2d5;background:#fff4f4}.feedback strong{display:block;margin-bottom:5px}.feedback p{margin:0}.question-actions{margin-top:18px;display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}.question-actions .btn:last-child{flex:1}.tiny-btn{border:0;background:transparent;color:#516780;padding:8px;border-radius:8px;font-weight:750}.tiny-btn.saved{color:#bd8b1f}.exam-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.exam-actions .btn{flex:1}.result-head{text-align:center;padding:30px 20px}.result-ring{margin:0 auto 17px;width:132px;height:132px;border-radius:50%;background:conic-gradient(var(--teal) var(--pct),#e9eef3 0);display:grid;place-items:center}.result-ring span{width:104px;height:104px;background:white;border-radius:50%;display:grid;place-items:center;font-weight:850;color:var(--navy);font-size:27px}.result-head h1{margin-bottom:8px}.result-split{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:20px 0}.result-mini{padding:13px;border:1px solid var(--line);border-radius:14px;text-align:center}.result-mini strong{display:block;font-size:21px}.review-item{border-top:1px solid var(--line);padding:16px 0}.review-item:last-child{padding-bottom:0}.review-item h3{line-height:1.4;margin:8px 0}.review-item p{line-height:1.5;margin:5px 0}.review-correct{color:#0b8068}.review-wrong{color:#bf4657}.topic-progress{margin-top:15px}.topic-progress .progress-row{margin-bottom:7px}.topic-progress small{color:var(--muted)}.history-item{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:13px 0;gap:10px}.history-item:first-child{border-top:0}.history-item strong{font-size:14px}.history-item span{font-size:12px;color:var(--muted)}.hint-box{padding:14px 16px;background:#ecf3fa;border-radius:13px;color:#47617a;font-size:13px;line-height:1.6}.linkish{color:#087f76;text-decoration:none;font-weight:750}.empty-state{text-align:center;padding:30px 15px;color:var(--muted)}.empty-state .emoji{font-size:35px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(960px,100%);display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #dfe7ef;box-shadow:0 -12px 35px #203b5a10;padding:7px 8px max(8px,env(safe-area-inset-bottom));z-index:15}.nav-item{background:none;border:0;color:#738396;min-height:55px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-weight:700;border-radius:12px}.nav-item span{font-size:24px;line-height:1}.nav-item small{font-size:11px}.nav-item.active{background:#e5f7f4;color:#047f72}.modal{border:0;border-radius:22px;padding:0;max-width:470px;width:calc(100% - 30px);box-shadow:0 22px 70px #061e3b59;color:var(--ink)}.modal::backdrop{background:#071c39b8}.modal-content{padding:23px}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.modal-heading .icon-button{background:#edf3f7;color:#344b65;flex-shrink:0}.modal p{line-height:1.6;font-size:14px}.source-list{display:grid;gap:10px;margin:17px 0}.source-list a{font-size:14px;text-decoration:none;font-weight:750;padding:12px;border:1px solid #dce7ec;border-radius:10px}.footer-note{text-align:center;font-size:12px;color:#798aa0;margin-top:22px}.sticker{color:#86ecdd;font-size:26px;margin-bottom:7px}.solo-link{border:0;background:none;padding:0;color:#067d72;font-size:13px;font-weight:750;text-decoration:underline}.footer-actions{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}.checkbox-row{display:flex;align-items:center;gap:10px;cursor:pointer}.checkbox-row input{width:18px;height:18px;accent-color:var(--teal-dark)}
@media(min-width:720px){.topbar{padding:22px 40px}.app-shell{padding-bottom:110px}main{padding:30px 28px}.hero{padding:36px}.topic-list{grid-template-columns:repeat(3,1fr)}.tile-row{gap:16px}.tile{padding:20px}.quiz-layout{max-width:680px;margin:auto}.bottom-nav{border-radius:17px 17px 0 0}}
@media(max-width:380px){.tile{padding:12px 9px}.tile-value{font-size:22px}.btn{padding:11px 12px}.question-text{font-size:20px}.card{padding:16px}.hero{padding:22px 18px}.chip{flex:1}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Beta pública: reto diario y compartir */
.daily-card{background:#fff;border:1px solid #cce7e3;border-radius:20px;padding:20px;box-shadow:var(--shadow);margin:0 0 14px}
.daily-heading{display:flex;gap:14px;justify-content:space-between;align-items:start}
.daily-heading h2{margin:0 0 6px}.daily-heading p{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 13px;max-width:530px}
.daily-bubble{background:#e0faf3;border-radius:18px;display:grid;place-items:center;width:52px;height:52px;font-size:27px;flex-shrink:0}
.daily-meta{display:flex;gap:8px;align-items:baseline;margin:8px 0 12px}.daily-meta strong{font-size:20px}.daily-meta span{font-size:12px;color:var(--muted)}
.week-streak{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:12px 0 16px}
.day{display:grid;place-items:center;border:1px solid #dce7ef;border-radius:11px;height:35px;background:#f5f8fb;font-size:12px;font-weight:800;color:#738397}
.day.done{background:#baf4e6;color:#086d61;border-color:#91ddca}
.share-row{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:6px 0 3px;flex-wrap:wrap}
.share-row span{max-width:320px;font-size:13px;color:var(--muted)}.share-row button{min-height:42px}
@media(max-width:390px){.daily-card{padding:16px}.daily-bubble{width:42px;height:42px}.share-row{align-items:stretch}.share-row button{flex:1}}

/* El banco del curso incluye preguntas con incisos y códigos METAR extensos. */
.question-text{white-space:pre-line;overflow-wrap:anywhere}
.choice{overflow-wrap:anywhere;align-items:flex-start}
.choice .letter{margin-top:1px}
