* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    color: #263238;
}


/* Header */

header {
    height: 80px;
    background-color: #020202;
    border-bottom: 3px solid #0f233d;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

header h1 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.logo-header {
    position: absolute;
    right: 30px;
    top: 13px;
    width: 120px;
    height: 55px;
    object-fit: contain;
}

.logo-header2 {
    position: absolute;
    left: 20px;
    top: 7px;
    width: 120px;
    height: 65px;
    object-fit: contain;
}


/* Navegación */

.navegacion {
    position: absolute;
    left: 155px;
    top: 50%;
    transform: translateY(-50%);
}

.navegacion button {
    background-color: #0f233d;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.navegacion button:hover {
    background-color: #18385f;
}


/* Contenido */

main {
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 25px 0;
}


/* Buscador */

.panel {
    background-color: #ffffff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel h2 {
    color: #0f233d;
    font-size: 20px;
}

.buscador {
    position: relative;
    width: 400px;
}

.buscador i {
    position: absolute;
    left: 13px;
    top: 11px;
    color: #718096;
    font-size: 17px;
}

.buscador input {
    width: 100%;
    height: 40px;
    padding: 8px 12px 8px 40px;
    border: 1px solid #cbd5df;
    border-radius: 7px;
    font-size: 14px;
    outline: none;
}

.buscador input:focus {
    border-color: #4f7d9c;
}


/* Documentos y visor */

.contenido-documentos {
    display: grid;
    grid-template-columns: 32% 68%;
    gap: 20px;
    align-items: start;
}


/* Documentos */

.documentos {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);

    height: 750px;
    overflow-y: auto;
    overflow-x: auto;
}

.documentos h2 {
    color: #0f233d;
    font-size: 20px;
    margin-bottom: 20px;
}

.documentos table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.documentos th {
    background-color: #0f233d;
    color: #ffffff;
    padding: 10px;
    text-align: left;
}

.documentos td {
    padding: 10px;
    border-bottom: 1px solid #e1e6ea;
    background-color: #ffffff;
}

.documentos tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}

.documentos tbody tr:hover td {
    background-color: #edf4f9;
}


/* Nombre */

.nombre-pdf {
    max-width: 250px;
    white-space: normal;
    word-break: break-word;
}


/* Acciones */

.acciones {
    white-space: nowrap;
}


/* Botón Ver */

.btn-ver {
    background-color: #0f233d;
    color: #ffffff;
    padding: 7px 12px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-ver:hover {
    background-color: #18385f;
}


/* Botón Descargar */

.btn-descargar {
    display: inline-block;
    background-color: #6c757d;
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}

.btn-descargar:hover {
    background-color: #555555;
}


/* Búsqueda */

.celda-encontrada {
    background-color: #fff3a3 !important;
    box-shadow: inset 0 0 0 3px #e0b100;
}


/* Sin documentos */

.sin-documentos {
    text-align: center;
    color: #6c757d;
    padding: 25px !important;
}


/* Visor */

.visor {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);

    height: 750px;
    overflow: hidden;
}

.visor-header {
    height: 60px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: #0f233d;
    color: #ffffff;
}

.visor-header h2 {
    font-size: 18px;
}


/* Cerrar */

.btn-cerrar {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}

.btn-cerrar:hover {
    background-color: #b02a37;
}


/* PDF */

#visorPDF {
    display: block;
    width: 100%;
    height: calc(100% - 60px);
    border: none;
    background-color: #525659;
}


/* Pantallas pequeñas */

@media (max-width: 900px) {

    .contenido-documentos {
        grid-template-columns: 1fr;
    }

    .documentos,
    .visor {
        height: 650px;
    }

    .panel {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .buscador {
        width: 100%;
    }

}


@media (max-width: 768px) {

    header {
        height: 70px;
    }

    header h1 {
        font-size: 17px;
        margin: 0 100px;
    }

    .logo-header {
        width: 90px;
        height: 50px;
        right: 10px;
    }

    .logo-header2 {
        width: 90px;
        height: 55px;
        left: 5px;
    }

    .navegacion {
        left: 100px;
    }

    .navegacion button {
        padding: 8px 10px;
        font-size: 12px;
    }

    main {
        width: calc(100% - 20px);
        padding: 20px 0;
    }

}