/* Cabecera y portada de vida escolar */
html { --header-height: 92px; }

.site-header {
  background: #fff;
  border-bottom-color: #e4e7ec;
  box-shadow: 0 3px 14px #1325450a;
}

.site-header .brand img { width: 72px; height: 72px; }
.main-nav { gap: clamp(13px, 1.5vw, 24px); }
.main-nav > a:not(.portal-link), .main-nav .nav-group > summary { padding-inline: 7px; }
.main-nav .portal-link { background: #163b78; box-shadow: none; }
.main-nav .portal-link:hover { background: #215093; }

@media (min-width: 971px) {
  .nav-submenu {
    top: 100%;
    left: 0;
    width: min(270px, 31vw);
    padding: 7px;
    gap: 1px;
    border-radius: 10px;
    box-shadow: 0 12px 30px #1325451f;
  }

  .nav-group[data-parent-route="documentos"] .nav-submenu { inset-inline: auto 0; }
  .nav-submenu a { padding: 11px 12px; border-radius: 5px; }
}

.home-hybrid .blog-front {
  padding-block: clamp(22px, 3vw, 45px) 34px;
  border-bottom: 0;
  background: #fff;
}

.home-hybrid .news-intro {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.4fr);
  align-items: stretch;
  gap: 0;
  margin-bottom: clamp(31px, 4.5vw, 64px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5e3dc;
  border-radius: 18px;
  color: var(--navy);
  background: #f5f3ed;
  box-shadow: none;
}

.news-intro .news-intro-copy {
  align-self: center;
  padding: clamp(27px, 4.5vw, 67px);
}

.home-hybrid .news-intro h1 {
  max-width: 12ch;
  margin: 0 0 13px;
  color: #10264a;
  font-size: clamp(2.3rem, 4.7vw, 4.4rem);
  font-weight: 790;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.news-intro .news-intro-copy > p {
  color: #4a5c72;
  font-size: clamp(.93rem, 1.2vw, 1.08rem);
}

.news-intro .home-search {
  width: min(100%, 345px);
  margin-top: 24px;
  border-color: #d3dce8;
  border-radius: 9px;
  box-shadow: none;
}

.news-intro .home-search button { border-radius: 6px; }
.news-intro .home-search:focus-within { outline-color: #2760bb; }

.news-intro .welcome-campus,
.news-intro .welcome-campus :is(.hero-visual, .hero-image, .campus-slides) {
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.news-intro .welcome-campus { padding: 0; background: #dde2d7; }
.news-intro .welcome-campus .hero-image { overflow: hidden; }
.news-intro .campus-slides { min-height: 330px; }
.news-intro .gallery-caption {
  left: auto;
  right: 15px;
  bottom: 14px;
  border-radius: 5px;
  background: #112642e8;
}

.home-news-heading {
  gap: 8px 18px;
  padding-bottom: 13px;
  margin-bottom: 19px;
  border-bottom: 1px solid #dce2ea;
}

.home-news-heading h2 { font-weight: 760; line-height: 1.2; }
.home-news-heading h2::before { display: none; }
.home-news-heading .text-link { font-size: .83rem; }

.home-hybrid .blog-opening { gap: clamp(17px, 2vw, 28px); }
.home-hybrid .blog-opening .news-card {
  border-color: #e1e6ed;
  border-radius: 12px;
  box-shadow: none;
}

.home-hybrid .blog-opening .news-card--lead {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}

.home-hybrid .news-card--lead .news-card-image { background: #ebe8df; }
.home-hybrid .news-card--lead .news-card-image img { object-fit: contain; }
.home-hybrid .news-card--lead h3 { margin-block: 12px; font-weight: 760; }
.home-hybrid .news-card--lead .news-meta { font-size: .76rem; }
.home-hybrid .news-card--side .news-meta { font-size: .71rem; }
.home-hybrid .blog-opening .news-tag[data-category="Noticias"],
.home-hybrid .blog-opening .news-tag[data-category="Sin categoria"] { display: none; }
.home-hybrid .home-news-end { margin-top: 18px; }
.home-hybrid .home-news-end .blog-socials { border-radius: 8px; box-shadow: none; }

.archive .filters { border-radius: 10px; background: #f8f9fb; box-shadow: none; }
.archive .news-card { border-radius: 12px; box-shadow: none; }
.archive .news-card-copy > h3 { font-weight: 740; }
.archive .news-card-image { background: #e9edf2; }

@media (max-width: 970px) {
  html { --header-height: 74px; }
  .site-header .brand img { width: 58px; height: 58px; }
  .site-header .main-nav.is-open { gap: 6px 14px; }
  .nav-submenu { border-radius: 8px; }
  .news-intro .campus-slides { min-height: 260px; }
}

@media (max-width: 700px) {
  html { --header-height: 70px; }
  .site-header .brand img { width: 54px; height: 54px; }
  .home-hybrid .news-intro { grid-template-columns: 1fr; border-radius: 13px; }
  .news-intro .news-intro-copy { padding: 23px 19px 24px; }
  .home-hybrid .news-intro h1 { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: 8px; }
  .news-intro .home-search { margin-top: 17px; }
  .news-intro .campus-slides { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .news-intro .welcome-campus { height: auto; }
  .home-hybrid .news-card--lead .news-card-image { height: auto; aspect-ratio: 4 / 3; }
  .home-hybrid .news-card--side { height: auto; min-height: 153px; }
  .home-hybrid .news-card--side .news-card-copy { padding: 12px; }
  .home-hybrid .news-card--side .news-card-image img { min-height: 100%; }
  .home-news-heading { margin-bottom: 14px; }
}
