@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* ====== Paleta de colores ====== */
:root {
  --blanco       : #ffffff;
  --primary-hover: #0c0c5c;
  --primary      : #191995;
  --grey         : #bfbfbf;
  --transition   : all 300ms;
}

/* ====== Estilos Generales ====== */
body,
h1,
h2,
h3,
.obj_article_summary>.title a,
.share_text,
.obj_issue_summary .title {
  font-family: "Montserrat", sans-serif !important;
}

p {
  text-align: justify;
}

.img-to-icon{
  max-width: 20px;
  margin-bottom: -4px;
}

::-webkit-scrollbar {
  width : 5px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background   : var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background   : var(--primary-hover);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blanco);
}

.footer-brand-image {
  display: none;
}

.pkp_structure_main:before {
  display: none;
}

.pkp_structure_main h2,
.obj_issue_toc .published .label {
  color: var(--primary);
}

a {
  color          : var(--primary);
  text-decoration: none;
  transition     : var(--transition);
}

a:hover {
  color     : var(--primary-hover);
  transition: var(--transition);
}

.pkp_navigation_search_wrapper a:hover {
  color          : var(--primary-hover);
  outline        : 0;
  border-color   : #fff;
  text-decoration: none;
}

.obj_issue_toc .section>h2,
.obj_issue_toc .section>h3 {
  font-weight: 500;
  color      : black;
}

.obj_article_summary>.title a,
.obj_issue_summary .title {
  text-decoration: none;
  color          : var(--primary);
  transition     : all 300ms;
}

.obj_article_summary>.title a:hover,
.obj_issue_summary .title:hover {
  text-decoration: none;
  color          : var(--primary-hover);
  transition     : all 300ms;
}

.block_make_submission .block_make_submission_link {
  display        : flex;
  align-items    : center;
  justify-content: center;
  gap            : 8px;
  width          : 100%;
  padding        : 8px 12px;
  border-radius  : 6px;
  background     : #d7d7dd;
  font-size      : 1rem;
  font-weight    : 700;
  color          : #001e90;
  text-decoration: none;
  text-transform : none;
  letter-spacing : 0.03em;
}

.block_make_submission .block_make_submission_link::before {
  content            : "";
  width              : 22px;
  height             : 22px;
  background-image   : url("../../site/envio.png");
  background-repeat  : no-repeat;
  background-position: center;
  background-size    : contain;
}

.pkp_structure_sidebar.left .pkp_block .title {
  display       : flex;
  align-items   : center;
  gap           : 6px;
  margin        : 0 0 6px;
  padding-bottom: 4px;
  font-size     : 0.98rem;
  font-weight   : 700;
  color         : #001e90;
  border-bottom : 2px solid #001e90;
}

.pkp_structure_sidebar.left .pkp_block .title::before {
  content            : "";
  width              : 16px;
  height             : 16px;
  background-repeat  : no-repeat;
  background-position: center;
  background-size    : contain;
}

.pkp_structure_sidebar.left .block_language .title::before {
  background-image: url("../../site/idioma.png");
}

.pkp_structure_sidebar.left .block_information .title::before {
  background-image: url("../../site/informacion.png");
}

.pkp_structure_sidebar.left .block_keyword_cloud .title::before {
  background-image: url("../../site/palabras.png");
}

.pkp_structure_sidebar.left .pkp_block .content ul {
  list-style  : none;
  margin      : 0;
  padding-left: 0;
}

.pkp_structure_sidebar.left .pkp_block .content li {
  margin-bottom: 3px;
}

.pkp_structure_sidebar.left .pkp_block .content a {
  font-size      : 0.9rem;
  color          : #000000;
  text-decoration: none;
}

.pkp_structure_sidebar.left .pkp_block .content a:hover {
  text-decoration: underline;
}

.shariff .orientation-horizontal {
  flex-wrap      : wrap;
  width          : 100%;
  justify-content: center;
  align-items    : center;
}

