@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Montserrat:wght@400;500;600;700;800&display=swap');

#opo-mm *{margin:0;padding:0;box-sizing:border-box}
#opo-mm{
  --ind:#6366F1; --ind-d:#4338CA; --ind-dd:#312E81; --ind-mid:#4F46E5; --ind-l:#818CF8;
  --ink:#2c3350; --muted:#6b7396; --line:#e8e9f7; --card:#f6f7fc;
  --soft:#eef0fe; --softline:#ccd0f7;
  --rojo:#DA291C; --verde:#009B48;
  --serif:'Fraunces',Georgia,serif; --sans:'Montserrat',-apple-system,sans-serif;
  font-family:var(--sans); color:var(--ink); line-height:1.7;
  background:#fff; max-width:1060px; margin:0 auto; padding:0 22px 46px;
  -webkit-font-smoothing:antialiased;
}

/* ============ HERO ============ */
#opo-mm .mm-hero{text-align:center;padding:46px 12px 6px}
#opo-mm .mm-cat{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ind);background:var(--soft);border:1px solid var(--softline);padding:7px 14px;border-radius:999px}
#opo-mm .mm-hero h1{font-family:var(--serif);font-weight:600;font-size:clamp(32px,6.5vw,50px);line-height:1.1;letter-spacing:-.015em;color:var(--ind-dd);margin:18px 0 0}
#opo-mm .mm-hero h1 span{color:var(--ind)}
#opo-mm .mm-hero .sub{max-width:600px;margin:14px auto 0;color:var(--muted);font-size:15.5px}

/* ============ KICKERS DE SECCIÓN ============ */
#opo-mm .sec{margin-top:52px}
#opo-mm .sec-head{display:flex;align-items:baseline;gap:12px;margin-bottom:6px}
#opo-mm .sec-num{font-family:var(--serif);font-weight:600;font-size:15px;color:#fff;background:var(--ind);border-radius:9px;padding:2px 10px;flex:none}
#opo-mm .sec-tit{font-family:var(--serif);font-weight:600;font-size:clamp(21px,3.4vw,27px);color:var(--ind-dd);letter-spacing:-.01em}
#opo-mm .sec-sub{color:var(--muted);font-size:13.5px;margin:2px 0 20px;padding-left:2px}

/* ============ CONTROLES ============ */
#opo-mm .mm-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin:26px 0 0;position:sticky;top:10px;z-index:5}
#opo-mm .mm-tools button{display:inline-flex;align-items:center;gap:7px;font-family:var(--sans);font-weight:600;font-size:13px;color:var(--ind-d);background:rgba(255,255,255,.92);backdrop-filter:blur(6px);border:1.5px solid var(--softline);padding:9px 15px;border-radius:999px;cursor:pointer;transition:.18s;box-shadow:0 4px 14px rgba(49,46,129,.07)}
#opo-mm .mm-tools button:hover{background:var(--soft);border-color:var(--ind-l)}
#opo-mm .mm-tools button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#opo-mm .mm-tools .rep.on{background:var(--ind-dd);color:#fff;border-color:var(--ind-dd)}
#opo-mm .mm-tools .cnt{display:none;font-size:12px;font-weight:800;color:#fff;background:var(--ind);border:1.5px solid var(--ind);padding:9px 14px;border-radius:999px}
#opo-mm.repaso .mm-tools .cnt{display:inline-flex}

/* ============ 01 · TIMELINE GÉNESIS ============ */
#opo-mm .tl{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:8px}
#opo-mm .tl::before{content:"";position:absolute;top:26px;left:6%;right:6%;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--ind-l),var(--ind),var(--ind-d),var(--ind-dd))}
#opo-mm .tl-step{position:relative;text-align:center;padding-top:52px}
#opo-mm .tl-dot{position:absolute;top:14px;left:50%;transform:translateX(-50%);width:26px;height:26px;border-radius:50%;background:#fff;border:3px solid var(--ind);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:var(--ind-d);z-index:1}
#opo-mm .tl-step:nth-child(2) .tl-dot{border-color:var(--ind-mid)}
#opo-mm .tl-step:nth-child(3) .tl-dot{border-color:var(--ind-d)}
#opo-mm .tl-step:nth-child(4) .tl-dot{border-color:var(--ind-dd);background:var(--ind-dd);color:#fff}
#opo-mm .tl-card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:13px 12px;height:100%}
#opo-mm .tl-year{font-family:var(--serif);font-weight:700;font-size:19px;color:var(--ind-dd)}
#opo-mm .tl-t{font-weight:700;font-size:13px;color:var(--ind-d);margin-top:2px}
#opo-mm .tl-d{font-size:12.5px;color:var(--muted);margin-top:6px}

