/* Student-facing editorial system. */
.student,.campus-credits {
  --campus-paper:#f7f4ed;
  --campus-ink:#18342b;
  --campus-muted:#4b5a52;
  --campus-green:#075240;
  --campus-fans:#73263e;
  --campus-border:#d9dcd1;
  --campus-serif:Georgia,"Times New Roman",serif;
  background:var(--campus-paper);
  color:var(--campus-ink);
  font-family:Arial,sans-serif;
}
.student[hidden] {display:none}
.student :where(a,button,input,select,summary):focus-visible,.campus-credits :focus-visible {
  outline:3px solid #a25912;
  outline-offset:3px;
}
.student :where(a,button,input,select,summary,[tabindex]) {scroll-margin-block:92px}
.campus-skip {
  position:fixed;z-index:100;top:10px;left:12px;padding:12px;background:white;transform:translateY(-150%);
}
.campus-skip:focus {transform:none}
.student-header {background:#fff;border-color:var(--campus-border)}
.student-brand {letter-spacing:.04em}
.student-brand small {letter-spacing:.13em;font-size:.61rem}
.student-brand .campus-brand-mark {
  display:grid;place-items:center;width:38px;height:38px;border-radius:50%;
  background:var(--campus-green);color:white;font:700 1.4rem var(--campus-serif);
}
.campus-header-search {display:grid;place-items:center;width:44px;height:44px}
.student-nav {background:#fdfbf6;border-color:var(--campus-border)}
.student-nav nav a,.student-nav nav button {min-height:42px;line-height:1.2}
.campus-nav-courses {display:grid;grid-template-columns:1fr; margin:.15rem 0 .7rem 1.05rem;border-left:1px solid var(--campus-border)}
.student-nav .campus-nav-courses a {font-size:.86rem;min-height:36px}
.student-nav [aria-current=page] {background:#e0ebe3;color:var(--campus-green);font-weight:700}
.student-nav nav .campus-mobile-fan {display:none}
.student-main {min-width:0}
.student .campus-editorial-hero {
  color:var(--campus-ink);background:#fff;border:1px solid var(--campus-border);border-radius:15px;
  padding:0;overflow:hidden;isolation:isolate;margin:0 0 1.2rem;min-width:0;
}
.campus-with-art {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}
.campus-hero-copy {padding:clamp(1.15rem,3.5vw,3.5rem);align-self:center;min-width:0}
.campus-editorial-hero h1 {font:500 clamp(2rem,4.3vw,4.6rem)/.99 var(--campus-serif);letter-spacing:-.047em;margin:0 0 .7rem;max-width:18ch;overflow-wrap:normal}
.campus-editorial-hero:not(.campus-home-hero) h1 {font-size:clamp(1.85rem,3.5vw,3.65rem);max-width:23ch}
.campus-editorial-hero p {color:var(--campus-muted);font-size:clamp(.93rem,1.3vw,1.1rem);line-height:1.5;margin:.45rem 0}
.student .campus-kicker {display:block;color:var(--campus-green);font-size:.73rem;font-weight:750;letter-spacing:.075em;text-transform:uppercase;line-height:1.35;margin:0 0 .65rem}
.campus-editorial-hero .campus-count {font-size:.82rem;font-weight:700}
.campus-hero-actions {display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}
.campus-action {display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.53rem .85rem;border-radius:8px;border:1px solid #9aa99d;color:var(--campus-green);background:#fff;font-weight:700;text-decoration:none;text-align:center;font-size:.9rem;line-height:1.2}
.campus-action:hover {background:#eaf2eb;text-decoration:none}
.campus-action.campus-action-primary {background:var(--campus-green);color:#fff;border-color:var(--campus-green)}
.campus-action.campus-action-primary:hover {background:#063e31}
.campus-artwork {margin:0;min-width:0;overflow:hidden;position:relative;background:#ddd5c5}
.campus-artwork img {display:block;width:100%;height:100%;object-fit:cover}
.campus-artwork img[hidden] {display:none}
.campus-hero-art {min-height:255px;display:grid;align-content:end}
.campus-hero-art img {position:absolute;inset:0}
.campus-hero-art figcaption {position:relative;padding:.44rem .7rem;background:#18251de8;line-height:1.2;color:#fff;font-size:.7rem}
.campus-hero-art figcaption a {color:#fff;text-decoration:underline;text-underline-offset:2px}
.campus-art-fallback {background:#e3d9c6}
.campus-courses-section,.campus-directory {margin:1.6rem 0}
.campus-courses-section h2,.campus-directory h2,.campus-study-links h2,.campus-itinerary>h2 {font:500 clamp(1.65rem,2.7vw,2.4rem)/1.07 var(--campus-serif);letter-spacing:-.026em;margin:.15rem 0 .75rem}
.campus-course-grid,.campus-subject-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.campus-course-card,.campus-subject-card {display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--campus-border);border-radius:12px;overflow:hidden;text-decoration:none;color:var(--campus-ink)}
.campus-course-card:hover,.campus-subject-card:hover {border-color:#688677;text-decoration:none}
.campus-course-card>.campus-artwork,.campus-subject-card>.campus-artwork {aspect-ratio:2.22;flex:none}
.campus-course-card>div,.campus-subject-copy {padding:1rem}
.campus-course-card h3,.campus-subject-card h3 {margin:.12rem 0 .5rem;line-height:1.14;overflow-wrap:anywhere}
.campus-course-card h3 {font:500 clamp(1.28rem,2.2vw,1.83rem)/1.08 var(--campus-serif)}
.campus-subject-card h3 {font-size:1.03rem}
.campus-course-card p {font-size:.9rem;line-height:1.45;color:var(--campus-muted);margin:.45rem 0 .85rem}
.campus-card-action {color:var(--campus-green);font-size:.84rem;font-weight:700}
.campus-course-card:hover .campus-card-action,.campus-subject-card:hover .campus-card-action {text-decoration:underline}
.campus-section-heading {display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}
.campus-section-heading>span {font-size:.82rem;white-space:nowrap;color:var(--campus-muted)}
.campus-type-cover,.campus-episode-cover {display:flex;align-items:end;background:#e6ece0;color:#234c3d;line-height:1.05}
.campus-type-cover {aspect-ratio:2.22;padding:1rem;font:500 1.45rem/1.05 var(--campus-serif)}
.campus-study-links {display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.5rem 0}
.campus-study-links>div {background:#fff;border:1px solid var(--campus-border);border-radius:12px;padding:1.25rem}
.campus-study-links .campus-fans-promo,.student .student-fan-banner {background:#f5e8ec;color:#542135;border-color:#e4c4cf}
.campus-study-links p {margin:.6rem 0 1rem;line-height:1.45}
.campus-study-links .student-fan-link {margin:.5rem 0 0 .35rem}
.student .student-tabs {align-items:flex-start;gap:.35rem;flex-wrap:wrap;overflow:visible}
.student-tabs>a,.campus-more-tabs summary,.campus-more-tabs>a {
  display:inline-flex;align-items:center;min-height:44px;padding:.5rem .72rem;border-radius:7px;
  border:1px solid var(--campus-border);color:var(--campus-green);background:#fff;text-decoration:none;font-size:.85rem;font-weight:700;
}
.student-tabs a[aria-current=page],.student-tabs a:hover {background:var(--campus-green);color:#fff;border-color:var(--campus-green)}
.campus-more-tabs {position:relative;margin:0}
.campus-more-tabs summary {display:list-item;padding-top:.7rem;cursor:pointer;list-style-position:inside}
.campus-more-tabs[open] {display:flex;flex-wrap:wrap;gap:.35rem}
.student-panel {border-radius:12px;border-color:var(--campus-border)}
.student-panel :where(select,input[type=search],button) {max-width:100%}
.student-search input {min-width:0}
.campus-itinerary>.student-actions {background:#eff2eb;border-radius:8px;padding:.8rem;margin:.9rem 0}
.campus-itinerary progress {accent-color:var(--campus-green);width:100%;height:.7rem;margin:0 0 .5rem}
.student .study-blocks {list-style:none;padding:0;margin:1rem 0}
.study-blocks>li {margin:.55rem 0}
.study-blocks>li>details {border-color:var(--campus-border);background:#fafbf8}
.study-blocks>li>details>summary {display:flex;align-items:center;gap:.75rem;min-height:60px;cursor:pointer;line-height:1.2}
.study-blocks>li>details>summary::after {content:'+';margin-left:auto;color:var(--campus-green);font-size:1.3rem}
.study-blocks>li>details[open]>summary::after {content:'−'}
.study-blocks summary small {display:block;font-weight:400;color:var(--campus-muted);margin-top:.25rem}
.campus-stage-number {background:#dce9dd;border-radius:7px;padding:.5rem;font-variant-numeric:tabular-nums}
.student .campus-practice {background:#f0eee4;border-color:#ded9c8;padding:.2rem .65rem;margin:.6rem 0}
.campus-practice summary {cursor:pointer;min-height:38px}
.student .student-resource {display:grid;grid-template-columns:68px minmax(0,1fr);gap:.5rem .85rem;padding:.85rem 0;align-items:start}
.campus-episode-cover {min-height:66px;padding:.42rem;border-radius:7px;font:700 .76rem/1.07 var(--campus-serif);overflow-wrap:anywhere}
.campus-episode-fans {background:#ead6de;color:#68243b}
.student-resource>.student-actions,.student-resource>.student-player {grid-column:2}
.campus-resource-copy h3 {overflow-wrap:anywhere;line-height:1.2;margin:.35rem 0}
.student-resource .campus-external-action {color:var(--campus-green);background:#e7efe8;border-color:#a9bdb1;text-decoration:none;font-weight:700;min-height:44px}
.student-resource select,.student-resource button,.student-fan-link,.student-menu {min-height:44px}
.student .student-fan-link {background:var(--campus-fans);border-color:var(--campus-fans);color:white}
.student .student-fan-link:hover {background:#5d1c32;color:white}
.student .student-fan-compact {background:#fff;color:var(--campus-fans)}
.student-resource [aria-pressed=true] {background:#e4ece5;color:var(--campus-green);border-color:#83a291}
.student-resource [aria-pressed=true] svg {fill:currentColor}
.student-player {max-width:100%}
.student footer {padding:1.2rem 0;color:var(--campus-muted)}
.campus-credits main {max-width:920px;margin:auto;padding:clamp(1rem,5vw,4rem)}
.campus-credits h1 {font:500 clamp(2rem,5vw,4rem)/1 var(--campus-serif)}
.campus-credit-item h2 {margin:0 0 .6rem}
.campus-credit-item a {color:var(--campus-green)}
@media(max-width:1050px) {
  .campus-course-grid,.campus-subject-grid {gap:.7rem}
}
@media(max-width:830px) {
  .student-nav nav .campus-mobile-fan {display:flex;width:fit-content}
}
@media(max-width:680px) {
  .campus-with-art {grid-template-columns:minmax(0,1fr)}
  .campus-editorial-hero .campus-hero-art {min-height:0;aspect-ratio:2.35}
  .campus-hero-copy {padding:1rem}
  .campus-editorial-hero h1 {max-width:none}
  .campus-course-grid,.campus-subject-grid,.campus-study-links {grid-template-columns:repeat(2,minmax(0,1fr))}
  .campus-course-card>div,.campus-subject-copy {padding:.65rem}
  .campus-study-links {grid-template-columns:1fr}
  .campus-header-search {display:none}
  .student .student-resource {grid-template-columns:46px minmax(0,1fr);gap:.45rem}
  .campus-episode-cover {font-size:.64rem;min-height:47px;padding:.24rem}
  .student-resource>.student-actions,.student-resource>.student-player {grid-column:1/-1}
  .campus-section-heading {align-items:center}
}
@media(max-width:370px) {
  .campus-course-grid {grid-template-columns:1fr}
  .campus-subject-card h3 {font-size:.91rem}
  .campus-subject-card .campus-kicker {font-size:.66rem}
}
@media(prefers-reduced-motion:reduce) {
  .student *, .student *::before, .student *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
.student :is(.campus-external-action,.student-fan-link,.campus-mobile-channel,.campus-hero-art figcaption a)::after {
  content:"";display:inline-block;width:.55em;height:.55em;flex:none;margin-left:.42em;
  border-top:.12em solid currentColor;border-right:.12em solid currentColor;vertical-align:.15em;
}
.student .campus-study-links .campus-action {margin:.25rem .35rem .25rem 0}
.student .student-search {min-height:48px}
.student .student-nav nav a.campus-mobile-channel {display:none}
.student .campus-hero-copy h1:focus {outline:none}
.student .campus-hero-copy h1:focus-visible {outline:2px solid #a25912;outline-offset:4px}
@media(max-width:850px) {
  .student .student-nav nav a.campus-mobile-channel {display:flex}
  .student-nav nav .campus-mobile-fan {display:flex}
}
@media(max-width:440px) {
  .student .student-header .student-fan-link {display:none}
  #campus-root .student-header .student-menu {margin-left:auto}
  .student .campus-nav-courses a {min-height:44px}
}
.student .campus-atlas-inline{margin:.25rem 0;color:#075240;border-color:#9caa93;background:#f0f4e9}
.student .study-blocks details[id^="campus-block-"]{scroll-margin-block:92px}
@media(min-width:1050px){.campus-study-links{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Headings and cards share the text flow of the public campus. */
.student .campus-hero-copy {text-align:center}
.student .campus-editorial-hero h1 {margin-inline:auto;word-break:normal;hyphens:none}
.student .campus-hero-actions {justify-content:center}
.student .campus-section-heading {display:grid;justify-content:center;justify-items:center;text-align:center}
.student .campus-section-heading h2 {margin-bottom:0}
.student .campus-courses-section > h2 {text-align:center}
.student :is(.campus-section-heading h2,.campus-course-card h3,.campus-subject-card h3,.campus-card-action,.campus-resource-copy h3) {
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
.student .campus-course-card,.student .campus-subject-card {display:flex;flex-direction:column}
.student .campus-course-card > div:last-child,.student .campus-subject-copy {display:flex;flex:1;flex-direction:column}
.student .campus-card-action {margin-top:auto;padding-top:.35rem}
.student .student-resource:not(:has(.study-episode-picture)) {grid-template-columns:minmax(0,1fr)}
.student .campus-resource-tags {display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}
.student .campus-resource-tags .campus-episode-cover {
  display:inline-block;
  min-height:0;
  width:auto;
  max-width:100%;
  padding:.28rem .55rem;
  line-height:1.25;
  overflow-wrap:normal;
  word-break:normal;
}
.student :is(#campus-heading,[id^="campus-block-"],[id^="tema-"],[id^="episodio-"]) {scroll-margin-top:7rem}
@media(max-width:680px) {
  .student :is(.campus-course-grid,.campus-subject-grid) {grid-template-columns:minmax(0,1fr)}
  .student .campus-section-heading {gap:.25rem;margin-bottom:1rem}
  .student .campus-section-heading > span {white-space:normal}
}
.student .student-resource:not(:has(.study-episode-picture)) > :is(.student-actions,.student-player) {grid-column:1/-1}

.yt-nav-icon {display:inline-grid;place-items:center;margin-inline-end:.42em;width:1.2em;height:.84em;border-radius:.22em;color:white;background:#c90000;vertical-align:.06em;font-size:.85em}

/* Shared scale for the public campus. */
.student {
  --campus-ui-gap: .75rem;
  --campus-ui-radius: .75rem;
  --campus-touch-target: 44px;
  --campus-reading: 65ch;
  font-size: 1rem;
  line-height: 1.52;
}
.student :is(.student-panel,.campus-subject-card,.campus-course-card,.student-search) {
  border-radius: var(--campus-ui-radius);
  min-width: 0;
}
.student :is(.student-actions,.study-actions,.campus-hero-actions) {gap: var(--campus-ui-gap); flex-wrap:wrap}
.student :is(.campus-action,.student-button,.student-tabs a,.student-search input) {
  min-block-size: var(--campus-touch-target);
  max-inline-size: 100%;
}
.student .student-main {min-inline-size: 0}
.student :is(h1,h2,h3,.student-search,input,select) {min-inline-size: 0; overflow-wrap:anywhere}
.student :is(.student-actions,.study-actions,.yt-filters) :is(input,select) {max-inline-size:100%}
.student :is(.student-panel,.campus-resources-page,.room-resource-links) p {max-inline-size:var(--campus-reading)}
.student .campus-resources-page > p {margin-inline:auto}
.student :is(.resources-muted,.study-context) {font-size:.875rem; line-height:1.45}
.student :is(.student-notice,[role="status"]) {overflow-wrap:anywhere}
.student .campus-resource-copy h3 {line-height:1.36}
@media(max-width:480px) {
  .student {--campus-ui-gap:.55rem}
  .student :is(.student-actions,.study-actions) > :is(a,button,select) {white-space:normal}
}

/* Keep controls readable when filtered lists reflow. */
.student :is(.student-actions,.study-actions,.student-tabs) > * {min-inline-size:0}
.student :is(.student-tabs a,.student-button,.study-actions > a) {overflow-wrap:anywhere}
.student :is(input[type="search"],select) {font-size:max(1rem,1em)}
.student :is(.student-actions,.student-tabs) button {min-inline-size:var(--campus-touch-target)}
.student .campus-section-heading {flex-wrap:wrap}
.student :is(.campus-pending,.campus-load-notice) a:not(.campus-action) {text-underline-offset:.18em}
.student .campus-pending {overflow-wrap:anywhere}
@media (max-width:370px) {
  .student .campus-subject-grid {grid-template-columns:minmax(0,1fr)}
}

/* Rediseño del campus. Los colores de terceros conservan su identidad gráfica. */
.student {
  --primary: #007a33;
  --background: #f8f9fa;
  --surface: #fff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --accent-premium: #d4af37;
  --brand-ivoox: #e4004f;
  --campus-green: var(--primary);
  --campus-paper: var(--background);
  --campus-ink: var(--text-primary);
  --campus-muted: #545e65;
  --campus-ui-gap: .5rem;
  background:var(--background);
  font-family:Inter,Roboto,system-ui,sans-serif;
}
.student .campus-editorial-hero h1,
.student :is(.campus-courses-section,.campus-directory,.campus-study-links) h2 {
  font-family:inherit;
  font-weight:600;
  letter-spacing:-.025em;
  line-height:1.12;
}
.student-nav nav a:has(>svg) {display:flex;align-items:center;gap:.5rem}
.student-nav nav a>svg, .campus-episode-meta svg {flex:none}
.campus-course-progress {
  display:grid;
  gap:.5rem;
  margin:1rem .5rem;
  padding:.75rem;
  background:var(--surface);
  color:var(--campus-ink);
  border:1px solid var(--campus-border);
  border-radius:.75rem;
}
.campus-course-progress strong {font-size:.875rem}
.campus-course-progress small {color:var(--campus-muted)}
.campus-course-progress progress {width:100%;height:.65rem;accent-color:var(--primary)}
.student .student-resource,
.student .student-resource:not(:has(.study-episode-picture)) {
  grid-template-columns:80px minmax(0,1fr);
  gap: .5rem 1rem;
  padding:1rem;
  margin:0 0 .75rem;
  border:1px solid var(--campus-border);
  background:var(--surface);
  border-radius:.75rem;
  box-shadow:0 1px 2px #2125290c;
}
.student .student-resource.campus-exam-fans {
  border-inline-start:4px solid var(--accent-premium);
  background:#fffbf0;
}
.student .campus-exam-fans .student-fan {background:#f8ebc3;color:#573712}
.student-resource>.campus-episode-cover,
.student-resource>.study-episode-picture {
  display:grid;
  place-items:center;
  inline-size:80px;
  block-size:80px;
  border-radius:.75rem;
  overflow:hidden;
}
.student-resource>.campus-episode-cover {
  background:repeating-linear-gradient(135deg,#e9f5ed 0 8px,#d8eee0 8px 16px);
  color:#075240;
  font:600 1.15rem/1 system-ui,sans-serif;
  align-items:center;
}
.student-resource>.study-episode-picture .study-picture {width:100%;height:100%;margin:0}
.student-resource :is(.student-actions,.student-player) {grid-column:1/-1}
.student .ivoox-episode-link {
  border-color:transparent;
  background:transparent;
  padding:0;
  color:var(--text-primary);
  gap:.5rem;
}
.student .ivoox-episode-link::before {--ivoox-mark-size:22px}
.student .ivoox-episode-link .ivoox-external-mark {display:none}
.campus-episode-meta, .campus-episode-meta span {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem;
  color:var(--campus-muted);
  font-size:.875rem;
}
.campus-episode-meta {gap:.5rem 1rem}
.campus-conversion {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;
  margin:0 0 1rem;padding:1rem;background:#fffbf0;border:1px solid #e8ddbd;
  border-inline-start:4px solid var(--accent-premium);border-radius:.75rem}
.campus-conversion p {margin:.5rem 0 0}
.student .campus-completion svg {fill:none}
.student .campus-completion[aria-pressed=true] svg {animation:campus-check .19s ease-out}
@keyframes campus-check {from {transform:scale(.78)} to {transform:scale(1)}}
.campus-toast:not(:empty) {position:fixed;inset:auto 1rem 1rem auto;z-index:25;max-width:calc(100% - 2rem);
  background:#173a28;color:white;padding:.75rem 1rem;border-radius:.75rem;pointer-events:none}
@media(max-width:480px) {
  .student .student-resource, .student .student-resource:not(:has(.study-episode-picture)) {gap:.5rem;padding:.75rem}
}
