@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap");

h1,
h2,
h4 {
  font-family: "Outfit", sans-serif !important;
  font-weight: 600;
  letter-spacing: 0.2px;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 600;
}

h4 {
  font-weight: 500;
}

/* Hero */
.hero-section {
  background: linear-gradient(to right, #7fb17e 0%, #006798 100%);
  position: relative;
}

#header.header-scrolled {
  background: rgba(0, 0, 0, 0.8);
}

.hero-section.inner-page {
  height: 50vh;
  min-height: 0;
}

.hero-section,
.hero-section > .container > .row {
  height: 50vh;
  min-height: 0;
}

/* Títulos de páginas internas */
.hero-section.inner-page .hero-text {
  transform: translateY(-30px);
  margin-top: 120px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Estructura de la portada */
.gs_home_layout .gs_login {
  width: 100%;
}

.page_index_journal {
  display: flex;
}

.gs_sidebar {
  min-width: fit-content;
  padding-inline: 1rem;
}

/* Sidebar */
.gs_sidebar a,
._pkp_structure_sidebar a,
.pkp_block a {
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif !important;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: none;
  margin-bottom: 5px;
}

/* Extras */
.issues_archive {
  flex-direction: column;
}

a {
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif !important;
  font-weight: 500;
}

.obj_article_summary > .title a {
  color: #000;
  text-decoration: none;
}

/* Botones */
.btn-primary {
  color: #fff;
  background-color: #388038;
}

.btn-primary:hover {
  color: #fff;
  background-color: #007100;
}

/* Móvil */
@media (max-width: 768px) {
  .hero-section.inner-page {
    height: 30vh;
    min-height: 0;
  }

  .gs_home_layout {
    display: flex;
    flex-direction: column-reverse;
  }

  .page_index_journal {
    display: flex;
    flex-direction: column-reverse;
  }

  .gs_sidebar {
    min-width: 100%;
    padding-inline: 1rem;
  }
}


/* Keep the decorative wave clear of following page content. */
.hero-section.inner-page {
      margin-bottom: 150px;
}

@media screen and (max-width: 992px) {
      .hero-section.inner-page {
              margin-bottom: 180px;
      }
}

/* Stable hero header layout. */
.hero-section:not(.inner-page),
.hero-section:not(.inner-page) >
.container > .row {
      height: 460px;
        min-height: 460px;
}

.hero-section:not(.inner-page) {
      margin-bottom: 150px;
}

.hero-section.inner-page .hero-text {
      transform: translateY(-45px);
        margin-top: 80px;
}

@media screen and (max-width: 992px) {
      .hero-section:not(.inner-page),
        .hero-section:not(.inner-page) >
          .container > .row {
                  height: 420px;
                      min-height: 420px;
          }
            .hero-section:not(.inner-page) {
                    margin-bottom: 180px;
            }
}

/* Hero layout correction: keep text above the wave and below fixed navigation. */
.hero-section:not(.inner-page),
.hero-section:not(.inner-page) > .container > .row {
  height: 520px !important;
  min-height: 520px !important;
}

.hero-section:not(.inner-page) {
  margin-bottom: 150px !important;
}

.hero-section.inner-page {
  height: 380px !important;
  min-height: 380px !important;
  margin-bottom: 150px !important;
}

.hero-section.inner-page > .container {
  height: 380px !important;
  padding-top: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.hero-section.inner-page > .container > .row {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

.hero-section.inner-page .hero-text {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  transform: none !important;
  text-align: center !important;
}

@media screen and (max-width: 992px) {
  .hero-section:not(.inner-page),
  .hero-section:not(.inner-page) > .container > .row {
    height: 500px !important;
    min-height: 500px !important;
  }

  .hero-section:not(.inner-page) {
    margin-bottom: 180px !important;
  }

  .hero-section.inner-page,
  .hero-section.inner-page > .container {
    height: 340px !important;
    min-height: 340px !important;
  }

  .hero-section.inner-page {
    margin-bottom: 180px !important;
  }
}


/* Theme fallback: preserves header and wave while OJS dynamic stylesheet is unavailable. */
.container {
  z-index: 2;
  position: relative;
}

#header {
  height: 80px;
  z-index: 997;
  transition: all .5s;
}

#header.header-scrolled {
  background: rgba(39, 70, 133, .8);
  height: 60px;
}

.navbar-nav {
  display: flex;
  flex-direction: row !important;
  list-style: none;
  align-items: center;
  font-family: Roboto, sans-serif;
}

.navbar li { position: relative; }

.navbar .nav-link {
  padding: 10px 0 10px 20px !important;
}

.navbar .nav-link:hover,
.navbar .active,
.navbar .active:focus,
.navbar .nav-link:hover > a { color: #fff; }

.mobile-nav-toggle {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: .5s;
}

.hero-section .wave {
  width: 100%;
  overflow: hidden;
  position: absolute;
  z-index: 1;
  bottom: -150px;
}

.hero-section .wave svg { width: 100%; }

.hero-section h1 {
  font-size: 3.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 30px;
}

@media screen and (max-width: 1400px) {
  .hero-section h1 { font-size: 2.5rem; }
}

@media screen and (max-width: 992px) {
  .mobile-nav-toggle { display: block; }
  .navbar ul { display: none; }
  .hero-section .wave { bottom: -180px; }
  .hero-section h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 40px;
  }
  .hero-section .hero-text-image { margin-top: 4rem; }
}


/* Restore essential OJS layout rules while the dynamic stylesheet is unavailable. */
main .html-preloader {
  position: fixed;
  display: flex;
  width: 100%;
  height: 100%;
  inset: 0;
  background-color: rgba(0, 0, 0, .5);
  z-index: 1000;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

main .no-html-preloader {
  display: none !important;
}

.obj_issue_toc .cover {
  display: block;
  margin-bottom: 1.43rem;
}

.obj_issue_toc .cover img {
  display: block;
  width: auto;
  max-height: 250px;
}

.obj_issue_toc .published {
  margin: 1.43rem 0;
}

.obj_issue_toc .published .label {
  font-weight: 700;
}

@media (min-width: 768px) {
  .obj_issue_toc .heading::before,
  .obj_issue_toc .heading::after {
    content: " ";
    display: table;
  }

  .obj_issue_toc .heading::after {
    clear: both;
  }

  .obj_issue_toc .cover {
    float: left;
    width: 25%;
    height: auto;
    max-height: none;
    margin-right: 1.43rem;
  }

  .obj_issue_toc .galleys {
    padding: 1.43rem 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }
}

@media (min-width: 992px) {
  .obj_issue_toc .cover {
    margin-right: 2.143rem;
    margin-bottom: 1.43rem;
  }

  .obj_issue_toc .cover img {
    max-height: 350px;
  }
}
