:root {
  --ink: #1d1b3a;
  --paper: #fbf8f1;
  --accent: #ff6b4a;
  --accent-2: #2f6fed;
  --muted: #6b6886;
  --card: #ffffff;
  --line: #e7e2d6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 20px 16px 72px;
}
.nav {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-family: "Fraunces", serif; font-weight: 800; font-size: 1.5rem;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.nav-link { text-decoration: none; font-weight: 600; opacity: .85; }
.nav-link:hover { opacity: 1; }

.hero-body { position: relative; z-index: 1; max-width: 1100px; margin: 56px auto 0; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent); font-weight: 800; margin: 0 0 12px; }
h1 { font-family: "Fraunces", serif; font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 16px; }
.lead { max-width: 520px; font-size: 1.1rem; opacity: .85; margin: 0 0 28px; }
/* botón */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none;
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }

.shapes span {
  position: absolute; font-family: "Fraunces", serif; font-weight: 800;
  color: rgba(255,255,255,.07); user-select: none;
}
.shapes span:nth-child(1) { font-size: 220px; right: 4%;  top: 10px; }
.shapes span:nth-child(2) { font-size: 140px; right: 26%; bottom: -30px; }
.shapes span:nth-child(3) { font-size: 120px; right: 2%;  bottom: -20px; color: rgba(255,107,74,.18); }
.shapes span:nth-child(4) { font-size: 90px;  right: 38%; top: 30px; }
.shapes span:nth-child(5) { font-size: 110px; right: 18%; top: 90px; color: rgba(47,111,237,.25); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 48px 16px 64px; }
h2 { font-family: "Fraunces", serif; font-size: 2rem; margin: 0 0 20px; }

.nav-links { display: flex; gap: 18px; }
.hero.compact { padding-bottom: 20px; }
.hero.compact .hero-body, .hero.compact .shapes { display: none; }

.crumbs { color: var(--muted); font-size: .9rem; font-weight: 600; margin: 0 0 8px; }
.crumbs a { color: var(--accent-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Inicio: cursos */
.cursos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.curso {
  display: flex; align-items: center; gap: 18px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  transition: transform .15s, box-shadow .15s;
}
.curso:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(29,27,58,.08); }
.curso-num {
  font-family: "Fraunces", serif; font-weight: 800; font-size: 2.4rem; line-height: 1;
  background: var(--ink); color: var(--paper); border-radius: 14px; padding: 14px 16px;
}
.curso:nth-child(2) .curso-num { background: var(--accent); }
.curso-txt { display: flex; flex-direction: column; flex: 1; }
.curso-txt strong { font-size: 1.25rem; }
.curso-txt span { color: var(--muted); font-size: .9rem; }
.arrow { font-size: 1.4rem; color: var(--muted); }

/* Curso: unidades */
.unidades { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.unidad {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--accent-2);
  border-radius: 16px; padding: 18px; transition: transform .15s, box-shadow .15s;
}
.unidad:nth-child(2) { border-top-color: var(--accent); }
.unidad:nth-child(3) { border-top-color: #1f8a4c; }
.unidad:nth-child(4) { border-top-color: #9a3fc9; }
a.unidad:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(29,27,58,.08); }
.unidad h3 { margin: 4px 0 8px; font-size: 1.2rem; }
.unidad ul { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: .9rem; flex: 1; }
.u-num { display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
h2 .u-num { margin-bottom: 4px; }
.u-foot { font-weight: 800; color: var(--accent-2); }
.unidad.bloqueada { opacity: .55; border-top-color: var(--line); cursor: not-allowed; }
.unidad.bloqueada .u-foot { color: var(--muted); }

/* Unidad: materiales */
.temas { color: var(--muted); margin: -8px 0 28px; }
.grupo { margin-bottom: 32px; }
.grupo h3 { font-size: 1.1rem; margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.tag { align-self: flex-start; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.t-Guía { background: #e9f7ef; color: #1f8a4c; }
.t-Presentación { background: #fff1ec; color: #d24a2b; }
.t-Control { background: #eef2fd; color: #2f6fed; }
.t-Juego { background: #fbf0ff; color: #9a3fc9; }
.card h4 { margin: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.card a.dl {
  margin-top: 6px; text-align: center; text-decoration: none; font-weight: 800;
  border: 2px solid var(--ink); border-radius: 10px; padding: 8px;
}
.card a.dl:hover { background: var(--ink); color: var(--paper); }
.empty { color: var(--muted); }

.footer { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; padding: 24px 16px; }
