/* ==========================================================================
   GRUPO EDITORIAL ACACFESA · OMP 3.3 · PORTADA Y CATÁLOGO UNIFICADOS (V3)
   ========================================================================== */

/* 0. ENCABEZADO PANORÁMICO COMPLETO + USUARIO EN ESQUINA SUPERIOR DERECHA */
.pkp_structure_head {
  position: relative !important;
  background-color: #F4F9FC !important;
  background-size: min(94%, 1260px) auto !important;
  background-position: center 34px !important;
  background-repeat: no-repeat !important;
  border-bottom: 1px solid #dce8f0 !important;
  padding: 34px 0 0 0 !important;
}

.pkp_head_wrapper {
  position: relative !important;
  max-width: 1340px !important;
  margin: 0 auto !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
}

/* Botón de Registrarse / Entrar / admin FIJO EN LA ESQUINA SUPERIOR DERECHA */
.pkp_navigation_user_wrapper {
  position: absolute !important;
  top: -28px !important;
  right: 22px !important;
  left: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9999 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.pkp_navigation_user {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: right !important;
}

.pkp_navigation_user > li {
  display: inline-block !important;
  float: none !important;
  margin: 0 !important;
  position: relative !important;
}

.pkp_navigation_user > li > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  color: #0B4F6C !important;
  border: 1.5px solid #0B4F6C !important;
  border-radius: 5px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(11, 79, 108, 0.12) !important;
  transition: background 0.18s ease, color 0.18s ease !important;
}

.pkp_navigation_user > li:last-child > a {
  background: #0B4F6C !important;
  color: #ffffff !important;
  border-color: #0B4F6C !important;
}

.pkp_navigation_user > li > a:hover {
  background: #0088B2 !important;
  color: #ffffff !important;
  border-color: #0088B2 !important;
}

.pkp_navigation_user ul {
  right: 0 !important;
  left: auto !important;
  top: 100% !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-top: 3px solid #0088B2 !important;
  border-radius: 6px !important;
  box-shadow: 0 12px 26px rgba(11, 79, 108, 0.18) !important;
  z-index: 10000 !important;
}

.pkp_navigation_user ul a {
  color: #0B4F6C !important;
  font-weight: 600 !important;
}

.pkp_navigation_user ul a:hover {
  background: #f0f9ff !important;
  color: #0088B2 !important;
}

/* Espacio reservado exacto para el banner panorámico (7.5:1) sin recortes */
.pkp_site_name_wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: clamp(112px, 12.6vw, 168px) !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Oculta visualmente el logo duplicado pero mantiene toda la zona clicable al inicio */
.pkp_site_name .is_img img {
  opacity: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.pkp_site_name,
.pkp_site_name > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  text-decoration: none !important;
}

