/* ============================================================
   CIEDES SELLO EDITORIAL | OMP | CATALOGO V2
   Mantiene la identidad institucional y mejora las fichas.
   No crea ni altera metadatos, autorias, ISBN ni DOI.
   ============================================================ */
:root { --ciedes-azul:#003B5C; --ciedes-azul-claro:#075b87; --ciedes-fondo:#F5F7FA; --ciedes-borde:#e0e7ed; }
/* CABECERA EXISTENTE: CONSERVADA */
.pkp_structure_head { background:#F5F7FA !important; }
.pkp_structure_head .pkp_head_wrapper,
.pkp_structure_head .pkp_site_name_wrapper { background:transparent !important; }
.pkp_structure_head .pkp_navigation_primary_wrapper { background:#003B5C !important; }
/* Regla de cache del banner original: conservada */
img[src*="/public/presses/1/homepageImage_es.png"] {
  content:url("https://editorial.funciedes.com/public/presses/1/homepageImage_es.png?v=20261023nuevo") !important;
  max-width:100%; height:auto;
}
/* TIPOGRAFIA Y DISTRIBUCION GENERAL */
.pkp_structure_main { color:#243746; line-height:1.58; }
.pkp_structure_main h1,.pkp_structure_main h2,.pkp_structure_main h3 { line-height:1.3; }
.pkp_page_catalog .pkp_structure_main a,
.page_catalog a { color:var(--ciedes-azul-claro); }
/* LISTADO DE LIBROS: la portada y el texto no deben quedar comprimidos */
.page_catalog .monograph_summary,
.page_catalog .obj_monograph_summary,
.pkp_page_catalog .obj_monograph_summary,
.pkp_page_catalog .monograph_summary,
.obj_monograph_summary {
  box-sizing:border-box;
  width:100%; max-width:100%;
  min-height:260px;
  padding:22px 12px 24px;
  border-bottom:1px solid var(--ciedes-borde);
  overflow:visible;
}
/* El tema base suele distribuir las novedades en columnas del 50%. */
.page_catalog .monograph_summary,
.page_catalog .obj_monograph_summary,
.pkp_page_catalog .monograph_summary,
.pkp_page_catalog .obj_monograph_summary { float:none; clear:both; }
/* PORTADAS DEL LISTADO */
.obj_monograph_summary .cover,
.monograph_summary .cover { width:170px; max-width:38%; margin-right:22px; }
.obj_monograph_summary .cover img,
.monograph_summary .cover img,
.page_catalog .monograph_summary img,
.pkp_page_catalog .obj_monograph_summary img {
  width:170px !important; max-width:100% !important;
  height:auto !important; max-height:none !important;
  object-fit:contain; box-shadow:0 5px 18px rgba(0,35,55,.12);
}
.obj_monograph_summary .title,
.monograph_summary .title { font-size:1.13rem; line-height:1.4; font-weight:700; margin-bottom:10px; }
.obj_monograph_summary .authors,
.monograph_summary .authors { font-size:.95rem; line-height:1.65; color:#354857; }
/* FICHA DE LIBRO: margen, jerarquia, autores y portada */
.page_catalog_entry .title,
.pkp_page_catalog .page_catalog_entry h1,
.page_catalog_entry h1 { color:var(--ciedes-azul); font-weight:700; line-height:1.28; overflow-wrap:break-word; }
.page_catalog_entry .authors,
.page_catalog_entry .author,
.page_catalog_entry .doi,
.page_catalog_entry .keywords,
.page_catalog_entry .abstract,
.obj_monograph_full .authors,
.obj_monograph_full .doi { line-height:1.7; margin-bottom:18px; }
.page_catalog_entry .authors { font-weight:500; }
/* La portada individual usa un area mayor que la de los listados */
.page_catalog_entry .cover,
.page_catalog_entry .cover_image,
.obj_monograph_full .cover { text-align:center; }
.page_catalog_entry .cover img,
.page_catalog_entry .cover_image img,
.obj_monograph_full .cover img,
.obj_monograph_full img.cover {
  display:block; width:260px !important; max-width:100% !important;
  height:auto !important; max-height:none !important;
  margin:0 auto 14px; object-fit:contain;
  box-shadow:0 6px 22px rgba(0,35,55,.15);
}
/* Texto y datos complementarios */
.page_catalog_entry .abstract p,
.obj_monograph_full .abstract p { margin-bottom:1em; line-height:1.72; }
.page_catalog_entry .entry_details > div,
.page_catalog_entry .item { padding-top:12px; padding-bottom:12px; }
.page_catalog_entry .doi a,
.obj_monograph_full .doi a { overflow-wrap:anywhere; }
/* Botones de lectura / PDF */
.page_catalog_entry .galley_link,
.obj_monograph_full .galley_link {
  display:inline-block; padding:12px 18px;
  background:var(--ciedes-azul); border:1px solid var(--ciedes-azul);
  color:white !important; border-radius:4px; text-decoration:none;
  font-weight:600; text-align:center;
}
.page_catalog_entry .galley_link:hover,
.obj_monograph_full .galley_link:hover { background:var(--ciedes-azul-claro); border-color:var(--ciedes-azul-claro); }
/* Moviles: evitar que la portada y los metadatos queden apiñados */
@media (max-width:767px) {
  .obj_monograph_summary .cover,.monograph_summary .cover { float:none; width:160px; max-width:100%; margin:0 auto 16px; }
  .obj_monograph_summary .cover img,.monograph_summary .cover img { width:160px !important; }
  .page_catalog_entry .cover img,.obj_monograph_full .cover img { width:210px !important; }
  .page_catalog_entry h1 { font-size:1.5rem; }
}

/* ============================================================
   CIEDES | METADATOS BIBLIOGRAFICOS | V3
   Estiliza campos SI YA EXISTEN en el HTML de OMP.
   No genera citas, ISBN ni avisos legales artificiales.
   ============================================================ */
/* Panel bibliografico lateral: derechos, ISBN, fecha y como citar */
.page_catalog_entry .entry_details,
.page_catalog_entry .item,
.obj_monograph_full .entry_details { color:#283a48; }
.page_catalog_entry .entry_details .item,
.page_catalog_entry .entry_details > div,
.page_catalog_entry .item.copyright,
.page_catalog_entry .item.isbn,
.page_catalog_entry .item.citation,
.page_catalog_entry .item.how_to_cite,
.page_catalog_entry .item.publication_date,
.page_catalog_entry .item.license,
.obj_monograph_full .item.copyright,
.obj_monograph_full .item.isbn {
  border-bottom:1px solid #dce5eb;
  padding:18px 0;
  margin:0;
}
/* Encabezados secundarios, sin convertirlos en titulos gigantes */
.page_catalog_entry .entry_details h2,
.page_catalog_entry .entry_details h3,
.page_catalog_entry .item h2,
.page_catalog_entry .item h3,
.obj_monograph_full .entry_details h2,
.obj_monograph_full .entry_details h3 {
  font-size:1rem;
  font-weight:650;
  line-height:1.4;
  color:#526779;
  margin:0 0 9px;
}
/* DOI, enlaces bibliograficos y citas: no desbordar columnas */
.page_catalog_entry .citation,
.page_catalog_entry .how_to_cite,
.page_catalog_entry .isbn,
.page_catalog_entry .copyright,
.page_catalog_entry .license,
.page_catalog_entry .doi,
.obj_monograph_full .citation {
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.65;
}
.page_catalog_entry .citation a,
.page_catalog_entry .how_to_cite a,
.page_catalog_entry .isbn a,
.page_catalog_entry .doi a,
.obj_monograph_full .citation a {
  color:#075b87;
  text-decoration:underline;
  text-underline-offset:2px;
}
/* Selector de formatos de cita, cuando el modulo de citas esta habilitado */
.page_catalog_entry select,
.page_catalog_entry .citation_formats select,
.page_catalog_entry .citation_formats button {
  max-width:100%;
  min-height:38px;
  border:1px solid #cbd7df;
  border-radius:4px;
  background:#fff;
  color:#243746;
}
/* Las tarjetas del catalogo deben conservar legibilidad */
.obj_monograph_summary .authors,
.monograph_summary .authors {
  overflow-wrap:break-word;
  word-break:normal;
}
@media (max-width:767px) {
  .page_catalog_entry .entry_details .item,
  .page_catalog_entry .entry_details > div { padding:14px 0; }
}


/* CIEDES: ocultar Novedades del bloque de navegacion */
.pkp_block.block_browse nav.content li:has(> a[href*="/catalog/newReleases"]) {
  display: none !important;
}

/* CIEDES: contraste del menu superior de usuario */
.pkp_structure_head .pkp_navigation_user > li > a {
  color: #FFFFFF !important;
  background: #003B5C !important;
  border-radius: 4px;
  padding: 6px 12px;
}
.pkp_structure_head .pkp_navigation_user > li > a:hover,
.pkp_structure_head .pkp_navigation_user > li > a:focus {
  color: #FFFFFF !important;
  background: #075b87 !important;
}
