:root {
  --bg: #f6efe5;
  --bg-soft: #fff9f1;
  --panel: rgba(255, 255, 255, .55);
  --panel-strong: rgba(255, 255, 255, .72);
  --panel-2: rgba(255, 248, 238, .88);
  --stroke: rgba(128, 102, 77, .14);
  --text: #241a14;
  --muted: #746559;
  --muted-2: #9a8574;
  --accent: #a26b43;
  --accent-2: #c78858;
  --good: #6ea348;
  --warn: #d8a22b;
  --danger: #b85d4d;
  --blue: #5592f3;
  --purple: #8463d3;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(72, 46, 20, .12);
  --shadow-soft: 0 12px 36px rgba(72, 46, 20, .08);
  --blur: blur(16px);
  --nav-bg: rgba(246, 239, 229, .90);
}

html[data-theme="dark"] {
  --bg: #07111f;
  --bg-soft: #0d1828;
  --panel: rgba(13, 24, 40, .55);
  --panel-strong: rgba(16, 30, 49, .76);
  --panel-2: rgba(14, 26, 42, .92);
  --stroke: rgba(115, 147, 189, .12);
  --text: #edf4ff;
  --muted: #93a3b8;
  --muted-2: #7e95b0;
  --accent: #67a4ff;
  --accent-2: #95c0ff;
  --good: #57d879;
  --warn: #ffb84f;
  --danger: #ff7878;
  --blue: #67d3ff;
  --purple: #a889ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, .34);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, .24);
  --nav-bg: rgba(7, 17, 31, .92);
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html,
body {
  min-height: 100%
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: background .35s ease, color .35s ease;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto
}

button,
input,
textarea,
select {
  font: inherit
}

a {
  color: inherit
}

:where(.dash-app, .section-panel, .module-card-pro, .category-card, .resource-row, .topbar-inner,
  .sidebar-inner, .rightpanel-inner, .module-content-panel, .module-section-card,
  .module-topbar-left, .module-topbar-right, .module-content-left, .resource-info,
  .stat-card, .hero-minimal, .hero-download-card, .mini-card) {
  min-width: 0
}

:where(.module-title-pro, .category-card-title, .resource-title, .module-content-title,
  .hero-title-minimal, .hero-downloads-title, .hero-text-minimal, .module-desc-pro) {
  overflow-wrap: anywhere;
  word-break: break-word
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--stroke) 1px, transparent 1px),
    linear-gradient(var(--stroke) 1px, transparent 1px);
  background-size: 42px 42px;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0%, transparent 45%, rgba(0, 0, 0, .03) 100%);
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(80px);
  opacity: .22;
  pointer-events: none;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: 90px;
  left: -80px;
  background: var(--accent)
}

.orb-2 {
  width: 320px;
  height: 320px;
  top: 260px;
  right: -90px;
  background: var(--blue)
}

.orb-3 {
  width: 240px;
  height: 240px;
  bottom: 30px;
  left: 38%;
  background: var(--purple)
}

.glass {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.soft {
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: 20px;
}

.muted {
  color: var(--muted) !important
}

.muted-2 {
  color: var(--muted-2) !important
}

.small-label {
  font-size: .85rem
}

.course-subtitle {
  font-size: .9rem
}

.progress-text {
  font-size: .92rem
}

.progress-text-small {
  font-size: .85rem
}

.brand-link {
  color: var(--text);
  text-decoration: none
}

.btn {
  border-radius: 14px
}

.btn-main {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: 1px solid rgba(154, 107, 71, .32);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease;
}

.btn-main:hover {
  color: #fff;
  transform: translateY(-1px)
}

.btn-ghost {
  background: rgba(255, 255, 255, .28);
  border: 1px solid var(--stroke);
  color: var(--text);
  backdrop-filter: blur(8px);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .42);
  color: var(--text)
}

.app {
  min-height: 100vh;
  width: 100%
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-inner {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.brand-badge {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  flex: 0 0 auto;
  box-shadow: var(--shadow-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: var(--text);
  font-size: .9rem;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(87, 216, 121, .14);
}

.theme-toggle {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer
}

.theme-toggle-track {
  width: 86px;
  height: 46px;
  padding: 5px;
  display: flex;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .22));
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .08), var(--shadow-soft);
  transition: all .4s ease;
}

html[data-theme="dark"] .theme-toggle-track {
  background: linear-gradient(135deg, rgba(24, 44, 70, .9), rgba(12, 24, 40, .9));
}

