.m18-hero{position:relative;overflow:hidden;border-radius:32px;padding:34px;background:linear-gradient(135deg,rgba(49,87,255,.12),rgba(1,168,255,.10)),white;border:1px solid var(--m18-line);box-shadow:var(--m18-shadow)}.m18-hero:after{content:"";position:absolute;right:-80px;top:-100px;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(255,176,32,.28),transparent 70%)}.m18-breadcrumb{display:flex;gap:.45rem;flex-wrap:wrap;color:var(--m18-muted);font-size:.92rem;margin-bottom:1rem}.m18-breadcrumb a{color:var(--m18-muted);font-weight:750}.m18-hero h1{font-size:clamp(2.1rem,5vw,4.7rem);line-height:.98;letter-spacing:-.07em;margin:.2rem 0 1rem;max-width:880px}.m18-hero__intro{font-size:1.12rem;color:var(--m18-muted);max-width:760px;margin:0 0 1.3rem}.m18-hero__meta{display:flex;flex-wrap:wrap;gap:.65rem}.m18-ad-top{margin:22px auto}.m18-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;margin-top:24px}.m18-article{padding:34px}.m18-article h2{font-size:clamp(1.55rem,3vw,2.35rem);line-height:1.08;letter-spacing:-.04em;margin:2.2rem 0 .8rem}.m18-article h3{font-size:1.35rem;line-height:1.2;margin:1.7rem 0 .55rem}.m18-article p{margin:1rem 0;color:#26324a}.m18-article ul,.m18-article ol{padding-left:1.4rem}.m18-article li{margin:.45rem 0}.m18-article hr{border:0;border-top:1px solid var(--m18-line);margin:2rem 0}.m18-article .NotaOMG,.m18-note{background:#fff7df;border:1px solid #ffe1a3;border-radius:16px;padding:1rem;color:#5a3b00}.m18-article .eq-c,.m18-article .ejemplosOMG,.m18-article .ejercicios{overflow:auto;background:#f8fbff;border:1px solid var(--m18-line);border-radius:16px;padding:1rem}.m18-sidebar{position:sticky;top:96px;align-self:start;display:grid;gap:18px}.m18-toc{padding:20px}.m18-toc h2{font-size:1rem;margin:0 0 .8rem}.m18-toc a{display:block;padding:.5rem .2rem;color:var(--m18-muted);border-bottom:1px solid rgba(220,228,242,.65);font-weight:700;font-size:.94rem}.m18-toc a:hover{color:var(--m18-brand)}.m18-related{margin-top:28px}.m18-related h2{font-size:1.4rem}.m18-related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.m18-related__item{padding:18px}.m18-related__item h3{font-size:1rem;margin:0 0 .4rem}.m18-related__item p{font-size:.9rem;color:var(--m18-muted);margin:0}.m18-listing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.m18-listing-card{padding:20px;min-height:160px}.m18-listing-card h2{font-size:1.18rem;line-height:1.2;margin:.4rem 0}.m18-listing-card p{color:var(--m18-muted);font-size:.94rem}.m18-home-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;margin-top:24px}.m18-feature-card{padding:28px}.m18-feature-card h2{font-size:1.6rem;margin:.2rem 0}.m18-home-links{display:grid;gap:12px}.m18-home-links a{padding:16px 18px}.m18-ad-inline{margin:1.5rem 0}@media(max-width:980px){.m18-layout,.m18-home-grid{grid-template-columns:1fr}.m18-sidebar{position:static}.m18-related__grid,.m18-listing-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.m18-hero{padding:24px;border-radius:24px}.m18-article{padding:22px}.m18-related__grid,.m18-listing-grid{grid-template-columns:1fr}}

.m18-compact-head{padding:18px 0 0}.m18-compact-head h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1;letter-spacing:-.065em;margin:0 0 .6rem}.m18-compact-head p{max-width:820px;color:var(--m18-muted);margin:0}.m18-simple-list-head{padding:18px 0 8px}.m18-simple-list-head h1{font-size:clamp(2rem,5vw,3.2rem);line-height:1;letter-spacing:-.06em;margin:0}.m18-page-note{padding:24px}.m18-article-head{margin-bottom:1.4rem;padding-bottom:1.1rem;border-bottom:1px solid var(--m18-line)}.m18-article-head h1{font-size:clamp(2rem,5vw,3.5rem);line-height:.98;letter-spacing:-.06em;margin:.25rem 0 .7rem}.m18-article-head p{color:var(--m18-muted);margin:0}.m18-article .textolink{background:#f6f9ff;border:1px solid var(--m18-line);border-radius:14px;padding:12px 14px}.m18-article .link{color:var(--m18-brand)}@media(max-width:650px){.m18-compact-head{padding-top:8px}.m18-article-head h1{font-size:2.25rem}}


/* v5: layout tipo Mecatrónica LATAM + correcciones de fórmulas originales */
.m18-compact-head .m18-pill,.m18-simple-list-head .m18-pill,.m18-article-head .m18-pill{display:none}
.m18-compact-head{padding:12px 0 0}.m18-compact-head h1{margin-top:0}
.m18-layout--article-v5{display:grid;grid-template-columns:280px minmax(0,1fr) 320px;gap:24px;align-items:start;max-width:1500px}.m18-layout--article-v5 .m18-article{min-width:0}.m18-layout--article-v5.m18-layout--no-ad{grid-template-columns:280px minmax(0,1fr)}.m18-layout--article-v5.m18-layout--no-ad .m18-right-ad{display:none}
.m18-right-ad{position:sticky;top:96px;display:grid;gap:18px;align-self:start}.m18-right-ad .m18-ad{background:#fff;border-style:solid;box-shadow:0 12px 36px rgba(28,50,91,.10)}
.m18-nav-sidebar{position:sticky;top:96px;max-height:calc(100vh - 118px);overflow:auto;background:transparent;color:var(--m18-text);padding:0 6px 18px}.m18-nav-sidebar__close{display:none}.m18-nav-sidebar .TitularesOMG2{margin:0 0 10px;border-radius:16px;background:linear-gradient(135deg,#26b7ff,#0bbf96);color:#fff;font-weight:850;box-shadow:none;text-align:left;padding:12px 14px}.m18-side-tree{background:rgba(255,255,255,.92);border:1px solid var(--m18-line);box-shadow:0 18px 42px rgba(28,50,91,.10);border-radius:18px;padding:10px 10px 12px;margin:0;color:var(--m18-text)}.m18-side-tree ul{list-style:none;margin:0;padding:0}.m18-side-tree ul ul{margin:4px 0 8px 12px;padding-left:10px;border-left:2px solid #e6eefc}.m18-side-tree li{margin:2px 0}.m18-side-tree li::before{display:none!important}.m18-side-tree a{display:block;border-radius:12px;padding:8px 10px;color:#34415d;font-size:.92rem;line-height:1.25}.m18-side-tree a:hover,.m18-side-tree a.is-active{background:#ddebff;color:#0a58ff}.m18-side-tree strong{font-weight:800}.m18-side-toggle{display:none;align-items:center;gap:8px;border:0;border-radius:0 12px 12px 0;background:#246bff;color:#fff;font-weight:850;padding:10px 14px;box-shadow:0 12px 24px rgba(36,107,255,.22);cursor:pointer;z-index:1100}.m18-side-toggle svg{width:20px;height:20px}.m18-side-backdrop{display:none;position:fixed;inset:0;background:rgba(9,16,31,.52);z-index:2190}.m18-side-open .m18-side-backdrop{display:block}.m18-side-open .m18-nav-sidebar{transform:translateX(0)}
.m18-toc--inside{background:#eef4fb;border:1px solid var(--m18-line);border-radius:14px;box-shadow:none;margin:0 0 1.7rem;padding:18px 22px}.m18-toc--inside h2{margin:0 0 .6rem;color:#0057b8;font-size:1.1rem;text-transform:uppercase;letter-spacing:.02em}.m18-toc--inside a{font-weight:600;color:#182238;border:0;padding:4px 0}.m18-toc--inside a:hover{color:#0a58ff}.m18-toc__h3{padding-left:14px!important;font-size:.92rem!important;color:#5c6780!important}
.m18-article .textolink{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;margin:18px 0 28px;padding:16px 18px;border:1px solid #b9d2ff;border-left:6px solid var(--m18-brand);border-radius:18px;background:linear-gradient(135deg,#f7fbff,#eef5ff);color:#15213a;box-shadow:0 14px 34px rgba(49,87,255,.13);transition:transform .18s,box-shadow .18s,border-color .18s}.m18-article .textolink:before{content:'Lectura recomendada';position:absolute;top:-12px;left:16px;background:#fff;color:#0a58ff;border:1px solid #cfe0ff;border-radius:999px;padding:3px 10px;font-size:.76rem;font-weight:850;letter-spacing:.02em}.m18-article .textolink:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(49,87,255,.18);border-color:#7fa7ff}.m18-article .textolink .link,.m18-article .textolink strong{color:#0a58ff}.m18-article .textolink span,.m18-article .textolink .footer_letra{font-size:1.5rem;color:#00a8ff;margin:0}.m18-article .TitularesOMG{display:inline-flex;margin:26px 0 0;padding:7px 14px;border-radius:999px;background:#111827;color:#fff;box-shadow:none;font-weight:850}.m18-article .NotaOMG,.m18-note{background:#fff8df;border:1px solid #ffe1a3;border-radius:16px;padding:1rem;color:#5a3b00;box-shadow:none}
.m18-article .eq-c,.m18-article center.ejemplosOMG,.m18-article .ejercicios{background:#f8fbff;border:1px solid var(--m18-line);border-radius:18px;box-shadow:inset 0 1px 4px rgba(49,87,255,.10);padding:18px;margin:12px 0 22px;overflow-x:auto;text-align:center}.m18-article .eq-c{font-size:1.05rem;line-height:1.35}.m18-article .fraction{display:inline-block;vertical-align:middle;margin:0 .25em .4ex;text-align:left;min-width:max-content}.m18-article .fraction>span{display:block;padding:.12em .35em;white-space:nowrap}.m18-article .fraction span.fdn{border-top:2px solid #172033;padding-top:.24em}.m18-article .fraction span.bar{display:none}.m18-article .eq-OMG{display:inline-flex;align-items:center;gap:8px;margin:8px 14px;font-weight:700}.m18-article .llevada,.m18-article .ColorEjer{color:#e11d48;font-weight:850}.m18-article .division-borde{display:inline-block;border-left:2px solid #172033;border-top:2px solid #172033;padding:.05em .3em .05em .45em;border-radius:4px 0 0 0}.m18-article .ejercicios center{display:grid;gap:10px;justify-items:center}.m18-article .ejercicios .botonEjer{margin-top:10px;border:0;border-radius:999px;background:linear-gradient(135deg,#3157ff,#01a8ff);color:#fff;padding:10px 18px;font-weight:850;cursor:pointer;box-shadow:0 12px 28px rgba(49,87,255,.22)}.m18-article .ejercicios .botonEjer:hover{transform:translateY(-1px)}.m18-article img{border-radius:16px}.m18-article figure{margin:1.5rem 0}.m18-article figure img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#f8fbff;border:1px solid var(--m18-line)}
@media(max-width:1320px){.m18-layout--article-v5{grid-template-columns:minmax(0,1fr) 320px}.m18-side-toggle{display:inline-flex;position:sticky;top:76px;margin:12px 0 0}.m18-nav-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(360px,86vw);max-height:none;background:#eef6ff;padding:18px 14px;z-index:2200;transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 0 50px rgba(13,25,50,.25)}.m18-nav-sidebar__close{display:flex;align-items:center;justify-content:center;margin-left:auto;margin-bottom:10px;width:42px;height:42px;border:1px solid var(--m18-line);border-radius:14px;background:#fff;font-size:1.6rem;line-height:1;cursor:pointer}}@media(max-width:1320px){.m18-layout--article-v5{grid-template-columns:1fr}.m18-right-ad{display:none}.m18-layout--article-v5.m18-layout--no-ad{grid-template-columns:1fr}}@media(max-width:650px){.m18-toc--inside{padding:16px}.m18-article .eq-OMG{display:flex;justify-content:center}.m18-article .textolink{padding:18px 14px;flex-direction:column;align-items:flex-start}.m18-side-toggle{top:68px}}
.m18-layout--generic{grid-template-columns:minmax(0,1fr) 320px}.m18-layout--generic.m18-layout--no-ad{grid-template-columns:minmax(0,1fr)}@media(max-width:1320px){.m18-layout--generic{grid-template-columns:1fr}}


/* v6: navegación lateral, tablas y elementos matemáticos visuales */
.m18-nav-sidebar{max-height:none!important;overflow:visible!important}.m18-side-tree{max-height:calc(100vh - 174px);overflow-y:auto;scrollbar-width:thin}.m18-side-tree::-webkit-scrollbar{width:8px}.m18-side-tree::-webkit-scrollbar-thumb{background:#9fb4d6;border-radius:999px}.m18-side-tree::-webkit-scrollbar-track{background:#eef5ff;border-radius:999px}@media(max-width:1320px){.m18-side-toggle{position:fixed!important;left:0!important;top:84px!important;margin:0!important;border-radius:0 14px 14px 0!important}.m18-nav-sidebar{overflow-y:auto!important}.m18-side-tree{max-height:none;overflow:visible}}@media(max-width:650px){.m18-side-toggle{top:72px!important}}
.m18-article .divcarousel{width:100%;overflow:auto;margin:20px 0 28px;padding:14px;border:1px solid #dbe6f7;border-radius:20px;background:linear-gradient(180deg,#f8fbff,#eef5ff);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}.m18-article table.table,.m18-article table.table2{width:max-content;min-width:100%;border-collapse:separate;border-spacing:6px;font-weight:800}.m18-article table.table td,.m18-article table.table th,.m18-article table.table2 td,.m18-article table.table2 th{min-width:46px;text-align:center;padding:12px 14px;border-radius:12px;border:1px solid #d8e4f6;background:#fff;color:#172033;box-shadow:0 6px 16px rgba(28,50,91,.06)}.m18-article table.table th,.m18-article table.table2 th,.m18-article .Color000{background:linear-gradient(135deg,#3157ff,#01a8ff)!important;color:#fff!important}.m18-article .Colorfff,.m18-article .ColorX{color:#fff!important}.m18-article table.table td:hover,.m18-article table.table th:hover,.m18-article table.table2 td:hover,.m18-article table.table2 th:hover{outline:3px solid rgba(49,87,255,.22);transform:translateY(-1px)}.m18-article .m18-table-row-hover td,.m18-article .m18-table-row-hover th,.m18-article .m18-table-col-hover{background:#eaf3ff!important}.m18-article .Color1{background:#e8edf5!important;color:#6b7280!important}.m18-article .ColorNaranja{background:#fff0dc!important;color:#c05700!important}.m18-article .ColorAmarillo{background:#fff7b8!important;color:#856400!important}.m18-article table.table2{border-spacing:8px}.m18-article table.table2 td:first-child{background:#eff6ff;color:#0a58ff}.m18-article table.table2 td:last-child{background:#f0fdf4;color:#087443}.m18-article .div_circulo{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:center;margin:18px 0 28px;padding:18px;border:1px solid #dbe6f7;border-radius:22px;background:#f8fbff}.m18-article .div_circulo>div{--p:25%;width:120px;height:120px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#3157ff 0 var(--p),#edf4ff var(--p) 100%);box-shadow:inset 0 0 0 10px #fff,0 14px 28px rgba(49,87,255,.16);font-weight:900;color:#10284e}.m18-article .div_circulo>div::after{content:'';position:absolute;inset:10px;border-radius:50%;border:1px solid rgba(49,87,255,.18)}.m18-article .circulo1_4{--p:25%}.m18-article .circulo2_4,.m18-article .circulo1_2{--p:50%}.m18-article .circulo3_4,.m18-article .circulo3_4_2{--p:75%}.m18-article .ball-block{margin:20px auto 28px;padding:24px;border-radius:24px;background:linear-gradient(180deg,#f8fbff,#edf6ff);border:1px solid var(--m18-line);overflow:hidden}.m18-article .ball-center{display:flex;align-items:end;justify-content:center;gap:20px;min-height:110px}.m18-article .ball,.m18-article .ball2{width:74px;height:74px;border-radius:50%;background:radial-gradient(circle at 34% 28%,#fff 0 8%,#66b8ff 9% 36%,#0a72ff 70%);box-shadow:inset -10px -12px 18px rgba(0,0,0,.16),0 14px 22px rgba(49,87,255,.24);animation:m18BallBounce 2.8s ease-in-out infinite}.m18-article .ball2{background:radial-gradient(circle at 34% 28%,#fff 0 8%,#68e5a2 9% 36%,#0aae65 70%);animation-delay:.25s}.m18-article .shadow,.m18-article .shadow2{width:58px;height:12px;border-radius:50%;background:rgba(16,24,39,.14);margin-left:-78px;filter:blur(1px)}@keyframes m18BallBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}.m18-article .fraction .fup span,.m18-article .fraction .fdn span,.m18-article .fraction .fup p,.m18-article .fraction .fdn p{display:inline-grid;place-items:center;min-width:1.55em;min-height:1.55em;border-radius:999px;background:#eef3ff;color:#3157ff;margin:0 .12em}.m18-article .fraction .fup span[style],.m18-article .fraction .fdn span[style]{background:inherit}.m18-article .llevada{background:#ffe5e5!important;color:#e11d48!important;border-radius:999px;padding:.05em .4em!important}.m18-listing-card{display:flex;flex-direction:column;overflow:hidden;padding:0!important}.m18-listing-card img{width:100%;aspect-ratio:16/9;object-fit:cover;background:#eef4ff}.m18-listing-card h2{padding:20px 22px 0;margin:0!important}.m18-listing-card p{padding:0 22px 22px;margin:.8rem 0 0!important}.m18-listing-grid{align-items:stretch}.m18-listing-card:hover{transform:translateY(-2px);box-shadow:0 16px 42px rgba(28,50,91,.12)}



/* v7: componentes interactivos y visuales nuevos */
.progressbar{--line:#d7e4fb;--active:#245dff;display:flex;align-items:center;justify-content:space-between;gap:10px;position:relative;list-style:none;padding:22px 8px;margin:26px auto;max-width:680px;counter-reset:step;background:linear-gradient(180deg,#ffffff,#f7fbff);border:1px solid #dce8fb;border-radius:22px;box-shadow:0 14px 34px rgba(31,70,140,.08)}
.progressbar::before{content:'';position:absolute;left:42px;right:42px;top:50%;height:6px;border-radius:99px;background:linear-gradient(90deg,#16c6f5,#245dff,#10c586);transform:translateY(-50%);opacity:.24}.progressbar li{position:relative;z-index:1;min-width:68px;min-height:68px;border-radius:50%;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px;background:#fff;border:2px solid #cddcf5;color:#263f68;font-weight:950;box-shadow:0 12px 22px rgba(33,71,136,.10);transition:.18s ease;cursor:pointer}.progressbar li:hover,.progressbar li.activate{transform:translateY(-3px) scale(1.04);border-color:var(--active);background:linear-gradient(135deg,#eaf2ff,#fff);color:#0f51ff}.progressbar li.activate::after{content:'Activo';position:absolute;left:50%;top:calc(100% + 6px);transform:translateX(-50%);font-size:.68rem;background:#0f51ff;color:#fff;padding:3px 8px;border-radius:99px;white-space:nowrap}.progressbar li[data-note]::before{content:attr(data-note);position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);font-size:.72rem;color:#60708d;white-space:nowrap}
.raiz-demo{display:grid;gap:12px;margin:22px auto;max-width:520px;padding:18px;border:1px solid #dbe7fb;border-radius:22px;background:linear-gradient(135deg,#fff,#f4fbff);box-shadow:0 14px 30px rgba(31,70,140,.08)}.raiz-row{display:flex;align-items:center;gap:10px;font-size:1.18rem;font-weight:850}.raiz-symbol{font-size:1.7rem;color:#0b57ff}.raiz-borde{display:inline-block;min-width:48px;padding:.18rem .6rem .18rem .4rem;border-top:3px solid #0b57ff;border-left:2px solid #0b57ff;border-radius:4px 10px 10px 0;background:#f6fbff;color:#0b1b36;font-weight:950}.raiz-row small{color:#667891;font-weight:750}.raiz-row:hover .raiz-borde{background:#fff6cf;border-color:#00bdd6}
.m18-number-card{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}.m18-number-card__item{border:1px solid #dbe7fb;border-radius:20px;padding:16px;background:#fff;box-shadow:0 12px 28px rgba(28,50,91,.06)}.m18-number-card__item strong{display:block;font-size:1.1rem;margin-bottom:5px;color:#12315c}.m18-number-card__value{font-size:1.45rem;color:#145cff;font-weight:950}.m18-constant-strip{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.m18-constant-chip{border:1px solid #d8e6fb;background:#f9fcff;border-radius:999px;padding:.65rem .9rem;font-weight:900;color:#1b335f}.m18-constant-chip:hover{background:#fff8d7;transform:translateY(-1px)}
.m18-drag-game{margin:24px 0;padding:18px;border:1px solid #dbe7fb;border-radius:24px;background:linear-gradient(135deg,#ffffff,#f5fbff);box-shadow:0 18px 42px rgba(30,70,140,.08)}.m18-drag-game h3{margin-top:0}.m18-drag-game__row{display:flex;gap:14px;flex-wrap:wrap;align-items:center}.m18-drag-chip{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#fff,#56b7ff 52%,#1367ee);color:#fff;font-weight:950;cursor:grab;box-shadow:0 14px 22px rgba(0,72,190,.18);user-select:none}.m18-drag-chip:active{cursor:grabbing}.m18-drop-zone{min-height:76px;min-width:190px;flex:1;border:2px dashed #9eb8ec;border-radius:22px;background:#f7fbff;display:flex;align-items:center;gap:10px;padding:10px;transition:.15s}.m18-drop-zone.is-over{background:#eaf4ff;border-color:#245dff}.m18-drop-zone .m18-drag-chip{width:46px;height:46px}.m18-game-result{font-weight:950;color:#0f5ad8}.m18-mini-abacus{display:grid;gap:8px;margin:18px 0;padding:18px;border-radius:22px;background:#101b34;color:#fff;overflow:hidden}.m18-mini-abacus__row{display:flex;align-items:center;gap:10px}.m18-mini-abacus__label{width:90px;color:#aecaef;font-weight:850}.m18-mini-abacus__rail{position:relative;flex:1;height:8px;background:#31466d;border-radius:99px}.m18-mini-abacus__bead{position:absolute;top:50%;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#fff,#ffd957);transform:translate(-50%,-50%);box-shadow:0 5px 14px rgba(0,0,0,.25)}
.divcarousel{max-width:100%;overflow:auto;border:1px solid #dbe7fb;border-radius:22px;background:linear-gradient(135deg,#fff,#f7fbff);box-shadow:0 14px 34px rgba(31,70,140,.08);padding:12px;margin:20px 0}.divcarousel table{min-width:680px;border-collapse:separate;border-spacing:6px}.divcarousel td,.divcarousel th,.table2 td,.table2 th{border:1px solid #dce8fb;border-radius:12px;padding:10px 12px;text-align:center;background:#fff;font-weight:850}.divcarousel th,.table2 th{background:#eaf4ff;color:#0f4ac9}.divcarousel td:hover,.divcarousel th:hover,.table2 td:hover,.table2 th:hover{background:#fff5bf!important;border-color:#26c6e6!important;transform:scale(1.04)}.ColorNaranja{background:#ffe4c2!important;color:#b35400!important}.ColorAmarillo{background:#fff5a9!important;color:#795b00!important}.Color1{background:#e9edf6!important;color:#5e6d84!important}
@media(max-width:720px){.m18-number-card{grid-template-columns:1fr}.progressbar li{min-width:56px;min-height:56px;font-size:.9rem}.progressbar::before{left:30px;right:30px}.raiz-row{font-size:1rem}.m18-drag-game__row{align-items:stretch}.m18-drop-zone{min-width:100%}}

/* v8: navegación global, encabezado integrado y demos matemáticas */
.m18-main .m18-compact-head.m18-compact-head--inside{margin:0 0 18px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.m18-article>.m18-compact-head--inside h1{font-size:clamp(2.15rem,5.4vw,4.65rem);line-height:.98;letter-spacing:-.07em;margin:0 0 .8rem;color:#101a31}.m18-article>.m18-compact-head--inside p{font-size:clamp(1.02rem,2vw,1.23rem);line-height:1.7;color:#53627d;max-width:900px}.m18-article>.m18-ad--inside{margin:20px auto 22px!important}.m18-article>.m18-toc--inside{margin-top:0}.m18-ad-top.is-moved-out{display:none!important}.m18-layout--article-v5{grid-template-columns:300px minmax(0,1fr) 320px}.m18-layout--article-v5.m18-no-right-ad{grid-template-columns:300px minmax(0,1fr)}.m18-nav-sidebar{max-height:calc(100vh - 112px);overflow:hidden;display:flex;flex-direction:column;gap:0}.m18-nav-sidebar .TitularesOMG2{flex:0 0 auto;margin:0;padding:17px 18px;border-radius:18px;background:linear-gradient(135deg,#24a8ff,#12c2a1);color:#fff;font-weight:950}.m18-nav-sidebar .m18-side-tree{flex:1 1 auto;overflow-y:auto;max-height:none!important;margin-top:12px;padding:14px;border:1px solid #d9e6f9;border-radius:22px;background:rgba(255,255,255,.82)}.m18-side-tree details{border:0;margin:0}.m18-side-tree summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:9px 10px;border-radius:12px;font-weight:950;color:#30415f}.m18-side-tree summary::-webkit-details-marker{display:none}.m18-side-tree summary::before{content:'+';width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#eef5ff;color:#245dff;font-weight:950}.m18-side-tree details[open]>summary::before{content:'−';background:#245dff;color:#fff}.m18-side-tree a{display:block;padding:8px 10px;border-radius:12px;color:#344360;font-weight:850;text-decoration:none}.m18-side-tree a:hover,.m18-side-tree a.is-active{background:#dbeafe;color:#1357ff}.m18-side-tree .m18-tree-level{padding-left:16px;border-left:2px solid #e3edfb;margin-left:10px}.m18-side-tree .m18-tree-group{margin:.2rem 0}.m18-side-toggle{position:fixed!important;left:0!important;top:104px!important;z-index:950!important;margin:0!important;border-radius:0 14px 14px 0!important;box-shadow:0 10px 26px rgba(37,88,255,.25)}
@media(max-width:1120px){.m18-layout--article-v5,.m18-layout--article-v5.m18-no-right-ad{grid-template-columns:minmax(0,1fr)}.m18-nav-sidebar{position:fixed;z-index:2200;left:0;top:0;bottom:0;width:min(360px,88vw);max-height:none;transform:translateX(-105%);transition:.2s ease;padding:18px;background:#f8fbff;border-radius:0 24px 24px 0;box-shadow:0 20px 70px rgba(20,30,50,.22)}.m18-side-open .m18-nav-sidebar{transform:translateX(0)}.m18-nav-sidebar__close{display:flex!important}.m18-side-open .m18-side-backdrop{display:block}.m18-side-toggle{top:86px!important}}@media(min-width:1121px){.m18-nav-sidebar__close{display:none!important}.m18-side-toggle{display:none!important}}

/* Root/radical visual repair */
.m18-article .raiz-borde{display:inline-block;vertical-align:middle;min-width:1.6em;padding:.12em .45em .10em .32em;border-top:3px solid #1357ff!important;border-left:0!important;border-right:0!important;border-bottom:0!important;border-radius:0 10px 0 0!important;background:linear-gradient(180deg,#ffffff,#f7fbff)!important;color:#061632!important;font-weight:950;box-shadow:inset 0 0 0 1px rgba(19,87,255,.08)}.m18-article .raiz-boder-der,.m18-article .raiz-boder-abj,.m18-article .raiz-boder-abj-color{border-color:#1357ff!important}.m18-root-list{display:grid;gap:10px;margin:20px auto;max-width:620px;padding:16px;border:1px solid #dbe7fb;border-radius:22px;background:#f8fbff}.m18-root-list__row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:1.08rem}.m18-root-list__rad{font-size:1.6rem;color:#1357ff;font-weight:950}.m18-root-list__value{font-weight:950;color:#071a3b}.m18-root-list__result{color:#4b5f7d}.m18-article center:has(.raiz-borde){line-height:2.05}.m18-article center:has(.raiz-borde) i{font-style:normal;font-weight:850}

/* SVG and geometry visuals */
.m18-article svg{max-width:100%;height:auto;overflow:visible;margin:14px auto;display:block;filter:drop-shadow(0 12px 18px rgba(31,70,140,.08))}.m18-article svg rect{fill:rgba(36,93,255,.055)!important;stroke:#245dff!important;stroke-width:3!important;rx:10;ry:10}.m18-article svg circle{fill:#fff!important;stroke:#00bcd4!important;stroke-width:3!important}.m18-article svg polyline,.m18-article svg path{stroke:#245dff!important;stroke-width:3!important;fill:none!important;stroke-linecap:round;stroke-linejoin:round}.m18-article svg text{font-weight:900!important;fill:#0b1c36!important}.m18-geometry-card{margin:22px 0;padding:20px;border:1px solid #dce8fb;border-radius:24px;background:linear-gradient(135deg,#fff,#f3f9ff);box-shadow:0 16px 38px rgba(31,70,140,.08)}.m18-geometry-stage{min-height:220px;display:grid;place-items:center}.m18-square-demo{width:180px;aspect-ratio:1;border:5px solid #245dff;border-radius:18px;background:linear-gradient(135deg,#eaf4ff,#fff);position:relative}.m18-square-demo::before,.m18-square-demo::after{content:'';position:absolute;inset:16px;border-top:3px dashed #17c1d6;transform:rotate(45deg);transform-origin:center}.m18-square-demo::after{transform:rotate(-45deg)}.m18-square-demo span{position:absolute;background:#fff;border:1px solid #dbe7fb;border-radius:999px;padding:4px 10px;font-weight:950;color:#245dff}.m18-square-demo .top{left:50%;top:-18px;transform:translateX(-50%)}.m18-square-demo .right{right:-18px;top:50%;transform:translateY(-50%)}.m18-square-demo .bottom{left:50%;bottom:-18px;transform:translateX(-50%)}.m18-square-demo .left{left:-18px;top:50%;transform:translateY(-50%)}

/* Better examples and links */
.m18-article .TitularesOMG{font-size:1.15rem;font-weight:950;color:#0c2246;margin:1.2rem 0 .6rem}.m18-article .textolink{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid #cfe0fb;border-radius:16px;background:linear-gradient(135deg,#f7fbff,#fff);box-shadow:0 10px 24px rgba(31,70,140,.07);font-weight:850}.m18-article a .textolink:hover{border-color:#245dff;transform:translateY(-1px)}.m18-article .textolink span,.m18-article .footer_letra{font-size:1.25rem;color:#00bdd6;font-weight:950}

/* Fraction and number demos */
.m18-fraction-demo{margin:24px 0;padding:20px;border:1px solid #dce8fb;border-radius:24px;background:linear-gradient(135deg,#fff,#f7fbff);box-shadow:0 14px 34px rgba(31,70,140,.08)}.m18-fraction-row{display:flex;gap:16px;align-items:center;justify-content:center;flex-wrap:wrap}.m18-pie{--p:50%;width:120px;height:120px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#245dff 0 var(--p),#e9f2ff var(--p) 100%);box-shadow:inset 0 0 0 10px #fff,0 14px 28px rgba(36,93,255,.17);font-weight:950;color:#071a3b}.m18-pie::after{content:'';position:absolute;inset:10px;border-radius:50%;border:1px solid #bcd0f5}.m18-pie small{position:relative;z-index:1;font-size:1.1rem}.m18-fraction-controls{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:14px}.m18-fraction-controls button,.m18-demo button,.m18-pill-btn{border:0;border-radius:999px;background:#245dff;color:#fff;padding:.72rem 1rem;font-weight:950;cursor:pointer;box-shadow:0 8px 20px rgba(36,93,255,.18)}.m18-fraction-controls button:hover,.m18-demo button:hover,.m18-pill-btn:hover{transform:translateY(-1px);filter:brightness(1.04)}.m18-number-line{position:relative;margin:26px 0;padding:50px 18px 28px;border:1px solid #dce8fb;border-radius:24px;background:#fff;overflow:hidden}.m18-number-line__rail{height:8px;border-radius:999px;background:linear-gradient(90deg,#ef4444,#f6c343,#16c784,#245dff)}.m18-number-line__ticks{display:flex;justify-content:space-between;margin-top:12px;font-weight:850;color:#4d5d77}.m18-number-line__marker{position:absolute;top:38px;left:50%;width:22px;height:22px;border-radius:50%;background:#fff;border:5px solid #245dff;box-shadow:0 8px 20px rgba(36,93,255,.22);transform:translateX(-50%);transition:.2s ease}.m18-demo{margin:24px 0;padding:20px;border:1px solid #dce8fb;border-radius:24px;background:linear-gradient(135deg,#fff,#f7fbff);box-shadow:0 14px 34px rgba(31,70,140,.08)}.m18-demo__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}.m18-demo-card{border:1px solid #dbe7fb;border-radius:20px;background:#fff;padding:16px;box-shadow:0 8px 20px rgba(31,70,140,.06)}.m18-demo-card strong{display:block;color:#0c2246;font-size:1.05rem;margin-bottom:4px}.m18-demo-card span{font-size:1.35rem;color:#245dff;font-weight:950}.m18-sort-game{display:flex;gap:14px;flex-wrap:wrap}.m18-sort-source,.m18-sort-bucket{flex:1 1 220px;min-height:110px;border:2px dashed #bfd1f1;border-radius:20px;padding:12px;background:#f8fbff}.m18-sort-bucket[data-kind="yes"]{border-color:#13b98b}.m18-sort-bucket[data-kind="no"]{border-color:#f59e0b}.m18-token{display:inline-grid;place-items:center;min-width:44px;height:44px;border-radius:50%;background:#245dff;color:#fff;font-weight:950;margin:5px;cursor:grab;box-shadow:0 8px 18px rgba(36,93,255,.18)}.m18-token.is-ok{background:#10b981}.m18-token.is-bad{background:#f59e0b}.m18-game-note{display:block;margin-top:10px;color:#52637e;font-weight:800}.m18-slider-line{display:grid;gap:10px}.m18-slider-line input[type="range"]{width:100%;accent-color:#245dff}.m18-result-big{font-size:clamp(1.4rem,3vw,2rem);font-weight:950;color:#0b1c36;background:#eef6ff;border-radius:18px;padding:12px 16px;display:inline-block}.m18-complex-plane{height:260px;border:1px solid #dbe7fb;border-radius:22px;background:linear-gradient(#eaf2ff 1px,transparent 1px),linear-gradient(90deg,#eaf2ff 1px,transparent 1px),#fff;background-size:32px 32px;position:relative;overflow:hidden}.m18-complex-plane::before,.m18-complex-plane::after{content:'';position:absolute;background:#7588a8}.m18-complex-plane::before{left:50%;top:0;bottom:0;width:2px}.m18-complex-plane::after{top:50%;left:0;right:0;height:2px}.m18-complex-dot{position:absolute;width:22px;height:22px;border-radius:50%;background:#245dff;box-shadow:0 0 0 8px rgba(36,93,255,.12);transform:translate(-50%,-50%);left:65%;top:35%}.m18-complex-dot::after{content:attr(data-label);position:absolute;left:26px;top:-8px;white-space:nowrap;background:#fff;border:1px solid #dbe7fb;border-radius:999px;padding:4px 10px;color:#0c2246;font-weight:950}.m18-abacus{display:grid;gap:12px}.m18-abacus-row{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:center}.m18-abacus-label{font-weight:950;color:#0c2246}.m18-abacus-beads{display:flex;gap:8px;min-height:42px;align-items:center}.m18-bead{width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff,#6ab7ff 45%,#245dff);box-shadow:0 8px 16px rgba(36,93,255,.18)}.m18-compare-demo{display:grid;gap:12px}.m18-compare-row{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;font-size:1.3rem;font-weight:950}.m18-compare-num{min-width:70px;text-align:center;border-radius:16px;padding:10px;background:#f2f7ff;border:1px solid #dbe7fb}.m18-compare-sign{font-size:2.3rem;color:#245dff}.m18-array-demo{display:grid;gap:12px}.m18-array-grid{display:grid;grid-template-columns:repeat(var(--cols,4),34px);gap:8px;justify-content:center;padding:18px;border-radius:20px;background:#f8fbff;border:1px solid #dbe7fb}.m18-array-grid span{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#245dff,#11c5d9);box-shadow:0 8px 16px rgba(36,93,255,.15)}.m18-factors-ladder{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;display:inline-grid;gap:2px;background:#fff;border:1px solid #dbe7fb;border-radius:18px;padding:16px 20px;box-shadow:0 10px 24px rgba(31,70,140,.07)}.m18-factors-ladder div{display:grid;grid-template-columns:70px 1fr 40px;gap:10px;align-items:center}.m18-factors-ladder b{border-left:3px solid #245dff;padding-left:10px;color:#245dff}.m18-highlight-note{border-left:5px solid #16c784;background:#f0fdf7;border-radius:16px;padding:14px 16px;color:#123a2b;font-weight:800}.m18-article .div_circulo>div{transition:.2s ease}.m18-article .div_circulo>div:hover{transform:translateY(-4px) scale(1.04)}

/* Tutorial index card polish */
.m18-topic-menu .m18-menu-children{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:18px}.m18-topic-menu .m18-menu-link{min-height:210px;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:16px!important;border-radius:22px!important;background:#fff!important;border:1px solid #d9e6f9!important;box-shadow:0 12px 28px rgba(31,70,140,.06)}.m18-topic-menu .m18-menu-link img{width:100%!important;aspect-ratio:16/9!important;height:auto!important;object-fit:contain!important;border-radius:14px;background:#f6fbff;border:1px dashed #c5d7f4}.m18-topic-menu .m18-menu-link span{font-size:1.02rem;line-height:1.15;margin-top:12px}.m18-topic-menu .m18-menu-link b{align-self:flex-end}.m18-topic-menu .m18-menu-details--d1>.m18-menu-children{padding:20px!important}.m18-topic-menu .m18-menu-details--d1>summary{pointer-events:none;cursor:default}.m18-topic-menu .m18-menu-details--d1>summary b{display:none}.m18-topic-menu .m18-menu-details--d1>summary::after{content:'Siempre visible';margin-left:auto;font-size:.72rem;color:#64748b;background:#eef5ff;border-radius:999px;padding:.25rem .55rem}@media(max-width:650px){.m18-topic-menu .m18-menu-children{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.m18-topic-menu .m18-menu-link{min-height:170px}.m18-topic-menu .m18-menu-link span{font-size:.9rem}}


/* V9 final polish */
.m18-side-tree summary::before{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:22px!important;height:22px!important;line-height:1!important;padding:0!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:18px!important;font-weight:950!important;transform:none!important;flex:0 0 22px!important;}
.m18-side-tree details[open]>summary::before{line-height:1!important;}
.m18-nav-sidebar{height:calc(100vh - 112px)!important;max-height:calc(100vh - 112px)!important;overflow:hidden!important;}
.m18-nav-sidebar .m18-side-tree{height:auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;}
@media(max-width:1120px){.m18-nav-sidebar{height:100vh!important;max-height:100vh!important;overflow:hidden!important}.m18-nav-sidebar .m18-side-tree{max-height:calc(100vh - 108px)!important;overflow-y:auto!important}}

.m18-article .textolink{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;text-align:left!important;gap:16px!important;padding:16px 18px!important;border-radius:18px!important;background:linear-gradient(135deg,#245dff,#0bbfd6)!important;color:#fff!important;border:0!important;box-shadow:0 18px 44px rgba(36,93,255,.20)!important;}
.m18-article .textolink::before{display:none!important;}
.m18-article .textolink strong,.m18-article .textolink .link{color:#fff!important;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;}
.m18-article .textolink span,.m18-article .textolink .footer_letra{justify-self:end!important;margin-left:auto!important;color:#fff!important;font-size:1.7rem!important;line-height:1!important;}
.m18-article .textolink:hover{transform:translateY(-2px)!important;filter:brightness(1.02);}

.m18-article .TitularesOMG{font-size:1.15rem!important;font-weight:950!important;color:#ffffff!important;margin:1.2rem 0 .6rem!important;background:#111827!important;border-radius:999px!important;padding:.45rem .85rem!important;display:inline-flex!important;box-shadow:none!important;}

.m18-article .raiz-borde{display:inline-block!important;vertical-align:baseline!important;min-width:1.05em!important;padding:.03em .18em 0 .18em!important;border-top:2px solid currentColor!important;border-left:0!important;border-right:0!important;border-bottom:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font-weight:850!important;}
.m18-article center:has(.raiz-borde){line-height:2!important;font-size:1.12rem;}
.m18-root-list{max-width:560px!important;background:#fff!important;}
.m18-root-list__row{display:grid!important;grid-template-columns:auto minmax(40px,auto) 1fr!important;align-items:baseline!important;gap:8px!important;}
.m18-root-list__rad{color:#0a58ff!important;}

.m18-article .cuadrado-div{display:flex;gap:24px;justify-content:center;align-items:flex-end;flex-wrap:wrap;margin:24px auto;padding:24px;border:1px solid #dbe7fb;border-radius:24px;background:linear-gradient(135deg,#f8fbff,#fff);}
.m18-article .cuadrado{position:relative;width:170px;height:170px;border:3px solid #245dff;border-top:0;border-radius:0 0 28px 28px;background:linear-gradient(180deg,rgba(36,93,255,.05),rgba(36,93,255,.12));box-shadow:0 18px 36px rgba(36,93,255,.10);overflow:hidden;}
.m18-article .cuadrado::before{content:'2 pelotas';position:absolute;left:50%;top:8px;transform:translateX(-50%);font-weight:950;color:#245dff;background:#fff;border:1px solid #dbe7fb;border-radius:999px;padding:3px 10px;white-space:nowrap;}
.m18-article .cuadrado .bote-rectangulo,.m18-article .cuadrado .bote-circulo,.m18-article .cuadrado .bote-rectangulo-circulo{display:none!important;}
.m18-article .cuadrado .ball,.m18-article .cuadrado .ball2{position:absolute!important;display:block!important;width:48px!important;height:48px!important;border-radius:50%!important;bottom:28px!important;background:radial-gradient(circle at 35% 25%,#fff,#ffcf5a 38%,#ff6a3d 70%)!important;box-shadow:0 12px 18px rgba(22,39,80,.18)!important;}
.m18-article .cuadrado .ball{left:42px!important;}
.m18-article .cuadrado .ball2{right:42px!important;background:radial-gradient(circle at 35% 25%,#fff,#5eead4 38%,#0ea5e9 70%)!important;}
.m18-share-demo{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center;}
.m18-share-bucket{min-height:160px;border:3px solid #245dff;border-top:0;border-radius:0 0 28px 28px;background:linear-gradient(180deg,#f8fbff,#eaf4ff);display:flex;align-items:flex-end;justify-content:center;gap:12px;padding:22px;position:relative;}
.m18-bucket-title{position:absolute;top:10px;left:50%;transform:translateX(-50%);font-weight:950;color:#245dff;background:#fff;border:1px solid #dbe7fb;border-radius:999px;padding:4px 10px;}
.m18-mini-ball{width:42px;height:42px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff,#ffcf5a 38%,#ff6a3d 70%);box-shadow:0 12px 18px rgba(22,39,80,.18)}
.m18-mini-ball--b{background:radial-gradient(circle at 35% 25%,#fff,#5eead4 38%,#0ea5e9 70%)}
.m18-share-symbol{font-weight:950;font-size:clamp(1.4rem,3vw,2.2rem);color:#0c2246;text-align:center;background:#fff;border:1px solid #dbe7fb;border-radius:18px;padding:12px 16px;box-shadow:0 10px 24px rgba(31,70,140,.08)}
@media(max-width:650px){.m18-share-demo{grid-template-columns:1fr}.m18-share-symbol{order:-1}}

.m18-article .fraction2{display:inline-grid!important;gap:0!important;text-align:left!important;background:#fff!important;border:1px solid #dbe7fb!important;border-radius:16px!important;padding:12px 14px!important;box-shadow:0 10px 24px rgba(31,70,140,.08)!important;}
.m18-article .fraction2 p{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;font-weight:850!important;line-height:1.45!important;margin:0!important;white-space:pre!important;display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important;align-items:center!important;}
.m18-article .fraction2 p span{display:inline-block!important;min-width:36px!important;border-left:4px solid #245dff!important;padding-left:8px!important;color:#245dff!important;}
.m18-article .fraction2 p span:empty::after{content:' ';}

.m18-article .ejercicios .fdn,.m18-article .ejercicios .ColorEjer{border:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:2.3em!important;min-height:2em!important;border-radius:999px!important;background:#fff!important;color:#e11d48!important;box-shadow:inset 0 0 0 1px #ffd2db!important;margin:0 .15em!important;padding:.1em .45em!important;}
.m18-article .ejercicios .botonEjer{background:linear-gradient(135deg,#245dff,#11c5d9)!important;color:#fff!important;}

.m18-fraction-controls{display:none!important;}
.m18-v8-enhancement:has([data-m18-golden]),.m18-v8-enhancement:has(.m18-geometry-card){display:none!important;}

.m18-article svg rect{fill:rgba(36,93,255,.06)!important;stroke:#245dff!important;}
.m18-article svg circle{fill:#fff!important;stroke:#00bdd6!important;}

.m18-article .m18-number-card{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin:22px 0;}
.m18-number-card__item{background:linear-gradient(135deg,#fff,#f6fbff);border:1px solid #dbe7fb;border-radius:20px;padding:18px;box-shadow:0 10px 24px rgba(31,70,140,.07);}
.m18-number-card__value{display:block;font-size:1.35rem;font-weight:950;color:#245dff;margin:.25rem 0;}


/* V10: ajustes solicitados */
.m18-article .textolink{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  width:100%!important;
  margin:22px 0 30px!important;
  padding:20px 24px!important;
  border:0!important;
  border-radius:24px!important;
  background:linear-gradient(135deg,#285cff 0%,#13c4c8 100%)!important;
  color:#fff!important;
  box-shadow:0 22px 48px rgba(37,99,235,.20)!important;
  text-align:left!important;
  overflow:hidden!important;
}
.m18-article .textolink:before{display:none!important;content:none!important;}
.m18-article .textolink strong,.m18-article .textolink .link{color:#fff!important;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;}
.m18-article .textolink .m18-textolink-label{display:block!important;min-width:0!important;line-height:1.45!important;font-weight:850!important;}
.m18-article .textolink .m18-textolink-arrow,.m18-article .textolink > span:last-child,.m18-article .textolink .footer_letra{
  justify-self:end!important;
  display:inline-grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:1.35rem!important;
  font-weight:950!important;
  margin:0!important;
  flex:0 0 auto!important;
}
.m18-article .textolink:hover{transform:translateY(-2px)!important;box-shadow:0 28px 60px rgba(37,99,235,.26)!important;}
.m18-article .TitularesOMG{font-size:1.15rem!important;font-weight:950!important;color:#ffffff!important;margin:1.2rem 0 .6rem!important;background:#111827!important;}
.m18-side-tree details > summary{position:relative;display:flex!important;align-items:center!important;gap:10px!important;min-height:38px!important;line-height:1.2!important;}
.m18-side-tree details > summary::before{display:inline-grid!important;place-items:center!important;line-height:1!important;font-size:1.1rem!important;padding-bottom:2px!important;}
.m18-article .fraction2{display:inline-flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;min-width:150px!important;}
.m18-article .fraction2 p{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;min-height:30px!important;white-space:pre!important;font-variant-numeric:tabular-nums!important;}
.m18-article .fraction2 p span{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:54px!important;min-width:54px!important;border-left:5px solid #245dff!important;border-top:0!important;padding-left:8px!important;color:#245dff!important;align-self:stretch!important;}
.m18-article .division-borde{border-left:5px solid #245dff!important;border-top:0!important;border-radius:0!important;color:#245dff!important;}
.m18-root-list{max-width:650px!important;border-radius:22px!important;padding:18px!important;border:1px solid #dbe7fb!important;background:linear-gradient(135deg,#fff,#f8fbff)!important;box-shadow:0 14px 34px rgba(31,70,140,.08)!important;}
.m18-root-list__row{display:grid!important;grid-template-columns:auto auto 1fr!important;align-items:center!important;gap:0!important;margin:8px 0!important;}
.m18-root-list__rad{font-size:2rem!important;font-weight:900!important;color:#172033!important;margin-right:-2px!important;line-height:1!important;}
.m18-root-list__value,.raiz-borde{display:inline-grid!important;place-items:center!important;min-width:54px!important;min-height:42px!important;padding:4px 12px!important;border:3px solid #245dff!important;border-left:0!important;border-bottom:0!important;border-radius:0 14px 0 0!important;background:#f8fbff!important;color:#0b1e44!important;font-weight:950!important;line-height:1!important;}
.m18-root-list__result{padding-left:12px!important;color:#0b1e44!important;}
.m18-article center:has(.raiz-borde){display:grid!important;gap:10px!important;justify-content:center!important;text-align:left!important;}
.m18-article center:has(.raiz-borde) br{display:none!important;}
.m18-article .cuadrado-div{background:linear-gradient(135deg,#f7fbff,#eef6ff)!important;}
.m18-stat-card{padding:24px;border:1px solid var(--m18-line);border-radius:22px;background:#fff;box-shadow:0 16px 42px rgba(28,50,91,.08);}
body:has([data-m18-stat-page]) .m18-article{max-width:none;}
@media(max-width:720px){.m18-article .textolink{padding:18px!important;border-radius:20px!important}.m18-article .textolink .m18-textolink-arrow{width:38px!important;height:38px!important}.m18-article .fraction2{min-width:124px!important}.m18-article .fraction2 p span{width:46px!important;min-width:46px!important}}


/* v11 fixes: factor ladders, fraction exercises, root visuals, nav icons, stats cards */
.m18-nav-sidebar summary::marker{content:''}
.m18-nav-sidebar .m18-tree-group>summary{display:flex!important;align-items:center!important;gap:.65rem!important;line-height:1!important;min-height:36px!important}
.m18-nav-sidebar .m18-tree-group>summary::before{content:'+';display:inline-flex!important;align-items:center!important;justify-content:center!important;width:25px!important;height:25px!important;min-width:25px!important;border-radius:999px!important;background:#eaf2ff!important;color:#245dff!important;font-weight:950!important;font-size:18px!important;line-height:1!important;box-sizing:border-box!important;transform:none!important}
.m18-nav-sidebar .m18-tree-group[open]>summary::before{content:'−';background:#245dff!important;color:#fff!important;padding-bottom:2px!important}
.m18-nav-sidebar .m18-tree-level{border-left:2px solid #e0ebff!important;margin-left:12px!important;padding-left:20px!important}
.m18-nav-sidebar{max-height:calc(100dvh - 104px)!important;overflow-y:auto!important;overscroll-behavior:contain!important}

.m18-article .textolink{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;gap:18px!important;text-align:left!important;background:linear-gradient(135deg,#245dff 0%,#09b8bd 100%)!important;color:#fff!important;border:0!important;border-radius:24px!important;padding:22px 26px!important;box-shadow:0 22px 44px rgba(36,93,255,.20)!important;text-decoration:none!important;line-height:1.35!important;white-space:normal!important}
.m18-article a:has(.textolink){text-decoration:none!important;display:block!important;margin:18px 0!important}
.m18-article .textolink strong{color:#fff!important;text-decoration:underline;text-underline-offset:4px}
.m18-article .textolink .m18-textolink-label{display:block!important;min-width:0!important}
.m18-article .textolink .m18-textolink-arrow{margin-left:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:46px!important;height:46px!important;border-radius:50%!important;background:rgba(255,255,255,.16)!important;color:#fff!important;font-size:1.35rem!important;font-weight:950!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)!important}
@media(max-width:640px){.m18-article .textolink{padding:18px!important;border-radius:18px!important}.m18-article .textolink .m18-textolink-arrow{width:38px!important;height:38px!important}}

/* Only answer chips should be bubbles in exercises; denominators keep fraction line */
.m18-article .ejercicios .ColorEjer{border:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:2.3em!important;min-height:2em!important;border-radius:999px!important;background:#fff!important;color:#e11d48!important;box-shadow:inset 0 0 0 1px #ffd2db!important;margin:0 .15em!important;padding:.1em .45em!important;font-weight:950!important}
.m18-article .ejercicios .fraction span.fdn{border-top:2px solid #172033!important;border-radius:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;min-height:0!important;display:block!important;padding-top:.24em!important}
.m18-article .ejercicios .fraction span.bar{display:none!important}
.m18-article .ejercicios .ColorEjer:not(.is-revealed){color:#245dff!important;background:#eef5ff!important;box-shadow:inset 0 0 0 1px #cfe0ff!important}

/* Stable factorization ladders for MCM/MCD */
.m18-article .fraction2{display:inline-flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;min-width:max-content!important;max-width:100%!important;padding:18px 20px!important;border:1px solid #dbe7fb!important;border-radius:18px!important;background:#fff!important;box-shadow:0 14px 34px rgba(31,70,140,.10)!important;text-align:left!important;overflow:hidden!important}
.m18-article .fraction2 p{display:grid!important;grid-template-columns:minmax(6ch, 13ch) 5ch!important;column-gap:0!important;align-items:center!important;min-height:32px!important;margin:0!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;font-weight:900!important;font-variant-numeric:tabular-nums!important;line-height:1.15!important;white-space:pre!important}
.m18-article .fraction2 p span{display:flex!important;align-items:center!important;justify-content:center!important;min-width:5ch!important;height:100%!important;border-left:5px solid #245dff!important;border-top:0!important;padding:0 0 0 10px!important;color:#245dff!important;background:transparent!important;box-sizing:border-box!important}
.m18-article .fraction2>b{display:inline-flex!important;margin-bottom:8px!important;font-weight:950!important;color:#0f1c33!important}
.m18-article .fraction2 .division-borde{border-left:5px solid #245dff!important;border-top:0!important;color:#245dff!important;border-radius:0!important}
@media(max-width:720px){.m18-article .fraction2{padding:14px!important}.m18-article .fraction2 p{grid-template-columns:minmax(5ch, 11ch) 4.5ch!important}.m18-article .fraction2 p span{min-width:4.5ch!important}}

/* Root notation: keep radical clean and avoid fake vertical bar */
.m18-article .raiz-borde{display:inline-block!important;position:relative!important;border-top:2px solid currentColor!important;border-left:0!important;border-radius:0!important;padding:.08em .32em .02em .18em!important;margin-left:.08em!important;line-height:1.1!important;background:transparent!important;box-shadow:none!important;color:inherit!important}
.m18-article .raiz-borde::before{content:'';position:absolute;left:-.34em;bottom:.04em;width:.42em;height:.72em;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:skewX(-18deg) rotate(-12deg);transform-origin:left bottom}
.m18-root-list{display:grid;justify-content:center;gap:8px;margin:16px auto;padding:16px;border:1px solid #dbe7fb;border-radius:18px;background:#f8fbff;max-width:max-content}.m18-root-list__row{display:grid;grid-template-columns:auto auto auto;gap:10px;align-items:center;font-variant-numeric:tabular-nums}.m18-root-symbol{font-size:1.28em;font-weight:900}

/* Statistics pages */
body[data-m18-stat-page="1"] .m18-stat-card{border:1px solid #dbe7fb!important;background:#fff!important;border-radius:22px!important;padding:22px!important;margin:18px 0!important;box-shadow:0 16px 38px rgba(31,70,140,.09)!important}
body[data-m18-stat-page="1"] .m18-stat-card h2{margin-top:0!important}.m18-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:18px 0}.m18-stat-tile{border:1px solid #dbe7fb;background:#f8fbff;border-radius:18px;padding:16px}.m18-stat-mini-table{width:100%;border-collapse:separate;border-spacing:0;margin:14px 0;border:1px solid #dbe7fb;border-radius:16px;overflow:hidden}.m18-stat-mini-table th,.m18-stat-mini-table td{padding:10px 12px;border-bottom:1px solid #e7eefb;text-align:center}.m18-stat-mini-table tr:last-child td{border-bottom:0}.m18-stat-bars{display:flex;align-items:end;gap:10px;min-height:150px;padding:16px;border-radius:18px;background:#f8fbff;border:1px solid #dbe7fb}.m18-stat-bars span{display:flex;align-items:end;justify-content:center;min-width:38px;border-radius:12px 12px 4px 4px;background:linear-gradient(180deg,#35d7b6,#245dff);color:#fff;font-weight:900;padding-bottom:8px}

/* Improved fraction pies */
.div_circulo{display:flex;justify-content:center;align-items:center;gap:28px;flex-wrap:wrap;background:#f8fbff;border:1px solid #dbe7fb;border-radius:22px;padding:24px;margin:18px 0}.div_circulo>div{--p:25%;width:112px;height:112px;border-radius:50%;display:grid;place-items:center;position:relative;background:conic-gradient(#3157ff var(--p), #e9f2ff 0);box-shadow:0 0 0 10px #fff,0 18px 34px rgba(49,87,255,.12);font-weight:950;color:#0b1b38}.div_circulo>div::after{content:'';position:absolute;inset:8px;border-radius:50%;border:1px solid #bdd1ff}.div_circulo>div{font-size:1rem}.circulo1_2{--p:50%!important}.circulo1_4{--p:25%!important}.circulo2_4{--p:50%!important}.circulo3_4,.circulo3_4_2{--p:75%!important}


/* v12 overrides: flatter sidebar, tighter text links */
.m18-side-tree{box-shadow:none!important;background:rgba(255,255,255,.96)!important}
.m18-nav-sidebar .TitularesOMG2{box-shadow:none!important}
.m18-article .textolink{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:18px!important;padding:20px 24px!important;border-radius:24px!important;background:linear-gradient(135deg,#245dff 0%,#14b8d4 100%)!important;color:#fff!important;border:0!important;box-shadow:0 16px 34px rgba(36,93,255,.18)!important;text-align:left!important;white-space:normal!important;overflow:hidden!important}
.m18-article .textolink .m18-textolink-label{display:block!important;min-width:0!important;max-width:none!important;justify-self:start!important;text-align:left!important;line-height:1.45!important;font-weight:850!important}
.m18-article .textolink .m18-textolink-arrow,.m18-article .textolink > span:last-child,.m18-article .textolink .footer_letra{display:inline-flex!important;align-items:center!important;justify-content:center!important;justify-self:end!important;margin-left:auto!important;width:44px!important;height:44px!important;border-radius:999px!important;background:rgba(255,255,255,.16)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)!important;color:#fff!important;font-size:1.4rem!important;line-height:1!important;flex:0 0 44px!important}
.m18-article .textolink strong,.m18-article .textolink .link{color:#fff!important;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
@media(max-width:640px){.m18-article .textolink{padding:18px 18px!important;grid-template-columns:minmax(0,1fr) auto!important}.m18-article .textolink .m18-textolink-arrow,.m18-article .textolink > span:last-child,.m18-article .textolink .footer_letra{width:38px!important;height:38px!important;font-size:1.2rem!important}}

/* SEO content blocks */
.m18-answer-box{margin:0 0 22px;padding:22px;border-radius:20px;background:#f7fbff;border:1px solid #dbe7fb;box-shadow:0 14px 34px rgba(31,70,140,.08)}
.m18-answer-box h2{margin:0 0 10px!important;font-size:1.35rem!important;color:#10203f!important}
.m18-answer-box p{margin:0 0 14px!important}
.m18-answer-box dl{display:grid;gap:10px;margin:0}
.m18-answer-box dt{font-weight:950;color:#245dff}
.m18-answer-box dd{margin:0;padding:10px 12px;border-radius:14px;background:#fff;border:1px solid #e5eefc}
.m18-faq-list{display:grid;gap:12px;margin:18px 0}
.m18-faq-list details{border:1px solid #dbe7fb;border-radius:16px;background:#fff;overflow:hidden}
.m18-faq-list summary{cursor:pointer;font-weight:950;padding:16px 18px;color:#10203f}
.m18-faq-list p{padding:0 18px 18px;margin:0}
.m18-related{margin-top:30px;padding-top:22px;border-top:1px solid #e5eefc}
.m18-related ul{padding-left:1.2rem}


/* v13: multiplication arrays and long-division bar fixes */
.m18-article .m18-multiply-arrays{
  display:flex!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:clamp(40px,9vw,120px)!important;
  flex-wrap:wrap!important;
  margin:24px auto 28px!important;
  padding:18px 10px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.m18-article .m18-multiply-array{
  margin:0!important;
  display:grid!important;
  justify-items:center!important;
  gap:4px!important;
}
.m18-article .m18-multiply-array figcaption{
  margin:0!important;
  color:#050a15!important;
  font-size:1.25rem!important;
  font-weight:500!important;
  line-height:1.1!important;
  text-align:center!important;
}
.m18-article .m18-array-board{
  display:grid!important;
  grid-template-columns:repeat(var(--m18-cols),64px)!important;
  grid-template-rows:repeat(var(--m18-rows),64px)!important;
  gap:0!important;
  border:2px solid #050505!important;
  background:#050505!important;
  width:max-content!important;
}
.m18-article .m18-array-board span{
  display:block!important;
  width:64px!important;
  height:64px!important;
  box-shadow:inset 0 0 0 1px #050505!important;
}
.m18-article .m18-cell-a{background:#12aee8!important;}
.m18-article .m18-cell-b{background:#12dfe0!important;}
.m18-article .m18-cell-c{background:#12f0d4!important;}
@media(max-width:640px){
  .m18-article .m18-multiply-arrays{gap:28px!important;padding-left:0!important;padding-right:0!important;}
  .m18-article .m18-array-board{grid-template-columns:repeat(var(--m18-cols),48px)!important;grid-template-rows:repeat(var(--m18-rows),48px)!important;}
  .m18-article .m18-array-board span{width:48px!important;height:48px!important;}
}
.m18-article .fraction .division-borde,
.m18-article .eq-c .division-borde,
.m18-article .eq-OMG .division-borde{
  display:inline-block!important;
  border-left:2px solid #111827!important;
  border-top:2px solid #111827!important;
  border-right:0!important;
  border-bottom:0!important;
  border-radius:0!important;
  padding:.05em .25em .02em .18em!important;
  color:#111827!important;
  line-height:1.05!important;
  vertical-align:baseline!important;
  background:transparent!important;
  box-shadow:none!important;
}
.m18-article .fraction2 .division-borde{
  border-left:5px solid #245dff!important;
  border-top:0!important;
  color:#245dff!important;
  padding:0 0 0 10px!important;
}


/* v15: usar el layout compacto hasta 1320px para evitar columnas estrechas entre 1120px y 1320px */
@media(max-width:1320px){
  .m18-layout--article-v5,
  .m18-layout--article-v5.m18-no-right-ad,
  .m18-layout--article-v5.m18-layout--no-ad{
    grid-template-columns:minmax(0,1fr)!important;
    width:min(100%, var(--m18-max))!important;
    max-width:var(--m18-max)!important;
  }
  .m18-layout--article-v5 .m18-article{
    width:100%!important;
    max-width:100%!important;
  }
  .m18-right-ad{display:none!important;}
  .m18-side-toggle{
    display:inline-flex!important;
    position:fixed!important;
    left:0!important;
    top:86px!important;
    margin:0!important;
    z-index:1100!important;
  }
  .m18-nav-sidebar{
    position:fixed!important;
    left:0!important;
    top:0!important;
    bottom:0!important;
    width:min(360px,88vw)!important;
    height:100dvh!important;
    max-height:100dvh!important;
    transform:translateX(-105%)!important;
    transition:transform .2s ease!important;
    padding:18px 14px!important;
    background:#f8fbff!important;
    border-radius:0 24px 24px 0!important;
    box-shadow:0 20px 70px rgba(20,30,50,.22)!important;
    z-index:2200!important;
  }
  .m18-side-open .m18-nav-sidebar{transform:translateX(0)!important;}
  .m18-nav-sidebar__close{display:flex!important;}
}
@media(min-width:1321px){
  .m18-nav-sidebar__close{display:none!important;}
  .m18-side-toggle{display:none!important;}
}

/* v15: contenido editorial, curiosidades y formulario */
.m18-static-lead{padding:22px;border:1px solid #dbe7fb;border-radius:22px;background:linear-gradient(135deg,#f8fbff,#fff);box-shadow:0 14px 34px rgba(31,70,140,.07);margin:0 0 22px;}
.m18-static-lead h2{margin-top:0!important;}
.m18-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:18px 0 24px;}
.m18-info-card{border:1px solid #dbe7fb;border-radius:20px;background:#fff;padding:18px;box-shadow:0 12px 28px rgba(31,70,140,.06);}
.m18-info-card h3{margin:.1rem 0 .45rem!important;font-size:1.08rem!important;color:#10203f;}
.m18-info-card p{margin:0!important;color:#52617b;}
.m18-action-row{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 0;}
.m18-action-row a{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:.75rem 1rem;font-weight:900;background:#245dff;color:#fff!important;box-shadow:0 14px 28px rgba(36,93,255,.18);}
.m18-action-row a.m18-action-secondary{background:#fff;color:#10203f!important;border:1px solid #dbe7fb;box-shadow:none;}
.m18-curiosity-feature{display:grid;gap:18px;margin:0 0 26px;}
.m18-curiosity-card{display:grid;grid-template-columns:minmax(220px,360px) minmax(0,1fr);gap:20px;align-items:center;border:1px solid #dbe7fb;border-radius:26px;background:linear-gradient(135deg,#fff,#f7fbff);padding:18px;box-shadow:0 16px 38px rgba(31,70,140,.08);text-decoration:none!important;}
.m18-curiosity-card:hover{transform:translateY(-2px);box-shadow:0 20px 48px rgba(31,70,140,.12);}
.m18-curiosity-card img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:20px;border:1px solid #dbe7fb;background:#eef5ff;}
.m18-curiosity-card h2{margin:0 0 .6rem!important;}
.m18-curiosity-card p{margin:.35rem 0!important;color:#52617b;}
.m18-curiosity-card .m18-pill{margin-top:10px;background:#eef5ff;color:#245dff;border-color:#cfe0ff;}
.m18-contact-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr);gap:20px;align-items:start;margin-top:10px;}
.m18-contact-form{display:grid;gap:14px;border:1px solid #dbe7fb;border-radius:24px;background:#f8fbff;padding:20px;}
.m18-contact-form label{display:grid;gap:6px;font-weight:900;color:#10203f;}
.m18-contact-form input,.m18-contact-form textarea,.m18-contact-form select{width:100%;border:1px solid #cfdcf0;border-radius:16px;background:#fff;padding:12px 14px;color:#172033;outline:none;}
.m18-contact-form textarea{min-height:150px;resize:vertical;}
.m18-contact-form input:focus,.m18-contact-form textarea:focus,.m18-contact-form select:focus{border-color:#245dff;box-shadow:0 0 0 4px rgba(36,93,255,.10);}
.m18-contact-form button{border:0;border-radius:999px;background:linear-gradient(135deg,#245dff,#10b8d6);color:#fff;padding:13px 18px;font-weight:950;cursor:pointer;box-shadow:0 14px 28px rgba(36,93,255,.18);}
.m18-contact-aside{border:1px solid #dbe7fb;border-radius:24px;background:#fff;padding:20px;box-shadow:0 14px 34px rgba(31,70,140,.07);}
.m18-contact-aside h2{margin-top:0!important;}
.m18-contact-aside a{color:#245dff;font-weight:900;}
@media(max-width:760px){
  .m18-curiosity-card,.m18-contact-layout{grid-template-columns:1fr;}
  .m18-action-row a{width:100%;}
}
