/* MM Guías y recursos. Usa los colores del tema Kentwood (primary, tertiary). */
.mmg-tool,.mmg-biblioteca,.mmg-pie{--mmg-primary:var(--wp--preset--color--primary,#020048);--mmg-tert:var(--wp--preset--color--tertiary,#ebebf8);--mmg-text:var(--wp--preset--color--contrast,#232d3f);--mmg-line:#d5d8e6;--mmg-ok:#0f6b3f;--mmg-warn:#8a5a00;--mmg-bad:#9b1c1c;box-sizing:border-box;color:var(--mmg-text);font-size:1rem;line-height:1.55}
.mmg-tool *,.mmg-biblioteca *{box-sizing:border-box}
.mmg-tool{border:1px solid var(--mmg-line);border-radius:10px;padding:20px;margin:28px auto;background:#fff;max-width:100%}
.mmg-t{margin:0 0 6px;font-size:1.25rem;color:var(--mmg-primary)}
.mmg-intro{margin:0 0 16px;color:#4a5568}
.mmg-h2{font-size:1.35rem;margin:28px 0 12px;color:var(--mmg-primary)}
.mmg-h3{font-size:1.05rem;margin:18px 0 8px;color:var(--mmg-primary)}
.mmg-row{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.mmg-field{display:flex;flex-direction:column;gap:4px;flex:1 1 200px;min-width:0}
.mmg-field label,.mmg-label{font-weight:600;font-size:.95rem}
.mmg-hint{font-size:.85rem;color:#5a6477;margin:0}
.mmg-input,.mmg-select{width:100%;min-height:44px;padding:8px 10px;border:1px solid #9aa3b8;border-radius:8px;font:inherit;background:#fff;color:inherit}
.mmg-input:focus,.mmg-select:focus,.mmg-btn:focus-visible,.mmg-chip:focus-visible,.mmg-opt:focus-visible{outline:3px solid #3182ce;outline-offset:2px}
.mmg-btn,.mmg-chip,.mmg-opt{font:inherit;cursor:pointer}
.mmg-btn{min-height:44px;padding:8px 18px;border-radius:8px;border:2px solid var(--mmg-primary);background:var(--mmg-primary);color:#fff;font-weight:600}
.mmg-btn:hover{opacity:.92}
.mmg-btn[disabled]{opacity:.5;cursor:not-allowed}
.mmg-btn-sec{background:#fff;color:var(--mmg-primary)}
.mmg-btn-link{background:none;border:0;color:var(--mmg-primary);text-decoration:underline;min-height:44px;padding:4px 8px;cursor:pointer;font:inherit}
.mmg-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.mmg-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.mmg-chip{min-height:40px;padding:6px 14px;border-radius:999px;border:1px solid #9aa3b8;background:#fff;color:var(--mmg-text)}
.mmg-chip[aria-pressed="true"]{background:var(--mmg-primary);border-color:var(--mmg-primary);color:#fff}
.mmg-opts{display:grid;gap:10px;margin:12px 0}
.mmg-opt{display:block;width:100%;text-align:left;min-height:48px;padding:12px 14px;border:1px solid #9aa3b8;border-radius:8px;background:#fff;color:inherit}
.mmg-opt:hover{background:var(--mmg-tert)}
.mmg-q{font-size:1.1rem;font-weight:700;margin:6px 0;color:var(--mmg-primary)}
.mmg-prog{font-size:.85rem;color:#5a6477;margin:0 0 4px}
.mmg-res{border-left:4px solid var(--mmg-primary);background:var(--mmg-tert);border-radius:0 8px 8px 0;padding:14px 16px;margin-top:10px}
.mmg-res h4{margin:0 0 8px;font-size:1.1rem;color:var(--mmg-primary)}
.mmg-res ul,.mmg-res ol{margin:6px 0 10px 1.2em;padding:0}
.mmg-res li{margin:4px 0}
.mmg-grp{margin:12px 0;padding:12px 14px;border-radius:8px;border:1px solid var(--mmg-line)}
.mmg-grp h4{margin:0 0 6px;font-size:1rem}
.mmg-grp-ok{border-left:4px solid var(--mmg-ok)}
.mmg-grp-rev{border-left:4px solid var(--mmg-warn)}
.mmg-grp-falta{border-left:4px solid var(--mmg-bad)}
.mmg-fuentes{margin:8px 0 0;padding-left:1.2em;font-size:.92rem}
.mmg-aviso{font-size:.85rem;color:#5a6477;margin:14px 0 0;border-top:1px solid var(--mmg-line);padding-top:10px}
.mmg-cta{margin-top:12px}
.mmg-cta a{display:inline-block;min-height:44px;padding:10px 18px;border-radius:8px;background:var(--mmg-primary);color:#fff!important;font-weight:600;text-decoration:none}
.mmg-check{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #eceef6}
.mmg-check input{width:22px;height:22px;margin-top:3px;flex:none}
.mmg-check label{flex:1}
.mmg-check small{display:block;color:#5a6477}
.mmg-tag{display:inline-block;font-size:.75rem;font-weight:700;border-radius:4px;padding:1px 6px;margin-left:6px;vertical-align:middle}
.mmg-tag-plazo{background:#fde8e8;color:var(--mmg-bad)}
.mmg-tag-rec{background:#e6f2ec;color:var(--mmg-ok)}
.mmg-progbar{height:8px;background:#e6e8f2;border-radius:6px;overflow:hidden;margin:6px 0 12px}
.mmg-progbar span{display:block;height:100%;background:var(--mmg-primary);width:0}
.mmg-table-wrap{overflow-x:auto}
.mmg-table{width:100%;border-collapse:collapse;font-size:.95rem}
.mmg-table th,.mmg-table td{border-bottom:1px solid var(--mmg-line);padding:10px 8px;text-align:left;vertical-align:top}
.mmg-table th{background:var(--mmg-tert);color:var(--mmg-primary)}
@media (max-width:700px){
 .mmg-table thead{position:absolute;left:-9999px}
 .mmg-table tr{display:block;border:1px solid var(--mmg-line);border-radius:8px;margin-bottom:12px;padding:6px 10px}
 .mmg-table td{display:block;border:0;padding:6px 0}
 .mmg-table td::before{content:attr(data-label);display:block;font-weight:700;color:var(--mmg-primary);font-size:.85rem}
}
.mmg-cards{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin:14px 0}
.mmg-cc{border:1px solid var(--mmg-line);border-radius:10px;padding:14px;background:#fff}
.mmg-cc h4{margin:0 0 4px;font-size:1.1rem}
.mmg-pill{display:inline-block;border-radius:999px;padding:2px 12px;font-weight:700;font-size:.9rem;background:var(--mmg-primary);color:#fff}
.mmg-scale{display:flex;gap:3px;margin:8px 0}
.mmg-scale span{flex:1;height:10px;border-radius:3px;background:#dfe2ef}
.mmg-scale span.on{background:var(--mmg-primary)}
.mmg-bar{display:flex;height:18px;border-radius:5px;overflow:hidden;background:#dfe2ef;margin:6px 0}
.mmg-bar i{display:block;height:100%}
.mmg-bar .b1{background:var(--mmg-primary)}
.mmg-bar .b2{background:#7c86b8}
.mmg-big{font-size:1.6rem;font-weight:700;color:var(--mmg-primary);margin:4px 0}
.mmg-kv{display:grid;grid-template-columns:1fr auto;gap:4px 12px;margin:8px 0}
.mmg-kv dt{margin:0}.mmg-kv dd{margin:0;font-weight:600;text-align:right}
.mmg-rank{display:grid;grid-template-columns:130px 1fr 80px;gap:8px;align-items:center;margin:6px 0;font-size:.95rem}
.mmg-rank .bar{height:14px;background:#dfe2ef;border-radius:4px;overflow:hidden}
.mmg-rank .bar i{display:block;height:100%;background:var(--mmg-primary)}
@media (max-width:520px){.mmg-rank{grid-template-columns:1fr 70px}.mmg-rank .bar{grid-column:1/-1;order:3}}
.mmg-warn{border-left:4px solid var(--mmg-warn);background:#fff7e6;padding:10px 12px;border-radius:0 8px 8px 0;margin:10px 0;font-size:.95rem}
.mmg-chip-x{margin-left:6px;border:0;background:none;color:inherit;cursor:pointer;font-weight:700}
.mmg-sel{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.mmg-sel span{display:inline-flex;align-items:center;background:var(--mmg-tert);border-radius:999px;padding:4px 6px 4px 12px;font-weight:600}
.mmg-details{margin-top:14px;border:1px solid var(--mmg-line);border-radius:8px;padding:8px 12px}
.mmg-details summary{cursor:pointer;font-weight:600;min-height:32px}
/* Biblioteca */
.mmg-biblioteca{margin:0 auto}
.mmg-bib-bar{position:sticky;top:0;background:#fff;z-index:5;padding:10px 0;border-bottom:1px solid var(--mmg-line)}
.mmg-count{font-size:.85rem;color:#5a6477;margin:4px 0 0}
.mmg-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.mmg-grid-3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.mmg-grid-2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.mmg-card{min-width:0;overflow-wrap:anywhere;border:1px solid var(--mmg-line);border-radius:10px;padding:16px;background:#fff;display:flex;flex-direction:column}
.mmg-card-big{background:var(--mmg-tert);border-color:transparent}
.mmg-card[hidden]{display:none}
.mmg-card-meta{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px;font-size:.78rem}
.mmg-cat{font-weight:700;color:var(--mmg-primary);text-transform:none}
.mmg-badge{background:var(--mmg-primary);color:#fff;border-radius:4px;padding:0 6px}
.mmg-badge-draft{background:#8a5a00}
.mmg-card-title{font-size:1.1rem;margin:0 0 6px;line-height:1.3}
.mmg-card-title a{color:var(--mmg-primary);text-decoration:none}
.mmg-card-title a:hover{text-decoration:underline}
.mmg-card-exc{margin:0 0 8px;font-size:.95rem}
.mmg-card-foot{margin:auto 0 0;font-size:.8rem;color:#5a6477}
.mmg-vacio{padding:16px;background:var(--mmg-tert);border-radius:8px}
.mmg-servicios{margin:28px 0 0;font-size:.95rem}
.mmg-visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Pie de artículo */
.mmg-pie{border-top:1px solid var(--mmg-line);margin-top:28px;padding-top:12px;font-size:.88rem;color:#4a5568}
.mmg-pie p{margin:4px 0}

/* ---- v0.2: bloque de contacto (lead) ---- */
.mmg-lead{margin-top:20px;padding:20px;border-radius:14px;background:var(--mmg-primary);color:#fff}
.mmg-lead h4,.mmg-lead p{color:#fff}
.mmg-lead-kicker{margin:0 0 4px;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;opacity:.85}
.mmg-lead-t{margin:0 0 8px;font-size:1.2rem}
.mmg-lead .mmg-hint{color:#dfe3f5}
.mmg-lead .mmg-btn{background:#fff;color:var(--mmg-primary);border-color:#fff;text-decoration:none;display:inline-flex;align-items:center}
.mmg-lead .mmg-btn-sec{background:transparent;color:#fff}
.mmg-lead .mmg-btn:focus-visible{outline-color:#fdf2e3}
.mmg-lead a:not(.mmg-btn){background:none!important;border:0!important;padding:0!important;color:#fff!important;font-weight:600;text-decoration:underline!important;text-underline-offset:3px}
.mmg-lead a:not(.mmg-btn):hover,.mmg-lead a:not(.mmg-btn):focus-visible{color:#fdf2e3!important}
.mmg-lead .mmg-details{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.35)}
.mmg-resumen{white-space:pre-wrap;word-break:break-word;margin:8px 0 0;font:inherit;font-size:.9rem;color:#fff}
/* ---- v0.2: CTA de artículo ---- */
.mmg-cta-band{margin:28px 0;padding:24px;border-radius:20px;background:var(--mmg-primary);color:#fff;text-align:center}
.mmg-cta-band h2,.mmg-cta-band p{color:#fff;margin:0 0 10px}
.mmg-cta-band h2{font-size:1.4rem}
.mmg-cta-band .mmg-cta-btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;padding:0 28px;line-height:1.2;border-radius:30px;background:#fff;color:var(--mmg-primary)!important;font-weight:700;text-decoration:none;margin-top:6px}
.mmg-cta-band .mmg-cta-sub{font-size:.9rem;opacity:.9;margin-top:12px}
.mmg-cta-band .mmg-cta-sub a{color:#fff;text-decoration:underline}
/* ---- v0.2: icono de tarjeta ---- */
.mmg-ico{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#fdf2e3;font-size:1.5rem;line-height:1}
.mmg-card-head{display:flex;gap:12px;align-items:flex-start}
.mmg-card-head>div{min-width:0}
.mmg-card-big .mmg-ico{background:#fff}
