/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
@layer properties;
.mx-auto {
  margin-inline: auto;
}
.flex {
  display: flex;
}
.hidden {
  display: none;
}
.max-w-\[1500px\] {
  max-width: 1500px;
}
.rotate-180 {
  rotate: 180deg;
}
.transform {
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-between {
  justify-content: space-between;
}
.border-b {
  border-bottom-style: var(--tw-border-style);
  border-bottom-width: 1px;
}
.border-l-4 {
  border-left-style: var(--tw-border-style);
  border-left-width: 4px;
}
.border-\[var\(--a1-border\)\] {
  border-color: var(--a1-border);
}
.border-\[var\(--a2-border\)\] {
  border-color: var(--a2-border);
}
.border-\[var\(--a3-border\)\] {
  border-color: var(--a3-border);
}
.border-\[var\(--ei-border\)\] {
  border-color: var(--ei-border);
}
.border-\[var\(--fp-border\)\] {
  border-color: var(--fp-border);
}
.bg-\[var\(--a1-bg\)\] {
  background-color: var(--a1-bg);
}
.bg-\[var\(--a2-bg\)\] {
  background-color: var(--a2-bg);
}
.bg-\[var\(--a3-bg\)\] {
  background-color: var(--a3-bg);
}
.bg-\[var\(--ei-bg\)\] {
  background-color: var(--ei-bg);
}
.bg-\[var\(--fp-bg\)\] {
  background-color: var(--fp-bg);
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11px\] {
  font-size: 11px;
}
.uppercase {
  text-transform: uppercase;
}
.opacity-50 {
  opacity: 50%;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #eef0f4;
  --surface: #ffffff;
  --border: #e0dbd1;
  --text: #1a1a18;
  --muted: #7a7569;
  --fp-bg: #fffde0;
  --fp-border: #c8b000;
  --fp-text: #433d00;
  --a1-bg: #fde4f0;
  --a1-border: #d0508a;
  --a1-text: #6e1040;
  --a2-bg: #deeaf6;
  --a2-border: #5a7db0;
  --a2-text: #1a3060;
  --a3-bg: #e8e9ea;
  --a3-border: #606468;
  --a3-text: #2a2c2e;
  --ei-bg: #e5e4f5;
  --ei-border: #5553a8;
  --ei-text: #28266a;
  /* Ambitos extra — reemplazar cuando se definan oficialmente */
  --a4-bg: #fef3e2;
  --a4-border: #d4893a;
  --a4-text: #6b3d0a;
  --a5-bg: #e8f5e9;
  --a5-border: #4a9e5c;
  --a5-text: #1b5e20;
  --a6-bg: #fce4ec;
  --a6-border: #c2607a;
  --a6-text: #6a0f2e;
  --s1h: #9d98e0;
  --s2h: #4dbf98;
  --s3h: #e8896a;
  --s4h: #e07aa0;
  --s5h: #88bb4a;
  --s6h: #6aaae0;
  --s7h: #e09020;
  --s8h: #e08080;
  --s9h:  #a78bca;
  --s10h: #5ba89e;
  --s11h: #c9a04a;
  --s12h: #7a9e6e;
}
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 40px 28px 80px;
}
header {
  max-width: 1560px;
  margin: 0 auto 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--text);
  padding-bottom: 18px;
  flex-wrap: wrap;
}
h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.0625rem;
  font-weight: 600;
  line-height: 1.15;
}
header p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 300;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  border-left: 3px solid;
}
.ld-fp {
  background: var(--fp-bg);
  border-color: var(--fp-border);
}
.ld-a1 {
  background: var(--a1-bg);
  border-color: var(--a1-border);
}
.ld-a2 {
  background: var(--a2-bg);
  border-color: var(--a2-border);
}
.ld-a3 {
  background: var(--a3-bg);
  border-color: var(--a3-border);
}
.ld-ei {
  background: var(--ei-bg);
  border-color: var(--ei-border);
}
.ld-a4 {
  background: var(--a4-bg);
  border-color: var(--a4-border);
}
.ld-a5 {
  background: var(--a5-bg);
  border-color: var(--a5-border);
}
.ld-a6 {
  background: var(--a6-bg);
  border-color: var(--a6-border);
}
.filters {
  max-width: 1560px;
  margin: 0 auto 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}