.theme-toggle-thumb {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd34d, #ff9f1a);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
  transform: translateX(0);
  transition: transform .45s cubic-bezier(.22, .9, .22, 1.2), background .35s ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(40px);
  background: linear-gradient(135deg, #8bb6ff, #5c7cff);
}

.theme-toggle-thumb i {
  position: absolute;
  font-size: .95rem;
  color: #fff;
  transition: opacity .3s ease, transform .3s ease;
}

.icon-sun {
  opacity: 1;
  transform: scale(1)
}

.icon-moon {
  opacity: 0;
  transform: scale(.6)
}

html[data-theme="dark"] .icon-sun {
  opacity: 0;
  transform: scale(.6)
}

html[data-theme="dark"] .icon-moon {
  opacity: 1;
  transform: scale(1)
}

.content {
  width: 100%;
  max-width: 100%;
  padding: 84px 14px 18px;
}

.dash-app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 310px;
  gap: 14px;
  align-items: start;
  min-height: calc(100vh - 86px);
  padding-bottom: 18px;
}

.sidebar,
.rightpanel {
  min-width: 0;
  align-self: start
}

.sidebar {
  position: sticky;
  top: 84px
}

.rightpanel {
  position: sticky;
  top: 84px
}

.sidebar-inner,
.rightpanel-inner {
  padding: 14px
}

.rightpanel-inner {
  display: grid;
  gap: 12px
}

main {
  padding-top: 0;
  align-self: start
}

main>.glass.reveal {
  margin-top: 0;
  transform: none !important
}

.course-card {
  padding: 14px;
  margin-bottom: 12px
}

.course-card-feature {
  background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06))
}

.navlink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.navlink:hover {
  background: rgba(255, 255, 255, .15);
  border-color: var(--stroke);
  color: var(--text);
}

.navlink.active {
  background: rgba(103, 164, 255, .12);
  border-color: rgba(103, 164, 255, .22);
  color: var(--text);
}

.navlink i {
  color: var(--muted)
}

.navlink.active i {
  color: var(--accent)
}

.side-divider {
  height: 1px;
  background: var(--stroke);
  margin: 12px 0
}

.progressbox {
  padding: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--stroke);
  border-radius: 18px;
}

.progressbar,
.hero-progress-line,
.module-progress-line {
  height: 10px;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px;
  overflow: hidden;
}

.progressbar>div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--good));
  border-radius: inherit;
}

.progressbar-student>div {
  background: linear-gradient(90deg, #22c55e, #4ade80)
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: var(--text);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.tag.task {
  background: rgba(103, 164, 255, .12);
  border-color: rgba(103, 164, 255, .22);
  color: var(--accent)
}

.tag.good {
  background: rgba(87, 216, 121, .12);
  border-color: rgba(87, 216, 121, .20);
  color: var(--good)
}

.tag.warn {
  background: rgba(255, 184, 79, .12);
  border-color: rgba(255, 184, 79, .20);
  color: var(--warn)
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin: 0 0 12px;
}

.tabbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: var(--text);
  font-weight: 800;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.tabbtn:hover {
  background: rgba(255, 255, 255, .26)
}

.tabbtn.active {
  background: rgba(103, 164, 255, .14);
  border-color: rgba(103, 164, 255, .22);
  color: var(--accent)
}

.tabcontent {
  display: none
}

.tabcontent.active {
  display: block
}

.reveal {
  opacity: 1;
  transform: none
}

.github-link {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  transition: all .3s ease;
}

.github-link:hover {
  background: rgba(88, 166, 255, .1);
  border-color: #58a6ff;
  color: #58a6ff
}

.nyan-container {
  position: absolute;
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}

.nyan-cat {
  height: 28px;
  z-index: 2
}

.rainbow {
  position: absolute;
  left: -80px;
  width: 100px;
  height: 6px;
  background: linear-gradient(90deg, red, orange, yellow, green, cyan, blue, violet);
  filter: blur(2px);
  opacity: .9;
  animation: rainbowShift .5s linear infinite;
}

.github-link:hover .nyan-container {
  opacity: 1;
  animation: nyanFly 1.5s linear infinite
}

@keyframes nyanFly {
  0% {
    left: -120px
  }

  100% {
    left: 120%
  }
}

@keyframes rainbowShift {
  0% {
    filter: blur(2px) hue-rotate(0)
  }

  100% {
    filter: blur(2px) hue-rotate(360deg)
  }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 0 12px;
  margin-bottom: 12px;
}

.section-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.1rem
}

.section-panel {
  padding: 14px;
  margin: 0 12px 12px
}

.stat-card {
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}

.search-wrap {
  width: min(100%, 340px);
  max-width: 100%
}

.search-box {
  position: relative
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2)
}

.search-input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255, 255, 255, .18);
  color: var(--text);
  outline: none;
  backdrop-filter: blur(10px);
}

.search-input:focus {
  border-color: rgba(103, 164, 255, .25);
  box-shadow: 0 0 0 4px rgba(103, 164, 255, .08)
}

.notice-item {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255, 255, 255, .10);
}

.notice-item:first-child {
  margin-top: 0
}

.mini-card {
  padding: 12px
}

