/* ==========================================================
   Universidad Enlasa - Hoja de estilos
   Colores corporativos: verde #398245 · amarillo #F3DC5C · oscuro #262424
   ========================================================== */
:root {
  --green: #398245;
  --green-dark: #2d6837;
  --green-soft: #e8f2ea;
  --yellow: #F3DC5C;
  --yellow-soft: #fdf8dc;
  --dark: #262424;
  --text: #262424;
  --muted: #6b6866;
  --line: #e3e1dc;
  --bg: #f4f5f2;
  --card: #ffffff;
  --danger: #c0392b;
  --danger-soft: #fbeae8;
  --info: #2c6ea6;
  --info-soft: #e7f0f8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(38,36,36,.06), 0 2px 8px rgba(38,36,36,.05);
  --sidebar-w: 256px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 20px; } h3 { font-size: 17px; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.ic { flex-shrink: 0; vertical-align: -3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- Estructura ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--dark); color: #fff;
  display: flex; flex-direction: column; z-index: 40; transition: transform .2s ease;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand strong { display: block; font-size: 15px; }
.sidebar-brand small { color: #bdb9b6; font-size: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  border: 2px solid var(--yellow); flex-shrink: 0;
}
.brand-mark.is-img { background: #fff; object-fit: contain; border: 0; padding: 3px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 10px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8f8a86; padding: 14px 10px 6px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #e7e4e1;
  font-size: 14px; margin-bottom: 2px;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.sidebar-nav a.active { background: var(--green); color: #fff; box-shadow: inset 3px 0 0 var(--yellow); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 14px 18px 8px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user .who { min-width: 0; }
.sidebar-user strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { color: #bdb9b6; font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--dark); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.sidebar-actions { display: flex; gap: 6px; padding: 6px 14px 16px; }
.sidebar-actions a { flex: 1; color: #d7d3d0; font-size: 12.5px; padding: 7px 8px; border-radius: 6px; background: rgba(255,255,255,.05); display: flex; gap: 6px; align-items: center; justify-content: center; }
.sidebar-actions a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.sidebar-backdrop { display: none; }

.main { min-height: 100vh; display: flex; flex-direction: column; }
body.has-sidebar .main { margin-left: var(--sidebar-w); }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 32px; background: #fff;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  border-top: 4px solid var(--green);
}
.page-title { font-size: 19px; margin: 0; flex: 1; min-width: 0; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-toggle { display: none; }
.content { padding: 28px 32px; max-width: 1180px; width: 100%; flex: 1; }
.content-wide { max-width: none; }
.footer { padding: 18px 32px; color: var(--muted); font-size: 12.5px; }

/* ---------- Componentes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.card-accent { border-top: 6px solid var(--green); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.section-title { font-size: 16px; margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 8px;
  border: 1px solid var(--green); background: var(--green); color: #fff; font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; line-height: 1.2; white-space: nowrap;
}
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn-outline { background: #fff; color: var(--green); }
.btn-outline:hover { background: var(--green-soft); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eeede9; color: var(--text); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }
.btn-yellow:hover { background: #e9cf43; }
.btn-danger { background: #fff; border-color: #e5b8b2; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 6px; color: var(--text); display: inline-flex; }
.icon-btn:hover { background: #eeede9; }
.icon-btn[disabled] { opacity: .25; cursor: default; background: transparent; }
.icon-btn.menu-toggle { display: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; font-size: 14px; }
.alert-success { background: var(--green-soft); border-color: #b9d7be; color: #22502a; }
.alert-error { background: var(--danger-soft); border-color: #eec3bd; color: #8a2a1f; }
.alert-info { background: var(--info-soft); border-color: #c1d6ea; color: #1f4f78; }
.alert-warning { background: var(--yellow-soft); border-color: #eedc8a; color: #6b5a07; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--green-soft); color: var(--green-dark); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: #eeede9; color: var(--muted); }
.badge-yellow { background: var(--yellow-soft); color: #7a6608; border: 1px solid #efdf8e; }

.progress { height: 8px; background: #e6e5e0; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }
.progress-lg { height: 12px; }

/* ---------- Formularios ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 16px; }
.form-grid .field { margin-bottom: 0; }
label, .label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfccc6; border-radius: 8px; font: inherit; font-size: 14.5px;
  background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(57,130,69,.15); }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { font: inherit; font-size: 14px; max-width: 100%; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 14.5px; cursor: pointer; margin-bottom: 8px; }
.check input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.editor-wrap { background: #fff; border-radius: 8px; }
.editor-wrap .ql-toolbar { border-radius: 8px 8px 0 0; border-color: #cfccc6; }
.editor-wrap .ql-container { border-radius: 0 0 8px 8px; border-color: #cfccc6; min-height: 220px; font-family: Arial, Helvetica, sans-serif; font-size: 15px; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafaf8; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid #efeee9; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfbf9; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .progress { min-width: 90px; }
.cell-main { font-weight: 700; }
.cell-sub { font-size: 12.5px; color: var(--muted); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.toolbar .field { margin: 0; min-width: 160px; }
.toolbar .grow { flex: 1; min-width: 200px; }

/* ---------- Estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-left: 4px solid var(--green); }
.stat:nth-child(2n) { border-left-color: var(--yellow); }
.stat .v { font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------- Tarjetas de curso ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.course-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(38,36,36,.1); }
.course-cover { aspect-ratio: 16/8; background-size: cover; background-position: center; background-color: var(--green-soft); }
.course-cover-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); position: relative; }
.course-cover-empty::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--yellow); }
.course-cover-empty span { font-size: 44px; font-weight: 700; color: var(--yellow); }
.course-body { padding: 16px 18px; flex: 1; }
.course-body h3 { margin: 4px 0 6px; font-size: 16.5px; }
.course-body p { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--green); font-weight: 700; }
.meta { font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.course-foot { padding: 12px 18px 16px; border-top: 1px solid #f0efeb; font-size: 13px; }
.course-foot .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }

/* ---------- Página de curso ---------- */
.course-hero { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr 280px; gap: 28px; margin-bottom: 24px; position: relative; overflow: hidden; }
.course-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--yellow); }
.course-hero h2 { font-size: 26px; margin-bottom: 10px; }
.course-hero p { color: #d9d6d2; }
.course-hero .course-cat { color: var(--yellow); }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: #d9d6d2; margin-top: 12px; }
.hero-box { background: #fff; color: var(--text); border-radius: var(--radius); padding: 18px; align-self: start; }
.hero-box .big { font-size: 30px; font-weight: 700; color: var(--green); }
.rich { font-size: 15.5px; line-height: 1.65; }
.rich img { max-width: 100%; height: auto; border-radius: 6px; }
.rich blockquote { border-left: 4px solid var(--yellow); margin: 1em 0; padding: 6px 16px; background: var(--yellow-soft); }
.rich pre { background: #f3f2ee; padding: 12px; border-radius: 6px; overflow-x: auto; }
.rich table { border-collapse: collapse; } .rich td, .rich th { border: 1px solid var(--line); padding: 6px 10px; }
.rich .ql-align-center { text-align: center; } .rich .ql-align-right { text-align: right; }

.syllabus .module { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.syllabus .module-head { padding: 13px 18px; background: #fafaf8; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.syllabus .lesson-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid #f1f0ec; color: inherit; }
.syllabus .lesson-row:last-child { border-bottom: 0; }
a.lesson-row:hover { background: #fafaf6; text-decoration: none; }
.lesson-row .st { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfccc6; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.lesson-row .st.done { background: var(--green); border-color: var(--green); }
.lesson-row .st.locked { border-color: #e0ded9; color: #b3afab; }
.lesson-row .t { flex: 1; min-width: 0; }
.lesson-row .ty { font-size: 12px; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }
.lesson-row.is-locked { color: #a19d99; }

/* ---------- Reproductor de lección ---------- */
.player { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.player-side { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto; }
.player-side .syllabus .lesson-row { padding: 9px 14px; font-size: 13.5px; }
.player-side .syllabus .module-head { padding: 10px 14px; font-size: 13.5px; }
.lesson-row.current { background: var(--green-soft); box-shadow: inset 3px 0 0 var(--green); }
.video-frame { position: relative; padding-top: 56.25%; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.activity-frame { margin-bottom: 18px; }
.activity-frame iframe { width: 100%; height: 620px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: block; }
.doc-frame { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.complete-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--green-soft); border: 1px solid #c8e0cc; border-radius: var(--radius); padding: 14px 18px; margin-top: 18px; }

/* ---------- Evaluaciones (estilo formulario) ---------- */
.quiz-q { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.quiz-q .qt { font-weight: 700; font-size: 15.5px; margin-bottom: 12px; white-space: pre-wrap; }
.quiz-q .qt .pts { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.quiz-q .opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-weight: 400; margin-bottom: 4px; border: 1px solid transparent; }
.quiz-q .opt:hover { background: #f6f6f2; }
.quiz-q .opt input { margin-top: 3px; accent-color: var(--green); width: 17px; height: 17px; flex-shrink: 0; }
.quiz-q .opt.is-correct { background: var(--green-soft); border-color: #b9d7be; }
.quiz-q .opt.is-wrong { background: var(--danger-soft); border-color: #eec3bd; }
.quiz-q.q-ok { border-left: 5px solid var(--green); }
.quiz-q.q-bad { border-left: 5px solid var(--danger); }
.quiz-q .expl { margin-top: 10px; font-size: 13.5px; background: var(--yellow-soft); padding: 9px 12px; border-radius: 6px; }
.result-box { text-align: center; padding: 30px 20px; }
.result-box .score { font-size: 54px; font-weight: 700; line-height: 1; margin: 8px 0; }
.result-box.pass .score { color: var(--green); }
.result-box.fail .score { color: var(--danger); }

/* Editor de preguntas */
.opt-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.opt-row input[type=text] { flex: 1; }
.opt-row .correct { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 400; margin: 0; white-space: nowrap; }
.q-list-item { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 10px; }
.q-list-item .n { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
.q-list-item .body { flex: 1; min-width: 0; }
.q-list-item ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.q-list-item li.ok { color: var(--green-dark); font-weight: 700; }

/* Contenido del curso (gestión) */
.mod-block { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 16px; }
.mod-block-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fafaf8; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; flex-wrap: wrap; }
.mod-block-head .title { flex: 1; font-weight: 700; min-width: 180px; }
.les-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f1f0ec; flex-wrap: wrap; }
.les-item:last-child { border-bottom: 0; }
.les-item .ty { width: 32px; height: 32px; border-radius: 8px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.les-item .t { flex: 1; min-width: 160px; }
.mod-add { padding: 12px 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #fcfcfa; border-radius: 0 0 var(--radius) var(--radius); border-top: 1px dashed var(--line); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 700; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--green); border-bottom-color: var(--green); }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); background: #fff; border: 1px dashed #d6d3cd; border-radius: var(--radius); }
.empty-state h2, .empty-state h3 { color: var(--text); }
.check-list { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.check-list label { display: flex; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid #f1f0ec; font-weight: 400; margin: 0; cursor: pointer; }
.check-list label:hover { background: #fafaf6; }
.check-list input { accent-color: var(--green); width: 16px; height: 16px; }
.check-list .sub { color: var(--muted); font-size: 12.5px; margin-left: auto; text-align: right; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.pill-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.pill-filter a { padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 13.5px; }
.pill-filter a.active { background: var(--green); border-color: var(--green); color: #fff; }
.pill-filter a:hover { text-decoration: none; border-color: var(--green); }
.cert-card { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; flex-wrap: wrap; }
.cert-card .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cert-card .info { flex: 1; min-width: 200px; }
code.code { background: #f1f0ec; padding: 2px 7px; border-radius: 5px; font-size: 13px; }

/* ---------- Acceso / páginas públicas ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.auth-art { background: var(--dark); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--green); right: -180px; bottom: -200px; opacity: .9; }
.auth-art::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--yellow); right: 120px; bottom: 170px; opacity: .95; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art h1 { font-size: 40px; max-width: 460px; margin: 0 0 14px; }
.auth-art p { color: #d4d0cc; max-width: 420px; font-size: 16px; }
.auth-brand { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 18px; }
.auth-brand .brand-mark { width: 52px; height: 52px; font-size: 18px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form .box { width: 100%; max-width: 380px; }
.auth-form h2 { font-size: 24px; }
.public-wrap { max-width: 720px; margin: 40px auto; padding: 0 16px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .player { grid-template-columns: 1fr; }
  .player-side { position: static; max-height: none; }
  .course-hero { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body.has-sidebar .main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; }
  .icon-btn.menu-toggle { display: inline-flex; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .content { padding: 20px 16px; }
  .footer { padding: 16px; }
  .form-grid, .two-col { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 24px; min-height: 0; }
  .auth-art h1 { font-size: 26px; }
  .auth-art::before, .auth-art::after { display: none; }
  .auth-art .hide-sm { display: none; }
}
@media print {
  .sidebar, .topbar, .footer, .btn { display: none !important; }
  body.has-sidebar .main { margin: 0; }
}
