#menu_superior {
    position: fixed;
    z-index: 10;
    height: 10%;
}

.main-navbar.custom-navbar {
    left: 0 !important;
    padding-left: 10px;
    padding-right: 10px;
}

.topbar {
    display: flex;
    align-items: center;
    width: 100%;
}

.brand-link {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-right: 8px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 6px;
}

.brand-text {
    white-space: nowrap;
}

.topbar-center {
    flex: 1 1 120px;
    min-width: 80px;
}

.search-form {
    display: flex;
    width: 30%;
}

.search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    padding: 4px 8px;
    border-radius: 4px 0 0 4px;
}

.search-btn {
    border: none;
    padding: 4px 8px;
    border-radius: 0 4px 4px 0;
    background: #fff;
}

.topbar-right {
    flex: 0 0 auto;
    margin-left: 8px;
}

.profile-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 4px;
}
.profile-perfil {
    width: 50%;
    height: 50%;
    border-radius: 50%;
    margin-right: 4px;
}
.profile-text {
    color: #fff;
}

@media (max-width: 768px) {
    .profile-text {
        display: none;
    }

    .brand-text {
        display: none;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .topbar-center {
        flex: 1 1 80px;
        min-width: 60px;
    }

    .search-input {
        font-size: 12px;
        padding: 2px 6px;
    }

    .search-btn {
        padding: 2px 6px;
    }
}
@media (max-width: 400px) {
    .topbar-center {
        flex: 1 1 60px;
        min-width: 50px;
    }
}

#filtro {
    width: 97%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 15%;
}
#l {
    width: 95%;
    display: flex;
    flex-direction: row;
}
/* detalle */
.page {
    max-width: 1150px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: clamp(0px, 1vw, 24px);
    display: flex;
    gap: 30px;
    overflow: hidden;
}

/* Portada */
.cover {
    width: 330px;
    min-width: 260px;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #e1e1e1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.cover-image {
    flex: 1;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}

/* Contenido derecho */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status {
    font-size: 11px;
    font-weight: 600;
    color: #0f9d58;

    margin-top: 4px;
}

.title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 6px;
    text-transform: uppercase;
}

.author {
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

.institution {
    font-size: 11px;
    color: #777;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 10px;
    font-size: 11px;
    color: #555;
}

.meta span {
    white-space: nowrap;
}

.meta-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    color: #999;
    margin-right: 4px;
}

.buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn {
    flex: 1;
    border-radius: 4px;
    padding: 10px 14px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.btn-primary {
    background: #0f9d58;
    color: #fff;
}

.btn-secondary {
    background: #7b1fa2;
    color: #fff;
}

.tabs {
    margin-top: 18px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    gap: 24px;
    font-size: 13px;
    flex-wrap: wrap;
}

.tab {
    padding-bottom: 8px;
    cursor: pointer;
    position: relative;
    color: #666;
}

.tab.active {
    color: #000;
    font-weight: 600;
}

.tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #0f9d58;
}

.tab-content {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
}

.tab-content p {
    margin-bottom: 4px;
}

.label-strong {
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .page {
        flex-direction: column;
        padding: 16px;
    }

    .cover {
        width: 100%;
        max-width: 320px;
        min-width: auto;
        margin: 0 auto;
    }

    .content {
        width: 100%;
    }

    .meta span {
        white-space: normal;
    }

    .title {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 8px;
    }

    .page {
        padding: 12px;
        gap: 16px;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .title {
        font-size: 16px;
    }

    .tab-content {
        font-size: 12px;
    }
}

.negrita {
    text-transform: uppercase;
}

.btnver {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    cursor: pointer;
    color: inherit; /* usa el color del texto normal */
    text-decoration: underline; /* si quieres que parezca link */
}
.article-image {
    display: block;
    width: 100%; /* o el ancho que uses */
    height: 200px; /* o el alto que usabas */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.article-image-btn {
    border: none;
    background: none; /* el fondo real lo pone data-background vía JS */
    padding: 0;
    margin: 0;
    cursor: pointer;
}

#pdfViewer {
    height: auto;
    width: 100%;
}
#pdfCanvas {
    height: auto !important;
}