.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}
.filter-btn:hover {
  border-color: var(--text);
  color: var(--text);
}
.filter-btn.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.filter-btn.fb-fp.active {
  border-color: var(--fp-border);
  background: var(--fp-bg);
  color: var(--fp-text);
}
.filter-btn.fb-a1.active {
  border-color: var(--a1-border);
  background: var(--a1-bg);
  color: var(--a1-text);
}
.filter-btn.fb-a2.active {
  border-color: var(--a2-border);
  background: var(--a2-bg);
  color: var(--a2-text);
}
.filter-btn.fb-a3.active {
  border-color: var(--a3-border);
  background: var(--a3-bg);
  color: var(--a3-text);
}
.filter-btn.fb-ei.active {
  border-color: var(--ei-border);
  background: var(--ei-bg);
  color: var(--ei-text);
}
.filter-btn.fb-a4.active {
  border-color: var(--a4-border);
  background: var(--a4-bg);
  color: var(--a4-text);
}
.filter-btn.fb-a5.active {
  border-color: var(--a5-border);
  background: var(--a5-bg);
  color: var(--a5-text);
}
.filter-btn.fb-a6.active {
  border-color: var(--a6-border);
  background: var(--a6-bg);
  color: var(--a6-text);
}
.table-scroll {
  max-width: 1560px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  background: var(--surface);
}
table {
  width: 100%;
  min-width: 2000px;
  border-collapse: collapse;
  table-layout: fixed;
}
col {
  width: 12.5%;
}
thead th {
  padding: 13px 10px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
}
thead th:last-child {
  border-right: none;
}
.h1,.h2,.h3,.h4,.h5,.h6,.h7,.h8,.h9,.h10,.h11,.h12 {
  background: #1a1a18;
  color: #ffffff;
}
tbody td {
  vertical-align: top;
  padding: 10px;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
tbody td:last-child {
  border-right: none;
}
.cell-inner {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 40px;
}
.course-card {
  border-radius: 6px;
  padding: 8px 10px;
  font-size: .6em;
  line-height: 1.3;
  border-left: 4px solid;
  border-top: 1px solid rgba(255,255,255,0.7);
  border-right: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: transform .12s, box-shadow .12s, opacity .2s;
  position: relative;
}
.course-card.dimmed {
  opacity: 0.22;
}
.course-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  z-index: 2;
}
.cid {
  font-size: 9.5px;
  font-weight: 500;
  opacity: 0.55;
  margin-bottom: 2px;
}
.cname {
  font-weight: 500;
}
.cpre {
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.7;
  font-style: italic;
}
.ambito-tag {
  display: inline-block;
  font-size: .8em;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  margin-top: 5px;
  background: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.fp {
  background: var(--fp-bg);
  border-left-color: var(--fp-border);
  color: var(--fp-text);
}
.a1 {
  background: var(--a1-bg);
  border-left-color: var(--a1-border);
  color: var(--a1-text);
}
.a2 {
  background: var(--a2-bg);
  border-left-color: var(--a2-border);
  color: var(--a2-text);
}
.a3 {
  background: var(--a3-bg);
  border-left-color: var(--a3-border);
  color: var(--a3-text);
}
.ei {
  background: var(--ei-bg);
  border-left-color: var(--ei-border);
  color: var(--ei-text);
}
.a4 {
  background: var(--a4-bg);
  border-left-color: var(--a4-border);
  color: var(--a4-text);
}
.a5 {
  background: var(--a5-bg);
  border-left-color: var(--a5-border);
  color: var(--a5-text);
}
.a6 {
  background: var(--a6-bg);
  border-left-color: var(--a6-border);
  color: var(--a6-text);
}
.footer-note {
  max-width: 1560px;
  margin: 14px auto 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.download-bar {
  max-width: 1560px;
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity .15s;
}
.download-btn:hover {
  opacity: 0.85;
}
/* ═══════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {

  body {
    padding: 20px 16px 60px;
  }

  header {
    flex-direction: column;
    gap: 16px;
  }

  h1 {
    font-size: 1.4rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .legend {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-btn {
    font-size: 11px;
    padding: 4px 10px;
    white-space: nowrap;
  }

  /* Mantener scroll lateral — solo corregir tipografía */
  .course-card {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .cname {
    font-size: 11px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .ambito-tag {
    font-size: 9px;
    white-space: normal;
    word-break: break-word;
  }

  .download-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-note {
    font-size: 10px;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
    }
  }
}
  @media (min-width: 500px) {
    table {
    min-width: 1700px;
  }
}
  @media (min-width: 900px) {
    table {
    min-width: 1500px;
  }
}

