/* ============================================================
   CONFIGURACIÓN GENERAL
   ============================================================ */
* {
    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: #000000;
    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);
}
/* ============================================================
   TÍTULO
   ============================================================ */
header h1 {
                font-family: "Michroma", sans-serif;

    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}
/* ============================================================
   LOGO DERECHO
   ============================================================ */
.logo-header {
    position: absolute;
    right: 30px;
    top: 13px;
    width: 120px;
    height: 55px;
    object-fit: contain;
}
/* ============================================================
   LOGO IZQUIERDO
   ============================================================ */
.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%);
    display: flex;
    gap: 10px;
}
/* ============================================================
   BOTÓN REGRESAR
   ============================================================ */
.navegacion button {
    background-color: #0f233d;
    color: #050505;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}
.navegacion button:hover {
    background-color: #18385f;
    transform: translateY(-1px);
}
/* ============================================================
   CONTENIDO
   ============================================================ */
main {
    width: calc(100% - 70px);
    margin: 0 auto;
    padding: 35px 0;
}
/* ============================================================
   PANEL
   ============================================================ */
.panel {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.10);
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 25px;
}
.panel h2 {
    color: #0f233d;
    font-size: 20px;
    margin: 0;
}
/* ============================================================
   BUSCADOR
   ============================================================ */
.buscador {
    position: relative;
    width: 420px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-self: end;
}
.buscador i {
    position: absolute;
    left: 13px;
    color: #718096;
    font-size: 17px;
    pointer-events: none;
}
.buscador input {
    width: 100%;
    height: 40px;
    padding: 8px 12px 8px 40px;
    border: 1px solid #cbd5df;
    border-radius: 7px;
    background-color: #ffffff;
    color: #263238;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.buscador input::placeholder {
    color: #9aa4ad;
}
.buscador input:focus {
    border-color: #4f7d9c;
    box-shadow:
        0 0 0 3px rgba(79, 125, 156, 0.13);
}
/* ============================================================
   DOCUMENTOS GUARDADOS
   ============================================================ */
.documentos {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.10);
    margin-bottom: 25px;
    overflow-x: auto;
}
.documentos h2 {
    color: #0f233d;
    font-size: 20px;
    margin-bottom: 20px;
}
/* ============================================================
   TABLA
   ============================================================ */
.documentos table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
/* ============================================================
   ENCABEZADOS
   ============================================================ */
.documentos th {
    background-color: #0f233d;
    color: #ffffff;
    padding: 12px 14px;
    text-align: left;
    border-right: 1px solid #29425e;
    white-space: nowrap;
}
/* ============================================================
   CELDAS
   ============================================================ */
.documentos td {
    padding: 12px 14px;
    border-bottom: 1px solid #e1e6ea;
    white-space: nowrap;
    background-color: #ffffff;
}
/* ============================================================
   FILAS
   ============================================================ */
.documentos tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}
.documentos tbody tr:hover td {
    background-color: #edf4f9;
}
/* ============================================================
   CELDA ENCONTRADA
   ============================================================ */
.celda-encontrada {
    background: #fff3a3 !important;
    box-shadow:
        inset 0 0 0 3px #e0b100;
    transition:
        all 0.3s ease;
}
/* ============================================================
   ACCIONES
   ============================================================ */
.acciones {
    text-align: center;
}
/* ============================================================
   BOTÓN VER
   ============================================================ */
.btn-ver {
    background-color: #0f233d;
    color: #ffffff;
    padding: 7px 14px;
    border: none;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    cursor: pointer;
    margin-right: 5px;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}
.btn-ver:hover {
    background-color: #18385f;
    transform: translateY(-1px);
}
/* ============================================================
   BOTÓN DESCARGAR
   ============================================================ */
.btn-descargar {
    display: inline-block;
    background-color: #6c757d;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}
.btn-descargar:hover {
    background-color: #555555;
    transform: translateY(-1px);
}
/* ============================================================
   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);
    overflow: hidden;
    margin-bottom: 25px;
}
/* ============================================================
   ENCABEZADO DEL VISOR
   ============================================================ */
.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;
    font-weight: 600;
}
/* ============================================================
   BOTÓN CERRAR
   ============================================================ */
.btn-cerrar {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 13px;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}
.btn-cerrar:hover {
    background-color: #b02a37;
    transform: translateY(-1px);
}
/* ============================================================
   PDF
   ============================================================ */
#visorPDF {
    display: block;
    width: 100%;
    height: 700px;
    border: none;
    background-color: #525659;
}
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    header h1 {
        font-size: 20px;
    }
    .navegacion {
        left: 130px;
    }
    .panel {
        grid-template-columns: 1fr;
    }
    .buscador {
        width: 100%;
        justify-self: stretch;
    }
}
@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;
    }
    .panel {
        padding: 18px;
    }
    .panel h2 {
        font-size: 18px;
    }
    .documentos {
        padding: 18px;
    }
    #visorPDF {
        height: 550px;
    }
}