@import url('https://fonts.googleapis.com/css2?family=Alegreya:wght@400;700&display=swap');

/* --------------------------- */
/* Fondo y estructura general  */
/* --------------------------- */

body {
    background-color: #ededed !important;
    font-family: system-ui, sans-serif;
    text-align: justify;
}

.pkp_structure_main {
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.pkp_structure_main::before,
.pkp_structure_main::after {
    /* display: none !important; */
    /* content: none !important; */
    background: none !important;
}

/* --------------------------- */
/* Tipografía                  */
/* --------------------------- */

h1,
h2,
h3,
h4 {
    color: #000;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: 'Alegreya', serif;
    background-color: transparent;
}

p,
.pkp_block_summary,
.obj_issue_summary p {
    color: #222;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: 'Alegreya', serif;
}

/* --------------------------- */
/* Artículos estilo "tarjeta" */
/* --------------------------- */

.obj_article_summary {
    background: #ededed !important;
    border-left: 5px solid #3F853D;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: 'Alegreya', serif;
}

.obj_article_summary:hover {
    background: #e0e0e0 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.obj_article_summary .title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #295527;
    text-decoration: none;
}

.obj_article_summary .authors {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-style: normal;
}

/* Botón PDF personalizado */
.obj_article_summary .galley-link,
.obj_article_summary a[href*="viewFile"] {
    background-color: #3F853D !important;
    color: #fff !important;
    padding: 0.4rem 1rem;
    text-decoration: none !important;
    display: inline-block;
    font-weight: bold;
    border-radius: 3px;
    margin-top: 0.5rem;
    border: none;
    transition: background-color 0.3s ease;
}

.obj_article_summary .galley-link:hover,
.obj_article_summary a[href*="viewFile"]:hover {
    background-color: #444 !important;
    color: #fff !important;
}

/* Botón de galera (PDF, HTML, etc.) */
.obj_galley_link.pdf,
.article-3 .obj_galley_link {
    background-color: #3F853D !important;
    color: #fff !important;
    padding: 0.4rem 1rem;
    text-decoration: none !important;
    display: inline-block;
    font-weight: bold;
    border-radius: 3px;
    margin-top: 0.5rem;
    border: none;
    transition: background-color 0.3s ease;
}

/* Hover en botón PDF */
.obj_galley_link.pdf:hover,
.article-3 .obj_galley_link:hover {
    background-color: #444 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.obj_article_summary .title a,
.obj_article_summary .title a:visited {
    color: #3F853D !important;
    text-decoration: none !important;
    font-weight: bold;
    font-family: 'Alegreya', serif;
}

.obj_article_summary .title a:hover {
    color: #3F853D !important;
    text-decoration: none !important;
}

.section h2 {
    background-color: #ededed !important;
    color: #000 !important;
    font-family: 'Alegreya', serif;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 1rem;
    font-size: 1.6rem;
}

.section h3 {
    background-color: transparent !important;
    color: #000 !important;
    font-family: 'Alegreya', serif;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}



/* --------------------------- */
/* Barra lateral (sidebar)     */
/* --------------------------- */

.pkp_structure_sidebar {
    background-color: #ededed !important;
    padding: 1rem;
    margin-bottom: 2rem;
    font-family: 'Alegreya', serif;
}

.pkp_structure_sidebar .obj_issue_summary,
.pkp_structure_sidebar .obj_announcement_summary,
.pkp_structure_sidebar table {
    background-color: #ededed !important;
    border: 1px solid #999 !important;
    margin: 1rem 0;
}

.pkp_structure_sidebar table td,
.pkp_structure_sidebar table th {
    border-color: #999 !important;
    padding: 0.5rem;
}

.pkp_structure_sidebar table th {
    background-color: #ededed;
    color: #000;
    font-weight: bold;
}

.pkp_structure_sidebar .obj_issue_summary {
    padding: 1rem;
    border-radius: 4px;
}

/* --------------------------- */
/* Secciones y encabezados     */
/* --------------------------- */

.pkp_structure_main>section,
.obj_issue_summary {
    background: #ededed !important;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #aaa;
}


#articlesBySimilarityList h3 a {
    color: #000 !important;
    text-decoration: none !important;
    background-color: transparent !important;
    font-weight: bold;
    font-family: 'Alegreya', serif;
    font-size: 1.4rem;
}

.cmp_breadcrumbs ol li a {
    color: #000;
    text-decoration: none;
}

.cmp_breadcrumbs ol li:nth-child(3) a {
    text-decoration: underline;
    color: #3F853D;
}


.cmp_notification {
    border: 0.5px solid #3f853da5;
    border-radius: 0px 10px 10px 0px;
    border-left: #3F853D solid 5px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cmp_notification a {
    color: #000;
}

.cmp_notification:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}


.issues_archive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    list-style: none;
    margin: 0;
}

.obj_issue_summary {
    background-color: #ffffff;
    border: 0.5px solid #aaa;
    border-radius: 0px 10px 10px 0px;
    border-left: #3F853D solid 5px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.obj_issue_summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.obj_issue_summary h2 {
    font-size: 18px;
    margin: 0;
}

.obj_issue_summary .title {
    color: #3F853D;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.obj_issue_summary .title:hover {
    color: #285a27;
    text-decoration: underline;
}

.obj_issue_summary .description {
    margin-top: 8px;
    color: #4b5563;
    font-size: 14px;
}


/* --------------------------- */
/* Separadores y decoraciones  */
/* --------------------------- */

