.tabla-documentos {
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

th {
    background-color: #621132;
    color: #fff;
}

td ul {
    margin: 0;
    padding-left: 20px;
}

.imgC {
    max-width: 100%;
    height: 100%;
}

/* Modal PDF y botones (igual que antes) */
td button {
    padding: 6px 12px;
    background-color: #4c0d26;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

td button:hover {
    background-color: #3b0a1e;
}

/* RESPONSIVIDAD: convertir tabla en tarjetas en móvil */
@media (max-width: 600px) {
    table, tbody, tr, td {
        display: block;
        width: 100%;
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
    }

    td {
        text-align: left;
        padding: 8px 10px;
        position: relative;
        border: none;
        border-bottom: 1px solid #eee;
    }

    td:last-child {
        border-bottom: 0;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #621132;
    }
}
