/* Magíster Rewards 0.9.6: compact promotion with lightweight decorative motion.
   0.9.6 — Ocupa el 100% del ancho de su columna (el shell de MagísterX), igual que el encabezado y los bloques del home. */
.mr-home,.mr-modal{--mr-purple:#6825dc;--mr-text:#251638;--mr-muted:#645575;color:var(--mr-text);font-family:inherit}
.mr-home,.mr-home *,.mr-modal,.mr-modal *{box-sizing:border-box}
.mr-home{position:relative;isolation:isolate;display:block;width:100%;max-width:none;margin:0 0 16px;padding:10px 22px;border:1px solid #ab7be9;border-radius:22px;background:linear-gradient(112deg,#b4eee5 0%,#ced6ff 38%,#d4b3ff 76%,#bc8af3 100%);box-shadow:0 6px 20px #4b238008}
.mr-home [hidden],.mr-modal[hidden],.mr-modal [hidden]{display:none!important}
.mr-copy{position:relative;z-index:1;min-width:0}
.mr-home .mr-copy h2{margin:0 0 4px;padding-right:350px;font-size:clamp(24px,2.1vw,32px);line-height:1.1;letter-spacing:-.025em;font-weight:750;color:#21152d}
.mr-home .mr-copy>p{margin:0 0 6px;padding-right:350px;font-size:14px;line-height:1.3;color:var(--mr-muted)}
.mr-progress-card{padding:4px 11px;border:1px solid #d6bdf4;border-radius:12px;background:#ffffffd9}
.mr-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:18px;font-size:13px;line-height:1.25}
.mr-progress-meta strong{font-weight:650}.mr-remaining{color:var(--mr-muted);text-align:right}
.mr-progress{height:5px;margin-top:4px;border-radius:20px;background:#dac8ef;overflow:hidden}
.mr-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6924df,#8550f0,#20b4bd)}
.mr-share-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;margin-top:5px}
.mr-home .mr-share-row input,.mr-home .mr-share-row button{width:auto;min-width:0;height:34px;min-height:34px;margin:0;border:1px solid #dfcef4;border-radius:10px;font:inherit;font-size:14px;line-height:1.2;box-shadow:none}
.mr-home .mr-share-row input{width:100%;padding:0 12px;background:#fff;color:#514160;text-overflow:ellipsis}
.mr-home .mr-share-row button{padding:0 18px;background:#fff;color:#6021ce;font-weight:700;cursor:pointer;white-space:nowrap}
.mr-home .mr-share-row .mr-whatsapp{background:#16ad61;border-color:#16ad61;color:#fff}
.mr-home .mr-spin{margin:0;padding:2px 0;border:0;background:none;color:var(--mr-purple);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.mr-spin:disabled{opacity:.65;cursor:wait}
.mr-home button:focus-visible,.mr-home input:focus-visible,.mr-home a:focus-visible,.mr-modal :focus-visible{outline:3px solid #8a4de8;outline-offset:3px}
.mr-primary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin-top:9px;padding:8px 20px;border-radius:10px;background:#6825dc;color:#fff;text-decoration:none;font-weight:700}
.mr-modal-open{overflow:hidden}
.mr-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px;background:#1d1035b3}
.mr-modal-stage{width:min(100%,480px);max-height:90vh;overflow:auto}
.mr-modal-card{position:relative;padding:28px;border-radius:22px;background:#fff;text-align:center}
.mr-close{position:absolute;right:10px;top:6px;border:0;background:none;color:#514160;font-size:28px;cursor:pointer}
.mr-win-kicker{color:#6825dc;font-size:12px;font-weight:700;letter-spacing:.08em}
.mr-tech-mark{display:block;font-size:32px;color:#6825dc}
.mr-prize img{display:block;width:100%;max-height:180px;object-fit:cover;border-radius:10px}
.mr-prize h3{margin:12px 0 8px;font-size:23px;line-height:1.25}
.mr-prize p,.mr-enrollment-message,.mr-next-cycle{font-size:14px;line-height:1.45}
.mr-social-share{display:flex;justify-content:center;align-items:center;gap:10px;font-size:13px}
.mr-share-channel{display:grid;place-items:center;width:38px;height:38px;padding:9px;border:0;border-radius:50%;background:#16ad61;color:#fff;cursor:pointer}
.mr-share-channel svg{width:20px;height:20px;fill:currentColor}
@media(max-width:1024px){.mr-home{padding:9px 16px}.mr-home .mr-copy h2{font-size:26px}.mr-home .mr-copy>p{font-size:13px;margin-bottom:5px}}
@media(max-width:700px){
.mr-home{width:100%;padding:8px 12px;border-radius:16px;margin-bottom:12px}
.mr-home .mr-copy h2{font-size:22px;line-height:1.1;margin-bottom:4px;padding-right:30px}
.mr-home .mr-copy>p{font-size:12px;line-height:1.3;margin-bottom:5px;padding-right:0}
.mr-progress-card{padding:4px 9px;border-radius:10px}
.mr-progress-meta{font-size:11px;gap:5px;flex-wrap:wrap}
.mr-progress{height:5px;margin-top:3px}
.mr-share-row{grid-template-columns:1fr 1fr;gap:5px;margin-top:5px}
.mr-home .mr-share-row input{grid-column:1/-1;height:32px;min-height:32px;font-size:12px}
.mr-home .mr-share-row button{height:34px;min-height:34px;padding:0 8px;font-size:13px}
}

/* Decorative artwork never adds height or intercepts controls. */
.mr-promo-art{position:absolute;z-index:0;top:0;right:46px;width:330px;height:75px;pointer-events:none;overflow:hidden}
.mr-promo-art svg{display:block;width:100%;height:100%}
.mr-art-gift,.mr-art-course,.mr-art-friends,.mr-art-book,.mr-art-trophy{transform-box:fill-box;transform-origin:center;animation:mr-promo-float 4.8s ease-in-out infinite}
.mr-art-course{animation-delay:-2.4s}
.mr-art-friends{animation-delay:-.8s}.mr-art-book{animation-delay:-1.6s}.mr-art-trophy{animation-delay:-3.2s}
.mr-art-spark{animation:mr-promo-spark 3.6s ease-in-out infinite}
@keyframes mr-promo-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-5px) rotate(3deg)}}
@keyframes mr-promo-spark{0%,100%{opacity:.4}50%{opacity:1}}
.mr-home .mr-dismiss{position:absolute;z-index:3;top:9px;right:9px;display:grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;margin:0;padding:7px;border:1px solid #d9c6f2;border-radius:50%;background:#ffffffdb;color:#7541b7;line-height:1;cursor:pointer;box-shadow:0 2px 8px #522a8310;transition:background-color .15s,color .15s}
.mr-home .mr-dismiss:hover{background:#7541b7;color:#fff}
.mr-dismiss svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;pointer-events:none}
@media(min-width:701px) and (max-width:1024px){
.mr-home .mr-copy h2,.mr-home .mr-copy>p{padding-right:235px}
.mr-promo-art{width:230px;height:60px;right:38px;top:2px}
}
@media(max-width:700px){
.mr-promo-art{top:4px;right:34px;width:220px;height:62px;opacity:.16}
.mr-home .mr-dismiss{top:6px;right:6px}
}
@media(prefers-reduced-motion:reduce){
.mr-art-gift,.mr-art-course,.mr-art-friends,.mr-art-book,.mr-art-trophy,.mr-art-spark{animation:none}
.mr-home .mr-dismiss{transition:none}
}

/* Keep the guest call to action as compact as the sharing controls. */
.mr-home .mr-primary{min-height:34px;margin-top:5px;padding:5px 16px;font-size:14px;line-height:1.3;background:linear-gradient(110deg,#6420dc,#8635ec)}
.mr-home .mr-share-row .mr-copy-btn{background:#f5efff;border-color:#be9ae8;color:#5920b7}
.mr-home .mr-share-row .mr-whatsapp{background:#119b56;border-color:#119b56}
