/* =========================================
   CIOH HOME
   OJS 3.4.0.8
========================================= */

/* CONTENEDOR GENERAL */

.pkp_page_index .pkp_structure_main,
.pkp_page_index .page_index_journal.rzm-index-journal,
.pkp_page_index .rzm-additional-home-content,
.pkp_page_index .cioh-home {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

.pkp_page_index .cioh-home {
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: #1b1b1b;
}

/* TÍTULOS DE SECCIÓN */

.pkp_page_index .cioh-featured > h2,
.pkp_page_index .cioh-videos > h2,
.pkp_page_index .cioh-stats > h2,
.pkp_page_index .cioh-indexing > h2 {
  margin: 0 0 28px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: #1b5b85;
}

/* =========================================
   HERO / CARRUSEL
========================================= */

.pkp_page_index .cioh-hero {
  position: relative;
  width: 100%;
  height: 340px;
  margin: 0 0 28px;
  overflow: hidden;
}

.pkp_page_index .cioh-hero input {
  display: none;
}

.pkp_page_index .cioh-slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.6s ease;
}

.pkp_page_index .cioh-slide {
  position: relative;
  width: 33.333333%;
  height: 100%;
}

.pkp_page_index .cioh-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.18);
}

.pkp_page_index .cioh-slide img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.pkp_page_index .cioh-hero-text {
  position: absolute;
  top: 50%;
  right: 7%;
  z-index: 2;
  max-width: 620px;
  padding: 18px 24px;
  border-radius: 6px;
  color: #fff;
  text-align: right;
  background: rgba(0, 0, 0, 0.38);
  transform: translateY(-50%);
}

.pkp_page_index .cioh-hero-text p {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.pkp_page_index .cioh-hero-text h1 {
  margin: 0;
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
}

.pkp_page_index .cioh-hero-text h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
}

.pkp_page_index .cioh-hero-text a {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 22px;
  border-radius: 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: #00aeef;
}

.pkp_page_index .cioh-hero-text a:hover {
  color: #fff;
  background: #008fc5;
}

.pkp_page_index #cioh-slide-1:checked ~ .cioh-slides {
  transform: translateX(0);
}

.pkp_page_index #cioh-slide-2:checked ~ .cioh-slides {
  transform: translateX(-33.333333%);
}

.pkp_page_index #cioh-slide-3:checked ~ .cioh-slides {
  transform: translateX(-66.666667%);
}

.pkp_page_index .cioh-arrows label {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 5;
  color: #fff;
  font-size: 62px;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
}

.pkp_page_index .cioh-arrows .prev {
  left: 18px;
}

.pkp_page_index .cioh-arrows .next {
  right: 18px;
}

.pkp_page_index #cioh-slide-1:checked ~ .cioh-arrows .prev1,
.pkp_page_index #cioh-slide-1:checked ~ .cioh-arrows .next1,
.pkp_page_index #cioh-slide-2:checked ~ .cioh-arrows .prev2,
.pkp_page_index #cioh-slide-2:checked ~ .cioh-arrows .next2,
.pkp_page_index #cioh-slide-3:checked ~ .cioh-arrows .prev3,
.pkp_page_index #cioh-slide-3:checked ~ .cioh-arrows .next3 {
  display: block;
}

/* =========================================
   NÚMEROS RECIENTES + ALCANCE
========================================= */

.pkp_page_index .cioh-phase-one {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 55px;
  align-items: start;
  width: 100%;
  margin: 0 auto 45px;
  padding: 0 28px;
  box-sizing: border-box;
}

.pkp_page_index .cioh-recent h2,
.pkp_page_index .cioh-scope h2 {
  margin: 0 0 18px;
  font-size: 23px;
  font-weight: 800;
  color: #111;
}

.pkp_page_index .cioh-issues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.pkp_page_index .cioh-issue-card img {
  display: block;
  width: 100%;
  max-width: 175px;
  height: 220px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.pkp_page_index .cioh-issue-card h3 {
  margin: 13px 0 2px;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.pkp_page_index .cioh-issue-card a {
  color: #003b5c;
  font-size: 13px;
  text-decoration: none;
}

.pkp_page_index .cioh-issue-card a:hover {
  text-decoration: underline;
}

.pkp_page_index .cioh-scope {
  min-height: 260px;
  padding: 28px 30px;
  background: #f1f1f1;
  box-sizing: border-box;
}

.pkp_page_index .cioh-scope h2 {
  color: #1b5b85;
}

.pkp_page_index .cioh-scope p {
  margin: 0 0 25px;
  font-size: 15px;
  line-height: 1.45;
}

.pkp_page_index .cioh-scope a {
  color: #1b5b85;
  font-weight: 700;
  text-decoration: none;
}

.pkp_page_index .cioh-scope a:hover {
  text-decoration: underline;
}

/* =========================================
   SECCIONES GENERALES
========================================= */

.pkp_page_index .cioh-featured,
.pkp_page_index .cioh-videos,
.pkp_page_index .cioh-stats,
.pkp_page_index .cioh-indexing {
  width: 100%;
  margin: 0 auto 45px;
  padding: 38px 28px 0;
  border-top: 1px solid #e5e5e5;
  box-sizing: border-box;
}

/* =========================================
   ARTÍCULOS DESTACADOS
========================================= */

.pkp_page_index .cioh-articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 55px;
}

.pkp_page_index .cioh-article-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pkp_page_index .cioh-article-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: #1b5b85;
}

