/* Institutional identity and complete page layouts */
html { --header-height: 118px; scroll-padding-top: calc(var(--header-height) + 16px); }
.skip-link { z-index: 30; }
.site-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 4px 16px #071b3d0a; }
.header-inner { min-height: var(--header-height); }
.brand { gap: 13px; font-size: 1rem; }
.brand img { width: 100px; height: 100px; }
.main-nav { gap: clamp(12px, 1.2vw, 20px); font-size: .77rem; }
.main-nav > a, .nav-group summary { white-space: nowrap; }
.nav-group { position: relative; }
.nav-group summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  padding: 12px 0;
  cursor: pointer;
  color: #35435b;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav-group[open] summary, .nav-group summary[aria-current="page"] { color: var(--blue); }
.nav-group summary[aria-current="page"]::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 27px;
  height: 2px;
  background: var(--red);
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 13px);
  left: -19px;
  z-index: 5;
  width: 265px;
  display: grid;
  gap: 3px;
  padding: 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 45px #071b3d20;
}
.nav-submenu a { padding: 10px 12px; border-radius: 9px; font-size: .81rem; line-height: 1.45; }
.nav-submenu a:hover, .nav-submenu a[aria-current="page"] { color: var(--blue); background: #eef4ff; }
.campus-slides { position: relative; width: 100%; aspect-ratio: 16/9; }
.campus-slides .campus-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1000ms ease;
  pointer-events: none;
}
.campus-slides .campus-slide.is-active { opacity: 1; }
.site-footer .brand { font-size: .98rem; }
.site-footer .brand img { width: 94px; height: 94px; }
.text-link[type="button"] { padding: 0; background: transparent; border: 0; }

