/* ==================== ESTILOS GENERALES  ===================================== */
:root {
  --uax-blue: #0060af;
  --uax-blue-hover: rgb(1, 55, 230);
  --uax-yellow: #f4b000;
  --uax-white: #ffffff;
}

/* ===== Barra de bÃºsqueda  ===== */

.uax-search-portal {
  display: flex;
  justify-content: center;
  margin: 20px auto 40px;
}

.img-to-icon {
  max-width: 20px;
  margin-bottom: -4px;
}

.uax-search-wrapper {
  background: #000000;
  padding: 1px;
  width: 100%;
  max-width: 1200px;
}

.uax-search-form {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
}

.uax-search-input {
  flex: 1 1 auto;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.uax-search-select {
  border: none;
  border-left: 1px solid #dcdcdc;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #ffffff;
  flex: 0 0 auto;
  width: 260px;
  align-self: stretch;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 40px;
}

.uax-search-select:focus {
  outline: 2px solid var(--uax-blue);
  outline-offset: -2px;
}

.uax-search-input::placeholder {
  color: #999999;
}

.uax-search-button {
  border: none;
  background: #0060af;
  /* azul uax */
  color: #ffffff;
  padding: 0 32px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  min-width: 80px;
}

/* Responsive: tablets y móviles */
@media (max-width: 768px) {
  .uax-search-form {
    flex-wrap: wrap;
  }

  .uax-search-input {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .uax-search-select {
    flex: 1 1 auto;
    width: auto;
    border-left: none;
    border-top: 1px solid #dcdcdc;
  }

  .uax-search-button {
    flex: 0 0 auto;
    min-width: 100px;
  }
}

.uax-search-button:hover {
  background: rgb(1, 55, 230);
}

.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;
}

.uax-search-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.pkp_structure_main:before,
.pkp_structure_main:after {
  width: 0px !important;
}

/* ===== Bloque "Revistas" portal e-Revistas ===== */

.uax-journals {
  text-align: center;
  margin: 60px auto 0px;
}

.uax-journals h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

/* Secciones de revistas (activas/inactivas) */
.uax-journals-section {
  margin: 40px 0;
  position: relative;
}

.uax-journals-section::before {
  content: '';
  position: absolute;
  border-bottom: 3px solid #000;
  width: 100%;
  top: 10px;
  left: 0;
}
.uax-section-title {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--uax-blue);
  background: var(--uax-white);
  z-index: 1;
  left: 0;
  position: relative;
  padding: 0px 20px;
}


/* Grid de tarjetas */
.uax-journals-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 70px;
  /* filas, columnas */
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 50px;
}

/* Cada revista */
.uax-journal-card {
  width: 280px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* TÃ­tulo de la revista */
.uax-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 */
}

.uax-journal-title a {
  color: #000;
  text-decoration: none;
}

/* Portada */
.uax-journal-cover {
  width: auto;
  height: 300px;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.uax-journal-cover img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* BotÃ³n "Ir al sitio" */
.uax-journal-actions {
  margin-top: 6px;
}

.pkp_page_index .journals img {
  display: block;
  max-height: 21em;
}

.uax-btn-journal {
  display: inline-block;
  background: #0060af;
  /* azul uax */
  color: #ffffff;
  padding: 6px 22px;
  border-radius: 3px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}

.uax-btn-journal:hover {
  background: rgb(1, 59, 248);
}

/* Cambiar el texto del botón "Ir al sitio" sin tocar HTML */
.uax-btn-journal {
  position: relative;
  color: transparent !important;
  /* Oculta el texto original */
}

/* Inserta el nuevo texto */
.uax-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;
}

/* Limitar la longitud visible de los tÃ­tulos de revista */
.uax-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;
}

.uax-journal-title a {
  height: 2rem;
}

/* Forzar que el tÃ­tulo "Revistas" sea visible en el portal */
.page_index_site .uax-journals h2,
.pkp_page_index .journals.uax-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;
  margin-bottom: 5rem;
}

.pkp_brand_footer {
  display: none;
}

.cmp_breadcrumbs a {
  color: var(--uax-blue);
}

/* ===== Footer principal ===== */
.uax-footer {
  max-width: 100%;
  padding: 30px auto 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  color: #001e90;
  font-weight: 400;
  background-image: url("./footer_vacio.png");
  background-size: cover;
  color: #ffffff;
  font-size: 14px;
}

/* Contenedor interior para centrar el contenido */
.uax-footer-bg {
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 40px 60px;
}

/* Bloque de las 4 columnas */
.uax-footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  text-align: center;
  flex-wrap: nowrap;
}

/* Cada columna */
.uax-footer .footer-col {
  flex: 1 1 0;
}

/* Títulos de columna */
.uax-footer .footer-col h4 {
  font-weight: 700;
  margin: 0 0 8px;
}

