/* 1. Liberamos los contenedores de la nueva plantilla */
.pkp_structure_footer_wrapper, 
.pkp_structure_footer {
    background-color: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important; /* CAMBIO CLAVE: Quitamos el límite */
    width: 100% !important;
    border: none !important;
}

/* 2. Limpiamos espacios y ocultamos logo de OJS */
.pkp_brand_footer {
    display: none !important;
}

/* 3. Evitamos el movimiento lateral de la página completa */
body {
    overflow-x: hidden !important;
}

/* 4. Ajuste de tamaño de la imagen miniatura de la revista */
.pkp_page_index .journals .thumb img {
    width: 100%;
    max-height: none;
    height: auto;
    object-fit: cover;
}

/* 5. Menú de navegación principal: texto blanco y en negritas */
.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > button {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* 5b. Registrarse y Entrar (fondo blanco): texto negro */
#navigationUser a,
#navigationUser button,
#navigationUserWrapper a,
#navigationUserWrapper button {
    color: #000000 !important;
    font-weight: normal !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > button:hover,
.pkp_navigation_primary > li > button:focus {
    color: #ffffff !important;
}

/* 6. Menú desplegable: texto negro sobre fondo blanco */
#navigationPrimary li ul a,
#navigationPrimary li ul button {
    color: #222222 !important;
    font-weight: normal !important;
}

#navigationPrimary li ul a:hover,
#navigationPrimary li ul a:focus {
    color: #000000 !important;
}

/* ══════════════════════════════════════════════════════════════════════
   7. TRANSICIONES Y ESTILO — 2026-07-08
   Paleta de marca (misma usada en portadas de artículos):
   NAVY #142A42 · TEAL #009B9B · GOLD #E4A722
   ══════════════════════════════════════════════════════════════════════ */

/* 7.1 Transición global suave para todo lo interactivo */
a,
button,
.pkp_button,
.obj_article_summary .cover img,
.obj_article_summary,
.pkp_block,
.obj_galley_link,
input,
select,
textarea {
    transition: color 0.18s ease, background-color 0.18s ease,
                border-color 0.18s ease, box-shadow 0.22s ease,
                transform 0.22s ease, opacity 0.18s ease;
}

html {
    scroll-behavior: smooth;
}

/* 7.2 Enlaces de contenido: subrayado animado en vez de instantáneo */
.page_article .item, .pkp_page_content a:not(.pkp_button):not(.obj_galley_link) {
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.pkp_page_content a:not(.pkp_button):not(.obj_galley_link):hover {
    text-decoration-color: currentColor;
}

/* 7.3 Tarjetas de artículo (listados de número / búsqueda): elevación al pasar el mouse */
.obj_article_summary {
    border-radius: 10px;
}
.obj_article_summary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 42, 66, 0.12);
}
.obj_article_summary .cover img {
    border-radius: 8px;
}
.obj_article_summary:hover .cover img {
    transform: scale(1.015);
}
.obj_article_summary .title a {
    transition: color 0.18s ease;
}
.obj_article_summary:hover .title a {
    color: #009B9B !important;
}

