@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);
}

/* ===== Banner  ===== */
.pkp_head_wrapper {
  padding: 0 !important;
  width: 100% !important;
}

body {
  font-family: Futura Light, sans-serif;
  font-size: 16px;
}

.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;
}

.obj_article_summary > .title > a {
  color: #001e90;
  font-family: Futura Light, sans-serif;
  letter-spacing: 0.05em;
}



.pkp_site_name .is_img img {
  max-width: 100%;
  height: auto;
  width: auto;
  max-height: 100%;
  object-position: top !important;
  display: block;
  margin: 0 auto;
}

.pkp_site_name {
  max-height: 260px;
  overflow: hidden;
}

.page_search .submit button::after,
.page_search .submit button:hover::after {
  background: #001e90;
}

.cmp_breadcrumbs a,
.page_search .cmp_pagination a {
  color:#001e90;
}

.img-to-icon{
  max-width: 20px;
  margin-bottom: -4px;
}

.pkp_site_name .is_img img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block;
  margin-top: -40px;
}

.page_search .submit button{
  color:#001e90;
}

@media (min-width: 1600px) {
  .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-top: -70px;
  }
}

/* Padding azul banner */
@media (min-width: 1400px) {
  .pkp_head_wrapper {
    position: relative;
    padding-top: 80px !important;
    width: 100% !important;
  }

  .pkp_head_wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #001e90;
    z-index: 0;
  }


  .pkp_navigation_user_wrapper {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
  }

  #navigationUser > li > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
  }

  #navigationUser > li + li::before {
    content: "|";
    color: rgba(255, 255, 255, 0.7);
  }
}
@media (min-width: 998px) {
  .pkp_head_wrapper {
    position: relative;
    padding-top: 80px !important;
    width: 100% !important;
  }

  .pkp_head_wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #001e90;
    z-index: 0;
  }

  .uc3m-logo-wrapper {
    content: "";
    position: absolute;
    top: 8px;
    left: 10%;
    width: 500px;
    height: 60px;
    background-image: url("./uc3_logo.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    z-index: 301;
  }

  .pkp_navigation_user_wrapper {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
  }

  .pkp_nav_list a:hover, .pkp_nav_list a:focus {
    text-decoration: none;
    background: transparent;
    border-bottom: 1px solid white;
    transition: all 2s ease;
  }

  #navigationUser > li > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
  }

  #navigationUser > li + li::before {
    content: "|";
    color: rgba(255, 255, 255, 0.7);
  }
}

/* ===== Barra de bÃºsqueda  ===== */

.uc3m-search-portal {
  display: flex;
  justify-content: center;
  margin: 20px auto 40px;
}

.uc3m-search-wrapper {
  background: #cfcfcf;
  border-radius: 10px;
  padding: 24px 45px;
  width: 100%;
  max-width: auto;
}

.uc3m-search-form {
  display: flex;
  align-items: stretch;
}

