/* UNT / RIDUNT — capa visual para VuFind 11, sobre Bootstrap 5.
   No altera filtros, rutas, formularios ni componentes del núcleo. */
:root {
  --cc-radius: 16px;
  --cc-shadow: 0 4px 18px rgb(0 42 84 / 6%);
}

.navbar.banner > .container {
  max-width: 1320px;
  min-width: 0;
}
.navbar.banner .navbar-brand { flex-shrink: 0; padding-inline: 0; }
.navbar.banner .nav-link { border-radius: 8px; font-size: .9rem; }
.navbar.banner .navbar-toggler { color: #fff; border-color: rgb(255 255 255 / 45%); }
.navbar.banner .navbar-collapse { min-width: 0; }
.navbar.banner .navbar-nav { flex-wrap: wrap; }
.cc-dspace-nav-icon { object-fit: contain; vertical-align: middle; margin-right: .3rem; }

.cc-hero {
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem;
  background: radial-gradient(ellipse at top right, rgb(0 174 239 / 22%), transparent 65%),
    linear-gradient(125deg, #002a54, #003f7d 60%, #075c92);
}
.cc-hero .cc-hero-inner {
  width: 100%;
  max-width: 1120px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  background: none;
}
.cc-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.cc-hero .cc-eyebrow { color: #9cdef7; margin-bottom: 1rem; }
.cc-hero-title {
  max-width: 950px;
  margin: 0 auto 1rem;
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  line-height: 1.17;
  text-wrap: balance;
}
.cc-hero-subtitle { max-width: 780px; margin: 0 auto 1.75rem; line-height: 1.6; }
.cc-hero-search { max-width: 960px; }
.cc-hero-search .searchForm { display: block; margin: 0; }
.cc-hero-search .searchForm-inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  padding: .75rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(0 20 50 / 20%);
  color: var(--cc-ink);
}
.cc-hero-search .searchForm-query {
  flex: 1 1 300px;
  min-width: 0;
  box-shadow: none !important;
  border-radius: 8px;
}
.cc-hero-search .searchForm-query input.searchForm_lookfor {
  height: 48px;
  background: #f4f7fb;
}
.cc-hero-search select.searchForm_type { flex: 0 1 200px; max-width: 100%; height: 48px; }
.cc-hero-search .btn-primary { height: 48px; }
.cc-hero-search .searchForm-inputs .advanced-search-link { color: var(--cc-blue) !important; }
.cc-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; font-size: .9rem; }
.cc-hero-search .searchForm-inputs a { color: var(--cc-blue); }

.cc-home-body { padding-top: 2.5rem; }
.cc-section-title { font-size: 1.4rem; margin-bottom: 1.25rem; }
.cc-card-grid--types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-type-card { padding: 1.5rem 1.15rem; text-align: left; border-top-width: 3px; }
.cc-type-card .cc-card-title { margin-bottom: .65rem; }
.cc-type-description { display: block; color: var(--cc-muted); font-size: .88rem; line-height: 1.6; }
.cc-type-action { display: block; margin-top: 1rem; color: var(--cc-blue); font-size: .8rem; font-weight: 700; }

.cc-repository {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 1.75rem;
  border: 1px solid #d6e6da;
  border-radius: 18px;
  background: linear-gradient(120deg, #fff, #f0f7ee);
}
.cc-repository-mark {
  display: grid;
  place-items: center;
  flex: 0 0 88px;
  height: 88px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--cc-shadow);
}
.cc-repository-mark img { object-fit: contain; }
.cc-repository-copy { min-width: 0; flex: 1; }
.cc-repository .cc-eyebrow { color: #416225; margin: 0 0 .5rem; }
.cc-repository h2 { margin: 0 0 .5rem; font-size: 1.3rem; color: var(--cc-blue); }
.cc-repository-copy > p:last-child { margin: 0; color: var(--cc-muted); font-size: .92rem; line-height: 1.65; }
.cc-repository-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  gap: .8rem;
  padding: .85rem 1.2rem;
  background: var(--cc-blue);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.cc-repository-button:hover, .cc-repository-button:focus { background: var(--cc-blue-dark); color: #fff; }
.cc-footer { padding: 2.5rem max(1.25rem, calc((100% - 1280px) / 2)); }
.cc-footer > .row { margin-inline: 0; }
.cc-footer .footer-bottom { margin-top: 2rem; padding-inline: 1rem; border-radius: 10px; }
.cc-footer .resource-link-icon img { object-fit: contain; }

.cc-card:focus-visible, .cc-repository-button:focus-visible, .cc-hero a:focus-visible {
  outline: 3px solid #00aeef;
  outline-offset: 4px;
}
@media (max-width: 1199.98px) {
  .navbar.banner .navbar-collapse { flex-basis: 100%; padding-top: .75rem; }
  .navbar.banner .navbar-nav { align-items: flex-start; }
}
@media (max-width: 767.98px) {
  .cc-card-grid--types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .cc-type-card { padding: 1rem; }
  .cc-type-card .cc-card-title { font-size: .95rem; }
  .cc-repository { flex-wrap: wrap; padding: 1.25rem; gap: 1rem; }
  .cc-repository-mark { flex-basis: 64px; height: 64px; border-radius: 12px; }
  .cc-repository-mark img { width: 48px; height: 48px; }
  .cc-repository-copy { flex-basis: calc(100% - 80px); }
  .cc-repository-button { width: 100%; }
  .cc-hero-search .searchForm-query { flex-basis: 100%; }
  .cc-hero-search select.searchForm_type { flex: 1 1 100%; width: 100%; }
  .cc-hero-search .btn-primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-card, .cc-library-card, .record-list > li.result { transition: none; transform: none; }
}
