/* 1. Bloqueo de movimiento lateral - EXCLUYENDO EL VISOR DE PDF */
/* La clase .obj_article_details suele estar en la página del artículo, 
   pero el visor de PDF suele tener una clase propia en el body como .page_pdf */

body:not(.page_pdf) {
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100%;
    /* Quitamos position: relative; que es el principal sospechoso */
}

html {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 991px) {
    /* 2. El menú: Alto, con scroll interno y bloqueo de ancho */
    #primaryMenuWrp {
        background-color: #ffffff !important;
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100vw !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: 0; 
        overflow-y: auto !important; 
        overflow-x: hidden !important;
        transition: max-height 0.3s ease-out;
    }

    #menuOnTop:checked ~ #headerNavigationContainer #primaryMenuWrp {
        max-height: 75vh !important;
        padding: 10px 0 !important;
    }

    /* 3. Salto de línea en textos largos */
    #main-navigation {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #main-navigation li {
        width: 100% !important;
        display: block !important;
    }

    #main-navigation li a {
        display: block !important;
        width: 100% !important;
        padding: 15px 20px !important;
        color: #b01c2e !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.3 !important;
        box-sizing: border-box !important;
    }

    /* 4. Evitar que el contenedor general se estire (Solo si NO es el visor) */
    .pkp_structure_page:not(.page_pdf) {
        overflow: hidden !important;
        width: 100% !important;
    }
}


/*GRID COMITE */
.idx-wrapper {
  max-width: 1000px;
  margin: auto;
  font-family: Arial, sans-serif;
}

.idx-title {
  text-align: center;
  margin: 35px 0 15px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

.idx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}

.idx-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 10px;
  background: #f9f9f9;
  transition: all 0.2s ease;
  border: 1px solid #eee;
}

.idx-card:hover {
  background: #f1f5f9;
  transform: translateY(-3px);
}

.idx-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.idx-card a {
  text-decoration: none;
  color: #1a73e8;
  font-weight: 500;
}

.idx-card small {
  display: block;
  color: #666;
  font-size: 13px;
}
/*GRID COMITE */



.containerFooter {
  width: 100%;
  padding: 20px 10px;
  text-align: center;
  box-sizing: border-box;
}

/* 🔹 FLEXBOX LOGOS */
.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.logo-item {
  flex: 1 1 160px; /* ajustado para 5 logos */
  max-width: 180px;
}

.logo-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 🔹 TEXTO */
.footer-info {
  max-width: 800px;
  margin: 0 auto;
  color: black;
  font-size: 14px;
  line-height: 1.5;
}

.footer-info p {
  margin: 6px 0;
}

/* 🔹 RESPONSIVE */
@media (max-width: 768px) {
  .logo-item {
    flex: 1 1 45%; /* 2 por fila */
  }
}

@media (max-width: 480px) {
  .logo-item {
    flex: 1 1 100%; /* 1 por fila */
  }
}