/* =====================================================================
   Catálogo Colectivo UNT — rediseño institucional (tema custom)
   Base: bootprint3 > bootstrap3. Paleta institucional UNT:
     azul  #003F7D   |  celeste #00AEEF
   ===================================================================== */

:root {
  --cc-blue: #003f7d;
  --cc-blue-dark: #002a54;
  --cc-blue-light: #0a5aa8;
  --cc-cyan: #00aeef;
  --cc-ink: #1f2a37;
  --cc-muted: #5b6b7c;
  --cc-line: #e2e8f0;
  --cc-bg: #f4f7fb;
  --cc-white: #ffffff;
  --cc-radius: 12px;
  --cc-shadow: 0 2px 10px rgba(0, 42, 84, .08);
  --cc-shadow-hover: 0 10px 26px rgba(0, 42, 84, .16);
}

body {
  background: var(--cc-bg);
  color: var(--cc-ink);
}

a,
a:hover,
a:focus {
  color: var(--cc-blue-light);
}

/* ---------- Header / navbar ---------------------------------------- */
.navbar.banner {
  background: var(--cc-blue) !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  min-height: 68px;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.navbar.banner .navbar-brand {
  height: auto;
  padding: 9px 15px;
}

.navbar.banner .navbar-brand .unt-header-logo {
  height: 50px;
  width: auto;
  display: inline-block;
}

.navbar.banner .navbar-nav > li > a,
.navbar.banner .navbar-nav > li > a:focus {
  color: #eaf3ff !important;
  font-weight: 500;
}

.navbar.banner .navbar-nav > li > a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .10) !important;
}

.navbar.banner .navbar-toggle .icon-link__icon,
.navbar.banner .icon-link {
  color: #eaf3ff;
}

/* Search bar shown on inner pages (below the banner) */
.navbar.search {
  background: var(--cc-white) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--cc-line) !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

/* ---------- Buscador (searchbox) ----------------------------------- */
.searchForm {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.searchForm .searchForm-query {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  overflow: hidden;
}

.searchForm .searchForm-query input.searchForm_lookfor {
  border: 0 !important;
  box-shadow: none !important;
  height: 44px;
  width: 100%;
  padding: 0 14px;
  font-size: 15px;
}

.searchForm select.searchForm_type {
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--cc-line);
  max-width: 220px;
}

.searchForm .btn-primary {
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--cc-blue) !important;
  border-color: var(--cc-blue) !important;
}

.btn-primary:hover {
  background-color: var(--cc-blue-light) !important;
  border-color: var(--cc-blue-light) !important;
}

.advanced-search-link {
  color: var(--cc-blue) !important;
  font-weight: 600;
}

/* ---------- Hero --------------------------------------------------- */
.cc-hero {
  background: linear-gradient(135deg, var(--cc-blue) 0%, var(--cc-blue-light) 55%, var(--cc-cyan) 140%);
  color: #fff;
  padding: 54px 0 60px;
}

.cc-hero-inner {
  text-align: center;
  background: linear-gradient(135deg, var(--cc-blue) 0%, var(--cc-blue-light) 55%, var(--cc-cyan) 140%);
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.cc-hero-title {
  margin: 0 0 6px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}

.cc-hero-subtitle {
  margin: 0 0 28px;
  font-size: 17px;
  color: #cfe6ff;
  font-weight: 400;
}

.cc-hero-search {
  max-width: 100%;
  margin: 0 auto;
}

.cc-hero-search .searchForm {
  float: none;
  width: 100%;
}

.cc-hero-search .searchForm .searchForm-query {
  border: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.cc-hero-search .advanced-search-link {
  color: #eaf3ff !important;
}

/* ---------- Body / sections --------------------------------------- */
.cc-home-body {
  padding-top: 34px;
  padding-bottom: 34px;
}

.cc-section {
  margin-bottom: 42px;
}

.cc-section-title {
  position: relative;
  margin: 0 0 4px;
  padding-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--cc-blue);
}

.cc-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--cc-cyan);
}

.cc-section-subtitle {
  margin: 0 0 20px;
  color: var(--cc-muted);
  font-size: 14px;
}