.shariff .orientation-horizontal.button-style-standard li {
  min-width    : 110px;
  max-width    : 100% !important;
  width        : 50% !important;
  border-radius: 12px;
  text-align   : center;
}

.shariff .orientation-horizontal li:last-child {
  margin-right: 1.8% !important;
}

.obj_galley_link:before {
  display: none;
}

.obj_galley_link {
  border          : 2px solid var(--primary);
  color           : var(--blanco);
  background-color: var(--primary);
  font-weight     : bold;
  border-radius   : 7px;
  transition      : var(--transition);
  box-shadow      : inset 0 -1em 1em rgba(0, 0, 0, 0.1);
}

.obj_galley_link:hover,
.obj_galley_link:focus {
  border          : 2px solid var(--primary);
  color           : var(--primary);
  background-color: var(--blanco);
  font-weight     : bold;
  border-radius   : 7px;
  transition      : var(--transition);
}

.obj_galley_link:before {
  display: none;
}

.obj_galley_link li a img:hover {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.obj_issue_toc .galleys_links li {
  display     : inline-block;
  margin-right: 0;
}

.obj_article_details .row {
  border-top   : none;
  border-bottom: none;
}

.obj_article_details .main_entry {
  border-right: none;
}

.obj_article_details .entry_details {
  border-left: none;
}

.pkp_brand_footer {
  display: none;
}

.pkp_structure_footer {
  width: 100%;
}

.footer_content {
  width: 100%;
}

.pkp_footer_content {
  padding   : 0;
  text-align: left;
}

.obj_article_details .item {
  word-wrap: break-word;
}

.obj_article_details .entry_details .item {
  border-bottom: 1px solid #dddddd00;
}

.obj_article_details .entry_details .cover_image .sub_item {
  a {
    s img {
      width     : 100%;
      height    : 100%;
      object-fit: cover;
    }
  }
}

.obj_article_details .main_entry {
  .page_title {
    padding: 1.43rem 2.143rem;
  }
}

.obj_article_details .entry_details .published .sub_item,
.obj_article_details .entry_details .citation .sub_item {
  border       : 1px solid var(--grey);
  padding      : 10px;
  border-radius: 7px;
  box-shadow   : 7px 8px 35px -27px rgba(0, 0, 0, 0.75);

  .label {
    color      : var(--primary);
    font-weight: bold;
  }
}

.obj_article_details .entry_details .copyright,
.obj_article_details .entry_details .issue {
  border       : 1px solid var(--grey);
  padding      : 10px;
  margin       : 1.43rem;
  margin-right : none;
  border-radius: 7px;
  box-shadow   : 7px 8px 35px -27px rgba(0, 0, 0, 0.75);

  .label {
    color      : var(--primary);
    font-weight: bold;
  }
}

.obj_article_details .galleys_links li {
  width            : 100%;
  margin-inline-end: 0;
  text-align       : center;
}

.obj_article_details .galleys_links .obj_galley_link {
  width: 100%;
}

#customblock-proximos-articulos a:hover {
  background: var(--primary-hover) !important;
  transition: var(--transition) !important;
  color     : var(--primary) !important;
}

.uc3m-footer-line {
  width           : 100%;
  height          : 8px;
  background-color: #001e90;
  margin-top      : 50px;
}

/* ===== Footer ===== */
.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;
}

.obj_issue_toc .galleys::before,
.obj_issue_toc .section::before {
  content   : "";
  position  : absolute;
  top       : 45px;
  left      : 0;
  width     : 100%;
  border-top: 1px solid #000;
}

.obj_issue_toc .galleys>h3,
.obj_issue_toc .section>h3,
.obj_issue_toc .galleys>h2,
.obj_issue_toc .section>h2 {
  color      : #000;
  font-weight: 700;
  font-size  : 1.5rem;
}

