/* 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 */
  }
}

/* =====================================================
   EQUIPO EDITORIAL
   ===================================================== */

.editorial-board {
    max-width: 1150px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #243041;
}

/* =====================================================
   TITULOS DE SECCION
   ===================================================== */

.editorial-board h2,
.editorial-board .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0b3c5d;
    margin: 50px 0 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid #dbeafe;
}

/* =====================================================
   EDITORES PRINCIPALES
   ===================================================== */

.editor-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #0b3c5d;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.editor-card:hover {
    border-left-color: #0284c7;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

/* =====================================================
   TODO EL CONTENIDO EN 1.3rem
   ===================================================== */

.editor-card h3,
.role,
.affiliation,
.editor-card p,
.links a,
.member-links a,
.member-card h4,
.member-card p {
    font-size: 1.3rem;
    line-height: 1.8;
}

.editor-card h3,
.member-card h4 {
    margin: 0 0 10px;
    font-weight: 700;
    color: #0f172a;
}

.role {
    margin: 0;
    font-weight: 600;
    color: #0b3c5d;
}

.affiliation {
    margin: 6px 0 16px;
    color: #64748b;
}

.editor-card p,
.member-card p {
    margin: 0 0 14px;
    color: #334155;
}

/* =====================================================
   ENLACES ORCID Y CORREO
   ===================================================== */

.links,
.member-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0 18px;
}

.links a,
.member-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b3c5d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.links a:hover,
.member-links a:hover {
    color: #0284c7;
}

.links a::before,
.member-links a::before {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.links a[href*="orcid"]::before,
.member-links a[href*="orcid"]::before {
    background-image: url("https://revistascientificas.cuc.edu.co/public/site/images/aromero/orcid_24x24.png");
}

.links a[href^="mailto"]::before,
.member-links a[href^="mailto"]::before {
    background-image: url("https://revistascientificas.cuc.edu.co/public/site/images/aromero/email.png");
}

/* =====================================================
   COMITE EDITORIAL Y CIENTIFICO
   ===================================================== */

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.member-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: all 0.25s ease;
}

.member-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {

    .editorial-board {
        padding: 25px 15px;
    }

    .editorial-board h2,
    .editorial-board .section-title {
        font-size: 1.8rem;
    }

    .editor-card {
        padding: 22px;
    }

    .member-card {
        padding: 20px;
    }

    .committee-grid {
        grid-template-columns: 1fr;
    }

    .editor-card h3,
    .role,
    .affiliation,
    .editor-card p,
    .links a,
    .member-links a,
    .member-card h4,
    .member-card p {
        font-size: 1.15rem;
    }
}