body {
  min-width: 371px;
  font-family: "Montserrat";
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat";
}

.block_make_submission .block_make_submission_link:focus,
.block_make_submission .block_make_submission_link:hover {
  background-color: #fff;
  border-color: #000;
  color: #000;
}

footer.site-footer a:hover {
  color: #fff;
}

nav.navbar.navbar-expand-lg.navbar-light {
  min-height: auto;
}

.article-summary-title {
  font-family: "Montserrat";
}

#wordcloud {
  display: flex;
  justify-content: center;
  align-items: center;
}

#wordcloud svg {
  width: 582px;
  text-align: center !important;
}
.article-details-issue-identifier a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

.homepage-issue-identifier {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

a {
  color: #000000;
}

a:hover,
a:focus {
  color: #000000;
}

.badge-light {
  background: #9c9aa0;
  color: #444;
}

.dropdown-menu {
  background-color: white;
}

.main-header .container {
  padding: 2rem 1rem 0 1rem;
  padding: 0;
  max-width: 100% !important;
}

.navbar-logo {
  max-width: 100% !important;
}

.navbar-logo img {
  max-width: 100%;
  max-height: 100% !important;
  width: 100%;
}

.homepage-issue-current,
.homepage-issue-published,
.homepage-announcements,
.site-footer-content .row .text-right {
  display: none !important;
}

.container-homepage-issue {
  margin-top: 0rem !important;
}

.article-summary-title a {
  color: #333 !important;
}

.article-summary-title a:hover {
  color: #000000 !important;
}

.article-details-doi a,
.article-summary-doi a {
  color: #000000 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  background-color: transparent;
}

.btn-primary {
  background: transparent;
  border-color: #000000 !important;
  color: #000000 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: white !important;
  background: #000000 !important;
  border-color: #000000 !important;
}

#primaryNav .nav-item {
  color: #333 !important;
}

#primaryNav .dropdown-menu.show {
  background-color: #fff !important;
}

#primaryNav .dropdown-menu.show a {
  font-size: 13px;
}

.navbar-nav .nav-link {
  font-size: 15px;
}

.dropdown-menu a {
  color: #000000 !important;
}

#primaryNav .dropdown-item:focus,
#primaryNav .dropdown-item:hover {
  color: #444 !important;
  background-color: transparent;
}

.article-details-issue-identifier a {
  color: black !important;
}

.issue-toc-section-title {
  font-size: 20px;
  color: black;
  font-weight: bold;
}

.issue-summary-series a {
  color: #63306c !important;
}

.article-details-block .dropdown-menu {
  padding: 0.5em;
  background: #fff !important;
  border: none;
  border-radius: 0;
  color: #000;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: transparent;
  border-color: white;
}

.authors-string .author-string-href:hover {
  color: #63306c !important;
}

.article-details-main {
  text-align: justify;
}

.page-content {
  text-align: justify;
  font-size: 18px;
}

@media (max-width: 991px) {
  .f_logos {
    display: flex;
    flex-flow: column;
  }
}

@media (min-width: 992px) {
  #primaryNav .nav-item {
    position: static;
    white-space: inherit;
    text-align: center;
  }

  .navbar,
  #primaryNav .nav-link {
    padding: 0 !important;
  }

  #userNav .nav-link,
  .language-toggle .dropdown-toggle {
    color: white !important;
    background: #222760;
    border-radius: 4px;
  }

  #primaryNav .dropdown-item:hover,
  #primaryNav .dropdown-item:focus {
    border-color: #000000;
  }

  #primaryNav .nav-link:hover,
  #primaryNav .nav-link:focus {
    background: transparent;
    color: #000000 !important;
    border-color: transparent;
  }

  .issue-wrapper .col-lg-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .issue-toc-section .issue-toc-section {
    border-top: none;
  }

  .issue-toc-section-title {
    margin: 0rem 0;
    width: max-content;
  }
}

.navbar-brand {
  font-size: 3rem !important;
}

@media (min-width: 992px) {
  .authors-string li:not(:last-child):after {
    content: " ";
  }
}

.navbar-light .navbar-brand {
  display: none;
}

div#citationOutput {
  text-align: justify;
}

div#citationOutput {
  word-break: break-word;
}

.item.article-details-block li {
  list-style: none;
}

button#cslCitationFormatsButton:hover {
  border-color: #444;
  color: #444;
}

button#cslCitationFormatsButton a {
  color: #444;
}

.item.issue .simpleStatistics_views::before {
  display: none;
}

.item.issue .simpleStatistics_downloads::before {
  display: none;
}

div.sparkline img {
  display: none;
}

.tab label {
  background: #eee;
  padding: 5px;
  border: 1px solid #ccc;
  margin-left: -1px;
  position: relative;
  left: 1px;
  display: block;
  text-align: left;
}

.tabs {
  position: relative;
  min-height: 500px;
  min-width: 450px;
  clear: both;
  margin: 25px 0;
}

.tab [type="radio"]:focus ~ label {
  ouline: 2px solid blue;
}

.tab [type="radio"]:checked ~ label {
  background: white;
  border-right: 1px solid white;
  z-index: 2;
}

.tab [type="radio"]:checked ~ label ~ .contenido {
  z-index: 1;
}

.tab [type="radio"]:checked ~ label ~ .contenido > * {
  opacity: 1;
  transform: translateX(0);
}

.contenido {
  position: absolute;
  top: 0;
  left: 25%;
  background: white;
  right: 0;
  bottom: 0;
  padding: 0 20px;
  border: 1px solid #ccc;
  height: 100%;
  overflow: auto;
  text-align: justify;
}

.tabs {
  position: relative;
  min-height: 500px;
  min-width: 450px;
  clear: both;
  margin: 25px 0;
}

