:root {
    --bg: #06101f;
    --bg-2: #0a1425;
    --bg-3: #0f1c33;
    --card: rgba(255,255,255,.065);
    --card-2: rgba(255,255,255,.105);
    --text: #edf4ff;
    --muted: #9fb0c7;
    --muted-2: #c7d6ea;
    --line: rgba(255,255,255,.105);
    --primary: #2563eb;
    --primary-2: #38bdf8;
    --violet: #8b5cf6;
    --green: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;
    --shadow: 0 24px 80px rgba(0,0,0,.34);
    --shadow-soft: 0 12px 35px rgba(0,0,0,.22);
    --radius: 24px;
    --sidebar-w: 288px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: radial-gradient(circle at 15% -5%, rgba(37,99,235,.28), transparent 32%), radial-gradient(circle at 90% 10%, rgba(56,189,248,.16), transparent 28%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 17px; border-radius: 15px; font-weight: 900; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; box-shadow: 0 14px 34px rgba(37,99,235,.28); }
.btn-soft { background: rgba(37,99,235,.14); border-color: rgba(56,189,248,.25); color: #d8efff; }
.btn-ghost { background: rgba(255,255,255,.065); border-color: var(--line); color: var(--text); }
.btn-danger { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.3); color: #fecaca; }
.btn-amber { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.28); color: #ffedc2; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 12px; border-radius: 12px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #cfe9ff; border: 1px solid rgba(56,189,248,.25); background: rgba(56,189,248,.10); }
.badge-green { color: #c7ffe9; border-color: rgba(16,185,129,.25); background: rgba(16,185,129,.12); }
.badge-amber { color: #ffedc2; border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.12); }
.badge-red { color: #ffe0e0; border-color: rgba(239,68,68,.28); background: rgba(239,68,68,.13); }
.badge-violet { color: #eadcff; border-color: rgba(139,92,246,.28); background: rgba(139,92,246,.13); }
.muted { color: var(--muted); }
.text-gradient { background: linear-gradient(135deg, #f8fbff, #88d9ff 44%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.card-strong { background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045)); box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.flash { width: min(1180px, calc(100% - 36px)); margin: 16px auto 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); font-weight: 800; }
.flash-success { background: rgba(16,185,129,.14); color: #d1fae5; border-color: rgba(16,185,129,.25); }
.flash-error { background: rgba(239,68,68,.14); color: #fee2e2; border-color: rgba(239,68,68,.25); }
.flash-info { background: rgba(56,189,248,.12); color: #e0f2fe; border-color: rgba(56,189,248,.25); }
.form-card { width: min(500px, calc(100% - 32px)); margin: 52px auto; padding: 30px; }
.form-card h1 { margin: 0 0 8px; font-size: 36px; letter-spacing: -.04em; }
.form-card p { color: var(--muted); line-height: 1.65; }
.form-group { display: grid; gap: 8px; margin: 14px 0; }
.form-group label { font-weight: 900; font-size: 14px; }
.input, input, textarea, select { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); color: var(--text); outline: none; }
select option { color: #111827; }
textarea { min-height: 120px; resize: vertical; }
.input:focus, input:focus, textarea:focus, select:focus { border-color: rgba(56,189,248,.6); box-shadow: 0 0 0 4px rgba(56,189,248,.10); }
label small, .help-text { color: var(--muted); font-weight: 650; font-size: 12px; line-height: 1.5; }
.progress-wrap { display: grid; gap: 8px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.progress-meta strong { color: var(--text); }
.progress-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--primary-2)); }
.empty-state { padding: 34px; border: 1px dashed rgba(255,255,255,.2); border-radius: var(--radius); color: var(--muted); text-align: center; background: rgba(255,255,255,.025); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #d9edff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.045); }
td { color: var(--muted-2); }
tr:last-child td { border-bottom: 0; }
@media (max-width: 920px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .container { width: min(100% - 28px, 1180px); } }

/* EDUCANEX Fase 4 - Identidad visual producción basada en módulos */
:root{
  --bg:#030712; --bg-2:#0f172a; --bg-3:#1e293b;
  --card:rgba(15,23,42,.74); --card-2:rgba(30,41,59,.72);
  --text:#f8fafc; --muted:#94a3b8; --muted-2:#cbd5e1; --line:rgba(255,255,255,.10);
  --primary:#d946ef; --primary-2:#6366f1; --violet:#a855f7; --cyan:#22d3ee;
  --green:#10b981; --amber:#f59e0b; --red:#ef4444;
  --shadow:0 28px 90px rgba(0,0,0,.42); --shadow-soft:0 16px 45px rgba(0,0,0,.28);
}
body{background:radial-gradient(circle at 20% -10%, rgba(217,70,239,.26), transparent 32%),radial-gradient(circle at 84% 4%, rgba(99,102,241,.20), transparent 31%),radial-gradient(circle at 50% 110%, rgba(34,211,238,.10), transparent 30%),var(--bg);}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-2));box-shadow:0 16px 38px rgba(217,70,239,.22)}
.btn-soft{background:rgba(217,70,239,.12);border-color:rgba(217,70,239,.25);color:#f5d0fe}.brand b,.student-brand b{color:#e879f9}.brand-mark{background:linear-gradient(135deg,var(--primary),var(--primary-2));box-shadow:0 14px 32px rgba(217,70,239,.28)}
.text-gradient{background:linear-gradient(135deg,#fff,#f0abfc 42%,#22d3ee);-webkit-background-clip:text;background-clip:text;color:transparent}.badge{color:#f5d0fe;border-color:rgba(217,70,239,.25);background:rgba(217,70,239,.10)}
.card{background:linear-gradient(180deg,rgba(15,23,42,.78),rgba(15,23,42,.52));border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.input:focus,input:focus,textarea:focus,select:focus{border-color:rgba(217,70,239,.65);box-shadow:0 0 0 4px rgba(217,70,239,.12)}
.progress-track span{background:linear-gradient(90deg,var(--green),var(--cyan),var(--primary))}.code-box{padding:14px 16px;border-radius:16px;background:#020617;border:1px solid rgba(148,163,184,.18);font-family:ui-monospace,Consolas,monospace;color:#b7f7d8;overflow:auto}.actions{display:flex;gap:10px;flex-wrap:wrap}.inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.inline-form select{width:auto;min-width:130px}.security-note{border-color:rgba(245,158,11,.22);background:linear-gradient(180deg,rgba(245,158,11,.08),rgba(15,23,42,.54))}
.edx-splash{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:radial-gradient(circle at center,rgba(217,70,239,.18),transparent 36%),#030712;transition:opacity .42s ease,visibility .42s ease}.edx-splash.is-hidden{opacity:0;visibility:hidden}.splash-card{text-align:center;display:grid;gap:14px;place-items:center}.splash-logo{width:86px;height:86px;border-radius:30px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary-2));font-size:46px;font-weight:950;box-shadow:0 0 45px rgba(217,70,239,.40)}.splash-title{font-size:32px;font-weight:950;letter-spacing:-.05em}.splash-title b{color:#e879f9}.splash-text{color:var(--muted);font-weight:800}.splash-bar{width:230px;height:6px;border-radius:99px;background:rgba(255,255,255,.10);overflow:hidden}.splash-bar span{display:block;width:45%;height:100%;background:linear-gradient(90deg,var(--primary),var(--cyan));border-radius:inherit;animation:splashMove 1s infinite ease-in-out}@keyframes splashMove{0%{transform:translateX(-80%)}100%{transform:translateX(250%)}}@media (prefers-reduced-motion:reduce){.edx-splash{display:none}.splash-bar span{animation:none}}
