/* Modernized Blue Academic Theme v3 */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Merriweather+Sans:wght@300;400;600&display=swap');

:root {
  --primary-blue: #0066cc;
  --secondary-blue: #004c99;
  --accent-blue: #3399ff;
  --neutral-grey: #666666;
  --background-blue: #004c99;
}

body {
  font-family: "Merriweather Sans", sans-serif;
  color: var(--neutral-grey);
  background-color: #ffffff;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  font-weight: 300;
}

/* =======================
   TEXTO GENERAL AJUSTADO
   ======================= */
p,
.obj_article_details,
.obj_galley_link,
.pkp_block,
.current_issue,
.cmp_notification,
.cmp_form_error,
.cmp_form_notice,
.cmp_form_warning {
  font-weight: 300;
  color: var(--neutral-grey);
}

/* =======================
   ENCABEZADO / BANNER
   ======================= */
.pkp_site_name {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  background-color: var(--background-blue);
}

.pkp_site_name .banner-link {
  display: inline-block;
  text-decoration: none;
}

.pkp_site_name .banner-image {
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.pkp_site_name .banner-image:hover {
  transform: scale(1.03);
}

.pkp_site_name a,
.pkp_site_name .is_text {
  font-family: "Lora", serif;
  font-size: 6rem;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.pkp_site_name .is_img img {
  display: none !important;
}

/* =======================
   MENÚ PRINCIPAL
   ======================= */
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary_row,
.pkp_navigation_user_wrapper,
header,
.pkp_head_wrapper {
  background-color: var(--background-blue) !important;
}

.pkp_navigation_primary > li > a {
  font-family: "Merriweather Sans", sans-serif;
  color: #ffffff !important;
  padding: 10px 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.pkp_navigation_primary > li > a:hover {
  color: var(--accent-blue) !important;
  background-color: rgba(255,255,255,0.1);
}

/* =======================
   PIE DE PÁGINA
   ======================= */
.pkp_structure_footer_wrapper,
footer {
  background-color: var(--background-blue) !important;
  color: rgba(255,255,255,0.9);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2em;
}

footer .footer-links,
footer .footer-contact {
  flex: 1 1 300px;
  margin: 0 1em;
}

footer .footer-contact {
  text-align: right;
  color: #ffffff;
}

footer .footer-contact p {
  margin: 0.3em 0;
  font-weight: 300;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li a,
footer ul li a:visited {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 300;
}
footer ul li a:hover {
  color: var(--accent-blue) !important;
}

/* =======================
   CONTENIDO
   ======================= */
.pkp_structure_content,
.pkp_structure_main {
  background-color: #ffffff;
}

.pkp_block, .obj_article_details, .current_issue {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1em 1.5em;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  margin-bottom: 1.5em;
}

/* =======================
   BOTONES
   ======================= */
button, .cmp_button, .obj_galley_link {
  font-family: "Merriweather Sans", sans-serif;
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5em 1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover, .cmp_button:hover, .obj_galley_link:hover {
  background-color: var(--secondary-blue);
  transform: scale(1.03);
}

/* =======================
   RESPONSIVE
   ======================= */
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }
  h1 {
    font-size: 1.8rem;
  }
  footer {
    flex-direction: column;
    text-align: center;
  }
  .pkp_site_name {
    height: 180px;
  }
  .pkp_site_name a,
  .pkp_site_name .is_text {
    font-size: 3rem;
  }
  .pkp_site_name .banner-image {
    max-height: 150px;
  }
  footer .footer-contact {
    text-align: center;
    margin-top: 1em;
  }
}
