/* Relieve original con verde y azul institucionales de la UT. */
:root {
  color-scheme: light;
  --ut-bg: #e5e9ef;
  --ut-surface: #e5e9ef;
  --ut-ink: #00245a;
  --ut-muted: #4b6076;
  --ut-blue: #00245a;
  --ut-green: #009d81;
  --ut-action: #006f5c;
  --ut-cyan: #72cbb9;
  --ut-shadow: 9px 9px 22px #c3c9d2, -9px -9px 22px #fff;
  --ut-inset: inset 5px 5px 10px #c5ccd5, inset -5px -5px 10px #fff;
  --ut-radius: 24px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ut-ink);
  background: var(--ut-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
html, * { scrollbar-width: thin; scrollbar-color: #929dac transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #929dac; background-clip: padding-box; border: 3px solid transparent; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background-color: #5e6b7d; }
::-webkit-scrollbar-thumb:active { background-color: var(--ut-green); }
body { margin: 0; font-size: 18px; line-height: 1.65; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--ut-blue); outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only, .icon-definitions { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 20px; top: -100px; padding: 12px 20px; background: #fff; border-radius: 12px; z-index: 20; color: var(--ut-ink); box-shadow: var(--ut-shadow); }
.skip-link:focus { top: 20px; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.soft-card { background: var(--ut-surface); border: 1px solid #ffffff80; border-radius: var(--ut-radius); padding: 28px; box-shadow: var(--ut-shadow); }
.inset-card { background: var(--ut-surface); border-radius: 16px; box-shadow: var(--ut-inset); }
.soft-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 18px; border: 1px solid #ffffffa6; border-radius: 14px; font-size: 16.25px; font-weight: 600; line-height: 1.4; background: linear-gradient(145deg, #f0f3f7, #dce1e8); box-shadow: 4px 4px 9px #c4cbd5, -4px -4px 9px #fff; transition: box-shadow .18s, color .18s, transform .18s; }
.soft-button:hover { color: var(--ut-action); transform: translateY(-1px); box-shadow: 6px 6px 12px #c0c8d2, -6px -6px 12px #fff; }
.soft-button:active { transform: translateY(1px); box-shadow: var(--ut-inset); }
.soft-button--primary { color: #fff; border-color: #8ddbc9; background: linear-gradient(160deg, #38b69b 0%, #00856d 12%, var(--ut-action) 48%, #005d4e 100%); box-shadow: inset 0 2px 3px #ffffffc4, inset 0 -2px 3px #004c3f70, 4px 4px 10px #9cacbc, -4px -4px 10px #fff; text-shadow: 0 1px 2px #005544; }
.soft-button--primary:hover { color: #fff; box-shadow: inset 0 2px 3px #ffffffc4, 5px 6px 14px #a3b9d0, -5px -5px 12px #fff; }
.soft-button--primary:active { box-shadow: inset 3px 3px 6px #004f40, inset -2px -2px 5px #58cbb2; }
.eyebrow { font-size: 14.667px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ut-muted); line-height: 1.6; }
.text-link { font-size: 16.25px; font-weight: 600; color: var(--ut-action); text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
.portfolio-rail { position: fixed; inset: 22px auto 22px 22px; width: 122px; z-index: 5; display: flex; align-items: center; flex-direction: column; padding: 22px 10px 18px; border: 1px solid #ffffff85; border-radius: 25px; background: var(--ut-surface); box-shadow: var(--ut-shadow); }
.rail-brand { display: grid; place-items: center; width: 66px; height: 62px; margin-bottom: 32px; }
.rail-brand img { object-fit: contain; width: 60px; height: 44px; }
.rail-nav { display: grid; gap: 19px; width: 100%; }
.rail-link { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 64px; gap: 5px; padding: 10px 2px; border-radius: 15px; color: var(--ut-muted); font-size: 14.667px; font-weight: 600; }
.rail-link .icon { width: 21px; height: 21px; }
.rail-link:hover { color: var(--ut-blue); box-shadow: 4px 4px 8px #c4cbd5, -4px -4px 8px #fff; }
.rail-link.is-active { color: var(--ut-action); box-shadow: var(--ut-inset); }
.rail-return { margin-top: auto; display: grid; gap: 1px; text-align: center; font-size: 14.667px; line-height: 1.6; padding-top: 26px; color: var(--ut-muted); }
.rail-return strong { color: var(--ut-ink); font-size: 15px; }
.portfolio-workspace { max-width: 1800px; margin: auto; padding: 30px 40px 25px 180px; }
.workspace-header { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; font-size: 14.667px; color: var(--ut-muted); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.breadcrumb strong { color: var(--ut-ink); font-weight: 600; }
.course-label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ut-green); box-shadow: 0 0 0 4px #009d8118; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: 28px; scroll-margin-top: 30px; }
.welcome-card { position: relative; overflow: hidden; padding: 36px; }
.welcome-card > :not(.welcome-mark) { position: relative; z-index: 1; }
.welcome-card h1 { font-size: clamp(42px, 4.4vw, 66px); font-weight: 800; line-height: 1.06; margin: 19px 0 18px; letter-spacing: -.065em; }
.welcome-card h1 span { color: var(--ut-action); }
.welcome-description { max-width: 350px; font-size: 16.25px; color: var(--ut-muted); line-height: 1.75; }
.welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 25px; }
.value-chips { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 28px 0 0; }
.value-chips li { font-size: 14.667px; font-weight: 600; color: var(--ut-muted); }
.welcome-mark { position: absolute; right: -28px; top: 26px; transform: rotate(-16deg); color: #d4dbe5; opacity: .52; }
.welcome-mark svg { width: 250px; height: 250px; fill: none; stroke: currentColor; stroke-width: .8; stroke-linejoin: round; }
.student-card { display: flex; flex-direction: column; padding: 28px; }
.student-heading { display: flex; align-items: center; gap: 18px; min-width: 0; }
.student-heading > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.avatar-frame { width: 76px; height: 76px; padding: 5px; border-radius: 50%; box-shadow: 5px 5px 10px #c4cbd5, -5px -5px 10px #fff; flex-shrink: 0; }
.avatar-frame img { height: 100%; width: 100%; border-radius: 50%; object-fit: cover; }
.student-heading h2 { font-size: 23.75px; margin-top: 5px; line-height: 1.35; }
.student-heading .eyebrow { font-size: 14.667px; }
.student-facts { margin: 24px 0 18px; padding: 18px; display: grid; gap: 13px; }
.student-facts div { display: grid; gap: 3px; }
.student-facts dt { font-size: 14.667px; color: var(--ut-muted); }
.student-facts dd { margin: 0; font-size: 15px; font-weight: 600; }
.degree-name { font-size: 14.667px; color: var(--ut-muted); line-height: 1.7; margin-bottom: 22px; }
.profile-link { align-self: flex-start; margin-top: auto; font-size: 15px; }
.profile-link .icon:last-child { width: 14px; height: 14px; flex-basis: 14px; margin-left: 14px; }
.evidence-library, .learning-section { padding-top: 48px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading h2 { font-size: clamp(23px, 2.2vw, 30px); margin-top: 5px; }
.library-total, .unit-label { font-size: 14.667px; color: var(--ut-muted); white-space: nowrap; }
.library-controls { padding: 22px; }
.library-toolbar { display: flex; align-items: center; gap: 25px; justify-content: space-between; }
.unit-tabs { display: flex; padding: 5px; gap: 4px; flex-shrink: 0; border-radius: 15px; }
.unit-tabs button { border: 1px solid transparent; background: transparent; border-radius: 11px; padding: 11px 16px; min-height: 44px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.unit-tabs button:hover { color: var(--ut-action); }
.unit-tabs button[aria-selected="true"] { color: #fff; border-color: #8ddbc9; background: linear-gradient(160deg, #38b69b 0%, #00856d 12%, var(--ut-action) 65%, #005d4e); box-shadow: inset 0 1px 2px #ffffffe0, 2px 3px 6px #a5b4c5; }
.search-field { display: flex; align-items: center; padding: 0 18px; gap: 12px; width: min(100%, 350px); min-height: 52px; color: var(--ut-muted); }
.search-field:focus-within { outline: 2px solid var(--ut-blue); outline-offset: 3px; }
.search-field input { width: 100%; height: 50px; border: 0; background: transparent; outline: none; font-size: 15px; }
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: var(--ut-muted); opacity: 1; }
.category-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.category-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; background: transparent; min-height: 44px; padding: 9px 14px; font-size: 14.667px; color: var(--ut-muted); font-weight: 600; }
.category-filters button:hover, .category-filters button[aria-pressed="true"] { color: var(--ut-ink); box-shadow: 3px 3px 7px #c8cfd9, -3px -3px 7px #fff; border-color: #ffffff8c; background: linear-gradient(145deg, #edf0f5, #dfe4eb); }
.category-filters [data-count] { color: var(--ut-muted); font-size: 14.667px; }
.category-dot { display: inline-block; height: 6px; width: 6px; border-radius: 50%; background: var(--ut-blue); }
.dot-teal { background: var(--ut-green); }
.dot-violet { background: #426b98; }
.results-heading { display: flex; justify-content: space-between; gap: 15px; padding: 26px 1px 18px; align-items: center; }
.results-heading h3 { font-size: 17.5px; letter-spacing: -.02em; }
.results-heading p { font-size: 14.667px; color: var(--ut-muted); }
.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.evidence-card { display: flex; flex-direction: column; min-width: 0; padding: 16px; border-radius: 21px; }
.evidence-thumbnail { display: flex; align-items: center; justify-content: center; overflow: hidden; width: 100%; height: 158px; padding: 16px; border: 0; border-radius: 13px; background: #e0e5ec; box-shadow: inset 3px 3px 7px #c5ccd6, inset -3px -3px 7px #faffff; }
.evidence-thumbnail img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 3px; box-shadow: 2px 3px 8px #69778b21; transition: transform .2s; }
.evidence-thumbnail:hover img { transform: translateY(-2px); }
.thumbnail-fallback { font-size: 16.25px; font-weight: 700; color: var(--ut-muted); }
.evidence-labels { display: flex; justify-content: space-between; gap: 8px; margin: 20px 0 8px; font-size: 14.667px; font-weight: 600; color: var(--ut-muted); }
.evidence-category { display: inline-flex; gap: 6px; align-items: center; }
.file-type { letter-spacing: .05em; }
.evidence-card h4 { font-size: 17.5px; font-weight: 700; line-height: 1.55; letter-spacing: -.02em; margin: 0 0 9px; }
.evidence-title-button { border: 0; padding: 0; background: transparent; text-align: left; font: inherit; }
.evidence-title-button:hover { color: var(--ut-action); }
.evidence-meta { font-size: 14.667px; color: var(--ut-muted); margin-bottom: 19px; }
.evidence-actions { margin-top: auto; display: flex; gap: 12px; align-items: center; }
.evidence-actions .soft-button { flex: 1; font-size: 14.667px; min-height: 44px; padding: 10px; }
.evidence-actions .icon-button { flex: 0 0 44px; }
.icon-button { width: 44px; height: 44px; padding: 10px; flex-shrink: 0; }
.empty-state { padding: 50px 24px; text-align: center; }
.empty-state h3 { font-size: 28.75px; margin: 12px 0; }
.empty-state p { color: var(--ut-muted); font-size: 16.25px; }
.empty-state .soft-button { margin-top: 24px; }
.learning-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr); gap: 28px; }
.summary-card { padding: 28px; }
.summary-intro { font-size: 15px; color: var(--ut-muted); margin-bottom: 25px; }
.summary-card details + details { border-top: 1px solid #c8cfd980; }
.summary-card summary { display: flex; align-items: center; gap: 13px; font-size: 15px; font-weight: 600; min-height: 70px; cursor: pointer; list-style: none; line-height: 1.6; }
.summary-card summary::-webkit-details-marker { display: none; }
.topic-number { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 11px; color: var(--ut-action); box-shadow: var(--ut-inset); font-size: 14.667px; }
.detail-plus { margin-left: auto; font-size: 25px; font-weight: 400; }
.summary-card details[open] .detail-plus { transform: rotate(45deg); }
.summary-card details p { padding: 0 10px 22px 49px; font-size: 15px; line-height: 1.9; color: var(--ut-muted); }
.resource-stack { display: grid; gap: 25px; align-content: start; }
.resource-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.resource-icon { display: grid; place-items: center; height: 46px; width: 46px; color: var(--ut-blue); margin-bottom: 3px; }
.resource-card h3 { font-size: 25px; }
.resource-card .eyebrow + h3 { margin-top: -9px; }
.resource-card .soft-button { margin-top: 6px; width: 100%; justify-content: space-between; font-size: 14.667px; }
.resource-card .text-link { align-self: center; font-size: 14.667px; }
.portfolio-footer { margin-top: 50px; padding: 30px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #c4cdd880; font-size: 14.667px; }
.portfolio-footer strong { font-weight: 600; }
.portfolio-footer p { color: var(--ut-muted); margin-top: 4px; font-size: 14.667px; }
.portfolio-footer .soft-button { font-size: 14.667px; }
.evidence-viewer { position: fixed; inset: 0; width: min(1120px, calc(100% - 48px)); height: min(850px, calc(100dvh - 48px)); max-width: none; max-height: none; padding: 24px; border: 1px solid #ffffffaf; border-radius: 24px; color: var(--ut-ink); background: var(--ut-bg); box-shadow: 0 20px 80px #24304460; }
.evidence-viewer[open] { display: flex; flex-direction: column; }
.evidence-viewer::backdrop { background: #2430449c; }

.viewer-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
.viewer-header h2 { font-size: 25px; line-height: 1.4; margin-top: 4px; }
.viewer-body { flex: 1; min-height: 100px; overflow: auto; padding: 7px; }
.viewer-body iframe { display: block; border: 0; width: 100%; height: 100%; min-height: 100%; border-radius: 11px; background: #fff; }
.viewer-body img { height: 100%; width: 100%; object-fit: contain; }
.viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.viewer-footer p { font-size: 14.667px; color: var(--ut-muted); }
.viewer-footer > div { display: flex; gap: 14px; }
.viewer-footer .soft-button { font-size: 14.667px; }
/* La página de Unidad 2 pertenece a Ética y comparte sus estilos, sin depender del remedial. */
.portfolio-subpage { min-width: 0; }
.study-shell { display: grid; grid-template-columns: 232px minmax(0,1fr); gap: 30px; width: min(1560px,100%); margin: 0 auto; padding: 32px; align-items: start; }
.study-sidebar { position: sticky; top: 28px; padding: 24px 20px; min-width: 0; }
.study-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.study-brand-logo { display: grid; place-items: center; width: 55px; height: 55px; flex: 0 0 55px; padding: 9px; border-radius: 17px; }
.study-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.study-brand > span:last-child { min-width: 0; }
.study-brand strong { display: block; font-size: 22.5px; line-height: 1.4; letter-spacing: -.04em; }
.study-brand small { display: block; font-size: 14.667px; line-height: 1.7; color: var(--ut-muted); }
.study-sidebar .study-back { width: 100%; margin: 26px 0 30px; padding: 12px 9px; font-size: 15px; }
.study-nav-label { font-size: 14.667px; margin-bottom: 14px; }
.study-stages { display: grid; gap: 10px; }
.study-stages a { display: flex; align-items: center; min-height: 46px; padding: 12px 15px; border-radius: 13px; color: var(--ut-muted); font-size: 16.25px; font-weight: 600; line-height: 1.5; transition: color .18s, background .18s, box-shadow .18s; }
.study-stages a:hover { color: var(--ut-blue); background: #ffffff38; }
.study-stages a.actual { color: var(--ut-blue); box-shadow: var(--ut-inset); }
.study-sidebar-note { display: block; padding-top: 24px; margin-top: 24px; border-top: 1px solid #5e6b7d21; font-size: 14.667px; line-height: 1.7; color: var(--ut-muted); }
.study-content { min-width: 0; }
.study-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 5px 0 32px; font-size: 15px; color: var(--ut-muted); }
.study-breadcrumbs a:hover { color: var(--ut-blue); }
.study-breadcrumbs [aria-current] { color: var(--ut-ink); font-weight: 600; }
.study-heading { margin-bottom: 30px; }
.study-heading .eyebrow { color: var(--ut-blue); margin-bottom: 11px; }
.study-heading h1 { font-size: clamp(29px,3.2vw,44px); font-weight: 700; letter-spacing: -.055em; }
.study-empty { text-align: center; display: grid; justify-items: center; padding: clamp(28px,5vw,66px); }
.study-empty-number { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 23px; color: var(--ut-blue); font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.study-empty h2 { font-size: clamp(23px,2.6vw,30px); line-height: 1.4; margin-bottom: 12px; }
.study-empty p { color: var(--ut-muted); line-height: 1.8; font-size: 17.5px; margin-bottom: 28px; }
.study-empty .soft-button { font-size: 16.25px; }
@media (max-width: 980px) {
  .study-shell { grid-template-columns: minmax(0,1fr); padding: 26px; }
  .study-sidebar { position: static; padding: 22px; }
  .study-brand { max-width: 300px; }
  .study-sidebar .study-back { width: auto; margin: 22px 0; padding-inline: 18px; }
  .study-stages { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
  .study-stages a { justify-content: center; padding: 12px 8px; }
  .study-sidebar-note { padding-top: 16px; margin-top: 18px; }
  .study-breadcrumbs { margin-bottom: 25px; }
}
@media (min-width: 1600px) { .portfolio-workspace { max-width: 1440px; padding-left: 100px; padding-right: 40px; } }
@media (max-width: 1150px) {
  .portfolio-workspace { padding-left: 144px; padding-right: 28px; }
  .intro-grid, .learning-grid { gap: 23px; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); }
  .welcome-card { padding: 28px; }
  .welcome-actions { gap: 18px; }
  .student-card { padding: 24px; }
  .student-heading { gap: 12px; }
  .student-heading h2 { font-size: 21.25px; }
  .avatar-frame { width: 62px; height: 62px; }
  .library-toolbar { align-items: stretch; flex-direction: column; gap: 20px; }
  .unit-tabs { align-self: flex-start; }
  .search-field { width: 100%; }
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .intro-grid, .learning-grid { grid-template-columns: minmax(0, 1fr); }
  .welcome-card h1 { font-size: 58px; }
  .welcome-description { max-width: 400px; }
  .student-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
  .student-facts { margin: 0; grid-row: span 2; }
  .degree-name { margin-bottom: 0; }
  .profile-link { grid-column: 2; justify-self: start; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 104px; }
  .portfolio-rail { inset: 12px 12px auto; width: auto; flex-direction: row; gap: 12px; border-radius: 19px; padding: 9px 12px; box-shadow: 6px 6px 15px #c3c9d2, -6px -6px 15px #fff; }
  .rail-brand { width: 45px; height: 46px; flex-shrink: 0; margin: 0; }
  .rail-brand img { width: 43px; height: 36px; }
  .rail-nav { display: flex; justify-content: space-between; gap: 5px; }
  .rail-link { min-height: 49px; min-width: 46px; padding: 6px 5px; gap: 3px; font-size: 14.667px; border-radius: 11px; }
  .rail-link .icon { width: 18px; height: 18px; flex-basis: 18px; }
  .rail-return { display: none; }
  .portfolio-workspace { padding: 104px 20px 22px; }
  .workspace-header { margin-bottom: 23px; min-height: 28px; font-size: 14.667px; }
  .breadcrumb { gap: 8px; }
  .course-label { display: none; }
  .intro-grid { gap: 24px; scroll-margin-top: 104px; }
  .welcome-card { padding: 28px 25px; }
  .welcome-card h1 { font-size: clamp(40px, 11vw, 59px); margin-top: 19px; }
  .welcome-card .eyebrow { font-size: 14.667px; }
  .welcome-description { font-size: 17.5px; max-width: 310px; }
  .welcome-actions { gap: 20px; align-items: start; flex-direction: column; }
  .welcome-mark { right: -75px; top: 16px; }
  .value-chips { gap: 8px 13px; }
  .value-chips li { font-size: 14.667px; }
  .student-card { gap: 20px; padding: 23px; }
  .student-heading { grid-column: 1/-1; gap: 17px; }
  .student-heading h2 { font-size: 22.5px; }
  .student-facts { grid-row: auto; grid-column: 1/-1; }
  .student-facts div { gap: 2px; }
  .degree-name { grid-column: 1/-1; }
  .profile-link { grid-column: 1/-1; }
  .evidence-library, .learning-section { padding-top: 39px; scroll-margin-top: 102px; }
  .section-heading { gap: 14px; align-items: start; flex-direction: column; margin-bottom: 22px; }
  .section-heading .eyebrow { font-size: 14.667px; }
  .section-heading h2 { font-size: 26px; }
  .library-controls { padding: 16px; border-radius: 20px; }
  .unit-tabs { width: 100%; gap: 3px; padding: 5px; border-radius: 12px; }
  .unit-tabs button { flex: 1; padding: 9px 3px; font-size: 14.667px; border-radius: 9px; }
  .search-field { padding: 0 12px; gap: 9px; }
  .search-field input { font-size: 20px; }
  .category-filters { gap: 8px; display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; }
  .category-filters button { padding: 9px 6px; font-size: 14.667px; gap: 6px; }
  .results-heading { padding-top: 24px; }
  .evidence-grid { gap: 24px; grid-template-columns: minmax(0, 1fr); }
  .evidence-card { padding: 18px; }
  .evidence-thumbnail { height: 180px; padding: 20px; }
  .evidence-card h4 { font-size: 18.75px; }
  .evidence-meta { font-size: 14.667px; }
  .evidence-labels { font-size: 14.667px; }
  .evidence-actions .soft-button { font-size: 15px; }
  .resource-stack { grid-template-columns: minmax(0, 1fr); }
  .summary-card { padding: 23px; }
  .summary-card summary { gap: 10px; font-size: 15px; }
  .summary-card details p { padding-left: 0; }
  .portfolio-footer { align-items: flex-start; margin-top: 35px; }
  .portfolio-footer .soft-button { font-size: 14.667px; padding: 10px 12px; }
  .evidence-viewer { width: calc(100% - 16px); height: calc(100dvh - 16px); padding: 18px; border-radius: 19px; }
  .viewer-header { gap: 12px; }
  .viewer-header h2 { font-size: 20px; }
  .viewer-footer { align-items: stretch; flex-direction: column; gap: 13px; }
  .viewer-footer > div { gap: 10px; }
  .viewer-footer .soft-button { flex: 1; padding: 11px 9px; font-size: 14.667px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 600px) {
  .study-shell { padding: 20px 17px; gap: 26px; }
  .study-sidebar { padding: 22px 20px; }
  .study-stages { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (forced-colors: active) {
  html, * { scrollbar-color: ButtonText Canvas; }
  .soft-card, .inset-card, .soft-button, .rail-link, .unit-tabs button, .category-filters button { border: 1px solid CanvasText; }
  :focus-visible { outline-color: Highlight; }
}

/* El portafolio universitario comparte su lector y organiza el acceso por materia. */
.academic-browser { padding: 16px 0 46px; min-width: 0; }
.academic-heading { display: flex; align-items: center; justify-content: space-between; gap: 34px; margin: 25px 0 34px; }
.academic-heading h1 { margin: 12px 0 0; font: 650 clamp(34px,5vw,63px)/1.06 'Space Grotesk',sans-serif; letter-spacing: -.045em; }
.academic-heading h1 span { color: var(--ut-action); }
.academic-brand { display: block; width: min(31vw,340px); height: auto; object-fit: contain; }
.academic-toolbar { display: flex; align-items: center; gap: 30px; padding: 24px; margin-bottom: 26px; }
.academic-toolbar label { display: grid; gap: 10px; min-width: 190px; font: 600 11pt/1.4 Inter,sans-serif; }
.academic-toolbar select { min-height: 48px; width: 100%; border: 0; padding: 10px 14px; color: inherit; background-color: #e5e9ef; font: 500 16px/1.5 Inter,sans-serif; }
.academic-toolbar select:focus-visible { outline:3px solid var(--ut-blue); outline-offset:5px; }
.academic-toolbar h2 { margin: 0 0 8px; font: 600 23px/1.2 'Space Grotesk',sans-serif; }
.academic-toolbar p { margin: 0; font-size: 11pt; color: #526176; line-height: 1.6; max-width: 48ch; }
.academic-subjects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.academic-subject { display: flex; min-width: 0; min-height: 188px; flex-direction: column; gap: 18px; padding: 25px; text-decoration: none; color: inherit; }
.academic-subject-number { font: 600 11pt/1.3 'JetBrains Mono',monospace; color: var(--ut-action); }
.academic-subject strong { font: 600 clamp(21px,2.1vw,27px)/1.2 'Space Grotesk',sans-serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.academic-subject-note { margin-top: auto; font-size: 11pt; line-height: 1.45; color: #526176; }
.academic-subject:hover { transform: translateY(-3px); }
.academic-subject[aria-current='page'] { outline: 2px solid var(--ut-green); outline-offset: 4px; }
.academic-browser--selected .academic-heading { margin-bottom: 22px; }
.academic-browser--selected .academic-heading h1 { font-size: clamp(28px,3.5vw,40px); }
.academic-browser--selected .academic-heading h1 br { display: none; }
.academic-browser--selected .academic-brand { max-width: 230px; }
.academic-browser--selected .academic-subject { min-height: 148px; }
.academic-browser--selected .academic-subject strong { font-size: 21px; }
.academic-browser [hidden], [data-course-content][hidden], [data-ethics-only][hidden] { display: none !important; }
.academic-browser + .intro-grid { scroll-margin-top: 35px; }
#pageTitle { scroll-margin-top: 35px; }
.empty-state > .soft-button { margin: 12px 10px 0 0; }
@media(max-width:1100px) {
  .academic-toolbar { flex-wrap: wrap; gap: 24px; }
  .academic-toolbar > div { flex: 1 1 280px; }
  .academic-subjects { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .academic-browser { padding-top: 0; }
  .academic-heading { align-items: start; flex-direction: column-reverse; gap: 16px; margin-top: 12px; }
  .academic-brand { width: 240px; max-width: 100%; }
  .academic-toolbar { padding: 20px; gap: 22px; }
  .academic-toolbar > label, .academic-toolbar > div { width: 100%; min-width: 0; }
  .academic-toolbar > a { width: 100%; font-size: 11pt; }
  .academic-subjects { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .academic-subject { min-height: 165px; padding: 23px; }
}
