:root {
  --navy: #10264a;
  --muted: #455a75;
  --line: #dce5f0;
  --page-paper: #fffefd;
  --page-tint: #f4f7fc;
  --page-shadow: 0 14px 35px #10264a0d;
  --motion-ease: cubic-bezier(.22,.7,.32,1);
}

body { background: var(--page-paper); }
:focus-visible { outline: 3px solid #2760bb; outline-offset: 4px; }

/* Cabecera, navegación y pie. */
.site-header { background: #fffefd; border-bottom-color: #dfe7f2; box-shadow: 0 5px 17px #152b4c0a; }
.site-header .brand { font-weight: 820; letter-spacing: -.04em; }
.main-nav > a:not(.portal-link), .main-nav .nav-group > summary {
  padding-inline: 3px;
  border-radius: 7px;
  transition: color .18s ease, background-color .18s ease;
}
.main-nav > a:not(.portal-link):hover, .main-nav .nav-group > summary:hover { background: #edf3fb; color: var(--blue); }
.main-nav > a[aria-current]:not(.portal-link)::after { inset-inline: 3px; }
.nav-group summary::after { transition: transform .18s var(--motion-ease); }
.nav-group[open] summary::after { transform: translateY(1px) rotate(225deg); }
.nav-submenu { border-color: #dfe7f2; box-shadow: 0 16px 42px #10264a24; }
.nav-submenu a { transition: color .18s ease, background-color .18s ease; }
.portal-link { background: linear-gradient(135deg, #1b4a98, #123674); box-shadow: 0 5px 14px #17429125; }
.portal-link:hover { background: #102f63; }
.site-footer { background: radial-gradient(ellipse at 12% 0%, #1b3b69, transparent 62%), #10264a; border-top: 1px solid #29486f; }
.site-footer .footer-nav h2 { color: #fff; font-size: .91rem; font-weight: 740; }
.site-footer .footer-nav a { color: #d4e0f2; }
.site-footer a:focus-visible { outline-color: #a9cbff; }

/* Portada editorial. */
.home-hybrid .blog-front { padding-block: clamp(22px,3.7vw,57px) 40px; background: linear-gradient(180deg, #f3f7fc 0, var(--page-paper) 620px); }
.home-hybrid .news-intro {
  gap: clamp(22px,3.5vw,54px);
  margin-bottom: clamp(26px,3vw,44px);
  padding: clamp(22px,3.5vw,51px);
  border: 1px solid #254979;
  border-radius: clamp(22px,3vw,34px);
  color: #fff;
  background: radial-gradient(ellipse at 87% -6%, #24518a 0, transparent 72%), linear-gradient(122deg,#0d2143,#183962);
  box-shadow: 0 18px 43px #10264a19;
}
.news-intro-copy { min-width: 0; --reveal-distance: 12px; --reveal-duration: 550ms; }
.news-intro .eyebrow { color: #d5e5fb; }
.news-intro .eyebrow::before { background: #ef6971; }
.home-hybrid .news-intro h1 { margin-block: 18px 17px; color: #fff; font-size: clamp(2.65rem,4.5vw,4.65rem); line-height: 1.02; letter-spacing: -.06em; }
.news-intro h1 .intro-emphasis { color: #c1dcff; }
.news-intro .intro-emphasis > span { color: #ff8589; }
.news-intro .news-intro-copy > p { color: #d9e6f7; max-width: 37ch; font-size: .97rem; line-height: 1.6; }
.news-intro .home-search { width: min(100%, 344px); height: 46px; margin-top: 22px; border-color: #bccfe9; padding-right: 3px; }
.news-intro .home-search button { width: 38px; height: 38px; background: #edf3fc; }
.news-intro .home-search button:hover { background: #dce9fc; }
.news-intro .home-search:focus-within { outline-color: #a9cbff; }
.news-intro .welcome-campus { --reveal-distance: 12px; --reveal-duration: 550ms; --reveal-delay: 60ms; padding: 9px; border: 1px solid #90bbed4f; border-radius: 23px; background: #ffffff13; }
.news-intro .welcome-campus .hero-image { border-radius: 15px; }
.news-intro .gallery-caption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 14px; color: #fff; background: #10264ae8; font-size: .72rem; pointer-events: none; }
.news-intro .photo-expand--surface, .news-intro .photo-expand--surface:hover { inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent; backdrop-filter: none; cursor: zoom-in; }
.news-intro .photo-expand--surface:focus-visible { outline-color: #c3ddff; outline-offset: -5px; }

.home-news-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 18px; margin-bottom: 18px; }
.home-news-heading h2 { display: flex; align-items: center; gap: 12px; color: var(--navy); font-size: clamp(1.35rem,2.45vw,2.2rem); font-weight: 800; }
.home-news-heading h2::before { content: ""; width: 4px; height: .84em; border-radius: 4px; background: var(--red); flex: none; }
.home-news-heading .text-link { font-size: .8rem; }
.blog-opening .news-card { --reveal-duration: 540ms; --reveal-distance: 12px; }
.blog-side-stories .news-card:nth-child(1) { --reveal-delay: 50ms; }
.blog-side-stories .news-card:nth-child(2) { --reveal-delay: 105ms; }
.home-hybrid .blog-opening .news-card--lead { border-color: #dae4f1; background: #fff; color: var(--navy); box-shadow: var(--page-shadow); }
.home-hybrid .news-card--lead .news-card-image { background: #f7f2e9; }
.home-hybrid .news-card--lead .news-card-copy { padding: clamp(19px,2.65vw,39px); }
.home-hybrid .news-card--lead h3 { font-size: clamp(1.38rem,2.3vw,2.15rem); }
.home-hybrid .news-card--lead h3 a:hover, .home-hybrid .news-card--lead .card-cta { color: var(--blue); }
.home-hybrid .news-card--lead .news-meta, .home-hybrid .news-card--lead p { color: var(--muted); }
.home-hybrid .news-card--lead .news-tag { background: #ebf2fd; color: var(--blue); }
.home-hybrid .news-card--side { box-shadow: var(--page-shadow); border-color: #e1e8f2; }
.home-news-end { padding-block: 13px 0; margin-top: 15px; border-top: 1px solid var(--line); }
.home-news-end .blog-socials { background: #fff; }

/* Publicaciones, páginas interiores y lector de noticias. */
.inner-hero { background-image: radial-gradient(ellipse at 82% 0%, #dce9f9ac, transparent 66%), linear-gradient(130deg, #fafdff, #f4f7fc 72%, #faf4f3); }
.inner-hero .center-title::before { width: 45px; height: 3px; background: var(--red); }
.inner-hero .center-title h1 { text-wrap: balance; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.archive .filters { align-items: center; border: 1px solid var(--line); padding: 17px 20px; border-radius: 19px; background: var(--page-tint); }
.archive .search-field { width: min(325px, 100%); }
.archive .search-field input { border-color: #cedaeb; }
.archive .results-status { margin-block: 23px 18px; font-weight: 650; }
.archive .news-card, main[data-page="eventos"] .news-card, main[data-page="propuestas"] .news-card { box-shadow: var(--page-shadow); border-color: #dce5f0; }
.news-card .news-tag[data-category="Sin categoria"] { color: #51647d; background: #eff3f8; }
.archive .news-card h3 { line-height: 1.2; }
.archive .news-card-copy > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card-cta { gap: 8px; font-weight: 750; }
.article-body { color: #293f5a; line-height: 1.83; }
.article-copy > p:first-child { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-body :is(.article-gallery figure, img.content-photo) { box-shadow: var(--page-shadow); }
.article-navigation a { border-color: var(--line); background: #f4f7fc; transition: background-color .2s, border-color .2s; }
.article-navigation a:hover { border-color: #b4cae9; }
.section-empty { background: var(--page-tint); border-radius: 25px; box-shadow: var(--page-shadow); }
.photo-dialog { border-color: #b1c8e869; }

@keyframes menu-arrival {
  from { opacity: 0; translate: 0 -5px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .nav-group[open] .nav-submenu, .main-nav.is-open { animation: menu-arrival .19s var(--motion-ease); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .news-card { transition: transform .24s var(--motion-ease), box-shadow .24s ease; }
  .news-card:hover { transform: translateY(-3px); box-shadow: 0 17px 33px #10264a17; }
  .news-card .card-cta .arrow { transition: transform .22s var(--motion-ease); }
  .news-card:hover .card-cta .arrow { transform: translateX(4px); }
}
@media (max-width: 1150px) {
  .main-nav > a:not(.portal-link), .main-nav .nav-group > summary { padding-inline: 2px; }
}
@media (max-width: 1000px) {
  .home-hybrid .news-intro h1 { font-size: clamp(2.15rem,4.6vw,3.25rem); }
}
@media (max-width: 700px) {
  .main-nav > a:not(.portal-link), .main-nav .nav-group > summary { padding-inline: 6px; }
  .home-hybrid .news-intro { gap: 21px; padding: 21px; }
  .home-hybrid .news-intro h1 { font-size: clamp(2rem,7.7vw,3.1rem); }
  .news-intro .news-intro-copy > p { font-size: .87rem; }
  .news-intro .home-search { width: 100%; margin-top: 18px; }
  .home-news-heading { margin-bottom: 13px; }
  .home-news-heading h2 { font-size: 1.35rem; }
  .home-news-heading .text-link { min-height: 27px; }
  .archive .filters { padding: 14px; }
  .archive .search-field { width: 100%; }
  .archive .filter-button { padding-inline: 12px; }
}
@media (max-width: 360px) {
  .home-hybrid .news-intro { padding: 17px; }
  .news-intro .welcome-campus { padding: 6px; }
  .news-intro .home-search input { padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav > a, .main-nav .nav-group > summary, .nav-group summary::after, .nav-submenu a,
  .news-card, .news-card-image img, .card-cta .arrow, .article-navigation a { transition: none; }
  .news-card:hover, .news-card:hover .news-card-image img { transform: none; }
}
