@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #182e48;
  background: #fafbfd;
  font-size: 16px;
  --blue: #245edb;
  --muted: #637186;
  --line: #dee5ee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #5999f2;
  outline-offset: 4px;
}
header {
  min-height: 94px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 70px;
  padding: 20px max(5vw, 24px);
  background: white;
}
.brand {
  font-family: Manrope, sans-serif;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -1px;
}
.brand-icon {
  background: #17365b;
  color: white;
  border-radius: 9px;
  width: 39px;
  height: 39px;
  display: grid;
  place-content: center;
  font-family: Manrope, sans-serif;
  font-style: normal;
  font-size: 17px;
  letter-spacing: -1px;
  flex-shrink: 0;
}
nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}
nav a {
  padding: 14px 0;
}
.nav-current {
  color: var(--blue);
}
.header-note {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
main {
  max-width: 1260px;
  margin: auto;
  padding: 0 48px 65px;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 62px 0 52px;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 15px;
}
h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
}
h1 {
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.2;
  letter-spacing: -1.9px;
  margin: 0 0 20px;
  font-weight: 800;
}
h1 span {
  color: var(--blue);
}
.lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.intro-note {
  border-left: 1px solid #cbd6e6;
  padding: 4px 0 4px 30px;
  width: 280px;
  flex-shrink: 0;
}
.note-index {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--blue);
}
.intro-note p {
  font-size: 19px;
  line-height: 1.6;
}
.intro-note small {
  font-size: 13px;
  color: var(--muted);
}
.note-line {
  display: block;
  width: 40px;
  border-top: 2px solid #7da7ea;
  margin-bottom: 16px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.65px;
  margin: 0;
}
.text-button {
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 14px;
  padding: 8px 0;
}
.subjects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.subject {
  position: relative;
  text-align: left;
  border: 1px solid #c9dafa;
  padding: 27px 30px;
  border-radius: 14px;
  background: #edf3ff;
  color: #193958;
  overflow: hidden;
  min-height: 182px;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.subject:nth-child(even) {
  background: #ebf7f4;
  border-color: #c3e2da;
}
.subject .subject-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 1.3px;
  font-weight: 600;
}
.subject h3 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 27px 0 7px;
  padding-right: 60px;
}
.subject p {
  margin: 0;
  font-size: 14px;
  color: #47627f;
}
.subject:nth-child(even) p {
  color: #446b60;
}
.subject-symbol {
  position: absolute;
  right: 30px;
  top: 60px;
  font-family: Georgia, serif;
  font-size: 65px;
  color: #245edb;
  opacity: 0.65;
}
.subject:nth-child(even) .subject-symbol {
  color: #238271;
}
.resource-section {
  margin-top: 48px;
}
.resource-section .eyebrow {
  margin-bottom: 8px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: white;
  min-width: 0;
}
.search span {
  font-size: 29px;
  color: #637186;
}
.search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  padding: 15px 0;
  font-size: 14px;
  color: #182e48;
}
.search input:focus {
  outline: none;
}
.search:focus-within {
  outline: 2px solid var(--blue);
}
select {
  max-width: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
  color: #415571;
  font-size: 14px;
}
.resource {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 24px 20px;
}
.resource:first-child {
  border-radius: 10px 10px 0 0;
}
.resource:last-child {
  border-radius: 0 0 10px 10px;
}
.doc-icon {
  width: 48px;
  height: 56px;
  background: #f0f4fa;
  display: grid;
  place-content: center;
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #567396;
  flex-shrink: 0;
}
.resource-body {
  flex: 1;
  min-width: 0;
}
.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.meta .kind {
  color: #3765b4;
}
.resource h3 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
}
.resource h3 a:hover {
  color: var(--blue);
}
.resource p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.resource-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  flex-shrink: 0;
}
.read-button,
.primary {
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 12px 17px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.read-button {
  background: #f0f5ff;
  color: #245acb;
}
.download {
  color: #536680;
  padding: 10px;
}
.example-note {
  font-size: 13px;
  background: #f0f3f7;
  border: 1px solid #e4e9ef;
  padding: 18px 22px;
  border-radius: 8px;
  color: var(--muted);
  margin-top: 26px;
  line-height: 1.6;
}
.example-note strong {
  color: #455874;
  margin-right: 7px;
}
footer {
  padding: 28px max(5vw, 24px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: var(--muted);
  background: white;
}
footer .brand {
  font-size: 19px;
  color: #182e48;
}
footer > a:last-child {
  margin-left: auto;
}
.footer-dot {
  color: var(--blue);
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 10px;
  left: 10px;
  z-index: 10;
  background: white;
  padding: 16px;
}
.back {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  margin: 30px 0;
}
.reader-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}
.reader-top h1 {
  font-size: 34px;
}
.reader-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.secondary {
  display: inline-block;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  padding: 12px 17px;
}
.pdf-frame {
  width: 100%;
  height: 76vh;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e9edf2;
}
.reader-copy {
  max-width: 740px;
  line-height: 1.9;
  background: white;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.reader-copy p {
  margin: 0 0 22px;
}
.reader-copy p:last-child {
  margin: 0;
}
.reader-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 16px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.guide-grid article {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.guide-grid article > span {
  color: var(--blue);
  font-size: 35px;
}
.guide-grid h2 {
  font-size: 21px;
  margin-top: 22px;
}
.guide-grid p {
  line-height: 1.8;
  color: var(--muted);
}
.empty {
  padding: 45px;
  text-align: center;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 10px;
  line-height: 1.7;
}
.admin {
  max-width: 820px;
}
.admin p,
.admin li {
  line-height: 1.85;
  color: #52647b;
}
.admin h2 {
  margin-top: 32px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  header {
    gap: 35px;
  }
  .header-note {
    display: none;
  }
  .intro-note {
    display: none;
  }
  .resource {
    gap: 12px;
  }
  .resource-actions {
    flex-direction: column;
    gap: 2px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    flex-basis: 100%;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .subject h3 {
    font-size: 22px;
  }
}
@media (max-width: 600px) {
  header {
    padding: 16px 20px;
    min-height: 78px;
    gap: 18px;
    justify-content: space-between;
  }
  .brand {
    font-size: 20px;
  }
  .brand-icon {
    width: 32px;
    height: 34px;
  }
  nav {
    gap: 14px;
    font-size: 12px;
  }
  main {
    padding: 0 20px 35px;
  }
  .intro {
    padding: 35px 0;
  }
  .subjects {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .subject {
    min-height: 154px;
    padding: 22px;
  }
  .subject h3 {
    margin-top: 20px;
  }
  .subject-symbol {
    top: 45px;
    font-size: 55px;
  }
  .section-heading {
    gap: 12px;
    align-items: baseline;
  }
  h2 {
    font-size: 21px;
  }
  .text-button {
    font-size: 12px;
  }
  .resource-section {
    margin-top: 34px;
  }
  .toolbar select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
  }
  .resource {
    padding: 20px 12px;
    flex-wrap: wrap;
  }
  .resource-body {
    width: calc(100% - 65px);
  }
  .resource-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
  }
  .resource p {
    font-size: 14px;
  }
  .meta {
    font-size: 12px;
  }
  .example-note {
    padding: 15px;
  }
  footer {
    flex-wrap: wrap;
    padding: 24px 20px;
    gap: 15px;
  }
  footer > a:last-child {
    margin-left: 0;
    width: 100%;
  }
  .reader-top {
    display: block;
  }
  .reader-top h1 {
    font-size: 30px;
  }
  .reader-copy {
    padding: 22px;
  }
  .pdf-frame {
    min-height: 400px;
  }
  .reader-bottom {
    flex-wrap: wrap;
  }
}

/* Clasificación de apuntes y navegación por materia. */
.subject.active {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.subject {
  min-height: 195px;
}
.class-details {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
}
.resource .class-details {
  margin-top: 8px;
}
.topic-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.topic-labels span {
  border: 1px solid #dbe5f4;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 13px;
  color: #385879;
  background: #f4f7fc;
}
.related-materials {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.related-materials ul {
  padding-left: 20px;
  line-height: 1.9;
}
.related-materials a {
  color: var(--blue);
  text-decoration: underline;
}
