/* ═══════════════════════════════════════════════
   PREICFES GRUPO GERT — CSS Principal
   Paleta: Verde esmeralda (#1D9E75) + Ámbar (#EF9F27)
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --brand:        #1D9E75;
  --brand-dark:   #0F6E56;
  --brand-darker: #085041;
  --brand-light:  #E1F5EE;
  --brand-mid:    #9FE1CB;
  --accent:       #EF9F27;
  --accent-dark:  #BA7517;
  --accent-light: #FAEEDA;
  --red:          #E24B4A;
  --blue:         #378ADD;
  --purple:       #7F77DD;
  --text:         #2C2C2A;
  --text-muted:   #5F5E5A;
  --text-hint:    #888780;
  --bg:           #ffffff;
  --bg-2:         #F1EFE8;
  --bg-3:         #f7f6f3;
  --border:       rgba(0,0,0,0.09);
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 2px 12px rgba(0,0,0,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg-3); min-height: 100vh; line-height: 1.6; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.bg-white { background: var(--bg); }

.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .18s; font-family: 'DM Sans', sans-serif; border: none; text-decoration: none; white-space: nowrap; }
.btn-lg { padding: 12px 26px; font-size: 15px; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-full { width: 100%; justify-content: center; padding: 12px; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-danger { background: #FCEBEB; color: #A32D2D; border: 1px solid #F09595; }
.btn-danger:hover { background: #F7C1C1; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.navbar { background: var(--brand-darker); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 38px; height: 38px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.brand-icon.sm { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
.brand-logo-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px; }
.brand-logo-icon.sm { width: 28px; height: 28px; border-radius: 7px; }
.brand-logo-full { height: 34px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .b1 { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: #fff; }
.brand-text .b2 { font-size: 10px; color: var(--brand-mid); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; gap: 1.2rem; align-items: center; }
.nav-links a { font-size: 13px; color: rgba(255,255,255,.78); cursor: pointer; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

.hero { background: var(--brand-darker); padding: 4.5rem 1.5rem 0; position: relative; overflow: hidden; }
.hero-bg-circle { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--brand-dark); opacity: .45; top: -100px; right: -80px; }
.hero-bg-circle2 { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--accent); opacity: .12; bottom: 40px; left: 5%; }
.hero-inner { display: grid; grid-template-columns: 1fr 240px; gap: 2.5rem; align-items: flex-end; position: relative; z-index: 1; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); color: var(--brand-mid); font-size: 12px; font-weight: 500; padding: 6px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,.15); margin-bottom: 1.2rem; }
.hero-content h1 { font-family: 'Fraunces', serif; font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.12; color: #fff; margin-bottom: 1rem; }
.hero-content h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: .95rem; color: rgba(255,255,255,.72); max-width: 500px; line-height: 1.75; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-card-mock { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 14px 14px 0 0; padding: 1.2rem 1.5rem; align-self: flex-end; }
.hc-label { font-size: 10px; color: var(--brand-mid); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.hc-score { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 700; color: #fff; }
.hc-sub { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 2px; }
.hc-bars { display: flex; gap: 5px; align-items: flex-end; margin-top: .9rem; height: 40px; }
.hc-bar { flex: 1; background: var(--brand-mid); border-radius: 3px 3px 0 0; }
.hc-legend { display: flex; justify-content: space-between; font-size: 9px; color: rgba(255,255,255,.45); margin-top: 4px; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--brand); }
.stat-item { padding: 1.3rem; text-align: center; border-right: 1px solid rgba(255,255,255,.15); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Fraunces', serif; font-size: 1.9rem; font-weight: 700; color: #fff; }
.stat-lbl { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 2px; }

.countdown-strip { background: var(--accent-light); border-top: .5px solid rgba(239,159,39,.3); border-bottom: .5px solid rgba(239,159,39,.3); padding: 1.4rem 1.5rem; text-align: center; }
.cd-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .8rem; }
.cd-boxes { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cd-box { background: #fff; border: 1px solid rgba(239,159,39,.4); border-radius: 8px; padding: .6rem 1.2rem; text-align: center; min-width: 72px; }
.cd-num { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 700; color: var(--accent-dark); }
.cd-unit { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

.section { padding: 4rem 1.5rem; }
.sec-tag { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .4rem; }
.sec-h2 { font-family: 'Fraunces', serif; font-size: 1.8rem; font-weight: 600; color: var(--text); margin-bottom: .6rem; line-height: 1.2; }
.sec-sub { font-size: .92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; max-width: 560px; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.feat-card { background: var(--bg); border: .5px solid var(--border); border-radius: var(--radius); padding: 1.4rem; transition: border-color .2s, transform .2s; }
.feat-card:hover { border-color: var(--brand-mid); transform: translateY(-2px); }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 1rem; }
.fi-green { background: var(--brand-light); color: var(--brand-dark); }
.fi-amber { background: var(--accent-light); color: var(--accent-dark); }
.fi-blue { background: #E6F1FB; color: #185FA5; }
.fi-purple { background: #EEEDFE; color: #534AB7; }
.feat-card h3 { font-size: 14px; font-weight: 600; margin-bottom: .4rem; }
.feat-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.mat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 1rem; }
.mat-card { border: 1.5px solid; border-radius: 10px; padding: .9rem 1rem; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all .18s; text-decoration: none; }
.mat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mat-card i { font-size: 20px; }
.mat-card span { font-size: 13px; font-weight: 500; }
.mc-mat { background: #E6F1FB; border-color: #B5D4F4; color: #0C447C; }
.mc-len { background: #EEEDFE; border-color: #CECBF6; color: #3C3489; }
.mc-cien { background: var(--brand-light); border-color: var(--brand-mid); color: var(--brand-darker); }
.mc-soc { background: var(--accent-light); border-color: #FAC775; color: #633806; }
.mc-ing { background: #FAECE7; border-color: #F5C4B3; color: #712B13; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.about-block { background: var(--bg); border: .5px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.about-block h3 { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 600; margin-bottom: .8rem; color: var(--brand-dark); display: flex; align-items: center; gap: 8px; }
.about-block p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.val-list { list-style: none; margin-top: .8rem; }
.val-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-muted); padding: 6px 0; border-bottom: .5px solid var(--border); }
.val-list li:last-child { border-bottom: none; }
.val-list li i { color: var(--brand); font-size: 15px; margin-top: 1px; flex-shrink: 0; }

.cta-section { background: var(--brand); padding: 3.5rem 1.5rem; text-align: center; }
.cta-section h2 { font-family: 'Fraunces', serif; font-size: 1.9rem; font-weight: 700; color: #fff; margin-bottom: .8rem; }
.cta-section p { color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: 1.5rem; }

.footer { background: var(--brand-darker); color: rgba(255,255,255,.65); padding: 2.5rem 1.5rem 1rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: .8rem; }
.footer-brand span { font-family: 'Fraunces', serif; font-size: 14px; color: #fff; font-weight: 700; }
.footer-desc { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.5); }
.footer h4 { font-family: 'Fraunces', serif; font-size: 13px; color: #fff; margin-bottom: .8rem; }
.footer a { display: block; margin-bottom: .4rem; font-size: 12px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .18s; }
.footer a:hover { color: #fff; }
.footer-bottom { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; font-size: 11px; flex-wrap: wrap; gap: .5rem; }

.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 4px 16px rgba(37,211,102,.4); text-decoration: none; z-index: 999; transition: transform .2s, box-shadow .2s; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.5); }

.auth-page { min-height: 100vh; background: var(--bg-3); padding: 2rem 1rem; }
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: var(--bg); border: .5px solid var(--border); border-radius: 16px; padding: 2.2rem; box-shadow: var(--shadow); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 1.5rem; cursor: pointer; text-decoration: none; }
.auth-brand-inner { display: flex; align-items: center; gap: 8px; }
.auth-brand-inner .b1 { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: var(--brand-dark); }
.auth-brand-inner .b2 { font-size: 10px; color: var(--text-muted); }
.auth-card h2 { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; margin-bottom: .2rem; }
.auth-card .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 1.4rem; }
.form-group { margin-bottom: .9rem; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--text-muted); display: block; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--bg-3); transition: border .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-link { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: .9rem; }
.auth-link a { color: var(--brand); cursor: pointer; font-weight: 500; text-decoration: none; }
.auth-link a:hover { text-decoration: underline; }
.divider { text-align: center; font-size: 11px; color: var(--text-hint); margin: .9rem 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: .5px; background: var(--border); }
.divider::before { left: 0; } .divider::after { right: 0; }
.alert-info { background: var(--brand-light); border: 1px solid var(--brand-mid); border-radius: 8px; padding: .8rem 1rem; font-size: 12px; color: var(--brand-dark); margin-bottom: 1rem; display: flex; gap: 8px; align-items: flex-start; }
.alert-error { background: #FCEBEB; border: 1px solid #F09595; border-radius: 8px; padding: .8rem 1rem; font-size: 12px; color: #A32D2D; margin-bottom: 1rem; display: none; align-items: flex-start; gap: 8px; }
.alert-error.show { display: flex; }

.dash-layout { display: grid; grid-template-columns: 215px 1fr; min-height: calc(100vh - 64px); }
.sidebar { background: var(--bg); border-right: .5px solid var(--border); padding: 1.2rem .8rem; }
.sb-brand { display: flex; align-items: center; gap: 7px; padding: .3rem .5rem; margin-bottom: .5rem; cursor: pointer; text-decoration: none; }
.sb-brand span { font-family: 'Fraunces', serif; font-size: 12px; font-weight: 700; color: var(--brand-dark); }
.sb-section { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-hint); padding: 6px 10px; margin-top: .8rem; }
.sb-menu { list-style: none; }
.sb-menu li a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--text-muted); cursor: pointer; transition: all .18s; text-decoration: none; }
.sb-menu li a:hover { background: var(--bg-2); color: var(--text); }
.sb-menu li a.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 500; }
.sb-menu li a i { font-size: 15px; }
.dash-main { padding: 1.8rem; background: var(--bg-3); }
.dash-hdr { margin-bottom: 1.5rem; }
.dash-hdr h2 { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; }
.dash-hdr p { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1.5rem; }
.metric { background: var(--bg); border: .5px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.metric-lbl { font-size: 11px; color: var(--text-muted); margin-bottom: .4rem; }
.metric-val { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.metric-hint { font-size: 11px; color: var(--brand); margin-top: 3px; }

.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.4rem; }
.card { background: var(--bg); border: .5px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.card-h { font-size: 13px; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 6px; }
.card-h i { color: var(--brand); font-size: 15px; }

.sim-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: .5px solid var(--border); }
.sim-row:last-child { border-bottom: none; }
.sim-name { font-size: 13px; font-weight: 500; }
.sim-meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.sim-score { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; }
.sc-g { color: var(--brand); } .sc-a { color: var(--accent-dark); } .sc-r { color: var(--red); }

.prg-row { margin-bottom: 10px; }
.prg-lbl { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.prg-bar { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.prg-fill { height: 100%; border-radius: 3px; transition: width .7s ease; }

.start-btn { background: var(--brand-light); border: .5px solid var(--border); border-radius: 8px; padding: 1rem; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all .18s; margin-bottom: 8px; text-decoration: none; }
.start-btn:hover { background: var(--brand); color: #fff; }
.start-btn:hover .start-meta { color: rgba(255,255,255,.7); }
.start-btn:hover .start-icon { background: rgba(255,255,255,.2); }
.start-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--brand); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-size: 16px; }
.start-name { font-size: 13px; font-weight: 600; }
.start-meta { font-size: 11px; color: var(--text-muted); }

.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.bg-green { background: #EAF3DE; color: #27500A; }
.bg-amber { background: var(--accent-light); color: #633806; }
.bg-blue { background: #E6F1FB; color: #0C447C; }
.bg-red { background: #FCEBEB; color: #A32D2D; }

.quiz-page { padding: 1.8rem; background: var(--bg-3); min-height: calc(100vh - 64px); }
.quiz-wrap { max-width: 620px; margin: 0 auto; }
.quiz-hdr { background: var(--brand-darker); color: #fff; padding: 1rem 1.4rem; border-radius: 12px 12px 0 0; display: flex; justify-content: space-between; align-items: center; }
.quiz-area { font-size: 11px; opacity: .7; margin-bottom: 2px; }
.quiz-prog { font-weight: 600; font-size: 14px; }
.quiz-timer { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 700; background: rgba(255,255,255,.15); padding: 4px 12px; border-radius: 6px; }
.quiz-timer.warning { background: var(--accent); }
.quiz-body { background: var(--bg); border: .5px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; padding: 1.4rem; }
.quiz-q { font-size: 15px; font-weight: 500; line-height: 1.7; margin-bottom: 1.3rem; }
.quiz-opts { list-style: none; }
.quiz-opt { padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; font-size: 14px; transition: all .18s; display: flex; align-items: center; gap: 10px; }
.quiz-opt:hover:not(.sel):not(.ok):not(.bad) { border-color: var(--brand); background: var(--brand-light); }
.quiz-opt.sel { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.quiz-opt.ok { border-color: var(--brand); background: var(--brand-light); color: var(--brand-dark); }
.quiz-opt.bad { border-color: var(--red); background: #FCEBEB; color: #501313; }
.quiz-opt.disabled { cursor: default; }
.opt-letter { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.3rem; flex-wrap: wrap; gap: 8px; }
.qpills { display: flex; gap: 4px; flex-wrap: wrap; }
.qpill { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); border: .5px solid var(--border); font-size: 9px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 600; }
.qpill.done { background: var(--brand); color: #fff; border-color: var(--brand); }
.qpill.curr { background: var(--accent); color: #fff; border-color: var(--accent); }
.explain-box { background: var(--brand-light); border: 1px solid var(--brand-mid); border-radius: 8px; padding: .9rem; font-size: 13px; color: var(--brand-dark); margin-top: .8rem; display: none; line-height: 1.6; }
.explain-box.show { display: block; }
.quiz-progress-bar { height: 4px; background: rgba(255,255,255,.15); margin-top: 8px; border-radius: 2px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; }

.cert-page { padding: 1.8rem; background: var(--bg-3); min-height: calc(100vh - 64px); }
.cert-wrap { max-width: 540px; margin: 0 auto; }
.cert { background: var(--bg); border: 2.5px solid var(--brand); border-radius: 16px; padding: 2.5rem; text-align: center; position: relative; box-shadow: var(--shadow); }
.cert::before { content: ''; position: absolute; inset: 10px; border: 1px dashed var(--brand-mid); border-radius: 11px; pointer-events: none; }
.cert-brand { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 1.2rem; }
.cert-brand-txt .name { font-family: 'Fraunces', serif; font-size: 14px; font-weight: 700; color: var(--brand-dark); }
.cert-brand-txt .tagline { font-size: 10px; color: var(--text-muted); }
.cert h2 { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.cert-student { font-family: 'Fraunces', serif; font-size: 1.9rem; font-weight: 700; color: var(--brand-dark); border-bottom: 2px solid var(--brand-mid); padding-bottom: 8px; margin: 1rem 0; }
.cert-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.cert-score { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 700; color: var(--brand-darker); margin: 1rem 0 .2rem; }
.cert-score span { font-size: .95rem; font-weight: 400; color: var(--text-muted); }
.cert-date { font-size: 11px; color: var(--text-hint); margin-top: .5rem; }
.cert-seal { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; margin: .8rem auto 0; color: #fff; font-size: 22px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { text-align: left; padding: 9px 10px; font-size: 11px; font-weight: 500; color: var(--text-muted); border-bottom: .5px solid var(--border); background: var(--bg-2); }
.tbl td { padding: 9px 10px; border-bottom: .5px solid var(--border); }
.tbl tr:hover td { background: var(--bg-2); }
.tab-bar { display: flex; gap: 3px; border-bottom: .5px solid var(--border); margin-bottom: 1.2rem; }
.tab { padding: 7px 14px; font-size: 12px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-muted); transition: all .18s; }
.tab.active { color: var(--brand-dark); border-bottom-color: var(--brand); font-weight: 500; }
.tab:hover:not(.active) { color: var(--text); }
.action-row { display: flex; gap: 5px; }

.loading { display: flex; align-items: center; justify-content: center; padding: 2rem; color: var(--text-muted); font-size: 13px; gap: 8px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; opacity: .5; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--brand-darker); padding: 1rem 1.5rem; gap: .5rem; z-index: 999; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card-mock { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .cards2 { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
