a {
  text-decoration: none;
  color: #b04646;
}

a:hover {
  color: #4d0908;
}

/*NAV*/
.pkp_nav_list .dropdown-menu li a {
  color: #b04646 !important;
}

.pkp_nav_list .dropdown-menu li a:hover {
  color: #4d0908 !important;
}

@media (min-width: 992px) {
  /* =====================================================
   OJS 3.5 - Barra de navegación unificada
   Menú primary + user en UNA sola línea
   Fondo rojo, texto blanco, arriba del logo
   ===================================================== */


  /* 1) Quitar padding-top reservado para el absolute */
  .pkp_head_wrapper {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 0 !important;
  }

  .has_site_logo .pkp_head_wrapper {
    padding-top: 0 !important;
  }


  /* 2) Subir menú arriba del logo */
  .pkp_site_nav_menu {
    order: -1 !important;
  }


  /* 3) Barra roja: flex row para poner todo en línea */
  .pkp_site_nav_menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    background: #c40000 !important;
    width: 100% !important;
    padding: 8px 20px !important;
    position: static !important;
    top: auto !important;
  }


  /* 4) Primary row: ocupa el espacio disponible */
  .pkp_navigation_primary_row {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
  }


  /* 5) Quitar ancho fijo del wrapper primary */
  .pkp_navigation_primary_wrapper {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .has_site_logo .pkp_navigation_primary_wrapper {
    width: auto !important;
  }


  /* 6) MATAR clearfix que rompe flex */
  .pkp_navigation_primary_wrapper:before,
  .pkp_navigation_primary_wrapper:after,
  .pkp_navigation_user:before,
  .pkp_navigation_user:after {
    display: none !important;
    content: none !important;
  }


  /* 7) Menú primary en línea horizontal */
  .pkp_navigation_primary {
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    max-width: none !important;
    width: auto !important;
  }


  /* 8) Buscador al lado del menú primary */
  .pkp_navigation_search_wrapper {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 0 0 10px !important;
    padding: 0 !important;
    border: none !important;
  }


  /* 9) FIX CRÍTICO: quitar absolute del user wrapper */
  .pkp_navigation_user_wrapper {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-left: auto !important;
    z-index: auto !important;
    border: none !important;
    text-align: right !important;
  }


  /* 10) Quitar ancho fijo del UL user y separadores */
  .pkp_navigation_user.pkp_navigation_user {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
  }


  /* =====================================================
 ESTÉTICA
 ===================================================== */

  /* Links blancos */
  .pkp_site_nav_menu a,
  .pkp_site_nav_menu a:link,
  .pkp_site_nav_menu a:visited {
    color: #ffffff;
    text-decoration: none;
  }

  .pkp_site_nav_menu a:hover,
  .pkp_site_nav_menu a:focus {
    color: #ffe3e3;
    text-decoration: none;
  }

  /* Bordes del primary */
  .pkp_navigation_primary>li>a {
    border-bottom-color: transparent;
    color: #ffffff;
  }

  .pkp_navigation_primary>li>a:hover {
    border-bottom-color: rgba(0, 0, 0, 0.84);
  }

  /* Buscador */
  .pkp_navigation_search_wrapper a {
    border-bottom-color: transparent;
    color: #ffffff;
  }

  .pkp_navigation_search_wrapper a:hover {
    border-bottom-color: rgba(0, 0, 0, 0.84);
  }

  /* Task count */
  .pkp_site_nav_menu .task_count {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.3);
  }

  /* Flechita dropdown */
  .pkp_site_nav_menu [aria-haspopup]:after {
    color: #ffffff;
  }



  .pkp_navigation_primary .dropdown-menu a:focus,
  .pkp_navigation_primary .dropdown-menu a:hover {
    border-color: #b98b01;
  }

  .has_site_logo .pkp_head_wrapper {
    width: 100%;
  }
}

/*FIN NAV*/


/*Bloque lateral logos*/
.wrapper {
  width: 100%;
  padding: 1rem;
}

/* ── Header ── */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  color: #3b2c1a;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.header-logo {
  display: block;
  margin: 0 auto;
  max-width: 260px;
  width: 100%;
  height: auto;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid #d4c9b8;
  margin: 2rem 0;
}

/* ── Grid ── */
.logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 90px;
}

.logo-cell img {
  max-width: 100%;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 420px) {
  .wrapper {
    padding: 1.5rem 1rem;
  }

  .logo-cell {
    height: 78px;
  }
}