/* 7.4 Botones de galley (PDF / HTML / JATS XML) como píldoras con acento de marca */
.obj_galley_link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px !important;
    border: 1px solid #cfe3e3 !important;
    padding: 3px 12px !important;
    background: #f2fafa;
}
.obj_galley_link:hover {
    background: #009B9B;
    border-color: #009B9B !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 155, 155, 0.28);
}
.obj_galley_link.pdf { border-color: #e4c9a3 !important; background: #fdf6ec; }
.obj_galley_link.pdf:hover { background: #E4A722; border-color: #E4A722 !important; box-shadow: 0 4px 10px rgba(228, 167, 34, 0.32); }

/* 7.5 Botones estándar de OJS (formularios, búsqueda, etc.) */
.pkp_button {
    border-radius: 6px !important;
}
.pkp_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(20, 42, 66, 0.18);
}
.pkp_button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 7.6 Bloques laterales (sidebar): jerarquía más clara en los títulos */
.pkp_block .title,
.pkp_block h2 {
    border-bottom: 2px solid #009B9B;
    padding-bottom: 6px;
}

/* 7.7 Portadas de número (heading de cada volumen en el archivo/inicio) */
.obj_issue_toc .cover img,
.issue .cover img {
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(20, 42, 66, 0.10);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.obj_issue_toc .cover img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(20, 42, 66, 0.18);
}

/* 7.8 Encabezados de sección dentro de un número (p. ej. "Estudio de Caso") */
.sections .section > h3 {
    color: #142A42;
    border-left: 4px solid #E4A722;
    padding-left: 10px;
    margin-top: 1.4rem;
}

/* 7.9 Accesibilidad: foco visible consistente con la marca, sin perder el contorno nativo */
a:focus-visible,
button:focus-visible,
.pkp_button:focus-visible {
    outline: 2px solid #E4A722;
    outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════════
   8. PÁGINA DE ARTÍCULO — 2026-07-08
   ══════════════════════════════════════════════════════════════════════ */

/* 8.1 Título del artículo: acento de marca, igual criterio que los h3 de sección */
.page_article .page_title {
    border-left: 5px solid #E4A722;
    padding-left: 16px;
    line-height: 1.3;
}

/* 8.2 Migas de pan: separador más suave y transición de color en los enlaces */
.cmp_breadcrumbs {
    font-size: 0.86rem;
    color: #6b7580;
}
.cmp_breadcrumbs a {
    color: #3d5566;
    transition: color 0.18s ease;
}
.cmp_breadcrumbs a:hover {
    color: #009B9B;
}
.cmp_breadcrumbs .separator {
    color: #c3ccd2;
    margin: 0 4px;
}
.cmp_breadcrumbs li.current span {
    color: #142A42;
    font-weight: 600;
}

/* 8.3 Panel lateral (entry_details): tarjeta con separación clara entre secciones */
.entry_details {
    background: #f7faf9;
    border: 1px solid #e2ebe9;
    border-radius: 12px;
    padding: 18px 20px;
}
.entry_details .item {
    padding: 12px 0;
    border-bottom: 1px solid #e2ebe9;
}
.entry_details .item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.entry_details .item.cover_image {
    padding-top: 0;
}
.entry_details .item.cover_image img {
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(20, 42, 66, 0.14);
}
.entry_details .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b8080;
    font-weight: 700;
    margin-bottom: 2px;
}

/* 8.4 Lista de autores: cada autor como bloque con separación y afiliación en cursiva */
#author-list.authors > li {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f2;
}
#author-list.authors > li:last-child {
    border-bottom: none;
}
#author-list .name {
    font-weight: 700;
    color: #142A42;
}
#author-list .affiliation {
    display: block;
    font-style: italic;
    color: #6b7580;
    font-size: 0.9rem;
}
#author-list .orcid_icon {
    width: 15px;
    height: 15px;
    vertical-align: -2px;
    margin-right: 3px;
}
#author-list .orcid a {
    font-size: 0.85rem;
}

/* 8.5 Resumen y palabras clave: tipografía más cómoda de leer */
.item.abstract .value,
.item.abstract p {
    line-height: 1.7;
    max-width: 70ch;
    text-align: justify;
    color: #2a2a2a;
}
.item.keywords .value {
    color: #3d5566;
}

