/* ==========================================================================
   Academia EARS® LMS — Frontend
   Identidad visual propia: navy profundo + violeta neón como acento de marca,
   más los 4 metales de nivel (bronce/plata/oro/platino) para badges y
   progreso. Tipografía Space Grotesk (títulos) / Inter (cuerpo) / JetBrains
   Mono (eyebrows, código, numeración) — según guía de marca ITmedios.
   Todo scopeado bajo .ae-scope para no chocar con el theme / Elementor.
   ========================================================================== */

.ae-scope {
  --ae-navy:#080b14; --ae-navy2:#0d1220; --ae-panel:#141b2e; --ae-panel2:#1c2540;
  --ae-violet:#b14eff; --ae-violet-cl:#d9a8ff; --ae-cyan:#00d9ff; --ae-cyan-cl:#7fe9ff;
  --ae-white:#f0f2f5; --ae-gray-cl:#b8bcc8; --ae-gray-md:#8b93a7; --ae-gray-dim:#4c5468;
  --ae-verde:#27ae60; --ae-verde-cl:#6fe3a0; --ae-rojo:#e5484d; --ae-rojo-cl:#ff8a8f; --ae-ambar:#f39c12;
  --ae-bronce:#cd7f32; --ae-bronce-cl:#e3a768;
  --ae-plata:#a8b0bd; --ae-plata-cl:#dbe0e8;
  --ae-oro:#e8b923; --ae-oro-cl:#f5d668;
  --ae-platino:#c9cdd6; --ae-platino-cl:#eef0f4;
  --ae-cierre:#b14eff; --ae-cierre-cl:#d9a8ff;
  --ae-radio:10px; --ae-sombra:0 8px 36px rgba(0,0,0,.65);
  font-family:'Inter', -apple-system, sans-serif;
  color: var(--ae-white);
  background: var(--ae-navy);
  line-height: 1.65;
  border-radius: 14px;
  position: relative;
  box-shadow: var(--ae-sombra);
}
.ae-scope:has(.ae-login-wrap) { overflow: hidden; }
.ae-scope *, .ae-scope *::before, .ae-scope *::after { box-sizing: border-box; }
.ae-scope h1, .ae-scope h2, .ae-scope h3, .ae-scope h4 { font-family:'Space Grotesk', sans-serif; margin: 0; }
.ae-scope p { margin: 0; }
.ae-scope ul { margin: 0; }