.mini-title {
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--text)
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, .10);
}

.spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 14px;
  border: 1px solid rgba(29, 185, 84, .4);
  border-radius: 999px;
  background: rgba(29, 185, 84, .15);
  color: #1DB954;
  font-weight: 500;
  text-decoration: none;
  transition: all .25s ease;
}

.spotify-btn:hover {
  background: #1DB954;
  color: #000;
  box-shadow: 0 0 15px rgba(29, 185, 84, .6);
  transform: translateY(-1px)
}

.mobile-only {
  display: none
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none
}

.drawer.open {
  display: block
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 22, .42);
  backdrop-filter: blur(10px)
}

.drawer-panel {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  max-height: calc(100vh - 20px);
  overflow: auto;
  padding: 14px;
  border-radius: 22px;
}

.hero-minimal {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 12px 12px;
  padding: 34px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .hero-minimal {
  background: linear-gradient(180deg, #fbf8f3, #f4ebdf)
}

html[data-theme="dark"] .hero-minimal {
  background: linear-gradient(180deg, rgba(10, 20, 36, .95), rgba(8, 16, 28, .92))
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.hero-title-minimal {
  margin: 0;
  max-width: 700px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  font-weight: 900;
  color: var(--text);
}

.hero-text-minimal {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-middle {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 8px;
}

.hero-progress-minimal,
.hero-downloads-panel {
  padding: 20px;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: rgba(255, 255, 255, .10);
}

.hero-progress-minimal {
  display: flex;
  flex-direction: column;
  justify-content: center
}

.hero-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.hero-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--blue))
}

.hero-progress-minimal small {
  font-size: .92rem;
  line-height: 1.4;
  color: var(--muted)
}

.hero-downloads-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero-downloads-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 11px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
}

.hero-downloads-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2
}

.hero-downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.hero-download-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  color: var(--text);
  text-decoration: none;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.hero-download-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .20);
  border-color: rgba(103, 164, 255, .28);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.hero-download-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(103, 164, 255, .14);
  color: var(--accent);
  font-size: 1.1rem;
}

.hero-download-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0
}

.hero-download-body strong {
  display: block;
  font-size: 1rem;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: break-word
}

.hero-download-arrow {
  margin-left: auto;
  color: var(--muted-2);
  font-size: .95rem;
  flex: 0 0 auto
}

.hero-actions-minimal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px
}

.modules-grid-pro {
  display: grid;
  gap: 18px
}

.module-card-pro {
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(170, 145, 120, .18);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .54));
  box-shadow: 0 10px 30px rgba(63, 42, 19, .04);
}

.module-card-pro.closed .module-sections-grid,
.module-card-pro.closed .module-content-panel {
  display: none
}

.module-topbar-pro {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
  padding: 8px 6px 18px;
  border-bottom: 1px solid rgba(177, 151, 126, .14);
}

.module-topbar-left {
  display: flex;
  align-items: flex-start;
  gap: 14px
}

.module-icon-pro {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(157, 132, 109, .15);
  border-radius: 18px;
  background: linear-gradient(180deg, #f2ede6, #e9dfd4);
  color: #9a765b;
  font-size: 1.1rem;
}

.module-kicker {
  margin-bottom: 4px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #a18872
}

.module-title-pro {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 900;
  color: #241913
}

.module-desc-pro {
  margin: 8px 0 0;
  max-width: 650px;
  color: #7f7064
}

.module-topbar-right {
  position: relative;
  min-width: 240px;
  padding-right: 82px !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.module-badges {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.module-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 999px;
  background: #fffdfa;
  color: #6f5d50;
  font-size: .82rem;
  font-weight: 700;
}

.module-pill.good {
  background: #eef9ee;
  color: #2f7a33
}

.module-pill.warn {
  background: #fff6e8;
  color: #b56b11
}

.module-progress-mini {
  width: 100%;
  max-width: 240px
}

.module-progress-mini span {
  display: block;
  margin-bottom: 6px;
  text-align: right;
  font-size: .84rem;
  font-weight: 600;
  color: #7b6d61
}

.module-progress-line>div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #84cc16)
}

.module-header-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.module-toggle-top {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103, 164, 255, .28);
  border-radius: 14px;
  background: rgba(103, 164, 255, .14);
  color: #8fb7ff;
  font-size: 1.2rem;
  transition: all .25s ease;
}

.module-header-button:hover .module-toggle-top {
  background: rgba(103, 164, 255, .22);
  color: #c2dcff;
  transform: scale(1.05);
}

.module-toggle-top.open {
  background: rgba(120, 255, 180, .16);
  color: #7ef0b0;
  border-color: rgba(120, 255, 180, .34)
}

.module-toggle-top i {
  transition: transform .25s ease
}

.module-toggle-top.open i {
  transform: rotate(180deg)
}

