:root {
  color-scheme: dark;
  --ink: #050505;
  --panel: #0d0d0d;
  --panel-2: #15130e;
  --paper: #f3efe6;
  --muted: #aaa59a;
  --gold: #d6ad3a;
  --gold-soft: #8f7128;
  --line: rgba(214, 173, 58, .25);
  --line-white: rgba(255, 255, 255, .12);
  --ok: #88bd87;
  --danger: #ef8a74;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip { position: fixed; left: 1rem; top: -6rem; z-index: 99; background: var(--paper); color: var(--ink); padding: .8rem 1rem; }
.skip:focus { top: 1rem; }

.topbar { position: sticky; top: 0; z-index: 20; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 max(1.25rem, calc((100vw - var(--max)) / 2)); background: rgba(5,5,5,.94); border-bottom: 1px solid var(--line-white); backdrop-filter: blur(14px); }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 700; letter-spacing: .2em; white-space: nowrap; }
.wordmark img { width: 34px; height: 34px; object-fit: contain; }
.wordmark i { display: block; height: 20px; width: 1px; background: var(--gold); }
.wordmark small { font-size: .7rem; letter-spacing: .12em; color: var(--muted); }
.topnav { display: flex; align-items: center; gap: 1.35rem; }
.topnav a { color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.topnav a:hover, .topnav a:focus-visible { color: var(--paper); }
.topnav a.button { color: #070706; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid var(--gold); padding: .75rem 1rem; background: var(--gold); color: #070706; text-decoration: none; font-weight: 700; cursor: pointer; }
.button.secondary { background: transparent; color: var(--paper); border-color: var(--line-white); }
.button.small { min-height: 38px; padding: .5rem .8rem; font-size: .85rem; }
.button:focus-visible, .module-link:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-white); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 79% 28%, rgba(214,173,58,.19), transparent 24%), linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.055) 50%, transparent 50.2%); pointer-events: none; }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; min-height: 690px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); align-items: end; gap: 4rem; padding: 7rem 1.25rem 4rem; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 880px; margin-bottom: 1.5rem; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(3rem, 7vw, 6.8rem); line-height: .93; letter-spacing: -.055em; }
h1 em { color: var(--gold); font-weight: 400; }
.lead { max-width: 720px; color: #d5d0c6; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.spec-card { align-self: end; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(214,173,58,.1), rgba(255,255,255,.02)); padding: 1.5rem; }
.spec-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.spec-card div { padding: 1rem 0; border-bottom: 1px solid var(--line-white); }
.spec-card div:nth-last-child(-n+2) { border-bottom: 0; }
.spec-card dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.spec-card dd { margin: .25rem 0 0; font-weight: 700; }

.section { max-width: var(--max); margin: 0 auto; padding: 5.5rem 1.25rem; }
.section-head { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.section-index { color: var(--gold); font-size: .76rem; letter-spacing: .16em; }
h2 { max-width: 850px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2.1rem, 4.2vw, 4rem); line-height: 1.05; letter-spacing: -.035em; }
.section-copy { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.outcomes { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-white); }
.outcomes article { min-height: 210px; padding: 1.4rem; border-right: 1px solid var(--line-white); }
.outcomes article:last-child { border-right: 0; }
.outcomes span { color: var(--gold); font-size: .75rem; }
.outcomes h3 { margin: 2.5rem 0 .65rem; font-size: 1.05rem; }
.outcomes p { color: var(--muted); font-size: .92rem; }

.curriculum { background: #090909; border-top: 1px solid var(--line-white); border-bottom: 1px solid var(--line-white); }
.curriculum .section { padding-bottom: 4rem; }
.module-list { list-style: none; margin: 0; padding: 0; }
.module-list li { display: grid; grid-template-columns: 74px minmax(0,1fr) 100px; align-items: center; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line-white); }
.module-list .num { color: var(--gold); font-family: Georgia, serif; font-size: 1.5rem; }
.module-list strong { display: block; font-size: 1rem; }
.module-list small { display: block; color: var(--muted); margin-top: .2rem; }
.module-list time { text-align: right; color: var(--gold); }
.total { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--gold); font-weight: 700; }

