:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #59666f;
  --line: #d8e0e4;
  --paper: #fbfcfd;
  --panel: #ffffff;
  --teal: #047a75;
  --teal-dark: #075451;
  --coral: #d95f42;
  --gold: #f2b84b;
  --practice: #6f4aa2;
  --practice-dark: #503277;
  --shadow: 0 18px 50px rgba(23, 33, 38, 0.13);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 224, 228, 0.72);
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:not(.nav-button):hover {
  color: var(--teal-dark);
}

.nav-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.nav-button,
.primary-action {
  background: var(--teal);
  color: white;
}

.nav-button-secondary {
  background: var(--coral);
}

.nav-button-practices,
.primary-action-practices {
  background: var(--practice);
}

.nav-button-students,
.primary-action-students {
  background: #0f766e;
}

.primary-action-manual {
  background: #1f6f9f;
}

.nav-button-apps,
.primary-action-apps {
  background: #4d5f1f;
}

.nav-button:hover,
.primary-action:hover {
  background: var(--teal-dark);
  color: white;
}

.nav-button-secondary:hover {
  background: #a84430;
  color: white;
}

.nav-button-practices:hover,
.primary-action-practices:hover {
  background: var(--practice-dark);
  color: white;
}

.nav-button-students:hover,
.primary-action-students:hover {
  background: #115e59;
  color: white;
}

.primary-action-manual:hover {
  background: #164d70;
  color: white;
}

.nav-button-apps:hover,
.primary-action-apps:hover {
  background: #344115;
  color: white;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  isolation: isolate;
  background-image: url("img/curso-publicacion-web.jpg?v=20260709-hero-bg");
  background-position: center;
  background-size: cover;
}

.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 20, 24, 0.9), rgba(8, 20, 24, 0.56) 50%, rgba(8, 20, 24, 0.16)),
    linear-gradient(0deg, rgba(8, 20, 24, 0.42), rgba(8, 20, 24, 0.04) 42%);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  align-self: center;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 88px);
  padding: 58px 0 96px;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.documents-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action {
  min-width: 154px;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: white;
}

.secondary-action:hover {
  background: white;
  color: var(--ink);
}

.intro,
.documents-page {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  padding: 76px 0;
}

.course-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.course-facts div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf7f5;
}

.course-facts dt {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.35;
}

.teacher-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(23, 33, 38, 0.07);
}

.teacher-panel h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.teacher-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.teacher-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.teacher-mail:hover {
  background: var(--teal);
  color: white;
}

.intro h2,
.details h2,
.documents-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.intro-grid article,
.documents-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(23, 33, 38, 0.07);
}

.intro-grid article {
  padding: 26px;
}

.intro-grid span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
}

.intro-grid h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.intro-grid p,
.details p,
.documents-hero p,
.empty-state {
  color: var(--muted);
  line-height: 1.7;
}

.details {
  background:
    linear-gradient(135deg, rgba(12, 25, 31, 0.96), rgba(14, 55, 58, 0.94)),
    #102033;
  color: white;
}

.details-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: center;
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding: 66px 0 92px;
}

.details .section-kicker {
  color: var(--gold);
}

.details h2 {
  color: white;
}

.details p {
  color: rgba(255, 255, 255, 0.82);
}

.details strong {
  color: white;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 18px 20px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 25px rgba(4, 12, 16, 0.28);
  color: var(--ink);
  font-weight: 750;
}

.documents-page {
  padding: 70px 0 90px;
}

.documents-hero {
  max-width: 760px;
  margin-bottom: 34px;
}

.documents-panel {
  padding: clamp(18px, 3vw, 30px);
}

.doc-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-list .doc-list {
  margin: 10px 0 0 30px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.doc-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(250px, auto);
  gap: 22px;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.doc-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #e8f4f2;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 900;
}

.is-file .doc-icon {
  background: #fff2df;
  color: #8a4b06;
}

.doc-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 850;
}

a.doc-name:hover {
  color: var(--teal);
}

.doc-meta {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
  white-space: nowrap;
}

.practice-main {
  min-width: 0;
}

.practice-main .doc-meta {
  display: block;
  margin-top: 4px;
  text-align: left;
  white-space: normal;
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid var(--practice);
  border-radius: 8px;
  color: var(--practice-dark);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(80, 50, 119, 0.14);
}

.small-action:hover {
  background: var(--practice);
  color: white;
}

.small-action-download {
  background: var(--practice);
  color: white;
}

.small-action-download:hover {
  background: var(--practice-dark);
  border-color: var(--practice-dark);
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f6faf9;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(8, 20, 24, 0.82), rgba(8, 20, 24, 0.26));
  }

  .hero-content {
    align-self: end;
    margin: 0 auto;
    padding-bottom: 64px;
  }

  .intro-grid,
  .course-facts,
  .teacher-panel,
  .details-inner {
    grid-template-columns: 1fr;
  }

  .doc-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .doc-meta {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }

  .practice-actions {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 0.94rem;
  }

  .main-nav {
    gap: 12px;
    font-size: 0.88rem;
  }

  .nav-button {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-actions a {
    width: 100%;
  }
}

.doc-name-granate {
  color: #7b1e2b;
}

.doc-name-granate:hover {
  color: #5b121d;
}

.doc-row.is-highlight-granate {
  border-color: rgba(123, 30, 43, 0.34);
  border-left: 6px solid #7b1e2b;
  background: #fff4f6;
}

.doc-row.is-highlight-granate .doc-icon {
  background: #7b1e2b;
  color: #ffffff;
}

.doc-row.is-highlight-granate .small-action {
  border-color: #7b1e2b;
  color: #7b1e2b;
}

.doc-row.is-highlight-granate .small-action:hover {
  background: #7b1e2b;
  color: #ffffff;
}