.module-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.module-section-card {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 14px;
  border: 1px solid #eadfce;
  border-radius: 20px;
  background: #fffdfa;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.module-section-card:hover {
  transform: translateY(-3px)
}

.module-section-card.teoria {
  border-left: 5px solid #60a5fa
}

.module-section-card.practica {
  border-left: 5px solid #fb923c
}

.module-section-card.actividades {
  border-left: 5px solid #a78bfa
}

.module-section-card.teoria:hover {
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  border-color: #bcd3ff;
  box-shadow: 0 10px 24px rgba(59, 130, 246, .10)
}

.module-section-card.practica:hover {
  background: linear-gradient(180deg, #fff9f3, #fff1e4);
  border-color: #ffd3aa;
  box-shadow: 0 10px 24px rgba(251, 146, 60, .12)
}

.module-section-card.actividades:hover {
  background: linear-gradient(180deg, #fbf8ff, #f3edff);
  border-color: #d8c7ff;
  box-shadow: 0 10px 24px rgba(167, 139, 250, .12)
}

.module-section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.module-section-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.module-section-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 14px;
  background: #f4ede6;
  color: #9d7355;
  transition: .22s ease;
}

.module-section-card.teoria:hover .module-section-icon {
  background: #e8f1ff;
  color: #2563eb
}

.module-section-card.practica:hover .module-section-icon {
  background: #fff0df;
  color: #ea580c
}

.module-section-card.actividades:hover .module-section-icon {
  background: #f1eaff;
  color: #7c3aed
}

.module-section-title {
  margin: 0;
  font-weight: 800;
  color: #2a1f18
}

.module-section-sub {
  margin-top: 2px;
  font-size: .88rem;
  color: #8a7c70
}

.module-count {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid #eadfce;
  border-radius: 999px;
  background: #f7f1ea;
  color: #7c6654;
  font-size: .85rem;
  font-weight: 800;
}

.click-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(207, 224, 255, .9);
  border-radius: 999px;
  background: rgba(234, 242, 255, .75);
  color: #2563eb;
  font-size: .72rem;
  font-weight: 700;
  opacity: .92;
}

.click-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #3b82f6
}

.click-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(59, 130, 246, .35);
  border-radius: 999px;
  animation: pulseClick 1.4s infinite;
}

@keyframes pulseClick {
  0% {
    transform: scale(.7);
    opacity: 1
  }

  100% {
    transform: scale(1.8);
    opacity: 0
  }
}

.module-content-panel {
  padding: 14px;
  border: 1px solid rgba(175, 147, 122, .14);
  border-radius: 22px;
  background: rgba(255, 253, 250, .8);
}

.module-content-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(177, 151, 126, .12);
}

.module-content-left {
  display: flex;
  align-items: center;
  gap: 10px
}

.module-content-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #241913
}

.module-content-sub {
  margin-top: 2px;
  font-size: .88rem;
  color: #8a7c70
}

.content-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #f4df9f;
  border-radius: 999px;
  background: #fff5d9;
  color: #9a6600;
  font-size: .8rem;
  font-weight: 800;
}

.content-hint .mini-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, .5);
  animation: miniPulse 1.4s infinite;
}

@keyframes miniPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, .45)
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0)
  }
}

.resource-row {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ece2d6;
  border-radius: 18px;
  background: #fffdfa;
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.resource-info {
  min-width: 0;
  flex: 1 1 auto
}

.resource-number {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f3ede4;
  color: #8a725d;
  font-weight: 900;
  transition: .22s ease;
}

.resource-title {
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.35
}

.resource-meta {
  margin-top: 3px;
  font-size: .88rem;
  color: #8a7c70
}

.resource-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0
}

.resource-status {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.resource-status.done {
  background: #dcfce7;
  color: #166534
}

.resource-status.pending {
  background: #f3f4f6;
  color: #6b7280
}

.resource-status.new,
.resource-status.current {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, .22);
  background: rgba(34, 197, 94, .14);
  color: #16a34a;
  animation: newPulse 1.6s ease-in-out infinite;
}

.resource-status.new::before,
.resource-status.current::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: translateX(-120%);
  animation: newShine 2.2s linear infinite;
}

@keyframes newPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    transform: scale(1)
  }

  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .10);
    transform: scale(1.03)
  }
}

@keyframes newShine {
  0% {
    transform: translateX(-120%)
  }

  100% {
    transform: translateX(120%)
  }
}

.resource-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #eadfce;
  border-radius: 12px;
  background: #fff;
  color: #7d6a5a;
  transition: .22s ease;
}

.resource-click-tip {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #cfe1ff;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: .74rem;
  font-weight: 800;
}

.resource-click-tip .tip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  animation: tipBlink 1s infinite alternate
}

