@font-face {
  font-family: Futura Light;
  src: url(/public/site/fonts/FuturaStdLight.woff2);
}
@font-face {
  font-family: Futura Medium;
  src: url(/public/site/fonts/FuturaStdMedium.woff2);
}

body {
  font-family:
    Futura Light,
    sans-serif;
  font-size: 16px;
}

@media (min-width: 992px) {
  .pkp_site_name_wrapper {
    height: auto;
  }
}

@media (min-width: 992px) {
  .pkp_structure_head {
    height: auto;
  }
}
.pkp_head_wrapper {
  padding: 0 !important;
  width: 100% !important;
}

.pkp_site_name_wrapper {
  width: 100%;
  padding: 0;
}

.pkp_site_name .is_img {
  padding: 0 !important;
  margin: 0 !important;
}

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4,
.pkp_structure_main h5,
.pkp_structure_main h6 {
  font-family:
    Futura Medium,
    sans-serif;
}

/* Imagen del banner */
.pkp_site_name {
  max-height: 260px;
  overflow: hidden;
}

.pkp_site_name .is_img img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block;
  margin: 0 auto;
  object-position: top !important;
}

/* ===== Menu nav ===== */

.pkp_navigation_search_wrapper {
  display: none !important;
}

.pkp_site_nav_menu {
  background: #3f1650;
  font-family: sans-serif;
  font-weight: 600 !important;
}

#navigationPrimary li a {
  color: #fff;
  text-decoration: none;
  font-family: sans-serif !important;
}

@media (min-width: 992px) {
  .pkp_navigation_primary_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 2rem;
  }

  .pkp_navigation_primary_wrapper .pkp_navigation_primary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 20px;
    gap: 1rem;
  }

  .pkp_navigation_primary > li > a {
    margin: 0 !important;
    padding: 0.657rem 0.75rem calc(0.714rem - 2px);
    border-bottom: 2px solid transparent;
  }

  .pkp_navigation_primary > li > a:hover,
  .pkp_navigation_primary > li > a:focus {
    border-bottom: 2px solid #faba36 !important;
    background: none !important;
    color: #fff !important;
  }
}

.pkp_nav_list ul {
  background: #fff !important;
}

.pkp_nav_list ul a {
  color: #3f1650 !important;
  font-size: 15px;
  font-family: sans-serif !important;
}

.pkp_nav_list ul a:hover,
.pkp_nav_list ul a:focus,
.pkp_navigation_primary .dropdown-menu a:hover {
  border-color: #faba36 !important;
  background: #fff;
  font-weight: bold;
}

.img-to-icon {
  width: 22px;
  height: auto;
  margin-bottom: -4px;
}

/* ===== Fix: que el header/banner no se recorte ===== */

/* Quita límites y recortes del contenedor del banner */
.pkp_site_name {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

/* El wrapper también: por si el tema recorta ahí */
.pkp_site_name_wrapper,
.pkp_head_wrapper {
  overflow: visible !important;
  height: auto !important;
}

/* La imagen: que mantenga proporción y no tenga top negativo */
.pkp_site_name .is_img img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin-top: 0 !important; /* importante: quita el recorte “a propósito” */
  display: block;
}

@media (min-width: 993px) {
  header {
    min-height: auto !important;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  header {
    min-height: 150px;
    background-position: inherit !important;
  }
}

@media (min-width: 500px) and (max-width: 768px) {
  header {
    min-height: 100px;
    background-position: inherit !important;
  }
}

@media (min-width: 300px) and (max-width: 499px) {
  header {
    min-height: 50px;
    background-position: inherit !important;
  }
}

@media (max-width: 299px) {
  header {
    min-height: 10px;
    background-position: inherit !important;
  }
}

/* =========CONTENEDOR GENERAL DEL SIDEBAR======0 */

/* TITULOS TIPO PASTILLA */
.pkp_structure_sidebar.left .pkp_block .title {
  background: #efb73e;
  color: #ffffff;
  border-radius: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 5px 20px;
  margin: 0 0 22px 0;
  border: none;
  position: relative;
}

/* ICONO SOLO EN EL BLOQUE DE IDIOMA */
.pkp_structure_sidebar.left .block_language .title {
  padding-right: 52px;
}

.pkp_structure_sidebar.left .block_language .title::after {
  content: "";
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background-image: url("https://librosuach.conocimientovirtual.org/public/site/images/admin/mceclip7.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* CONTENIDO INTERNO */
.pkp_structure_sidebar.left .pkp_block .content {
  padding: 0;
  background: transparent;
}

/* LISTAS */
.pkp_structure_sidebar.left .pkp_block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ITEMS */
.pkp_structure_sidebar.left .pkp_block li {
  line-height: 1.3;
}

/* ENLACES */
.pkp_structure_sidebar.left .pkp_block li a {
  color: #111111;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
}

.pkp_structure_sidebar.left .pkp_block li a:hover {
  color: #faba36;
}
/* =========================
   RESET FOOTER OJS
   ========================= */

.pkp_brand_footer {
  display: none !important;
}

.pkp_structure_footer_wrapper {
  background: #3b184f !important;
  position: relative;
  overflow: hidden;
}

.pkp_structure_footer {
  background: transparent !important;
  padding: 0 !important;
}

/* =========================
   CONTENIDO CUSTOM
   ========================= */

.pkp_footer_content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 60px 20px;
  color: white;
}

/* layout principal */
.uach-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* izquierda */
.uach-footer-left {
  max-width: 420px;
}

.uach-footer-address p {
  margin: 0 0 6px;
  font-size: 16px;
}

/* redes */
.uach-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.uach-footer-social img {
  height: 30px;
}

.uach-footer-social .contraloria {
  height: 24px;
  margin-left: 6px;
}

/* derecha */
.uach-footer-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo-texto {
  height: 100px;
}

/* bottom */
.uach-footer-bottom {
  margin-top: 50px;
  text-align: right;
  font-size: 16px;
  color: #cfcfcf;
  font-weight: 600;
}

.uach-footer-bottom a {
  color: #cfcfcf;
  text-decoration: none;
}

.uach-footer-bottom a:hover {
  text-decoration: underline;
}

.uach-footer-bottom span {
  margin: 0 8px;
}

/* =========================
   DECORACION (ESQUINAS)
   ========================= */

/* esquina amarilla */
.pkp_structure_footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 10px;
  width: 110px;
  height: 90px;
  border-top: 10px solid #f2b432;
  border-right: 10px solid #f2b432;
}

/* esquina blanca */
.pkp_structure_footer_wrapper::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 80px;
  border-left: 22px solid white;
  border-bottom: 22px solid white;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .uach-footer-top {
    flex-direction: column;
  }

  .uach-footer-bottom {
    text-align: left;
  }
}