@keyframes ae-fadeIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes ae-fadeSlideDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }
@keyframes ae-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(39,174,96,.55)} 50%{box-shadow:0 0 0 6px rgba(39,174,96,0)} }
@keyframes ae-shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes ae-gradientMove { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes ae-gridDrift { from{background-position:0 0} to{background-position:60px 60px} }
@keyframes ae-medalPop { 0%{transform:scale(.4) rotate(-20deg);opacity:0} 60%{transform:scale(1.15) rotate(6deg);opacity:1} 100%{transform:scale(1) rotate(0)} }
@keyframes ae-glowPulse { 0%,100%{filter:drop-shadow(0 0 6px currentColor)} 50%{filter:drop-shadow(0 0 16px currentColor)} }
@keyframes ae-floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ── LOGIN ─────────────────────────────────────────────────────────── */
.ae-login-wrap{
  position:relative; min-height:540px; display:flex; align-items:center; justify-content:center;
  padding:48px 20px; background:var(--ae-navy); overflow:hidden;
}
.ae-login-wrap::before{
  content:''; position:absolute; inset:0;
  background:
    repeating-linear-gradient(0deg,transparent,transparent 44px,rgba(177,78,255,.05) 44px,rgba(177,78,255,.05) 45px),
    repeating-linear-gradient(90deg,transparent,transparent 44px,rgba(177,78,255,.05) 44px,rgba(177,78,255,.05) 45px);
  animation: ae-gridDrift 14s linear infinite;
  pointer-events:none;
}
.ae-login-glow{
  position:absolute; width:560px; height:560px; border-radius:50%;
  background:radial-gradient(circle, rgba(177,78,255,.18) 0%, rgba(0,217,255,.06) 45%, transparent 72%);
  top:50%; left:50%; transform:translate(-50%,-50%); pointer-events:none; filter:blur(4px);
}
.ae-login-box{
  position:relative; z-index:1; width:100%; max-width:440px;
  background:rgba(20,27,46,.74); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  padding:2px; border-radius:16px;
  background-image:linear-gradient(rgba(20,27,46,.84),rgba(20,27,46,.84)),
                   linear-gradient(120deg, var(--ae-violet), rgba(0,217,255,.25) 30%, rgba(177,78,255,.2) 70%, var(--ae-cyan));
  background-origin:border-box; background-clip:padding-box, border-box;
  border:1px solid transparent; background-size:100% 100%, 220% 220%;
  animation: ae-fadeSlideDown .5s ease both, ae-gradientMove 8s ease infinite;
}
.ae-login-box{ padding:42px 36px; }
.ae-badge{
  display:inline-block; font-family:'JetBrains Mono',monospace; font-size:.68rem; letter-spacing:.22em;
  text-transform:uppercase; color:var(--ae-violet-cl); border:1px solid rgba(177,78,255,.5); padding:5px 14px;
  border-radius:20px; margin-bottom:18px; background:rgba(177,78,255,.08);
}
.ae-login-box h2{ font-size:1.55rem; font-weight:700; letter-spacing:-.01em; color:var(--ae-white); line-height:1.2; margin-bottom:10px; }
.ae-login-sub{ color:var(--ae-gray-cl); font-size:.92rem; margin-bottom:28px; }
.ae-login-error{
  background:rgba(229,72,77,.12); border:1px solid var(--ae-rojo); color:var(--ae-rojo-cl);
  font-family:'JetBrains Mono',monospace; font-size:.78rem; padding:10px 14px; border-radius:var(--ae-radio); margin-bottom:18px;
}
.ae-form-group{ margin-bottom:16px; text-align:left; }
.ae-form-group label{
  display:block; font-family:'JetBrains Mono',monospace; font-size:.64rem; letter-spacing:.15em;
  text-transform:uppercase; color:var(--ae-gray-md); margin-bottom:7px;
}
.ae-form-group input{
  width:100%; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); color:var(--ae-white);
  font-family:'Inter',sans-serif; font-size:1rem; padding:12px 14px; border-radius:var(--ae-radio);
  outline:none; transition:border-color .2s, box-shadow .2s;
}
.ae-form-group input:focus{ border-color:var(--ae-violet); box-shadow:0 0 0 3px rgba(177,78,255,.2); }
.ae-btn-primary{
  width:100%; border:none; cursor:pointer; margin-top:6px; padding:14px; border-radius:var(--ae-radio);
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:.95rem; letter-spacing:.02em;
  color:#0a0510; background:linear-gradient(120deg, var(--ae-violet-cl), var(--ae-violet), var(--ae-cyan));
  background-size:200% auto; transition:background-position .4s, transform .2s, box-shadow .2s;
}
.ae-btn-primary:hover{ background-position:right center; transform:translateY(-1px); box-shadow:0 10px 26px rgba(177,78,255,.35); }

/* ── TOPBAR ────────────────────────────────────────────────────────── */
.ae-topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:14px 20px;
  background:var(--ae-navy2); border-bottom:1px solid rgba(177,78,255,.15);
}
.ae-topbar-user{ display:flex; align-items:center; gap:9px; font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:.92rem; }
.ae-dot-pulse{ width:8px; height:8px; border-radius:50%; background:var(--ae-verde); animation:ae-pulse 2s infinite; flex-shrink:0; }
.ae-logout-link{ font-family:'JetBrains Mono',monospace; font-size:.72rem; letter-spacing:.08em; color:var(--ae-gray-md); text-decoration:none; border:1px solid rgba(255,255,255,.12); padding:7px 14px; border-radius:20px; transition:all .2s; }
.ae-logout-link:hover{ color:var(--ae-white); border-color:var(--ae-violet); }

