/* Certificate portal: extends the existing Sky Safety palette and Outfit typography. */
body:has(.certificate-portal) { background:#f4f8fb; }
.certificate-portal { padding-top:28px; padding-bottom:64px; }
.certificate-portal svg { width:21px; height:21px; flex-shrink:0; }
.cert-breadcrumb { display:flex; flex-wrap:wrap; gap:10px; font-size:13px; color:#536c81; margin-bottom:24px; overflow-wrap:anywhere; }
.cert-breadcrumb a:hover,.certificate-portal p a { color:var(--blue); text-decoration:underline; text-underline-offset:4px; }
.cert-demo-note { font-size:12px; color:#645127; background:#faf2df; padding:10px 16px; border-radius:6px; margin:16px 0 28px; }
.verify-heading { max-width:760px; margin:42px 0 32px; }
.verify-heading h1,.cert-intro h1 { font-size:clamp(30px,4vw,48px); line-height:1.13; letter-spacing:-.03em; font-weight:600; text-wrap:balance; }
.verify-heading>p { max-width:570px; margin-top:18px; color:var(--text); font-size:18px; }
.verify-search { background:white; padding:32px; border-radius:12px; border:1px solid #d7e3ed; max-width:850px; }
.verify-search h2 { font-size:23px; margin-bottom:20px; }
.verify-search label { display:block; font-weight:500; font-size:14px; margin-bottom:7px; }
.verify-controls { display:flex; gap:12px; }
.verify-controls input { min-width:0; flex:1; border:1px solid #9eb5c8; background:#fff; color:var(--ink); padding:14px 16px; font-size:16px; text-transform:uppercase; }
.verify-controls input::placeholder { color:#61768a; text-transform:none; }
#code-help { font-size:13px; color:#536c81; margin-top:10px; }
.demo-code { border:0; border-top:1px solid var(--line); background:transparent; color:var(--blue); margin-top:24px; padding:18px 0 0; font-size:14px; cursor:pointer; text-align:left; }
.demo-code span { margin-left:12px; }
.verify-help { margin-top:48px; }
.verify-help h2 { font-size:20px; margin-bottom:8px; }
.verify-help p { color:var(--text); max-width:70ch; }
.cert-search-result { background:white; border:1px solid #c4dcd2; border-radius:12px; overflow:hidden; margin-top:28px; }
.cert-status { display:flex; align-items:center; gap:9px; font-size:13px; font-weight:500; color:#166040; background:#eaf5ee; padding:14px 20px; }
.result-content { display:flex; gap:24px; justify-content:space-between; align-items:center; padding:24px; }
.result-content h2 { font-size:24px; margin-bottom:6px; }
.result-content small { display:block; margin-top:12px; color:#536c81; }
.cert-empty { padding:28px; background:white; border:1px solid #e0cccc; border-radius:12px; margin:24px 0; }
.cert-empty p { margin:12px 0 20px; max-width:70ch; overflow-wrap:anywhere; }
.cert-intro { display:flex; align-items:center; gap:20px; margin:32px 0; }
.cert-intro h1 { font-size:clamp(28px,3vw,38px); }
.cert-intro p { margin-top:12px; color:var(--text); font-size:15px; }
.cert-emblem { display:grid; place-items:center; width:72px; height:84px; background:#e0edf7; color:var(--blue); border-radius:12px; flex-shrink:0; }
.cert-emblem svg { width:40px; height:40px; }
.cert-new-search { display:flex; gap:10px; align-items:center; color:var(--blue); margin-left:auto; font-size:13px; }
.cert-layout { display:grid; grid-template-columns:minmax(0,1.85fr) minmax(270px,1fr); gap:28px; align-items:start; }
.cert-document { min-width:0; background:white; border:1px solid #d7e3ed; border-radius:12px; overflow:hidden; }
.cert-document-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 22px; }
.cert-document-bar h2 { font-size:15px; font-weight:500; }
.cert-document-bar>span { color:#536c81; font-size:11px; }
.diploma-frame { background:#e6edf3; padding:24px; }
.ss-diploma { background:white; padding:28px 30px; text-align:center; color:#16324f; border:1px solid #becfdd; border-top:5px solid #125eaa; }
.diploma-top { display:flex; align-items:center; justify-content:space-between; gap:16px; text-align:right; }
.diploma-top img { width:145px; max-height:50px; object-fit:contain; }
.diploma-top>span { font-size:8px; line-height:1.6; color:#536c81; }
.diploma-demo { margin:24px 0 8px; font-size:9px; color:#536c81; }
.ss-diploma h2 { font-size:clamp(30px,3.7vw,48px); font-weight:500; letter-spacing:-.025em; line-height:1.15; }
.ss-diploma>p { font-size:11px; }
.ss-diploma .diploma-award { margin-top:24px; }
.ss-diploma h3 { font-size:clamp(20px,2.4vw,30px); color:var(--blue); line-height:1.2; margin:10px 0 18px; font-weight:500; overflow-wrap:anywhere; }
.ss-diploma h4 { font-size:18px; line-height:1.35; margin:10px auto 14px; max-width:420px; font-weight:500; text-wrap:balance; }
.diploma-context { color:#536c81; line-height:1.8; }
.diploma-facts { display:flex; justify-content:center; gap:32px; margin:22px 0; font-size:10px; }
.diploma-facts span,.diploma-issuer span,.diploma-issuer small { display:block; }
.diploma-facts span { color:#536c81; margin-bottom:3px; }
.diploma-bottom { display:flex; justify-content:space-between; align-items:end; gap:20px; padding-top:12px; }
.diploma-issuer { font-size:10px; text-align:left; padding-top:10px; border-top:1px solid #a6bbcc; }
.diploma-issuer small { margin-top:5px; color:#536c81; font-size:8px; }
.diploma-qr { max-width:145px; font-size:8px; overflow-wrap:anywhere; }
#cert-qr { display:flex; justify-content:center; margin-bottom:6px; }
#cert-qr svg { width:70px; height:70px; }
.cert-toolbar { padding:20px; display:flex; gap:10px; flex-wrap:wrap; }
.cert-toolbar .btn { font-size:12px; }
#cert-action-msg { width:100%; font-size:12px; color:var(--text); overflow-wrap:anywhere; }
#cert-action-msg:empty { display:none; }
.cert-information { background:white; border:1px solid #d7e3ed; border-radius:12px; overflow:hidden; }
.cert-information h2 { font-size:19px; padding:22px 24px 0; }
.cert-information dl { margin:0; padding:6px 24px 0; }
.cert-information dl>div { padding:12px 0; border-bottom:1px solid var(--line); }
.cert-information dl>div:last-child { border:0; }
.cert-information dt { font-size:12px; color:#536c81; margin-bottom:3px; }
.cert-information dd { margin:0; font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.cert-privacy { margin:14px 24px 24px; font-size:11px; color:#536c81; }
.cert-learning { display:grid; grid-template-columns:1fr 1fr; gap:40px; padding:40px 0; margin-top:8px; border-bottom:1px solid #d3e0ea; }
.cert-learning h2,.cert-syllabus h2 { font-size:23px; line-height:1.3; margin-bottom:12px; font-weight:500; }
.cert-learning p,.cert-syllabus p { color:var(--text); font-size:14px; max-width:62ch; }
.cert-learning-facts { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.cert-learning-facts>div { border-top:2px solid #125eaa; padding-top:14px; }
.cert-learning-facts span,.cert-learning-facts small { display:block; font-size:12px; color:#536c81; }
.cert-learning-facts strong { display:block; font-size:30px; font-weight:500; margin:4px 0; font-variant-numeric:tabular-nums; }
.cert-syllabus { display:grid; grid-template-columns:1fr 1fr; gap:40px; padding:36px 0; }
.cert-syllabus ol { list-style:none; margin:0; padding:0; }
.cert-syllabus li { display:flex; gap:14px; padding:14px 0; border-bottom:1px solid #d3e0ea; font-size:14px; }
.cert-syllabus li svg { color:var(--blue); }
.cert-teacher { margin-top:24px; }
.cert-bottom-help { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; border-top:1px solid #d3e0ea; padding-top:24px; font-size:13px; color:var(--text); }
.cert-bottom-help a { display:flex; align-items:center; gap:8px; color:var(--blue); }
@media(max-width:900px) {
 .cert-layout { grid-template-columns:1fr; }
 .cert-new-search { display:none; }
 .cert-information dl { display:grid; grid-template-columns:1fr 1fr; gap:0 24px; }
 .cert-learning,.cert-syllabus { gap:24px; }
}
@media(max-width:600px) {
 .certificate-portal { padding-top:20px; }
 .verify-heading { margin-top:28px; }
 .verify-search { padding:22px; }
 .verify-controls,.result-content { flex-direction:column; align-items:stretch; }
 .verify-controls input { width:100%; }
 .cert-intro { align-items:flex-start; gap:12px; }
 .cert-emblem { width:42px; height:50px; }
 .cert-emblem svg { width:27px; height:27px; }
 .cert-intro h1 { font-size:27px; }
 .cert-intro p { font-size:13px; }
 .cert-document-bar { padding:14px; flex-wrap:wrap; }
 .diploma-frame { padding:12px; }
 .ss-diploma { padding:20px 14px; }
 .diploma-top img { width:110px; }
 .ss-diploma h4 { font-size:16px; }
 .diploma-facts { gap:18px; }
 .diploma-bottom { gap:12px; }
 .diploma-issuer { font-size:9px; }
 .diploma-qr { max-width:100px; }
 .cert-toolbar { padding:16px; }
 .cert-toolbar button { width:100%; min-height:44px; }
 .cert-information dl,.cert-learning,.cert-syllabus { grid-template-columns:1fr; }
 .cert-learning { padding-top:28px; }
 .cert-learning-facts strong { font-size:27px; }
}
@media print {
 @page { size:A4 landscape; margin:12mm; }
 body:has(.certificate-portal) { background:#fff; }
 #site-header,#site-footer,.no-print,.wa { display:none!important; }
 .certificate-portal { width:100%; padding:0; margin:0; }
 .cert-layout { display:block; }
 .cert-document { border:0; border-radius:0; overflow:visible; }
 .diploma-frame { padding:0; background:white; }
 .ss-diploma { max-width:260mm; margin:auto; padding:9mm 15mm; break-inside:avoid; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
 .ss-diploma h2 { font-size:40px; }
 .ss-diploma h3 { font-size:28px; }
 .diploma-demo { margin-top:12px; }
 .ss-diploma .diploma-award { margin-top:16px; }
}
@media(prefers-reduced-motion:reduce) { .certificate-portal * { scroll-behavior:auto; transition:none; } }
/* Grouped certificate presentation, based on the supplied reference screenshots. */
.cert-hero { display:grid; grid-template-columns:145px minmax(0,1fr) 130px; align-items:center; gap:28px; padding:40px 30px; margin:24px 0 32px; border:1px solid #cedeea; border-radius:16px; background:#edf5fb; }
.cert-hero-logo { width:145px; }
.cert-hero-copy { text-align:center; }
.cert-hero h1 { font-size:22px; font-weight:500; line-height:1.4; }
.cert-hero-course { color:var(--blue); font-size:clamp(24px,3vw,36px); font-weight:600; line-height:1.2; margin:14px auto 28px; text-wrap:balance; }
.cert-hero-boxes { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; text-align:left; }
.cert-hero-boxes>div { padding:12px 16px; border:1px solid #c3d6e5; border-radius:12px; background:#fff; }
.cert-hero-boxes span { display:block; color:#536c81; font-size:11px; margin-bottom:3px; }
.cert-hero-boxes strong { display:block; font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.cert-hero-seal { color:var(--blue); text-align:center; }
.cert-hero-seal svg { display:block; width:64px; height:64px; margin:0 auto 10px; }
.cert-hero-seal span { font-size:11px; }
.cert-document-bar h2 { display:flex; align-items:center; gap:8px; }
.cert-achievements { margin:42px 0 28px; }
.cert-achievements>h2 { font-size:27px; font-weight:500; text-align:center; margin-bottom:26px; }
.cert-achievement-box { display:grid; grid-template-columns:.8fr 1fr 1.25fr; align-items:stretch; gap:24px; padding:28px; background:white; border:1px solid #d7e3ed; border-radius:16px; }
.cert-achievement-mark { color:var(--blue); display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; text-align:center; font-size:13px; }
.cert-achievement-mark svg { width:85px; height:85px; }
.cert-score-box { padding:24px; border-radius:12px; background:#edf5fb; display:flex; flex-direction:column; justify-content:center; }
.cert-score-box>span { color:var(--text); font-size:14px; }
.cert-score-box>strong { display:block; font-size:36px; font-weight:500; margin:6px 0; font-variant-numeric:tabular-nums; }
.cert-score-box>small { color:#536c81; }
.cert-feedback-box { background:#f1f7f4; padding:24px; border-radius:12px; }
.cert-grade { display:inline-block; background:#d8eee0; color:#166040; border-radius:20px; padding:5px 12px; font-size:13px; font-weight:500; }
.cert-feedback-box p { margin-top:14px; color:var(--text); font-size:14px; }
.cert-time-box { background:white; border:1px solid #d7e3ed; border-radius:16px; padding:28px; margin-bottom:24px; }
.cert-time-box h2 { font-size:23px; font-weight:500; margin-bottom:18px; }
.cert-time-box>div { display:inline-flex; flex-direction:column; gap:6px; padding:18px 24px; background:#edf5fb; border-radius:12px; }
.cert-time-box span,.cert-time-box small { font-size:13px; color:#536c81; }
.cert-time-box strong { font-size:23px; font-weight:500; }
.cert-time-box>p { color:#536c81; font-size:12px; margin-top:16px; }
@media(max-width:900px) { .cert-hero { grid-template-columns:1fr; gap:22px; } .cert-hero-logo { margin:auto; } .cert-hero-seal { display:none; } .cert-achievement-box { grid-template-columns:1fr 1fr; } .cert-achievement-mark { display:none; } }
@media(max-width:600px) { .cert-hero { padding:26px 20px; } .cert-hero h1 { font-size:19px; } .cert-hero-boxes { flex-direction:column; } .cert-achievements>h2 { font-size:23px; } .cert-achievement-box { grid-template-columns:1fr; padding:18px; gap:16px; } .cert-time-box { padding:22px; } }

.certificate-site-header { background:#fff; border-bottom:1px solid #d7e3ed; }
.certificate-site-header>.wrap { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:84px; }
.certificate-site-header img { width:160px; height:52px; object-fit:contain; }
.certificate-site-header nav { display:flex; align-items:center; gap:24px; font-size:14px; color:var(--blue); }
.cert-status-expired { background:#fff1dc; color:#795009; }
.ss-diploma .diploma-title { margin:28px 0 8px; }
.diploma-signature { max-height:52px; max-width:180px; margin-bottom:6px; }
.diploma-issuer:has(.diploma-signature) { border:0; }
@media(max-width:600px) { .certificate-site-header nav { gap:12px; font-size:12px; } .certificate-site-header img { width:110px; } .diploma-facts { flex-wrap:wrap; } }
@media print { .certificate-site-header { display:none; } }

.cert-hero-logo { height:auto; max-height:70px; object-fit:contain; }

/* ---- Logros con ilustraciones ---- */
.art { display:block; flex:none; }
.cert-achievement-box { grid-template-columns:.75fr 1.1fr 1.15fr; }
.cert-achievement-mark { font-weight:500; }
.cert-achievement-mark .art-seal { width:132px; height:132px; filter:drop-shadow(0 8px 14px rgba(18,94,170,.18)); }
.cert-ach-stats { display:grid; gap:14px; }
.cert-ach-card { display:flex; align-items:center; gap:18px; padding:18px 20px; border-radius:14px; background:linear-gradient(135deg,#f3f8fd,#e8f2fb); border:1px solid #dce9f4; }
.cert-ach-card .art { width:72px; height:66px; }
.cert-ach-card .art-medal, .cert-ach-card .art-calendar { width:66px; height:66px; }
.cert-ach-card span { display:block; font-size:13px; color:#536c81; }
.cert-ach-card strong { display:block; font-size:30px; font-weight:600; line-height:1.15; color:var(--ink); font-variant-numeric:tabular-nums; }
.cert-ach-card strong small { font-size:16px; font-weight:500; color:#536c81; }
.cert-ach-card strong.is-date { font-size:19px; }
.cert-ach-card em { display:block; font-style:normal; font-size:12.5px; color:#6d8092; margin-top:2px; }
.cert-feedback-box { display:flex; flex-direction:column; justify-content:center; border:1px solid #d5eadf; }
.cert-feedback-box.is-top { background:linear-gradient(135deg,#fff9e6,#f1f7f4); border-color:#f3e2a8; }
.cert-feedback-box.is-top .cert-grade { background:#ffe9a3; color:#7a5200; }
.cert-feedback-box p { line-height:1.6; }
.cert-score-bar { position:relative; height:10px; border-radius:5px; background:#e3ebf2; margin-top:20px; }
.cert-score-bar span { position:absolute; inset:0 auto 0 0; border-radius:5px; background:linear-gradient(90deg,#2f8de4,var(--blue)); }
.cert-score-bar i { position:absolute; top:-4px; width:2px; height:18px; background:#16324f; border-radius:1px; }
.cert-score-legend { display:flex; justify-content:space-between; margin-top:6px; font-size:11.5px; color:#6d8092; }
.cert-time-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.cert-time-box>.cert-time-grid>div { display:flex; flex-direction:row; align-items:center; gap:16px; padding:16px 20px; background:#f3f8fd; border:1px solid #dce9f4; border-radius:14px; }
.cert-time-card .art { width:64px; height:64px; }
.cert-time-card span { display:block; font-size:13px; color:#536c81; }
.cert-time-card strong { display:block; font-size:20px; font-weight:600; color:var(--ink); }
.cert-syllabus li { align-items:center; }
.cert-syllabus li .art-module { width:36px; height:36px; }
.cert-syllabus li span small { display:block; font-size:11.5px; color:#6d8092; text-transform:uppercase; letter-spacing:.05em; }
@media(max-width:900px) { .cert-achievement-box { grid-template-columns:1fr 1fr; } }
@media(max-width:600px) { .cert-achievement-box { grid-template-columns:1fr; } .cert-ach-card strong { font-size:26px; } .cert-ach-card .art { width:58px; height:54px; } }
.cert-time-box>.cert-time-grid { display:grid; flex-direction:unset; padding:0; background:none; border-radius:0; gap:14px; }
.cert-feedback-box .cert-grade { align-self:flex-start; }