hr {
    border: none;
    border-top: 1px solid #fffcfc;
    margin: 2rem 0;
}


/* ---------------------------------*/
/* Estilo base del menú desplegable */
/* ---------------------------------*/


/* Estilos base para ambos estados */
.dropdown-menu,
.dropdown-menu.show {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    background-color: #05260C !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0.5rem;
    min-width: 10rem;
    box-shadow: none !important;
}

/* Cuando el menú está visible (ambos estados) */
li.show .dropdown-menu,
li.show .dropdown-menu.show,
.dropdown:hover .dropdown-menu {
    display: block !important;
}

/* Estilos para los ítems del menú - unificados */
.dropdown-menu li,
.dropdown-menu.show li {
    padding: 0;
    color: white !important;
    cursor: pointer;
    transition: background-color 0.2s;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.dropdown-menu li:last-child,
.dropdown-menu.show li:last-child {
    border-bottom: none;
}

/* Estilos para los enlaces - unificados */
.dropdown-menu li a,
.dropdown-menu.show li a {
    color: white !important;
    background-color: #05260C !important;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover en <li> – sin border-left */
.dropdown-menu li:hover,
.dropdown-menu.show li:hover {
    background-color: transparent !important;
    /* evita conflictos */
}

/* Hover en <a> – aquí va el border-left */
.dropdown-menu li a:hover,
.dropdown-menu.show li a:hover {
    background-color: #031a08 !important;
    border-left: 4px solid white !important;
    color: white !important;
}


.dropdown-menu li a:hover,
.dropdown-menu li a:focus,
.dropdown-menu li a:active,
.dropdown-menu.show li a:hover,
.dropdown-menu.show li a:focus,
.dropdown-menu.show li a:active,
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    background-color: #031a08 !important;
    border-left: 4px solid white !important;
    color: white !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ---------------------------------*/
/* Estilos para el bloque de idioma */
/* ---------------------------------*/


.pkp_block.block_language {
    padding: 20px;
}

.pkp_block.block_language h2.title {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #000000;
}

.pkp_block.block_language .content ul {
    list-style: none;
    padding: 0;
}

.pkp_block.block_language .content ul li {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(48, 71, 94, 0.3);
    transition: all 0.3s ease;
}

.pkp_block.block_language .content ul li:last-child {
    border-bottom: none;
}

/* Estilo principal para los enlaces - Color #999 */
.pkp_block.block_language .content ul li a {
    color: #999 !important;
    /* Color solicitado */
    text-decoration: none;
    display: block;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

/* Efecto hover */
.pkp_block.block_language .content ul li a:hover {
    background: rgba(119, 119, 120, 0.3);
    padding-left: 20px;
    color: #ffffff !important;
}

/* Estilo para el idioma actualmente seleccionado */
.pkp_block.block_language .content ul li.current a {
    background: rgba(245, 245, 245, 0.93);
    font-weight: 600;
    border-left: 4px solid #3F853D;
    color: #3F853D !important;
    /* Color solicitado */
}


/* ---------------------------------*/
/* Estilos para el bloque de información */
/* ---------------------------------*/


.pkp_block.block_information {
    padding: 20px;
}

.pkp_block.block_information h2.title {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
}

.pkp_block.block_information .content ul {
    list-style: none;
    padding: 0;
}

.pkp_block.block_information .content ul li {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(48, 71, 94, 0.3);
    transition: all 0.3s ease;
}

.pkp_block.block_information .content ul li:last-child {
    border-bottom: none;
}

/* Estilo principal para los enlaces - Color #999 */
.pkp_block.block_information .content ul li a {
    color: #999 !important;
    text-decoration: none;
    display: block;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

/* Efecto hover */
.pkp_block.block_information .content ul li a:hover {
    background: rgba(119, 119, 120, 0.3);
    padding-left: 20px;
    color: #ffffff !important;
}

/* ---------------------------------*/
/* Estilos para el bloque de información */
/* ---------------------------------*/

.pkp_block.block_web_feed {
    padding: 20px;
}

.pkp_block.block_web_feed h2.title {
    font-size: 1rem;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
}

/* ---------------------------------*/
/* Estilo para el bloque de contacto */
/* ---------------------------------*/
.name {
    font-weight: 600;
    /* Semibold */
}

.email a {
    font-weight: 400;
    /* Regular */
    color: #515151
}

/* --------------------------- */
/* Estilos para el encabezado  */
/* --------------------------- */

.pkp_head_wrapper{
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pkp_site_name{
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    width: auto;
}

.pkp_navigation_primary > ul > li > a {
    opacity: 1 !important;
    visibility: visible !important;
}

a:active, 
a:focus,
button:active,
button:focus,
.pkp_navigation_primary > ul > li > a:active,
.pkp_navigation_primary > ul > li > a:focus {
    transform: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    color: white !important; /* Mantiene el color original del texto */
    opacity: 1 !important; /* Asegura que el texto no se vuelva transparente */
    text-decoration: none !important; /* Opcional: elimina subrayados */
}

/* Opcional: Mantener hover pero sin cambios de tamaño/sombra */
/* a:hover, 
button:hover,
.pkp_navigation_primary > ul > li > a:hover {
    transform: none !important;
} */

/* --------------------------- */
/* Responsive design            */
/* --------------------------- */

@media (max-width: 768px) {
    .pkp_structure_main{
        padding: 1rem;
    }

    .pkp_button,
    .galley-link {
        width: 100%;
        text-align: center;
    }

}