.uc3m-search-input {
  flex: 1;
  border: none;
  border-radius: 5px 0 0 5px; /* esquinas redondeadas izquierda */
  padding: 14px 20px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.uc3m-search-input::placeholder {
  color: #999999;
}

.uc3m-search-button {
  border: none;
  background: #001e90; /* azul UC3M */
  color: #ffffff;
  padding: 0 32px;
  border-radius: 0 5px 5px 0; /* esquinas redondeadas derecha */
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.uc3m-search-button:hover {
  background: #002bbf;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.uc3m-search-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}


@media (min-width: 992px) {
  .pkp_structure_content {
    padding-top: 0 !important;
  }
}


.pkp_structure_main:before,
.pkp_structure_main:after {
  width: 0px !important;
}

/* ===== Bloque "Revistas" portal e-Revistas ===== */

.uc3m-journals {
  text-align: center;
  margin: 60px auto 0px;
}

.uc3m-journals h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

/* Grid de tarjetas */
.uc3m-journals-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 70px; /* filas, columnas */
  max-width: 1200px;
  margin: 0 auto;
}

/* Cada revista */
.uc3m-journal-card {
  width: 180px; /* ancho de la tarjeta */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* TÃ­tulo de la revista */
.uc3m-journal-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  min-height: 38px; /* para que las portadas alineen aunque haya tÃ­tulos de 1 o 2 lÃ­neas */
}

.uc3m-journal-title a {
  color: #000;
  text-decoration: none;
}

/* Portada */
.uc3m-journal-cover {
  width: 150px;
  height: 210px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.uc3m-journal-cover img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* BotÃ³n "Ir al sitio" */
.uc3m-journal-actions {
  margin-top: 6px;
}

.uc3m-btn-journal {
  display: inline-block;
  background: #001e90; /* azul UC3M */
  color: #ffffff;
  padding: 6px 22px;
  border-radius: 3px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-family: Futura Light, sans-serif;
  text-decoration: none;
  font-weight: 600;
}

.uc3m-btn-journal:hover {
  background: #002bbf;
}
/* Cambiar el texto del botón "Ir al sitio" sin tocar HTML */
.uc3m-btn-journal {
  position: relative;
  color: transparent !important; /* Oculta el texto original */
}

/* Inserta el nuevo texto */
.uc3m-btn-journal::after {
  content: "Ver revista";
  color: #ffffff; /* color del texto */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
}

/* PequeÃ±o ajuste responsive */
@media (max-width: 998px) {
  .uc3m-journal-card {
    width: 45%;
  }

  .uc3m-journal-cover {
    width: 130px;
    height: 190px;
  }

  .pkp_site_name{
    position: relative;
    top: 40px;
    left: 0;
    padding-left: 0;

    .is_img img{
      margin-top: 0px;
    }
  }

  .pkp_structure_main {
    margin-top: 17vw;
  }

  .pkp_site_name_wrapper,
  .pkp_site_nav_menu {
    background: #001e90;
  }

  .uc3m-logo-wrapper {
    content: "";
    position: absolute;
    top: -24%;
    left: 8%;
    width: 365px;
    height: 55px;
    background-image: url("./uc3_logo.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    z-index: 1;
  }
}
/* Limitar la longitud visible de los tÃ­tulos de revista */
.uc3m-journal-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;

  /* altura fija pensada para 2 lÃ­neas */
  min-height: 40px;
  max-height: 40px;

  display: flex;
  align-items: flex-end; /* texto apoyado abajo del bloque */
  justify-content: center;
  text-align: center;
}

.uc3m-journal-title a {
  color: #000;
  text-decoration: none;
  font-family: Futura Light, sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* mÃ¡ximo 2 lÃ­neas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Forzar que el tÃ­tulo "Revistas" sea visible en el portal */
.page_index_site .uc3m-journals h2,
.pkp_page_index .journals.uc3m-journals h2 {
  clip: auto !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  display: block !important;
  margin-top: 30px;
  margin-bottom: 30px;
}

.about_site {
  max-width: 1200px;
  text-align: center;
  font-size: 14px;
  color: #000000;
  font-weight: 400;
}

/* ===== LÃ­nea azul del footer ===== */
.uc3m-footer-line {
  width: 100%;
  height: 8px;
  background-color: #001e90;
  margin-top: 50px;
}

/* ===== Footer principal ===== */
.uc3m-footer {
  max-width: 1200px;
  margin: 30px auto 30px;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 18px;
  color: #001e90;
  font-weight: 400;
}

.uc3m-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uc3m-footer-right {
  text-align: right;
  font-size: 16px;
  color: #000;
}

.uc3m-footer-right img {
  margin-top: 6px;
  width: 85px;
}

.footer-separator {
  color: #001e90;
}

.footer-item {
  color: #001e90;
  text-decoration: none;
}

.footer-item:hover {
  text-decoration: underline;
}

.footer-mail img {
  width: 30px;
  height: 30px;
  margin-top: 5px;
}