@keyframes tipBlink {
  from {
    opacity: .35;
    transform: scale(.9)
  }

  to {
    opacity: 1;
    transform: scale(1.1)
  }
}

.resource-row.current {
  border-color: #bcd3ff;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 0 0 2px rgba(80, 132, 255, .08)
}

.resource-row.current::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.resource-row.current .resource-number {
  background: #e8f1ff;
  color: #2563eb
}

.resource-row:nth-child(1):hover {
  transform: translateX(4px);
  border-color: #bcd3ff;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  box-shadow: 0 10px 24px rgba(59, 130, 246, .08)
}

.resource-row:nth-child(1):hover .resource-number {
  background: #e8f1ff;
  color: #2563eb
}

.resource-row:nth-child(1):hover .resource-title {
  color: #1d4ed8
}

.resource-row:nth-child(1):hover .resource-arrow {
  background: #eef4ff;
  border-color: #bfd6ff;
  color: #2563eb;
  transform: translateX(2px)
}

.resource-row:nth-child(2):hover {
  transform: translateX(4px);
  border-color: #ffd7b5;
  background: linear-gradient(180deg, #fffdfa, #fff4ea);
  box-shadow: 0 10px 24px rgba(251, 146, 60, .08)
}

.resource-row:nth-child(2):hover .resource-number {
  background: #fff0df;
  color: #ea580c
}

.resource-row:nth-child(2):hover .resource-title {
  color: #c2410c
}

.resource-row:nth-child(2):hover .resource-arrow {
  background: #fff3e8;
  border-color: #ffd2ae;
  color: #ea580c;
  transform: translateX(2px)
}

.resource-row:nth-child(3):hover {
  transform: translateX(4px);
  border-color: #d7c8ff;
  background: linear-gradient(180deg, #fefcff, #f6efff);
  box-shadow: 0 10px 24px rgba(167, 139, 250, .08)
}

.resource-row:nth-child(3):hover .resource-number {
  background: #f1eaff;
  color: #7c3aed
}

.resource-row:nth-child(3):hover .resource-title {
  color: #6d28d9
}

.resource-row:nth-child(3):hover .resource-arrow {
  background: #f5efff;
  border-color: #d9c9ff;
  color: #7c3aed;
  transform: translateX(2px)
}

.resource-row:nth-child(4):hover {
  transform: translateX(4px);
  border-color: #cdebc7;
  background: linear-gradient(180deg, #fcfffb, #eefbea);
  box-shadow: 0 10px 24px rgba(34, 197, 94, .08)
}

.resource-row:nth-child(4):hover .resource-number {
  background: #e7f8e3;
  color: #15803d
}

.resource-row:nth-child(4):hover .resource-title {
  color: #166534
}

.resource-row:nth-child(4):hover .resource-arrow {
  background: #effbec;
  border-color: #cce9c5;
  color: #15803d;
  transform: translateX(2px)
}

.resource-row:nth-child(5):hover {
  transform: translateX(4px);
  border-color: #f6d0d0;
  background: linear-gradient(180deg, #fffdfd, #fff1f1);
  box-shadow: 0 10px 24px rgba(239, 68, 68, .08)
}

.resource-row:nth-child(5):hover .resource-number {
  background: #fde8e8;
  color: #dc2626
}

.resource-row:nth-child(5):hover .resource-title {
  color: #b91c1c
}

.resource-row:nth-child(5):hover .resource-arrow {
  background: #fff0f0;
  border-color: #f2cccc;
  color: #dc2626;
  transform: translateX(2px)
}

.resource-row:nth-child(6):hover {
  transform: translateX(4px);
  border-color: #f4df9f;
  background: linear-gradient(180deg, #fffef8, #fff9e8);
  box-shadow: 0 10px 24px rgba(245, 158, 11, .08)
}

.resource-row:nth-child(6):hover .resource-number {
  background: #fff3cf;
  color: #b45309
}

.resource-row:nth-child(6):hover .resource-title {
  color: #92400e
}

.resource-row:nth-child(6):hover .resource-arrow {
  background: #fff7df;
  border-color: #f2dfaf;
  color: #b45309;
  transform: translateX(2px)
}

.module-empty {
  padding: 18px;
  border: 1px dashed #e2d5c6;
  border-radius: 18px;
  background: #fffdfa;
  color: #8a7c70;
  text-align: center;
  font-weight: 600;
}

.mascota-card {
  padding: 16px
}

.mascota-gif img {
  width: 100%;
  margin-top: 10px;
  border-radius: 12px
}

.mascota-msg {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05)
}

[data-theme="light"] .mascota-msg {
  background: rgba(0, 0, 0, .05)
}

html[data-theme="dark"] .module-card-pro {
  background: linear-gradient(180deg, rgba(15, 28, 46, .92), rgba(10, 20, 35, .88));
  border-color: rgba(115, 147, 189, .14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .module-topbar-pro {
  border-bottom-color: rgba(115, 147, 189, .12)
}

html[data-theme="dark"] .module-icon-pro {
  background: linear-gradient(180deg, rgba(24, 42, 66, .95), rgba(16, 30, 49, .95));
  border-color: rgba(115, 147, 189, .14);
  color: var(--accent);
}

html[data-theme="dark"] .module-kicker {
  color: #8fb7ff
}

html[data-theme="dark"] .module-title-pro,
html[data-theme="dark"] .module-content-title,
html[data-theme="dark"] .module-section-title,
html[data-theme="dark"] .resource-title {
  color: var(--text)
}

html[data-theme="dark"] .module-desc-pro,
html[data-theme="dark"] .module-content-sub,
html[data-theme="dark"] .module-section-sub,
html[data-theme="dark"] .resource-meta {
  color: var(--muted)
}

html[data-theme="dark"] .module-pill {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(115, 147, 189, .12);
  color: var(--text)
}

html[data-theme="dark"] .module-pill.good {
  background: rgba(87, 216, 121, .12);
  color: #7ef0c8
}

html[data-theme="dark"] .module-pill.warn {
  background: rgba(255, 184, 79, .12);
  color: #ffcf7a
}

html[data-theme="dark"] .module-progress-line {
  background: rgba(255, 255, 255, .08)
}

html[data-theme="dark"] .module-section-card {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(115, 147, 189, .12);
  box-shadow: none
}

html[data-theme="dark"] .module-section-card.active {
  background: linear-gradient(180deg, rgba(103, 164, 255, .12), rgba(255, 255, 255, .03));
  border-color: rgba(103, 164, 255, .22)
}

html[data-theme="dark"] .module-section-card.teoria:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, .16), rgba(255, 255, 255, .03));
  border-color: rgba(96, 165, 250, .34);
  box-shadow: 0 10px 24px rgba(59, 130, 246, .14)
}

html[data-theme="dark"] .module-section-card.practica:hover {
  background: linear-gradient(180deg, rgba(251, 146, 60, .14), rgba(255, 255, 255, .03));
  border-color: rgba(251, 146, 60, .30);
  box-shadow: 0 10px 24px rgba(251, 146, 60, .14)
}

html[data-theme="dark"] .module-section-card.actividades:hover {
  background: linear-gradient(180deg, rgba(167, 139, 250, .14), rgba(255, 255, 255, .03));
  border-color: rgba(167, 139, 250, .30);
  box-shadow: 0 10px 24px rgba(167, 139, 250, .14)
}

html[data-theme="dark"] .module-section-icon {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(115, 147, 189, .12);
  color: var(--muted-2)
}

html[data-theme="dark"] .module-section-card.teoria:hover .module-section-icon {
  background: rgba(96, 165, 250, .16);
  color: #8fb7ff
}

html[data-theme="dark"] .module-section-card.practica:hover .module-section-icon {
  background: rgba(251, 146, 60, .16);
  color: #ffb066
}

html[data-theme="dark"] .module-section-card.actividades:hover .module-section-icon {
  background: rgba(167, 139, 250, .16);
  color: #c4b5fd
}

html[data-theme="dark"] .module-count {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(115, 147, 189, .12);
  color: var(--text)
}

html[data-theme="dark"] .click-badge {
  background: rgba(59, 130, 246, .14);
  border-color: rgba(96, 165, 250, .28);
  color: #8fb7ff
}

html[data-theme="dark"] .module-content-panel {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(115, 147, 189, .12)
}

html[data-theme="dark"] .module-content-header {
  border-bottom-color: rgba(115, 147, 189, .10)
}

html[data-theme="dark"] .content-hint {
  background: rgba(255, 184, 79, .12);
  border-color: rgba(255, 184, 79, .22);
  color: #ffd27a
}

html[data-theme="dark"] .resource-row {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(115, 147, 189, .12);
  color: var(--text)
}

html[data-theme="dark"] .resource-number {
  background: rgba(255, 255, 255, .06);
  color: var(--muted-2)
}

html[data-theme="dark"] .resource-arrow {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(115, 147, 189, .12);
  color: var(--muted-2)
}

html[data-theme="dark"] .resource-status.pending {
  background: rgba(255, 255, 255, .08);
  color: #c1cede
}

html[data-theme="dark"] .resource-status.done {
  background: rgba(34, 197, 94, .16);
  color: #86efac
}

html[data-theme="dark"] .resource-status.new,
html[data-theme="dark"] .resource-status.current {
  background: rgba(34, 197, 94, .16);
  color: #86efac;
  border-color: rgba(34, 197, 94, .26)
}

html[data-theme="dark"] .resource-click-tip {
  background: rgba(59, 130, 246, .12);
  border-color: rgba(96, 165, 250, .24);
  color: #8fb7ff
}

html[data-theme="dark"] .module-empty {
  background: rgba(255, 255, 255, .03);
  border-color: rgba(115, 147, 189, .16);
  color: var(--muted)
}

html[data-theme="light"] .tabbtn.active,
html[data-theme="light"] .navlink.active,
html[data-theme="light"] .drawer .navlink.active {
  background: #e8edf7 !important;
  color: #b8743c !important;
  border: 1px solid rgba(184, 116, 60, .16) !important;
}

html[data-theme="light"] .tabbtn.active i,
html[data-theme="light"] .navlink.active i,
html[data-theme="light"] .drawer .navlink.active i,
html[data-theme="light"] .tabbtn.active span,
html[data-theme="light"] .navlink.active span,
html[data-theme="light"] .drawer .navlink.active span {
  color: #b8743c !important
}

html[data-theme="light"] .tabbtn:hover,
html[data-theme="light"] .navlink:hover,
html[data-theme="light"] .drawer .navlink:hover {
  background: #f1ede7;
  color: #8f6338
}

@media (max-width:1400px) {
  .dash-app {
    grid-template-columns: 250px minmax(0, 1fr) 280px
  }
}

@media (max-width:1200px) {
  .dash-app {
    grid-template-columns: 260px minmax(0, 1fr)
  }

  .rightpanel {
    display: none
  }

  .hero-middle,
  .hero-downloads-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:1100px) {
  .module-sections-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:992px) {
  .content {
    padding: 84px 10px 14px
  }

  .dash-app {
    grid-template-columns: 1fr
  }

  .sidebar,
  .rightpanel {
    display: none
  }

  .mobile-only {
    display: inline-flex !important
  }

  .topbar-inner {
    padding: 10px 12px
  }

  .tabs {
    padding: 10px;
    margin-bottom: 10px;
    gap: 8px
  }

  .hero-minimal,
  .section-panel {
    margin-left: 10px;
    margin-right: 10px
  }

  .section-head {
    padding: 0 10px;
    align-items: stretch
  }

  .module-topbar-pro {
    flex-direction: column
  }

  .module-topbar-right {
    min-width: 100%;
    align-items: stretch
  }

  .module-progress-mini {
    max-width: 100%
  }

  .module-progress-mini span {
    text-align: left
  }
}

@media (min-width:993px) {

  .drawer,
  .drawer.open,
  .drawer-backdrop,
  .drawer-panel {
    display: none !important;
    pointer-events: none !important
  }
}

@media (max-width:768px) {
  body::before {
    background-size: 28px 28px
  }

  .orb-1,
  .orb-2 {
    width: 220px;
    height: 220px
  }

  .orb-3 {
    width: 170px;
    height: 170px;
    left: 50%;
    transform: translateX(-50%)
  }

  .brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px
  }

  .pill {
    font-size: .82rem;
    padding: 7px 10px
  }

  .theme-toggle-track {
    width: 74px;
    height: 42px
  }

  .theme-toggle-thumb {
    width: 32px;
    height: 32px
  }

  html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(32px)
  }

  .hero-minimal {
    padding: 18px;
    border-radius: 18px
  }

  .hero-title-minimal {
    font-size: clamp(2rem, 8vw, 3rem)
  }

  .hero-text-minimal {
    font-size: .95rem;
    line-height: 1.55
  }

  .hero-actions-minimal {
    flex-direction: column;
    align-items: stretch
  }

  .hero-actions-minimal .btn {
    width: 100%
  }

  .tabbtn {
    padding: 9px 12px;
    font-size: .92rem
  }

  .search-wrap {
    width: 100%
  }

  .section-panel {
    padding: 12px
  }

  .module-card-pro {
    padding: 14px;
    border-radius: 20px
  }

  .module-topbar-left {
    gap: 10px
  }

  .module-icon-pro {
    width: 46px;
    height: 46px;
    border-radius: 14px
  }

  .module-title-pro {
    font-size: 1.2rem
  }

  .module-content-header {
    flex-direction: column;
    align-items: flex-start
  }

  .resource-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35
  }

  .resource-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px
  }

  .resource-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap
  }

  .resource-click-tip {
    display: none !important
  }

  .click-badge {
    position: static;
    width: max-content;
    margin-top: 12px
  }

  .notice-item {
    padding: 12px
  }

  .mini-row {
    padding: 9px
  }

  .drawer-panel {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 12px;
    border-radius: 18px
  }

  .module-topbar-right {
    padding-right: 0 !important;
    padding-top: 56px !important;
    align-items: stretch
  }

  .module-toggle-top {
    top: 8px;
    right: 8px
  }

  .module-badges {
    justify-content: flex-start
  }
}