/* Nosotros */
.about-page { overflow: clip; padding-bottom: 78px; }
.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: clamp(35px, 6vw, 90px);
  isolation: isolate;
  padding-block: 42px 70px;
}
.about-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 1% 15%, #e4eeff, transparent 60%),
    radial-gradient(ellipse at 98% 65%, #faeaf2, transparent 52%),
    linear-gradient(120deg, #fbfdff, #f4f7fd);
}
.about-crest { width: 124px; height: 124px; object-fit: contain; margin: 0 0 12px -7px; }
.about-intro-copy > .eyebrow { display: flex; }
.about-hero h1 { font-size: clamp(2.7rem, 4.5vw, 4.7rem); line-height: 1.04; letter-spacing: -.06em; margin: 17px 0 22px; font-weight: 850; }
.about-intro-copy > p { color: var(--muted); font-size: .94rem; max-width: 50ch; }
.about-intro-copy > p.about-lead { font-size: clamp(1rem, 1.3vw, 1.13rem); color: #344960; }
.about-intro-copy > p + p { margin-top: 13px; }
.about-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 23px; margin-top: 24px; }
.about-intro-photo { position: relative; margin-top: 20px; }
.about-intro-photo > img { width: 100%; height: 565px; object-fit: cover; object-position: center bottom; border-radius: 32px; box-shadow: 0 22px 65px #15315d22; }
.about-intro-photo figcaption { position: absolute; left: -22px; right: 45px; bottom: 25px; display: flex; align-items: center; gap: 16px; padding: 21px; background: #ffffffee; border: 1px solid #fff; border-radius: 21px; box-shadow: 0 10px 25px #071b3d12; backdrop-filter: blur(14px); }
.about-intro-photo figcaption > i { display: grid; place-items: center; width: 45px; height: 45px; background: #fff0f2; color: var(--red); border-radius: 14px; font-size: 1.25rem; }
.about-intro-photo figcaption strong { display: block; font-size: 1rem; }
.about-intro-photo figcaption small { display: block; color: var(--muted); margin-top: 3px; font-size: .78rem; }
.about-section, .about-recognition, .about-values-section, .about-infrastructure, .about-hymn, .about-life { margin-top: 78px; }
.about-page .section-heading { align-items: center; }
.about-page .section-heading p { max-width: 43ch; font-size: .96rem; }
.about-page .section-heading h2 { margin-top: 13px; }
.about-page .section-heading h2::before { display: none; }
.about-page h2 { font-size: clamp(2.1rem, 3.5vw, 3.3rem); font-weight: 800; letter-spacing: -.05em; }
.about-page h3 { font-size: 1.2rem; font-weight: 750; }
.about-timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; margin: 32px 0 0; padding: 0; }
.about-timeline li { position: relative; border-top: 1px solid #b9cce6; padding-top: 23px; }
.about-timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 5px #f5e9ed; }
.about-year { color: var(--blue); font-weight: 800; font-size: .8rem; }
.about-timeline article { margin-top: 20px; padding-right: 10px; }
.about-timeline article > i { display: block; color: var(--blue); font-size: 1.4rem; margin-bottom: 18px; }
.about-timeline h3 { line-height: 1.18; min-height: 2.4em; margin-bottom: 13px; }
.about-timeline p { color: var(--muted); font-size: .87rem; }
.about-recognition { display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; align-items: center; padding: 35px; border: 1px solid var(--line); border-radius: 28px; background: #f8faff; }
.about-recognition h2 { font-size: clamp(2rem, 3vw, 2.7rem); margin: 16px 0; }
.about-recognition p { color: var(--muted); font-size: .9rem; }
.about-badges { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.about-badge { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 170px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.about-badge img { width: 100%; max-width: 150px; height: 95px; object-fit: contain; }
.about-badge figcaption { font-size: .72rem; color: var(--muted); text-align: center; margin-top: 12px; font-weight: 550; }
.about-purpose { padding: 43px; border-radius: 30px; background: var(--navy); color: #fff; }
.about-purpose .eyebrow { color: #a8c8f7; }
.about-purpose .section-heading { margin-bottom: 32px; }
.about-purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.about-purpose-card { padding: 5px 37px 0 0; }
.about-purpose-card + .about-purpose-card { padding: 5px 0 0 37px; border-left: 1px solid #ffffff26; }
.about-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; background: #e9f1ff; color: var(--blue); font-size: 1.1rem; flex: none; }
.about-purpose-card .about-icon { background: #ffffff15; color: #b2d1ff; }
.about-purpose-card h3 { font-size: 1.6rem; margin: 22px 0 14px; }
.about-purpose-card p { color: #c7d5ec; line-height: 1.8; font-size: .96rem; }
.about-seals { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.about-seal { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: #f8faff; }
.about-seal .about-icon { margin-bottom: 28px; }
.about-seal:nth-child(even) .about-icon { color: #b31d30; background: #ffedf0; }
.about-seal h3 { min-height: 2.35em; margin-bottom: 14px; }
.about-seal p { font-size: .87rem; color: var(--muted); }
.about-values-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; padding-block: 39px; border-block: 1px solid var(--line); }
.about-values-section h2 { margin-top: 15px; }
.about-values { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.about-values li { display: flex; align-items: center; gap: 12px; font-size: .88rem; background: #f2f6fd; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-weight: 600; }
.about-values i { width: 19px; text-align: center; color: var(--blue); }
.about-infrastructure { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; }
.about-infrastructure-photo img { width: 100%; height: 440px; object-fit: cover; border-radius: 26px; }
.about-infrastructure h2 { margin: 15px 0; }
.about-infrastructure-copy > p { color: var(--muted); font-size: .91rem; }
.about-features { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 20px; }
.about-features li { display: flex; gap: 16px; align-items: flex-start; }
.about-features h3 { margin: 0 0 5px; font-size: .95rem; }
.about-features p { font-size: .84rem; color: var(--muted); }
.about-hymn { display: grid; grid-template-columns: .8fr 1.2fr; gap: 55px; align-items: center; padding: 36px; background: #f3f7fd; border: 1px solid var(--line); border-radius: 28px; }
.about-hymn h2 { margin: 15px 0; }
.about-hymn-copy p { color: var(--muted); font-size: .91rem; margin-bottom: 15px; }
.about-hymn iframe { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 0; border-radius: 17px; background: var(--navy); }
.about-hymn-media > p { font-size: .75rem; color: var(--muted); margin-top: 10px; }
.about-life-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.about-life-card { display: flex; flex-direction: column; align-items: flex-start; padding: 27px; border: 1px solid var(--line); background: #f8faff; border-radius: 22px; transition: background .2s; }
.about-life-card:hover { background: #edf4ff; }
.about-life-card h3 { font-size: 1.25rem; margin: 23px 0 13px; }
.about-life-card p { color: var(--muted); font-size: .87rem; margin-bottom: 20px; }
.about-life-action { color: var(--blue); font-weight: 650; font-size: .8rem; margin-top: auto; }

/* Complete course and team directories */
.course-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px; }
.course-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 25px; background: #fff; scroll-margin-top: 25px; }
.course-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; background: #f6f9ff; }
.course-heading .eyebrow { font-size: .62rem; letter-spacing: .07em; }
.course-heading h2 { margin: 0; font-size: 1.7rem; }
.course-photo img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.course-team { padding: 24px; }
.course-team h3 { font-size: 1rem; margin-bottom: 19px; }
.course-people { display: grid; gap: 13px; }
.detail-content a.course-person { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.course-person img { width: 57px; height: 63px; object-fit: cover; object-position: 50% 20%; border-radius: 12px; }
.course-person-copy strong { display: block; font-size: .86rem; line-height: 1.3; font-weight: 650; }
.course-person-copy small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
.course-person:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.area-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.detail-content .area-card a { display: block; color: var(--navy); text-decoration: none; font-weight: 400; }
.area-card img { width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; }
.area-card a > div { padding: 23px; }
.area-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.area-card p { font-size: .87rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 19px; }
.area-card:hover h3 { color: var(--blue); }
.staff-page-intro { max-width: 82ch; margin: 0 auto 35px; font-size: 1rem; line-height: 1.9; }
.staff-page-intro p { max-width: none; }

/* Workshops */
.workshop-section { padding-block: 45px 78px; }
.workshop-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.workshop-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 23px; background: #fff; }
.workshop-photo { position: relative; }
.workshop-photo > img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.workshop-level { position: absolute; left: 15px; top: 15px; color: var(--blue); background: #fffffff2; border-radius: 18px; padding: 4px 10px; font-weight: 700; font-size: .68rem; }
.workshop-illustration { color: var(--muted); font-size: .68rem; margin-top: 7px; }
.workshop-copy { padding: 22px; }
.workshop-copy h2 { font-size: 1.45rem; letter-spacing: -.04em; margin-bottom: 20px; }
.workshop-monitor { display: flex; align-items: center; gap: 12px; }
.workshop-monitor img { width: 50px; height: 54px; object-fit: cover; object-position: 50% 20%; border-radius: 11px; }
.workshop-monitor small, .workshop-monitor span { display: block; color: var(--muted); font-size: .72rem; }
.workshop-monitor strong { display: block; font-weight: 650; font-size: .82rem; line-height: 1.3; }
.workshop-gallery { display: flex; gap: 7px; margin-top: 19px; }
.workshop-thumbnail { border: 2px solid transparent; background: transparent; padding: 2px; border-radius: 9px; opacity: .7; }
.workshop-thumbnail[aria-pressed="true"] { border-color: var(--blue); opacity: 1; }
.workshop-thumbnail img { width: 48px; height: 35px; object-fit: cover; border-radius: 5px; }
.workshop-contact { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 28px; background: #f2f6fd; border: 1px solid var(--line); border-radius: 20px; margin-top: 35px; }

/* Documents, contact and original articles */
.documents-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); align-items: start; gap: 28px; }
.documents-filter { display: grid; gap: 8px; padding: 0; }
.documents-filter .filter-button { display: flex; align-items: center; gap: 11px; padding: 15px 17px; border-radius: 13px; text-align: left; }
.documents-filter .filter-button > span:first-of-type { flex: 1; }
.documents-filter .filter-button > .arrow { font-size: .9rem; }
.doc-card .eyebrow { margin-bottom: 16px; font-size: .64rem; }
.doc-card h2 { font-size: clamp(1.7rem, 2.6vw, 2.45rem); }
.contact-convivencia { padding: 35px; border: 1px solid var(--line); border-radius: 24px; background: #f2f6fd; }
.contact-convivencia h2 { margin: 15px 0; }
.contact-topics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; list-style: none; padding: 0; margin: 25px 0; }
.contact-topics li { font-size: .82rem; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.contact-convivencia > p { margin-top: 10px; font-size: .82rem; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 35px; }
.pagination [aria-current="page"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.inner-hero--article h1 { max-width: 30ch; font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1.16; letter-spacing: -.045em; }
.article { max-width: 1000px; }
.article-copy { max-width: none; }
.article-copy > p, .article-body > p, .article-body > h2, .article-body > h3, .article-body > ul, .article-body > ol, .article-copy > .text-link { max-width: 72ch; margin-inline: auto; }
.article-body { margin-top: 25px; }
.article-body > * + * { margin-top: 22px; }
.article-body h2, .article-body h3 { margin-top: 34px; font-weight: 750; }
.article-body h3 { font-size: 1.4rem; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.article-body a + a { margin-left: .35em; }
.article-body .article-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.article-body .article-gallery figure { overflow: hidden; border-radius: 17px; background: #f2f6fd; }
.article-body img { width: 100%; height: auto; border-radius: 17px; cursor: zoom-in; }
.article-body .article-gallery img { height: 100%; max-height: 480px; object-fit: contain; }
.article-copy > .text-link { display: flex; justify-content: flex-start; margin-top: 30px; }
.section-empty { max-width: 700px; margin: 0 auto; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: #f5f8fd; }
.section-empty > i { color: var(--blue); font-size: 2rem; margin-bottom: 20px; }
.section-empty .button, .section-empty .text-link { margin: 20px 15px 0 0; }

@media (max-width: 1200px) {
  .main-nav { gap: 11px; font-size: .73rem; }
  .site-header .brand { font-size: .92rem; gap: 8px; }
  .site-header .brand img { width: 88px; height: 88px; }
  .about-hero { gap: 40px; }
  .about-intro-photo > img { height: 550px; }
  .about-seals { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-seal h3 { min-height: 0; }
}
@media (max-width: 1100px) {
  html { --header-height: 100px; }
  .menu-toggle { display: inline-flex; flex: none; align-items: center; gap: 9px; min-height: 42px; padding: 5px 12px; background: #f4f8ff; color: var(--blue); border: 1px solid var(--line); border-radius: 12px; font-size: .85rem; font-weight: 700; }
  .main-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 14px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 6px 20px; font-size: .88rem; max-height: calc(100vh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); overflow: auto; overscroll-behavior: contain; }
  .main-nav .portal-link { justify-self: start; }
  .nav-group[open] { grid-column: 1/-1; }
  .nav-group summary { padding-block: 12px; }
  .nav-submenu { position: static; width: auto; margin-block: 5px 10px; padding: 6px; border-radius: 12px; box-shadow: none; background: #f5f8ff; }
  .nav-submenu a { font-size: .84rem; }
  .about-hero { gap: 30px; }
  .about-crest { width: 105px; height: 105px; }
  .about-hero h1 { font-size: 3.1rem; }
  .about-intro-photo > img { height: 560px; }
  .about-recognition { gap: 27px; padding: 28px; }
  .about-timeline { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 35px 25px; }
  .about-timeline h3 { min-height: 0; }
  .about-infrastructure, .about-hymn { gap: 30px; }
  .area-grid, .workshop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .course-grid { gap: 23px; }
  .course-heading { display: block; }
  .course-heading h2 { margin-top: 11px; }
  .contact-topics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  html { --header-height: 89px; }
  .header-inner { gap: 12px; }
  .site-header .brand { flex: 1; min-width: 0; gap: 8px; font-size: .86rem; }
  .site-header .brand img { width: 76px; height: 76px; flex: none; }
  .site-footer .brand img { width: 80px; height: 80px; }
  .site-footer .brand { font-size: .91rem; }
  .gallery-caption { font-size: .72rem; }
  .gallery-caption small { display: block; font-size: .65rem; }
  .about-page { padding-bottom: 46px; }
  .about-hero { grid-template-columns: 1fr; padding-block: 25px 35px; gap: 28px; }
  .about-crest { width: 105px; height: 105px; margin-bottom: 10px; }
  .about-hero h1 { font-size: clamp(2.55rem, 10.7vw, 3.8rem); }
  .about-intro-copy > p { font-size: .91rem; }
  .about-intro-copy > p.about-lead { font-size: 1rem; }
  .about-intro-photo { margin: 0; }
  .about-intro-photo > img { height: auto; aspect-ratio: .95; border-radius: 24px; }
  .about-intro-photo figcaption { left: 13px; right: 13px; bottom: 15px; padding: 14px; border-radius: 16px; gap: 11px; }
  .about-intro-photo figcaption small { font-size: .68rem; }
  .about-intro-photo figcaption strong { font-size: .88rem; }
  .about-intro-photo figcaption > i { width: 35px; height: 35px; font-size: 1rem; }
  .about-section, .about-recognition, .about-values-section, .about-infrastructure, .about-hymn, .about-life { margin-top: 46px; }
  .about-page h2 { font-size: 2.1rem; }
  .about-page .section-heading p { font-size: .9rem; }
  .about-timeline { grid-template-columns: 1fr; gap: 25px; margin-top: 30px; }
  .about-timeline li { border-top: 0; border-left: 1px solid #b9cce6; padding: 0 0 0 23px; }
  .about-timeline li::before { top: 3px; left: -5px; }
  .about-timeline article { margin-top: 15px; }
  .about-timeline article > i { display: none; }
  .about-timeline h3 { font-size: 1.2rem; margin-bottom: 9px; }
  .about-recognition, .about-values-section, .about-infrastructure, .about-hymn { grid-template-columns: 1fr; gap: 27px; }
  .about-recognition { padding: 24px; }
  .about-badge { min-height: 140px; padding: 14px 9px; }
  .about-badge img { height: 76px; max-width: 125px; }
  .about-badge figcaption { font-size: .64rem; }
  .about-purpose { padding: 28px 24px; border-radius: 24px; }
  .about-purpose-grid { grid-template-columns: 1fr; }
  .about-purpose-card { padding: 0 0 26px; }
  .about-purpose-card + .about-purpose-card { border-left: 0; border-top: 1px solid #ffffff26; padding: 26px 0 0; }
  .about-purpose-card p { font-size: .92rem; }
  .about-seals { grid-template-columns: 1fr; gap: 13px; }
  .about-seal { padding: 23px; }
  .about-seal .about-icon { margin-bottom: 18px; }
  .about-values { gap: 9px; }
  .about-values li { padding: 11px 10px; font-size: .73rem; gap: 8px; }
  .about-infrastructure-photo img { height: auto; aspect-ratio: 16/10; border-radius: 22px; }
  .about-hymn { padding: 25px; }
  .about-life-grid { grid-template-columns: 1fr; gap: 14px; }
  .about-life-card { padding: 24px; }
  .course-grid, .area-grid, .workshop-grid { grid-template-columns: 1fr; gap: 22px; }
  .course-selector { flex-wrap: nowrap; overflow: auto; padding-bottom: 10px; margin-bottom: 15px; }
  .course-selector .filter-button { flex: none; }
  .course-heading { display: flex; padding: 20px; }
  .course-heading h2 { font-size: 1.5rem; margin: 0; }
  .course-team { padding: 20px; }
  .course-person img { width: 49px; height: 57px; }
  .course-person-copy strong { font-size: .8rem; }
  .course-person-copy small { font-size: .69rem; }
  .staff-page-intro { font-size: .93rem; line-height: 1.85; margin-bottom: 25px; }
  .workshop-section { padding-block: 30px 46px; }
  .workshop-copy { padding: 22px; }
  .documents-layout { grid-template-columns: 1fr; gap: 18px; }
  .documents-filter { display: flex; overflow: auto; flex-wrap: nowrap; gap: 7px; padding-bottom: 8px; }
  .documents-filter .filter-button { flex: none; padding: 11px 14px; white-space: nowrap; }
  .documents-filter .filter-button > .arrow { display: none; }
  .doc-card { padding: 23px 19px; }
  .doc-card h2 { font-size: 1.8rem; }
  .doc-card iframe { height: 480px; }
  .contact-convivencia { padding: 25px; }
  .contact-topics { grid-template-columns: 1fr; }
  .contact-convivencia .button { font-size: .75rem; text-align: center; }
  .pagination { flex-wrap: wrap; }
  .article-body .article-gallery { grid-template-columns: 1fr; gap: 15px; }
  .article-body .article-gallery img { height: auto; max-height: none; }
  .article-body h3 { font-size: 1.2rem; }
  .section-empty { padding: 28px; }
}
@media (max-width: 355px) {
  html { --header-height: 76px; }
  .site-header .brand { font-size: .76rem; gap: 5px; }
  .site-header .brand img { width: 60px; height: 60px; }
  .menu-toggle { font-size: .78rem; padding-inline: 9px; }
  .about-values { grid-template-columns: 1fr; }
  .course-heading { display: block; }
  .course-heading h2 { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .campus-slides .campus-slide { transition: none; }
}

/* Publication detail keeps the original WordPress content in a reading layout. */
.publication-page { background: #fcfbf8; color: #10264a; padding-bottom: 24px; }
.publication-page .publication-header { width: min(1040px, calc(100% - 112px)); padding-block: clamp(30px, 4vw, 58px) 38px; }
.publication-back { display: inline-flex; align-items: center; gap: 11px; color: #174291; font-size: .84rem; font-weight: 650; min-height: 38px; }
.publication-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.publication-meta { margin-top: 31px; }
.publication-meta .news-meta { gap: 13px; color: #5b6a7f; font-size: .78rem; font-weight: 500; }
.publication-meta .news-tag { padding: 0; background: none; border: 0; border-radius: 0; color: #174291; font-size: inherit; font-weight: 650; }
.publication-meta time { padding-left: 13px; border-left: 1px solid #c9d5e4; }
.publication-header h1 { max-width: 30ch; margin: 17px 0 0; color: #10264a; font-size: clamp(2.25rem, 4.1vw, 3.8rem); font-weight: 750; line-height: 1.14; letter-spacing: -.047em; overflow-wrap: anywhere; text-wrap: pretty; }
.publication-page .publication-content { width: min(1040px, calc(100% - 112px)); }
.publication-page .article { max-width: none; padding-block: 0 60px; }
.publication-page .article-copy { margin-top: 0; max-width: none; }
.publication-page .article-body { margin-top: 0; color: #304761; font-size: 1.04rem; line-height: 1.9; overflow-wrap: anywhere; }
.publication-page .article-body > :is(p, h2, h3, h4, ul, ol, blockquote, pre, table) { max-width: 70ch; margin-inline: auto; }
.publication-page .article-body > p:first-child { color: #243e5d; font-size: 1.13rem; line-height: 1.85; }
.publication-page .article-body > * + * { margin-top: 25px; }
.publication-page .article-body h2 { color: #10264a; font-size: 1.85rem; font-weight: 700; line-height: 1.25; margin-block: 40px 18px; letter-spacing: -.035em; }
.publication-page .article-body h3 { color: #10264a; font-size: 1.42rem; font-weight: 700; line-height: 1.35; margin-block: 34px 15px; letter-spacing: -.025em; }
.publication-page .article-body :is(ul, ol) { padding-left: 1.4em; }
.publication-page .article-body li + li { margin-top: 10px; }
.publication-page .article-body a { color: #174291; font-weight: 600; text-decoration-color: #aabedb; text-underline-offset: 4px; }
.publication-page .article-body a:hover { text-decoration-color: #174291; }
.publication-page .article-body blockquote { padding: 22px 26px; border-left: 3px solid #cc1b29; border-radius: 0 14px 14px 0; background: #f0f4fa; color: #304761; }
.publication-page .article-body :is(figure, .wp-caption) { max-width: 100%; }
.publication-page .article-body img:not(.emoji):not(.wp-smiley),
.publication-page .article-figure img { width: 100%; height: auto; max-height: 780px; object-fit: contain; border-radius: 17px; background: #edf2f7; box-shadow: 0 8px 24px #10264a0a; }
.publication-page .article-body .content-photo, .publication-page .article-figure .content-photo { cursor: zoom-in; }
.publication-page .article-figure { margin: 0 0 35px; overflow: hidden; border: 1px solid #e0e7f0; border-radius: 18px; background: #edf2f7; }
.publication-page .article-body figcaption { position: static; max-width: 70ch; margin: 12px auto 0; color: #5b6a7f; font-size: .82rem; line-height: 1.7; text-align: center; }
.publication-page .article-body .emoji, .publication-page .article-body .wp-smiley { width: 1em; height: 1em; display: inline; border-radius: 0; box-shadow: none; background: none; }

/* A manual, swipeable gallery also accepts WordPress and Instagram album HTML. */
.publication-gallery { overflow: hidden; margin-block: 34px; border: 1px solid #dce5f0; border-radius: 20px; background: #fff; box-shadow: 0 12px 35px #10264a0b; }
.publication-page .article-body .publication-gallery-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; grid-template-columns: none; align-items: stretch; gap: 0; width: 100%; max-width: none; margin: 0; padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #b7c8e1 #edf2f8; list-style: none; }
.publication-page .article-body .publication-gallery-track > .publication-gallery-slide { display: flex; flex-direction: column; justify-content: center; width: 100% !important; max-width: none !important; min-width: 0; margin: 0 !important; padding: 0; float: none; border: 0; border-radius: 0; scroll-snap-align: start; scroll-snap-stop: always; background: #edf2f7; overflow: hidden; box-shadow: none; }
.publication-page .article-body .publication-gallery-slide > a { display: block; flex: 1; min-width: 0; }
.publication-page .article-body .publication-gallery-slide img,
.publication-page .article-body img.publication-gallery-slide { display: block; width: 100% !important; height: clamp(290px, 52vw, 620px) !important; max-height: none; margin: 0; object-fit: contain !important; border: 0; border-radius: 0; background: #edf2f7; box-shadow: none; }
.publication-page .article-body .publication-gallery-slide figcaption { position: static !important; display: block !important; flex: none; width: 100%; max-height: none; max-width: none; margin: 0; padding: 14px 23px; color: #53627a; background: #fff; font-size: .82rem; line-height: 1.7; text-align: left; text-shadow: none; overflow: visible; }
.publication-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 66px; padding: 10px 18px; border-top: 1px solid #e1e8f1; color: #53627a; background: #fff; font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.publication-gallery-controls button { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid #d9e3f0; border-radius: 50%; color: #174291; background: #f5f8fc; transition: border-color .2s ease, background .2s ease; }
.publication-gallery-controls button:hover { border-color: #9fb6d8; background: #eaf1fb; }
.publication-page .article-body .publication-gallery-caption { max-width: none; margin: 0; padding: 0 24px 21px; background: #fff; color: #53627a; }
.publication-page .article-body .instagram-media { min-width: 0 !important; width: 100% !important; max-width: 540px; margin-inline: auto !important; }
.publication-page .article-body video { display: block; width: 100%; height: auto; max-height: 720px; border-radius: 17px; background: #10264a; }
.publication-page .article-body .article-external-video { width: 100%; margin-inline: 0; padding: 12px; border: 1px solid #dde5ef; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px #10264a08; }
.publication-page .article-external-video iframe,
.publication-page .wp-block-embed-youtube iframe,
.publication-page .wp-block-embed-vimeo iframe { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #edf2f7; }
.publication-page .article-external-video figcaption { padding: 0 12px 5px; }

.publication-footer { margin-top: 48px; padding-top: 30px; border-top: 1px solid #dde5ef; }
.publication-page .article-navigation { margin-top: 0; padding-top: 0; border: 0; gap: 18px; }
.publication-page .article-navigation a { min-width: 0; padding: 25px; border-color: #dce5f0; border-radius: 15px; color: #10264a; background: #fff; }
.publication-page .article-navigation strong { font-size: 1rem; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.publication-page .article-navigation small { color: #63748d; font-size: .73rem; }
.publication-page .article-navigation a:hover { border-color: #b1c5e1; background: #f2f6fc; }
.publication-footer > .text-link { margin-top: 26px; font-size: .85rem; }

.photo-dialog--publication { width: min(1240px, calc(100% - 36px)); padding: 13px; border-radius: 19px; background: #10264a; }
.photo-dialog--publication figure img { max-height: 74vh; max-height: 74svh; background: #10264a; }
.photo-dialog--publication figcaption { max-width: 80ch; color: #d4e0f0; line-height: 1.7; margin-inline: auto; padding: 13px 8px 5px; }
.photo-dialog--publication figcaption:empty { display: none; }
.photo-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 22px; padding-top: 12px; color: #e5eefb; font-size: .8rem; font-variant-numeric: tabular-nums; }
.photo-gallery-controls button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #ffffff30; border-radius: 50%; color: #fff; background: #ffffff0e; }
.photo-gallery-controls button:hover { background: #ffffff24; }
.photo-dialog--publication :is(.photo-close, .photo-gallery-controls button):focus-visible { outline-color: #fff; }

@media (max-width: 760px) {
  .publication-page .publication-header, .publication-page .publication-content { width: calc(100% - 36px); }
  .publication-page .publication-header { padding-block: 24px 29px; }
  .publication-header h1 { margin-top: 15px; font-size: clamp(1.95rem, 7.2vw, 2.8rem); line-height: 1.18; }
  .publication-meta { margin-top: 23px; }
  .publication-meta .news-meta { font-size: .74rem; }
  .publication-page .article-body { font-size: .97rem; line-height: 1.85; }
  .publication-page .article-body > p:first-child { font-size: 1.04rem; }
  .publication-page .article-body h2 { font-size: 1.6rem; }
  .publication-page .article-body h3 { font-size: 1.3rem; }
  .publication-page .article-body > * + * { margin-top: 21px; }
  .publication-gallery { margin-block: 26px; border-radius: 15px; }
  .publication-page .article-body .publication-gallery-slide img,
  .publication-page .article-body img.publication-gallery-slide { height: clamp(260px, 90vw, 510px) !important; }
  .publication-gallery-controls { min-height: 61px; padding: 8px 14px; }
  .publication-page .article-body .publication-gallery-slide figcaption { padding: 13px 16px; font-size: .78rem; }
  .publication-page .article-body .publication-gallery-caption { padding: 0 17px 17px; }
  .publication-page .article-body :is(img:not(.emoji):not(.wp-smiley), video) { border-radius: 13px; }
  .publication-page .article-body .publication-gallery-track .publication-gallery-slide img,
  .publication-page .article-body .publication-gallery-track img.publication-gallery-slide { border-radius: 0; }
  .publication-page .article-body .article-external-video { padding: 8px; border-radius: 14px; }
  .publication-page .article-navigation { grid-template-columns: 1fr; gap: 13px; }
  .publication-page .article-navigation a { padding: 21px; }
  .publication-footer { margin-top: 34px; }
  .photo-dialog--publication { width: calc(100% - 18px); padding: 8px; border-radius: 15px; }
  .photo-dialog--publication figure img { max-height: 70vh; max-height: 70svh; }
  .photo-dialog--publication figcaption { font-size: .77rem; }
}

@media (prefers-reduced-motion: reduce) {
  .publication-gallery-controls button, .publication-page .article-navigation a { transition: none; }
  .publication-page .publication-gallery-track { scroll-behavior: auto; }
}

