@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fuentes/Inter-Regular.ttf); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fuentes/Inter-Medium.ttf); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fuentes/Inter-SemiBold.ttf); }

:root {
  --canvas: #faf9f6; --surface: #ffffff; --line: #f2f0e9;
  --ink: #171717; --muted: #6e6e6e; --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --ring: rgba(110, 110, 110, .1) 0 0 0 1px, rgba(110, 110, 110, .2) 0 1px 0 0;
  --glow: rgba(191, 191, 191, .25) 0 1px 20px 0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.45 var(--font); }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding-top: 80px; scroll-margin-top: 72px; }
footer { margin-top: 120px; padding: 32px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.topbar { position: sticky; top: 0; z-index: 10; background: var(--ink); color: var(--canvas); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; min-height: 72px;
  margin: 0 auto; padding: 0 24px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 22px; letter-spacing: -.04em; }
.topbar nav { display: flex; align-items: center; gap: 8px; }
.topbar nav a { padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 15px; white-space: nowrap; }
.topbar nav a:hover, .topbar nav a[aria-current] { background: rgba(250, 249, 246, .14); }
.topbar :focus-visible { outline-color: var(--canvas); }

.draft { margin: 24px auto 0; width: fit-content; max-width: calc(100% - 32px); padding: 4px 12px; border-radius: 100px;
  background: var(--ink); color: var(--surface); font: 500 13px var(--font); }

.hero { padding-top: 96px; text-align: center; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 100px; background: var(--ink); color: var(--surface);
  font-weight: 500; font-size: 13px; }
.hero h1 { max-width: 800px; margin: 16px auto; font-weight: 600; font-size: clamp(36px, 7vw, 56px); line-height: 1.14;
  letter-spacing: -.06em; }
.hero p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; }
.button { padding: 10px 20px; border-radius: 8px; background: var(--ink); color: var(--surface); font-weight: 500;
  font-size: 15px; text-decoration: none; box-shadow: var(--ring); }
.ghost { padding: 10px 0; font-weight: 500; font-size: 15px; text-underline-offset: 4px; }

.eyebrow { font-weight: 500; font-size: 13px; }
h2 { margin-top: 8px; font-weight: 600; font-size: 32px; line-height: 1.25; letter-spacing: -.04em; }
.lead { max-width: 520px; margin-top: 12px; color: var(--muted); font-size: 18px; }
h1.page { margin-top: 8px; font-weight: 600; font-size: clamp(32px, 6vw, 44px); line-height: 1.14; letter-spacing: -.05em; }
.crumbs { margin-top: 56px; color: var(--muted); font-size: 13px; }

.grid { display: grid; gap: 24px; margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.courses { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { display: block; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; }
.course-card { min-height: 112px; }
.course-card strong { display: block; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.course-card span, .meta { color: var(--muted); font-size: 13px; }
.course-card span { display: block; margin-top: 8px; }
.lesson-card { padding: 0; overflow: hidden; border: 0; border-radius: 16px; box-shadow: var(--glow); }
.lesson-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.lesson-card div { padding: 16px; }
.lesson-card h3 { font-weight: 500; font-size: 18px; line-height: 1.38; letter-spacing: -.02em; }
.empty { margin-top: 32px; padding: 32px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }

.player { display: grid; gap: 32px; margin-top: 32px; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); }
.player video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--surface); box-shadow: var(--glow); }
.chapters { display: flex; flex-direction: column; gap: 4px; padding: 0; margin: 12px 0 0; list-style: none; }
.chapters button { display: flex; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 8px 0;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 400 14px var(--font);
  text-align: left; cursor: pointer; }
.chapters time { color: var(--muted); font-variant-numeric: tabular-nums; }
.side-title { font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.prose { max-width: 720px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }
.legal { display: grid; gap: 16px; margin-top: 32px; line-height: 1.6; }
.legal h2 { margin-top: 24px; font-weight: 600; font-size: 20px; letter-spacing: -.03em; }
.legal ul { margin: 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal a { color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose li { margin-top: 8px; }
.exercise { margin-top: 24px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
summary { min-height: 44px; padding: 10px 0; font-weight: 500; cursor: pointer; }
.transcript { white-space: pre-line; color: var(--muted); }

@media (max-width: 800px) {
  .player { grid-template-columns: 1fr; }
  .topbar-inner { min-height: 60px; padding: 0 16px; gap: 8px; }
  .topbar .brand { font-size: 18px; gap: 6px; }
  .topbar .brand img { width: 26px; height: 26px; }
  .topbar nav { gap: 2px; }
  .topbar nav a { padding: 8px; font-size: 13px; }
  .wrap { padding: 0 16px; }
  section { padding-top: 56px; }
}