/* ============ 02 · MAPA RADIAL ============ */
#opo-mm .mm-tree{position:relative;margin-top:10px}
#opo-mm .mm-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:visible}
#opo-mm .mm-canvas{position:relative;z-index:1}
#opo-mm .mm-center{max-width:368px;margin:0 auto;text-align:center;background:linear-gradient(160deg,#3d3f9e,#211c56);color:#fff;border-radius:20px;padding:24px;box-shadow:0 18px 44px rgba(33,28,86,.28)}
#opo-mm .mm-center .cnum{font-family:var(--serif);font-weight:600;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--ind-l)}
#opo-mm .mm-center .ctit{font-family:var(--serif);font-weight:600;font-size:23px;line-height:1.2;margin-top:4px}
#opo-mm .mm-center .csub{font-size:12.5px;color:#c7c9ee;margin-top:6px}
#opo-mm .mm-trunk{height:24px;position:relative}
#opo-mm .mm-trunk::before{content:"";position:absolute;left:50%;top:0;width:2px;height:100%;background:var(--softline);transform:translateX(-50%)}
#opo-mm .mm-left,#opo-mm .mm-right{display:flex;flex-direction:column;gap:22px}
#opo-mm .mm-col{position:relative}
#opo-mm .mm-col::before{content:"";position:absolute;top:-14px;left:50%;width:2px;height:14px;background:var(--softline);transform:translateX(-50%)}
#opo-mm .mm-branch{width:100%;display:flex;align-items:center;gap:11px;text-align:left;font-family:var(--sans);color:#fff;border:none;border-radius:14px;padding:13px 14px;cursor:pointer;transition:.2s;line-height:1.25}
#opo-mm .mm-branch:hover{filter:brightness(1.07)}
#opo-mm .mm-branch .bic{flex:none;width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center}
#opo-mm .mm-branch .bic svg{width:19px;height:19px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#opo-mm .mm-branch .btx{flex:1;min-width:0}
#opo-mm .mm-branch .blab{display:block;font-size:9.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;opacity:.82}
#opo-mm .mm-branch .btit{font-family:var(--serif);font-weight:600;font-size:16px;margin-top:1px}
#opo-mm .mm-branch .bcnt{flex:none;font-size:11px;font-weight:700;background:rgba(255,255,255,.2);padding:3px 8px;border-radius:999px}
#opo-mm .mm-branch .bchev{flex:none;width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;transition:transform .25s}
#opo-mm .mm-col.open .bchev{transform:rotate(180deg)}
#opo-mm .mm-col[data-c="a"] .mm-branch{background:linear-gradient(155deg,#7c7ef6,#6366F1)}
#opo-mm .mm-col[data-c="b"] .mm-branch{background:linear-gradient(155deg,#3b3893,#312E81)}
#opo-mm .mm-col[data-c="c"] .mm-branch{background:linear-gradient(155deg,#5a4fe0,#4338CA)}
#opo-mm .mm-col[data-c="d"] .mm-branch{background:linear-gradient(155deg,#6a63ef,#4F46E5)}
#opo-mm .mm-leaves{overflow:hidden;max-height:0;transition:max-height .34s ease;padding-left:16px;margin-left:6px}
#opo-mm .mm-col[data-c="a"] .mm-leaves{border-left:2px solid var(--ind)}
#opo-mm .mm-col[data-c="b"] .mm-leaves{border-left:2px solid var(--ind-dd)}
#opo-mm .mm-col[data-c="c"] .mm-leaves{border-left:2px solid var(--ind-d)}
#opo-mm .mm-col[data-c="d"] .mm-leaves{border-left:2px solid var(--ind-mid)}
#opo-mm .mm-leaf{position:relative;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:11px 13px;margin-top:12px;transition:box-shadow .18s,border-color .18s,transform .18s}
#opo-mm .mm-leaf::before{content:"";position:absolute;left:-17px;top:20px;width:15px;height:2px;background:var(--softline)}
#opo-mm .mm-leaf:first-child{margin-top:14px}
#opo-mm .mm-leaf .lt{font-weight:700;font-size:14px;color:var(--ind-dd);line-height:1.3;display:flex;align-items:baseline;gap:8px}
#opo-mm .mm-leaf .lt::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;transform:translateY(-1px)}
#opo-mm .mm-col[data-c="a"] .mm-leaf .lt::before{background:var(--ind)}
#opo-mm .mm-col[data-c="b"] .mm-leaf .lt::before{background:var(--ind-dd)}
#opo-mm .mm-col[data-c="c"] .mm-leaf .lt::before{background:var(--ind-d)}
#opo-mm .mm-col[data-c="d"] .mm-leaf .lt::before{background:var(--ind-mid)}
#opo-mm .chips{display:flex;flex-wrap:wrap;gap:6px}
#opo-mm .chips + .note{margin-top:7px}
#opo-mm .note{font-size:12.5px;color:var(--muted)}
#opo-mm .chip{font-size:11.5px;font-weight:600;padding:4px 9px;border-radius:999px;white-space:nowrap;line-height:1.3}
#opo-mm .chip.art{background:var(--soft);color:var(--ind-d);border:1px solid var(--softline);font-weight:700}
#opo-mm .chip.num{background:var(--ind-dd);color:#fff}
#opo-mm .chip.key{background:#fff;color:var(--ink);border:1px solid var(--softline)}
#opo-mm b{color:var(--ind-dd)}