/* ---------- Cards / grids ----------------------------------------- */
.cc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.cc-card-grid--types {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.cc-card {
  display: block;
  padding: 20px;
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  color: var(--cc-ink) !important;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.cc-card:hover,
.cc-card:focus {
  transform: translateY(-3px);
  box-shadow: var(--cc-shadow-hover);
  border-color: #c7ddff;
  text-decoration: none;
}

.cc-card-title {
  display: block;
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--cc-blue);
}

.cc-card-author {
  margin: 0 0 10px;
  color: var(--cc-muted);
  font-size: 14px;
}

.cc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12.5px;
  color: var(--cc-muted);
}

.cc-card-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--cc-blue);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Material-type quick access cards */
.cc-type-card {
  border-top: 4px solid var(--cc-cyan);
  text-align: center;
}

.cc-type-card .cc-card-title {
  margin: 0;
  font-size: 16px;
}

/* Institution cards */
.cc-card-grid--institutions {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.cc-institution-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 4px solid var(--cc-blue);
}

.cc-institution-card .cc-institution-icon {
  flex: 0 0 auto;
  color: var(--cc-cyan);
  font-size: 22px;
}

.cc-institution-card .cc-card-title {
  margin: 0;
}

/* ---------- Chips -------------------------------------------------- */
.cc-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-chip {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  background: var(--cc-white);
  color: var(--cc-blue) !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.cc-chip:hover,
.cc-chip:focus {
  background: var(--cc-blue);
  color: #fff !important;
  border-color: var(--cc-blue);
  text-decoration: none;
}

/* ---------- Novedades --------------------------------------------- */
.cc-record-card .cc-card-title {
  font-size: 15.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Footer ------------------------------------------------- */
footer .footer-banner {
  background: #fff;
  padding: 14px 0;
  border-top: 1px solid var(--cc-line);
}

footer .footer-banner img {
  height: 60px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.footer-container {
  background: var(--cc-blue);
  color: #eaf3ff;
  padding: 28px 0;
}

.footer-container h2 {
  margin-top: 0;
  font-size: 16px;
  color: #fff;
}

.footer-container a,
.footer-container a:hover,
.footer-container a:focus {
  color: #cfe6ff;
}

.poweredby {
  background: var(--cc-blue-dark);
  color: #cfe6ff;
}

/* ---------- Responsive -------------------------------------------- */
@media (max-width: 767px) {
  .cc-hero {
    padding: 34px 0 40px;
  }

  .cc-hero-title {
    font-size: 28px;
  }

  .searchForm select.searchForm_type {
    max-width: none;
    flex: 1 1 100%;
  }

  .searchForm .btn-primary {
    flex: 1 1 100%;
  }
}

/* ---------------------------------------------------------------------
   Full-width layout for home page (hero edge-to-edge)
   --------------------------------------------------------------------- */
.template-name-home #content {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.template-name-home #content > .container {
  width: auto !important;
  max-width: 1170px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* ---------------------------------------------------------------------
   Full-width layout for home page footer (edge-to-edge)
   --------------------------------------------------------------------- */
.template-name-home footer .container {
  width: auto !important;
  max-width: 1170px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}
.template-name-home footer .footer-banner,
.template-name-home footer .footer-container {
  width: 100%;
}

/* ---------------------------------------------------------------------
   Footer estilo RIDUNT
   --------------------------------------------------------------------- */
.cc-footer .footer-banner {
  background: #fff;
  padding: 18px 0;
  border-top: 1px solid var(--cc-line);
}
.cc-footer .footer-logos img {
  height: 65px;
  width: auto;
}
.cc-footer .footer-container {
  background: #212529;
  color: #adb5bd;
  padding: 48px 0 32px;
}
.cc-footer .footer-title {
  color: #fff;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .08em;
  margin-bottom: 16px;
  font-weight: 700;
}
.cc-footer .footer-desc {
  color: #adb5bd;
  font-size: 14px;
  line-height: 1.6;
}
.cc-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cc-footer .footer-links li {
  margin-bottom: 10px;
}
.cc-footer .footer-links a {
  color: #adb5bd;
  text-decoration: none;
  font-size: 14px;
}
.cc-footer .footer-links a:hover,
.cc-footer .footer-links a:focus {
  color: #fff;
  text-decoration: underline;
}
.cc-footer .contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}
.cc-footer .contact-info li {
  margin-bottom: 8px;
}
.cc-footer .contact-info a {
  color: #adb5bd;
  text-decoration: none;
}
.cc-footer .contact-info a:hover,
.cc-footer .contact-info a:focus {
  color: #fff;
  text-decoration: underline;
}
.cc-footer .bottom-footer {
  background: #151719;
  color: #6c757d;
  padding: 16px 0;
  font-size: 13px;
}
.cc-footer .bottom-footer a {
  color: #6c757d;
  text-decoration: none;
}
.cc-footer .bottom-footer a:hover,
.cc-footer .bottom-footer a:focus {
  color: #fff;
  text-decoration: underline;
}

.template-name-home .cc-footer .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.template-name-home .cc-footer .footer-banner,
.template-name-home .cc-footer .footer-container,
.template-name-home .cc-footer .bottom-footer {
  width: 100%;
}

/* Home hero links */
.cc-hero-links {
  margin-top: 14px;
  text-align: center;
}
.cc-hero-link {
  color: #eaf3ff !important;
  font-weight: 600;
  text-decoration: underline;
}
.cc-hero-link:hover,
.cc-hero-link:focus {
  color: #fff !important;
}

/* Hide default VuFind logo background from inherited themes */
.navbar.banner .navbar-brand {
  background-image: none !important;
  text-indent: 0 !important;
  width: auto !important;
}

.navbar-header {
  width: 100%;
}

.template-name-home .cc-footer .bottom-footer .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ==========================================
   FOOTER INSTITUCIONAL - CATÁLOGO UNT
   VuFind 9.1
   ========================================== */

.cc-footer {
  --footer-blue: #073f78;
  --footer-blue-dark: #052d53;
  --footer-accent: #00a9e8;
  --footer-text: #e7eef6;
  --footer-muted: #b8cadd;
  --footer-border: rgba(255, 255, 255, 0.13);

  margin-top: 4rem;
  color: var(--footer-text);
  background: var(--footer-blue-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Banner institucional */

.cc-footer .footer-banner {
  position: relative;
  overflow: hidden;
  background: var(--footer-blue);
  border-bottom: 4px solid var(--footer-accent);
}

.cc-footer .footer-banner > .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 190px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.cc-footer .footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 270px;
}

.cc-footer .footer-brand img {
  display: block;
  width: 100%;
  max-width: 250px;
  max-height: 125px;
  object-fit: contain;
}

.cc-footer .footer-banner-text {
  padding-left: 1.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.cc-footer .footer-eyebrow {
  display: block;
  margin-bottom: 0.4rem;
  color: #8ddfff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cc-footer .footer-banner h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.cc-footer .footer-banner-text p {
  margin: 0.6rem 0 0;
  color: #d7e6f4;
}

/* Contenido */

.cc-footer .footer-container {
  padding: 3rem 0;
  background: var(--footer-blue-dark);
}

.cc-footer .footer-title {
  position: relative;
  margin: 0 0 1.5rem;
  padding-bottom: 0.85rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.cc-footer .footer-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--footer-accent);
  border-radius: 3px;
  content: "";
}

.cc-footer .footer-desc {
  max-width: 350px;
  margin: 0 0 1.25rem;
  color: var(--footer-muted);
}

.cc-footer .footer-note {
  margin-top: 1rem;
  color: var(--footer-muted);
  font-size: 0.85rem;
}

/* Enlace al repositorio */

.cc-footer .footer-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #8ddfff;
  font-weight: 600;
  text-decoration: none;
}

.cc-footer .footer-resource-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Navegación */

.cc-footer .footer-links,
.cc-footer .contact-info {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-footer .footer-links li {
  margin: 0 0 0.65rem;
}

.cc-footer .footer-links a,
.cc-footer .contact-info a {
  color: var(--footer-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.cc-footer .footer-links a::before {
  margin-right: 0.5rem;
  color: var(--footer-accent);
  content: "›";
}

.cc-footer .footer-links a:hover,
.cc-footer .contact-info a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Datos de contacto */

.cc-footer .contact-info li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.9rem;
  color: var(--footer-text);
  overflow-wrap: anywhere;
}

.cc-footer .contact-info .contact-label {
  color: var(--footer-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

/* Créditos inferiores */

.cc-footer .bottom-footer {
  padding: 1.15rem 0;
  background: #031f39;
  border-top: 1px solid var(--footer-border);
}

.cc-footer .bottom-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cc-footer .bottom-footer p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.82rem;
}

.cc-footer .bottom-footer a {
  color: #8ddfff;
  font-weight: 600;
  text-decoration: none;
}

.cc-footer .bottom-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Accesibilidad */

.cc-footer a:focus-visible {
  outline: 3px solid #8ddfff;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Tabletas y pantallas pequeñas */

@media (max-width: 767.98px) {
  .cc-footer {
    margin-top: 2.5rem;
  }

  .cc-footer .footer-banner > .container {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .cc-footer .footer-brand {
    max-width: 210px;
  }

  .cc-footer .footer-brand img {
    max-height: 95px;
  }

  .cc-footer .footer-banner-text {
    padding-left: 1rem;
    border-left: 3px solid var(--footer-accent);
  }

  .cc-footer .footer-container {
    padding: 2.25rem 0;
  }

  .cc-footer .footer-title {
    margin-bottom: 1.1rem;
  }

  .cc-footer .bottom-footer-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Preferencia de movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  .cc-footer *,
  .cc-footer *::before,
  .cc-footer *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Remove banner and bottom footer styles for simplified footer */
.template-name-home .cc-footer .footer-banner,
.cc-footer .footer-banner,
.template-name-home .cc-footer .bottom-footer,
.cc-footer .bottom-footer {
  display: none !important;
}

/* Footer institucional UNT - VuFind 9.1 */

.cc-footer {
  --footer-bg: #062e54;
  --footer-bg-deep: #041f3b;
  --footer-accent: #20b8ec;
  --footer-text: #eaf2fa;
  --footer-muted: #b9cadd;
  --footer-line: rgba(255, 255, 255, .13);

  margin-top: 3.5rem;
  color: var(--footer-text);
  background: var(--footer-bg);
  font-size: .94rem;
  line-height: 1.7;
}

.cc-footer .container {
  position: relative;
}

.cc-footer > .container {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.cc-footer .footer-section {
  height: 100%;
}

.cc-footer .footer-heading {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.25rem;
}

.cc-footer .footer-heading-icon {
  display: inline-flex;
  flex: 0 0 38px;
  color: var(--footer-accent);
}

.cc-footer .footer-heading-icon svg {
  width: 36px;
  height: 36px;
}

.cc-footer .footer-title {
  position: relative;
  margin: 0 0 1.5rem;
  padding-bottom: .85rem;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.cc-footer .footer-heading .footer-title {
  margin: 0;
  padding: 0;
}

.cc-footer .footer-title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 3px;
  border-radius: 2px;
  background: var(--footer-accent);
  content: "";
}

.cc-footer .footer-heading .footer-title::after {
  display: none;
}

.cc-footer .footer-desc {
  max-width: 370px;
  margin: 0 0 1.5rem;
  color: var(--footer-muted);
}

.cc-footer .footer-resource-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: 360px;
  padding: .85rem 1rem;
  color: #fff;
  border: 1px solid rgba(32, 184, 236, .55);
  border-radius: 8px;
  background: rgba(0, 0, 0, .08);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.cc-footer .footer-resource-link:hover {
  color: #fff;
  background: rgba(32, 184, 236, .12);
  border-color: var(--footer-accent);
}

.cc-footer .resource-link-icon {
  display: inline-flex;
  flex: 0 0 24px;
  color: var(--footer-accent);
}

.cc-footer .resource-link-icon svg {
  width: 23px;
  height: 23px;
}

.cc-footer .footer-resource-link strong,
.cc-footer .footer-resource-link small {
  display: block;
}

.cc-footer .footer-resource-link strong {
  font-size: .9rem;
}

.cc-footer .footer-resource-link small {
  color: var(--footer-muted);
  font-size: .78rem;
}

.cc-footer .resource-arrow {
  margin-left: auto;
  color: var(--footer-accent);
  font-size: 1.2rem;
}

.cc-footer .footer-links,
.cc-footer .contact-info {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-footer .footer-links li {
  margin-bottom: .65rem;
}

.cc-footer .footer-links a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color .2s ease;
}

.cc-footer .footer-links a::before {
  margin-right: .55rem;
  color: var(--footer-accent);
  content: "›";
  font-size: 1.15rem;
}

.cc-footer .footer-links a:hover,
.cc-footer .contact-info a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-footer .footer-note {
  margin-top: 1.2rem;
  color: var(--footer-muted);
  font-size: .84rem;
}

.cc-footer .contact-info li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1rem;
}

.cc-footer .contact-icon {
  display: inline-flex;
  flex: 0 0 22px;
  margin-top: .12rem;
  color: var(--footer-accent);
}

.cc-footer .contact-icon svg {
  width: 21px;
  height: 21px;
}

.cc-footer .contact-info li > div {
  min-width: 0;
}

.cc-footer .contact-label {
  display: block;
  margin-bottom: .12rem;
  color: var(--footer-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cc-footer .contact-value {
  display: block;
  color: var(--footer-text);
  overflow-wrap: anywhere;
}

.cc-footer a.contact-value[href^="mailto:"],
.cc-footer a.contact-value[href^="https://"] {
  color: #75d8fa;
  text-decoration: none;
}

.cc-footer .footer-bottom {
  border-top: 1px solid var(--footer-line);
  background: var(--footer-bg-deep);
}

.cc-footer .footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.cc-footer .footer-bottom p {
  margin: 0;
  color: var(--footer-muted);
  font-size: .82rem;
}

.cc-footer .footer-bottom-credit {
  text-align: right;
}

.cc-footer .footer-bottom a {
  color: #75d8fa;
  text-decoration: none;
}

.cc-footer .footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.cc-footer a:focus-visible {
  outline: 3px solid #8ddfff;
  outline-offset: 4px;
  border-radius: 3px;
}

@media (max-width: 991.98px) {
  .cc-footer > .container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .cc-footer {
    margin-top: 2rem;
  }

  .cc-footer > .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .cc-footer .footer-section {
    height: auto;
  }

  .cc-footer .footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .cc-footer .footer-bottom-credit {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-footer *,
  .cc-footer *::before,
  .cc-footer *::after {
    transition: none !important;
  }
}

/* Record view - Catálogo Colectivo UNT */
.cc-record-media {
  padding: 24px;
  border: 1px solid #e3e8f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 63, 125, .05);
}

.cc-record-body h1 {
  margin-top: 0;
  color: #003f7d;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.cc-record-body .title-alt {
  color: #374151;
  font-size: 16px;
  margin-bottom: 8px;
}

.cc-record-body .savedLists {
  margin-bottom: 16px;
}

.cc-record-fields {
  margin-top: 24px;
  border-top: 2px solid #eef2f8;
  padding-top: 20px;
}

.cc-record-fields-title {
  margin: 0 0 16px;
  color: #003f7d;
  font-size: 20px;
  font-weight: 700;
}

.cc-record-fields-list {
  margin: 0;
  padding: 0;
}

.cc-record-field {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f8;
}

.cc-record-field dt {
  margin: 0;
  color: #4b5563;
  font-weight: 600;
}

.cc-record-field dd {
  margin: 0;
  color: #111827;
}

@media (max-width: 768px) {
  .cc-record-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ==========================================================================
   Resultados de búsqueda
   ========================================================================== */
.record-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.record-list > li.result,
.search-grid .grid-result {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  margin-bottom: 16px;
  padding: 16px 18px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.record-list > li.result:hover,
.search-grid .grid-result:hover {
  border-color: rgba(0, 174, 239, .5);
  box-shadow: var(--cc-shadow-hover);
  transform: translateY(-2px);
}

.record-list .record-number {
  color: var(--cc-muted);
  font-size: 13px;
  font-weight: 600;
}

.record-list .media,
.record-list .media-body {
  overflow: visible;
}

.record-list h2 {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 6px;
}

.record-list h2 .title,
.record-list .title,
.search-grid .grid-result .title {
  color: var(--cc-blue);
  font-weight: 700;
  text-decoration: none;
}

.record-list .title:hover,
.search-grid .grid-result .title:hover {
  color: var(--cc-blue-light);
  text-decoration: underline;
}

.record-list .authors,
.record-list .result-body .authors {
  color: var(--cc-muted);
  font-weight: 400;
}

.record-list .authors a,
.record-list .result-body a {
  color: var(--cc-blue-light);
}

.record-list .result-body > div:not(.resultItemLine1) {
  color: var(--cc-muted);
}

.record-list .result-formats .label-default,
.record-list .label-default {
  background: var(--cc-bg);
  border: 1px solid var(--cc-line);
  border-radius: 999px;
  color: var(--cc-blue);
  font-weight: 600;
  padding: 3px 10px;
}

.record-list .result-formats .label-success,
.record-list .label-success {
  background: var(--cc-cyan) !important;
  color: #00384f !important;
}

/* Vista de grilla */
.search-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.search-grid .grid-result {
  flex: 1 1 calc(50% - 16px);
  max-width: calc(50% - 16px);
  margin-bottom: 0;
}

.search-grid .grid-result .grid-body {
  padding: 4px;
}

.search-grid .grid-result .title {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.search-grid .grid-result .grid-info,
.search-grid .grid-result .grid-author {
  color: var(--cc-muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .search-grid .grid-result {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   Facetas laterales (Refinar resultados)
   ========================================================================== */
#search-sidebar .sidebar,
#search-sidebar {
  color: var(--cc-ink);
}

#search-sidebar h2 {
  color: var(--cc-blue);
  font-size: 18px;
  font-weight: 700;
}

#search-sidebar .facet-group {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  margin-bottom: 14px;
  padding: 0 14px;
}

#search-sidebar .facet-title .title {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cc-line);
  color: var(--cc-blue);
  display: flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: space-between;
  padding: 12px 0;
  text-align: left;
  width: 100%;
}

.record-list ~ * .facet,
#search-sidebar .facet {
  color: var(--cc-ink);
  display: block;
  padding: 5px 0;
  text-decoration: none;
}

#search-sidebar .facet:hover {
  color: var(--cc-blue-light);
}

#search-sidebar .facet.active,
#search-sidebar .facet.active .text {
  color: var(--cc-blue);
  font-weight: 700;
}

#search-sidebar .facet .badge {
  background: var(--cc-bg);
  color: var(--cc-muted);
  font-weight: 600;
}

#search-sidebar .facet.active .badge {
  background: var(--cc-blue);
  color: #fff;
}

#search-sidebar .facet-value {
  display: inline;
}

#search-sidebar .checkboxFilter {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  margin-bottom: 16px;
  padding: 12px 14px;
}

#search-sidebar h2 {
  border-bottom: 2px solid var(--cc-cyan);
  padding-bottom: 8px;
}

/* Controles de la búsqueda (orden, límite, vista) */
.search-controls .form-control,
.search-header .form-control {
  border-color: var(--cc-line);
  border-radius: 8px;
}

.search-controls label,
.search-header .search-stats {
  color: var(--cc-muted);
  font-weight: 600;
}

/* Paginación */
.pagination > li > a,
.pagination > li > span {
  border-color: var(--cc-line);
  color: var(--cc-blue);
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
  background: var(--cc-blue);
  border-color: var(--cc-blue);
  color: #fff;
}

.pagination > li > a:hover {
  background: var(--cc-bg);
  border-color: var(--cc-blue-light);
  color: var(--cc-blue-light);
}

/* ---------- Bibliotecas participantes ----------------------------- */
.cc-library-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
}

.cc-library-summary-text {
  margin: 0;
  color: var(--cc-muted);
  font-size: 14px;
}

.cc-library-summary-text strong {
  color: var(--cc-ink);
}

.cc-library-summary-date {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.cc-library-grid > [class*="col-"] {
  display: flex;
}

.cc-library-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-top: 4px solid var(--cc-blue);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.cc-library-card:hover,
.cc-library-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--cc-shadow-hover);
  border-color: #c7ddff;
  border-top-color: var(--cc-cyan);
}

.cc-library-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cc-library-icon {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--cc-blue);
  font-size: 18px;
}

.cc-library-name {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cc-ink);
}

.cc-library-kind {
  margin: 0;
  font-size: 12.5px;
  color: var(--cc-muted);
}

.cc-library-count {
  margin: 16px 0 4px;
}

.cc-library-count-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--cc-blue);
}

.cc-library-count-label {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cc-muted);
}

.cc-library-meta {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--cc-muted);
}

.cc-library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.cc-library-actions .btn {
  font-size: 13px;
  font-weight: 600;
}

.cc-library-note {
  margin-top: 32px;
  padding: 20px;
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
}

.cc-library-note h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--cc-blue);
}

.cc-library-note p {
  margin: 0;
  color: var(--cc-muted);
  font-size: 14px;
  line-height: 1.6;
}