/* ── PROGRESO SEGMENTADO POR NIVEL ────────────────────────────────── */
.ae-progress-wrap{ padding:18px 20px 14px; background:var(--ae-navy2); border-bottom:1px solid rgba(255,255,255,.05); }
.ae-progress-label{ font-family:'JetBrains Mono',monospace; font-size:.72rem; letter-spacing:.08em; color:var(--ae-gray-cl); margin-bottom:9px; }
.ae-progress-segmented{ display:flex; gap:3px; height:10px; border-radius:6px; overflow:hidden; background:rgba(255,255,255,.06); margin-bottom:12px; }
.ae-seg{ position:relative; height:100%; background:rgba(255,255,255,.04); overflow:hidden; }
.ae-seg-fill{ height:100%; width:0%; transition:width .6s cubic-bezier(.22,1,.36,1); }
.ae-seg-bronce .ae-seg-fill{ background:linear-gradient(90deg, var(--ae-bronce), var(--ae-bronce-cl)); }
.ae-seg-plata .ae-seg-fill{ background:linear-gradient(90deg, var(--ae-plata), var(--ae-plata-cl)); }
.ae-seg-oro .ae-seg-fill{ background:linear-gradient(90deg, var(--ae-oro), var(--ae-oro-cl)); }
.ae-seg-platino .ae-seg-fill{ background:linear-gradient(90deg, var(--ae-platino), var(--ae-platino-cl)); }
.ae-seg-cierre .ae-seg-fill{ background:linear-gradient(90deg, var(--ae-cierre), var(--ae-cierre-cl)); }

.ae-medals-strip{ display:flex; gap:14px; align-items:center; }
.ae-medal{ font-size:1.3rem; opacity:.28; filter:grayscale(1); transition:all .4s ease; cursor:default; }
.ae-medal.earned{ opacity:1; filter:none; animation:ae-medalPop .5s ease both, ae-floatY 3s ease-in-out infinite; }
.ae-medals-strip-final{ justify-content:center; margin:18px 0 8px; gap:20px; }
.ae-medals-strip-final .ae-medal{ font-size:2rem; }

/* ── NAV DE CAPÍTULOS ──────────────────────────────────────────────── */
.ae-course-nav{ position:sticky; top:0; z-index:10; background:var(--ae-navy2); border-bottom:1px solid rgba(177,78,255,.15); overflow-x:auto; }
.ae-nav-tabs{ display:flex; list-style:none; padding:0 16px; margin:0; gap:4px; min-width:max-content; }
.ae-nav-tab{
  padding:12px 16px; font-family:'JetBrains Mono',monospace; font-size:.72rem; letter-spacing:.06em;
  color:var(--ae-gray-md); cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap; transition:all .2s; position:relative;
}
.ae-nav-tab:hover{ color:var(--ae-white); }
.ae-nav-tab.active{ color:var(--ae-white); border-bottom-color:var(--ae-violet); }
.ae-nav-tab.completed::after{ content:'✓'; margin-left:5px; color:var(--ae-verde-cl); }
.ae-nav-tab.locked{ opacity:.35; cursor:not-allowed; }
.ae-nav-tab.locked::after{ content:'🔒'; margin-left:5px; font-size:.65rem; }
.ae-nav-tab[data-nivel="bronce"].active{ border-bottom-color:var(--ae-bronce); }
.ae-nav-tab[data-nivel="plata"].active{ border-bottom-color:var(--ae-plata); }
.ae-nav-tab[data-nivel="oro"].active{ border-bottom-color:var(--ae-oro); }
.ae-nav-tab[data-nivel="platino"].active{ border-bottom-color:var(--ae-platino); }
.ae-nav-tab[data-nivel="cierre"].active{ border-bottom-color:var(--ae-cierre); }

/* ── MÓDULO / CAPÍTULO ────────────────────────────────────────────── */
#ae-course-body{ padding:28px 26px 40px; }
.ae-module-panel{ display:none; animation:ae-fadeIn .35s ease; }
.ae-module-panel.active{ display:block; }
.ae-module-banner{ position:relative; padding:28px 30px; border-radius:12px; margin-bottom:22px; overflow:hidden;
  background:linear-gradient(135deg, var(--ae-panel), var(--ae-panel2));
  border:1px solid rgba(177,78,255,.2);
}
.ae-module-banner::before{ content:attr(data-num); position:absolute; right:18px; top:6px; font-family:'Space Grotesk',sans-serif; font-size:5.5rem; font-weight:700; color:rgba(177,78,255,.08); line-height:1; pointer-events:none; }
.ae-nivel-pill{ display:inline-block; font-family:'JetBrains Mono',monospace; font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; padding:4px 12px; border-radius:14px; margin-bottom:12px; }
.ae-nivel-pill-bronce{ background:rgba(205,127,50,.15); color:var(--ae-bronce-cl); border:1px solid rgba(205,127,50,.4); }
.ae-nivel-pill-plata{ background:rgba(168,176,189,.15); color:var(--ae-plata-cl); border:1px solid rgba(168,176,189,.4); }
.ae-nivel-pill-oro{ background:rgba(232,185,35,.15); color:var(--ae-oro-cl); border:1px solid rgba(232,185,35,.4); }
.ae-nivel-pill-platino{ background:rgba(201,205,214,.15); color:var(--ae-platino-cl); border:1px solid rgba(201,205,214,.4); }
.ae-nivel-pill-cierre{ background:rgba(177,78,255,.15); color:var(--ae-violet-cl); border:1px solid rgba(177,78,255,.4); }
.ae-module-num{ font-family:'JetBrains Mono',monospace; font-size:.74rem; letter-spacing:.16em; color:var(--ae-violet-cl); margin-bottom:6px; position:relative; }
.ae-module-title{ font-size:1.5rem; font-weight:700; color:var(--ae-white); line-height:1.25; margin-bottom:8px; position:relative; max-width:80%; }
.ae-module-tagline{ font-size:.94rem; color:var(--ae-gray-cl); position:relative; max-width:80%; }
.ae-module-philosophy{
  border-left:3px solid var(--ae-violet); background:rgba(177,78,255,.06);
  padding:16px 20px; margin-bottom:26px; font-style:italic; color:var(--ae-violet-cl); font-size:.95rem; border-radius:0 8px 8px 0;
}