/* Barra principal de navegación */
.pkp_navigation_primary_wrapper {
  background: linear-gradient(90deg, #0B4F6C 0%, #0088B2 100%) !important;
  border-radius: 6px !important;
  margin: 0 auto 12px !important;
  max-width: 1304px !important;
  box-shadow: 0 6px 16px rgba(11, 79, 108, 0.16) !important;
  position: relative !important;
  z-index: 50 !important;
}

.pkp_navigation_primary > li > a {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 11px 16px !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #bae6fd !important;
  border-bottom-color: #7dd3fc !important;
}

.pkp_navigation_primary ul {
  background: #ffffff !important;
  border-top: 3px solid #0088B2 !important;
  box-shadow: 0 12px 26px rgba(11, 79, 108, 0.16) !important;
}

.pkp_navigation_primary ul a {
  color: #0B4F6C !important;
  font-weight: 600;
}

.pkp_navigation_primary ul a:hover {
  background: #f0f9ff !important;
  color: #0088B2 !important;
}

.pkp_navigation_search_wrapper a {
  color: #ffffff !important;
  font-weight: 700 !important;
}

@media (max-width: 960px) {
  .pkp_structure_head {
    background-size: 98% auto !important;
    background-position: center 34px !important;
  }
  .pkp_site_name_wrapper {
    height: clamp(82px, 13vw, 125px) !important;
  }
}

/* 1. PORTADA (ESTRUCTURA GENERAL Y BARRA LATERAL EN 3 COLUMNAS) */
body.pkp_page_index.pkp_op_index .pkp_structure_content {
  width: min(100%, 1340px);
  max-width: 1340px;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-sizing: border-box;
}
body.pkp_page_index.pkp_op_index .pkp_structure_main {
  float: none;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body.pkp_page_index.pkp_op_index .pkp_structure_main::before,
body.pkp_page_index.pkp_op_index .pkp_structure_main::after {
  display: none;
}
body.pkp_page_index.pkp_op_index .pkp_structure_sidebar {
  float: none;
  width: 100%;
  clear: both;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 28px 22px 42px;
  margin: 0;
  border-top: 1px solid #e2e8f0;
  box-sizing: border-box;
}
body.pkp_page_index.pkp_op_index .pkp_structure_sidebar .pkp_block {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(11, 79, 108, 0.06);
}
body.pkp_page_index.pkp_op_index .pkp_structure_sidebar .pkp_block .title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-size: 17px;
  color: #0B4F6C;
  font-weight: 800;
}
body.pkp_page_index.pkp_op_index .pkp_structure_sidebar .pkp_block .title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  border-radius: 99px;
  background: #0088B2;
}
body.pkp_page_index.pkp_op_index .pkp_structure_sidebar img {
  max-width: 190px !important;
  max-height: 90px !important;
  object-fit: contain;
}

.ac-omp {
  --ac-navy: #0B4F6C;
  --ac-teal: #0088B2;
  --ac-cyan: #00A8E8;
  --ac-ink: #1e293b;
  color: var(--ac-ink);
  font-family: "Noto Sans", Arial, sans-serif;
}
.ac-omp *, .ac-omp *::before, .ac-omp *::after { box-sizing: border-box; }
.ac-omp a { text-decoration: none; }