@media (min-width: 992px) {
  .pkp_structure_content {
    padding-bottom: 2.143rem;
  }
}

.custom-open-access-logo {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-open-access-logo a {
  display: inline-block;
  text-decoration: none;
}

.custom-open-access-logo img {
  width: 95px;
  max-width: 100%;
  height: auto;
  display: block;
}

.custom-follow-social {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.custom-follow-social .social-circle {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  box-sizing: border-box;
}

.custom-follow-social .social-circle img {
  max-width: 46px;
  max-height: 46px;
  width: auto;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .pkp_structure_main:before,
  .pkp_structure_main:after {
    content: none !important;
  }
}

.pkp_structure_sidebar.left #customblock-acceso-abierto .title::after {
  content: "";
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("https://librosuach.conocimientovirtual.org/public/site/images/admin/mceclip0-9aa820c34cffd3e50ee2a3b09df50088.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.pkp_structure_sidebar.left #customblock-redes-sociales .title::after {
  content: "";
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url("https://librosuach.conocimientovirtual.org/public/site/images/admin/mceclip0-9aa820c34cffd3e50ee2a3b09df50088.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.page_homepage .custom-featured-books {
  width: 100%;
  max-width: 980px;
  margin: 36px auto 50px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page_homepage .custom-featured-books__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 34px;
}

.page_homepage .custom-featured-books__heading span {
  flex: 1;
  max-width: 250px;
  height: 2px;
  background: #222222;
}

.page_homepage .custom-featured-books__heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #000000;
  line-height: 1;
}

.page_homepage .custom-featured-books__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 70px;
  justify-items: center;
  align-items: start;
}

.page_homepage .custom-book-card {
  text-align: center;
}

.page_homepage .custom-book-card__image-link {
  display: inline-block;
  text-decoration: none;
}

.page_homepage .custom-book-card__image-link img {
  width: 150px;
  height: auto;
  display: block;
  box-shadow: 8px 8px 10px rgba(0, 0, 0, 0.55);
}

.page_homepage .custom-book-card__button {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 18px;
  min-width: 92px;
  background: #4b235f;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.page_homepage .custom-book-card__button:hover {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .page_homepage .custom-featured-books__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 30px;
  }
}

@media (max-width: 580px) {
  .page_homepage .custom-featured-books__grid {
    grid-template-columns: 1fr;
  }

  .page_homepage .custom-featured-books__heading h2 {
    font-size: 26px;
  }

  .page_homepage .custom-featured-books__heading span {
    max-width: 80px;
  }
}

/* =========================
   BUSCADOR HOME
   ========================= */

.custom-search-bar {
  width: 100%;
  max-width: 900px;
  margin: 30px auto 30px auto;
  position: relative;
  margin-bottom: 5rem !important;
}

/* INPUT */
.custom-search-input {
  width: 100%;
  height: 52px;
  padding: 0 70px 0 18px;
  border-radius: 10px;
  border: 2px solid #2b2b2b;

  border-right: none;
  outline: none;
  font-size: 16px;
  box-sizing: border-box;
  background: #ffffff;
}

/* BOTÓN */
.custom-search-button {
  position: absolute;
  right: 0;
  top: 0;
  height: 52px;
  width: 70px;
  border: none;
  background: #4b235f;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 2px solid #2b2b2b;
}

/* ICONO */
.custom-search-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* SOMBRA (como en la captura) */
.custom-search-bar {
  box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.25);
}

/* HOVER */
.custom-search-button:hover {
  background: #3d1b4c;
}

@media (min-width: 992px) {
  .pkp_navigation_user a {
    color: #3d1b4c !important;
  }
}
