/* Sophia Research Review - estilos de barra lateral */
/* Animacion de logotipos de la barra lateral */
.pkp_structure_sidebar .pkp_block a img {
    transition: transform 0.35s ease, filter 0.35s ease !important;
    cursor: pointer;
}
.pkp_structure_sidebar .pkp_block a:hover img,
.pkp_structure_sidebar .pkp_block a:focus-visible img {
    transform: translateY(-5px) scale(1.08);
    filter: drop-shadow(0 4px 5px rgba(0,0,0,0.15));
}
@media (prefers-reduced-motion: reduce) {
    .pkp_structure_sidebar .pkp_block a img { transition: none !important; }
    .pkp_structure_sidebar .pkp_block a:hover img,
    .pkp_structure_sidebar .pkp_block a:focus-visible img { transform: none; }
}

/* Nube de palabras clave */
.pkp_structure_sidebar .pkp_block.block_Keywordcloud {
    box-sizing: border-box;
    width: 100%;
    max-width: 225px;
    margin-left: auto;
    margin-right: auto;
}
.pkp_structure_sidebar .pkp_block.block_Keywordcloud .title {
    display: block;
    background: #1e6292;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 10px 5px;
    border-radius: 10px;
    margin: 0 0 12px;
}
.pkp_structure_sidebar .pkp_block.block_Keywordcloud .content {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
}
.pkp_structure_sidebar .pkp_block.block_Keywordcloud .content :is(canvas, svg, img) {
    max-width: 100%;
    transition: transform 0.35s ease;
    transform-origin: center;
}
.pkp_structure_sidebar .pkp_block.block_Keywordcloud .content:hover :is(canvas, svg, img) {
    transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
    .pkp_structure_sidebar .pkp_block.block_Keywordcloud .content :is(canvas, svg, img) {
        transition: none;
        transform: none;
    }
}