/* Hero Principal */
.ac-hero {
  background: linear-gradient(115deg, #07384d 0%, #0B4F6C 52%, #0088B2 100%);
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: center;
  padding: 52px clamp(22px, 5vw, 68px) 70px;
}
.ac-eyebrow, .ac-overline {
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #7dd3fc;
  text-transform: uppercase;
}
.ac-hero h2 {
  color: #ffffff;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.16;
  margin: 16px 0 18px;
  font-weight: 800;
}
.ac-hero h2 span { color: #bae6fd; }
.ac-hero__copy > p {
  text-align: left !important;
  max-width: 610px;
  color: #e0f2fe;
  line-height: 1.8;
  font-size: 15px;
  margin: 0 0 24px;
}
.ac-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 18px;
  transition: transform 0.18s ease;
}
.ac-btn:hover { transform: translateY(-2px); }
.ac-btn--primary { background: #ffffff; color: #0B4F6C; }
.ac-btn--primary:hover { background: #f0f9ff; }
.ac-btn--outline { border: 1px solid #7dd3fc; color: #ffffff; }
.ac-btn--outline:hover { background: rgba(255, 255, 255, 0.12); }
.ac-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #bae6fd;
  font-size: 11px;
  margin-top: 30px;
}

/* Tarjeta lateral Hero */
.ac-feature-box {
  border-top: 5px solid #00A8E8;
  background: #ffffff;
  color: #0B4F6C;
  border-radius: 6px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  padding: 26px;
}
.ac-feature-box__top { font-size: 11px; letter-spacing: 1.3px; font-weight: 800; color: #0088B2; }
.ac-feature-box__label { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 12px 0 8px; color: #0B4F6C; }
.ac-feature-box__desc { color: #475569; font-size: 13px; line-height: 1.55; }
.ac-feature-box__bar { height: 4px; width: 68px; background: #0088B2; border-radius: 10px; margin: 20px 0 22px; }
.ac-feature-box__link {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  color: #0B4F6C;
  font-weight: 800;
  font-size: 13px;
}

/* 4 Tarjetas rápidas */
.ac-quick {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: -24px 24px 52px;
}
.ac-quick__card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-bottom: 3px solid #0088B2;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(11, 79, 108, 0.1);
  padding: 20px 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ac-quick__card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(11, 79, 108, 0.16); }
.ac-quick__card--highlight {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border-color: #7dd3fc;
  border-bottom: 3px solid #0B4F6C;
}
.ac-quick__icon {
  background: #e0f2fe;
  color: #0088B2;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 20px;
}
.ac-quick__card--highlight .ac-quick__icon { background: #0B4F6C; color: #ffffff; }
.ac-quick__text { display: flex; flex-direction: column; gap: 4px; }
.ac-quick__text small { font-size: 9px; letter-spacing: 0.9px; color: #0088B2; font-weight: 800; }
.ac-quick__text strong { color: #0B4F6C; font-size: 14px; line-height: 1.25; }
.ac-quick__text > span { font-size: 11.5px; color: #64748b; line-height: 1.4; }

/* Encabezados de sección */
.ac-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}
.ac-section-head .ac-overline { color: #0088B2; }
.ac-section-head h2 {
  display: inline-block;
  background: #0088B2;
  color: #ffffff;
  font-size: 20px;
  padding: 9px 18px;
  border-radius: 4px;
  margin: 8px 0;
  font-weight: 800;
}
.ac-section-head p { color: #64748b; font-size: 13px; margin: 4px 0 0; }
.ac-text-link { color: #0B4F6C; font-weight: 800; font-size: 13px; border-bottom: 2px solid #0088B2; padding-bottom: 3px; }

/* 2. CARRUSEL 3D (4 LIBROS VISIBLES CON PORTADA COMPLETA + ISBN) */
.ac-showcase { padding: 0 clamp(16px, 4vw, 44px) 52px; }
.ac-carousel-wrapper {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #eef6fa 100%);
  border: 1px solid #dce8f0;
  border-radius: 10px;
  padding: 36px 52px 42px;
  overflow: hidden;
}
.ac-carousel-stage {
  position: relative;
  height: 455px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1300px;
}
.ac-carousel-stage .cmp_monographs_list {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ac-carousel-stage .cmp_monographs_list > h2,
.ac-carousel-stage .cmp_monographs_list > h3 { display: none !important; }

.ac-carousel-stage .cmp_monographs_list .obj_monograph_summary {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 240px !important;
  max-width: 240px !important;
  float: none !important;
  background: #ffffff;
  border: 1px solid #dbe7f0;
  border-radius: 8px;
  padding: 12px 12px 14px;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-shadow: 0 12px 26px rgba(11, 79, 108, 0.14);
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.45s ease, filter 0.45s ease;
  cursor: pointer;
}
.ac-carousel-stage .cmp_monographs_list .obj_monograph_summary.is-pos-left {
  transform: translate(-182%, -48%) scale(0.90) rotateY(10deg);
  z-index: 6;
  opacity: 0.90;
  filter: brightness(0.94);
}
.ac-carousel-stage .cmp_monographs_list .obj_monograph_summary.is-pos-center {
  transform: translate(-72%, -51%) scale(1.12);
  z-index: 12;
  opacity: 1;
  filter: none;
  border: 2px solid #0088B2;
  box-shadow: 0 24px 48px rgba(11, 79, 108, 0.34);
  cursor: default;
}
.ac-carousel-stage .cmp_monographs_list .obj_monograph_summary.is-pos-right-1 {
  transform: translate(42%, -48%) scale(0.92) rotateY(-10deg);
  z-index: 8;
  opacity: 0.92;
  filter: brightness(0.95);
}
.ac-carousel-stage .cmp_monographs_list .obj_monograph_summary.is-pos-right-2 {
  transform: translate(144%, -46%) scale(0.82) rotateY(-16deg);
  z-index: 4;
  opacity: 0.78;
  filter: brightness(0.88);
}
.ac-carousel-stage .cmp_monographs_list .obj_monograph_summary.is-pos-hidden {
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
.ac-carousel-stage .obj_monograph_summary .cover {
  width: 100% !important;
  height: 295px !important;
  margin: 0 0 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc;
  border-radius: 4px;
}
.ac-carousel-stage .obj_monograph_summary .cover img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 295px !important;
  object-fit: contain !important;
  border-radius: 3px;
}
.ac-carousel-stage .obj_monograph_summary .title {
  font-size: 12px !important;
  line-height: 1.32 !important;
  font-weight: 800;
  color: #0B4F6C;
  margin: 2px 0 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-carousel-stage .obj_monograph_summary .title a { color: #0B4F6C; }
.ac-carousel-stage .obj_monograph_summary .authors,
.ac-carousel-stage .obj_monograph_summary .date { display: none !important; }

.ac-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0B4F6C;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(11, 79, 108, 0.18);
}
.ac-carousel-nav:hover { background: #0088B2; color: #ffffff; border-color: #0088B2; }
.ac-carousel-nav--prev { left: 12px; }
.ac-carousel-nav--next { right: 12px; }
.ac-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.ac-carousel-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: #cbd5e1; cursor: pointer; padding: 0; }
.ac-carousel-dots button.active { width: 26px; background: #0088B2; }

/* 3. CUADRÍCULA DE OBRAS DESTACADAS (4 COLUMNAS CON PORTADA COMPLETA) */
.ac-featured-grid-section { padding: 10px clamp(16px, 4vw, 44px) 60px; }
.ac-featured-grid-wrap .cmp_monographs_list > h2,
.ac-featured-grid-wrap .cmp_monographs_list > h3 { display: none !important; }
.ac-featured-grid-wrap .cmp_monographs_list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
}
.ac-featured-grid-wrap .obj_monograph_summary {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #0088B2;
  border-radius: 8px;
  padding: 16px 14px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-shadow: 0 8px 20px rgba(11, 79, 108, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ac-featured-grid-wrap .obj_monograph_summary:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 79, 108, 0.13);
}
.ac-featured-grid-wrap .obj_monograph_summary .cover {
  width: 100% !important;
  height: 315px !important;
  max-width: none !important;
  float: none !important;
  margin: 0 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc;
  border-radius: 6px;
}
.ac-featured-grid-wrap .obj_monograph_summary .cover a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
.ac-featured-grid-wrap .obj_monograph_summary .cover img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 315px !important;
  object-fit: contain !important;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}
.ac-featured-grid-wrap .obj_monograph_summary .title {
  font-size: 14px !important;
  line-height: 1.38 !important;
  font-weight: 800;
  color: #0B4F6C;
  margin: 6px 0 !important;
  width: 100%;
}
.ac-featured-grid-wrap .obj_monograph_summary .title a { color: #0B4F6C !important; }
.ac-featured-grid-wrap .obj_monograph_summary .authors { font-size: 12px; color: #475569; line-height: 1.45; margin-bottom: 6px; width: 100%; }
.ac-featured-grid-wrap .obj_monograph_summary .date { font-size: 11.5px; color: #64748b; width: 100%; }

/* Etiqueta ISBN */
.ac-book-isbn {
  display: inline-block;
  width: 100%;
  background: #e0f2fe;
  color: #0B4F6C;
  border: 1px solid #bae6fd;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 4px;
  margin: 4px 0 8px;
}
.is-pos-center .ac-book-isbn {
  background: #0088B2;
  color: #ffffff;
  border-color: #0088B2;
}

/* 4. PÁGINAS INTERIORES Y CATÁLOGO UNIFICADO (CON COLECCIONES VISIBLES AQUÍ) */
body:not(.pkp_page_index.pkp_op_index) .pkp_structure_content {
  width: min(100%, 1304px);
  max-width: 1304px;
  background: #ffffff;
}
body:not(.pkp_page_index.pkp_op_index) .pkp_structure_main .page h1,
body:not(.pkp_page_index.pkp_op_index) .page_catalog h1,
body:not(.pkp_page_index.pkp_op_index) .obj_monograph_full > h1 {
  color: #0B4F6C !important;
  font-weight: 800 !important;
  font-size: 26px !important;
  line-height: 1.3 !important;
  border-bottom: 3px solid #0088B2 !important;
  padding-bottom: 12px !important;
  margin-bottom: 20px !important;
}

.page_catalog .series_list,
.page_catalog .category_list,
.page_catalog .monograph_count {
  margin-bottom: 14px !important;
}
.page_catalog .series_list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0088B2;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #0B4F6C;
}
.page_catalog .series_list a {
  display: inline-block;
  background: #ffffff;
  color: #0B4F6C !important;
  border: 1px solid #7dd3fc;
  border-radius: 4px;
  padding: 4px 10px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.18s ease, color 0.18s ease;
}
.page_catalog .series_list a:hover {
  background: #0088B2 !important;
  color: #ffffff !important;
  border-color: #0088B2 !important;
}

body:not(.pkp_page_index.pkp_op_index) .page_catalog .cmp_monographs_list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-top: 2px solid #0088B2 !important;
  margin-top: 14px !important;
}
body:not(.pkp_page_index.pkp_op_index) .page_catalog .obj_monograph_summary {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 20px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
body:not(.pkp_page_index.pkp_op_index) .page_catalog .obj_monograph_summary:nth-child(3n) {
  border-right: 0 !important;
}
body:not(.pkp_page_index.pkp_op_index) .page_catalog .obj_monograph_summary .cover {
  width: 100% !important;
  height: 265px !important;
  margin: 0 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
}
body:not(.pkp_page_index.pkp_op_index) .page_catalog .obj_monograph_summary .cover img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 265px !important;
  object-fit: contain !important;
}
body:not(.pkp_page_index.pkp_op_index) .page_catalog .obj_monograph_summary .title {
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #0B4F6C !important;
}
body:not(.pkp_page_index.pkp_op_index) .page_catalog .obj_monograph_summary .title a {
  color: #0B4F6C !important;
}
body:not(.pkp_page_index.pkp_op_index) .page_catalog .obj_monograph_summary .authors {
  font-size: 12px !important;
  color: #475569 !important;
  margin-top: 6px !important;
}

.obj_monograph_full .main_entry .item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0088B2;
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.obj_monograph_full .main_entry .item h2,
.obj_monograph_full .details .item h2 {
  color: #0B4F6C !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  margin-top: 0;
}
.obj_monograph_full a.cmp_button_wire,
.obj_monograph_full .files a {
  background: #0B4F6C !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 5px;
  padding: 9px 16px;
  font-weight: 700;
  display: inline-block;
}
.obj_monograph_full a.cmp_button_wire:hover,
.obj_monograph_full .files a:hover {
  background: #0088B2 !important;
}

body:not(.pkp_page_index.pkp_op_index) .pkp_structure_sidebar .pkp_block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(11, 79, 108, 0.05);
}
body:not(.pkp_page_index.pkp_op_index) .pkp_structure_sidebar .pkp_block .title {
  color: #0B4F6C !important;
  font-weight: 800 !important;
  border-bottom: 2px solid #0088B2;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
body:not(.pkp_page_index.pkp_op_index) .pkp_structure_sidebar img {
  max-width: 175px !important;
  max-height: 85px !important;
  object-fit: contain;
}

/* Sección Identidad y Pie de página */
.ac-about {
  background: #0B4F6C;
  color: #ffffff;
  padding: 36px clamp(20px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}
.ac-about h2 { color: #ffffff; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin: 10px 0 14px; }
.ac-accent-rule { width: 65px; height: 4px; background: #00A8E8; }
.ac-about__body > p { color: #e0f2fe; font-size: 15px; line-height: 1.7; margin: 0; }

.pkp_structure_footer_wrapper {
  background-color: #0B4F6C !important;
  border-top: 3px solid #0088B2 !important;
  color: #e0f2fe !important;
}
.pkp_footer_content, .pkp_footer_content p, .pkp_footer_content li { color: #e0f2fe !important; }
.pkp_footer_content a { color: #7dd3fc !important; }

/* Adaptación Responsiva */
@media (max-width: 1120px) {
  .ac-quick, .ac-featured-grid-wrap .cmp_monographs_list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar,
  .ac-quick,
  .ac-featured-grid-wrap .cmp_monographs_list,
  body:not(.pkp_page_index.pkp_op_index) .page_catalog .cmp_monographs_list {
    grid-template-columns: 1fr !important;
  }
  .ac-hero, .ac-about { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BOTONES FLOTANTES SEPARADOS: REDES SOCIALES (IZQUIERDA) Y WHATSAPP (DERECHA)
   ========================================================================== */
.ac-social-float-left {
  position: fixed !important;
  bottom: 22px !important;
  left: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
  z-index: 99999 !important;
}

.ac-whatsapp-float-right {
  position: fixed !important;
  bottom: 22px !important;
  right: 22px !important;
  z-index: 99999 !important;
}

.ac-social-btn {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
  border: 2px solid #ffffff !important;
  text-decoration: none !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 26px 26px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  overflow: hidden !important;
}

.ac-social-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
}

/* WhatsApp (Derecha) */
.ac-social-btn--whatsapp {
  width: 56px !important;
  height: 56px !important;
  background-color: #25D366 !important;
  background-size: 30px 30px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23ffffff'%3E%3Cpath d='M16.004 3.2c-7.06 0-12.8 5.74-12.8 12.8 0 2.256.59 4.458 1.71 6.398L3.1 29.01l6.794-1.782a12.74 12.74 0 0 0 6.11 1.558h.006c7.058 0 12.798-5.74 12.798-12.8 0-3.42-1.332-6.636-3.75-9.054A12.716 12.716 0 0 0 16.004 3.2zm0 23.422h-.004a10.61 10.61 0 0 1-5.408-1.48l-.388-.23-4.032 1.058 1.076-3.93-.252-.402a10.587 10.587 0 0 1-1.624-5.638c0-5.862 4.77-10.632 10.636-10.632 2.84 0 5.51 1.106 7.516 3.114a10.563 10.563 0 0 1 3.114 7.522c0 5.862-4.772 10.618-10.634 10.618zm5.834-7.954c-.32-.16-1.892-.934-2.186-1.04-.292-.106-.506-.16-.72.16-.212.32-.824 1.04-1.01 1.254-.186.212-.372.24-.692.08-.32-.16-1.35-.498-2.572-1.588-.95-.848-1.592-1.894-1.778-2.214-.186-.32-.02-.492.14-.652.144-.144.32-.372.48-.558.16-.186.212-.32.32-.532.106-.214.054-.4-.026-.56-.08-.16-.72-1.734-.986-2.374-.26-.624-.524-.54-.72-.55l-.614-.01c-.212 0-.558.08-.85.4-.292.32-1.118 1.092-1.118 2.664s1.144 3.09 1.304 3.304c.16.212 2.252 3.438 5.456 4.822.762.33 1.358.526 1.822.674.766.244 1.462.21 2.012.128.614-.092 1.892-.774 2.158-1.52.266-.746.266-1.386.186-1.52-.08-.132-.292-.212-.612-.372z'/%3E%3C/svg%3E") !important;
}

/* Facebook (Izquierda) */
.ac-social-btn--facebook {
  background-color: #1877F2 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z'/%3E%3C/svg%3E") !important;
}

/* Instagram (Izquierda) */
.ac-social-btn--instagram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E"), radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

/* LinkedIn (Izquierda) */
.ac-social-btn--linkedin {
  background-color: #0A66C2 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.28 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.75M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z'/%3E%3C/svg%3E") !important;
}

.ac-social-btn svg {
  display: none !important;
}

@media (max-width: 760px) {
  .ac-social-float-left {
    bottom: 14px !important;
    left: 14px !important;
    gap: 8px !important;
  }
  .ac-whatsapp-float-right {
    bottom: 14px !important;
    right: 14px !important;
  }
  .ac-social-btn {
    width: 44px !important;
    height: 44px !important;
    background-size: 22px 22px !important;
  }
  .ac-social-btn--whatsapp {
    width: 50px !important;
    height: 50px !important;
    background-size: 26px 26px !important;
  }
}