/* ====== Dispositivos mÃ³viles (Punto de quiebre OJS) (hasta 991px) ====== */
@media (max-width: 991px) {
  .pkp_site_nav_toggle {
    position     : absolute;
    top          : 2px;
    background   : var(--primary-hover);
    border-radius: 5px;
    z-index      : 99999;
  }

  .pkp_structure_main {
    padding    : 1.43rem;
    padding-top: 50px;
  }



  .pkp_site_name_wrapper {
    width: 100%;
  }

  .pkp_head_wrapper {
    position: relative;
    height  : 120px;
  }

  .pkp_site_name {
    position     : absolute;
    left         : 0rem;
    right        : 0;
    margin-top   : 80px;
    margin-bottom: 0;
    padding-left : 0;
    text-align   : center;

    .is_text {
      font-size : 3.2vw;
      text-align: center;

    }
  }

  .uc3m-logo-wrapper {
    content            : "";
    position           : absolute;
    top                : 8%;
    left               : 8%;
    width              : 387px;
    height             : 56%;
    background-image   : url("../../site/logo_revistas.png");
    background-repeat  : no-repeat;
    background-position: left center;
    background-size    : contain;
    z-index            : 1;
  }
}

/* ====== Escritorio (Punto de quiebre OJS)(Desde 992px) ====== */
@media (min-width: 992px) {
  .pkp_site_name_wrapper {
    width           : 100vw;
    padding         : 2.5rem 6.5vw 1rem 6.5vw;
    background-color: var(--blanco);
  }

  .pkp_head_wrapper {
    padding-top: 7rem;
  }

  .pkp_site_nav_menu {
    background-color: var(--blanco);
    width           : 90vw;
  }

  .pkp_navigation_primary_wrapper {
    width: 87vw;
  }

  .pkp_navigation_primary_row {
    background-color: var(--blanco);
    width           : 100vw;
    border-bottom   : 5px solid var(--primary);
  }

  .pkp_site_name .is_text {
    color: var(--primary);
  }

  .pkp_navigation_primary>li>a {
    color       : var(--primary);
    outline     : 0;
    font-weight : 600;
    font-size   : 1rem;
    border-color: #fff;
    border-top  : 4px solid transparent;
    transition  : var(--transition);
  }

  .pkp_navigation_primary>li>a:hover {
    color     : var(--primary-hover);
    outline   : 0;
    border-top: 4px solid var(--primary);
    transition: var(--transition);
  }


  .pkp_structure_content {
    width: 90vw;
  }

  .pkp_structure_main {
    width: 70%;
  }

  .no_sidebar .pkp_structure_main {
    width: 90vw;
  }

  .pkp_structure_sidebar {
    float    : right;
    width    : 30%;
    max-width: 400px;
  }

  .obj_article_details .main_entry {
    width: 70%;
  }

  .obj_article_details .entry_details {
    width: 30%;
  }

  .pkp_structure_main::after {
    left: 64vw;
  }

  .no_sidebar .pkp_structure_main::after {
    display: none;
  }

  .uc3m-logo-wrapper {
    content            : "";
    position           : absolute;
    top                : 8px;
    left               : 6%;
    width              : 500px;
    height             : 88px;
    background-image   : url("../../site/logo_revistas.png");
    background-repeat  : no-repeat;
    background-position: left center;
    background-size    : contain;
    z-index            : 301;
  }

  .page_issue_archive .issues_archive {
    margin-left    : 0rem;
    margin-right   : 0rem;
    display        : flex;
    justify-content: center;
    flex-wrap      : wrap;
    border-top     : none;

    li {
      flex         : 1 1 calc(33.333% - 20px);
      min-width    : 250px;
      border-bottom: none;

      .obj_issue_summary {
        display        : flex;
        flex-direction : column;
        justify-content: center;
        align-items    : center;
      }

      .obj_issue_summary .cover {
        width: 58%;
      }

      .obj_issue_summary .description {
        display: none;
      }

      .obj_issue_summary h2 {
        text-align: center;
      }
    }
  }
}