/*Fin Bloque lateral logos*/

/*FOOTER*/
/* .pkp_footer_content img {
  margin: 0 .5rem;
}

.pkp_footer_content .rrss img {
  width: 100%;
  max-width: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 2rem;
}

.pkp_footer_content .rrss img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pkp_footer_content p a {
  text-decoration: none;
  color: #b04646;
}

.pkp_footer_content p a:hover {
  color: #4d0908;
} */

/* ===================================
      FOOTER GENERAL
      =================================== */
.pkp_structure_footer_wrapper {
  background: #fff;
  border-top: 10px solid #c0392b;
}

.pkp_footer_content {
  padding: 0;
}

.site-footer {
  padding: 0;
  width: 100%;
}

/* ===================================
      BARRA SUPERIOR
      =================================== */
.footer-top {
  padding: 20px 0;
}

.footer-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

/* --- Columnas del top --- */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
  text-transform: none;
}

/* CC logos */
.footer-col--cc {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-block-start: 1.33em;
}

.cc-icon {
  width: 30px;
  height: auto;
}

.cc-badge {
  width: 80px;
  height: auto;
}

/* Idioma */
.footer-col--lang .lang-list {
  list-style: none;
  padding: 0;
}

.footer-col--lang .lang-list li {
  margin-bottom: 2px;
}

.footer-col--lang .lang-list li a {
  font-size: 0.85rem;
  color: #555;
}

.footer-col--lang .lang-list li a:hover {
  color: #c0392b;
}

/* Redes Sociales */
.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #333;
  color: #fff;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
  background-color: #c0392b;
  transform: scale(1.1);
  text-decoration: none;
}

/* Otras revistas */
.footer-col--revistas .revistas-logos {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-col--revistas .revistas-logos img {
  max-height: 45px;
  width: auto;
}

/* OJS / PKP */
.footer-col--ojs {
  align-items: flex-end;
  text-align: right;
}

.ojs-logo {
  max-height: 80px;
  width: auto;
}

/* ===================================
      LÍNEA DIVISORA
      =================================== */
.footer-divider {
  border: none;
  border-top: 2px solid #c0392b;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================================
      CONTENIDO PRINCIPAL
      =================================== */
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 20px 40px;
}

.footer-section {
  margin-bottom: 16px;
}

.footer-section:last-child {
  margin-bottom: 0;
}

/* Títulos rojos */
.text-red {
  color: #c0392b;
}

/* Punto rojo separador */
.red-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #c0392b;
  border-radius: 50%;
  margin: 0 6px;
  vertical-align: middle;
}

/* Sección de publicación */
.footer-section--pub p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Sección colegio y equipo */
.footer-section--colegio h4,
.footer-section--equipo h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.footer-section--colegio p,
.footer-section--equipo p {
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Derechos */
.footer-section--derechos p {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Fecha */
.footer-section--fecha p {
  font-size: 0.88rem;
  color: #555;
}

/* Indexaciones */
.footer-section--index p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

/* ===================================
      RESPONSIVE — TABLET (≤ 900px)
      =================================== */
@media (max-width: 900px) {
  .footer-top-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
  }

  .footer-col--cc {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .footer-col--lang {
    order: 2;
    width: 45%;
    align-items: center;
    text-align: center;
  }

  .footer-col--social {
    order: 3;
    width: 45%;
    align-items: center;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-col--revistas {
    order: 4;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .footer-col--revistas .revistas-logos {
    justify-content: center;
  }

  .footer-col--ojs {
    order: 5;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .footer-section--index p {
    text-align: left;
  }
}

/* ===================================
      RESPONSIVE — MÓVIL (≤ 576px)
      =================================== */
@media (max-width: 576px) {
  .footer-top-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-col--lang,
  .footer-col--social {
    width: 100%;
  }

  .footer-col--cc {
    flex-direction: row;
    justify-content: center;
  }

  .footer-main {
    padding: 20px 15px 30px;
  }

  .footer-section--pub p,
  .footer-section--colegio p,
  .footer-section--equipo p,
  .footer-section--derechos p,
  .footer-section--fecha p,
  .footer-section--index p {
    font-size: 0.82rem;
  }

  .red-dot {
    width: 6px;
    height: 6px;
    margin: 0 4px;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/*icono ojs por defecto*/
.pkp_brand_footer img {
  display: none;
}

/* @media (max-width: 576px) {
  .bloque-licencia,
  .bloque-recomendacion,
  .iconos-rrss {
    text-align: center;
  }
} */