/* Panel del profesor — Onhora ecosystem (flat lima) */

/* Login gate — misma dosis Onhora (lima flat) */
body .login {
  background: #b8e03a !important;
  overflow: auto;
}
body .login::before,
body .login::after { display: none !important; content: none !important; }
body .login__card {
  background: #161616 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: none !important;
}
body .login__card h1 { color: #fff !important; font-family: "Lato","Inter",system-ui,sans-serif !important; }
body .login__kicker { color: #b8e03a !important; }
body .login__sub, body .login label, body .login__lock { color: rgba(255,255,255,.72) !important; }
body .login input {
  background: #0f0f0f !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.12) !important;
}
body .login button[type="button"],
body .login #loginBtn {
  background: #b8e03a !important;
  color: #0d0d0d !important;
  border: 0 !important;
  font-weight: 800 !important;
}
body .login__back { color: #b8e03a !important; }

html[data-theme="light"] body .login__card,
html.theme-light body .login__card {
  background: #ffffff !important;
  color: #0d0d0d !important;
  border-color: rgba(13,13,13,.12) !important;
}
html[data-theme="light"] body .login__card h1,
html.theme-light body .login__card h1 { color: #0d0d0d !important; }
html[data-theme="light"] body .login__sub,
html[data-theme="light"] body .login label,
html[data-theme="light"] body .login__lock,
html.theme-light body .login__sub,
html.theme-light body .login label,
html.theme-light body .login__lock { color: #5c5a54 !important; }
html[data-theme="light"] body .login input,
html.theme-light body .login input {
  background: #ffffff !important;
  color: #0d0d0d !important;
  border-color: rgba(13,13,13,.14) !important;
}
.login__lock {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.login__eye svg { display: block; }
.login__eye.is-on svg { opacity: 1; }

.main h1 { margin: 0 0 6px; font-size: 1.7rem; }
.main .lede, .main .note, .main .meta { color: var(--muted); line-height: 1.5; }
.main .eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.main .panel { margin-bottom: 12px; }
.main .panel h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--text); }
.main .grid, .doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.main .list { display: flex; flex-direction: column; gap: 10px; }
.worlds, .units, .lessons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.worlds button, .units button, .lessons button, .person {
  text-align: left;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
}
.worlds button { min-width: 180px; }
.units button.is-on, .worlds button.is-on, .lessons button.is-on {
  border-color: rgba(184, 224, 58, 0.55);
  box-shadow: 0 0 0 3px rgba(184, 224, 58, 0.12);
}
.person { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.person strong { display: block; }
.bar, .main .bar {
  height: 8px; border-radius: 99px; background: rgba(148, 163, 184, 0.18);
  margin-top: 12px; overflow: hidden;
}
.bar span { display: block; height: 100%; background: var(--accent); }
.flow { display: flex; flex-direction: column; margin: 8px 0 0; }
.flow__step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.flow__rail { display: flex; flex-direction: column; align-items: center; }
.flow__n {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #0d0d0d;
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
}
.flow__line { width: 2px; flex: 1; min-height: 16px; background: rgba(184, 224, 58, 0.35); }
.flow__body { padding-bottom: 14px; }
.board { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.board img { width: 100%; border-radius: 16px; object-fit: cover; max-height: 280px; border: 1px solid var(--line); }
.words { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.word { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.word b { color: var(--accent); }
.main .form label { display: block; margin-top: 10px; color: var(--muted); font-size: 0.85rem; }
.main .form input, .main select {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--input-bg, #0f0f0f); color: var(--text);
}
.main .go, .main button.go {
  margin-top: 14px; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 650;
  background: var(--accent); color: #0d0d0d; cursor: pointer;
}
.ok { background: rgba(52, 211, 153, 0.12); color: var(--ok); border-radius: 12px; padding: 12px; }
.textlink { background: none; border: 0; color: var(--accent); cursor: pointer; font-weight: 650; padding: 0; }
.main ol, .main ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.5; }
.main li { margin: 6px 0; }

.stage { animation: docente-rise .38s ease; }
@keyframes docente-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.flow__step { animation: docente-rise .45s ease both; animation-delay: calc(var(--i, 0) * 45ms); }
.worlds button, .person, .plat {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.worlds button:hover, .person:hover, .plat:hover { transform: translateY(-3px); border-color: rgba(184, 224, 58, 0.45); }

.pager { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; flex-wrap: wrap; }
.pager button {
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700;
}
.pager button:disabled { opacity: .35; cursor: default; }
.pager__where { color: var(--muted); font-size: .9rem; }

.shelf { margin: 22px 0 8px; }
.shelf h2 { margin: 0 0 4px; font-size: 1.2rem; }
.beats { display: grid; gap: 10px; }
.beat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  animation: docente-rise .4s ease both;
}
.beat span { display: block; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.chip { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px; background: rgba(184,224,58,.14); color: var(--accent); font-size: .8rem; font-weight: 700; }
.lesson-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.lesson-nav button { flex: 1; }

.plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.plat { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: inherit; }
.plat strong { display: block; margin-bottom: 4px; }
.plat em { color: var(--accent); font-style: normal; font-size: .8rem; font-weight: 700; }

.avatar, .side__brand img.avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line);
  font-size: 1.6rem; font-weight: 700; overflow: hidden;
}
.profile { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: start; }
.profile .avatar, .profile img.avatar { width: 140px; height: 140px; }
.filebtn { display: inline-block; margin-top: 10px; cursor: pointer; color: var(--accent); font-weight: 700; }
.filebtn input { display: none; }
#matSearch {
  width: min(420px, 100%); margin: 8px 0 0; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--input-bg, #0f0f0f); color: var(--text);
}
@media (max-width: 720px) {
  .profile { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .board { grid-template-columns: 1fr; }
}

.hello {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(184, 224, 58, 0.1);
  border: 1px solid rgba(184, 224, 58, 0.28);
}
.hello__hi { margin: 0 0 4px; font-size: 1.35rem; font-weight: 700; color: var(--text); }
.hello p:last-child { margin: 0; color: var(--muted); line-height: 1.45; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.lcard {
  display: grid; grid-template-columns: 46% 54%; min-height: 156px; padding: 0; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  border-radius: 18px; text-align: left; background: var(--panel); border: 1px solid var(--line);
  color: inherit; cursor: pointer; width: 100%;
}
.lcard__img { background-size: cover; background-position: center; min-height: 156px; }
.lcard__body { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.lcard__kicker { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lcard strong { font-size: 1.08rem; line-height: 1.25; }
.lcard__sub {
  color: var(--muted); font-size: .9rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lcard:hover { transform: translateY(-3px); border-color: rgba(184, 224, 58, 0.5); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); }

.modal {
  position: fixed; inset: 0; z-index: 80; background: rgba(4, 10, 18, 0.72);
  display: grid; place-items: center; padding: 28px 16px;
}
.modal__sheet {
  width: min(880px, 100%); max-height: min(88vh, 920px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}
.modal__sheet--page { max-height: none; margin-top: 8px; }
.modal__x {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2;
  border: 1px solid var(--line); background: var(--input-bg, #0f0f0f); color: var(--text);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700;
}
.modal__hero { display: grid; grid-template-columns: 42% 1fr; min-height: 210px; clear: both; }
.modal__hero img { width: 100%; height: 100%; object-fit: cover; min-height: 210px; }
.modal__hero div { padding: 22px 22px 12px; }
.modal__hero h2 { margin: 6px 0; font-size: 1.7rem; }
.modal__body { padding: 4px 22px 22px; }
body.docente-modal { overflow: hidden; }
@media (max-width: 720px) {
  .lcard, .modal__hero { grid-template-columns: 1fr; }
  .lcard__img { min-height: 140px; }
  .modal { padding: 10px; }
}


/* Objetivos / aprendizaje */
.obj-list { margin: 10px 0 0; padding: 0 0 0 1.1rem; display: grid; gap: 6px; }
.obj-list li { color: var(--text); line-height: 1.45; }
.obj-list--learn li { color: var(--muted); }
.beat--objectives { border: 1px solid rgba(184, 224, 58, 0.35); background: rgba(184, 224, 58, 0.06); }
.beat--learn { border: 1px solid rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.06); }
.beat--outcome { border: 1px solid rgba(244, 63, 94, 0.3); background: rgba(244, 63, 94, 0.06); }

/* PL_SIS_DOCENTE — base en css/sis.css */
.sis-docente { --sis-accent: #b8e03a; --sis-accent2: #9bcb2e; }
.sis-docente .sis-nav { margin-top: 8px; }


/* =========================================================
   SHELL Onhora — misma dosis que terapeuta/afiliado
   ========================================================= */
body {
  font-family: "Lato", "Inter", system-ui, -apple-system, sans-serif !important;
  background: #0d0d0d;
  color: #fff;
}
.app { background: #0d0d0d; }
.side {
  background: #121212 !important;
  border-right: 1px solid rgba(255,255,255,.1) !important;
}
.side__brand strong {
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}
.side__brand span { color: rgba(255,255,255,.72) !important; }
.side__nav button {
  border-radius: 12px !important;
  font-weight: 650 !important;
  color: rgba(255,255,255,.72) !important;
  border: 0 !important;
  box-shadow: none !important;
}
.side__nav button:hover {
  background: rgba(184,224,58,.1) !important;
  color: #fff !important;
}
.side__nav button.is-on {
  background: #b8e03a !important;
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
  border: 0 !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}
.side__out {
  border-radius: 12px !important;
  color: rgba(255,255,255,.72) !important;
  border-color: rgba(255,255,255,.12) !important;
}
.side__out:hover {
  color: #fff !important;
  border-color: rgba(184,224,58,.4) !important;
}
.main {
  background: #0d0d0d !important;
  color: #fff !important;
}
.main h1, .main h2 {
  font-family: "Lato", "Inter", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: #fff !important;
}
.main .panel,
.main .list .person,
.hello,
.lcard,
.beat,
.word,
.plat {
  box-shadow: none !important;
  border-radius: 14px !important;
}
.main .panel {
  background: #161616 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
}
.main .go, .main button.go, .flow__n, .pager button.is-on {
  background: #b8e03a !important;
  color: #0d0d0d !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}
.pager button {
  border-radius: 999px !important;
}
.lcard {
  background: #161616 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
}
.modal__sheet {
  background: #161616 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: none !important;
  border-radius: 18px !important;
}
.hello {
  background: rgba(184,224,58,.1) !important;
  border: 1px solid rgba(184,224,58,.28) !important;
}

/* Light shell */
html[data-theme="light"] body,
html.theme-light body {
  background: #f3f1ea !important;
  color: #0d0d0d !important;
}
html[data-theme="light"] .app,
html.theme-light .app { background: #f3f1ea !important; }
html[data-theme="light"] .side,
html.theme-light .side {
  background: #ffffff !important;
  border-right-color: rgba(13,13,13,.1) !important;
}
html[data-theme="light"] .side__brand strong,
html.theme-light .side__brand strong { color: #0d0d0d !important; }
html[data-theme="light"] .side__brand span,
html.theme-light .side__brand span { color: #5c5a54 !important; }
html[data-theme="light"] .side__nav button,
html.theme-light .side__nav button {
  color: #5c5a54 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-theme="light"] .side__nav button:hover,
html.theme-light .side__nav button:hover {
  color: #0d0d0d !important;
  background: rgba(13,13,13,.04) !important;
}
html[data-theme="light"] .side__nav button.is-on,
html.theme-light .side__nav button.is-on {
  background: #b8e03a !important;
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
  box-shadow: none !important;
}
html[data-theme="light"] .side__out,
html.theme-light .side__out {
  color: #5c5a54 !important;
  border-color: rgba(13,13,13,.14) !important;
}
html[data-theme="light"] .main,
html.theme-light .main {
  background: #f3f1ea !important;
  color: #0d0d0d !important;
}
html[data-theme="light"] .main h1,
html[data-theme="light"] .main h2,
html.theme-light .main h1,
html.theme-light .main h2 {
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
}
html[data-theme="light"] .main .panel,
html.theme-light .main .panel {
  background: #ffffff !important;
  border-color: rgba(13,13,13,.12) !important;
}
html[data-theme="light"] .hello,
html.theme-light .hello {
  background: #ffffff !important;
  border-color: rgba(13,13,13,.12) !important;
}
html[data-theme="light"] .units button.is-on,
html[data-theme="light"] .worlds button.is-on,
html[data-theme="light"] .lessons button.is-on,
html.theme-light .units button.is-on,
html.theme-light .worlds button.is-on,
html.theme-light .lessons button.is-on {
  border-color: rgba(107,143,18,.55) !important;
  box-shadow: 0 0 0 3px rgba(184,224,58,.2) !important;
}
html[data-theme="light"] .beat--objectives,
html.theme-light .beat--objectives {
  background: rgba(184,224,58,.12) !important;
  border-color: rgba(107,143,18,.35) !important;
}


/* Theme toggle (lima, never blue) */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.theme-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 750;
  font-size: 0.78rem;
  cursor: pointer;
}
.theme-toggle button.is-on,
html[data-theme="light"] .theme-toggle button.is-on,
html.theme-light .theme-toggle button.is-on {
  background: #b8e03a !important;
  color: #0d0d0d !important;
  border-color: #b8e03a !important;
  -webkit-text-fill-color: #0d0d0d !important;
}

.main .go, .main button.go, .flow__n {
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
}

/* =========================================================
   LIGHT MODE — Onhora docente
   ========================================================= */
html[data-theme="light"],
html.theme-light {
  --input-bg: #ffffff;
  color-scheme: light;
}

html[data-theme="light"] .main h1,
html[data-theme="light"] .main .panel h2,
html[data-theme="light"] .hello__hi,
html[data-theme="light"] .lcard strong,
html[data-theme="light"] .person strong,
html[data-theme="light"] .shelf h2,
html[data-theme="light"] .modal__hero h2,
html[data-theme="light"] .obj-list li {
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
}

html[data-theme="light"] .main .lede,
html[data-theme="light"] .main .note,
html[data-theme="light"] .main .meta,
html[data-theme="light"] .hello p:last-child,
html[data-theme="light"] .lcard__sub,
html[data-theme="light"] .pager__where,
html[data-theme="light"] .login__lock,
html[data-theme="light"] .obj-list--learn li {
  color: #5c5a54 !important;
  -webkit-text-fill-color: #5c5a54 !important;
}

html[data-theme="light"] .main .eyebrow,
html[data-theme="light"] .lcard__kicker,
html[data-theme="light"] .chip,
html[data-theme="light"] .beat span,
html[data-theme="light"] .word b,
html[data-theme="light"] .plat em,
html[data-theme="light"] .textlink,
html[data-theme="light"] .filebtn {
  color: #6b8f12 !important;
  -webkit-text-fill-color: #6b8f12 !important;
}

html[data-theme="light"] .worlds button,
html[data-theme="light"] .units button,
html[data-theme="light"] .lessons button,
html[data-theme="light"] .person,
html[data-theme="light"] .plat,
html[data-theme="light"] .beat,
html[data-theme="light"] .word,
html[data-theme="light"] .lcard,
html[data-theme="light"] .hello,
html[data-theme="light"] .pager button,
html[data-theme="light"] .modal__sheet,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .main .panel {
  background: #ffffff !important;
  border-color: rgba(13,13,13,.12) !important;
  color: #0d0d0d !important;
  box-shadow: none !important;
}

html[data-theme="light"] .main .form input,
html[data-theme="light"] .main select,
html[data-theme="light"] #matSearch,
html[data-theme="light"] .modal__x {
  background: #ffffff !important;
  color: #0d0d0d !important;
  border-color: rgba(13,13,13,.14) !important;
}

html[data-theme="light"] .main .go,
html[data-theme="light"] .main button.go,
html[data-theme="light"] .flow__n,
html[data-theme="light"] .chip {
  background: #b8e03a !important;
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
}
html[data-theme="light"] .chip {
  background: rgba(184,224,58,.22) !important;
  color: #6b8f12 !important;
  -webkit-text-fill-color: #6b8f12 !important;
}

html[data-theme="light"] .bar {
  background: rgba(13,13,13,.08) !important;
}
html[data-theme="light"] .lcard:hover,
html[data-theme="light"] .worlds button:hover,
html[data-theme="light"] .person:hover,
html[data-theme="light"] .plat:hover {
  border-color: rgba(107,143,18,.45) !important;
  box-shadow: none !important;
}
html[data-theme="light"] .modal {
  background: rgba(13,13,13,.45) !important;
}
html[data-theme="light"] .avatar,
html[data-theme="light"] .side__brand img.avatar {
  background: #f7f5f0 !important;
  border-color: rgba(13,13,13,.12) !important;
}

/* Fix admin light toggle blue bleed on this surface */
html[data-theme="light"] body .side .theme-toggle button.is-on {
  background: #b8e03a !important;
  color: #0d0d0d !important;
  border-color: #b8e03a !important;
}

/* Tutorial FAB light: lima + tinta negra (ver pl-tutorial.css) */
html[data-theme="light"] .pl-tut-fab,
html.theme-light .pl-tut-fab,
html[data-theme="light"] #plTutFab,
html.theme-light #plTutFab,
html[data-theme="light"] #thTutFab,
html.theme-light #thTutFab {
  background: #b8e03a !important;
  border-color: #9bcb2e !important;
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
}
html[data-theme="light"] .pl-tut-fab > span:not(.pl-tut-fab__ico):not(.pl-tut-fab__pulse),
html.theme-light .pl-tut-fab > span:not(.pl-tut-fab__ico):not(.pl-tut-fab__pulse),
html[data-theme="light"] #thTutFab > span,
html.theme-light #thTutFab > span {
  color: #0d0d0d !important;
  -webkit-text-fill-color: #0d0d0d !important;
  background: transparent !important;
}
html[data-theme="light"] .pl-tut-fab__ico,
html.theme-light .pl-tut-fab__ico,
html[data-theme="light"] #thTutFab i,
html.theme-light #thTutFab i {
  background: #0d0d0d !important;
  color: #b8e03a !important;
  -webkit-text-fill-color: #b8e03a !important;
}