@media (max-width:560px) {
  .content {
    padding: 78px 8px 12px
  }

  .topbar-inner .d-flex.align-items-center.gap-2.flex-wrap {
    gap: 8px !important
  }

  .brand-link .lh-sm .fw-bold {
    font-size: .95rem
  }

  .small-label {
    font-size: .75rem
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .tabbtn {
    justify-content: center;
    width: 100%
  }

  .hero-minimal,
  .section-panel {
    margin-left: 8px;
    margin-right: 8px
  }

  .section-head {
    padding: 0 8px
  }

  .hero-minimal {
    padding: 16px
  }

  .pill {
    display: none
  }
}

@media (max-width:420px) {
  .content {
    padding: 74px 6px 12px
  }

  .topbar-inner {
    padding: 10px
  }

  .tabs {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px
  }

  .tabbtn {
    gap: 6px;
    padding: 9px 10px;
    font-size: .86rem
  }

  .hero-minimal,
  .section-panel {
    margin-left: 6px;
    margin-right: 6px
  }

  .module-title-pro {
    font-size: 1rem
  }

  .module-desc-pro {
    font-size: .9rem
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }
}
.hero-programas {
  margin-top: 10px;
}

/* TÍTULO */
.hero-programas-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.hero-programas-title i {
  color: var(--accent);
}

/* LISTA */
.hero-programas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ITEM */
.hero-programas-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;

  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--stroke);

  text-decoration: none;
  color: var(--text);

  transition: all .25s ease;
}

