/* Temario, materiales previstos y vista previa de los cursos. */
#course-syllabus, #course-resources, .preview-modal {
  font-family: "Segoe UI", Arial, sans-serif;
}
#course-syllabus, #course-resources {
  padding: clamp(20px, 3vw, 32px);
  background: #fff;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  box-shadow: 0 5px 24px rgb(24 52 88 / 3%);
}
#course-syllabus::before, #course-resources::before { display: none; }
#course-syllabus .section-title, #course-resources .section-title { margin: 0; }
#course-syllabus .section-title > span, #course-resources .section-title > span {
  color: #536780; font-size: 11px; font-weight: 600; letter-spacing: .08em;
}
#course-syllabus .section-title h3, #course-resources .section-title h3 {
  color: #193c68; font-size: 28px; font-weight: 650; line-height: 1.2; margin: 8px 0;
}
#course-syllabus .section-title p, #course-resources .section-title p {
  color: #53677e; font-size: 14px; line-height: 1.6; margin: 0;
}
#course-syllabus .section-title > small {
  color: #536780; font-size: 13px; font-weight: 400; line-height: 1.6; margin-top: 5px;
}
#course-syllabus .syllabus-list { margin-top: 24px; gap: 12px; }
#course-syllabus .syllabus-module {
  border: 1px solid #dfe7f0; border-radius: 13px; box-shadow: none;
}
#course-syllabus .syllabus-module[open] { border-color: #bdcee3; }
#course-syllabus .syllabus-module summary {
  grid-template-columns: 12px 78px minmax(0, 1fr) auto;
  align-items: center; gap: 12px; min-height: 76px; padding: 18px;
  background: #fff;
}
#course-syllabus .syllabus-module summary:hover { background: #f7f9fd; }
#course-syllabus .syllabus-module[open] > summary { background: #f0f5fc; }
#course-syllabus .module-index {
  display: inline-flex; align-items: center; justify-content: center;
  background: #eaf1fb; border-radius: 7px; min-height: 30px;
  padding: 5px 7px; color: #2c5b95; font-size: 11px; font-weight: 600;
}
#course-syllabus .syllabus-module summary > strong {
  color: #1c3049; font-size: 15px; font-weight: 600; line-height: 1.5;
  min-width: 0; overflow-wrap: anywhere;
}
#course-syllabus .syllabus-module summary > small {
  color: #536780; font-size: 11px; font-weight: 500; line-height: 1.5;
}
#course-syllabus .module-chevron { width: 7px; height: 7px; border-color: #5a7393; }
#course-syllabus .syllabus-module li {
  grid-template-columns: 32px minmax(0, 1fr) auto; gap: 13px;
  padding: 17px 18px; border-color: #e9eef5; min-height: 83px;
}
#course-syllabus .lecture-icon {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 9px; background: #f0f4f9; color: #526880; font-size: 11px; font-weight: 600;
}
#course-syllabus .syllabus-module li > div { min-width: 0; }
#course-syllabus .syllabus-module li strong {
  display: block; color: #203650; font-size: 14px; font-weight: 600;
  line-height: 1.5; overflow-wrap: anywhere;
}
#course-syllabus .syllabus-module li small {
  margin-top: 4px; color: #53677e; font-size: 12px; font-weight: 400; line-height: 1.5;
}
#course-syllabus .syllabus-module li button {
  min-width: 100px; min-height: 44px; padding: 10px 12px;
  border: 1px solid #d5e2f3; border-radius: 8px; background: #f2f6fd;
  color: #245a9c; font-size: 12px; font-weight: 600;
}
#course-syllabus .syllabus-module li button:hover { background: #e6effc; }
#course-syllabus .lecture-access { cursor: default; color: #5b6e86; font-weight: 400; font-size: 12px; }
#course-resources .course-resources-list { margin-top: 24px; gap: 13px; }
#course-resources .course-resources-list li {
  display: grid; grid-template-columns: 43px minmax(0, 1fr); grid-template-rows: 53px 1fr auto;
  align-items: start; gap: 13px; padding: 19px 16px;
  background: #fafbfd; border: 1px solid #e2e9f1; border-radius: 12px;
  box-shadow: none; transform: none;
}
#course-resources .course-resources-list li:hover { background: #f5f8fc; border-color: #c7d6e8; }
#course-resources .course-resource-icon {
  display: flex; flex-direction: column; width: 43px; height: 53px; border-radius: 9px;
  padding: 7px 4px; gap: 3px; color: #3868a4; background: #eaf1fb;
}
#course-resources .course-resource-icon[data-resource-kind="reading"] { color: #a44950; background: #f9edef; }
#course-resources .course-resource-icon[data-resource-kind="worksheet"] { color: #286e57; background: #e8f4ee; }
#course-resources .course-resource-icon svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
#course-resources .course-resource-icon b { font-size: 9px; font-weight: 650; line-height: 1; }
#course-resources .course-resource-copy { display: contents; }
#course-resources .course-resource-copy :is(strong, small, span) {
  display: block; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere;
}
#course-resources .course-resource-copy small {
  grid-column: 2; grid-row: 1; align-self: center;
  margin: 0; color: #536780; font-size: 11px; font-weight: 400; line-height: 1.5;
}
#course-resources .course-resource-copy strong { grid-column: 1 / -1; color: #233c59; font-size: 14px; font-weight: 600; line-height: 1.6; }
#course-resources .course-resource-copy > span { grid-column: 1 / -1; color: #536780; font-size: 11px; line-height: 1.5; }

