table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

.col-Nombre { width: 70%; }
.col-Link { width: 20%; }

th, td {
    padding: 10px 14px;
    border: 1px solid #ddd;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
}

th {
    background-color: #1e88e5;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    text-align: center;
}

td {
    text-align: left;
    font-size: 26px;
}

.td-num {
    text-align: center;
}

tr {
    transition: background-color 0.2s ease;
}

#tabla tr:nth-child(even) {
    background-color: #ebebeb;
}

#tabla tr:hover {
    background-color: #e3f2fd;
    cursor: pointer;
}

.pdf-link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-link img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.pdf-link img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px rgba(30, 136, 229, 0.6));
}

.pdf-preview {
    position: fixed;
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;
}

.pdf-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.hidden {
    display: none;
}

.table-wrapper {
    max-height: 600px;
    overflow-y: auto;
    border-radius: 10px;
    scroll-behavior: smooth;
}

thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

thead th {
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    th, td {
        font-size: 10px;
        padding: 4px 6px;
    }

    td {
        font-size: 12px;
    }

    .col-Nombre { width: 70%; }
    .col-Link { width: 20%; }

    .pdf-link img {
        width: 40px;
        height: 50px;
    }

    .table-wrapper {
        max-height: 300px;
    }

    .textPDF {
        font-size: 8px;
    }
}