/* =====================================================
   QUEYÁM PUBLISHING – ESTILO EDITORIAL OMP 3.4.x
   ===================================================== */

/* -------------------------
   BASE GENERAL
-------------------------- */
body {
  font-family: 'Inter', 'Roboto', Arial, sans-serif;
  background-color: #f6f7f9;
  color: #222;
  line-height: 1.6;
}

/* Contenedor central */
#pkp_content_main {
  max-width: 1180px;
  margin: auto;
  padding: 20px;
}

/* -------------------------
   ENCABEZADOS
-------------------------- */
h1, h2, h3 {
  font-weight: 600;
  color: #0b2c44;
}

h1 {
  margin-bottom: 25px;
}

h3 {
  font-size: 1.05em;
}

/* -------------------------
   LINKS
-------------------------- */
a {
  color: #0b2c44;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------------------------
   BOTONES
-------------------------- */
.pkp_button,
button,
input[type="submit"] {
  background-color: #0b2c44;
  color: #ffffff;
  border-radius: 6px;
  border: none;
  padding: 8px 14px;
  font-size: 0.9em;
}

.pkp_button:hover {
  opacity: 0.9;
}

/* =====================================================
   CATÁLOGO DE MONOGRAFÍAS
   ===================================================== */

/* Tarjeta general */
.obj_monograph_summary {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 40px;
  padding: 0;
}

/* Contenedor interno */
.obj_monograph_summary .item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 24px;
  min-height: 240px; /* ALTURA ESTÁNDAR */
}

/* Columna de imagen */
.obj_monograph_summary img {
  height: 180px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  margin-right: 24px;
}

/* Columna de texto */
.obj_monograph_summary .item > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Título del libro */
.obj_monograph_summary h3 {
  margin-bottom: 12px;
  line-height: 1.3;

  /* Máximo 3 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Metadata (autor, fecha) */
.obj_monograph_summary .meta {
  font-size: 0.9em;
  color: #555;
  margin-top: 8px;
}

/* -------------------------
   SIDEBAR DERECHO
-------------------------- */
.pkp_block {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.pkp_block h2 {
  font-size: 1em;
  margin-bottom: 12px;
}

/* -------------------------
   BREADCRUMB
-------------------------- */
.pkp_page_content .breadcrumb {
  font-size: 0.85em;
  margin-bottom: 20px;
  color: #666;
}

/* -------------------------
   FOOTER
-------------------------- */
.pkp_footer_content {
  padding: 40px 20px;
  font-size: 0.85em;
  color: #555;
  text-align: center;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {

  .obj_monograph_summary .item {
    flex-direction: column;
    min-height: auto;
  }

  .obj_monograph_summary img {
    margin: 0 auto 16px auto;
    max-width: 140px;
    height: auto;
  }

}
/* =========================
   HOME – CONTENIDO ADICIONAL
   ========================= */

.qp-home {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.8;
}

.qp-home h1 {
  text-align: center;
  font-size: 2.8em;
  color: #0b2c44;
  margin-bottom: 20px;
  position: relative;
}

.qp-home h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #b11e2d;
  margin: 15px auto 0;
}

.qp-home h2 {
  text-align: center;
  font-size: 2em;
  color: #0b2c44;
  margin: 60px 0 20px;
}

.qp-home p {
  max-width: 780px;
  margin: 0 auto 18px;
  color: #222;
}

.qp-center {
  text-align: center;
  margin: 30px 0;
}

.qp-center-text {
  text-align: center;
}

.qp-btn {
  background-color: #b11e2d;
  color: #fff;
  padding: 10px 26px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.qp-btn:hover {
  background-color: #8e1824;
}

.qp-books {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.qp-books img {
  width: 180px;
  height: auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.qp-books img:hover {
  transform: scale(1.03);
}

/* =====================================================
   FOOTER – QUEYÁM PUBLISHING (FINAL)
   ===================================================== */

/* Footer principal */
.qp-footer {
  background-color: #0f4c75;   /* Azul institucional */
  width: 100%;
  padding: 26px 12px;
  box-sizing: border-box;
}

/* Contenido interno */
.qp-footer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
  font-size: 0.95em;
  line-height: 1.6;
}

/* Párrafos */
.qp-footer-content p {
  margin: 6px 0;
}

/* Enlaces */
.qp-footer-content a {
  color: #ffffff;
  text-decoration: none;
}

.qp-footer-content a:hover {
  text-decoration: underline;
}

/* Enlaces rápidos */
.qp-footer-links {
  margin: 10px 0;
}

/* Redes sociales */
.qp-footer-social {
  margin: 10px 0;
}

/* Copyright */
.qp-footer-copy {
  font-size: 0.85em;
  opacity: 0.9;
}

/* =====================================================
   OCULTAR BRANDING OMP / PKP
   ===================================================== */

.pkp_brand_footer,
.pkp_footer_branding,
.pkp_branding,
.pkp_footer_content .pkp_branding {
  display: none !important;
}

/* =====================================================
   EVITAR FRANJAS GRISES ABAJO (OMP)
   ===================================================== */

.pkp_structure_footerWrapper {
  background: #0f4c75 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pkp_footer {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =====================================================
   FIX DEFINITIVO – WRAPPER FOOTER OMP
   ===================================================== */

/* Fuerza el wrapper externo al mismo azul */
body .pkp_structure_footer_wrapper {
  background-color: #0f4c75 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  justify-content: center;
}

/* Elimina cualquier fondo interno residual */
body .pkp_structure_footer {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: 1100px;  /* mismo ancho que el contenido principal */
  margin: 0 auto;
  padding: 24px 20px;
  text-align: center;
}

/* Asegura que el footer no tenga separación extra */
body footer,
body .qp-footer {
  margin: 0 !important;
}

body .pkp_structure_footer > * {
  margin-left: auto;
  margin-right: auto;
}