/*Ajustes menu nav*/
#navigationPrimary.pkp_navigation_primary {
  display    : flex !important;
  align-items: center;
}

#navigationPrimary>li:nth-last-child(2) {
  margin-left: auto;
}

#navigationPrimary>li:nth-last-child(2)>a {
  font-size      : 0 !important;
  padding        : 0 !important;
  width          : 28px;
  height         : 28px;
  display        : flex;
  align-items    : center;
  justify-content: center;
}

#navigationPrimary>li:nth-last-child(2)>a::before {
  content            : "";
  width              : 28px;
  height             : 28px;
  display            : block;
  background-image   : url("/public/site/images/uc3mojs/mceclip0.png");
  /* ← TU RUTA */
  background-repeat  : no-repeat;
  background-position: center;
  background-size    : contain;
}

#navigationPrimary>li:last-child>a {
  font-size      : 0 !important;
  padding        : 0 !important;
  width          : 28px;
  height         : 28px;
  display        : flex;
  align-items    : center;
  justify-content: center;
}

#navigationPrimary>li:last-child>a::before {
  content            : "";
  width              : 28px;
  height             : 28px;
  display            : block;
  background-image   : url("/public/site/images/uc3mojs/mceclip1.png");
  /* ← TU RUTA */
  background-repeat  : no-repeat;
  background-position: center;
  background-size    : contain;
}

@media (min-width: 992px) {
  .pkp_navigation_primary_wrapper {
    display    : flex;
    align-items: center;
  }

  #navigationPrimary.pkp_navigation_primary {
    display    : flex !important;
    align-items: center;
    gap        : 1.4rem;
    flex       : 1;

    #navigationPrimary>li:nth-last-child(2) {
      margin-left: auto;
    }

    .pkp_navigation_search_wrapper {
      margin-left: 4rem !important;
    }
  }
}

@media (min-width: 992px) {
  .pkp_navigation_search_wrapper .pkp_search {
    display        : inline-flex;
    align-items    : center;
    gap            : 0.35rem;
    background     : #d3d3d3;
    border-radius  : 4px;
    padding        : 0.15rem 0.9rem;
    text-decoration: none;
    font-size      : 1rem;
    font-weight    : 600;
    color          : #002c9b;
  }

  /* Icono lupa siempre visible en azul */
  .pkp_navigation_search_wrapper .pkp_search .fa-search {
    color: #002c9b;
  }

  .pkp_navigation_search_wrapper .pkp_search:hover {
    filter: brightness(0.95);
  }

  .pkp_navigation_search_wrapper {
    margin-left: 5rem !important;
  }
}

/* Convertir "español" en "Español" solo en el bloque de idioma */
.pkp_block.block_language li.locale_es.current a {
  font-size: 0 !important;
  /* ocultamos el texto real */
  position : relative;
}

/* Insertamos Español con E mayúscula */
.pkp_block.block_language li.locale_es.current a::after {
  content  : "Español";
  font-size: 0.9rem;
  color    : #000;
}

/* Ajuste responsive para pantallas muy anchas:
   reducir hueco entre contenido y sidebar */
@media (min-width: 1600px) {

  /* Sidebar fijo a 400px */
  .pkp_structure_sidebar {
    width    : 400px;
    max-width: 400px;
    float    : right;
  }

  /* El main ocupa el resto del espacio menos un pequeño gap */
  .pkp_structure_main {
    width    : calc(100% - 420px);
    max-width: 1200px;
  }

  .pkp_structure_main::after {
    display: none !important;
  }
}

.obj_article_summary .subtitle {
  font-size: 0.9rem;
}

.obj_galley_link.restricted,
.obj_galley_link.restricted {
  border          : 2px solid var(--primary) !important;
  color           : var(--blanco) !important;
  background-color: var(--primary) !important;
  font-weight     : bold !important;
  border-radius   : 7px !important;
}