/* Igualar el ancho de la nube al resto de bloques */
.pkp_structure_sidebar .pkp_block.block_Keywordcloud {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.pkp_structure_sidebar .pkp_block.block_Keywordcloud .title,
.pkp_structure_sidebar .pkp_block.block_Keywordcloud .content {
    width: 100% !important;
    max-width: 225px !important;
    box-sizing: border-box;
    margin-left: auto !important;
    margin-right: auto !important;
}
.pkp_structure_sidebar .pkp_block.block_Keywordcloud .title {
    font-size: 20px;
}
.pkp_structure_sidebar .pkp_block.block_Keywordcloud .content {
    padding: 4px !important;
}
.pkp_structure_sidebar .pkp_block.block_Keywordcloud .content :is(canvas, svg, img) {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto;
}

/* Selector de idiomas */
.pkp_structure_sidebar .pkp_block.block_language {box-sizing:border-box;width:100%;padding-left:0;padding-right:0;}
.pkp_structure_sidebar .block_language .title,
.pkp_structure_sidebar .block_language .content {box-sizing:border-box;width:100%;max-width:225px;margin-left:auto;margin-right:auto;}
.pkp_structure_sidebar .block_language .title {background:#1e6292;color:#fff;font-size:18px;font-weight:700;text-align:center;padding:10px 5px;border-radius:10px;margin-bottom:12px;}
.pkp_structure_sidebar .block_language .content {background:#fff;border:1px solid #ddd;border-radius:10px;padding:10px;}
.pkp_structure_sidebar .block_language ul {list-style:none;margin:0;padding:0;}
.pkp_structure_sidebar .block_language li {margin:0 0 8px;padding:0;}
.pkp_structure_sidebar .block_language li:last-child {margin-bottom:0;}
.pkp_structure_sidebar .block_language a {display:flex;align-items:center;gap:9px;background:#f7f7f7;border:1px solid #e5e5e5;border-radius:8px;padding:9px 8px;color:#333;font-weight:600;text-decoration:none;transition:transform .25s ease,background .25s ease,color .25s ease;}
.pkp_structure_sidebar .block_language a:hover,.pkp_structure_sidebar .block_language a:focus-visible {background:#edf5fa;color:#1e6292;transform:translateX(3px);}
.pkp_structure_sidebar .block_language a::after {content:'\203A';margin-left:auto;color:#1e6292;font-size:20px;}
.pkp_structure_sidebar .block_language a[href$="/es"]::before,.pkp_structure_sidebar .block_language a[href*="/es?"]::before,.pkp_structure_sidebar .block_language a[href*="es_ES"]::before,.pkp_structure_sidebar .block_language a[lang^="es"]::before,.pkp_structure_sidebar .block_language .locale_es_ES a::before {content:'';display:inline-block;flex:0 0 30px;height:20px;background:linear-gradient(to bottom,#aa151b 25%,#f1bf00 25%,#f1bf00 75%,#aa151b 75%);border-radius:2px;}
.pkp_structure_sidebar .block_language a[href$="/en"]::before,.pkp_structure_sidebar .block_language a[href*="/en?"]::before,.pkp_structure_sidebar .block_language a[href*="en_US"]::before,.pkp_structure_sidebar .block_language a[href*="en_GB"]::before,.pkp_structure_sidebar .block_language a[lang^="en"]::before,.pkp_structure_sidebar .block_language .locale_en_US a::before {content:'';display:inline-block;flex:0 0 30px;height:20px;border-radius:2px;background:center/cover no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath fill='%23012169' d='M0 0h60v40H0z'/%3E%3Cpath stroke='white' stroke-width='9' d='M0 0l60 40M60 0L0 40'/%3E%3Cpath stroke='%23c8102e' stroke-width='3' d='M0 0l60 40M60 0L0 40'/%3E%3Cpath stroke='white' stroke-width='13' d='M30 0v40M0 20h60'/%3E%3Cpath stroke='%23c8102e' stroke-width='7' d='M30 0v40M0 20h60'/%3E%3C/svg%3E");}
@media(prefers-reduced-motion:reduce){.pkp_structure_sidebar .block_language a{transition:none;}.pkp_structure_sidebar .block_language a:hover,.pkp_structure_sidebar .block_language a:focus-visible{transform:none;}}

.pkp_structure_sidebar .block_language a[href*="/es?"], .pkp_structure_sidebar .block_language a[href$="/es"], .pkp_structure_sidebar .block_language a[href*="es_ES"], .pkp_structure_sidebar .block_language a[lang^="es"], .pkp_structure_sidebar .block_language .locale_es_ES a {font-size:0 !important; gap:9px;}
.pkp_structure_sidebar .block_language a[href*="/es?"]::after,
.pkp_structure_sidebar .block_language a[href$="/es"]::after,
.pkp_structure_sidebar .block_language a[href*="es_ES"]::after,
.pkp_structure_sidebar .block_language a[lang^="es"]::after,
.pkp_structure_sidebar .block_language .locale_es_ES a::after {content:"Español  \203A";font-size:14px; margin-left:0; flex:1; color:inherit;}

.pkp_structure_sidebar .block_language a[href*="/en?"], .pkp_structure_sidebar .block_language a[href$="/en"], .pkp_structure_sidebar .block_language a[href*="en_US"], .pkp_structure_sidebar .block_language a[lang^="en"], .pkp_structure_sidebar .block_language .locale_en_US a, .pkp_structure_sidebar .block_language a[href*="en_GB"] {font-size:0 !important; gap:9px;}
.pkp_structure_sidebar .block_language a[href*="/en?"]::after,
.pkp_structure_sidebar .block_language a[href$="/en"]::after,
.pkp_structure_sidebar .block_language a[href*="en_US"]::after,
.pkp_structure_sidebar .block_language a[lang^="en"]::after,
.pkp_structure_sidebar .block_language .locale_en_US a::after,
.pkp_structure_sidebar .block_language a[href*="en_GB"]::after {content:"English  \203A";font-size:14px; margin-left:0; flex:1; color:inherit;}

/* Encabezados de bloques personalizados con el rojo de la plantilla anterior */
.pkp_structure_sidebar .pkp_block div[style*="background-color:#b91c1c" i],
.pkp_structure_sidebar .pkp_block div[style*="background-color: #b91c1c" i],
.pkp_structure_sidebar .pkp_block div[style*="background:#b91c1c" i] { background-color:#1e6292 !important; }
.pkp_structure_sidebar .pkp_block p[style*="color:#b91c1c" i],
.pkp_structure_sidebar .pkp_block p[style*="color: #b91c1c" i] {color:#1e6292 !important;}


/* SRR - pie de pagina institucional compacto */
.pkp_structure_footer_wrapper { background: #1E6292 !important; }
.pkp_structure_footer { background: transparent !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.pkp_footer_content { background: transparent !important; color: #fff !important; padding-top: 20px !important; padding-bottom: 8px !important; width: 100% !important; box-sizing: border-box; }
.pkp_footer_content p, .pkp_footer_content strong, .pkp_footer_content a { color: #fff !important; }
.pkp_footer_content a { text-decoration: underline; }
.pkp_footer_content p:last-child { margin-bottom: 0 !important; }
.pkp_brand_footer { display: none !important; }

/* SRR - centrado de la licencia Creative Commons */
.pkp_footer_content p:last-child {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-indent: 0 !important;
    font-size: 0 !important;
}
.pkp_footer_content p:last-child img {
    display: block !important;
    float: none !important;
    margin: 0 auto !important;
    position: static !important;
    transform: none !important;
}
.pkp_footer_content p:last-child a {
    display: block !important;
    text-align: center !important;
}

/* SRR - animacion de la licencia Creative Commons */
.pkp_footer_content p:last-child img {
    transition: transform .35s ease !important;
    cursor: pointer;
    box-shadow: none !important;
}
.pkp_footer_content p:last-child img:hover,
.pkp_footer_content p:last-child a:focus-visible img,
.pkp_footer_content p:last-child a:active img {
    transform: translateY(-5px) scale(1.08) !important;
}
@media (prefers-reduced-motion: reduce) {
    .pkp_footer_content p:last-child img {
        transition: none !important;
        transform: none !important;
    }
}

/* SRR - fondo institucional con ondas vectoriales */
.pkp_structure_footer_wrapper {
 background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'%3E%3Cpath fill='%2300a9b5' opacity='.65' d='M0 210 C130 230 150 300 440 300 H0Z M1440 0 H1080 C1270 0 1320 70 1440 85Z'/%3E%3Cpath fill='%2300d0d4' opacity='.65' d='M0 210 C130 230 150 300 440 300 C150 295 130 250 0 240Z M1440 0 H1080 C1270 0 1320 70 1440 85 V60 C1320 45 1270 0 1080 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat, linear-gradient(125deg,#12658a,#063b55 60%,#075675) !important;
 border-bottom: 2px solid #54c6d1;
}
.pkp_footer_content { padding: 26px 24px 20px !important; text-align:center !important; line-height:1.55; }
.pkp_footer_content p { text-align:center !important; }
.pkp_footer_content .srr-license { display:flex !important; align-items:center; justify-content:center; gap:24px; margin:20px auto 0 !important; max-width:720px; }
.srr-license::before,.srr-license::after { content:''; height:1px; flex:1; background:linear-gradient(90deg,transparent,#fff); }
.srr-license::after { background:linear-gradient(90deg,#fff,transparent); }
.pkp_footer_content .srr-license img { width:150px !important; height:auto !important; max-width:100%; }
@media(max-width:600px){ .pkp_footer_content {padding:20px 14px !important;} .srr-license {gap:12px !important;} }

/* Distintivo oficial CC: prioridad sobre dimensiones del tema */
.pkp_footer_content .srr-license a { display:inline-block !important; flex:0 0 auto; }
.pkp_footer_content .srr-license a img { width:150px !important; max-width:150px !important; height:auto !important; box-shadow:none !important; }
.pkp_footer_content .srr-license a:hover img { transform:translateY(-5px) scale(1.08) !important; }
@media(prefers-reduced-motion:reduce){ .pkp_footer_content .srr-license a:hover img { transform:none !important; } }

/* Lineas visibles incluso si OJS elimina la clase del parrafo */
.pkp_footer_content p.srr-license,
.pkp_footer_content p:last-child:has(a[href*="creativecommons.org/licenses/"] img) {
 display:flex !important; align-items:center !important; justify-content:center !important;
 gap:24px !important; width:100% !important; max-width:760px !important;
 margin:20px auto 8px !important; padding:0 !important;
}
.pkp_footer_content p.srr-license::before,
.pkp_footer_content p.srr-license::after,
.pkp_footer_content p:last-child:has(a[href*="creativecommons.org/licenses/"] img)::before,
.pkp_footer_content p:last-child:has(a[href*="creativecommons.org/licenses/"] img)::after {
 content:"" !important; display:block !important; flex:1 1 0 !important;
 position:static !important; min-width:20px !important; height:3px !important;
 background:linear-gradient(90deg,transparent,#ffffff) !important;
}
.pkp_footer_content p.srr-license::after,
.pkp_footer_content p:last-child:has(a[href*="creativecommons.org/licenses/"] img)::after {
 background:linear-gradient(90deg,#ffffff,transparent) !important;
}
.pkp_footer_content p:last-child:has(a[href*="creativecommons.org/licenses/"] img) a {flex:0 0 auto !important; width:auto !important;}
@media(max-width:600px){.pkp_footer_content p.srr-license,.pkp_footer_content p:last-child:has(a[href*="creativecommons.org/licenses/"] img){gap:12px !important;}}
