/* Maquetación del portal de certificaciones y del estudio FTD.
   Colores, tipografías y componentes vienen de assets/sistema.css;
   este archivo solo aporta estructura. Reemplaza a los antiguos
   certificados/styles.css y certificaciones.css. */

h1,h2,h3,p{margin-top:0}h1{font-size:clamp(25px,3vw,34px);line-height:1.15}h2{font-size:25px}h3{font-size:17px}small{font-size:12px}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid var(--lime);outline-offset:2px}
.mark{background:var(--cyan);color:#fff;border-radius:10px;padding:11px 9px;font-weight:800;letter-spacing:.04em}.top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.top-actions #saveStatus{font-size:12px;color:#bddcf1;margin-right:8px}.page{max-width:1360px;margin:0 auto;padding:28px 20px 60px}.welcome{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:25px;align-items:stretch;padding-top:48px}.hero,.journey{background:#fff;border:1px solid var(--line);border-radius:18px;padding:40px;box-shadow:0 12px 30px rgba(8,26,50,.045)}.hero h1{max-width:650px;margin:12px 0 14px}.hero p{max-width:600px;color:var(--muted);font-size:17px;line-height:1.55}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.journey{margin:0;counter-reset:journey;list-style:none;display:flex;flex-direction:column;justify-content:center;gap:16px}.journey li{display:flex;align-items:center;gap:13px;font-weight:650}.journey li:before{counter-increment:journey;content:counter(journey);display:grid;place-items:center;background:#e4f0fb;color:var(--blue-deep);border-radius:50%;width:33px;height:33px;flex:none}
.wizard-head{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:19px}.wizard-head h1{margin:6px 0}.wizard-head p{color:#60727d;margin:0}.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:16px}.steps button{background:#fff;border:1px solid #d8e3e9;border-radius:10px;padding:10px;color:#59707e;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:650;min-height:52px}.steps button span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e9f0f3;color:#3c6476}.steps button.active{background:#e8f7fa;border-color:#0b8eab;color:#066a84}.steps button.active span{background:#0b8eab;color:#fff}.steps button.complete span{background:#d4f2e7;color:#177853}.notice{background:#fff6dc;color:#73531b;border:1px solid #eedb95;border-radius:10px;padding:12px 15px;margin-bottom:16px;line-height:1.45}.panel{background:#fff;border:1px solid #dbe5e9;border-radius:16px;padding:28px;box-shadow:0 10px 25px rgba(8,26,50,.035)}.section-head{border-bottom:1px solid #e8eef1;margin-bottom:22px;padding-bottom:16px}.section-head h2{margin:8px 0}.section-head p{color:#647781;margin:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;max-width:850px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.choice{border:0;padding:0;margin:22px 0}.choice legend{font-weight:700;margin-bottom:11px}.choice label{display:inline-flex;align-items:center;gap:8px;padding:12px 14px;border:1px solid #d6e2e7;border-radius:9px;margin:0 8px 8px 0;cursor:pointer}.choice label:has(input:checked){border-color:#0b8eab;background:#edf9fb}.choice input{accent-color:var(--blue)}.branch{background:#f7fafb;border:1px solid #e2eaee;border-radius:11px;padding:18px;margin:0 0 18px}.branch h3{margin:0 0 14px}.branch .result-strip{background:#eaf6f8;border:1px solid #cce8ef;border-radius:11px;padding:17px 20px;margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.result-strip span,.result-strip strong,.result-strip small{display:block}.result-strip span{font-size:12px;color:#497184;font-weight:700}.result-strip strong{font-size:27px;margin:4px 0;color:#0b5b76}.result-strip small{color:#4d6b79}.result-strip code{white-space:normal;color:#225063;font-size:12px}.footer-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;color:#65808d;font-size:13px}
.map-settings{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:17px}.map-settings .map-settings .compact{flex:1;max-width:215px}.map-toolbar{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}.tool-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.tool-group .tool-group select{border:1px solid #bdcdd5;border-radius:8px;padding:8px;background:white}.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 225px;gap:13px}.canvas-wrap{min-height:420px;overflow:auto;background:#e0e8ed;border:1px solid #acc0cb;border-radius:10px;display:flex;justify-content:center;align-items:start}.canvas-wrap canvas{display:block;max-width:100%;height:auto;touch-action:none;cursor:crosshair;background:#fff}.map-side{border:1px solid #e2e9ed;border-radius:10px;padding:14px}.map-side h3{margin-bottom:13px}.map-side dl{margin:0}.map-side dl div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #e9eff2;padding:8px 0}.map-side dt{font-size:12px;color:#60737d}.map-side dd{font-size:12px;font-weight:750;margin:0;text-align:right}.object-list{margin-top:10px;max-height:230px;overflow:auto}.object-list div{border-top:1px solid #e6ecef;padding:7px 0;display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px}.object-list button{border:0;background:transparent;color:#aa4444;cursor:pointer}.legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:13px 0;font-size:12px;color:#5e707c}.swatch{display:inline-block;width:13px;height:13px;border-radius:3px;vertical-align:middle;margin-right:4px}.swatch.weak{background:#e0524c}.swatch.mid{background:#edbd3d}.swatch.strong{background:#56b56b}.swatch.ap{background:#6443b5}.swatch.smart{background:#193c59}.swatch.wall{background:#222f3b}.review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:23px}.review-card{border:1px solid #dfe8eb;border-radius:10px;padding:16px}.review-card span,.review-card strong,.review-card small{display:block}.review-card span{font-size:12px;color:#647985;font-weight:700}.review-card strong{font-size:22px;margin:5px 0}.review-card small{color:#6a7c86}.warnings{padding-left:22px;color:#64522c;line-height:1.55}.warnings li{margin-bottom:7px}.warnings.ok{color:#1c7651}.report-preview{border:1px solid #dfe8ec;border-radius:10px;padding:22px;background:#fcfdfd}.report-preview h3{margin-bottom:8px}.report-preview p{color:#536b78}.report-preview dl{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.report-preview dl div{padding:9px;border-bottom:1px solid #e4eaed}.report-preview dt{font-size:12px;color:#657a85}.report-preview dd{font-weight:700;margin:3px 0 0}.report-preview img{max-width:100%;height:auto;border:1px solid #dce4e8;border-radius:7px}
@media(max-width:1000px){.map-layout{grid-template-columns:1fr}.map-side{display:block}.review-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.welcome{grid-template-columns:1fr;padding-top:12px}.hero,.journey{padding:25px}.page{padding:17px 12px 40px}.steps{grid-template-columns:repeat(5,minmax(40px,1fr));gap:4px}.steps button{font-size:0;padding:6px;min-height:43px}.steps button span{font-size:13px}.panel{padding:18px}.form-grid,.form-grid.three,.review-grid{grid-template-columns:1fr}.wizard-head{align-items:center}.report-preview dl{grid-template-columns:1fr}}@media print{.page{padding:0}.panel{border:0;box-shadow:none}}

.steps{grid-template-columns:repeat(6,1fr)}
.budget-settings{margin-bottom:12px}
.budget-summary{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:9px;margin:18px 0}
.budget-summary>div{border:1px solid #dce8ed;border-radius:9px;padding:12px;background:#f7fbfc}
.budget-summary span,.budget-summary strong{display:block}.budget-summary span{font-size:12px;color:#607987}.budget-summary strong{margin-top:5px;font-size:17px;color:#174761}
.budget-status{grid-column:1/-1;margin:0;background:#eaf6f8;border-radius:8px;padding:10px 12px;color:#275266}
.budget-tools{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.budget-tools 
.budget-table-wrap{max-width:100%;overflow-x:auto;margin:12px 0 20px;border:1px solid #dae6eb;border-radius:9px}
.budget-table{border-collapse:collapse;width:100%;min-width:940px;font-size:12px}
.budget-table th{text-align:left;background:#eaf2f5;color:#3c5e6e;padding:10px 8px;white-space:nowrap}
.budget-table td{border-top:1px solid #e6ecef;padding:8px;vertical-align:top}
.budget-table tr.below-cost{background:#fff7e9}.budget-description{min-width:295px;max-width:490px;line-height:1.4}
.budget-description small{display:block;color:#68808b;margin-top:5px}
.budget-table input:not([type=checkbox]),.budget-table select{width:100%;min-width:72px;border:1px solid #bfd0d8;border-radius:6px;padding:7px;background:#fff}
.budget-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--blue)}
.budget-table td:nth-child(3){width:78px}.budget-table td:nth-child(4){width:135px}.budget-table td:nth-child(5){width:125px}.budget-table td:nth-child(6){width:125px}
.money-cell{white-space:nowrap;font-weight:700}.budget-reset{border:0;background:none;color:var(--blue);padding:5px 0;cursor:pointer;font-size:11px;text-align:left}
@media(max-width:1000px){.budget-summary{grid-template-columns:repeat(3,minmax(120px,1fr))}}@media(max-width:700px){.steps{grid-template-columns:repeat(6,minmax(38px,1fr))}.budget-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.company-logo{display:block;width:125px;height:auto;max-height:65px;object-fit:contain;background:#fff;border-radius:8px;padding:5px;flex:none}
.welcome-logo{display:block;width:min(280px,70%);height:auto;margin:0 0 22px}
.map-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:13px}
.map-targets>div{background:#eaf6f8;border:1px solid #cce8ef;border-radius:11px;padding:16px 18px}
.map-targets span,.map-targets strong,.map-targets small{display:block}.map-targets span{color:#497184;font-size:12px;font-weight:700}.map-targets strong{color:#0b5b76;font-size:29px;margin:5px 0}.map-targets small{color:#4d6b79}
.swatch.socket{background:#178767}.budget-table.preview-quote{min-width:650px}.budget-table.preview-quote td:nth-child(3),.budget-table.preview-quote td:nth-child(4),.budget-table.preview-quote td:nth-child(5){width:auto}
@media(max-width:700px){.company-logo{width:110px}.welcome-logo{width:min(230px,75%)}.map-targets{grid-template-columns:1fr}}

.budget-match{display:grid;grid-template-columns:repeat(5,minmax(100px,1fr));gap:9px;margin:10px 0 22px}
.budget-match>div{border:1px solid #cce5da;background:#eff9f3;border-radius:9px;padding:10px 12px}
.budget-match>div.mismatch{border-color:#efcea7;background:#fff7e9}
.budget-match span,.budget-match strong,.budget-match small{display:block}.budget-match span{font-size:12px;font-weight:750;color:#4b6775}.budget-match strong{font-size:20px;margin:4px 0}.budget-match small{font-size:11px;color:#647985}
.spreadsheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:27px}.spreadsheet-head h3{margin-bottom:4px}.spreadsheet-head p{margin-bottom:0}
.quote-sheet{width:100%;min-width:1050px;border-collapse:collapse;font-size:12px;color:#263d4b}
.quote-sheet th,.quote-sheet td{border:1px solid #cbd9df;padding:8px 9px;vertical-align:top}
.quote-sheet thead th{background:#dfeef4;color:#234e64;text-align:left;white-space:nowrap}
.quote-sheet tbody tr:nth-child(even){background:#f5fafc}.quote-sheet tbody td:nth-child(3){min-width:250px}
.quote-sheet tbody td:nth-child(n+6),.quote-sheet tfoot th:last-child{text-align:right;white-space:nowrap}
.quote-sheet tfoot th{background:#d7e9f0;text-align:right;font-size:13px}
.signature-block{margin:45px 0 15px;max-width:360px;padding-top:18px;break-inside:avoid}.signature-line{border-top:2px solid var(--ink);height:14px}.signature-block strong,.signature-block small{display:block}.signature-block small{color:#536b78;margin-top:4px}
@media(max-width:700px){.budget-match{grid-template-columns:repeat(2,minmax(0,1fr))}.spreadsheet-head{align-items:start;flex-direction:column}}

.map-type-counts{display:inline-block;background:#f5fafc;border:1px solid #dce9ee;border-radius:8px;padding:8px 12px;margin:0 0 16px;color:#31586d;font-weight:700;font-size:12px}
.object-list select{border:1px solid #bdcdd5;border-radius:6px;background:#fff;padding:3px 5px;font-size:12px}

.apu-picker{display:grid;grid-template-columns:minmax(200px,1.2fr) minmax(145px,.8fr) minmax(260px,1.6fr) 100px auto;gap:12px;align-items:end;background:#f5fafc;border:1px solid #d5e6ed;border-radius:11px;padding:16px;margin:12px 0 20px}
.apu-picker h3{margin:0 0 5px}.apu-picker p{margin:0}.apu-picker .apu-picker 
.apu-alias{display:inline-block;background:#dcf5e9;color:#136b50;border-radius:5px;padding:2px 5px;font-weight:700;font-size:11px}
.budget-custom-actions{margin:8px 0 12px}.budget-custom-actions 
@media(max-width:1150px){.apu-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.apu-picker>div:first-child{grid-column:1/-1}}
@media(max-width:700px){.apu-picker{grid-template-columns:1fr}.apu-picker>div:first-child{grid-column:auto}}

/* Acabado visual Final 1: profundidad suave y colores del logo. */




.company-logo{border-radius:14px;padding:7px;box-shadow:0 7px 16px rgba(0,22,53,.22)}

.page{padding-top:32px}







.welcome{gap:22px}
.hero,.journey,.panel{border:1px solid rgba(197,222,235,.86);border-radius:27px;box-shadow:var(--lift)}
.hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(136deg,#fff 0%,#f8fcff 63%,#e5f5ff 100%);padding:46px}
.hero:before{content:"";position:absolute;z-index:-1;width:310px;height:310px;right:-115px;top:-115px;border-radius:50%;background:radial-gradient(circle at 33% 34%,#b8fbd0 0%,#35bddc 45%,#0572ca 76%);box-shadow:inset 20px 20px 35px rgba(255,255,255,.55),0 22px 45px rgba(1,100,178,.2);opacity:.6}
.hero:after{content:"";position:absolute;z-index:-1;width:190px;height:190px;right:46px;bottom:-110px;border:25px solid rgba(24,149,216,.10);border-radius:50%}
.hero h1{font-size:clamp(30px,3.4vw,45px);max-width:660px;color:#143857;letter-spacing:-.025em}
.hero p{color:#496879}.welcome-logo{padding:10px 13px;border-radius:17px;background:#fff;box-shadow:0 10px 25px rgba(18,90,149,.11);width:min(240px,70%)}
.journey{background:linear-gradient(155deg,#143b67,#0b6b91);color:#fff;padding:34px 28px;position:relative;overflow:hidden}
.journey:after{content:"";position:absolute;width:250px;height:250px;right:-100px;bottom:-135px;border-radius:50%;background:radial-gradient(circle,#53ca64,transparent 70%);opacity:.35;pointer-events:none}
.journey li{position:relative;z-index:1}.journey li:before{width:37px;height:37px;background:linear-gradient(145deg,#d2ffeb,#91e6f6);color:#075679;box-shadow:0 5px 12px rgba(0,30,65,.25),inset 0 1px 0 #fff}
.wizard-head h1{color:#173b59}.steps{gap:10px}
.steps button{border-radius:15px;border-color:var(--line);min-height:62px;box-shadow:0 5px 13px rgba(25,67,98,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.steps button:hover:not(:disabled){transform:translateY(-2px);border-color:#7dc6e1;box-shadow:0 10px 20px rgba(25,67,98,.12)}
.steps button.active{background:linear-gradient(125deg,#e8f8ff,#e4f9ed);border-color:#50b3d6;box-shadow:0 8px 20px rgba(8,132,183,.14)}
.steps button.active span{background:linear-gradient(145deg,#0587dc,#10b5b5);box-shadow:0 4px 9px rgba(0,110,170,.25)}
.steps button.complete span{background:linear-gradient(145deg,#d6f5c4,#a7e9cf);color:#166d4d}
.panel{background:linear-gradient(175deg,#fff 0%,#fff 78%,#fafdff 100%);padding:31px}.section-head{border-bottom-color:#e1edf3}.section-head h2{color:#173c5a}


.choice label,.branch,.notice,.result-strip,.map-targets>div,.map-side,.review-card,.report-preview,.budget-summary>div,.budget-match>div,.apu-picker,.budget-table-wrap{border-radius:17px}
.choice label:has(input:checked){background:linear-gradient(120deg,#e6f7ff,#e7f9ed);box-shadow:0 5px 14px rgba(8,120,171,.09)}
.branch,.apu-picker{background:linear-gradient(135deg,#f6fbff,#f2fbf7);border-color:#cfe4eb}
.result-strip,.map-targets>div{background:linear-gradient(120deg,#e7f6ff,#e9fbf1);border-color:#bde6e6;box-shadow:inset 0 1px 0 #fff,0 8px 18px rgba(16,130,157,.07)}
.result-strip strong,.map-targets strong{color:#086a9b}
.canvas-wrap{border-radius:18px;background:repeating-linear-gradient(45deg,#e6f0f5,#e6f0f5 10px,#edf5f8 10px,#edf5f8 20px);border-color:#a8c9d9;box-shadow:inset 0 3px 12px rgba(22,68,95,.1)}
.canvas-wrap canvas{box-shadow:0 9px 24px rgba(18,52,77,.17)}.map-side,.review-card{background:#fbfeff;border-color:#d6e8ef;box-shadow:0 7px 18px rgba(20,75,105,.06)}
.review-card:nth-child(3n+1){border-top:4px solid #0b9ada}.review-card:nth-child(3n+2){border-top:4px solid #4dbd66}.review-card:nth-child(3n){border-top:4px solid #20b1c1}
.budget-summary>div,.budget-match>div{box-shadow:0 6px 16px rgba(22,72,105,.06);border-color:#cde5e2;background:linear-gradient(135deg,#f2fbff,#f0fcf4)}
.budget-match>div.mismatch{background:linear-gradient(135deg,#fff8ec,#fff1e1);border-color:#edcd9c}.budget-status{border-radius:12px}
.budget-table-wrap{box-shadow:0 6px 18px rgba(25,74,102,.05);border-color:#c9dee9;background:#fff}
.budget-table th,.quote-sheet thead th{background:linear-gradient(180deg,#e4f4fb,#d9edf7);color:#194867}.quote-sheet tbody tr:nth-child(even){background:#f5fbff}.quote-sheet tfoot th{background:linear-gradient(110deg,#d9edf7,#dcf4ea)}
.report-preview{background:linear-gradient(150deg,#fff,#f4fbff);border-color:#cfe4ec;box-shadow:inset 0 1px 0 #fff,0 8px 22px rgba(23,76,106,.06)}
.signature-block{border-radius:14px;padding:22px 18px 12px;background:#f7fbfe}
@media(max-width:1000px){.steps{gap:6px}.steps button{font-size:12px;gap:5px;padding:8px 5px}}
@media(max-width:700px){.page{padding:18px 12px 44px}.hero,.journey{padding:27px}.hero:before{width:190px;height:190px;right:-100px;top:-65px;opacity:.32}.hero h1{font-size:clamp(29px,7vw,38px)}.panel{padding:19px}.steps{gap:4px}.steps button{min-height:47px;font-size:0}.steps button span{font-size:13px}}
@media(prefers-reduced-motion:reduce){}
@media print{body{background:#fff}.panel,.hero,.journey,.review-card,.budget-table-wrap,.report-preview{box-shadow:none}.panel{background:#fff;border:0}}
.cert-page{max-width:1240px}.cert-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(190px,.5fr);gap:28px;align-items:center;position:relative;overflow:hidden;padding:40px 44px;border-radius:28px;background:linear-gradient(118deg,#fff 0%,#f3fbff 62%,#eafbea 100%);border:1px solid #cce4ee;box-shadow:var(--lift)}
.cert-hero:before{content:"";position:absolute;width:250px;height:250px;right:-95px;top:-105px;border-radius:50%;background:linear-gradient(135deg,#75d7f5,#7dd64c);opacity:.22;pointer-events:none}.cert-hero h1{font-size:clamp(32px,4vw,51px);color:#133a5d;margin:9px 0 12px}.cert-hero p{max-width:710px;color:#496779;line-height:1.6;font-size:16px}.cert-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.cert-hero-tags span{padding:7px 11px;border:1px solid #cbe5ea;background:#fff;border-radius:999px;color:#126682;font-size:12px;font-weight:750;box-shadow:0 4px 12px rgba(18,91,128,.06)}
.cert-hero-mark{position:relative;z-index:1;justify-self:center;display:grid;place-content:center;text-align:center;width:180px;height:180px;border-radius:48px;background:linear-gradient(145deg,#0b7fce,#16b4c2 62%,#76ca30);color:#fff;transform:rotate(-8deg);box-shadow:16px 18px 0 rgba(19,111,170,.10),0 20px 35px rgba(2,105,172,.24),inset 0 2px 0 rgba(255,255,255,.32)}.cert-hero-mark span{font-size:52px;font-weight:850;letter-spacing:-.05em}.cert-hero-mark small{font-size:12px;font-weight:700;letter-spacing:.04em}
.cert-notice{margin:20px 0 34px;padding:14px 18px;background:#eaf7fc;border:1px solid #bfe1ed;border-left:5px solid #0c95c7;border-radius:14px;color:#315b70;line-height:1.5}.cert-notice.error{background:#fff4e9;border-color:#f1c99f;border-left-color:#d47728;color:#79521e}.cert-notice.success{background:#ebf9ef;border-color:#bde6cc;border-left-color:#2eae64;color:#1d6542}
.cert-section-heading,.cert-exam-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:0 0 18px}.cert-section-heading h2,.cert-exam-head h2{color:#173c5a;margin:6px 0}.cert-section-heading p,.cert-exam-head p{margin:0;color:#5d7583}.cert-track-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.cert-track{position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:270px;padding:25px;border-radius:22px;border:1px solid #d0e4ee;background:#fff;box-shadow:var(--lift)}.cert-track:before{content:"";position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,#078ddb,#45caa0)}.cert-track:nth-child(2):before{background:linear-gradient(90deg,#0e7eca,#269ddd)}.cert-track:nth-child(3):before{background:linear-gradient(90deg,#18a7bc,#7bcc3a)}.cert-track-num{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#e7f7ff,#dff9eb);color:#096f9a;font-size:19px;font-weight:850;box-shadow:inset 0 1px 0 #fff,0 5px 12px rgba(25,100,132,.08)}.cert-track h3{margin:18px 0 8px;color:#17425e;font-size:20px}.cert-track p{color:#587181;line-height:1.5;margin-bottom:16px}.cert-track-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}.cert-track-foot small{color:#567487;font-weight:700}.cert-track-foot 
.cert-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:25px 0 34px}.cert-info{padding:21px 23px;border-radius:19px;background:linear-gradient(130deg,#eaf8ff,#f5fcff);border:1px solid #cfe5ee}.cert-info:nth-child(2){background:linear-gradient(130deg,#effbf3,#f8fdf9);border-color:#cbe9d4}.cert-info h3{margin:0 0 8px;color:#19475f}.cert-info p{margin:0;color:#526f7e;line-height:1.5}
.cert-exam,.cert-result,.cert-history{margin:0 0 34px;padding:30px;border-radius:25px;border:1px solid #d2e5ed;background:#fff;box-shadow:var(--lift)}.cert-person{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px 20px;margin-bottom:18px;border:1px solid #d4e7ed;border-radius:17px;background:#f6fbfd}.cert-person .cert-progress-wrap{padding:18px 20px;border-radius:17px;background:linear-gradient(110deg,#e7f6ff,#edfbef);border:1px solid #c7e9e5;margin-bottom:20px}.cert-progress-wrap>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#326079;font-size:13px}.cert-progress-wrap strong{color:#13567a}.cert-progress{height:10px;border-radius:999px;background:#cddfe6;overflow:hidden;margin-top:11px}.cert-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#068ce0,#58c96c);border-radius:inherit;transition:width .2s ease}
.cert-question{border:1px solid #d6e5eb;border-radius:18px;padding:20px 22px;margin:15px 0;background:#fff;box-shadow:0 5px 15px rgba(17,69,101,.04)}.cert-question.needs-answer{border-color:#dc8659;box-shadow:0 0 0 3px rgba(219,132,84,.13)}.cert-question legend{float:left;width:100%;padding:0;margin:0 0 12px}.cert-question legend:after{content:"";display:block;clear:both}.cert-question-number{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:10px;margin-right:7px;background:#e4f5fc;color:#0b6e98;font-weight:800;font-size:12px}.cert-topic{display:inline-block;color:#3f8d87;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.cert-question-title{display:block;color:#183e58;font-weight:750;font-size:16px;line-height:1.45;margin-top:9px}.cert-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;clear:both}.cert-option{display:flex;align-items:start;gap:9px;border:1px solid #d5e4ea;border-radius:12px;padding:11px 12px;cursor:pointer;line-height:1.35;color:#315163;background:#fcfeff}.cert-option:hover{border-color:#86c8de;background:#f5fbfe}.cert-option:has(input:checked){border-color:#1ca3c7;background:#e9f8fc;box-shadow:0 3px 10px rgba(6,121,166,.08)}.cert-option input{margin:2px 0 0;accent-color:#078cbf;flex:none}
.cert-evidence{margin:23px 0;padding:23px;border-radius:19px;border:1px solid #bfe2d7;background:linear-gradient(135deg,#f2fcf6,#f4fbff)}.cert-evidence h3{margin:7px 0}.cert-evidence p{color:#526d79;line-height:1.5}.cert-file{margin:5px 0 8px}.cert-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}.cert-check{padding:10px 12px;border-radius:11px;background:#fff;border:1px solid #d4e2e8;color:#476577;font-size:13px}.cert-check.ok{background:#e5f8ed;border-color:#a9dec1;color:#1e7247}.cert-check.bad{background:#fff2e9;border-color:#eec9ab;color:#8a5428}.cert-check strong{display:block;margin-bottom:2px}.cert-attest{display:grid;gap:10px;margin:16px 0}.cert-attest label{display:flex;gap:9px;align-items:start;font-weight:650;color:#2d536b}.cert-attest input{accent-color:#168f6e;margin-top:4px;flex:none}.cert-exam-actions,.cert-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}
.cert-result-summary{padding:27px;border-radius:20px;background:linear-gradient(120deg,#e9f8ff,#eafaf0);border:1px solid #bfe4e6}.cert-result-summary.fail{background:linear-gradient(120deg,#fff5e8,#fffaf3);border-color:#f0d2b0}.cert-result-summary h2{margin:7px 0;color:#153c59}.cert-result-summary p{margin:6px 0;color:#486879;line-height:1.5}.cert-score{font-size:39px;font-weight:850;color:#087ba4}.cert-result-summary.fail .cert-score{color:#b66330}.cert-result-summary dl{display:flex;flex-wrap:wrap;gap:10px 25px;margin:17px 0 0}.cert-result-summary dl div{min-width:120px}.cert-result-summary dt{font-size:12px;color:#5a7885}.cert-result-summary dd{margin:3px 0 0;font-weight:750;color:#19465f}.cert-result-details{margin:24px 0}.cert-result-details h3{color:#19455d}.cert-review-item{border:1px solid #d5e4ea;border-radius:13px;margin:9px 0;padding:13px 16px;line-height:1.45}.cert-review-item.correct{border-left:4px solid #42b873}.cert-review-item.incorrect{border-left:4px solid #d98248}.cert-review-item strong{color:#1b465f}.cert-review-item p{margin:6px 0;color:#496a7c}.cert-review-item small{color:#63808c}.cert-history{margin-top:35px}.cert-history .cert-section-heading{align-items:center}.cert-history-list{display:grid;gap:8px}.cert-history-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 15px;border:1px solid #dce9ed;border-radius:13px;background:#fbfeff}.cert-history-row strong,.cert-history-row small{display:block}.cert-history-row small{margin-top:3px;color:#67808b}.cert-history-row span{font-weight:800;color:#0a719e}.cert-empty{color:#66808d;margin:0}
@media(max-width:900px){.cert-track-grid{grid-template-columns:1fr 1fr}.cert-hero{grid-template-columns:1fr}.cert-hero-mark{display:none}}
@media(max-width:700px){.cert-hero{padding:27px}.cert-track-grid,.cert-info-grid,.cert-person,.cert-options,.cert-checks{grid-template-columns:1fr}.cert-exam,.cert-result,.cert-history{padding:20px}.cert-section-heading,.cert-exam-head{align-items:start;flex-direction:column}.cert-track{min-height:235px}.cert-progress-wrap>div:first-child{align-items:start;flex-direction:column}.cert-history-row{align-items:start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.cert-progress span{transition:none}}
.cert-person>.verify-card{max-width:760px;margin:28px auto;padding:30px;border-radius:24px;border:1px solid #d2e5ed;background:#fff;box-shadow:var(--lift)}.verify-card h2{color:#173c5a}.verify-card form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.verify-card .verify-result{margin-top:23px;padding:18px;border-radius:16px;background:#eef7fb;color:#34576b;line-height:1.5}.verify-result:empty{display:none}.verify-result.verified{background:#ecfaef;border:1px solid #b9e5c5}.verify-result.invalid{background:#fff1e9;border:1px solid #edc5a6;color:#804b2c}.verify-result h3{margin:0 0 10px;color:#1c7651}.verify-result dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.verify-result dt{font-size:12px;color:#587887}.verify-result dd{margin:3px 0 0;font-weight:750}.verify-result @media(max-width:700px){.verify-card{padding:20px}.verify-result dl{grid-template-columns:1fr}}
.local-registry-tools{margin-top:28px;padding-top:20px;border-top:1px solid #d5e7ed}.local-registry-tools h3{margin:0 0 8px;color:#19455d}.local-registry-tools p{color:#526f7e;line-height:1.5}.local-registry-tools .certificate-page{max-width:1040px}.certificate-sheet{margin:28px auto;padding:55px 64px;background:#fff;border:9px solid #0d8ec9;outline:2px solid #69c949;outline-offset:-21px;border-radius:22px;box-shadow:0 18px 55px rgba(11,67,112,.16);color:#153e5c;text-align:center}.certificate-top{display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid #c8e7ed;padding-bottom:22px;color:#1779a5;font-weight:800;text-align:right}.certificate-top img{width:170px;max-height:85px;object-fit:contain}.certificate-eyebrow{margin:34px 0 4px;color:#198c97;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.certificate-sheet h1{font-size:clamp(32px,5vw,54px);margin:8px 0 25px;color:#0d5e92}.certificate-intro{margin:10px 0;color:#65808e}.certificate-sheet h2{margin:8px 0 19px;font-size:clamp(26px,4vw,42px);color:#173b59}.certificate-sheet h3{font-size:clamp(20px,3vw,28px);color:#137f9d;margin:9px 0 22px}.certificate-score{padding:12px 16px;background:#eaf8f0;border-radius:15px;display:inline-block}.certificate-house{line-height:1.5}.certificate-bottom{margin:36px 0 16px;padding:23px;border-radius:18px;background:#f2faff;border:1px solid #cce8ef;display:flex;align-items:center;justify-content:space-between;gap:25px;text-align:left}.certificate-bottom>div:first-child{max-width:520px}.certificate-bottom p{line-height:1.5;color:#526e7f}.certificate-code{font-size:15px;font-weight:850;overflow-wrap:anywhere;color:#0e6d9b!important}.certificate-qr{min-width:155px;text-align:center}.certificate-qr svg{display:block;width:150px;height:150px;margin:auto;background:#fff}.certificate-qr small{display:block;color:#5b7786;margin-top:5px}.certificate-scope{font-size:12px;line-height:1.5;color:#67808d;border-top:1px solid #d8e9ec;padding-top:16px}.certificate-page .verify-result{max-width:700px;margin:32px auto}@media(max-width:700px){.certificate-sheet{padding:30px 24px}.certificate-top img{width:115px}.certificate-bottom{flex-direction:column;text-align:center}}
@media print{@page{size:A4;margin:12mm}.no-print{display:none!important}.certificate-page{max-width:none;padding:0!important}.certificate-sheet{margin:0;padding:22mm 15mm;border-width:6px;outline-offset:-15px;border-radius:0;box-shadow:none;page-break-inside:avoid}.certificate-bottom{break-inside:avoid}.certificate-sheet h1{font-size:37px}.certificate-sheet h2{font-size:32px}}
.cert-coupon{margin:20px 0;padding:22px;border:1px solid #a9ddbd;border-radius:18px;background:linear-gradient(135deg,#effdf5,#eff9ff);box-shadow:0 8px 24px rgba(145,216,47,.18)}.cert-coupon h3{margin:8px 0;color:#175e56}.cert-coupon p{margin:6px 0;color:#4c6d78;line-height:1.5}.cert-coupon-entry{display:flex;align-items:end;gap:12px;margin-top:15px}.cert-coupon-entry .cert-coupon-entry button{min-height:46px}.cert-issued-access{padding:12px 16px;border:1px solid #b7dec6;border-radius:12px;background:#eefbf2;color:#1d6347;font-weight:750;overflow-wrap:anywhere}@media(max-width:700px){.cert-coupon-entry{flex-direction:column;align-items:stretch}.cert-coupon-entry }

/* Barra de herramientas de estudio.html y certificado.html.
   La navegación la aporta assets/chrome.css; aquí quedan solo los
   controles propios de cada página (guardar estudio, imprimir). */
.topbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 11px max(24px, calc((100vw - 1200px) / 2));
  background: var(--pale); border-bottom: 1px solid var(--line);
}
.topbar .brand { display: none; }
.topbar .top-actions { width: 100%; justify-content: flex-end; }
.topbar #saveStatus { margin-right: auto; color: var(--muted); font-size: 13px; }
.topbar .button.ghost { background: var(--white); color: #253f5a; border-color: var(--line); }
.topbar .button.ghost:hover:not(:disabled) { background: var(--pale); border-color: #b9d2e8; }

@media print {
  .topbar, .no-print { display: none !important; }
}