.obj_galley_link.restricted:hover,
.obj_galley_link.restricted:focus {
  border          : 2px solid var(--primary) !important;
  color           : var(--primary) !important;
  background-color: var(--blanco) !important;
  font-weight     : bold !important;
  border-radius   : 7px !important;
  transition      : var(--transition) !important;
}

.obj_galley_link.restricted:before {
  display: none !important;
}

@media (min-width: 768px) {
  .page_article .main_entry h2.subtitle {
    padding: 0 1.43rem !important;
    margin : 0 !important;
  }

  .obj_article_details .main_entry {
    .page_title {
      padding: 0rem 1.43rem;
    }
  }
}

@media (min-width: 992px) {
  .page_article .main_entry h2.subtitle {
    padding: 0 2.143rem !important;
    margin : 0 !important;
  }

  .obj_article_details .main_entry {
    .page_title {
      padding: 0rem 2.143rem;
    }
  }
}

.obj_article_details .item.cover_image .sub_item {
  text-align: center;
  /* centra el contenido */
}

/* Imagen a tamaño real y centrada */
.obj_article_details .item.cover_image .sub_item img {
  width    : auto !important;
  /* evita que se estire */
  max-width: 100% !important;
  /* se adapta si el contenedor es más pequeño */
  height   : auto !important;
  display  : inline-block;
  /* permite centrarla */
}

.obj_article_details .item.cover_image .sub_item {
  text-align: center;
  /* centra el contenido */
}

/* Imagen a tamaño real y centrada */
.obj_article_details .item.cover_image .sub_item img {
  width    : auto !important;
  /* evita que se estire */
  max-width: 100% !important;
  /* se adapta si el contenedor es más pequeño */
  height   : auto !important;
  display  : inline-block;
  /* permite centrarla */
}

@media (min-width: 768px) {
  .obj_article_details .entry_details .item.cover_image {
    padding-top: 0 !important;
  }
}

/* Interlineado para el bloque CSL (cita) */
.item.citation .csl-entry {
  line-height: 1.785rem !important;
}

/* Reducir tamaño de la gráfica de descargas y centrarla */
section.item.downloads_chart .value {
  max-width: 650px;
}

section.item.downloads_chart canvas.usageStatsGraph {
  width  : 100% !important;
  height : auto !important;
  display: block;
}

/* Separar botones de formato (PDF, HTML, Anexo, etc.) */
ul.galleys_links li,
ul.value.galleys_links li {
  margin-right: 0.6rem;
  /* separa los botones */
}

ul.galleys_links li:last-child,
ul.value.galleys_links li:last-child {
  margin-right: 0;
  /* que el último no tenga margen extra */
}

/* Espaciado entre botones de formatos (PDF, HTML...) */
ul.galleys_links {
  gap      : 0.6rem !important;
  /* separa los botones */
  flex-wrap: wrap;
  /* por si algún día hay 3 formatos, que no se rompa */
}

ul.value.galleys_links {
  gap      : 0.6rem !important;
  flex-wrap: wrap;
}

/* Contenedor del bloque de copyright */
.item.copyright {
  position: relative;
}

/* Insertar icono CC justo debajo del título */
.item.copyright h2.label::after {
  content          : "";
  display          : block;
  width            : 88px;
  height           : 31px;
  margin           : 0.4rem 0 0.8rem 0;
  /* separación arriba/abajo */
  background-image : url("https://licensebuttons.net/l/by-nc-nd/4.0/88x31.png");
  background-size  : contain;
  background-repeat: no-repeat;
}

/* Limitar el tamaño de los iconos de Bases de datos en el sidebar */
#customblock-basesdedatos img {
  width        : 120px !important;
  height       : auto !important;
  display      : block;
  margin-bottom: 0.75rem;
}