/* Contenido teórico — cards, topics, checklist, alerts */
.ae-module-theory .content-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:28px; }
@media(max-width:680px){ .ae-module-theory .content-grid{ grid-template-columns:1fr; } }
.ae-module-theory .card{ background:var(--ae-panel); border:1px solid rgba(255,255,255,.06); padding:22px; border-radius:10px; transition:border-color .2s, transform .2s; }
.ae-module-theory .card:hover{ border-color:rgba(177,78,255,.32); transform:translateY(-2px); }
.ae-module-theory .card h4{ font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:1rem; color:var(--ae-violet-cl); margin-bottom:12px; display:flex; align-items:center; gap:9px; }
.ae-module-theory .card h4 .icon{ width:26px; height:26px; background:rgba(177,78,255,.14); display:flex; align-items:center; justify-content:center; font-size:.78rem; border-radius:7px; flex-shrink:0; color:var(--ae-violet-cl); font-weight:700; }
.ae-module-theory .card p, .ae-module-theory .card li{ color:var(--ae-gray-cl); font-size:.92rem; }
.ae-module-theory .card ul{ padding-left:16px; }
.ae-module-theory .card ul li{ margin-bottom:7px; }
.ae-module-theory .card ul li strong{ color:var(--ae-white); }

.ae-module-theory .topics-section{ margin-bottom:28px; }
.ae-module-theory .topics-section h3{ font-size:1.02rem; font-weight:600; color:var(--ae-white); margin-bottom:14px; padding-bottom:8px; border-bottom:1px solid rgba(177,78,255,.22); }
.ae-module-theory .topic-item{ display:flex; align-items:flex-start; gap:11px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.04); }
.ae-module-theory .topic-item:last-child{ border-bottom:none; }
.ae-module-theory .topic-dot{ width:6px; height:6px; border-radius:50%; background:var(--ae-cyan); margin-top:8px; flex-shrink:0; box-shadow:0 0 7px rgba(0,217,255,.7); }
.ae-module-theory .topic-text{ color:var(--ae-gray-cl); font-size:.92rem; }
.ae-module-theory .topic-text strong{ color:var(--ae-white); font-weight:600; font-style:normal; }