/* ============ 03 · CIRCUITO DE PODERES ============ */
#opo-mm .pow{display:grid;grid-template-columns:1fr auto 1.15fr auto 1fr;align-items:center;gap:0;margin-top:6px}
#opo-mm .pow-box{border-radius:16px;padding:16px 14px;text-align:center;position:relative}
#opo-mm .pow-box .pk{font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;opacity:.75}
#opo-mm .pow-box .pt{font-family:var(--serif);font-weight:700;font-size:18px;margin-top:2px}
#opo-mm .pow-box .pd{font-size:11.5px;margin-top:5px;line-height:1.5}
#opo-mm .pow-side{background:var(--card);border:1.5px solid var(--softline);color:var(--ink)}
#opo-mm .pow-side .pt{color:var(--ind-dd)}
#opo-mm .pow-side .pd{color:var(--muted)}
#opo-mm .pow-main{background:linear-gradient(160deg,#3d3f9e,#211c56);color:#fff;box-shadow:0 14px 34px rgba(33,28,86,.25)}
#opo-mm .pow-main .pk{color:var(--ind-l);opacity:1}
#opo-mm .pow-main .pd{color:#c7c9ee}
#opo-mm .pow-arr{display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 10px}
#opo-mm .pow-arr .al{font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ind-d);background:var(--soft);border:1px solid var(--softline);padding:3px 9px;border-radius:999px;white-space:nowrap}
#opo-mm .pow-arr svg{width:46px;height:14px;fill:none;stroke:var(--ind);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#opo-mm .pow-down{display:flex;flex-direction:column;align-items:center;gap:4px;margin:14px 0 0}
#opo-mm .pow-down svg{width:14px;height:34px;fill:none;stroke:var(--ind);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#opo-mm .pow-down .al{font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ind-d);background:var(--soft);border:1px solid var(--softline);padding:3px 9px;border-radius:999px}
#opo-mm .pow-gov{max-width:470px;margin:0 auto;background:var(--soft);border:1.5px solid var(--softline);border-radius:16px;padding:15px 16px;text-align:center}
#opo-mm .pow-gov .pt{font-family:var(--serif);font-weight:700;font-size:17px;color:var(--ind-dd)}
#opo-mm .pow-gov .pd{font-size:12px;color:var(--muted);margin-top:4px}
#opo-mm .pow-loop{max-width:470px;margin:10px auto 0;text-align:center;font-size:11.5px;font-weight:700;color:var(--ind-d);background:#fff;border:1.5px dashed var(--softline);border-radius:999px;padding:7px 14px}