.texto-corto {
    max-height: 30px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ver-mas-btn {
    color: blue;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}
.img-portada {
    max-width: 170px;
    height: auto;
}
.reducir {
    height: 30px;
    padding: 5px 5px;
    width: 100%;
    font-size: 12px;
}

.contenedor-input {
    position: relative;
    width: 100%;
    max-width: 350px; /* ancho del input */
    margin: auto;
}

.contenedor-input input {
    width: 100%;
    padding: 12px 40px 12px 15px; /* espacio para el ojo */
    border-radius: 10px;
    border: none;
    font-size: 16px;
}

.icono-ojo {
    position: absolute;
    right: 15px; /* mueve horizontal del lado derecho */
    top: 43px;
    padding-bottom: 10%; /* centro vertical */
    transform: translateY(-50%); /* centra perfecto */
    cursor: pointer;
    font-size: 20px;
    color: #000; /* cámbialo a blanco o el color que quieras */
    user-select: none;
}
.icono-ojo2 {
    position: absolute;
    right: 15%; /* mueve horizontal del lado derecho */
    top: 35%;
    padding-bottom: 10%; /* centro vertical */
    transform: translateY(-50%); /* centra perfecto */
    cursor: pointer;
    font-size: 20px;
    color: #000; /* cámbialo a blanco o el color que quieras */
    user-select: none;
}
.icono-ojo3 {
    position: absolute;
    right: 15%; /* mueve horizontal del lado derecho */
    top: 50%;
    padding-bottom: 10%; /* centro vertical */
    transform: translateY(-50%); /* centra perfecto */
    cursor: pointer;
    font-size: 20px;
    color: #000; /* cámbialo a blanco o el color que quieras */
    user-select: none;
}
.icono-ojo4 {
    position: absolute;
    right: 15%; /* mueve horizontal del lado derecho */
    top: 67%;
    padding-bottom: 10%; /* centro vertical */
    transform: translateY(-50%); /* centra perfecto */
    cursor: pointer;
    font-size: 20px;
    color: #000; /* cámbialo a blanco o el color que quieras */
    user-select: none;
}
.perfil {
    width: 100%;
    padding-left: clamp(10px, 15%, 50%);
    padding-right: clamp(10px, 15%, 50%);
    padding-top: 5%;
}
.footer-fijo {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding-top: 2px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: #333;
    color: white;
    text-align: center;
    z-index: 1000;
}

.fil {
    background-color: white;
    width: 70%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

/* tablas Reportes */
.tabla-reporte {
    font-size: 10px;
    border-collapse: collapse;
    width: 100%;
}

.tabla-reporte th,
.tabla-reporte td {
    padding: 2px 4px !important;
    border: 1px solid #999 !important;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
}

.tabla-reporte th.col-esp,
.tabla-reporte td.col-esp {
    text-align: left;
    min-width: 150px;
    max-width: 200px;
    white-space: normal;
}

.tabla-reporte thead th {
    background: #f1f1f1;
    font-weight: bold;
}

/* Semanas en vertical también */
.vertical-header {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 4px 0 !important;
    width: 26px;
    height: 90px;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}

.fila-totales td {
    background: #e3f2fd;
    font-weight: bold;
}

.titulo-reporte {
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.bloque-grafico {
    margin-top: 18px;
}

.titulo-grafico {
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4px;
    text-transform: uppercase;
}
/* Contenedor del PDF: alto fijo + scroll interno */
/* Solo en la página del visor, anulamos el flex que deforma todo */
.page-visor {
    display: block; 
    overflow: hidden; 
}


.pdf-wrapper {
    width: 100%;
    height: 100%; 
    overflow-x: auto;
    overflow-y: auto;
    border: 1px solid #ddd;
    box-sizing: border-box;
}


#pdfCanvas {
    display: block;
    max-width: none;

}
.enct {
    width: 130px;
 border: 1px solid;
    text-align: center;
    font-family: Arial;
}
.enctsub {
    background: rgb(201, 201, 238);
    font-weight: bold;
    padding: 3px;
    font-size: 15px;
}
.enctcant {
    background: #d5e1f7;
    padding: 3px;
    font-size: 15px;
}
.totalvi {
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
}
