
/* ---------------------------------------------------------
   UNIA Fondo Editorial – OMP Custom Press Style Sheet (v4)
   Fix: Footer icons and layout; keep card & menu polish.
   - Imports Bootstrap Icons (for <i class="bi ...">) and FA6 (optional).
   - Normalizes footer spacing, colors, and removes stray borders.
   - Keeps v3: framed covers, strong shadows, tidy sidebar.
----------------------------------------------------------*/

/* === Icon libraries (safe CDN) === */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
  --primary:#0b6b3b;
  --primary-2:#168355;
  --accent:#ffd166;
  --bg:#f8fafc;
  --text:#1f2937;
  --soft-shadow: 0 10px 24px rgba(0,0,0,.10), 0 6px 10px rgba(0,0,0,.06);
  --soft-shadow-lg: 0 16px 28px rgba(0,0,0,.14), 0 10px 16px rgba(0,0,0,.10);
  font-family: poppins;
}

/* ====== Header / Primary menu (sticky gradient) ====== */

/*.pkp_head_wrapper {
        padding-top: 27.286rem;
    } */

/* .pkp_head_wrapper .pkp_navigation_primary{
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  border: none;
} */
.pkp_navigation_primary .pkp_nav_list > li > a{
  color:#fff; font-weight:600; border-radius:9999px;
  padding:10px 14px; transition:background .2s ease, transform .2s ease;
}
.pkp_navigation_primary .pkp_nav_list > li > a:hover,
.pkp_navigation_primary .pkp_nav_list > li > a:focus{
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
  text-decoration:none;
}
.pkp_navigation_primary .pkp_site_nav_wrapper a,
.pkp_navigation_primary .pkp_search .search_prompt{ color:#fff; }

/* ====== Global ====== */
body{ background:var(--bg); color:var(--text); }
.pkp_structure_main{ max-width:1200px; }
a{ color:var(--primary-2); } a:hover{ color:var(--primary); }

/* ====== Right sidebar refined ====== */
.pkp_structure_sidebar .pkp_block{
  background:#fff; border-radius:10px; overflow:hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  border:1px solid #eef2f7; padding:0; margin-bottom:14px;
}
.pkp_structure_sidebar .pkp_block .title{
  font-weight:700; padding:12px 16px;
  background:#f5faf7; border-bottom:1px solid #e7eef0;
}
.pkp_structure_sidebar .pkp_block .content{ padding:14px 16px; }
.pkp_structure_sidebar .pkp_block img{ max-width:100%; height:auto; }

/* ====== Catalog – framed covers with strong shadow ====== */
.cmp_monographs .obj_monograph_summary{
  display:grid; grid-template-columns:176px 1fr;
  gap:1.25rem; align-items:start;
}
.obj_monograph_summary .cover{
  width:176px; border-radius:18px; background:#fff; padding:12px;
  box-shadow: 0 18px 38px rgba(17,24,39,.22), 0 10px 18px rgba(17,24,39,.14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.obj_monograph_summary .cover:hover{
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(17,24,39,.28), 0 14px 22px rgba(17,24,39,.18);
}
.obj_monograph_summary .cover img{ display:block; width:100%; height:auto; border-radius:12px; }
.obj_monograph_summary .title a{ font-weight:700; line-height:1.25; }

/* ====== Detail page – same frame & padding ====== */
.pkp_page_book .cover,
.pkp_page_monograph .cover,
.page_book .cover{
  width:456px; max-width:100%; border-radius:20px; background:#fff; padding:14px;
  box-shadow: 0 22px 48px rgba(17,24,39,.24), 0 12px 22px rgba(17,24,39,.16);
}
.pkp_page_book .cover img,
.pkp_page_monograph .cover img,
.page_book .cover img{ width:100%; height:auto; border-radius:14px; display:block; }

/* Metadata panels as cards */
.pkp_page_book .pkp_content_panel .item,
.pkp_page_monograph .pkp_content_panel .item{
  background:#fff; border-radius:14px; border:1px solid #eef2f7;
  box-shadow: var(--soft-shadow); padding:1rem; margin-bottom:1rem;
}

/* ====== Footer – FIXED ====== */
.pkp_structure_footer {
  /*background: linear-gradient(180deg, var(--primary), #0a4e2b);*/
   background: 
    linear-gradient(rgba(0, 80, 40, 0.85), rgba(0, 80, 40, 0.9)),
    url("/imagenes/footer1.png") center center / cover no-repeat;
  color: #e9fff5;
  padding: 40px 0 28px;
  margin-top: 48px;
  border-top: 0 !important;
  width: 100%;
}

.pkp_structure_footer a {
  color: #fff;
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pkp_structure_footer a:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Logo */
.pkp_structure_footer img {
  max-width: 180px;
  height: auto;
}

/* Social icons en fila */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Espaciado interno */
.footer-bottom .col-md-4 p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Derechos reservados */
.footer-bottom small {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* === CORRECCIÓN FOOTER UNIA === */
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

/* Fuerza las tres columnas en escritorio */
.footer-bottom .col-md-4 {
  flex: 1 1 30%;
  min-width: 260px;
}

/* Centrado sólo en pantallas pequeñas */
@media (max-width: 768px) {
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* === FOOTER GRID === */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 columnas iguales */
  align-items: start;
  text-align: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Columna izquierda (logo) */
.logo-col {
  align-items: flex-start;
  text-align: left;
}

/* Columna central (información) */
.info-col {
  text-align: center;
  align-items: center;
}

/* Columna derecha (redes sociales) */
.social-col {
  align-items: flex-end;
  text-align: right;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Derechos reservados centrado */
.footer-copy {
  margin-top: 30px;
  text-align: center;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* ==== FOOTER UNIVERSITARIO 4 COLUMNAS ==== */
.footer-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* Columna genérica */
.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Logo y redes sociales */
.logo-social-col {
  align-items: flex-start;
}

.footer-social-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-horizontal a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: all 0.3s ease;
}

.footer-social-horizontal a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Títulos de secciones */
.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
}

/* Listas de enlaces */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 6px 0;
}

.footer-col ul li a {
  color: #e9fff5;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Contacto */
.contact-col p {
  margin: 6px 0;
  color: #e9fff5;
}

/* Derechos reservados */
.footer-copy {
  margin-top: 40px;
  text-align: center;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
  .footer-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }
  .logo-social-col, .contact-col {
    align-items: center;
  }
}

@media (max-width: 576px) {
  .footer-grid-4 {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social-horizontal {
    justify-content: center;
  }
}


/* ===== HEADER CON IMAGEN DE FONDO Y MENÚ TRANSPARENTE UNIFICADO ===== */

/* Imagen de fondo principal */
.pkp_structure_head {
  position: relative;
  width: 100%;
  height: 380px;
  background:
    linear-gradient(rgba(0, 50, 20, 0.35), rgba(0, 50, 20, 0.55)),
    url("/imagenes/Portada3.png") center 25% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

/* Unificación de las dos barras (superior e inferior) */
.pkp_site_nav_menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.1) !important; /* transparencia uniforme */
  backdrop-filter: blur(6px);
  border: none;
  box-shadow: none;
  z-index: 9999;
  padding: 10px 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.pkp_navigation_search_wrapper a {
    margin: -0.643rem 8.5em 0;
    padding: 0.357rem 2.5em calc(0.714rem - 2px);
    border-bottom: 2px solid transparent;
    color: #fff;
    text-decoration: none;
}

/* Efecto al hacer scroll (verde institucional sólido) */
body.scrolled .pkp_navigation_primary_row,
body.scrolled .pkp_site_nav_menu {
  background: rgba(0, 80, 40, 0.95) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}