/* 8.6 Categorías temáticas como chips */
.value .categories {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.value .categories li a {
    display: inline-block;
    background: #eaf6f6;
    color: #007575 !important;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.85rem;
    text-decoration: none !important;
}
.value .categories li a:hover {
    background: #009B9B;
    color: #ffffff !important;
}

/* 8.7 Botón y panel de "Más formatos de cita" */
.citation_formats_button {
    border-radius: 6px;
    border: 1px solid #cfe3e3 !important;
    padding: 5px 14px !important;
    background: #f2fafa;
    color: #007575 !important;
}
.citation_formats_button:hover {
    background: #009B9B;
    color: #ffffff !important;
}
.citation_formats_list {
    animation: ha-fade-in 0.18s ease;
}
@keyframes ha-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.citation_formats_styles a {
    transition: background-color 0.15s ease, padding-left 0.15s ease;
}
.citation_formats_styles a:hover {
    background: #f2fafa;
    padding-left: 18px !important;
}

/* 8.8 Paginación (archivo de números, búsqueda, resultados) */
.cmp_pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.cmp_pagination a,
.cmp_pagination span {
    border-radius: 6px;
    padding: 5px 12px;
    border: 1px solid #e2ebe9;
}
.cmp_pagination a {
    color: #3d5566 !important;
    text-decoration: none !important;
}
.cmp_pagination a:hover {
    background: #009B9B;
    border-color: #009B9B;
    color: #ffffff !important;
}
.cmp_pagination .current {
    background: #142A42;
    border-color: #142A42;
    color: #ffffff !important;
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════
   9. PÁGINAS DE CONTENIDO, BÚSQUEDA Y FORMULARIOS — 2026-07-08
   (Acerca de, Equipo Editorial, Entidad editora, Buscar, Entrar, Registrarse)
   ══════════════════════════════════════════════════════════════════════ */

/* 9.1 Título de página de contenido: mismo acento de marca que el artículo */
.page > h1 {
    border-left: 5px solid #E4A722;
    padding-left: 16px;
    line-height: 1.3;
}

/* 9.2 Texto largo (Acerca de, Entidad editora, políticas): más cómodo de leer */
.page_about .page,
.page p,
.page li {
    line-height: 1.75;
}
.page > p,
.page > ul {
    max-width: 78ch;
}

/* "Encabezados" en negrita al inicio de párrafo (Enfoque y ámbito, Periodicidad, etc.)
   funcionan como subtítulos dentro del texto: les damos jerarquía visual */
.page > p > strong:first-child {
    display: inline-block;
    color: #142A42;
    font-size: 1.05em;
    margin-top: 0.6em;
}

/* Resalte suave al llegar por enlace ancla (p.ej. desde el submenú "Políticas") */
.page p[id]:target,
.page h2[id]:target,
.page h3[id]:target {
    background: #fff6e0;
    box-shadow: -6px 0 0 #E4A722;
    padding: 6px 10px;
    margin-left: -10px;
    border-radius: 0 6px 6px 0;
    animation: ha-target-fade 2.5s ease;
}
@keyframes ha-target-fade {
    0%   { background: #fff0c2; }
    100% { background: #fff6e0; }
}

/* 9.3 Buscador: input y filtros avanzados */
.search_input .query,
.page_search input[type="text"] {
    border-radius: 8px !important;
    border: 1px solid #cbd5d5 !important;
    padding: 9px 14px !important;
}
.search_input .query:focus,
.page_search input:focus,
.page_search select:focus {
    border-color: #009B9B !important;
    box-shadow: 0 0 0 3px rgba(0, 155, 155, 0.15);
    outline: none;
}
.search_advanced {
    border: 1px solid #e2ebe9;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 14px;
}
.search_advanced legend {
    color: #142A42;
    font-weight: 700;
    padding: 0 6px;
}

/* 9.4 Formularios (Entrar, Registrarse, Contacto, etc.) */
.cmp_form input[type="text"],
.cmp_form input[type="password"],
.cmp_form input[type="email"],
.cmp_form select,
.cmp_form textarea {
    border-radius: 8px !important;
    border: 1px solid #cbd5d5 !important;
    padding: 8px 12px !important;
}
.cmp_form input[type="text"]:focus,
.cmp_form input[type="password"]:focus,
.cmp_form input[type="email"]:focus,
.cmp_form select:focus,
.cmp_form textarea:focus {
    border-color: #009B9B !important;
    box-shadow: 0 0 0 3px rgba(0, 155, 155, 0.15);
    outline: none;
}
.cmp_form .required {
    color: #b03a2e;
}
.cmp_form .buttons .submit {
    border-radius: 6px;
    background: #142A42;
    color: #ffffff;
    border: none;
    padding: 9px 22px;
    font-weight: 600;
}
.cmp_form .buttons .submit:hover {
    background: #009B9B;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 155, 155, 0.28);
}
.cmp_form .buttons a.register {
    margin-left: 14px;
    color: #007575;
}
.cmp_form .buttons a.register:hover {
    color: #142A42;
}
.cmp_form a {
    transition: color 0.18s ease;
}
.login .password a,
.login .buttons a.register {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}
.login .password a:hover,
.login .buttons a.register:hover {
    text-decoration-color: currentColor;
}

/* ══════════════════════════════════════════════════════════════════════
   10. INTERACTIVIDAD (JS ligero, inyectado vía "Pie de página" del sitio)
       2026-07-08 — barra de acciones flotante, copiar cita, volver arriba
   ══════════════════════════════════════════════════════════════════════ */

.ha-action-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #142A42;
    color: #fff;
    padding: 10px 24px;
    transform: translateY(-100%);
    transition: transform 0.28s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.ha-action-bar.is-visible {
    transform: translateY(0);
}
.ha-action-bar-title {
    font-size: 0.92rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}
.ha-action-bar-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.ha-action-btn {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    padding: 5px 16px;
    font-size: 0.85rem;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.ha-action-btn:hover {
    background: #009B9B;
    border-color: #009B9B;
    transform: translateY(-1px);
}

.ha-copy-citation {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #cfe3e3;
    background: #f2fafa;
    color: #007575;
    padding: 5px 14px;
    font-size: 0.85rem;
    cursor: pointer;
}
.ha-copy-citation:hover {
    background: #009B9B;
    color: #fff;
    border-color: #009B9B;
}
.ha-copy-citation.is-copied {
    background: #E4A722;
    border-color: #E4A722;
    color: #142A42;
    font-weight: 700;
}

.ha-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #142A42;
    color: #fff;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.18s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(20,42,66,0.3);
}
.ha-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.ha-back-to-top:hover {
    background: #009B9B;
}

@media (max-width: 640px) {
    .ha-action-bar-title { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   11. IMPRESIÓN — 2026-07-08
   ══════════════════════════════════════════════════════════════════════ */
@media print {
    .pkp_structure_head,
    .pkp_navigation_search_wrapper,
    .pkp_structure_sidebar,
    .pkp_structure_footer_wrapper,
    .ha-action-bar,
    .ha-back-to-top,
    .cmp_breadcrumbs,
    .entry_details .item.galleys,
    .citation_formats,
    .ha-copy-citation,
    .obj_galley_link,
    .pkp_block {
        display: none !important;
    }
    body {
        font-size: 11pt;
        color: #000;
    }
    .page_article .page_title {
        border-left: none;
        padding-left: 0;
    }
    .page_article .page_title::before {
        content: "Horizontes Amazónicos";
        display: block;
        font-size: 9pt;
        font-weight: 400;
        color: #555;
        margin-bottom: 6px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
    a[href]:not([href^="#"])::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #555;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   12. INICIO, EQUIPO EDITORIAL Y BLOQUES LATERALES — 2026-07-08
   ══════════════════════════════════════════════════════════════════════ */

/* 12.1 "Sobre la revista" en el inicio: tarjeta introductoria legible */
.homepage_about {
    background: #f7faf9;
    border: 1px solid #e2ebe9;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 1.6rem;
}
.homepage_about h2 {
    color: #142A42;
    border-left: 5px solid #E4A722;
    padding-left: 12px;
}
.homepage_about p {
    line-height: 1.75;
    max-width: 82ch;
    color: #2a2a2a;
}

/* 12.2 Avisos (announcements): tarjeta con acento y transición al pasar el mouse */
.obj_announcement_summary {
    border-left: 4px solid #009B9B;
    background: #fff;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(20,42,66,0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.obj_announcement_summary:hover {
    box-shadow: 0 6px 16px rgba(20,42,66,0.12);
    transform: translateY(-2px);
}
.obj_announcement_summary_details h3 a {
    color: #142A42;
    transition: color 0.18s ease;
}
.obj_announcement_summary_details h3 a:hover {
    color: #009B9B;
}
.obj_announcement_summary .date {
    display: inline-block;
    font-size: 0.78rem;
    color: #6b8080;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 2px 0 6px;
}
.obj_announcement_summary .read_more {
    display: inline-block;
    margin-top: 4px;
    color: #007575;
    font-size: 0.88rem;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.18s ease;
}
.obj_announcement_summary .read_more:hover {
    text-decoration-color: currentColor;
}

/* 12.3 Título del número actual en el inicio */
.current_issue_title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #142A42;
    margin: 6px 0 14px;
}

/* 12.4 CTA "Enviar un artículo": el enlace más importante para autores nuevos,
   convertido en botón visible en vez de texto plano en el sidebar */
.block_make_submission_link {
    display: block;
    text-align: center;
    background: #E4A722;
    color: #142A42 !important;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 14px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.block_make_submission_link:hover {
    background: #142A42;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(20,42,66,0.22);
}

/* 12.5 Bloques personalizados del sidebar (widgets, buscadores embebidos) */
.pkp_block.block_custom {
    background: #fff;
    border: 1px solid #e2ebe9;
    border-radius: 10px;
    padding: 14px 16px;
}

/* 12.6 Tabla del Equipo Editorial: resalte de fila al pasar el mouse
   (el contenido tiene estilos en línea; solo añadimos lo que falta) */
.editorial_board_content table tbody tr {
    transition: background-color 0.15s ease;
}
.editorial_board_content table tbody tr:hover {
    background-color: #f2fafa;
}

/* 7.10 Respeta la preferencia del usuario de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}