/* IZQUIERDA */
.prog-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prog-left i {
  font-size: 1.1rem;
  color: var(--accent);
}

/* TEXTO */
.prog-left span {
  font-weight: 700;
  letter-spacing: .2px;
}

/* FLECHA */
.prog-arrow {
  color: var(--muted-2);
  transition: all .25s ease;
}

/* HOVER PRO */
.hero-programas-list li a:hover {
  background: rgba(103, 164, 255, .10);
  border-color: rgba(103, 164, 255, .25);
  transform: translateX(4px);
}

.hero-programas-list li a:hover .prog-arrow {
  transform: translateX(4px);
  color: var(--accent);
}
.footer-copy {
  text-align: center;
  width: 100%;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted-2);
}
/* ========== NUEVO DISEÑO MINIMALISTA EN GRILLA ========== */
.modules-grid-pro {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.module-card-minimal {
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 20px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.module-card-minimal:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.module-header-minimal {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.module-icon-minimal {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.module-info-minimal {
  flex: 1;
  min-width: 0;
}

.module-badge-minimal {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 4px;
}

.module-title-minimal {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  line-height: 1.3;
  color: var(--text);
}

.module-desc-minimal {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.module-stats-minimal {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.stat-item i {
  font-size: 0.9rem;
}

.stat-value {
  font-weight: 700;
  color: var(--text);
}

.progress-minimal {
  margin-top: 4px;
}

.progress-bar-minimal {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill-minimal {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--good));
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-text-minimal {
  font-size: 0.7rem;
  color: var(--muted-2);
  margin-top: 6px;
  text-align: right;
}

.btn-module-minimal {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-module-minimal:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Modal para ver contenido del módulo */
.module-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.module-modal.open {
  opacity: 1;
  visibility: visible;
}

.module-modal-content {
  background: var(--bg-soft);
  border-radius: 28px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.module-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--stroke);
}

.module-modal-header h3 {
  margin: 0;
  font-weight: 800;
}

.close-modal {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--stroke);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .modules-grid-pro {
    grid-template-columns: 1fr;
  }
}
/* ========== RECURSOS DEL MODAL (contenido desde la base) ========== */
.close-modal {
  color: var(--text);
}

.modal-seccion {
  margin-bottom: 24px;
}

.modal-seccion-titulo {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.modal-seccion-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-recurso {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.modal-recurso:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}

.modal-recurso-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.modal-recurso-check {
  color: var(--muted-2);
  flex-shrink: 0;
}

.modal-recurso.visto .modal-recurso-check {
  color: var(--good);
}

/* ========== MARCA CENDEVS.PRO (colibrí) ========== */
.brand-badge-logo {
  background: none;
  box-shadow: none;
}

.brand-colibri {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(36, 70, 198, .25));
}

/* ========== PESTAÑAS: links externos separados ========== */
.tabs-enlaces {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-left: 12px;
  border-left: 1px solid var(--stroke);
}

.tabs-enlaces .github-link::after {
  content: "\F1C5"; /* bi-box-arrow-up-right */
  font-family: "bootstrap-icons";
  font-size: .75em;
  opacity: .6;
}

@media (max-width: 720px) {
  .tabs-enlaces {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    width: 100%;
  }
}

/* ========== SEGUIR DONDE QUEDÉ ========== */
.siguiente-recurso {
  margin: 8px 0 0;
  font-size: .8rem;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.siguiente-recurso:empty {
  display: none;
}
