
:root{
  --navy:#123b55;
  --navy2:#0b2c41;
  --gold:#d8aa2b;
  --gold2:#f1d568;
  --green:#158a61;
  --ink:#172033;
  --muted:#697386;
  --soft:#f4f7fb;
  --line:#dce4ef;
}
*{box-sizing:border-box}
body{
  margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);background:linear-gradient(145deg,#eef3fb 0%,#fbfcff 58%,#f6f0dc 100%);
  min-height:100vh;
}
.topbar{height:8px;background:linear-gradient(90deg,var(--navy),var(--gold),var(--navy))}
header{
  background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid rgba(18,59,85,.12);
}
.wrap{max-width:1040px;margin:auto;padding:0 22px}
.brand{display:flex;align-items:center;justify-content:space-between;padding:14px 0;min-height:86px}
.brandmark{display:flex;align-items:center;gap:13px;text-decoration:none;color:inherit;min-width:0}
.seal{width:46px;height:46px;border:4px solid var(--gold);border-radius:50%;display:grid;place-items:center;font-weight:900;color:var(--navy);box-shadow:inset 0 0 0 3px white,0 5px 14px #123b5520}
.brand strong{display:block;color:var(--navy);font-size:18px}
.brand span{font-size:12px;color:var(--muted)}
.secure{font-size:13px;color:var(--green);font-weight:700}
.brandlogo{width:260px;max-width:42vw;height:auto;display:block;object-fit:contain}
.brandtext{display:none}

main{padding:58px 0 80px}
.hero{text-align:center;max-width:780px;margin:0 auto 34px}
.eyebrow{letter-spacing:.22em;text-transform:uppercase;color:var(--gold);font-weight:800;font-size:12px}
h1{font-family:Georgia,serif;color:var(--navy2);font-size:clamp(34px,5vw,56px);margin:10px 0 14px}
.hero p{color:var(--muted);font-size:18px;line-height:1.6}
.card{
  background:white;border:1px solid var(--line);border-radius:24px;box-shadow:0 22px 70px rgba(24,52,85,.13);
  overflow:hidden;
}
.searchbox{padding:28px;display:grid;grid-template-columns:1fr auto;gap:12px}
input{
  width:100%;border:1px solid #cfd9e7;border-radius:14px;padding:16px 18px;font-size:16px;outline:none
}
input:focus{border-color:var(--gold);box-shadow:0 0 0 4px #d8aa2b20}
button,.btn{
  border:0;border-radius:14px;padding:15px 22px;background:var(--navy);color:white;font-weight:800;font-size:15px;
  cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px
}
button:hover,.btn:hover{background:var(--navy2)}
.help{padding:0 28px 28px;color:var(--muted);font-size:13px}
.result{margin-top:18px;padding:20px;border-radius:16px;background:#f7fafc;border:1px solid var(--line);display:none}
.result a{color:var(--navy);font-weight:800}
.cert{position:relative}
.cert:before{content:"";display:block;height:9px;background:linear-gradient(90deg,var(--navy),var(--gold))}
.certbody{padding:42px}
.statusrow{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.badge{background:#e4f5ee;color:var(--green);padding:9px 14px;border-radius:999px;font-weight:900;font-size:14px}
.check{
  width:68px;height:68px;border-radius:50%;border:4px solid var(--green);display:grid;place-items:center;color:var(--green);
  font-size:36px;font-weight:900
}
.name{font-family:Georgia,serif;color:var(--navy2);font-size:clamp(32px,5vw,52px);margin:8px 0}
.course{font-size:22px;font-weight:900;color:var(--navy)}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:30px 0}
.item{padding:18px;background:var(--soft);border-radius:16px}
.label{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:800;margin-bottom:7px}
.value{font-weight:800;line-height:1.4}
.serial{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.actions{display:flex;flex-wrap:wrap;gap:12px}
.btn.secondary{background:white;color:var(--navy);border:1px solid var(--navy)}
.notice{margin-top:24px;border-left:4px solid var(--gold);padding:14px 18px;background:#fffaf0;color:#665727;border-radius:0 12px 12px 0}
footer{text-align:center;color:var(--muted);font-size:13px;padding:28px}
@media(max-width:700px){
  .brand{min-height:72px;padding:10px 0}
  .brandlogo{width:190px;max-width:72vw}
  .searchbox{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .certbody{padding:28px 22px}
  .statusrow{align-items:center}
  .secure{display:none}
}


/* Corrección definitiva del encabezado - 20260729-1538 */
header .brand {
  min-height: 72px !important;
  height: auto !important;
  padding: 10px 0 !important;
}
header .brandmark {
  width: auto !important;
  max-width: 280px !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
}
header img.brandlogo {
  display: block !important;
  width: 220px !important;
  max-width: 220px !important;
  height: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
header .secure {
  margin-left: auto !important;
  white-space: nowrap !important;
}
@media (max-width: 700px) {
  header .brand {
    min-height: 62px !important;
    padding: 8px 0 !important;
  }
  header .brandmark {
    max-width: 185px !important;
  }
  header img.brandlogo {
    width: 175px !important;
    max-width: 175px !important;
    height: 42px !important;
    max-height: 42px !important;
  }
}