/* ============ 04 · TERRITORIO + IKURRIÑA ============ */
#opo-mm .duo{display:grid;grid-template-columns:1.05fr .95fr;gap:22px;align-items:stretch}
#opo-mm .panel{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px}
#opo-mm .panel-t{font-family:var(--serif);font-weight:700;font-size:18px;color:var(--ind-dd);display:flex;align-items:center;gap:8px}
#opo-mm .panel-t .chip{transform:translateY(-1px)}
#opo-mm .th-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
#opo-mm .th{background:#fff;border:1.5px solid var(--softline);border-radius:13px;padding:13px 10px;text-align:center}
#opo-mm .th .tn{font-family:var(--serif);font-weight:700;font-size:15.5px;color:var(--ind-dd)}
#opo-mm .th .tk{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--ind);margin-top:3px}
#opo-mm .th-nav{grid-column:1/-1;border-style:dashed;background:var(--soft)}
#opo-mm .th-nav .tn{color:var(--ind-d)}
#opo-mm .th-note{font-size:12px;color:var(--muted);margin-top:12px}
#opo-mm .ik{position:relative;width:100%;aspect-ratio:5/3;border-radius:12px;overflow:hidden;background:var(--rojo);margin-top:14px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
#opo-mm .ik .aspa1,#opo-mm .ik .aspa2{position:absolute;top:50%;left:50%;width:150%;height:13%;background:var(--verde)}
#opo-mm .ik .aspa1{transform:translate(-50%,-50%) rotate(31deg)}
#opo-mm .ik .aspa2{transform:translate(-50%,-50%) rotate(-31deg)}
#opo-mm .ik .cruzV{position:absolute;top:0;bottom:0;left:50%;width:11%;transform:translateX(-50%);background:#fff}
#opo-mm .ik .cruzH{position:absolute;left:0;right:0;top:50%;height:13%;transform:translateY(-50%);background:#fff}
#opo-mm .ik-leg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
#opo-mm .ik-leg .lg{background:#fff;border:1.5px solid var(--softline);border-radius:11px;padding:9px 8px;text-align:center}
#opo-mm .ik-leg .dot{display:inline-block;width:11px;height:11px;border-radius:50%;margin-bottom:4px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
#opo-mm .ik-leg .n{display:block;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--ind-d)}
#opo-mm .ik-leg .v{display:block;font-size:12px;font-weight:700;color:var(--ink)}

/* ============ 05 · COMPETENCIAS ============ */
#opo-mm .comp{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#opo-mm .comp .cbox{border-radius:16px;padding:18px;border:1.5px solid var(--softline);background:var(--card)}
#opo-mm .comp .cbox.dark{background:linear-gradient(160deg,#3d3f9e,#211c56);border-color:transparent;color:#fff}
#opo-mm .comp .ck{font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--ind)}
#opo-mm .comp .cbox.dark .ck{color:var(--ind-l)}
#opo-mm .comp .ct{font-family:var(--serif);font-weight:700;font-size:18px;color:var(--ind-dd);margin-top:3px}
#opo-mm .comp .cbox.dark .ct{color:#fff}
#opo-mm .comp .cd{font-size:12.5px;color:var(--muted);margin-top:7px}
#opo-mm .comp .cbox.dark .cd{color:#c7c9ee}

/* ============ TRUCOS ============ */
#opo-mm .trucos{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
#opo-mm .truco{background:var(--soft);border:1px solid var(--softline);border-radius:15px;padding:15px 15px 14px;position:relative}
#opo-mm .truco .tk{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--ind-d);margin-bottom:6px}
#opo-mm .truco .tk svg{width:15px;height:15px;fill:none;stroke:var(--ind-d);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#opo-mm .truco p{font-size:13px;line-height:1.6}

