:root{--navy:#061a33;--navy2:#0e3157;--ink:#071526;--muted:#405166;--soft:#eef4f9;--line:#c6d5e3;--red:#c51230;--green:#08785a;--orange:#f5a623;--purple:#6c39a7;--cyan:#0b6470;--white:#fff;--light:#e7eff8;--radius:22px;--shadow:0 16px 40px rgba(6,26,51,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth;max-width:100%;overflow-x:clip}body{margin:0;max-width:100%;overflow-x:clip;font:16px/1.65 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#fff}a{color:#075a9c;text-underline-offset:3px}button,input,select{font:inherit}.wrap{width:min(1180px,calc(100% - 40px));margin:auto}.skip{position:fixed;top:-90px;left:12px;background:#fff;color:#000;border:3px solid #000;padding:12px;z-index:99}.skip:focus{top:12px}.top{background:var(--navy);color:#fff}.top-inner{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:20px}.top a{color:#fff;text-decoration:none;font-weight:900}.top nav{display:flex;gap:22px}.hero{padding:68px 0;background:linear-gradient(135deg,#061a33,#103b68 62%,#4e267e);color:#fff}.hero-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.55fr);gap:42px;align-items:center}.crumbs{display:flex;gap:8px;flex-wrap:wrap}.crumbs a{color:#fff}.eyebrow{font-size:.82rem;letter-spacing:.16em;text-transform:uppercase;font-weight:950;color:#fff}.eyebrow.dark{color:#163c63;background:transparent!important;-webkit-text-fill-color:#163c63!important;padding:0}h1,h2,h3{line-height:1.08;margin:0 0 18px}h1{font-size:clamp(2.45rem,5.4vw,4.9rem);letter-spacing:-.05em;overflow-wrap:anywhere}h2{font-size:clamp(2rem,4.1vw,3.6rem);letter-spacing:-.04em}h3{font-size:1.25rem}.lead{font-size:clamp(1.08rem,2vw,1.33rem);max-width:850px}.hero-selectors{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:24px 0}.hero-selectors label{font-weight:850;color:#fff}.hero-selectors select,.tool input,.tool select{display:block;width:100%;min-height:48px;margin-top:6px;border:2px solid #8ba6c1;border-radius:10px;background:#fff;color:var(--ink);padding:9px 34px 9px 10px}.hero-result{min-height:72px;padding:16px;border-radius:14px;background:#fff;color:var(--ink);border-left:7px solid var(--orange)}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.cta,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:11px 19px;border-radius:12px;text-decoration:none;font-weight:950}.cta{background:var(--red);color:#fff;border:2px solid #ff7d8f}.secondary{border:2px solid #fff;color:#fff}.update-card{padding:26px;border-radius:var(--radius);background:#fff;color:var(--ink);box-shadow:var(--shadow);border:3px solid #b5a1e0}.update-card strong,.update-card>span{display:block}.update-card strong{font-size:1.3rem}.update-card>span{font-size:1.15rem;color:#0a5e49;font-weight:900;margin:6px 0 16px}.update-card dl{margin:0}.update-card dl div{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:9px 0}.update-card dd{margin:0;font-weight:900}.cluster{padding:42px 0}.cluster-head{display:flex;justify-content:space-between;align-items:end;gap:20px}.cluster-controls{display:flex;gap:8px}.cluster-controls button,.tool button{border:2px solid var(--navy);background:#fff;color:var(--navy);font-weight:900;border-radius:10px;padding:10px 14px;min-height:44px}.cluster-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,1fr);gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:18px 4px}.cluster-card{scroll-snap-align:start;border:3px solid var(--accent);border-radius:18px;padding:17px;background:#fff;color:var(--ink);text-decoration:none;min-height:150px;box-shadow:0 8px 24px rgba(6,26,51,.08)}.cluster-card span{display:block;color:#334155;font-size:.86rem}.cluster-card strong{display:block;margin:7px 0;font-size:1.1rem}.cluster-card[aria-current=page]{background:var(--navy);color:#fff}.cluster-card[aria-current=page] span{color:#fff}.toc{display:flex;gap:8px;overflow:auto;padding:13px 0;position:sticky;top:0;background:rgba(255,255,255,.97);z-index:10}.toc a{white-space:nowrap;text-decoration:none;font-weight:850;color:var(--navy);background:var(--soft);border-radius:999px;padding:7px 11px}.section{padding:72px 0;scroll-margin-top:75px}.band{background:var(--soft)}.section.dark{background:var(--navy);color:#fff}.section.dark a{color:#fff}.section p.intro{max-width:930px;font-size:1.08rem}.method-grid,.evidence-grid,.levels,.freelance-grid,.factor-grid,.plan{display:grid;gap:16px}.method-grid{grid-template-columns:repeat(3,1fr)}.method-grid article,.evidence-grid article,.freelance-grid article,.tool,.two article,details{background:#fff;color:var(--ink);border:2px solid var(--line);border-radius:18px;padding:21px}.method-grid article{border-top:6px solid var(--cyan)}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:18px;background:#fff;margin:24px 0}table{border-collapse:collapse;width:100%;min-width:760px;color:var(--ink)}th,td{text-align:left;padding:14px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#dce7f2;color:var(--ink);font-weight:950}.warning,.note{margin-top:20px;padding:17px;border-radius:12px;background:#fff3c4;color:#111;border-left:7px solid var(--orange)}.evidence-grid{grid-template-columns:repeat(4,1fr);margin-top:24px}.evidence-grid article{border-top:6px solid var(--green)}.evidence-grid span,.freelance-grid span{display:block;color:#405166;font-weight:850}.evidence-grid strong,.freelance-grid strong{display:block;font-size:1.5rem;margin:7px 0}.levels{grid-template-columns:repeat(4,1fr)}.levels article,.factor-grid article,.plan article{background:#fff;color:var(--ink);border-radius:18px;padding:21px;border-top:6px solid var(--orange)}.levels article:nth-child(2){border-top-color:#4ca6e8}.levels article:nth-child(3){border-top-color:var(--green)}.levels article:nth-child(4){border-top-color:#a780d1}.city-note{margin-top:24px;padding:22px;border:1px solid #7392b1;border-radius:18px;background:#12375c;color:#fff}.freelance-grid{grid-template-columns:repeat(3,1fr)}.freelance-grid article:nth-child(2){border-top:6px solid var(--purple)}.formula{margin-top:24px;background:var(--purple);color:#fff;padding:22px;border-radius:18px;display:grid;gap:5px}.formula span{font-size:1.6rem;font-weight:950}.factor-grid{grid-template-columns:repeat(3,1fr)}.factor-grid article{border-top-color:#56b9c4}.chips{display:flex;flex-wrap:wrap;gap:9px;margin:26px 0}.chips span{background:#fff;color:var(--ink);padding:8px 12px;border-radius:999px;font-weight:900}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.two article{border-top:6px solid var(--green)}details{margin-top:18px}summary{font-weight:950;cursor:pointer}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.tool label{display:block;font-weight:850;margin:11px 0}.tool label:has(input[type=checkbox]){display:flex;gap:8px;align-items:center}.tool input[type=checkbox]{width:20px;min-height:20px;margin:0}.result{margin-top:15px;padding:16px;border-radius:12px;background:#e7f4ef;color:#063d2f;border:2px solid #6bb49d;min-height:58px}.slider-row{display:grid;grid-template-columns:130px 1fr 24px;gap:10px;align-items:center;margin:11px 0}.slider-row input{min-height:auto;margin:0}.plan{grid-template-columns:repeat(3,1fr)}.mid-cta{margin-top:26px;background:#fff;color:var(--ink);padding:22px;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.errors-grid,.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.error-card{border-left:6px solid var(--orange);background:#fff5dc;padding:16px;border-radius:12px}.faq-grid details{margin:0}.source-list,.related{display:flex;flex-wrap:wrap;gap:10px}.source-list a,.related a{background:#fff;border:2px solid var(--line);border-radius:999px;padding:8px 12px;text-decoration:none;font-weight:800}.sources{background:#f7fafc}.final-course{text-align:center}.final-course p{max-width:760px;margin:0 auto 22px}footer{background:#020c18;color:#fff;padding:28px 0}footer .wrap{display:flex;flex-wrap:wrap;gap:18px}footer a{color:#fff}.cta:focus-visible,.secondary:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:4px solid #ffcb38;outline-offset:4px}
/* Contraste explícito para todas las superficies oscuras. */
:where(.top,.hero,.section.dark,footer,.formula){color:#fff}.top :where(a,.brand),.hero>.wrap>div:first-child :where(h1,h2,h3,p,li,strong,small,label,.eyebrow,.crumbs span,.crumbs a),.section.dark>.wrap>:where(h1,h2,h3,p,.eyebrow),.section.dark .city-note :where(h3,p,strong),footer :where(a,p,span,strong),.formula :where(b,span,small){color:#fff}.hero>.wrap>div:first-child :where(.lead,p:not(.eyebrow)),.section.dark>.wrap>p:not(.eyebrow){color:#e7eff8}.section.dark :where(.levels article,.factor-grid article,.plan article,.mid-cta) :where(h1,h2,h3,p,li,strong,b,span){color:var(--ink)}.cta,.cta:visited{color:#fff!important}.cluster-card[aria-current=page],.cluster-card[aria-current=page] :where(span,strong){color:#fff}.warning,.warning *{color:#111}
@media(max-width:980px){.hero-grid{grid-template-columns:1fr}.evidence-grid,.levels{grid-template-columns:1fr 1fr}.hero-selectors{grid-template-columns:1fr 1fr}.method-grid,.factor-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.wrap{width:calc(100% - 28px);max-width:100%;min-width:0}.top nav{display:none}.hero{padding:48px 0}.hero-grid{gap:24px}h1{font-size:clamp(2.1rem,11.2vw,3.15rem);overflow-wrap:anywhere}h2{font-size:clamp(1.75rem,8vw,2.3rem);overflow-wrap:anywhere}.hero-selectors,.method-grid,.evidence-grid,.levels,.freelance-grid,.factor-grid,.two,.tool-grid,.plan,.errors-grid,.faq-grid{grid-template-columns:minmax(0,1fr)}.actions>*{width:100%}.cluster-head{flex-direction:column;align-items:start}.cluster-controls{width:100%}.cluster-controls button{flex:1}.cluster-rail{grid-auto-columns:calc(100% - 10px)}.toc{position:static}.section{padding:52px 0;max-width:100%;overflow-x:clip}.mid-cta{flex-direction:column;align-items:stretch}.mid-cta .cta{width:100%}.slider-row{grid-template-columns:1fr 34px}.slider-row span:first-child{grid-column:1/-1}.hero-selectors{grid-template-columns:1fr}.formula span{font-size:1.25rem}.table-wrap{max-width:100%}.top-inner{min-height:60px}}
/* Carrusel multicolor con encaje central preciso. */
.cluster-rail{overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-padding-inline:4px;padding-bottom:22px}
.cluster-card{scroll-snap-align:center;scroll-snap-stop:always;background:var(--card-bg);color:#fff;border-color:var(--accent);box-shadow:0 8px 24px rgba(6,26,51,.16);transition:transform .2s ease,box-shadow .2s ease}
.cluster-card span,.cluster-card strong{color:#fff}
.cluster-card:hover,.cluster-card:focus-visible{transform:translateY(-3px);box-shadow:0 13px 30px rgba(6,26,51,.24)}
.cluster-card[aria-current=page]{background:var(--card-bg);box-shadow:0 0 0 4px #ffcb38,0 13px 30px rgba(6,26,51,.24)}
@media(max-width:640px){.cluster-rail{width:100%;grid-auto-columns:100%;gap:12px;padding-inline:7%;scroll-padding-inline:7%;scroll-snap-type:x mandatory}.cluster-card{scroll-snap-align:center;min-height:168px;display:flex;flex-direction:column;justify-content:center}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