.ae-module-theory .checklist{ background:var(--ae-panel); border:1px solid rgba(255,255,255,.06); padding:22px; margin-bottom:24px; border-radius:10px; }
.ae-module-theory .checklist h4{ font-size:.95rem; font-family:'Space Grotesk',sans-serif; color:var(--ae-violet-cl); margin-bottom:16px; }
.ae-module-theory .checklist-item{ display:flex; align-items:flex-start; gap:11px; margin-bottom:11px; cursor:pointer; }
.ae-module-theory .chk-box{ width:17px; height:17px; border:1.5px solid var(--ae-gray-md); flex-shrink:0; margin-top:2px; display:flex; align-items:center; justify-content:center; transition:all .2s; font-size:.68rem; border-radius:4px; }
.ae-module-theory .checklist-item.done .chk-box{ border-color:var(--ae-verde); background:var(--ae-verde); color:#fff; }
.ae-module-theory .checklist-item.done .chk-label{ text-decoration:line-through; color:var(--ae-gray-md); }
.ae-module-theory .chk-label{ color:var(--ae-gray-cl); font-size:.9rem; }

.ae-module-theory .alert{ padding:16px 19px; margin-bottom:20px; display:flex; gap:12px; align-items:flex-start; font-size:.9rem; border-radius:8px; }
.ae-module-theory .alert-icon{ font-size:1.15rem; flex-shrink:0; }
.ae-module-theory .alert-text{ color:var(--ae-gray-cl); }
.ae-module-theory .alert-text strong{ color:var(--ae-white); }
.ae-module-theory .alert-warning{ background:rgba(243,156,18,.08); border-left:3px solid var(--ae-ambar); }
.ae-module-theory .alert-danger{ background:rgba(229,72,77,.08); border-left:3px solid var(--ae-rojo); }
.ae-module-theory .alert-info{ background:rgba(0,217,255,.07); border-left:3px solid var(--ae-cyan); }
.ae-module-theory .alert-success{ background:rgba(39,174,96,.09); border-left:3px solid var(--ae-verde); }

.ae-module-theory .data-table{ width:100%; border-collapse:collapse; margin-bottom:24px; font-size:.85rem; }
.ae-module-theory .data-table th{ background:var(--ae-panel2); color:var(--ae-violet-cl); font-family:'JetBrains Mono',monospace; font-size:.66rem; letter-spacing:.08em; text-transform:uppercase; padding:10px 12px; text-align:left; border-bottom:2px solid rgba(177,78,255,.3); }
.ae-module-theory .data-table td{ padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.05); color:var(--ae-gray-cl); vertical-align:top; }
.ae-module-theory .data-table tr:hover td{ background:rgba(255,255,255,.02); }

/* ── QUIZ ──────────────────────────────────────────────────────────── */
.ae-quiz-section{ background:var(--ae-navy2); border:1px solid rgba(177,78,255,.22); padding:26px; margin-top:30px; border-radius:12px; }
.ae-quiz-section h3{ font-size:1.1rem; color:var(--ae-white); margin-bottom:20px; display:flex; flex-wrap:wrap; align-items:baseline; gap:10px; }
.ae-quiz-count{ font-family:'JetBrains Mono',monospace; font-size:.66rem; letter-spacing:.08em; color:var(--ae-gray-md); font-weight:400; text-transform:uppercase; }
.ae-quiz-q{ margin-bottom:20px; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,.06); }
.ae-quiz-q:last-of-type{ border-bottom:none; }
.ae-quiz-q p{ font-weight:600; color:var(--ae-white); font-size:.94rem; margin-bottom:12px; }
.ae-quiz-options{ display:flex; flex-direction:column; gap:7px; }
.ae-quiz-opt{ display:flex; align-items:center; gap:9px; padding:11px 14px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); cursor:pointer; transition:all .2s; color:var(--ae-gray-cl); font-size:.9rem; border-radius:var(--ae-radio); }
.ae-quiz-opt:hover{ background:rgba(177,78,255,.08); border-color:rgba(177,78,255,.25); }
.ae-quiz-opt.selected{ border-color:var(--ae-violet); background:rgba(177,78,255,.12); }
.ae-quiz-opt.correct{ background:rgba(39,174,96,.15); border-color:var(--ae-verde); color:var(--ae-white); }
.ae-quiz-opt.wrong{ background:rgba(229,72,77,.15); border-color:var(--ae-rojo); color:var(--ae-white); }
.ae-quiz-opt-label{ font-family:'JetBrains Mono',monospace; font-size:.68rem; color:var(--ae-violet-cl); min-width:18px; }
.ae-quiz-btn{
  border:none; cursor:pointer; margin-top:14px; padding:12px 30px; border-radius:var(--ae-radio);
  font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:.86rem;
  color:#0a0510; background:linear-gradient(120deg, var(--ae-violet), var(--ae-cyan));
  transition:transform .2s, box-shadow .2s;
}
.ae-quiz-btn:hover{ transform:translateY(-1px); box-shadow:0 8px 20px rgba(177,78,255,.32); }
.ae-quiz-btn:disabled{ opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }
.ae-quiz-result{ margin-top:14px; padding:13px 16px; font-family:'JetBrains Mono',monospace; font-size:.82rem; display:none; border-radius:8px; }
.ae-quiz-result.show{ display:block; animation: ae-fadeIn .3s ease; }
.ae-quiz-result.pass{ background:rgba(39,174,96,.1); border:1px solid var(--ae-verde); color:var(--ae-verde-cl); }
.ae-quiz-result.fail{ background:rgba(229,72,77,.1); border:1px solid var(--ae-rojo); color:var(--ae-rojo-cl); }