/* Texto general del footer */
.uax-footer .footer-col p {
  margin: 2px 0;
}

/* Enlaces */
.uax-footer a {
  color: #ffffff;
  text-decoration: underline;
}

.uax-footer a:hover {
  text-decoration: none;
}

/* Línea amarilla */
.footer-divider {
  height: 4px;
  background-color: #f4b000;
  margin: 32px 0 28px;
}

/* Bloque inferior: texto + CC */
.footer-bottom {
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 10px;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.5;
}

/* Icono CC + texto */
.footer-cc {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.footer-cc img {
  height: 40px;
  /* ajusta si el icono se ve muy grande/pequeño */
  width: auto;
}

/* ==================== ESTILOS ESCRITORIO (Punto de quiebre OJS)  ===================================== */
@media (min-width: 992px) {
  .pkp_head_wrapper {
    position: relative;
    padding-top: 80px !important;
    width: 100% !important;
  }

  .pkp_site_name_wrapper {
    width: 100%;
  }

  .pkp_site_name .is_img {
    display: inline-block;
    margin-top: 0px;
    margin-bottom: 0;
    padding: 0;
    width: 100%;
    height: auto;
  }

  .pkp_site_name .is_img img {
    max-height: 100%;
    height: auto;
  }

  .pkp_head_wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    z-index: 0;
  }

  .pkp_site_name .is_text {
    padding: 0.7rem 10rem;
  }

  .pkp_site_nav_menu {
    background: var(--uax-blue);
    padding: 0.3rem 10rem;
  }

  .pkp_navigation_primary > li > a {
    font-size: 1em;
  }

  .logo_uax {
    position: absolute;
    top: 3%;
    left: 8%;
    width: 500px;
    height: 60px;
    background-image: url("./logo.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    z-index: 1;
  }

  .pkp_navigation_user_wrapper {
    top: 18px;
  }

  .pkp_structure_head {
    background-color: var(--uax-blue);
    border-bottom: 1px solid #ddd;
  }

  .pkp_site_name {
    display: flex;
    flex-direction: column;
  }

  #navigationUser > li > a {
    background-color: #000;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
  }

  #navigationUser > li + li::before {
    content: "|";
    color: rgba(255, 255, 255, 0.7);
  }

  .pkp_structure_footer {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .pkp_footer_content {
    padding: 0;
  }

  .pkp_page_index .journals h3 {
    margin: 0 0px 10px 0;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 991px) {
  .pkp_structure_head {
    background-color: var(--uax-blue);
    margin-top: 4rem;
  }

  .logo_uax {
    position: absolute;
    top: -57px;
    left: -44px;

    width: 80%;
    height: 60px;
    background-image: url("./logo.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    z-index: 1;
  }

  .pkp_site_name {
    display: flex;
    flex-direction: column;
  }

  .pkp_site_nav_toggle {
    position: absolute;
    top: -45px;
    left: 90%;
    right: 11px;
    width: 2.857rem;
    height: 2.857rem;
    border: 0;
    background: none;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.2),
      -1px 0 0 rgba(255, 255, 255, 0.2);
    z-index: 999;
  }

  .pkp_site_nav_toggle > span:before,
  .pkp_site_nav_toggle > span:after {
    border-bottom: 3px solid #000000;
  }

  .has_site_logo .pkp_head_wrapper {
    width: 100vw;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }

  .pkp_site_name_wrapper {
    margin: 0;
    width: 100%;
  }

  .pkp_site_name_wrapper {
    position: relative;
  }

  .pkp_site_name_wrapper {
    padding: 0;
  }

  .pkp_site_name {
    position: relative;
    left: 0;
    right: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
      "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue",
      sans-serif;
    font-size: 0.93rem;
  }

  .pkp_structure_footer {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }

  .pkp_footer_content {
    padding: 0;
    text-align: left;
  }

  .uax-footer-bg {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 20px 30px;
  }

  .uax-footer-content {
    display: flex;
    justify-content: space-between;
    gap: 9px;
    text-align: center;
    flex-wrap: wrap;
  }

  .pkp_site_name > a {
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
    font-size: 2.5vw;
  }

  .pkp_structure_main {
    padding: 0.714rem;
    margin-top: 20vw;
  }

  .pkp_site_name .is_img {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    height: 200px;
  }

  .pkp_site_name .is_img img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .pkp_site_name .is_text {
    font-size: 2vw;
  }

  .pkp_site_nav_menu {
    background: var(--uax-blue);
  }

  .uax-search-input {
    flex: none;
    min-width: 80%;
  }

  .uax-search-button {
    flex: none;
    min-width: 20%;
    padding: 0px 0px;
  }
  .uax-search-form {
    flex-wrap: nowrap;
    padding: 0px 0px;
  }
}