.preview-modal {
  width: min(1160px, calc(100% - 48px)); max-height: calc(100dvh - 48px);
  border-radius: 20px; color: #1c3049;
}
.preview-modal::backdrop { background: rgb(14 27 47 / 65%); backdrop-filter: blur(7px); }
.preview-modal .preview-modal-shell {
  border: 1px solid #dbe5ef; border-radius: 20px; max-height: calc(100dvh - 48px);
  box-shadow: 0 32px 100px rgb(6 19 38 / 30%);
}
.preview-modal .preview-modal-head {
  min-height: 82px; padding: 18px 24px; gap: 20px;
  background: #fff; border-bottom: 1px solid #e3eaf2;
}
.preview-modal .preview-modal-head > div { min-width: 0; }
.preview-modal .preview-modal-head span { color: #526c8b; font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.preview-modal .preview-modal-head strong {
  color: #213b5b; font-size: 17px; font-weight: 600; line-height: 1.5;
  margin-top: 4px; white-space: normal; overflow: visible; text-overflow: clip;
}
.preview-modal .preview-modal-head button {
  width: 44px; height: 44px; border-radius: 12px; background: #f2f5f9;
  color: #48617f; border: 1px solid #e1e8f1;
}
.preview-modal .preview-modal-head button:hover { background: #e8eef7; transform: none; }
.preview-modal .preview-modal-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.preview-modal .preview-modal-player { background: #f7f9fc; padding: 26px; }
.preview-modal .preview-player-copy { margin-bottom: 20px; }
.preview-modal .preview-player-path { gap: 7px; line-height: 1.5; }
.preview-modal .preview-player-path > span:first-child { color: #476488; font-size: 12px; font-weight: 500; }
.preview-modal .preview-player-path > span[aria-hidden="true"] { color: #9bacbf; }
.preview-modal .preview-player-path strong { color: #536780; font-size: 12px; font-weight: 500; }
.preview-modal .preview-player-copy h2 {
  color: #1b3351; font-size: clamp(21px, 2.2vw, 27px); font-weight: 650;
  line-height: 1.3; letter-spacing: -.025em; margin: 9px 0 0;
}
.preview-modal .preview-demo-player {
  border: 1px solid #d5dfeb; border-radius: 14px;
  box-shadow: 0 10px 28px rgb(24 48 79 / 10%);
}
.preview-modal .preview-demo-player .video-preview { aspect-ratio: 16 / 9; background: #102238; }
.preview-modal .preview-demo-player .video-preview video { width: 100%; height: 100%; object-fit: contain; filter: none; }
.preview-modal .preview-demo-player .video-overlay {
  background: linear-gradient(0deg, rgb(6 20 41 / 40%), rgb(6 20 41 / 10%)); gap: 12px;
}
.preview-modal .preview-demo-player .video-overlay > span {
  width: 64px; height: 64px; font-size: 20px; background: #fff; color: #255b9f;
  box-shadow: 0 6px 28px rgb(5 24 51 / 24%);
}
.preview-modal .preview-demo-player .video-overlay small {
  font-size: 12px; font-weight: 600; background: rgb(9 27 51 / 85%); padding: 6px 10px; border-radius: 7px;
}
.preview-modal .preview-demo-player .demo-timeline { height: 4px; background: #253c58; }
.preview-modal .preview-demo-player .demo-video-meta {
  background: #102238; color: #d4e0ed; min-height: 56px; padding: 10px 15px; font-size: 12px; gap: 12px;
}
.preview-modal .demo-video-controls { gap: 12px; }
.preview-modal .demo-playback-toggle { min-height: 44px; padding: 8px 11px; font-size: 12px; font-weight: 500; }
.preview-modal .demo-playback-toggle [data-demo-toggle-icon] { font-size: 13px; }
.preview-modal .preview-lesson-panel { background: #fff; padding: 24px 20px; border-color: #e2e9f1; }
.preview-modal .preview-lesson-panel-head { align-items: center; margin-bottom: 20px; }
.preview-modal .preview-lesson-panel-head h3 { color: #213b5b; font-size: 18px; font-weight: 650; }
.preview-modal .preview-lesson-panel-head span { color: #536780; font-size: 11px; font-weight: 400; }
.preview-modal .preview-lesson-list { gap: 10px; }
.preview-modal .preview-lesson-list button {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 12px;
  min-height: 105px; padding: 15px 12px; background: #fff;
  border: 1px solid #e0e7f0; border-radius: 12px; transform: none; box-shadow: none;
}
.preview-modal .preview-lesson-list button:hover { background: #f7f9fd; border-color: #b8cce5; transform: none; }
.preview-modal .preview-lesson-list button[aria-current="true"] { background: #eef4fd; border-color: #9cbde6; box-shadow: inset 3px 0 #3567a8; }
.preview-modal .preview-item-number {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 32px;
  border-radius: 8px; background: #eff3f8; color: #496481; font-size: 11px; font-weight: 600;
}
.preview-modal [aria-current="true"] .preview-item-number { background: #dce8fa; color: #245a9c; }
.preview-modal .preview-item-copy { display: grid; gap: 8px; min-width: 0; }
.preview-modal .preview-item-module { color: #526780; font-size: 11px; font-weight: 400; line-height: 1.5; }
.preview-modal .preview-item-module b { color: #536a86; font-weight: 500; }
.preview-modal .preview-item-lesson { color: #213b5b; font-size: 13px; font-weight: 600; line-height: 1.55; }
.preview-modal .preview-item-lesson span { color: #48668b; font-size: 11px; font-weight: 500; }
.preview-modal.is-course-introduction .preview-lesson-panel { background: #fff; }
.preview-modal.is-course-introduction .course-introduction-module { padding: 15px 12px; }
.preview-modal.is-course-introduction .course-introduction-module strong { font-size: 14px; line-height: 1.5; font-weight: 600; }
.preview-modal.is-course-introduction .course-introduction-module small { font-size: 12px; line-height: 1.5; }

@media (max-width: 1100px) {
  #course-resources .course-resources-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .preview-modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .preview-modal .preview-modal-shell { max-height: calc(100dvh - 24px); }
  .preview-modal .preview-modal-layout { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .preview-modal .preview-modal-player { overflow: visible; padding: 22px; }
  .preview-modal .preview-lesson-panel { max-height: none; overflow: visible; padding: 22px; border-left: 0; border-top: 1px solid #e2e9f1; }
  .preview-modal .preview-lesson-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-modal .preview-lesson-list button { min-height: 130px; }
  .preview-modal .preview-modal-head { padding: 16px 20px; }
}
@media (max-width: 640px) {
  #course-syllabus .syllabus-module summary {
    grid-template-columns: 12px minmax(0, 1fr); gap: 8px 12px; padding: 17px;
  }
  #course-syllabus .module-chevron { grid-column: 1; grid-row: 1 / span 3; }
  #course-syllabus .module-index { grid-column: 2; grid-row: 1; width: fit-content; }
  #course-syllabus .syllabus-module summary > strong { grid-column: 2; grid-row: 2; }
  #course-syllabus .syllabus-module summary > small { grid-column: 2; grid-row: 3; }
  #course-syllabus .syllabus-module li { grid-template-columns: 28px minmax(0, 1fr); padding: 16px; gap: 10px; }
  #course-syllabus .lecture-icon { width: 28px; height: 28px; }
  #course-syllabus .syllabus-module li :is(button, .lecture-access) { grid-column: 2; justify-self: start; }
  #course-syllabus .section-title h3, #course-resources .section-title h3 { font-size: 25px; }
}
@media (max-width: 560px) {
  .preview-modal { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .preview-modal .preview-modal-shell { height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .preview-modal .preview-modal-head { min-height: 78px; padding: 16px; gap: 12px; }
  .preview-modal .preview-modal-head strong { font-size: 14px; }
  .preview-modal .preview-modal-player, .preview-modal .preview-lesson-panel { padding: 20px 16px; }
  .preview-modal .preview-lesson-list { grid-template-columns: minmax(0, 1fr); }
  .preview-modal .preview-lesson-list button { min-height: 90px; }
  .preview-modal .preview-player-copy h2 { font-size: 22px; }
  .preview-modal .preview-demo-player .demo-video-meta { flex-wrap: wrap; }
  .preview-modal .preview-player-path { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  #course-syllabus *, #course-resources *, .preview-modal * { transition: none; animation: none; }
}