/* ── OVERLAY DE NIVEL (medalla intermedia) ────────────────────────── */
.ae-level-overlay{ position:fixed; inset:0; background:rgba(3,4,8,.95); z-index:9997; display:none; align-items:center; justify-content:center; padding:20px; backdrop-filter:blur(10px); }
.ae-level-overlay.show{ display:flex; }
.ae-level-box{ background:var(--ae-panel2); border:2px solid var(--ae-violet); padding:44px 36px; max-width:440px; width:100%; text-align:center; position:relative; border-radius:16px; animation: ae-fadeSlideDown .5s ease both; }
.ae-level-medal-big{ font-size:3.4rem; margin-bottom:14px; animation: ae-medalPop .6s ease both, ae-glowPulse 2.4s ease-in-out infinite; display:inline-block; }
.ae-level-eyebrow{ font-family:'JetBrains Mono',monospace; font-size:.66rem; letter-spacing:.2em; text-transform:uppercase; color:var(--ae-gray-md); margin-bottom:8px; }
.ae-level-box h2{ font-size:1.5rem; font-weight:700; color:var(--ae-white); margin-bottom:10px; }
.ae-level-box p{ color:var(--ae-gray-cl); font-size:.92rem; margin-bottom:10px; }

/* ── CERTIFICADO FINAL ─────────────────────────────────────────────── */
.ae-cert-overlay{ position:fixed; inset:0; background:rgba(3,4,8,.96); z-index:9998; display:none; align-items:center; justify-content:center; padding:20px; backdrop-filter:blur(12px); }
.ae-cert-overlay.show{ display:flex; }
.ae-cert-box{ background:var(--ae-panel2); border:2px solid var(--ae-violet); padding:44px 36px; max-width:540px; width:100%; text-align:center; position:relative; border-radius:16px; animation: ae-fadeSlideDown .5s ease both; }
.ae-cert-icon{ font-size:2.8rem; margin-bottom:14px; animation: ae-glowPulse 2.4s ease-in-out infinite; }
.ae-cert-box h2{ font-size:1.5rem; font-weight:700; color:var(--ae-white); margin-bottom:8px; }
.ae-cert-name{ font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:1.3rem; color:var(--ae-violet-cl); margin:10px 0 4px; }
.ae-cert-box p{ color:var(--ae-gray-cl); font-size:.88rem; margin-bottom:8px; }
.ae-cert-status{ font-family:'JetBrains Mono',monospace; font-size:.68rem; letter-spacing:.1em; margin-top:18px; padding:10px; border:1px solid rgba(39,174,96,.3); background:rgba(39,174,96,.08); color:var(--ae-verde-cl); border-radius:8px; }
.ae-btn-cert-close{ display:inline-block; margin-top:18px; background:transparent; border:1px solid var(--ae-violet); color:var(--ae-violet-cl); font-family:'JetBrains Mono',monospace; font-size:.68rem; letter-spacing:.12em; padding:10px 26px; cursor:pointer; text-transform:uppercase; border-radius:20px; transition:all .2s; }
.ae-btn-cert-close:hover{ background:var(--ae-violet); color:#0a0510; }

/* ── TOAST ─────────────────────────────────────────────────────────── */
.ae-toast{ position:fixed; bottom:26px; right:22px; background:var(--ae-panel2); border:1px solid var(--ae-verde); color:var(--ae-verde-cl); font-family:'JetBrains Mono',monospace; font-size:.76rem; letter-spacing:.05em; padding:13px 18px; z-index:9000; display:none; max-width:300px; box-shadow:var(--ae-sombra); border-radius:10px; }
.ae-toast.show{ display:block; animation: ae-fadeSlideDown .3s ease; }
.ae-toast.warn{ border-color:var(--ae-ambar); color:var(--ae-ambar); }

@media(max-width:600px){
  #ae-course-body{ padding:20px 14px 32px; }
  .ae-module-banner{ padding:22px 18px; }
  .ae-module-title, .ae-module-tagline{ max-width:100%; }
  .ae-quiz-section, .ae-module-theory .card, .ae-module-theory .checklist{ padding:18px 15px; }
  .ae-login-box{ padding:30px 24px; }
  .ae-medals-strip{ gap:10px; }
}