.tab {
  width: 25%;
}

.tab label {
  background: #eee;
  padding: 5px;
  border: 1px solid #ccc;
  margin-left: -1px;
  position: relative;
  left: 1px;
  display: block;
}

.tab [type="radio"] {
  opacity: 0;
  display: none;
}

label {
  margin-bottom: 0;
}

.journalStats ul {
  list-style: none;
  text-align: justify;
}

.sjrquartil {
  display: flex;
  justify-content: center;
  align-items: center;
}

.issue-toc-section + .issue-toc-section {
  border-top: none;
}

.homepage-additional-content {
  text-align: justify;
}

.navbar-toggler {
  margin: auto;
}

.iframe-lector {
  overflow: auto;
}

.iframe-lector iframe {
  max-width: 100%;
}

#widgetIframe h5 {
  color: #000000 !important;
  font-size: 16px;
}

.issue-summary-cover {
  box-shadow: 7px 8px 35px -8px rgba(0, 0, 0, 0.75);
}

.article-details-cover {
  box-shadow: 7px 8px 35px -8px rgba(0, 0, 0, 0.75);
}

img.img-fluid.homepage-issue-cover {
  box-shadow: 7px 8px 35px -8px rgba(0, 0, 0, 0.75);
}

/************FOOTER**********************/
.site-footer {
  text-align: justify;
  background: #222760 !important;
  color: #fff;
}

img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.main-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.row-container-logos,
.row-container-info {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  flex-wrap: wrap;
}

.item-footer,
.item-footer-redes {
  flex: 1 1 30%; /* Ajusta el tamaÃ±o base y permite el wrap */
  margin: 10px;
  padding: 5px;
  text-align: center;
  display: flex;
  justify-content: center;
  color: #fff;
  font-size: small;
  flex-wrap: wrap;
}

.redes {
  display: flex;
  flex-direction: row;
  height: 100%;
  justify-content: center;
  align-items: center;
  width: 40%;
  flex-wrap: wrap;
}

.redes img {
  width: 20px;
  margin: 2px;
}

.ojs {
  height: 100px;
  display: flex;
  width: 30%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.ojs img {
  height: 100px;
}

.item-footer a {
  color: #fff;
}

.item-footer p {
  margin-top: 0;
  text-align: center;
}

.item-footer img {
  max-height: 100px;
}

@media (max-width: 768px) {
  .item-footer,
  .item-footer-redes {
    flex: 1 1 45%; /* Ajusta el tamaÃ±o base para pantallas mÃ¡s pequeÃ±as */
  }

  .redes {
    width: 100%; /* Ajusta el ancho de .redes para pantallas mÃ¡s pequeÃ±as */
  }
}

@media (max-width: 480px) {
  .item-footer,
  .item-footer-redes {
    flex: 1 1 100%; /* Ajusta el tamaÃ±o base para pantallas muy pequeÃ±as */
  }
}

.pkp_structure_footer {
  text-align: justify;
  background: #592663;
  color: #fff;
}
.pkp_footer_content {
  padding-top: 2em !important;
  width: 100%;
}

.pkp_structure_footer_wrapper {
  background-image: none !important;
  background: #592663;
}

/* ====== Índices ====== */
.index-grid {
  --card-radius: 12px;
  --card-gap: 12px;
  --card-pad: 10px;

  list-style: none;
  margin: 18px 0 8px;
  padding: 0;
  display: grid;
  gap: var(--card-gap);
  /* 7 columnas en escritorio*/
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.index-grid li {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease,
    opacity 0.2s ease;
  display: flex;
}

.index-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--card-pad);
  border-radius: var(--card-radius);
}

.index-grid img {
  max-height: 44px;
  width: auto;
  height: auto;
  transition: inherit;
}

.index-grid li:hover,
.index-grid li:focus-within {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.index-grid li:hover img,
.index-grid li:focus-within img {
  opacity: 1;
}

.pkp_structure_footer .index-grid li {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ====== responsive ====== */
@media (max-width: 1399px) {
  .index-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 1199px) {
  .index-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .index-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .index-grid img {
    max-height: 42px;
  }
}
@media (max-width: 767px) {
  .index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .index-grid img {
    max-height: 38px;
  }
}
@media (max-width: 480px) {
  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .index-grid img {
    max-height: 34px;
  }
}

@media (min-width: 992px) {
  .navbar-logo {
    padding-top: 0 !important;
    padding-bottom: 0 !important; /* Quitar padding debajo del banner*/
  }
}

/* Detecta solo los logos que quieras forzar a negro */
.index-grid img[alt*="CONACYT"] {
  filter: brightness(0) invert(0);
}

.site-footer-sidebar {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Contenedor en dos columnas */
.footer-redes {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  margin: 40px 0;
  flex-wrap: wrap;
}

/* Bloque "SÍGUENOS" */
.footer-redes .siguenos {
  flex-direction: column;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-left: 30rem;
}

/* Iconos: mismo tamaño y estilo */
.footer-redes img {
  width: 40px;
  height: 40px;
  border-radius: 50%; /* círculo */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-redes img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

/* Responsive: en móvil se apilan */
@media (max-width: 768px) {
  .footer-redes {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin: 10px 0;
  }
  .footer-redes .siguenos {
    margin-left: 0;
  }
}
@media (max-width: 991px) {
  .footer-redes {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin: 15px 0;
  }
  .footer-redes .siguenos {
    margin-left: 0;
  }
}
@media (max-width: 1199px) {
  .footer-redes {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin: 20px 0;
  }
  .footer-redes .siguenos {
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  .site-footer {
    padding-top: 0 !important;
  }
}
