.mig-page .ma-section {margin-block:2rem;min-width:0}
.mig-page .ma-hero {background:radial-gradient(ellipse at 80% 20%,#243e68,transparent 62%),#101b39}
.mig-hero {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:center;gap:clamp(1rem,4vw,2.5rem);margin-top:1rem}
.mig-hero img {display:block;width:100%;height:auto;border:1px solid #7984a2;border-radius:1rem}
.mig-page a.ma-cta {display:inline-block;background:#b91c1c;color:#fff;padding:.7rem 1rem;border-radius:.45rem;font-weight:700;text-decoration:none}
.mig-page a.ma-cta:hover {background:#991b1b;color:#fff}
.mig-page :focus-visible {outline:3px solid #5951b8;outline-offset:3px}
.mig-page .ma-hero :focus-visible {outline-color:white}
.mig-page [hidden] {display:none!important}
.mig-page .ma-table {max-width:100%;overflow-x:auto}
.mig-page .ma-table td,.mig-page .ma-table th {overflow-wrap:anywhere}
.mig-cards,.mig-tasks,.mig-phases {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}
.mig-cards div,.mig-tasks article,.mig-phases li,.mig-template {min-width:0;padding:1rem;border:1px solid #8792a8;border-radius:.6rem;background:#f5f7fc;color:#152446}
.mig-cards dt,.mig-tasks dt {font-weight:700}
.mig-cards dd,.mig-tasks dd {margin:0 0 .4rem}
.mig-phases {padding:0;list-style:none;counter-reset:fase}
.mig-phases li {counter-increment:fase;border-top:5px solid var(--fase);background:var(--fondo)}
.mig-phases strong::before {content:counter(fase) ". "}
.mig-phases li:nth-child(1) {--fase:#1e40af;--fondo:#edf4ff}
.mig-phases li:nth-child(2) {--fase:#6b21a8;--fondo:#f6efff}
.mig-phases li:nth-child(3) {--fase:#166534;--fondo:#edf9ef}
.mig-phases li:nth-child(4) {--fase:#9a3412;--fondo:#fff4e7}
.mig-phases li:nth-child(5) {--fase:#9f1239;--fondo:#fff0f4}
.mig-phases li:nth-child(6) {--fase:#155e75;--fondo:#eaf8fc}
.mig-state {display:block;font-weight:700}
.mig-page textarea,.mig-page select {box-sizing:border-box;width:100%;min-width:0;background:white;color:#152446;border:1px solid #64748b;border-radius:.35rem;padding:.55rem;font:inherit}
.mig-template {margin:.75rem 0}
.mig-template textarea {display:block;margin:.4rem 0;resize:vertical}
#mig-progreso:not(:empty) {margin:1rem 0;padding:.8rem;background:#eef5ff;border:1px solid #8792a8;border-radius:.45rem}
.mig-print-content {display:none}
@media(max-width:820px) {
 .mig-hero {grid-template-columns:minmax(0,1fr)}
 .mig-page .ma-table table,.mig-page .ma-table tbody,.mig-page .ma-table tr,.mig-page .ma-table td {display:block;min-width:0;width:100%}
 .mig-page .ma-table thead {position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
 .mig-page .ma-table td::before {content:attr(data-label);display:block;font-weight:700}
 .mig-page .ma-table tbody tr + tr {border-top:2px solid #64748b}
}
@media print {
 .mig-page > :not(main),.mig-page main > :not(#plantillas),#plantillas > :not(.mig-template),.mig-template > :not(h3,.mig-print-content) {display:none!important}
 .mig-page main {width:auto;max-width:none;margin:0;padding:0}
 .mig-template {background:white;color:black;border:0;padding:0;break-after:page}
 .mig-template:last-of-type,.mig-template.mig-print-active {break-after:auto}
 .mig-page.mig-single-print .mig-template:not(.mig-print-active) {display:none}
 .mig-print-content {display:block;white-space:pre-wrap;overflow-wrap:anywhere;font:11pt/1.6 Arial,sans-serif;color:black}
}