.pkp_page_index .cioh-article-card h3 {
  margin: 0 0 9px;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.18;
}

.pkp_page_index .cioh-article-card p {
  margin: 0 0 8px;
  color: #555;
  font-size: 13px;
  line-height: 1.25;
}

.pkp_page_index .cioh-article-card a {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #1b5b85;
  border-radius: 4px;
  color: #1b5b85;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.pkp_page_index .cioh-article-card a:hover {
  color: #fff;
  background: #1b5b85;
}

/* =========================================
   VIDEOS
========================================= */

.pkp_page_index .cioh-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
}

.pkp_page_index .cioh-video-player {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
}

/* =========================================
   ESTADÍSTICAS
========================================= */

.pkp_page_index .cioh-stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/*
  Cambia en el HTML:
  id="widgetIframe" por class="widget-iframe".
  Un mismo id no debe repetirse.
*/
.pkp_page_index .cioh-stats-grid .widget-iframe {
  flex: 1 1 500px;
  width: 100%;
  max-width: 570px;
  min-width: 0;
}

.pkp_page_index .cioh-stats-grid iframe {
  display: block;
  width: 100%;
  min-height: 350px;
  border: 0;
}

/* Iframe directo, si decides conservar el dashboard completo */
.pkp_page_index .cioh-stats-grid > iframe {
  flex: 1 0 100%;
  width: 100%;
  max-width: 1170px;
  min-height: 535px;
}

/* =========================================
   INDEXADORES
========================================= */

.pkp_page_index .cioh-indexing {
  position: relative;
  padding-bottom: 35px;
}

.pkp_page_index .cioh-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, auto));
  justify-content: center;
  align-items: center;
  justify-items: center;
  column-gap: 50px;
  row-gap: 35px;
}

.pkp_page_index .cioh-index-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pkp_page_index .cioh-index-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.pkp_page_index .cioh-index-grid img:hover {
  transform: scale(1.04);
}

.pkp_page_index .cioh-index-grid .dialnet,
.pkp_page_index .cioh-index-grid .periodica,
.pkp_page_index .cioh-index-grid .openalex {
  max-width: 180px;
}

.pkp_page_index .cioh-index-grid .latindex,
.pkp_page_index .cioh-index-grid .lens {
  max-width: 230px;
}

.pkp_page_index .cioh-index-grid .dimensions {
  max-width: 280px;
}

.pkp_page_index .cioh-indexing-more {
  display: block;
  margin-top: 28px;
  color: #1b5b85;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  text-decoration: none;
}

.pkp_page_index .cioh-indexing-more:hover {
  text-decoration: underline;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .pkp_page_index .cioh-hero,
  .pkp_page_index .cioh-slide img {
    height: 300px;
  }

  .pkp_page_index .cioh-hero-text h1 {
    font-size: 36px;
  }

  .pkp_page_index .cioh-hero-text h2 {
    font-size: 17px;
  }

  .pkp_page_index .cioh-phase-one {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pkp_page_index .cioh-articles,
  .pkp_page_index .cioh-video-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pkp_page_index .cioh-video-player {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .pkp_page_index .cioh-index-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 600px) {
  .pkp_page_index .cioh-hero,
  .pkp_page_index .cioh-slide img {
    height: 260px;
  }

  .pkp_page_index .cioh-hero-text {
    right: 24px;
    left: 24px;
    padding: 16px 18px;
    text-align: center;
  }

  .pkp_page_index .cioh-hero-text h1 {
    font-size: 28px;
  }

  .pkp_page_index .cioh-arrows label {
    font-size: 42px;
  }

  .pkp_page_index .cioh-phase-one,
  .pkp_page_index .cioh-featured,
  .pkp_page_index .cioh-videos,
  .pkp_page_index .cioh-stats,
  .pkp_page_index .cioh-indexing {
    padding-right: 18px;
    padding-left: 18px;
  }

  .pkp_page_index .cioh-issues,
  .pkp_page_index .cioh-index-grid {
    grid-template-columns: 1fr;
  }

  .pkp_page_index .cioh-issue-card img {
    max-width: 210px;
  }

  .pkp_page_index .cioh-stats-grid .widget-iframe {
    flex-basis: 100%;
    max-width: 100%;
  }

  .pkp_page_index .cioh-index-grid img {
    max-width: 220px !important;
  }

  .pkp_page_index .cioh-indexing-more {
    text-align: left;
  }
}


.rd-header__language-flags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.rd-header__language-flags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
}

.rd-header__language-flags img {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.rd-header__language-flags a:hover {
  opacity: 0.8;
}