/* ============ MODO REPASO (GLOBAL) ============ */
#opo-mm .rp .rp-data{transition:filter .2s,opacity .2s}
#opo-mm .rp .rp-hint{display:none;margin-top:8px;font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--ind-d);background:var(--soft);border:1px dashed var(--softline);padding:4px 10px;border-radius:999px}
#opo-mm.repaso .rp{cursor:pointer}
#opo-mm.repaso .rp .rp-data{filter:blur(6px);opacity:.45;user-select:none;pointer-events:none}
#opo-mm.repaso .rp .rp-hint{display:inline-block}
#opo-mm.repaso .rp.reveal .rp-data{filter:none;opacity:1;pointer-events:auto}
#opo-mm.repaso .rp.reveal .rp-hint{display:none}
#opo-mm.repaso .rp{outline:2px dashed transparent;outline-offset:3px;border-radius:14px}
#opo-mm.repaso .rp:not(.reveal):hover{outline-color:var(--ind-l)}

#opo-mm .mm-src{text-align:center;color:var(--muted);font-size:12px;margin-top:44px}

/* entrada */
#opo-mm .mm-col,#opo-mm .tl-step,#opo-mm .fade{opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s ease}
#opo-mm .mm-col.in,#opo-mm .tl-step.in,#opo-mm .fade.in{opacity:1;transform:none}

/* ============ ESCRITORIO: RADIAL ============ */
@media(min-width:860px){
  #opo-mm .mm-canvas{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-template-areas:"left hub right";align-items:center;column-gap:54px}
  #opo-mm .mm-center{grid-area:hub;margin:0}
  #opo-mm .mm-trunk{display:none}
  #opo-mm .mm-left{grid-area:left}
  #opo-mm .mm-right{grid-area:right}
  #opo-mm .mm-col::before{display:none}
  #opo-mm .mm-left .mm-branch{flex-direction:row-reverse}
  #opo-mm .mm-left .mm-branch .btx{text-align:right}
  #opo-mm .mm-left .mm-leaves{border-left:none;padding-left:0;margin-left:0;padding-right:16px;margin-right:6px}
  #opo-mm .mm-left .mm-col[data-c="a"] .mm-leaves{border-right:2px solid var(--ind)}
  #opo-mm .mm-left .mm-col[data-c="b"] .mm-leaves{border-right:2px solid var(--ind-dd)}
  #opo-mm .mm-left .mm-leaf{text-align:right}
  #opo-mm .mm-left .mm-leaf::before{left:auto;right:-17px}
  #opo-mm .mm-left .mm-leaf .lt{flex-direction:row-reverse}
  #opo-mm .mm-left .mm-leaf .chips{justify-content:flex-end}
  #opo-mm .mm-leaf:hover{box-shadow:0 8px 22px rgba(49,46,129,.12);border-color:var(--softline);transform:translateY(-1px)}
}

/* ============ MÓVIL ============ */
@media(max-width:859px){
  #opo-mm{padding:0 16px 40px}
  #opo-mm .mm-links{display:none}
  #opo-mm .mm-left,#opo-mm .mm-right{margin-top:22px}
  #opo-mm .mm-col::before{left:24px;top:-22px;height:22px}
  #opo-mm .tl{grid-template-columns:1fr;gap:10px}
  #opo-mm .tl::before{top:8px;bottom:8px;left:12px;right:auto;width:3px;height:auto;background:linear-gradient(180deg,var(--ind-l),var(--ind-dd))}
  #opo-mm .tl-step{padding-top:0;padding-left:40px;text-align:left}
  #opo-mm .tl-dot{top:14px;left:12px;transform:translateX(-50%)}
  #opo-mm .pow{grid-template-columns:1fr;gap:0}
  #opo-mm .pow-arr{padding:10px 0;transform:none}
  #opo-mm .pow-arr svg{transform:rotate(90deg)}
  #opo-mm .duo{grid-template-columns:1fr}
  #opo-mm .comp{grid-template-columns:1fr}
  #opo-mm .trucos{grid-template-columns:1fr}
  #opo-mm .th-grid{grid-template-columns:repeat(3,1fr)}
}