.cases-grid, .resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-white); border: 1px solid var(--line-white); }
.cases-grid article, .resource-card { background: var(--ink); padding: 1.35rem; min-height: 190px; }
.cases-grid strong { color: var(--gold); }
.cases-grid p, .resource-card p { color: var(--muted); }
.program-flow { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.program-flow div { position: relative; padding: 1.2rem .8rem; border-right: 1px solid var(--line); }
.program-flow div:last-child { border-right: 0; }
.program-flow b { display: block; color: var(--gold); margin-bottom: .45rem; }
.program-flow small { color: var(--muted); }
.matrix-wrap { margin-top: 2.5rem; overflow-x: auto; }
.matrix { width: 100%; min-width: 920px; border-collapse: collapse; font-size: .88rem; }
.matrix th, .matrix td { padding: .85rem; border: 1px solid var(--line-white); text-align: left; vertical-align: top; }
.matrix th { color: var(--gold); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.resource-card h3 { margin-bottom: .65rem; }
.resource-card a { display: inline-block; margin-top: 1rem; color: var(--gold); font-weight: 700; }
.sources { padding-left: 1.2rem; }
.sources li { margin-bottom: .8rem; }
.sources a { color: var(--gold); }
.notice { border-left: 3px solid var(--gold); background: var(--panel-2); padding: 1rem 1.2rem; color: #d5d0c6; }
.final-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; border: 1px solid var(--line); padding: 2rem; background: linear-gradient(120deg, rgba(214,173,58,.12), transparent); }
.final-cta h2 { font-size: clamp(2rem,4vw,3.4rem); margin-bottom: .5rem; }

.course-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 300px minmax(0,1fr); }
.course-sidebar { position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; border-right: 1px solid var(--line-white); padding: 1.25rem; background: #080808; }
.course-sidebar h1 { font-family: Arial, sans-serif; font-size: 1rem; line-height: 1.3; letter-spacing: 0; margin-bottom: .4rem; }
.course-sidebar > p { color: var(--muted); font-size: .82rem; }
.progress-track { height: 5px; background: #222; margin: 1rem 0 .4rem; }
.progress-track i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s; }
.progress-label { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.course-nav { display: grid; gap: .35rem; margin-top: 1.3rem; }
.module-link { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: .5rem; padding: .72rem .65rem; border: 1px solid transparent; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.module-link:hover { background: #111; color: var(--paper); }
.module-link.is-active { border-color: var(--line); background: rgba(214,173,58,.08); color: var(--paper); }
.module-link.is-done .module-number { background: var(--gold); color: #050505; }
.module-number { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--gold-soft); color: var(--gold); border-radius: 50%; font-size: .72rem; }
.module-link small { font-size: .72rem; }
.course-main { min-width: 0; }
.course-stage { max-width: 900px; margin: 0 auto; padding: 4rem 2rem 7rem; }
.course-stage h2 { font-size: clamp(2.3rem, 5vw, 4.8rem); }
.module-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
.module-meta span { border: 1px solid var(--line); color: var(--gold); padding: .3rem .5rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.lesson-block { margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--line-white); }
.lesson-block h3 { font-size: 1.35rem; }
.lesson-block p, .lesson-block li { color: #ccc7bc; }
.lesson-block li { margin-bottom: .55rem; }
.key-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.key-card { border: 1px solid var(--line-white); padding: 1rem; background: var(--panel); }
.key-card strong { color: var(--gold); }
.scenario { border: 1px solid var(--line); background: var(--panel-2); padding: 1.2rem; }
.scenario .label { color: var(--gold); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.check-list label, .quiz-option { display: block; margin: .65rem 0; padding: .8rem; border: 1px solid var(--line-white); cursor: pointer; }
.check-list input, .quiz-option input { margin-right: .65rem; accent-color: var(--gold); }
.module-actions { margin-top: 2.5rem; display: flex; justify-content: space-between; gap: 1rem; }
.module-actions button:disabled { opacity: .45; cursor: not-allowed; }
.assessment-card { border: 1px solid var(--line-white); padding: 1.2rem; margin: 1rem 0; }
.assessment-card legend { font-weight: 700; padding: 0 .4rem; }
.assessment-result { margin-top: 1.2rem; padding: 1rem; border-left: 3px solid var(--gold); background: var(--panel); }
.assessment-result.pass { border-color: var(--ok); }
.assessment-result.fail { border-color: var(--danger); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.5rem 0; }
.dashboard-grid div { border: 1px solid var(--line-white); padding: 1rem; }
.dashboard-grid strong { display: block; color: var(--gold); font-size: 1.8rem; }
.print-only { display: none; }
.site-footer { border-top: 1px solid var(--line-white); padding: 2rem 1.25rem; color: var(--muted); font-size: .8rem; }
.site-footer > div { max-width: var(--max); margin: auto; display: flex; justify-content: space-between; gap: 2rem; }

@media (max-width: 900px) {
  .topnav a:not(.button) { display: none; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding-top: 5rem; gap: 2.5rem; }
  .outcomes, .cases-grid, .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes article:nth-child(2) { border-right: 0; }
  .outcomes article:nth-child(-n+2) { border-bottom: 1px solid var(--line-white); }
  .program-flow { grid-template-columns: repeat(3, 1fr); }
  .program-flow div:nth-child(3) { border-right: 0; }
  .program-flow div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .course-shell { grid-template-columns: 1fr; }
  .course-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line-white); }
  .course-nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); overflow-x: auto; padding-bottom: .5rem; }
}

@media (max-width: 640px) {
  .topbar { min-height: 64px; padding: .65rem 1rem; }
  .wordmark small { display: none; }
  .topnav .button { min-height: 38px; font-size: .78rem; padding: .55rem .7rem; }
  .hero-inner, .section { padding-left: 1rem; padding-right: 1rem; }
  .hero-inner { padding-top: 4rem; padding-bottom: 3rem; }
  h1 { font-size: clamp(2.8rem, 16vw, 4.4rem); }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .section-head { grid-template-columns: 1fr; gap: .4rem; }
  .outcomes, .cases-grid, .resource-grid { grid-template-columns: 1fr; }
  .outcomes article { border-right: 0; border-bottom: 1px solid var(--line-white); }
  .outcomes article:last-child { border-bottom: 0; }
  .module-list li { grid-template-columns: 54px minmax(0,1fr) 54px; }
  .program-flow { grid-template-columns: repeat(2, 1fr); }
  .program-flow div:nth-child(odd) { border-right: 1px solid var(--line); }
  .program-flow div:nth-child(even) { border-right: 0; }
  .program-flow div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .final-cta { grid-template-columns: 1fr; }
  .course-stage { padding: 2.5rem 1rem 5rem; }
  .key-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .module-actions { flex-direction: column; }
  .module-actions .button { width: 100%; }
  .site-footer > div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media print {
  body { background: white; color: black; }
  .topbar, .course-sidebar, .module-actions, .no-print, .site-footer { display: none !important; }
  .print-only { display: block; }
  .course-shell { display: block; }
  .course-stage { max-width: none; padding: 0; }
  a { color: black; }
}

/* Academy 2026.1 — naranja educación financiera */
:root {
  --panel: #0d0b09;
  --panel-2: #17100b;
  --gold: #ff7a1a;
  --gold-soft: #a94a17;
  --line: rgb(255 122 26 / 28%);
}

.topbar {
  border-bottom-color: rgb(255 122 26 / 28%);
  background: rgb(5 5 5 / 96%);
}

.wordmark i,
.progress-track i {
  background: linear-gradient(180deg, #ffb76f, #ff6508);
}

.button {
  border-color: #ff7a1a;
  background: #ff7a1a;
  color: #130803;
  border-radius: 8px;
}

.button:hover {
  border-color: #ffab62;
  background: #ffab62;
}

.button.secondary {
  border-color: rgb(255 122 26 / 34%);
  background: rgb(255 122 26 / 5%);
  color: var(--paper);
}

.hero::before {
  background:
    radial-gradient(circle at 79% 28%, rgb(255 122 26 / 25%), transparent 25%),
    linear-gradient(90deg, transparent 49.8%, rgb(255 122 26 / 9%) 50%, transparent 50.2%);
}

.spec-card,
.final-cta {
  border-color: rgb(255 122 26 / 36%);
  border-radius: 14px;
  background: linear-gradient(150deg, rgb(255 122 26 / 14%), rgb(255 255 255 / 2%) 68%);
}

.outcomes,
.cases-grid,
.resource-grid {
  gap: .75rem;
  border: 0;
  background: transparent;
}

.outcomes article,
.cases-grid article,
.resource-card,
.key-card,
.scenario,
.assessment-card,
.dashboard-grid div {
  min-height: 0;
  border: 1px solid rgb(255 122 26 / 22%);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(255 122 26 / 6%), #0b0a09 58%);
  box-shadow: 0 12px 32px rgb(0 0 0 / 15%);
}

.outcomes article,
.cases-grid article,
.resource-card {
  padding: 1.1rem;
}

.outcomes article {
  min-height: 165px;
}

.outcomes h3 {
  margin: 1.3rem 0 .45rem;
}

.cases-grid article,
.resource-card {
  min-height: 160px;
}

.module-list li {
  margin: .45rem 0;
  padding: .9rem 1rem;
  border: 1px solid rgb(255 122 26 / 18%);
  border-radius: 10px;
  background: rgb(255 122 26 / 3%);
}

.course-sidebar {
  border-right-color: rgb(255 122 26 / 18%);
  background: #080706;
}

.module-link {
  border-radius: 9px;
}

.module-link:hover,
.module-link.is-active {
  border-color: rgb(255 122 26 / 35%);
  background: rgb(255 122 26 / 10%);
}

.module-number {
  border-color: #ff7a1a;
}

.notice,
.assessment-result {
  border-left-color: #ff7a1a;
  background: rgb(255 122 26 / 7%);
}

@media (max-width: 640px) {
  .outcomes,
  .cases-grid,
  .resource-grid { gap: .65rem; }
  .module-list li { grid-template-columns: 44px minmax(0, 1fr) 48px; padding: .8rem; }
}

/* Variante clara compartida por catálogo, fichas, aulas y recursos. */
:root {
  color-scheme: light;
  --ink: #f6f3ed;
  --panel: #fff;
  --panel-2: #fff7ef;
  --paper: #17130f;
  --muted: #675f56;
  --line-white: rgb(23 19 15 / 14%);
}

body {
  background: var(--ink);
  color: var(--paper);
}

.topbar {
  background: rgb(8 7 6 / 96%);
  color: #fffaf4;
}

.wordmark small,
.topnav a {
  color: #bdb4aa;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: #fff;
}

.hero {
  background: #f6f3ed;
  border-bottom-color: rgb(23 19 15 / 12%);
}

.hero::before {
  background:
    radial-gradient(circle at 79% 28%, rgb(255 122 26 / 24%), transparent 27%),
    linear-gradient(90deg, transparent 49.8%, rgb(23 19 15 / 7%) 50%, transparent 50.2%);
}

.lead {
  color: #514940;
}

.spec-card,
.final-cta {
  background: linear-gradient(150deg, rgb(255 122 26 / 13%), #fff 68%);
  box-shadow: 0 18px 48px rgb(62 40 20 / 9%);
}

.section,
.curriculum,
.course-main,
.course-stage {
  background: #f6f3ed;
}

.curriculum {
  border-color: rgb(23 19 15 / 12%);
}

.outcomes article,
.cases-grid article,
.resource-card,
.key-card,
.scenario,
.assessment-card,
.dashboard-grid div,
.quiz-option,
.check-list label {
  border-color: rgb(255 122 26 / 24%);
  background: linear-gradient(145deg, rgb(255 122 26 / 6%), #fff 60%);
  box-shadow: 0 12px 30px rgb(62 40 20 / 7%);
}

.outcomes p,
.cases-grid p,
.resource-card p,
.section-copy,
.program-flow small,
.lesson-block p,
.lesson-block li,
.notice {
  color: #5d554d;
}

.module-list li {
  border-color: rgb(255 122 26 / 21%);
  background: #fff;
  box-shadow: 0 8px 22px rgb(62 40 20 / 5%);
}

.program-flow {
  border-color: rgb(23 19 15 / 14%);
}

.program-flow div {
  border-color: rgb(23 19 15 / 12%);
}

.matrix-wrap {
  background: #fff;
}

.matrix th,
.matrix td {
  border-color: rgb(23 19 15 / 13%);
}

.course-sidebar {
  border-right-color: rgb(255 122 26 / 22%);
  background: #17110d;
  color: #fffaf4;
}

.course-sidebar > p,
.course-sidebar .progress-label,
.course-sidebar .module-link {
  color: #bfb5ab;
}

.course-sidebar .module-link:hover,
.course-sidebar .module-link.is-active {
  color: #fffaf4;
}

.course-sidebar .module-link.is-active {
  background: rgb(255 122 26 / 15%);
}

.lesson-block {
  border-color: rgb(23 19 15 / 13%);
}

.notice,
.assessment-result {
  background: #fff7ef;
}

.site-footer {
  border-color: rgb(23 19 15 / 12%);
  background: #17130f;
  color: #b6ada4;
}

@media print {
  .section,
  .course-main,
  .course-stage { background: #fff; }
}
