:root {
  --teal: #056D84;
  --orange: #F39302;
  --pink: #DB2A54;
  --ivory: #F1ECE2;
  --night: #0D212F;
  --ink: #132936;
  --muted: #65727a;
  --line: rgba(13, 33, 47, 0.12);
  --surface: #ffffff;
  --soft-shadow: 0 18px 46px rgba(13, 33, 47, 0.11);
  --lift-shadow: 0 26px 60px rgba(13, 33, 47, 0.16);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Lato, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: rgba(13, 33, 47, 0.94);
  border-bottom: 1px solid rgba(243, 147, 2, 0.42);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  color: white;
  display: flex;
  font-weight: 800;
  gap: 14px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  height: 44px;
  object-fit: contain;
  width: 54px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 1.1rem;
  line-height: 1.05;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.nav a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 8px;
  padding: 9px 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-icon {
  display: none;
}

.nav-home,
.nav-account-mobile {
  display: none;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav a.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.nav-cta {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-logout,
.nav-mobile-logout {
  margin: 0;
}

.nav-logout button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 12px;
}

.nav-logout button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-mobile-logout {
  display: none;
}

.nav-cta__primary {
  align-items: center;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 8px;
  padding: 9px 16px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-cta__icon {
  display: none;
  height: 22px;
  width: auto;
}

.nav-cta__primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--teal);
}

.messages {
  display: grid;
  gap: 8px;
  padding: 12px clamp(18px, 5vw, 72px) 0;
}

.admin-main > .messages {
  padding: 0 0 16px;
}

.message {
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  padding: 12px 14px;
}

.message--success {
  border-left-color: var(--teal);
}

.breadcrumbs {
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  padding: 12px clamp(18px, 5vw, 72px);
}

.breadcrumbs ol {
  align-items: center;
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  max-width: none;
  min-width: 0;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
  white-space: nowrap;
}

.breadcrumbs ol::-webkit-scrollbar {
  display: none;
}

.breadcrumbs li {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 8px;
}

.breadcrumbs li + li::before {
  color: rgba(19, 41, 54, 0.34);
  content: "/";
  font-weight: 900;
}

.breadcrumbs a {
  color: var(--teal);
}

.breadcrumbs span[aria-current="page"] {
  color: var(--ink);
}

.hero {
  background: linear-gradient(rgba(13, 33, 47, 0.82), rgba(13, 33, 47, 0.92)), url("../img/fondo.62ee84d2182f.jpg") center / cover no-repeat;
  color: white;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  min-height: min(720px, calc(100vh - 76px));
  padding: clamp(44px, 8vw, 96px) clamp(18px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}

.hero__content {
  align-self: center;
  max-width: 820px;
}

.eyebrow {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.95;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.lead {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 680px;
}

.lead p {
  margin: 0 0 14px;
}

.lead p:last-child {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 11px 18px;
  transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.button:hover,
.course-card__footer a:hover {
  box-shadow: 0 12px 26px rgba(13, 33, 47, 0.18);
  transform: translateY(-1px);
}

.button--primary {
  background: var(--orange);
  color: var(--night);
}

.auth-shell {
  background: var(--night);
  color: white;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  min-height: calc(100vh - 76px);
  padding: clamp(36px, 7vw, 82px) clamp(18px, 5vw, 72px);
}

.auth-intro {
  align-self: center;
  max-width: 720px;
}

.auth-intro h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.auth-intro p:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  max-width: 560px;
}

.auth-card {
  align-self: center;
  background: white;
  border-top: 5px solid var(--orange);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  color: var(--ink);
  display: grid;
  gap: 16px;
  padding: 30px;
}

.auth-card h2 {
  margin-bottom: 0;
}

.auth-card form {
  display: grid;
  gap: 10px;
}

.auth-card label {
  font-weight: 900;
}

.auth-card input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.auth-card button {
  border: 0;
  cursor: pointer;
  font: inherit;
  margin-top: 8px;
}

.auth-note {
  background: rgba(5, 109, 132, 0.08);
  border: 1px solid rgba(5, 109, 132, 0.14);
  border-radius: 8px;
  color: var(--teal);
  font-weight: 800;
  margin: 0;
  padding: 10px 12px;
}

.auth-admin-link {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.auth-card .errornote {
  background: rgba(219, 42, 84, 0.08);
  border: 1px solid rgba(219, 42, 84, 0.2);
  border-radius: 8px;
  color: var(--pink);
  font-weight: 800;
  margin: 0;
  padding: 10px 12px;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: white;
}

.hero__panel {
  align-self: end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  display: grid;
  overflow: hidden;
}

.hero__panel > div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px;
}

.hero__panel > div:last-child {
  border-bottom: 0;
}

.metric {
  color: var(--orange);
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.landing-capabilities {
  background: white;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-capabilities a {
  border-right: 1px solid var(--line);
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px clamp(16px, 4vw, 34px);
  transition: border-color 0.18s ease;
}

.landing-capabilities a:last-child {
  border-right: 0;
}

.landing-capabilities a:hover {
  border-top-color: var(--teal);
}

.landing-capabilities a:hover .cap-icon {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

.cap-icon {
  align-items: center;
  background: rgba(5, 109, 132, 0.1);
  border-radius: 10px;
  color: var(--teal);
  display: flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.18s ease;
  width: 48px;
}

.landing-capabilities strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.landing-capabilities span:not(.cap-icon) {
  color: var(--muted);
}

.section,
.page-heading,
.course-hero,
.demo-strip,
.lesson-shell {
  padding: clamp(32px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.section--tight {
  padding-top: 16px;
}

.section--white {
  background: white;
}

.section__header {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section__heading {
  margin-bottom: 0;
}

.section__heading h2 {
  display: block;
  margin-top: 4px;
}

.section__action {
  flex-shrink: 0;
}

.course-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-card,
.empty-state,
.module,
.course-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.course-card::before,
.module::before,
.lesson-block::before {
  background: var(--teal);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.course-card:hover {
  border-color: rgba(5, 109, 132, 0.24);
  box-shadow: var(--lift-shadow);
  transform: translateY(-3px);
}

.course-card__top {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.course-card__meta {
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0;
  text-transform: uppercase;
}

.course-card__icon {
  align-items: center;
  background: rgba(5, 109, 132, 0.1);
  border-radius: 8px;
  color: var(--teal);
  display: flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.course-card h3,
.course-card h2 {
  font-size: 1.4rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.course-card p,
.module p,
.empty-state p {
  color: var(--muted);
}

.course-card__footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.course-card__footer a {
  background: var(--teal);
  border-radius: 8px;
  color: white;
  font-weight: 800;
  padding: 8px 12px;
}

.progress {
  background: rgba(5, 109, 132, 0.12);
  height: 10px;
  margin: 16px 0;
}

.progress span {
  background: var(--teal);
  display: block;
  height: 100%;
}

.page-heading {
  background: var(--night);
  color: white;
}

.page-heading h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0;
}

.course-hero {
  background: var(--night);
  color: white;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.course-summary {
  align-self: end;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: white;
  display: grid;
  gap: 10px;
  padding: 22px;
  backdrop-filter: blur(10px);
}

.enroll-form {
  display: grid;
}

.enroll-form .button {
  border: 0;
  cursor: pointer;
  font: inherit;
  width: 100%;
}

.module-list {
  display: grid;
  gap: 18px;
}

.module {
  display: grid;
  gap: 20px;
  grid-template-columns: 68px 1fr;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.module__number {
  align-items: center;
  background: var(--pink);
  border-radius: 8px;
  color: white;
  display: flex;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.lesson-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.lesson-list li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 110px 1fr auto;
  padding: 12px 0;
}

.lesson-list span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-list em {
  color: var(--muted);
  font-style: normal;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  padding: 24px;
}

.audience-card span {
  color: var(--pink);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.audience-card .cap-icon {
  background: rgba(5, 109, 132, 0.1);
  border-radius: 10px;
  color: var(--teal);
  display: flex;
  height: 48px;
  margin-bottom: 16px;
  width: 48px;
}

.audience-card p {
  color: var(--muted);
}

.audience-card a {
  color: var(--teal);
  font-weight: 900;
}

.feature {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.feature__icon {
  border-radius: 10px;
  height: 56px;
  margin-bottom: 14px;
  object-fit: cover;
  width: 56px;
}

.feature span {
  color: var(--teal);
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.feature p {
  color: var(--muted);
  margin-bottom: 0;
}

.quick-access {
  align-items: center;
  background: none;
  color: black;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.quick-access h2 {
  margin-bottom: 0;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.status-grid div {
  background: var(--ivory);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 22px;
}

.status-grid strong {
  color: var(--night);
  font-size: 1.8rem;
  line-height: 1;
}

.status-grid span {
  color: var(--muted);
}

.filter-bar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) minmax(160px, 220px) auto;
  padding: 16px;
}

.filter-bar input,
.filter-bar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.inline-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.inline-logout {
  display: inline-flex;
  margin: 0;
}

.inline-logout button {
  cursor: pointer;
  font: inherit;
}

.inline-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.comment--answer {
  border-left: 4px solid var(--teal);
}

.comment p {
  color: var(--muted);
  margin: 4px 0 0;
}

.lead-text {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.lead-text p {
  margin: 0 0 18px;
}

.lead-text p:last-child {
  margin-bottom: 0;
}

.path-roadmap {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.path-step {
  display: grid;
  gap: 18px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.path-step__number {
  align-items: center;
  background: var(--night);
  border-radius: 8px;
  color: white;
  display: flex;
  font-size: 1.4rem;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.path-step__body {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  padding: 24px;
}

.path-step__header {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.path-step__header span {
  color: var(--pink);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.path-step__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.path-step__actions .button {
  min-width: 138px;
}

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

.path-module-grid section {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.path-module-grid h3 {
  font-size: 1rem;
}

.path-module-grid ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.path-module-grid li {
  color: var(--muted);
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.path-module-grid li span {
  color: var(--teal);
  font-weight: 800;
  white-space: nowrap;
}

.demo-strip {
  align-items: center;
  background: white;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.demo-strip h2 {
  margin-bottom: 0;
}

.button--light {
  background: white;
  border-color: var(--line);
  color: var(--night);
}

.lesson-shell {
  background: var(--ivory);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.lesson-sidebar {
  align-self: start;
  background: var(--night);
  border-radius: 8px;
  color: white;
  padding: 28px;
}

.lesson-sidebar h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.lesson-sidebar p {
  color: rgba(255, 255, 255, 0.82);
}

.lesson-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.video-demo,
.lesson-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  padding: 24px;
}

.video-demo {
  align-items: center;
  aspect-ratio: 16 / 8;
  background: var(--teal);
  color: white;
  display: grid;
  justify-items: center;
  min-height: 260px;
  overflow: hidden;
  text-align: center;
}

.video-demo strong {
  font-size: 1.6rem;
}

.video-demo span {
  color: rgba(255, 255, 255, 0.78);
}

.play-mark {
  align-items: center;
  background: var(--orange);
  border-radius: 999px;
  color: var(--night);
  display: flex;
  font-size: 1.6rem;
  font-weight: 900;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.lesson-block {
  overflow: hidden;
  position: relative;
}

.lesson-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-table-wrap {
  overflow-x: auto;
}

.demo-table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
}

.demo-table th,
.demo-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.demo-table th {
  color: var(--teal);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 9px;
}

.status-pill--pending {
  background: rgba(243, 147, 2, 0.18);
  color: #7b4800;
}

.status-pill--done {
  background: rgba(5, 109, 132, 0.16);
  color: var(--teal);
}

.status-pill--review {
  background: rgba(219, 42, 84, 0.14);
  color: var(--pink);
}

.site-footer {
  align-items: stretch;
  background: var(--ivory);
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.footer-left {
  align-items: center;
  background: transparent;
  display: flex;
  flex-shrink: 0;
  gap: 26px;
  padding: 24px clamp(18px, 4vw, 40px);
}

.footer-logo {
  height: auto;
  mix-blend-mode: multiply;
  width: 160px;
}

.footer-addr {
  color: var(--night);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.6;
}

.footer-band {
  align-items: center;
  background: url("../img/footer/footer-band.e413fa03a0cc.png") no-repeat left center;
  background-size: 100% 100%;
  display: flex;
  flex: 1;
  gap: 24px;
  justify-content: space-between;
  margin-left: 0;
  min-width: 280px;
  padding: 0 clamp(18px, 4vw, 40px) 0 180px;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-links a {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding-left: 16px;
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a::before {
  color: rgba(255, 255, 255, 0.5);
  content: "|";
  left: 0;
  position: absolute;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--orange);
  outline: 0;
}

.hr-link {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 12px;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.hr-link img {
  height: auto;
  width: 40px;
}

.hr-link:hover,
.hr-link:focus-visible {
  outline: 0;
  transform: translateY(-2px);
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  flex: 1 0 auto;
  align-items: stretch;
}

.admin-sidebar {
  background: var(--night);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding: 22px clamp(14px, 2vw, 22px);
  position: sticky;
  top: 0;
}

.admin-menu-toggle,
.admin-mobile-backdrop,
.admin-mobile-menu-button {
  display: none;
}

.admin-sidebar__brand {
  align-items: center;
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar__brand img {
  height: 42px;
  width: auto;
}

.admin-sidebar__brand h1 {
  color: white;
  font-size: 1.3rem;
  line-height: 1.05;
  margin: 0;
}

.admin-sidebar__brand .eyebrow {
  color: var(--orange);
  margin: 0 0 2px;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 0 auto;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section__title {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
  padding: 0 12px;
  text-transform: uppercase;
}

.admin-menu a {
  align-items: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  font-weight: 700;
  gap: 12px;
  padding: 9px 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-menu a svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.admin-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-menu a:hover svg {
  opacity: 1;
}

.admin-menu a.active {
  background: var(--teal);
  color: #fff;
}

.admin-menu a.active svg {
  opacity: 1;
}

.nav-section--mobile-session {
  display: none;
}

.admin-mobile-logout {
  margin: 0;
}

.admin-mobile-logout button {
  align-items: center;
  background: rgba(219, 42, 84, 0.14);
  border: 1px solid rgba(219, 42, 84, 0.24);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 800;
  gap: 10px;
  min-height: 38px;
  padding: 9px 12px;
  white-space: nowrap;
}

.admin-mobile-logout button:hover {
  background: var(--pink);
}

.nav-section__tech {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.86rem;
}

.admin-sidebar__user {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.admin-sidebar__avatar {
  align-items: center;
  background: var(--teal);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 1rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.admin-sidebar__userinfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-sidebar__name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar__logout {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  text-decoration: none;
}

.admin-sidebar__logout:hover {
  color: var(--pink);
}

.admin-main {
  min-width: 0;
  padding: clamp(22px, 4vw, 44px);
}

.admin-page {
  padding: clamp(22px, 4vw, 44px);
}

.admin-topline {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.admin-topline h2 {
  margin-bottom: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-actions--left {
  justify-content: flex-start;
  margin-top: 18px;
}

.admin-actions form {
  display: inline-flex;
}

.admin-actions button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.admin-searchbar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
  padding: 12px;
}

.admin-searchbar input,
.admin-searchbar select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-reply-form textarea,
.admin-reply-form select,
.admin-reply-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.admin-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  padding: 18px;
}

.admin-form--wide {
  grid-template-columns: 1fr;
}

.admin-form label {
  color: var(--ink);
  display: grid;
  font-weight: 900;
  gap: 7px;
}

.admin-form textarea,
.admin-reply-form textarea {
  resize: vertical;
}

.admin-check-label {
  align-items: center;
  display: flex !important;
  flex-direction: row;
  gap: 10px;
}

.admin-check-label input {
  min-height: 0;
  width: auto;
}

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

.admin-metrics article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 118px;
  padding: 16px;
}

.admin-metrics span {
  color: var(--teal);
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
}

.admin-metrics p {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0;
}

.admin-board {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-board--spaced {
  margin-top: 18px;
}

.admin-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  min-width: 0;
  padding: 18px;
}

.admin-panel--wide {
  grid-column: 1 / -1;
}

.admin-panel header {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-panel header h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.admin-panel header a {
  color: var(--teal);
  flex: 0 0 auto;
  font-weight: 900;
}

.admin-table {
  overflow-x: auto;
}

.admin-table table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--pink);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table td a {
  color: var(--teal);
  font-weight: 900;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-list a,
.admin-list p {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 12px;
}

.admin-list-row {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-list-row a {
  min-width: 0;
}

.admin-list-row form {
  display: grid;
}

.admin-list-row button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 8px 10px;
}

.admin-reply-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-reply-form button {
  border: 0;
  cursor: pointer;
  font: inherit;
  justify-self: start;
}

.inline-admin-form {
  display: inline-flex;
  gap: 6px;
  margin: 2px;
  vertical-align: top;
}

.inline-admin-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 34px;
  padding: 6px 8px;
  width: 130px;
}

.inline-admin-form button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 6px 8px;
}

.admin-list strong {
  color: var(--ink);
}

.admin-list span,
.admin-list p {
  color: var(--muted);
}

.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-checks span {
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 10px;
}

.admin-checks .is-ok {
  background: rgba(5, 109, 132, 0.14);
  color: var(--teal);
}

.admin-checks .is-bad {
  background: rgba(219, 42, 84, 0.12);
  color: var(--pink);
}

.admin-metrics--courses {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-filters {
  align-items: end;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto;
  margin-bottom: 18px;
  padding: 16px;
}

.admin-filters__search {
  grid-column: 1 / -1;
}

.admin-filters label {
  color: var(--muted);
  display: grid;
  font-size: 0.74rem;
  font-weight: 900;
  gap: 6px;
  text-transform: uppercase;
}

.admin-filters input,
.admin-filters select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 8px 12px;
  width: 100%;
}

.admin-filters__actions {
  display: flex;
  gap: 8px;
}

.admin-result-count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.course-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.course-link strong {
  color: var(--night);
}

.course-path {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.col-actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.row-action {
  align-items: center;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
  width: 34px;
}

.row-action:hover {
  background: var(--night);
  border-color: var(--night);
  color: #fff;
}

.row-action--success:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.row-action--danger:hover {
  background: var(--pink);
  border-color: var(--pink);
}

.empty-state {
  padding: 32px 16px;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 12px;
}

.admin-pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.page-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  padding: 8px 16px;
  text-decoration: none;
}

.page-btn:hover:not(.page-btn--disabled) {
  background: var(--night);
  border-color: var(--night);
  color: #fff;
}

.page-btn--disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.page-info {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-facts {
  display: grid;
  gap: 8px;
}

.admin-facts p {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 12px;
}

.admin-facts strong {
  color: var(--ink);
}

.admin-facts span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.agent-enroll-form {
  display: grid;
  gap: 12px;
}

.agent-enroll-form label {
  display: grid;
  font-weight: 900;
  gap: 7px;
}

.agent-enroll-form input,
.agent-enroll-form select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.agent-enroll-form button {
  border: 0;
  cursor: pointer;
  font: inherit;
  justify-self: start;
}

.quick-course-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-course-grid > div {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.review-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  margin-bottom: 14px;
}

.review-form {
  display: grid;
  gap: 12px;
}

.review-form label {
  display: grid;
  font-weight: 900;
  gap: 7px;
}

.review-form input,
.review-form select,
.review-form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.content-editor-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.review-form textarea {
  resize: vertical;
}

.review-form button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.admin-inline-section {
  margin-top: 14px;
}

.admin-path-board {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
}

/* ── Constructor de trayectos (drag & drop) ── */
.dnd-board {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.dnd-col {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.dnd-col--path {
  background: #fff;
}

.dnd-col__title {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 1.05rem;
  font-weight: 900;
  gap: 10px;
  margin: 0 0 4px;
}

.dnd-col__title span {
  background: var(--night);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  min-width: 26px;
  padding: 2px 8px;
  text-align: center;
}

.dnd-hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 14px;
}

.dnd-source,
.dnd-target {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 80px;
}

.dnd-target {
  min-height: 160px;
}

.dnd-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: grab;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dnd-item:hover {
  border-color: rgba(5, 109, 132, 0.4);
  box-shadow: var(--soft-shadow);
}

.dnd-item--path {
  align-items: center;
  flex-direction: row;
  gap: 12px;
}

.dnd-item__order {
  align-items: center;
  background: var(--teal);
  border-radius: 6px;
  color: #fff;
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.dnd-item__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.dnd-item__title {
  color: var(--ink);
  font-weight: 800;
}

.dnd-item__meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dnd-item__remove {
  display: inline-flex;
}

.dnd-item.dnd-dragging {
  opacity: 0.4;
}

.dnd-item.dnd-over,
.dnd-target .dnd-item.dnd-over {
  border-color: var(--teal);
  border-style: dashed;
}

.dnd-dropzone {
  border: 2px dashed var(--line);
  color: var(--muted);
  font-style: italic;
  min-height: 120px;
  padding: 40px 14px;
  text-align: center;
}

.dnd-empty {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 14px;
  text-align: center;
}

#reorder-form {
  margin-top: 16px;
}

/* ── Trayectos (página pública) ── */
.eyebrow--light {
  color: var(--orange);
}

.path-hero {
  background: var(--night);
  color: #fff;
  padding: clamp(40px, 8vw, 80px) clamp(18px, 5vw, 72px);
}

.path-hero__inner {
  margin: 0;
  max-width: 720px;
}

.path-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 14px;
}

.path-hero__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 640px;
}

.path-hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 28px;
}

.path-hero__stats strong {
  color: var(--orange);
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.path-hero__stats span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.path-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.path-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.path-card:hover {
  box-shadow: var(--lift-shadow);
  transform: translateY(-3px);
}

.path-card__head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.path-card__icon {
  border-radius: 10px;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.path-card__level {
  background: rgba(5, 109, 132, 0.12);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 12px;
  text-transform: uppercase;
}

.path-card__count {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.path-card__title {
  color: var(--night);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.path-card__desc {
  color: var(--muted);
  flex: 1;
  margin-bottom: 12px;
}

.path-card__hours {
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.path-card__foot {
  margin-top: auto;
}

.path-empty {
  grid-column: 1 / -1;
}

/* ── Detalle de curso (admin) ── */
.course-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.course-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 10px;
}

.course-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
}

.course-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-header__actions form {
  display: inline-flex;
}

.course-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.course-metrics article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.course-metrics span {
  color: var(--teal);
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.course-metrics p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

/* Tabs */
.tabs {
  display: flex;
  flex-direction: column;
}

.tabs > input[type="radio"] {
  display: none;
}

.tab-nav {
  border-bottom: 2px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 22px;
}

.tab-nav label {
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 12px 18px;
  transition: all 0.15s ease;
}

.tab-nav label:hover {
  background: rgba(13, 33, 47, 0.04);
  color: var(--ink);
}

.tab-panel {
  display: none;
}

#tab-resumen:checked ~ .tab-panels .panel-resumen,
#tab-contenido:checked ~ .tab-panels .panel-contenido,
#tab-cohortes:checked ~ .tab-panels .panel-cohortes,
#tab-evaluaciones:checked ~ .tab-panels .panel-evaluaciones,
#tab-inscripciones:checked ~ .tab-panels .panel-inscripciones {
  display: block;
}

#tab-resumen:checked ~ .tab-nav label[for="tab-resumen"],
#tab-contenido:checked ~ .tab-nav label[for="tab-contenido"],
#tab-cohortes:checked ~ .tab-nav label[for="tab-cohortes"],
#tab-evaluaciones:checked ~ .tab-nav label[for="tab-evaluaciones"],
#tab-inscripciones:checked ~ .tab-nav label[for="tab-inscripciones"] {
  background: #fff;
  border-color: var(--line);
  color: var(--teal);
}

/* Malla del curso y evaluaciones */
.module-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
}

.module-card[open] {
  background: #fff;
}

.module-card__head {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 14px 16px;
}

.module-card__head::-webkit-details-marker {
  display: none;
}

.module-card__order {
  background: var(--night);
  border-radius: 6px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 4px 8px;
}

.module-card__title {
  color: var(--ink);
  flex: 1;
  font-size: 1.05rem;
  font-weight: 800;
}

.module-card__count {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.module-card__chev {
  color: var(--muted);
  transition: transform 0.2s ease;
}

.module-card[open] .module-card__chev {
  transform: rotate(180deg);
}

.module-card__body {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.module-card__desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}

.module-card__foot {
  align-items: center;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
}

.lesson-list {
  display: flex;
  flex-direction: column;
}

.lesson-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  padding: 10px 4px;
}

.lesson-row:last-child {
  border-bottom: 0;
}

.lesson-row__title {
  align-items: center;
  color: var(--ink);
  display: flex;
  flex: 1;
  font-weight: 700;
  gap: 10px;
  text-decoration: none;
}

.lesson-row__title:hover {
  color: var(--teal);
}

.lesson-row__title--static {
  cursor: default;
}

.lesson-row__title--static:hover {
  color: var(--ink);
}

.lesson-row__order {
  background: var(--ivory);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 2px 6px;
}

.lesson-row__type,
.lesson-row__min,
.lesson-row__res {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.lesson-row__actions {
  display: flex;
  gap: 6px;
}

.lesson-row__actions .inline-form,
.module-card__foot .inline-form,
.list-row__actions .inline-form {
  display: inline-flex;
  margin: 0;
}

.empty-inline {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 10px 4px;
}

.panel-link {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.panel-link:hover {
  text-decoration: underline;
}

.link-btn {
  background: none;
  border: 0;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0;
}

.link-btn--danger {
  color: var(--pink);
}

.list-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 0;
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.list-row__main strong {
  color: var(--ink);
}

.list-row__main span {
  color: var(--muted);
  font-size: 0.84rem;
}

.list-row__actions {
  display: flex;
  gap: 6px;
}

@media (max-width: 860px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .topbar {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(13, 33, 47, 0.12);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 40px rgba(13, 33, 47, 0.18);
    backdrop-filter: blur(18px);
    bottom: 0;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: center;
    left: 0;
    min-height: 76px;
    padding: 10px max(10px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right));
    position: fixed;
    right: 0;
    top: auto;
    z-index: 100;
  }

  .brand {
    display: none;
  }

  .nav {
    align-items: end;
    display: grid;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 4px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: center;
    max-width: 560px;
    width: 100%;
  }

  .nav a {
    border: 0;
    border-radius: 14px;
    color: rgba(19, 41, 54, 0.66);
    flex: initial;
    flex-direction: column;
    font-size: 0.66rem;
    gap: 4px;
    justify-content: center;
    min-height: 54px;
    padding: 6px 4px;
    width: 100%;
  }

  .nav-home,
  .nav-account-mobile {
    display: inline-flex;
  }

  .nav-icon {
    display: block;
    height: 22px;
    width: 22px;
  }

  .nav-text {
    display: block;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav a.active {
    background: rgba(5, 109, 132, 0.1);
    color: var(--teal);
  }

  .nav a:hover {
    background: rgba(5, 109, 132, 0.08);
    color: var(--teal);
  }

  .nav-account-mobile {
    background: transparent;
    box-shadow: none;
    color: rgba(19, 41, 54, 0.66);
    min-height: 54px;
    transform: none;
  }

  .nav-account-mobile .nav-icon {
    height: 22px;
    width: 22px;
  }

  .nav-account-mobile .nav-text {
    color: inherit;
  }

  .nav-account-mobile:hover {
    background: rgba(5, 109, 132, 0.08);
    color: var(--teal);
  }

  .nav-cta {
    display: none;
  }

  .admin-dashboard .admin-topline,
  .admin-dashboard .admin-metrics {
    display: none;
  }

  .hero,
  .course-hero,
  .auth-shell,
  .course-grid,
  .feature-grid,
  .audience-grid,
  .landing-capabilities,
  .status-grid,
  .path-step,
  .path-module-grid,
  .lesson-shell,
  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .path-step__header {
    display: grid;
  }

  .path-step__actions {
    justify-content: start;
  }

  .lesson-list li,
  .module {
    grid-template-columns: 1fr;
  }

  .admin-shell,
  .admin-board,
  .admin-form,
  .admin-searchbar,
  .quick-course-grid,
  .review-grid,
  .content-editor-grid,
  .admin-path-board,
  .dnd-board {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    padding: 12px 14px;
  }

  .admin-sidebar__brand {
    border: 0;
    flex-shrink: 0;
    padding: 0;
  }

  .admin-menu {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
  }

  .nav-section {
    flex-direction: row;
    flex-shrink: 0;
  }

  .nav-section--mobile-session {
    display: flex;
  }

  .nav-section__title {
    display: none;
  }

  .admin-menu a {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .admin-sidebar__user {
    display: none;
  }

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

  .admin-metrics--courses {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .path-grid {
    grid-template-columns: 1fr;
  }

  .admin-filters {
    grid-template-columns: 1fr 1fr;
  }

  .admin-filters__search {
    grid-column: 1 / -1;
  }

  .admin-filters__actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    align-items: center;
    min-height: 76px;
  }

  .nav {
    gap: 4px;
  }

  .nav a {
    min-height: 54px;
    padding: 6px 3px;
  }

  .hero,
  .auth-shell,
  .section,
  .page-heading,
  .course-hero,
  .demo-strip,
  .lesson-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-shell {
    gap: 20px;
    min-height: auto;
    padding-top: 28px;
  }

  .auth-intro h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1;
  }

  .auth-intro p:last-child {
    font-size: 1rem;
  }

  .auth-card {
    padding: 22px 18px;
    width: 100%;
  }

  .breadcrumbs {
    padding: 10px 16px;
  }

  .breadcrumbs li {
    font-size: 0.78rem;
  }

  .hero {
    gap: 24px;
    padding-bottom: 28px;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }

  .lead {
    font-size: 1rem;
  }

  .actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
  }

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

  .demo-strip {
    align-items: stretch;
    display: grid;
  }

  .quick-access,
  .section__header,
  .admin-topline {
    align-items: stretch;
    display: grid;
    justify-content: stretch;
  }

  .section__header {
    gap: 6px;
    justify-items: start;
    margin-bottom: 18px;
  }

  .section__header > * {
    min-width: 0;
    text-align: left;
    width: 100%;
  }

  .quick-actions,
  .admin-actions {
    display: grid;
  }

  .lesson-shell {
    min-height: 0;
    padding-top: 18px;
  }

  .lesson-sidebar,
  .video-demo,
  .lesson-block {
    padding: 18px;
  }

  .video-demo {
    aspect-ratio: auto;
    min-height: 220px;
  }

  .hero__panel {
    align-self: stretch;
  }

  .hero__panel > div,
  .course-card,
  .empty-state,
  .module,
  .course-summary {
    padding: 18px;
  }

  .course-hero {
    gap: 18px;
    padding-top: 28px;
  }

  .course-summary {
    align-self: stretch;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(13, 33, 47, 0.08);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
    color: var(--ink);
    gap: 8px;
  }

  .course-summary > span:not(.status-pill) {
    align-items: center;
    background: rgba(5, 109, 132, 0.08);
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    font-weight: 900;
    min-height: 38px;
    padding: 8px 10px;
  }

  .course-summary .enroll-form {
    margin-top: 6px;
  }

  .course-summary .button {
    min-height: 50px;
  }

  .course-summary .button--light {
    background: rgba(5, 109, 132, 0.1);
    border-color: rgba(5, 109, 132, 0.16);
    color: var(--teal);
  }

  .course-card {
    min-height: 0;
  }

  .feature,
  .feature h3,
  .feature p {
    text-align: left;
  }

  .admin-main {
    padding: 16px;
  }

  .admin-metrics,
  .admin-list-row {
    grid-template-columns: 1fr;
  }

  .admin-metrics--courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .course-header__actions {
    width: 100%;
  }

  .tab-nav label {
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }

  .admin-metrics article {
    min-height: 0;
  }

  .course-card__footer {
    align-items: stretch;
    gap: 12px;
  }

  .course-card__footer a {
    text-align: center;
  }
}

@media (max-width: 460px) {
  .topbar {
    flex-wrap: nowrap;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .nav a {
    text-align: center;
  }

  .site-footer {
    background: var(--teal);
  }

  .footer-left {
    display: none;
  }

  .footer-band {
    background: var(--teal);
    background-image: none;
    flex-direction: column;
    gap: 16px;
    margin-left: 0;
    padding: 26px 20px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .course-card__footer {
    display: grid;
  }

  .lesson-list li {
    gap: 4px;
  }
}

@media (max-width: 860px) {
  html,
  body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    width: 100% !important;
  }

  body .topbar {
    align-items: center !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(13, 33, 47, 0.12) !important;
    border-bottom: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    bottom: 0 !important;
    box-shadow: 0 -18px 42px rgba(13, 33, 47, 0.2) !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    justify-content: center !important;
    left: 0 !important;
    min-height: 78px !important;
    padding: 10px max(10px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right)) !important;
    position: fixed !important;
    right: 0 !important;
    top: auto !important;
    z-index: 1000 !important;
  }

  body .topbar .brand,
  body .topbar .nav-cta {
    display: none !important;
  }

  body .topbar .nav {
    align-items: end !important;
    display: grid !important;
    flex: 1 1 auto !important;
    gap: 2px !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    justify-items: center !important;
    max-width: 560px !important;
    width: 100% !important;
  }

  body .topbar .nav a,
  body .topbar .nav-mobile-logout button,
  body .topbar .nav-home,
  body .topbar .nav-account-mobile {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 16px !important;
    color: rgba(19, 41, 54, 0.68) !important;
    display: inline-flex !important;
    flex-direction: column !important;
    font-size: 0.65rem !important;
    font-weight: 900 !important;
    gap: 5px !important;
    justify-content: center !important;
    min-height: 54px !important;
    padding: 6px 2px !important;
    text-align: center !important;
    width: 100% !important;
  }

  body .topbar .nav-mobile-logout {
    display: block !important;
    width: 100% !important;
  }

  body .topbar .nav-mobile-logout button {
    cursor: pointer !important;
    font: inherit !important;
  }

  body .topbar .nav-icon {
    display: block !important;
    height: 23px !important;
    width: 23px !important;
  }

  body .topbar .nav-text {
    display: block !important;
    font-size: 0.64rem !important;
    line-height: 1 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body .topbar .nav a.active {
    background: rgba(5, 109, 132, 0.1) !important;
    color: var(--teal) !important;
  }

  body .topbar .nav-account-mobile {
    background: transparent !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    color: rgba(19, 41, 54, 0.68) !important;
    min-height: 54px !important;
    transform: none !important;
  }

  body .topbar .nav-account-mobile .nav-icon {
    height: 23px !important;
    width: 23px !important;
    stroke-width: 2 !important;
  }

  body .topbar .nav-account-mobile .nav-text {
    color: inherit !important;
  }

  body > .site-footer {
    display: none !important;
  }
}

@media (max-width: 700px) {
  main,
  .breadcrumbs,
  .auth-shell,
  .auth-card,
  .auth-card form,
  .hero,
  .section,
  .page-heading,
  .course-hero,
  .course-summary,
  .module-list,
  .module,
  .enroll-form,
  .actions,
  .quick-actions {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .course-hero,
  .section,
  .page-heading,
  .hero {
    width: 100% !important;
  }

  .course-hero h1,
  .auth-shell h1,
  .auth-card,
  .auth-card input,
  .auth-card button,
  .course-hero .lead,
  .course-summary,
  .course-summary span,
  .button,
  .enroll-form button {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .course-summary,
  .enroll-form,
  .enroll-form .button {
    width: 100% !important;
  }
}

@media (max-width: 860px) {
  .admin-shell {
    display: block !important;
  }

  .admin-sidebar {
    background: transparent !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    color: white !important;
    display: block !important;
    left: 0 !important;
    overflow: visible !important;
    padding: 0 12px !important;
    pointer-events: none !important;
    position: fixed !important;
    right: 0 !important;
    top: auto !important;
    z-index: 1100 !important;
  }

  .admin-sidebar__brand {
    display: none !important;
  }

  .admin-mobile-menu-button {
    align-items: center !important;
    background: var(--night) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 34px rgba(13, 33, 47, 0.28) !important;
    color: #fff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    gap: 9px !important;
    justify-content: center !important;
    left: 50% !important;
    min-height: 46px !important;
    padding: 11px 18px !important;
    pointer-events: auto !important;
    position: relative !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
  }

  .admin-mobile-backdrop {
    background: rgba(13, 33, 47, 0.42) !important;
    bottom: 0 !important;
    display: none !important;
    left: 0 !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    z-index: 1090 !important;
  }

  .admin-menu-toggle:checked ~ .admin-mobile-backdrop {
    display: block !important;
  }

  .admin-sidebar .admin-menu {
    background: var(--night) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    bottom: calc(142px + env(safe-area-inset-bottom)) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38) !important;
    display: none !important;
    flex-direction: column !important;
    gap: 14px !important;
    left: 12px !important;
    max-height: min(68vh, 540px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 16px !important;
    pointer-events: auto !important;
    position: fixed !important;
    right: 12px !important;
    scrollbar-width: thin !important;
    z-index: 1101 !important;
  }

  .admin-menu-toggle:checked ~ .admin-sidebar .admin-menu {
    display: flex !important;
  }

  .admin-sidebar .nav-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: grid !important;
    flex-direction: column !important;
    flex-shrink: 1 !important;
    gap: 6px !important;
    padding-bottom: 12px !important;
  }

  .admin-sidebar .nav-section:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .admin-sidebar .nav-section__title {
    color: rgba(255, 255, 255, 0.42) !important;
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    margin: 0 0 4px !important;
    text-transform: uppercase !important;
  }

  .admin-sidebar .admin-menu a,
  .admin-sidebar .admin-mobile-logout button {
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.86) !important;
    justify-content: flex-start !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    width: 100% !important;
  }

  .admin-sidebar .admin-menu a.active {
    background: var(--teal) !important;
    color: #fff !important;
  }

  .admin-sidebar__user {
    display: none !important;
  }

  .admin-main {
    padding-top: 18px !important;
  }
}
